UNPKG

google-ads-node

Version:
867 lines (711 loc) 9.84 MB
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. import * as Long from "long"; import {protobuf as $protobuf} from "google-gax"; /** Namespace google. */ export namespace google { /** Namespace ads. */ namespace ads { /** Namespace googleads. */ namespace googleads { /** Namespace v8. */ namespace v8 { /** Namespace common. */ namespace common { /** Properties of an AdTextAsset. */ interface IAdTextAsset { /** AdTextAsset text */ text?: (string|null); /** AdTextAsset pinned_field */ pinned_field?: (google.ads.googleads.v8.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType|keyof typeof google.ads.googleads.v8.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType|null); /** AdTextAsset asset_performance_label */ asset_performance_label?: (google.ads.googleads.v8.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel|keyof typeof google.ads.googleads.v8.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel|null); /** AdTextAsset policy_summary_info */ policy_summary_info?: (google.ads.googleads.v8.common.IAdAssetPolicySummary|null); } /** Represents an AdTextAsset. */ class AdTextAsset implements IAdTextAsset { /** * Constructs a new AdTextAsset. * @param [p] Properties to set */ constructor(p?: google.ads.googleads.v8.common.IAdTextAsset); /** AdTextAsset text. */ public text?: (string|null); /** AdTextAsset pinned_field. */ public pinned_field: (google.ads.googleads.v8.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType|keyof typeof google.ads.googleads.v8.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType); /** AdTextAsset asset_performance_label. */ public asset_performance_label: (google.ads.googleads.v8.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel|keyof typeof google.ads.googleads.v8.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel); /** AdTextAsset policy_summary_info. */ public policy_summary_info?: (google.ads.googleads.v8.common.IAdAssetPolicySummary|null); /** AdTextAsset _text. */ public _text?: "text"; /** * Creates a new AdTextAsset instance using the specified properties. * @param [properties] Properties to set * @returns AdTextAsset instance */ public static create(properties?: google.ads.googleads.v8.common.IAdTextAsset): google.ads.googleads.v8.common.AdTextAsset; /** * Encodes the specified AdTextAsset message. Does not implicitly {@link google.ads.googleads.v8.common.AdTextAsset.verify|verify} messages. * @param m AdTextAsset message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ public static encode(m: google.ads.googleads.v8.common.IAdTextAsset, w?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AdTextAsset message, length delimited. Does not implicitly {@link google.ads.googleads.v8.common.AdTextAsset.verify|verify} messages. * @param message AdTextAsset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.ads.googleads.v8.common.IAdTextAsset, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AdTextAsset message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand * @returns AdTextAsset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): google.ads.googleads.v8.common.AdTextAsset; /** * Decodes an AdTextAsset message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AdTextAsset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.ads.googleads.v8.common.AdTextAsset; /** * Verifies an AdTextAsset message. * @param m Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(m: { [k: string]: any }): (string|null); /** * Creates an AdTextAsset message from a plain object. Also converts values to their respective internal types. * @param d Plain object * @returns AdTextAsset */ public static fromObject(d: { [k: string]: any }): google.ads.googleads.v8.common.AdTextAsset; /** * Creates a plain object from an AdTextAsset message. Also converts values to other types if specified. * @param m AdTextAsset * @param [o] Conversion options * @returns Plain object */ public static toObject(m: google.ads.googleads.v8.common.AdTextAsset, o?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AdTextAsset to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of an AdImageAsset. */ interface IAdImageAsset { /** AdImageAsset asset */ asset?: (string|null); } /** Represents an AdImageAsset. */ class AdImageAsset implements IAdImageAsset { /** * Constructs a new AdImageAsset. * @param [p] Properties to set */ constructor(p?: google.ads.googleads.v8.common.IAdImageAsset); /** AdImageAsset asset. */ public asset?: (string|null); /** AdImageAsset _asset. */ public _asset?: "asset"; /** * Creates a new AdImageAsset instance using the specified properties. * @param [properties] Properties to set * @returns AdImageAsset instance */ public static create(properties?: google.ads.googleads.v8.common.IAdImageAsset): google.ads.googleads.v8.common.AdImageAsset; /** * Encodes the specified AdImageAsset message. Does not implicitly {@link google.ads.googleads.v8.common.AdImageAsset.verify|verify} messages. * @param m AdImageAsset message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ public static encode(m: google.ads.googleads.v8.common.IAdImageAsset, w?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AdImageAsset message, length delimited. Does not implicitly {@link google.ads.googleads.v8.common.AdImageAsset.verify|verify} messages. * @param message AdImageAsset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.ads.googleads.v8.common.IAdImageAsset, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AdImageAsset message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand * @returns AdImageAsset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): google.ads.googleads.v8.common.AdImageAsset; /** * Decodes an AdImageAsset message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AdImageAsset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.ads.googleads.v8.common.AdImageAsset; /** * Verifies an AdImageAsset message. * @param m Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(m: { [k: string]: any }): (string|null); /** * Creates an AdImageAsset message from a plain object. Also converts values to their respective internal types. * @param d Plain object * @returns AdImageAsset */ public static fromObject(d: { [k: string]: any }): google.ads.googleads.v8.common.AdImageAsset; /** * Creates a plain object from an AdImageAsset message. Also converts values to other types if specified. * @param m AdImageAsset * @param [o] Conversion options * @returns Plain object */ public static toObject(m: google.ads.googleads.v8.common.AdImageAsset, o?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AdImageAsset to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of an AdVideoAsset. */ interface IAdVideoAsset { /** AdVideoAsset asset */ asset?: (string|null); } /** Represents an AdVideoAsset. */ class AdVideoAsset implements IAdVideoAsset { /** * Constructs a new AdVideoAsset. * @param [p] Properties to set */ constructor(p?: google.ads.googleads.v8.common.IAdVideoAsset); /** AdVideoAsset asset. */ public asset?: (string|null); /** AdVideoAsset _asset. */ public _asset?: "asset"; /** * Creates a new AdVideoAsset instance using the specified properties. * @param [properties] Properties to set * @returns AdVideoAsset instance */ public static create(properties?: google.ads.googleads.v8.common.IAdVideoAsset): google.ads.googleads.v8.common.AdVideoAsset; /** * Encodes the specified AdVideoAsset message. Does not implicitly {@link google.ads.googleads.v8.common.AdVideoAsset.verify|verify} messages. * @param m AdVideoAsset message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ public static encode(m: google.ads.googleads.v8.common.IAdVideoAsset, w?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AdVideoAsset message, length delimited. Does not implicitly {@link google.ads.googleads.v8.common.AdVideoAsset.verify|verify} messages. * @param message AdVideoAsset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.ads.googleads.v8.common.IAdVideoAsset, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AdVideoAsset message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand * @returns AdVideoAsset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): google.ads.googleads.v8.common.AdVideoAsset; /** * Decodes an AdVideoAsset message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AdVideoAsset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.ads.googleads.v8.common.AdVideoAsset; /** * Verifies an AdVideoAsset message. * @param m Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(m: { [k: string]: any }): (string|null); /** * Creates an AdVideoAsset message from a plain object. Also converts values to their respective internal types. * @param d Plain object * @returns AdVideoAsset */ public static fromObject(d: { [k: string]: any }): google.ads.googleads.v8.common.AdVideoAsset; /** * Creates a plain object from an AdVideoAsset message. Also converts values to other types if specified. * @param m AdVideoAsset * @param [o] Conversion options * @returns Plain object */ public static toObject(m: google.ads.googleads.v8.common.AdVideoAsset, o?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AdVideoAsset to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of an AdMediaBundleAsset. */ interface IAdMediaBundleAsset { /** AdMediaBundleAsset asset */ asset?: (string|null); } /** Represents an AdMediaBundleAsset. */ class AdMediaBundleAsset implements IAdMediaBundleAsset { /** * Constructs a new AdMediaBundleAsset. * @param [p] Properties to set */ constructor(p?: google.ads.googleads.v8.common.IAdMediaBundleAsset); /** AdMediaBundleAsset asset. */ public asset?: (string|null); /** AdMediaBundleAsset _asset. */ public _asset?: "asset"; /** * Creates a new AdMediaBundleAsset instance using the specified properties. * @param [properties] Properties to set * @returns AdMediaBundleAsset instance */ public static create(properties?: google.ads.googleads.v8.common.IAdMediaBundleAsset): google.ads.googleads.v8.common.AdMediaBundleAsset; /** * Encodes the specified AdMediaBundleAsset message. Does not implicitly {@link google.ads.googleads.v8.common.AdMediaBundleAsset.verify|verify} messages. * @param m AdMediaBundleAsset message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ public static encode(m: google.ads.googleads.v8.common.IAdMediaBundleAsset, w?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AdMediaBundleAsset message, length delimited. Does not implicitly {@link google.ads.googleads.v8.common.AdMediaBundleAsset.verify|verify} messages. * @param message AdMediaBundleAsset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.ads.googleads.v8.common.IAdMediaBundleAsset, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AdMediaBundleAsset message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand * @returns AdMediaBundleAsset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): google.ads.googleads.v8.common.AdMediaBundleAsset; /** * Decodes an AdMediaBundleAsset message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AdMediaBundleAsset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.ads.googleads.v8.common.AdMediaBundleAsset; /** * Verifies an AdMediaBundleAsset message. * @param m Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(m: { [k: string]: any }): (string|null); /** * Creates an AdMediaBundleAsset message from a plain object. Also converts values to their respective internal types. * @param d Plain object * @returns AdMediaBundleAsset */ public static fromObject(d: { [k: string]: any }): google.ads.googleads.v8.common.AdMediaBundleAsset; /** * Creates a plain object from an AdMediaBundleAsset message. Also converts values to other types if specified. * @param m AdMediaBundleAsset * @param [o] Conversion options * @returns Plain object */ public static toObject(m: google.ads.googleads.v8.common.AdMediaBundleAsset, o?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AdMediaBundleAsset to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of an AdAssetPolicySummary. */ interface IAdAssetPolicySummary { /** AdAssetPolicySummary policy_topic_entries */ policy_topic_entries?: (google.ads.googleads.v8.common.IPolicyTopicEntry[]|null); /** AdAssetPolicySummary review_status */ review_status?: (google.ads.googleads.v8.enums.PolicyReviewStatusEnum.PolicyReviewStatus|keyof typeof google.ads.googleads.v8.enums.PolicyReviewStatusEnum.PolicyReviewStatus|null); /** AdAssetPolicySummary approval_status */ approval_status?: (google.ads.googleads.v8.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus|keyof typeof google.ads.googleads.v8.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus|null); } /** Represents an AdAssetPolicySummary. */ class AdAssetPolicySummary implements IAdAssetPolicySummary { /** * Constructs a new AdAssetPolicySummary. * @param [p] Properties to set */ constructor(p?: google.ads.googleads.v8.common.IAdAssetPolicySummary); /** AdAssetPolicySummary policy_topic_entries. */ public policy_topic_entries: google.ads.googleads.v8.common.IPolicyTopicEntry[]; /** AdAssetPolicySummary review_status. */ public review_status: (google.ads.googleads.v8.enums.PolicyReviewStatusEnum.PolicyReviewStatus|keyof typeof google.ads.googleads.v8.enums.PolicyReviewStatusEnum.PolicyReviewStatus); /** AdAssetPolicySummary approval_status. */ public approval_status: (google.ads.googleads.v8.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus|keyof typeof google.ads.googleads.v8.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus); /** * Creates a new AdAssetPolicySummary instance using the specified properties. * @param [properties] Properties to set * @returns AdAssetPolicySummary instance */ public static create(properties?: google.ads.googleads.v8.common.IAdAssetPolicySummary): google.ads.googleads.v8.common.AdAssetPolicySummary; /** * Encodes the specified AdAssetPolicySummary message. Does not implicitly {@link google.ads.googleads.v8.common.AdAssetPolicySummary.verify|verify} messages. * @param m AdAssetPolicySummary message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ public static encode(m: google.ads.googleads.v8.common.IAdAssetPolicySummary, w?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AdAssetPolicySummary message, length delimited. Does not implicitly {@link google.ads.googleads.v8.common.AdAssetPolicySummary.verify|verify} messages. * @param message AdAssetPolicySummary message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.ads.googleads.v8.common.IAdAssetPolicySummary, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AdAssetPolicySummary message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand * @returns AdAssetPolicySummary * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): google.ads.googleads.v8.common.AdAssetPolicySummary; /** * Decodes an AdAssetPolicySummary message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AdAssetPolicySummary * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.ads.googleads.v8.common.AdAssetPolicySummary; /** * Verifies an AdAssetPolicySummary message. * @param m Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(m: { [k: string]: any }): (string|null); /** * Creates an AdAssetPolicySummary message from a plain object. Also converts values to their respective internal types. * @param d Plain object * @returns AdAssetPolicySummary */ public static fromObject(d: { [k: string]: any }): google.ads.googleads.v8.common.AdAssetPolicySummary; /** * Creates a plain object from an AdAssetPolicySummary message. Also converts values to other types if specified. * @param m AdAssetPolicySummary * @param [o] Conversion options * @returns Plain object */ public static toObject(m: google.ads.googleads.v8.common.AdAssetPolicySummary, o?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AdAssetPolicySummary to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a PolicyViolationKey. */ interface IPolicyViolationKey { /** PolicyViolationKey policy_name */ policy_name?: (string|null); /** PolicyViolationKey violating_text */ violating_text?: (string|null); } /** Represents a PolicyViolationKey. */ class PolicyViolationKey implements IPolicyViolationKey { /** * Constructs a new PolicyViolationKey. * @param [p] Properties to set */ constructor(p?: google.ads.googleads.v8.common.IPolicyViolationKey); /** PolicyViolationKey policy_name. */ public policy_name?: (string|null); /** PolicyViolationKey violating_text. */ public violating_text?: (string|null); /** PolicyViolationKey _policy_name. */ public _policy_name?: "policy_name"; /** PolicyViolationKey _violating_text. */ public _violating_text?: "violating_text"; /** * Creates a new PolicyViolationKey instance using the specified properties. * @param [properties] Properties to set * @returns PolicyViolationKey instance */ public static create(properties?: google.ads.googleads.v8.common.IPolicyViolationKey): google.ads.googleads.v8.common.PolicyViolationKey; /** * Encodes the specified PolicyViolationKey message. Does not implicitly {@link google.ads.googleads.v8.common.PolicyViolationKey.verify|verify} messages. * @param m PolicyViolationKey message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ public static encode(m: google.ads.googleads.v8.common.IPolicyViolationKey, w?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PolicyViolationKey message, length delimited. Does not implicitly {@link google.ads.googleads.v8.common.PolicyViolationKey.verify|verify} messages. * @param message PolicyViolationKey message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.ads.googleads.v8.common.IPolicyViolationKey, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PolicyViolationKey message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand * @returns PolicyViolationKey * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): google.ads.googleads.v8.common.PolicyViolationKey; /** * Decodes a PolicyViolationKey message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns PolicyViolationKey * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.ads.googleads.v8.common.PolicyViolationKey; /** * Verifies a PolicyViolationKey message. * @param m Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(m: { [k: string]: any }): (string|null); /** * Creates a PolicyViolationKey message from a plain object. Also converts values to their respective internal types. * @param d Plain object * @returns PolicyViolationKey */ public static fromObject(d: { [k: string]: any }): google.ads.googleads.v8.common.PolicyViolationKey; /** * Creates a plain object from a PolicyViolationKey message. Also converts values to other types if specified. * @param m PolicyViolationKey * @param [o] Conversion options * @returns Plain object */ public static toObject(m: google.ads.googleads.v8.common.PolicyViolationKey, o?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this PolicyViolationKey to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a PolicyValidationParameter. */ interface IPolicyValidationParameter { /** PolicyValidationParameter ignorable_policy_topics */ ignorable_policy_topics?: (string[]|null); /** PolicyValidationParameter exempt_policy_violation_keys */ exempt_policy_violation_keys?: (google.ads.googleads.v8.common.IPolicyViolationKey[]|null); } /** Represents a PolicyValidationParameter. */ class PolicyValidationParameter implements IPolicyValidationParameter { /** * Constructs a new PolicyValidationParameter. * @param [p] Properties to set */ constructor(p?: google.ads.googleads.v8.common.IPolicyValidationParameter); /** PolicyValidationParameter ignorable_policy_topics. */ public ignorable_policy_topics: string[]; /** PolicyValidationParameter exempt_policy_violation_keys. */ public exempt_policy_violation_keys: google.ads.googleads.v8.common.IPolicyViolationKey[]; /** * Creates a new PolicyValidationParameter instance using the specified properties. * @param [properties] Properties to set * @returns PolicyValidationParameter instance */ public static create(properties?: google.ads.googleads.v8.common.IPolicyValidationParameter): google.ads.googleads.v8.common.PolicyValidationParameter; /** * Encodes the specified PolicyValidationParameter message. Does not implicitly {@link google.ads.googleads.v8.common.PolicyValidationParameter.verify|verify} messages. * @param m PolicyValidationParameter message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ public static encode(m: google.ads.googleads.v8.common.IPolicyValidationParameter, w?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PolicyValidationParameter message, length delimited. Does not implicitly {@link google.ads.googleads.v8.common.PolicyValidationParameter.verify|verify} messages. * @param message PolicyValidationParameter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.ads.googleads.v8.common.IPolicyValidationParameter, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PolicyValidationParameter message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand * @returns PolicyValidationParameter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): google.ads.googleads.v8.common.PolicyValidationParameter; /** * Decodes a PolicyValidationParameter message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns PolicyValidationParameter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.ads.googleads.v8.common.PolicyValidationParameter; /** * Verifies a PolicyValidationParameter message. * @param m Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(m: { [k: string]: any }): (string|null); /** * Creates a PolicyValidationParameter message from a plain object. Also converts values to their respective internal types. * @param d Plain object * @returns PolicyValidationParameter */ public static fromObject(d: { [k: string]: any }): google.ads.googleads.v8.common.PolicyValidationParameter; /** * Creates a plain object from a PolicyValidationParameter message. Also converts values to other types if specified. * @param m PolicyValidationParameter * @param [o] Conversion options * @returns Plain object */ public static toObject(m: google.ads.googleads.v8.common.PolicyValidationParameter, o?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this PolicyValidationParameter to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a PolicyTopicEntry. */ interface IPolicyTopicEntry { /** PolicyTopicEntry topic */ topic?: (string|null); /** PolicyTopicEntry type */ type?: (google.ads.googleads.v8.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType|keyof typeof google.ads.googleads.v8.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType|null); /** PolicyTopicEntry evidences */ evidences?: (google.ads.googleads.v8.common.IPolicyTopicEvidence[]|null); /** PolicyTopicEntry constraints */ constraints?: (google.ads.googleads.v8.common.IPolicyTopicConstraint[]|null); } /** Represents a PolicyTopicEntry. */ class PolicyTopicEntry implements IPolicyTopicEntry { /** * Constructs a new PolicyTopicEntry. * @param [p] Properties to set */ constructor(p?: google.ads.googleads.v8.common.IPolicyTopicEntry); /** PolicyTopicEntry topic. */ public topic?: (string|null); /** PolicyTopicEntry type. */ public type: (google.ads.googleads.v8.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType|keyof typeof google.ads.googleads.v8.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType); /** PolicyTopicEntry evidences. */ public evidences: google.ads.googleads.v8.common.IPolicyTopicEvidence[]; /** PolicyTopicEntry constraints. */ public constraints: google.ads.googleads.v8.common.IPolicyTopicConstraint[]; /** PolicyTopicEntry _topic. */ public _topic?: "topic"; /** * Creates a new PolicyTopicEntry instance using the specified properties. * @param [properties] Properties to set * @returns PolicyTopicEntry instance */ public static create(properties?: google.ads.googleads.v8.common.IPolicyTopicEntry): google.ads.googleads.v8.common.PolicyTopicEntry; /** * Encodes the specified PolicyTopicEntry message. Does not implicitly {@link google.ads.googleads.v8.common.PolicyTopicEntry.verify|verify} messages. * @param m PolicyTopicEntry message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ public static encode(m: google.ads.googleads.v8.common.IPolicyTopicEntry, w?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PolicyTopicEntry message, length delimited. Does not implicitly {@link google.ads.googleads.v8.common.PolicyTopicEntry.verify|verify} messages. * @param message PolicyTopicEntry message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.ads.googleads.v8.common.IPolicyTopicEntry, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PolicyTopicEntry message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand * @returns PolicyTopicEntry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): google.ads.googleads.v8.common.PolicyTopicEntry; /** * Decodes a PolicyTopicEntry message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns PolicyTopicEntry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.ads.googleads.v8.common.PolicyTopicEntry; /** * Verifies a PolicyTopicEntry message. * @param m Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(m: { [k: string]: any }): (string|null); /** * Creates a PolicyTopicEntry message from a plain object. Also converts values to their respective internal types. * @param d Plain object * @returns PolicyTopicEntry */ public static fromObject(d: { [k: string]: any }): google.ads.googleads.v8.common.PolicyTopicEntry; /** * Creates a plain object from a PolicyTopicEntry message. Also converts values to other types if specified. * @param m PolicyTopicEntry * @param [o] Conversion options * @returns Plain object */ public static toObject(m: google.ads.googleads.v8.common.PolicyTopicEntry, o?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this PolicyTopicEntry to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a PolicyTopicEvidence. */ interface IPolicyTopicEvidence { /** PolicyTopicEvidence website_list */ website_list?: (google.ads.googleads.v8.common.PolicyTopicEvidence.IWebsiteList|null); /** PolicyTopicEvidence text_list */ text_list?: (google.ads.googleads.v8.common.PolicyTopicEvidence.ITextList|null); /** PolicyTopicEvidence language_code */ language_code?: (string|null); /** PolicyTopicEvidence destination_text_list */ destination_text_list?: (google.ads.googleads.v8.common.PolicyTopicEvidence.IDestinationTextList|null); /** PolicyTopicEvidence destination_mismatch */ destination_mismatch?: (google.ads.googleads.v8.common.PolicyTopicEvidence.IDestinationMismatch|null); /** PolicyTopicEvidence destination_not_working */ destination_not_working?: (google.ads.googleads.v8.common.PolicyTopicEvidence.IDestinationNotWorking|null); } /** Represents a PolicyTopicEvidence. */ class PolicyTopicEvidence implements IPolicyTopicEvidence { /** * Constructs a new PolicyTopicEvidence. * @param [p] Properties to set */ constructor(p?: google.ads.googleads.v8.common.IPolicyTopicEvidence); /** PolicyTopicEvidence website_list. */ public website_list?: (google.ads.googleads.v8.common.PolicyTopicEvidence.IWebsiteList|null);