UNPKG

@htdangkhoa/google-ads

Version:
1,018 lines 205 kB
"use strict"; // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: // protoc-gen-ts_proto v1.181.2 // protoc v3.21.12 // source: google/ads/googleads/v19/errors/errors.proto var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ResourceCountDetails = exports.QuotaErrorDetails = exports.PolicyFindingDetails = exports.PolicyViolationDetails = exports.ErrorDetails = exports.ErrorLocation_FieldPathElement = exports.ErrorLocation = exports.ErrorCode = exports.GoogleAdsError = exports.GoogleAdsFailure = exports.QuotaErrorDetails_QuotaRateScope = void 0; exports.quotaErrorDetails_QuotaRateScopeFromJSON = quotaErrorDetails_QuotaRateScopeFromJSON; exports.quotaErrorDetails_QuotaRateScopeToJSON = quotaErrorDetails_QuotaRateScopeToJSON; /* eslint-disable */ const minimal_js_1 = __importDefault(require("protobufjs/minimal.js")); const duration_js_1 = require("../../../../protobuf/duration.js"); const policy_js_1 = require("../common/policy.js"); const value_js_1 = require("../common/value.js"); const resource_limit_type_js_1 = require("../enums/resource_limit_type.js"); const access_invitation_error_js_1 = require("./access_invitation_error.js"); const account_budget_proposal_error_js_1 = require("./account_budget_proposal_error.js"); const account_link_error_js_1 = require("./account_link_error.js"); const ad_customizer_error_js_1 = require("./ad_customizer_error.js"); const ad_error_js_1 = require("./ad_error.js"); const ad_group_ad_error_js_1 = require("./ad_group_ad_error.js"); const ad_group_bid_modifier_error_js_1 = require("./ad_group_bid_modifier_error.js"); const ad_group_criterion_customizer_error_js_1 = require("./ad_group_criterion_customizer_error.js"); const ad_group_criterion_error_js_1 = require("./ad_group_criterion_error.js"); const ad_group_customizer_error_js_1 = require("./ad_group_customizer_error.js"); const ad_group_error_js_1 = require("./ad_group_error.js"); const ad_group_feed_error_js_1 = require("./ad_group_feed_error.js"); const ad_parameter_error_js_1 = require("./ad_parameter_error.js"); const ad_sharing_error_js_1 = require("./ad_sharing_error.js"); const adx_error_js_1 = require("./adx_error.js"); const asset_error_js_1 = require("./asset_error.js"); const asset_group_asset_error_js_1 = require("./asset_group_asset_error.js"); const asset_group_error_js_1 = require("./asset_group_error.js"); const asset_group_listing_group_filter_error_js_1 = require("./asset_group_listing_group_filter_error.js"); const asset_group_signal_error_js_1 = require("./asset_group_signal_error.js"); const asset_link_error_js_1 = require("./asset_link_error.js"); const asset_set_asset_error_js_1 = require("./asset_set_asset_error.js"); const asset_set_error_js_1 = require("./asset_set_error.js"); const asset_set_link_error_js_1 = require("./asset_set_link_error.js"); const audience_error_js_1 = require("./audience_error.js"); const audience_insights_error_js_1 = require("./audience_insights_error.js"); const authentication_error_js_1 = require("./authentication_error.js"); const authorization_error_js_1 = require("./authorization_error.js"); const automatically_created_asset_removal_error_js_1 = require("./automatically_created_asset_removal_error.js"); const batch_job_error_js_1 = require("./batch_job_error.js"); const bidding_error_js_1 = require("./bidding_error.js"); const bidding_strategy_error_js_1 = require("./bidding_strategy_error.js"); const billing_setup_error_js_1 = require("./billing_setup_error.js"); const brand_guidelines_migration_error_js_1 = require("./brand_guidelines_migration_error.js"); const campaign_budget_error_js_1 = require("./campaign_budget_error.js"); const campaign_conversion_goal_error_js_1 = require("./campaign_conversion_goal_error.js"); const campaign_criterion_error_js_1 = require("./campaign_criterion_error.js"); const campaign_customizer_error_js_1 = require("./campaign_customizer_error.js"); const campaign_draft_error_js_1 = require("./campaign_draft_error.js"); const campaign_error_js_1 = require("./campaign_error.js"); const campaign_experiment_error_js_1 = require("./campaign_experiment_error.js"); const campaign_feed_error_js_1 = require("./campaign_feed_error.js"); const campaign_lifecycle_goal_error_js_1 = require("./campaign_lifecycle_goal_error.js"); const campaign_shared_set_error_js_1 = require("./campaign_shared_set_error.js"); const change_event_error_js_1 = require("./change_event_error.js"); const change_status_error_js_1 = require("./change_status_error.js"); const collection_size_error_js_1 = require("./collection_size_error.js"); const context_error_js_1 = require("./context_error.js"); const conversion_action_error_js_1 = require("./conversion_action_error.js"); const conversion_adjustment_upload_error_js_1 = require("./conversion_adjustment_upload_error.js"); const conversion_custom_variable_error_js_1 = require("./conversion_custom_variable_error.js"); const conversion_goal_campaign_config_error_js_1 = require("./conversion_goal_campaign_config_error.js"); const conversion_upload_error_js_1 = require("./conversion_upload_error.js"); const conversion_value_rule_error_js_1 = require("./conversion_value_rule_error.js"); const conversion_value_rule_set_error_js_1 = require("./conversion_value_rule_set_error.js"); const country_code_error_js_1 = require("./country_code_error.js"); const criterion_error_js_1 = require("./criterion_error.js"); const currency_code_error_js_1 = require("./currency_code_error.js"); const currency_error_js_1 = require("./currency_error.js"); const custom_audience_error_js_1 = require("./custom_audience_error.js"); const custom_conversion_goal_error_js_1 = require("./custom_conversion_goal_error.js"); const custom_interest_error_js_1 = require("./custom_interest_error.js"); const customer_client_link_error_js_1 = require("./customer_client_link_error.js"); const customer_customizer_error_js_1 = require("./customer_customizer_error.js"); const customer_error_js_1 = require("./customer_error.js"); const customer_feed_error_js_1 = require("./customer_feed_error.js"); const customer_lifecycle_goal_error_js_1 = require("./customer_lifecycle_goal_error.js"); const customer_manager_link_error_js_1 = require("./customer_manager_link_error.js"); const customer_sk_ad_network_conversion_value_schema_error_js_1 = require("./customer_sk_ad_network_conversion_value_schema_error.js"); const customer_user_access_error_js_1 = require("./customer_user_access_error.js"); const customizer_attribute_error_js_1 = require("./customizer_attribute_error.js"); const data_link_error_js_1 = require("./data_link_error.js"); const database_error_js_1 = require("./database_error.js"); const date_error_js_1 = require("./date_error.js"); const date_range_error_js_1 = require("./date_range_error.js"); const distinct_error_js_1 = require("./distinct_error.js"); const enum_error_js_1 = require("./enum_error.js"); const experiment_arm_error_js_1 = require("./experiment_arm_error.js"); const experiment_error_js_1 = require("./experiment_error.js"); const extension_feed_item_error_js_1 = require("./extension_feed_item_error.js"); const extension_setting_error_js_1 = require("./extension_setting_error.js"); const feed_attribute_reference_error_js_1 = require("./feed_attribute_reference_error.js"); const feed_error_js_1 = require("./feed_error.js"); const feed_item_error_js_1 = require("./feed_item_error.js"); const feed_item_set_error_js_1 = require("./feed_item_set_error.js"); const feed_item_set_link_error_js_1 = require("./feed_item_set_link_error.js"); const feed_item_target_error_js_1 = require("./feed_item_target_error.js"); const feed_item_validation_error_js_1 = require("./feed_item_validation_error.js"); const feed_mapping_error_js_1 = require("./feed_mapping_error.js"); const field_error_js_1 = require("./field_error.js"); const field_mask_error_js_1 = require("./field_mask_error.js"); const function_error_js_1 = require("./function_error.js"); const function_parsing_error_js_1 = require("./function_parsing_error.js"); const geo_target_constant_suggestion_error_js_1 = require("./geo_target_constant_suggestion_error.js"); const header_error_js_1 = require("./header_error.js"); const id_error_js_1 = require("./id_error.js"); const identity_verification_error_js_1 = require("./identity_verification_error.js"); const image_error_js_1 = require("./image_error.js"); const internal_error_js_1 = require("./internal_error.js"); const invoice_error_js_1 = require("./invoice_error.js"); const keyword_plan_ad_group_error_js_1 = require("./keyword_plan_ad_group_error.js"); const keyword_plan_ad_group_keyword_error_js_1 = require("./keyword_plan_ad_group_keyword_error.js"); const keyword_plan_campaign_error_js_1 = require("./keyword_plan_campaign_error.js"); const keyword_plan_campaign_keyword_error_js_1 = require("./keyword_plan_campaign_keyword_error.js"); const keyword_plan_error_js_1 = require("./keyword_plan_error.js"); const keyword_plan_idea_error_js_1 = require("./keyword_plan_idea_error.js"); const label_error_js_1 = require("./label_error.js"); const language_code_error_js_1 = require("./language_code_error.js"); const list_operation_error_js_1 = require("./list_operation_error.js"); const manager_link_error_js_1 = require("./manager_link_error.js"); const media_bundle_error_js_1 = require("./media_bundle_error.js"); const media_file_error_js_1 = require("./media_file_error.js"); const media_upload_error_js_1 = require("./media_upload_error.js"); const merchant_center_error_js_1 = require("./merchant_center_error.js"); const multiplier_error_js_1 = require("./multiplier_error.js"); const mutate_error_js_1 = require("./mutate_error.js"); const new_resource_creation_error_js_1 = require("./new_resource_creation_error.js"); const not_allowlisted_error_js_1 = require("./not_allowlisted_error.js"); const not_empty_error_js_1 = require("./not_empty_error.js"); const null_error_js_1 = require("./null_error.js"); const offline_user_data_job_error_js_1 = require("./offline_user_data_job_error.js"); const operation_access_denied_error_js_1 = require("./operation_access_denied_error.js"); const operator_error_js_1 = require("./operator_error.js"); const partial_failure_error_js_1 = require("./partial_failure_error.js"); const payments_account_error_js_1 = require("./payments_account_error.js"); const policy_finding_error_js_1 = require("./policy_finding_error.js"); const policy_validation_parameter_error_js_1 = require("./policy_validation_parameter_error.js"); const policy_violation_error_js_1 = require("./policy_violation_error.js"); const product_link_error_js_1 = require("./product_link_error.js"); const product_link_invitation_error_js_1 = require("./product_link_invitation_error.js"); const query_error_js_1 = require("./query_error.js"); const quota_error_js_1 = require("./quota_error.js"); const range_error_js_1 = require("./range_error.js"); const reach_plan_error_js_1 = require("./reach_plan_error.js"); const recommendation_error_js_1 = require("./recommendation_error.js"); const recommendation_subscription_error_js_1 = require("./recommendation_subscription_error.js"); const region_code_error_js_1 = require("./region_code_error.js"); const request_error_js_1 = require("./request_error.js"); const resource_access_denied_error_js_1 = require("./resource_access_denied_error.js"); const resource_count_limit_exceeded_error_js_1 = require("./resource_count_limit_exceeded_error.js"); const search_term_insight_error_js_1 = require("./search_term_insight_error.js"); const setting_error_js_1 = require("./setting_error.js"); const shareable_preview_error_js_1 = require("./shareable_preview_error.js"); const shared_criterion_error_js_1 = require("./shared_criterion_error.js"); const shared_set_error_js_1 = require("./shared_set_error.js"); const shopping_product_error_js_1 = require("./shopping_product_error.js"); const size_limit_error_js_1 = require("./size_limit_error.js"); const smart_campaign_error_js_1 = require("./smart_campaign_error.js"); const string_format_error_js_1 = require("./string_format_error.js"); const string_length_error_js_1 = require("./string_length_error.js"); const third_party_app_analytics_link_error_js_1 = require("./third_party_app_analytics_link_error.js"); const time_zone_error_js_1 = require("./time_zone_error.js"); const url_field_error_js_1 = require("./url_field_error.js"); const user_data_error_js_1 = require("./user_data_error.js"); const user_list_customer_type_error_js_1 = require("./user_list_customer_type_error.js"); const user_list_error_js_1 = require("./user_list_error.js"); const video_campaign_error_js_1 = require("./video_campaign_error.js"); const youtube_video_registration_error_js_1 = require("./youtube_video_registration_error.js"); /** Enum of possible scopes that quota buckets belong to. */ var QuotaErrorDetails_QuotaRateScope; (function (QuotaErrorDetails_QuotaRateScope) { /** UNSPECIFIED - Unspecified enum */ QuotaErrorDetails_QuotaRateScope[QuotaErrorDetails_QuotaRateScope["UNSPECIFIED"] = 0] = "UNSPECIFIED"; /** UNKNOWN - Used for return value only. Represents value unknown in this version. */ QuotaErrorDetails_QuotaRateScope[QuotaErrorDetails_QuotaRateScope["UNKNOWN"] = 1] = "UNKNOWN"; /** ACCOUNT - Per customer account quota */ QuotaErrorDetails_QuotaRateScope[QuotaErrorDetails_QuotaRateScope["ACCOUNT"] = 2] = "ACCOUNT"; /** DEVELOPER - Per project or DevToken quota */ QuotaErrorDetails_QuotaRateScope[QuotaErrorDetails_QuotaRateScope["DEVELOPER"] = 3] = "DEVELOPER"; QuotaErrorDetails_QuotaRateScope[QuotaErrorDetails_QuotaRateScope["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(QuotaErrorDetails_QuotaRateScope || (exports.QuotaErrorDetails_QuotaRateScope = QuotaErrorDetails_QuotaRateScope = {})); function quotaErrorDetails_QuotaRateScopeFromJSON(object) { switch (object) { case 0: case "UNSPECIFIED": return QuotaErrorDetails_QuotaRateScope.UNSPECIFIED; case 1: case "UNKNOWN": return QuotaErrorDetails_QuotaRateScope.UNKNOWN; case 2: case "ACCOUNT": return QuotaErrorDetails_QuotaRateScope.ACCOUNT; case 3: case "DEVELOPER": return QuotaErrorDetails_QuotaRateScope.DEVELOPER; case -1: case "UNRECOGNIZED": default: return QuotaErrorDetails_QuotaRateScope.UNRECOGNIZED; } } function quotaErrorDetails_QuotaRateScopeToJSON(object) { switch (object) { case QuotaErrorDetails_QuotaRateScope.UNSPECIFIED: return "UNSPECIFIED"; case QuotaErrorDetails_QuotaRateScope.UNKNOWN: return "UNKNOWN"; case QuotaErrorDetails_QuotaRateScope.ACCOUNT: return "ACCOUNT"; case QuotaErrorDetails_QuotaRateScope.DEVELOPER: return "DEVELOPER"; case QuotaErrorDetails_QuotaRateScope.UNRECOGNIZED: default: return "UNRECOGNIZED"; } } function createBaseGoogleAdsFailure() { return { errors: [], request_id: "" }; } exports.GoogleAdsFailure = { encode(message, writer = minimal_js_1.default.Writer.create()) { if (message.errors !== undefined && message.errors.length !== 0) { for (const v of message.errors) { exports.GoogleAdsError.encode(v, writer.uint32(10).fork()).ldelim(); } } if (message.request_id !== undefined && message.request_id !== "") { writer.uint32(18).string(message.request_id); } return writer; }, decode(input, length) { const reader = input instanceof minimal_js_1.default.Reader ? input : minimal_js_1.default.Reader.create(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGoogleAdsFailure(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: if (tag !== 10) { break; } message.errors.push(exports.GoogleAdsError.decode(reader, reader.uint32())); continue; case 2: if (tag !== 18) { break; } message.request_id = reader.string(); continue; } if ((tag & 7) === 4 || tag === 0) { break; } reader.skipType(tag & 7); } return message; }, fromJSON(object) { return { errors: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.errors) ? object.errors.map((e) => exports.GoogleAdsError.fromJSON(e)) : [], request_id: isSet(object.request_id) ? globalThis.String(object.request_id) : "", }; }, toJSON(message) { var _a; const obj = {}; if ((_a = message.errors) === null || _a === void 0 ? void 0 : _a.length) { obj.errors = message.errors.map((e) => exports.GoogleAdsError.toJSON(e)); } if (message.request_id !== undefined && message.request_id !== "") { obj.request_id = message.request_id; } return obj; }, create(base) { return exports.GoogleAdsFailure.fromPartial(base !== null && base !== void 0 ? base : {}); }, fromPartial(object) { var _a, _b; const message = createBaseGoogleAdsFailure(); message.errors = ((_a = object.errors) === null || _a === void 0 ? void 0 : _a.map((e) => exports.GoogleAdsError.fromPartial(e))) || []; message.request_id = (_b = object.request_id) !== null && _b !== void 0 ? _b : ""; return message; }, }; function createBaseGoogleAdsError() { return { error_code: undefined, message: "", trigger: undefined, location: undefined, details: undefined }; } exports.GoogleAdsError = { encode(message, writer = minimal_js_1.default.Writer.create()) { if (message.error_code !== undefined) { exports.ErrorCode.encode(message.error_code, writer.uint32(10).fork()).ldelim(); } if (message.message !== undefined && message.message !== "") { writer.uint32(18).string(message.message); } if (message.trigger !== undefined) { value_js_1.Value.encode(message.trigger, writer.uint32(26).fork()).ldelim(); } if (message.location !== undefined) { exports.ErrorLocation.encode(message.location, writer.uint32(34).fork()).ldelim(); } if (message.details !== undefined) { exports.ErrorDetails.encode(message.details, writer.uint32(42).fork()).ldelim(); } return writer; }, decode(input, length) { const reader = input instanceof minimal_js_1.default.Reader ? input : minimal_js_1.default.Reader.create(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGoogleAdsError(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: if (tag !== 10) { break; } message.error_code = exports.ErrorCode.decode(reader, reader.uint32()); continue; case 2: if (tag !== 18) { break; } message.message = reader.string(); continue; case 3: if (tag !== 26) { break; } message.trigger = value_js_1.Value.decode(reader, reader.uint32()); continue; case 4: if (tag !== 34) { break; } message.location = exports.ErrorLocation.decode(reader, reader.uint32()); continue; case 5: if (tag !== 42) { break; } message.details = exports.ErrorDetails.decode(reader, reader.uint32()); continue; } if ((tag & 7) === 4 || tag === 0) { break; } reader.skipType(tag & 7); } return message; }, fromJSON(object) { return { error_code: isSet(object.error_code) ? exports.ErrorCode.fromJSON(object.error_code) : undefined, message: isSet(object.message) ? globalThis.String(object.message) : "", trigger: isSet(object.trigger) ? value_js_1.Value.fromJSON(object.trigger) : undefined, location: isSet(object.location) ? exports.ErrorLocation.fromJSON(object.location) : undefined, details: isSet(object.details) ? exports.ErrorDetails.fromJSON(object.details) : undefined, }; }, toJSON(message) { const obj = {}; if (message.error_code !== undefined) { obj.error_code = exports.ErrorCode.toJSON(message.error_code); } if (message.message !== undefined && message.message !== "") { obj.message = message.message; } if (message.trigger !== undefined) { obj.trigger = value_js_1.Value.toJSON(message.trigger); } if (message.location !== undefined) { obj.location = exports.ErrorLocation.toJSON(message.location); } if (message.details !== undefined) { obj.details = exports.ErrorDetails.toJSON(message.details); } return obj; }, create(base) { return exports.GoogleAdsError.fromPartial(base !== null && base !== void 0 ? base : {}); }, fromPartial(object) { var _a; const message = createBaseGoogleAdsError(); message.error_code = (object.error_code !== undefined && object.error_code !== null) ? exports.ErrorCode.fromPartial(object.error_code) : undefined; message.message = (_a = object.message) !== null && _a !== void 0 ? _a : ""; message.trigger = (object.trigger !== undefined && object.trigger !== null) ? value_js_1.Value.fromPartial(object.trigger) : undefined; message.location = (object.location !== undefined && object.location !== null) ? exports.ErrorLocation.fromPartial(object.location) : undefined; message.details = (object.details !== undefined && object.details !== null) ? exports.ErrorDetails.fromPartial(object.details) : undefined; return message; }, }; function createBaseErrorCode() { return { request_error: undefined, bidding_strategy_error: undefined, url_field_error: undefined, list_operation_error: undefined, query_error: undefined, mutate_error: undefined, field_mask_error: undefined, authorization_error: undefined, internal_error: undefined, quota_error: undefined, ad_error: undefined, ad_group_error: undefined, campaign_budget_error: undefined, campaign_error: undefined, video_campaign_error: undefined, authentication_error: undefined, ad_group_criterion_customizer_error: undefined, ad_group_criterion_error: undefined, ad_group_customizer_error: undefined, ad_customizer_error: undefined, ad_group_ad_error: undefined, ad_sharing_error: undefined, adx_error: undefined, asset_error: undefined, asset_group_asset_error: undefined, asset_group_listing_group_filter_error: undefined, asset_group_error: undefined, asset_set_asset_error: undefined, asset_set_link_error: undefined, asset_set_error: undefined, bidding_error: undefined, campaign_criterion_error: undefined, campaign_conversion_goal_error: undefined, campaign_customizer_error: undefined, collection_size_error: undefined, conversion_goal_campaign_config_error: undefined, country_code_error: undefined, criterion_error: undefined, custom_conversion_goal_error: undefined, customer_customizer_error: undefined, customer_error: undefined, customizer_attribute_error: undefined, date_error: undefined, date_range_error: undefined, distinct_error: undefined, feed_attribute_reference_error: undefined, function_error: undefined, function_parsing_error: undefined, id_error: undefined, image_error: undefined, language_code_error: undefined, media_bundle_error: undefined, media_upload_error: undefined, media_file_error: undefined, merchant_center_error: undefined, multiplier_error: undefined, new_resource_creation_error: undefined, not_empty_error: undefined, null_error: undefined, operator_error: undefined, range_error: undefined, recommendation_error: undefined, recommendation_subscription_error: undefined, region_code_error: undefined, setting_error: undefined, string_format_error: undefined, string_length_error: undefined, operation_access_denied_error: undefined, resource_access_denied_error: undefined, resource_count_limit_exceeded_error: undefined, youtube_video_registration_error: undefined, ad_group_bid_modifier_error: undefined, context_error: undefined, field_error: undefined, shared_set_error: undefined, shared_criterion_error: undefined, campaign_shared_set_error: undefined, conversion_action_error: undefined, conversion_adjustment_upload_error: undefined, conversion_custom_variable_error: undefined, conversion_upload_error: undefined, conversion_value_rule_error: undefined, conversion_value_rule_set_error: undefined, header_error: undefined, database_error: undefined, policy_finding_error: undefined, enum_error: undefined, keyword_plan_error: undefined, keyword_plan_campaign_error: undefined, keyword_plan_campaign_keyword_error: undefined, keyword_plan_ad_group_error: undefined, keyword_plan_ad_group_keyword_error: undefined, keyword_plan_idea_error: undefined, account_budget_proposal_error: undefined, user_list_error: undefined, change_event_error: undefined, change_status_error: undefined, feed_error: undefined, geo_target_constant_suggestion_error: undefined, campaign_draft_error: undefined, feed_item_error: undefined, label_error: undefined, billing_setup_error: undefined, customer_client_link_error: undefined, customer_manager_link_error: undefined, feed_mapping_error: undefined, customer_feed_error: undefined, ad_group_feed_error: undefined, campaign_feed_error: undefined, custom_interest_error: undefined, campaign_experiment_error: undefined, extension_feed_item_error: undefined, ad_parameter_error: undefined, feed_item_validation_error: undefined, extension_setting_error: undefined, feed_item_set_error: undefined, feed_item_set_link_error: undefined, feed_item_target_error: undefined, policy_violation_error: undefined, partial_failure_error: undefined, policy_validation_parameter_error: undefined, size_limit_error: undefined, offline_user_data_job_error: undefined, not_allowlisted_error: undefined, manager_link_error: undefined, currency_code_error: undefined, experiment_error: undefined, access_invitation_error: undefined, reach_plan_error: undefined, invoice_error: undefined, payments_account_error: undefined, time_zone_error: undefined, asset_link_error: undefined, user_data_error: undefined, batch_job_error: undefined, account_link_error: undefined, third_party_app_analytics_link_error: undefined, customer_user_access_error: undefined, custom_audience_error: undefined, audience_error: undefined, search_term_insight_error: undefined, smart_campaign_error: undefined, experiment_arm_error: undefined, audience_insights_error: undefined, product_link_error: undefined, data_link_error: undefined, customer_sk_ad_network_conversion_value_schema_error: undefined, currency_error: undefined, asset_group_signal_error: undefined, product_link_invitation_error: undefined, customer_lifecycle_goal_error: undefined, campaign_lifecycle_goal_error: undefined, identity_verification_error: undefined, user_list_customer_type_error: undefined, shopping_product_error: undefined, automatically_created_asset_removal_error: undefined, shareable_preview_error: undefined, brand_guidelines_migration_error: undefined, }; } exports.ErrorCode = { encode(message, writer = minimal_js_1.default.Writer.create()) { if (message.request_error !== undefined) { writer.uint32(8).int32(message.request_error); } if (message.bidding_strategy_error !== undefined) { writer.uint32(16).int32(message.bidding_strategy_error); } if (message.url_field_error !== undefined) { writer.uint32(24).int32(message.url_field_error); } if (message.list_operation_error !== undefined) { writer.uint32(32).int32(message.list_operation_error); } if (message.query_error !== undefined) { writer.uint32(40).int32(message.query_error); } if (message.mutate_error !== undefined) { writer.uint32(56).int32(message.mutate_error); } if (message.field_mask_error !== undefined) { writer.uint32(64).int32(message.field_mask_error); } if (message.authorization_error !== undefined) { writer.uint32(72).int32(message.authorization_error); } if (message.internal_error !== undefined) { writer.uint32(80).int32(message.internal_error); } if (message.quota_error !== undefined) { writer.uint32(88).int32(message.quota_error); } if (message.ad_error !== undefined) { writer.uint32(96).int32(message.ad_error); } if (message.ad_group_error !== undefined) { writer.uint32(104).int32(message.ad_group_error); } if (message.campaign_budget_error !== undefined) { writer.uint32(112).int32(message.campaign_budget_error); } if (message.campaign_error !== undefined) { writer.uint32(120).int32(message.campaign_error); } if (message.video_campaign_error !== undefined) { writer.uint32(1456).int32(message.video_campaign_error); } if (message.authentication_error !== undefined) { writer.uint32(136).int32(message.authentication_error); } if (message.ad_group_criterion_customizer_error !== undefined) { writer.uint32(1288).int32(message.ad_group_criterion_customizer_error); } if (message.ad_group_criterion_error !== undefined) { writer.uint32(144).int32(message.ad_group_criterion_error); } if (message.ad_group_customizer_error !== undefined) { writer.uint32(1272).int32(message.ad_group_customizer_error); } if (message.ad_customizer_error !== undefined) { writer.uint32(152).int32(message.ad_customizer_error); } if (message.ad_group_ad_error !== undefined) { writer.uint32(168).int32(message.ad_group_ad_error); } if (message.ad_sharing_error !== undefined) { writer.uint32(192).int32(message.ad_sharing_error); } if (message.adx_error !== undefined) { writer.uint32(200).int32(message.adx_error); } if (message.asset_error !== undefined) { writer.uint32(856).int32(message.asset_error); } if (message.asset_group_asset_error !== undefined) { writer.uint32(1192).int32(message.asset_group_asset_error); } if (message.asset_group_listing_group_filter_error !== undefined) { writer.uint32(1240).int32(message.asset_group_listing_group_filter_error); } if (message.asset_group_error !== undefined) { writer.uint32(1184).int32(message.asset_group_error); } if (message.asset_set_asset_error !== undefined) { writer.uint32(1224).int32(message.asset_set_asset_error); } if (message.asset_set_link_error !== undefined) { writer.uint32(1232).int32(message.asset_set_link_error); } if (message.asset_set_error !== undefined) { writer.uint32(1216).int32(message.asset_set_error); } if (message.bidding_error !== undefined) { writer.uint32(208).int32(message.bidding_error); } if (message.campaign_criterion_error !== undefined) { writer.uint32(232).int32(message.campaign_criterion_error); } if (message.campaign_conversion_goal_error !== undefined) { writer.uint32(1328).int32(message.campaign_conversion_goal_error); } if (message.campaign_customizer_error !== undefined) { writer.uint32(1280).int32(message.campaign_customizer_error); } if (message.collection_size_error !== undefined) { writer.uint32(248).int32(message.collection_size_error); } if (message.conversion_goal_campaign_config_error !== undefined) { writer.uint32(1320).int32(message.conversion_goal_campaign_config_error); } if (message.country_code_error !== undefined) { writer.uint32(872).int32(message.country_code_error); } if (message.criterion_error !== undefined) { writer.uint32(256).int32(message.criterion_error); } if (message.custom_conversion_goal_error !== undefined) { writer.uint32(1200).int32(message.custom_conversion_goal_error); } if (message.customer_customizer_error !== undefined) { writer.uint32(1264).int32(message.customer_customizer_error); } if (message.customer_error !== undefined) { writer.uint32(720).int32(message.customer_error); } if (message.customizer_attribute_error !== undefined) { writer.uint32(1208).int32(message.customizer_attribute_error); } if (message.date_error !== undefined) { writer.uint32(264).int32(message.date_error); } if (message.date_range_error !== undefined) { writer.uint32(272).int32(message.date_range_error); } if (message.distinct_error !== undefined) { writer.uint32(280).int32(message.distinct_error); } if (message.feed_attribute_reference_error !== undefined) { writer.uint32(288).int32(message.feed_attribute_reference_error); } if (message.function_error !== undefined) { writer.uint32(296).int32(message.function_error); } if (message.function_parsing_error !== undefined) { writer.uint32(304).int32(message.function_parsing_error); } if (message.id_error !== undefined) { writer.uint32(312).int32(message.id_error); } if (message.image_error !== undefined) { writer.uint32(320).int32(message.image_error); } if (message.language_code_error !== undefined) { writer.uint32(880).int32(message.language_code_error); } if (message.media_bundle_error !== undefined) { writer.uint32(336).int32(message.media_bundle_error); } if (message.media_upload_error !== undefined) { writer.uint32(928).int32(message.media_upload_error); } if (message.media_file_error !== undefined) { writer.uint32(688).int32(message.media_file_error); } if (message.merchant_center_error !== undefined) { writer.uint32(1296).int32(message.merchant_center_error); } if (message.multiplier_error !== undefined) { writer.uint32(352).int32(message.multiplier_error); } if (message.new_resource_creation_error !== undefined) { writer.uint32(360).int32(message.new_resource_creation_error); } if (message.not_empty_error !== undefined) { writer.uint32(368).int32(message.not_empty_error); } if (message.null_error !== undefined) { writer.uint32(376).int32(message.null_error); } if (message.operator_error !== undefined) { writer.uint32(384).int32(message.operator_error); } if (message.range_error !== undefined) { writer.uint32(392).int32(message.range_error); } if (message.recommendation_error !== undefined) { writer.uint32(464).int32(message.recommendation_error); } if (message.recommendation_subscription_error !== undefined) { writer.uint32(1440).int32(message.recommendation_subscription_error); } if (message.region_code_error !== undefined) { writer.uint32(408).int32(message.region_code_error); } if (message.setting_error !== undefined) { writer.uint32(416).int32(message.setting_error); } if (message.string_format_error !== undefined) { writer.uint32(424).int32(message.string_format_error); } if (message.string_length_error !== undefined) { writer.uint32(432).int32(message.string_length_error); } if (message.operation_access_denied_error !== undefined) { writer.uint32(440).int32(message.operation_access_denied_error); } if (message.resource_access_denied_error !== undefined) { writer.uint32(448).int32(message.resource_access_denied_error); } if (message.resource_count_limit_exceeded_error !== undefined) { writer.uint32(456).int32(message.resource_count_limit_exceeded_error); } if (message.youtube_video_registration_error !== undefined) { writer.uint32(936).int32(message.youtube_video_registration_error); } if (message.ad_group_bid_modifier_error !== undefined) { writer.uint32(472).int32(message.ad_group_bid_modifier_error); } if (message.context_error !== undefined) { writer.uint32(480).int32(message.context_error); } if (message.field_error !== undefined) { writer.uint32(488).int32(message.field_error); } if (message.shared_set_error !== undefined) { writer.uint32(496).int32(message.shared_set_error); } if (message.shared_criterion_error !== undefined) { writer.uint32(504).int32(message.shared_criterion_error); } if (message.campaign_shared_set_error !== undefined) { writer.uint32(512).int32(message.campaign_shared_set_error); } if (message.conversion_action_error !== undefined) { writer.uint32(520).int32(message.conversion_action_error); } if (message.conversion_adjustment_upload_error !== undefined) { writer.uint32(920).int32(message.conversion_adjustment_upload_error); } if (message.conversion_custom_variable_error !== undefined) { writer.uint32(1144).int32(message.conversion_custom_variable_error); } if (message.conversion_upload_error !== undefined) { writer.uint32(888).int32(message.conversion_upload_error); } if (message.conversion_value_rule_error !== undefined) { writer.uint32(1160).int32(message.conversion_value_rule_error); } if (message.conversion_value_rule_set_error !== undefined) { writer.uint32(1168).int32(message.conversion_value_rule_set_error); } if (message.header_error !== undefined) { writer.uint32(528).int32(message.header_error); } if (message.database_error !== undefined) { writer.uint32(536).int32(message.database_error); } if (message.policy_finding_error !== undefined) { writer.uint32(544).int32(message.policy_finding_error); } if (message.enum_error !== undefined) { writer.uint32(560).int32(message.enum_error); } if (message.keyword_plan_error !== undefined) { writer.uint32(568).int32(message.keyword_plan_error); } if (message.keyword_plan_campaign_error !== undefined) { writer.uint32(576).int32(message.keyword_plan_campaign_error); } if (message.keyword_plan_campaign_keyword_error !== undefined) { writer.uint32(1056).int32(message.keyword_plan_campaign_keyword_error); } if (message.keyword_plan_ad_group_error !== undefined) { writer.uint32(592).int32(message.keyword_plan_ad_group_error); } if (message.keyword_plan_ad_group_keyword_error !== undefined) { writer.uint32(1064).int32(message.keyword_plan_ad_group_keyword_error); } if (message.keyword_plan_idea_error !== undefined) { writer.uint32(608).int32(message.keyword_plan_idea_error); } if (message.account_budget_proposal_error !== undefined) { writer.uint32(616).int32(message.account_budget_proposal_error); } if (message.user_list_error !== undefined) { writer.uint32(624).int32(message.user_list_error); } if (message.change_event_error !== undefined) { writer.uint32(1088).int32(message.change_event_error); } if (message.change_status_error !== undefined) { writer.uint32(632).int32(message.change_status_error); } if (message.feed_error !== undefined) { writer.uint32(640).int32(message.feed_error); } if (message.geo_target_constant_suggestion_error !== undefined) { writer.uint32(648).int32(message.geo_target_constant_suggestion_error); } if (message.campaign_draft_error !== undefined) { writer.uint32(656).int32(message.campaign_draft_error); } if (message.feed_item_error !== undefined) { writer.uint32(664).int32(message.feed_item_error); } if (message.label_error !== undefined) { writer.uint32(672).int32(message.label_error); } if (message.billing_setup_error !== undefined) { writer.uint32(696).int32(message.billing_setup_error); } if (message.customer_client_link_error !== undefined) { writer.uint32(704).int32(message.customer_client_link_error); } if (message.customer_manager_link_error !== undefined) { writer.uint32(728).int32(message.customer_manager_link_error); } if (message.feed_mapping_error !== undefined) { writer.uint32(736).int32(message.feed_mapping_error); } if (message.customer_feed_error !== undefined) { writer.uint32(744).int32(message.customer_feed_error); } if (message.ad_group_feed_error !== undefined) { writer.uint32(752).int32(message.ad_group_feed_error); } if (message.campaign_feed_error !== undefined) { writer.uint32(768).int32(message.campaign_feed_error); } if (message.custom_interest_error !== undefined) { writer.uint32(776).int32(message.custom_interest_error); } if (message.campaign_experiment_error !== undefined) { writer.uint32(784).int32(message.campaign_experiment_error); } if (message.extension_feed_item_error !== undefined) { writer.uint32(800).int32(message.extension_feed_item_error); } if (message.ad_parameter_error !== undefined) { writer.uint32(808).int32(message.ad_parameter_error); } if (message.feed_item_validation_error !== undefined) { writer.uint32(816).int32(message.feed_item_validation_error); } if (message.extension_setting_error !== undefined) { writer.uint32(824).int32(message.extension_setting_error); } if (message.feed_item_set_error !== undefined) { writer.uint32(1120).int32(message.feed_item_set_error); } if (message.feed_item_set_link_error !== undefined) { writer.uint32(1128).int32(message.feed_item_set_link_error); } if (message.feed_item_target_error !== undefined) { writer.uint32(832).int32(message.feed_item_target_error); } if (message.policy_violation_error !== undefined) { writer.uint32(840).int32(message.policy_violation_error); } if (message.partial_failure_error !== undefined) { writer.uint32(896).int32(message.partial_failure_error); } if (message.policy_validation_parameter_error !== undefined) { writer.uint32(912).int32(message.policy_validation_parameter_error); } if (message.size_limit_error !== undefined) { writer.uint32(944).int32(message.size_limit_error); } if (message.offline_user_data_job_error !== undefined) { writer.uint32(952).int32(message.offline_user_data_job_error); } if (message.not_allowlisted_error !== undefined) { writer.uint32(1096).int32(message.not_allowlisted_error); } if (message.manager_link_error !== undefined) { writer.uint32(968).int32(message.manager_link_error); } if (message.currency_code_error !== undefined) { writer.uint32(976).int32(message.currency_code_error); } if (message.experiment_error !== undefined) { writer.uint32(984).int32(message.experiment_error); } if (message.access_invitation_error !== undefined) { writer.uint32(992).int32(message.access_invitation_error); } if (message.reach_plan_error !== undefined) { writer.uint32(1000).int32(message.reach_plan_error); } if (message.invoice_error !== undefined) { writer.uint32(1008).int32(message.invoice_error); } if (message.payments_account_error !== undefined) { writer.uint32(1016).int32(message.payments_account_error); } if (message.time_zone_error !== undefined) { writer.uint32(1024).int32(message.time_zone_error); } if (message.asset_link_error !== undefined) { writer.uint32(1032).int32(message.asset_link_error); } if (message.user_data_error !== undefined) { writer.uint32(1040).int32(message.user_data_error); } if (message.batch_job_error !== undefined) { writer.uint32(1048).int32(message.batch_job_error); } if (message.account_link_error !== undefined) { writer.uint32(1072).int32(message.account_link_error); } if (message.third_party_app_analytics_link_error !== undefined) { writer.uint32(1080).int32(message.third_party_app_analytics_link_error); } if (message.customer_user_access_error !== undefined) { writer.uint32(1104).int32(message.customer_user_access_error); } if (message.custom_audience_error !== undefined) { writer.uint32(1112).int32(message.custom_audience_error); } if (message.audience_error !== undefined) { writer.uint32(1312).int32(message.audience_error); } if (message.search_term_insight_error !== undefined) { writer.uint32(1392).int32(message.search_term_insight_error); } if (message.smart_campaign_error !== undefined) { writer.uint32(1176).int32(message.smart_campaign_error); } if (message.experiment_arm_error !== undefined) { writer.uint32(1248).int32(message.experiment_arm_error); } if (message.audience_insights_error !== undefined) { writer.uint32(1336).int32(message.audience_insights_error); } if (message.product_link_error !== undefined) { writer.uint32(1352).int32(message.product_link_error); } if (message.data_link_error !== undefined) { writer.uint32(1496).int32(message.data_link_error); } if (message.customer_sk_ad_network_conversion_value_schema_error !== undefined) { writer.uint32(1360).int32(message.customer_sk_ad_network_conversion_value_schema_error); } if (message.currency_error