@htdangkhoa/google-ads
Version:
Google Ads API client for Node.js
779 lines (778 loc) • 205 kB
JavaScript
// 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
/* eslint-disable */
import _m0 from "protobufjs/minimal.js";
import { Duration } from "../../../../protobuf/duration.js";
import { PolicyTopicEntry, PolicyViolationKey } from "../common/policy.js";
import { Value } from "../common/value.js";
import { resourceLimitTypeEnum_ResourceLimitTypeFromJSON, resourceLimitTypeEnum_ResourceLimitTypeToJSON, } from "../enums/resource_limit_type.js";
import { accessInvitationErrorEnum_AccessInvitationErrorFromJSON, accessInvitationErrorEnum_AccessInvitationErrorToJSON, } from "./access_invitation_error.js";
import { accountBudgetProposalErrorEnum_AccountBudgetProposalErrorFromJSON, accountBudgetProposalErrorEnum_AccountBudgetProposalErrorToJSON, } from "./account_budget_proposal_error.js";
import { accountLinkErrorEnum_AccountLinkErrorFromJSON, accountLinkErrorEnum_AccountLinkErrorToJSON, } from "./account_link_error.js";
import { adCustomizerErrorEnum_AdCustomizerErrorFromJSON, adCustomizerErrorEnum_AdCustomizerErrorToJSON, } from "./ad_customizer_error.js";
import { adErrorEnum_AdErrorFromJSON, adErrorEnum_AdErrorToJSON } from "./ad_error.js";
import { adGroupAdErrorEnum_AdGroupAdErrorFromJSON, adGroupAdErrorEnum_AdGroupAdErrorToJSON, } from "./ad_group_ad_error.js";
import { adGroupBidModifierErrorEnum_AdGroupBidModifierErrorFromJSON, adGroupBidModifierErrorEnum_AdGroupBidModifierErrorToJSON, } from "./ad_group_bid_modifier_error.js";
import { adGroupCriterionCustomizerErrorEnum_AdGroupCriterionCustomizerErrorFromJSON, adGroupCriterionCustomizerErrorEnum_AdGroupCriterionCustomizerErrorToJSON, } from "./ad_group_criterion_customizer_error.js";
import { adGroupCriterionErrorEnum_AdGroupCriterionErrorFromJSON, adGroupCriterionErrorEnum_AdGroupCriterionErrorToJSON, } from "./ad_group_criterion_error.js";
import { adGroupCustomizerErrorEnum_AdGroupCustomizerErrorFromJSON, adGroupCustomizerErrorEnum_AdGroupCustomizerErrorToJSON, } from "./ad_group_customizer_error.js";
import { adGroupErrorEnum_AdGroupErrorFromJSON, adGroupErrorEnum_AdGroupErrorToJSON, } from "./ad_group_error.js";
import { adGroupFeedErrorEnum_AdGroupFeedErrorFromJSON, adGroupFeedErrorEnum_AdGroupFeedErrorToJSON, } from "./ad_group_feed_error.js";
import { adParameterErrorEnum_AdParameterErrorFromJSON, adParameterErrorEnum_AdParameterErrorToJSON, } from "./ad_parameter_error.js";
import { adSharingErrorEnum_AdSharingErrorFromJSON, adSharingErrorEnum_AdSharingErrorToJSON, } from "./ad_sharing_error.js";
import { adxErrorEnum_AdxErrorFromJSON, adxErrorEnum_AdxErrorToJSON } from "./adx_error.js";
import { assetErrorEnum_AssetErrorFromJSON, assetErrorEnum_AssetErrorToJSON, } from "./asset_error.js";
import { assetGroupAssetErrorEnum_AssetGroupAssetErrorFromJSON, assetGroupAssetErrorEnum_AssetGroupAssetErrorToJSON, } from "./asset_group_asset_error.js";
import { assetGroupErrorEnum_AssetGroupErrorFromJSON, assetGroupErrorEnum_AssetGroupErrorToJSON, } from "./asset_group_error.js";
import { assetGroupListingGroupFilterErrorEnum_AssetGroupListingGroupFilterErrorFromJSON, assetGroupListingGroupFilterErrorEnum_AssetGroupListingGroupFilterErrorToJSON, } from "./asset_group_listing_group_filter_error.js";
import { assetGroupSignalErrorEnum_AssetGroupSignalErrorFromJSON, assetGroupSignalErrorEnum_AssetGroupSignalErrorToJSON, } from "./asset_group_signal_error.js";
import { assetLinkErrorEnum_AssetLinkErrorFromJSON, assetLinkErrorEnum_AssetLinkErrorToJSON, } from "./asset_link_error.js";
import { assetSetAssetErrorEnum_AssetSetAssetErrorFromJSON, assetSetAssetErrorEnum_AssetSetAssetErrorToJSON, } from "./asset_set_asset_error.js";
import { assetSetErrorEnum_AssetSetErrorFromJSON, assetSetErrorEnum_AssetSetErrorToJSON, } from "./asset_set_error.js";
import { assetSetLinkErrorEnum_AssetSetLinkErrorFromJSON, assetSetLinkErrorEnum_AssetSetLinkErrorToJSON, } from "./asset_set_link_error.js";
import { audienceErrorEnum_AudienceErrorFromJSON, audienceErrorEnum_AudienceErrorToJSON, } from "./audience_error.js";
import { audienceInsightsErrorEnum_AudienceInsightsErrorFromJSON, audienceInsightsErrorEnum_AudienceInsightsErrorToJSON, } from "./audience_insights_error.js";
import { authenticationErrorEnum_AuthenticationErrorFromJSON, authenticationErrorEnum_AuthenticationErrorToJSON, } from "./authentication_error.js";
import { authorizationErrorEnum_AuthorizationErrorFromJSON, authorizationErrorEnum_AuthorizationErrorToJSON, } from "./authorization_error.js";
import { automaticallyCreatedAssetRemovalErrorEnum_AutomaticallyCreatedAssetRemovalErrorFromJSON, automaticallyCreatedAssetRemovalErrorEnum_AutomaticallyCreatedAssetRemovalErrorToJSON, } from "./automatically_created_asset_removal_error.js";
import { batchJobErrorEnum_BatchJobErrorFromJSON, batchJobErrorEnum_BatchJobErrorToJSON, } from "./batch_job_error.js";
import { biddingErrorEnum_BiddingErrorFromJSON, biddingErrorEnum_BiddingErrorToJSON, } from "./bidding_error.js";
import { biddingStrategyErrorEnum_BiddingStrategyErrorFromJSON, biddingStrategyErrorEnum_BiddingStrategyErrorToJSON, } from "./bidding_strategy_error.js";
import { billingSetupErrorEnum_BillingSetupErrorFromJSON, billingSetupErrorEnum_BillingSetupErrorToJSON, } from "./billing_setup_error.js";
import { brandGuidelinesMigrationErrorEnum_BrandGuidelinesMigrationErrorFromJSON, brandGuidelinesMigrationErrorEnum_BrandGuidelinesMigrationErrorToJSON, } from "./brand_guidelines_migration_error.js";
import { campaignBudgetErrorEnum_CampaignBudgetErrorFromJSON, campaignBudgetErrorEnum_CampaignBudgetErrorToJSON, } from "./campaign_budget_error.js";
import { campaignConversionGoalErrorEnum_CampaignConversionGoalErrorFromJSON, campaignConversionGoalErrorEnum_CampaignConversionGoalErrorToJSON, } from "./campaign_conversion_goal_error.js";
import { campaignCriterionErrorEnum_CampaignCriterionErrorFromJSON, campaignCriterionErrorEnum_CampaignCriterionErrorToJSON, } from "./campaign_criterion_error.js";
import { campaignCustomizerErrorEnum_CampaignCustomizerErrorFromJSON, campaignCustomizerErrorEnum_CampaignCustomizerErrorToJSON, } from "./campaign_customizer_error.js";
import { campaignDraftErrorEnum_CampaignDraftErrorFromJSON, campaignDraftErrorEnum_CampaignDraftErrorToJSON, } from "./campaign_draft_error.js";
import { campaignErrorEnum_CampaignErrorFromJSON, campaignErrorEnum_CampaignErrorToJSON, } from "./campaign_error.js";
import { campaignExperimentErrorEnum_CampaignExperimentErrorFromJSON, campaignExperimentErrorEnum_CampaignExperimentErrorToJSON, } from "./campaign_experiment_error.js";
import { campaignFeedErrorEnum_CampaignFeedErrorFromJSON, campaignFeedErrorEnum_CampaignFeedErrorToJSON, } from "./campaign_feed_error.js";
import { campaignLifecycleGoalErrorEnum_CampaignLifecycleGoalErrorFromJSON, campaignLifecycleGoalErrorEnum_CampaignLifecycleGoalErrorToJSON, } from "./campaign_lifecycle_goal_error.js";
import { campaignSharedSetErrorEnum_CampaignSharedSetErrorFromJSON, campaignSharedSetErrorEnum_CampaignSharedSetErrorToJSON, } from "./campaign_shared_set_error.js";
import { changeEventErrorEnum_ChangeEventErrorFromJSON, changeEventErrorEnum_ChangeEventErrorToJSON, } from "./change_event_error.js";
import { changeStatusErrorEnum_ChangeStatusErrorFromJSON, changeStatusErrorEnum_ChangeStatusErrorToJSON, } from "./change_status_error.js";
import { collectionSizeErrorEnum_CollectionSizeErrorFromJSON, collectionSizeErrorEnum_CollectionSizeErrorToJSON, } from "./collection_size_error.js";
import { contextErrorEnum_ContextErrorFromJSON, contextErrorEnum_ContextErrorToJSON, } from "./context_error.js";
import { conversionActionErrorEnum_ConversionActionErrorFromJSON, conversionActionErrorEnum_ConversionActionErrorToJSON, } from "./conversion_action_error.js";
import { conversionAdjustmentUploadErrorEnum_ConversionAdjustmentUploadErrorFromJSON, conversionAdjustmentUploadErrorEnum_ConversionAdjustmentUploadErrorToJSON, } from "./conversion_adjustment_upload_error.js";
import { conversionCustomVariableErrorEnum_ConversionCustomVariableErrorFromJSON, conversionCustomVariableErrorEnum_ConversionCustomVariableErrorToJSON, } from "./conversion_custom_variable_error.js";
import { conversionGoalCampaignConfigErrorEnum_ConversionGoalCampaignConfigErrorFromJSON, conversionGoalCampaignConfigErrorEnum_ConversionGoalCampaignConfigErrorToJSON, } from "./conversion_goal_campaign_config_error.js";
import { conversionUploadErrorEnum_ConversionUploadErrorFromJSON, conversionUploadErrorEnum_ConversionUploadErrorToJSON, } from "./conversion_upload_error.js";
import { conversionValueRuleErrorEnum_ConversionValueRuleErrorFromJSON, conversionValueRuleErrorEnum_ConversionValueRuleErrorToJSON, } from "./conversion_value_rule_error.js";
import { conversionValueRuleSetErrorEnum_ConversionValueRuleSetErrorFromJSON, conversionValueRuleSetErrorEnum_ConversionValueRuleSetErrorToJSON, } from "./conversion_value_rule_set_error.js";
import { countryCodeErrorEnum_CountryCodeErrorFromJSON, countryCodeErrorEnum_CountryCodeErrorToJSON, } from "./country_code_error.js";
import { criterionErrorEnum_CriterionErrorFromJSON, criterionErrorEnum_CriterionErrorToJSON, } from "./criterion_error.js";
import { currencyCodeErrorEnum_CurrencyCodeErrorFromJSON, currencyCodeErrorEnum_CurrencyCodeErrorToJSON, } from "./currency_code_error.js";
import { currencyErrorEnum_CurrencyErrorFromJSON, currencyErrorEnum_CurrencyErrorToJSON, } from "./currency_error.js";
import { customAudienceErrorEnum_CustomAudienceErrorFromJSON, customAudienceErrorEnum_CustomAudienceErrorToJSON, } from "./custom_audience_error.js";
import { customConversionGoalErrorEnum_CustomConversionGoalErrorFromJSON, customConversionGoalErrorEnum_CustomConversionGoalErrorToJSON, } from "./custom_conversion_goal_error.js";
import { customInterestErrorEnum_CustomInterestErrorFromJSON, customInterestErrorEnum_CustomInterestErrorToJSON, } from "./custom_interest_error.js";
import { customerClientLinkErrorEnum_CustomerClientLinkErrorFromJSON, customerClientLinkErrorEnum_CustomerClientLinkErrorToJSON, } from "./customer_client_link_error.js";
import { customerCustomizerErrorEnum_CustomerCustomizerErrorFromJSON, customerCustomizerErrorEnum_CustomerCustomizerErrorToJSON, } from "./customer_customizer_error.js";
import { customerErrorEnum_CustomerErrorFromJSON, customerErrorEnum_CustomerErrorToJSON, } from "./customer_error.js";
import { customerFeedErrorEnum_CustomerFeedErrorFromJSON, customerFeedErrorEnum_CustomerFeedErrorToJSON, } from "./customer_feed_error.js";
import { customerLifecycleGoalErrorEnum_CustomerLifecycleGoalErrorFromJSON, customerLifecycleGoalErrorEnum_CustomerLifecycleGoalErrorToJSON, } from "./customer_lifecycle_goal_error.js";
import { customerManagerLinkErrorEnum_CustomerManagerLinkErrorFromJSON, customerManagerLinkErrorEnum_CustomerManagerLinkErrorToJSON, } from "./customer_manager_link_error.js";
import { customerSkAdNetworkConversionValueSchemaErrorEnum_CustomerSkAdNetworkConversionValueSchemaErrorFromJSON, customerSkAdNetworkConversionValueSchemaErrorEnum_CustomerSkAdNetworkConversionValueSchemaErrorToJSON, } from "./customer_sk_ad_network_conversion_value_schema_error.js";
import { customerUserAccessErrorEnum_CustomerUserAccessErrorFromJSON, customerUserAccessErrorEnum_CustomerUserAccessErrorToJSON, } from "./customer_user_access_error.js";
import { customizerAttributeErrorEnum_CustomizerAttributeErrorFromJSON, customizerAttributeErrorEnum_CustomizerAttributeErrorToJSON, } from "./customizer_attribute_error.js";
import { dataLinkErrorEnum_DataLinkErrorFromJSON, dataLinkErrorEnum_DataLinkErrorToJSON, } from "./data_link_error.js";
import { databaseErrorEnum_DatabaseErrorFromJSON, databaseErrorEnum_DatabaseErrorToJSON, } from "./database_error.js";
import { dateErrorEnum_DateErrorFromJSON, dateErrorEnum_DateErrorToJSON, } from "./date_error.js";
import { dateRangeErrorEnum_DateRangeErrorFromJSON, dateRangeErrorEnum_DateRangeErrorToJSON, } from "./date_range_error.js";
import { distinctErrorEnum_DistinctErrorFromJSON, distinctErrorEnum_DistinctErrorToJSON, } from "./distinct_error.js";
import { enumErrorEnum_EnumErrorFromJSON, enumErrorEnum_EnumErrorToJSON, } from "./enum_error.js";
import { experimentArmErrorEnum_ExperimentArmErrorFromJSON, experimentArmErrorEnum_ExperimentArmErrorToJSON, } from "./experiment_arm_error.js";
import { experimentErrorEnum_ExperimentErrorFromJSON, experimentErrorEnum_ExperimentErrorToJSON, } from "./experiment_error.js";
import { extensionFeedItemErrorEnum_ExtensionFeedItemErrorFromJSON, extensionFeedItemErrorEnum_ExtensionFeedItemErrorToJSON, } from "./extension_feed_item_error.js";
import { extensionSettingErrorEnum_ExtensionSettingErrorFromJSON, extensionSettingErrorEnum_ExtensionSettingErrorToJSON, } from "./extension_setting_error.js";
import { feedAttributeReferenceErrorEnum_FeedAttributeReferenceErrorFromJSON, feedAttributeReferenceErrorEnum_FeedAttributeReferenceErrorToJSON, } from "./feed_attribute_reference_error.js";
import { feedErrorEnum_FeedErrorFromJSON, feedErrorEnum_FeedErrorToJSON, } from "./feed_error.js";
import { feedItemErrorEnum_FeedItemErrorFromJSON, feedItemErrorEnum_FeedItemErrorToJSON, } from "./feed_item_error.js";
import { feedItemSetErrorEnum_FeedItemSetErrorFromJSON, feedItemSetErrorEnum_FeedItemSetErrorToJSON, } from "./feed_item_set_error.js";
import { feedItemSetLinkErrorEnum_FeedItemSetLinkErrorFromJSON, feedItemSetLinkErrorEnum_FeedItemSetLinkErrorToJSON, } from "./feed_item_set_link_error.js";
import { feedItemTargetErrorEnum_FeedItemTargetErrorFromJSON, feedItemTargetErrorEnum_FeedItemTargetErrorToJSON, } from "./feed_item_target_error.js";
import { feedItemValidationErrorEnum_FeedItemValidationErrorFromJSON, feedItemValidationErrorEnum_FeedItemValidationErrorToJSON, } from "./feed_item_validation_error.js";
import { feedMappingErrorEnum_FeedMappingErrorFromJSON, feedMappingErrorEnum_FeedMappingErrorToJSON, } from "./feed_mapping_error.js";
import { fieldErrorEnum_FieldErrorFromJSON, fieldErrorEnum_FieldErrorToJSON, } from "./field_error.js";
import { fieldMaskErrorEnum_FieldMaskErrorFromJSON, fieldMaskErrorEnum_FieldMaskErrorToJSON, } from "./field_mask_error.js";
import { functionErrorEnum_FunctionErrorFromJSON, functionErrorEnum_FunctionErrorToJSON, } from "./function_error.js";
import { functionParsingErrorEnum_FunctionParsingErrorFromJSON, functionParsingErrorEnum_FunctionParsingErrorToJSON, } from "./function_parsing_error.js";
import { geoTargetConstantSuggestionErrorEnum_GeoTargetConstantSuggestionErrorFromJSON, geoTargetConstantSuggestionErrorEnum_GeoTargetConstantSuggestionErrorToJSON, } from "./geo_target_constant_suggestion_error.js";
import { headerErrorEnum_HeaderErrorFromJSON, headerErrorEnum_HeaderErrorToJSON, } from "./header_error.js";
import { idErrorEnum_IdErrorFromJSON, idErrorEnum_IdErrorToJSON } from "./id_error.js";
import { identityVerificationErrorEnum_IdentityVerificationErrorFromJSON, identityVerificationErrorEnum_IdentityVerificationErrorToJSON, } from "./identity_verification_error.js";
import { imageErrorEnum_ImageErrorFromJSON, imageErrorEnum_ImageErrorToJSON, } from "./image_error.js";
import { internalErrorEnum_InternalErrorFromJSON, internalErrorEnum_InternalErrorToJSON, } from "./internal_error.js";
import { invoiceErrorEnum_InvoiceErrorFromJSON, invoiceErrorEnum_InvoiceErrorToJSON, } from "./invoice_error.js";
import { keywordPlanAdGroupErrorEnum_KeywordPlanAdGroupErrorFromJSON, keywordPlanAdGroupErrorEnum_KeywordPlanAdGroupErrorToJSON, } from "./keyword_plan_ad_group_error.js";
import { keywordPlanAdGroupKeywordErrorEnum_KeywordPlanAdGroupKeywordErrorFromJSON, keywordPlanAdGroupKeywordErrorEnum_KeywordPlanAdGroupKeywordErrorToJSON, } from "./keyword_plan_ad_group_keyword_error.js";
import { keywordPlanCampaignErrorEnum_KeywordPlanCampaignErrorFromJSON, keywordPlanCampaignErrorEnum_KeywordPlanCampaignErrorToJSON, } from "./keyword_plan_campaign_error.js";
import { keywordPlanCampaignKeywordErrorEnum_KeywordPlanCampaignKeywordErrorFromJSON, keywordPlanCampaignKeywordErrorEnum_KeywordPlanCampaignKeywordErrorToJSON, } from "./keyword_plan_campaign_keyword_error.js";
import { keywordPlanErrorEnum_KeywordPlanErrorFromJSON, keywordPlanErrorEnum_KeywordPlanErrorToJSON, } from "./keyword_plan_error.js";
import { keywordPlanIdeaErrorEnum_KeywordPlanIdeaErrorFromJSON, keywordPlanIdeaErrorEnum_KeywordPlanIdeaErrorToJSON, } from "./keyword_plan_idea_error.js";
import { labelErrorEnum_LabelErrorFromJSON, labelErrorEnum_LabelErrorToJSON, } from "./label_error.js";
import { languageCodeErrorEnum_LanguageCodeErrorFromJSON, languageCodeErrorEnum_LanguageCodeErrorToJSON, } from "./language_code_error.js";
import { listOperationErrorEnum_ListOperationErrorFromJSON, listOperationErrorEnum_ListOperationErrorToJSON, } from "./list_operation_error.js";
import { managerLinkErrorEnum_ManagerLinkErrorFromJSON, managerLinkErrorEnum_ManagerLinkErrorToJSON, } from "./manager_link_error.js";
import { mediaBundleErrorEnum_MediaBundleErrorFromJSON, mediaBundleErrorEnum_MediaBundleErrorToJSON, } from "./media_bundle_error.js";
import { mediaFileErrorEnum_MediaFileErrorFromJSON, mediaFileErrorEnum_MediaFileErrorToJSON, } from "./media_file_error.js";
import { mediaUploadErrorEnum_MediaUploadErrorFromJSON, mediaUploadErrorEnum_MediaUploadErrorToJSON, } from "./media_upload_error.js";
import { merchantCenterErrorEnum_MerchantCenterErrorFromJSON, merchantCenterErrorEnum_MerchantCenterErrorToJSON, } from "./merchant_center_error.js";
import { multiplierErrorEnum_MultiplierErrorFromJSON, multiplierErrorEnum_MultiplierErrorToJSON, } from "./multiplier_error.js";
import { mutateErrorEnum_MutateErrorFromJSON, mutateErrorEnum_MutateErrorToJSON, } from "./mutate_error.js";
import { newResourceCreationErrorEnum_NewResourceCreationErrorFromJSON, newResourceCreationErrorEnum_NewResourceCreationErrorToJSON, } from "./new_resource_creation_error.js";
import { notAllowlistedErrorEnum_NotAllowlistedErrorFromJSON, notAllowlistedErrorEnum_NotAllowlistedErrorToJSON, } from "./not_allowlisted_error.js";
import { notEmptyErrorEnum_NotEmptyErrorFromJSON, notEmptyErrorEnum_NotEmptyErrorToJSON, } from "./not_empty_error.js";
import { nullErrorEnum_NullErrorFromJSON, nullErrorEnum_NullErrorToJSON, } from "./null_error.js";
import { offlineUserDataJobErrorEnum_OfflineUserDataJobErrorFromJSON, offlineUserDataJobErrorEnum_OfflineUserDataJobErrorToJSON, } from "./offline_user_data_job_error.js";
import { operationAccessDeniedErrorEnum_OperationAccessDeniedErrorFromJSON, operationAccessDeniedErrorEnum_OperationAccessDeniedErrorToJSON, } from "./operation_access_denied_error.js";
import { operatorErrorEnum_OperatorErrorFromJSON, operatorErrorEnum_OperatorErrorToJSON, } from "./operator_error.js";
import { partialFailureErrorEnum_PartialFailureErrorFromJSON, partialFailureErrorEnum_PartialFailureErrorToJSON, } from "./partial_failure_error.js";
import { paymentsAccountErrorEnum_PaymentsAccountErrorFromJSON, paymentsAccountErrorEnum_PaymentsAccountErrorToJSON, } from "./payments_account_error.js";
import { policyFindingErrorEnum_PolicyFindingErrorFromJSON, policyFindingErrorEnum_PolicyFindingErrorToJSON, } from "./policy_finding_error.js";
import { policyValidationParameterErrorEnum_PolicyValidationParameterErrorFromJSON, policyValidationParameterErrorEnum_PolicyValidationParameterErrorToJSON, } from "./policy_validation_parameter_error.js";
import { policyViolationErrorEnum_PolicyViolationErrorFromJSON, policyViolationErrorEnum_PolicyViolationErrorToJSON, } from "./policy_violation_error.js";
import { productLinkErrorEnum_ProductLinkErrorFromJSON, productLinkErrorEnum_ProductLinkErrorToJSON, } from "./product_link_error.js";
import { productLinkInvitationErrorEnum_ProductLinkInvitationErrorFromJSON, productLinkInvitationErrorEnum_ProductLinkInvitationErrorToJSON, } from "./product_link_invitation_error.js";
import { queryErrorEnum_QueryErrorFromJSON, queryErrorEnum_QueryErrorToJSON, } from "./query_error.js";
import { quotaErrorEnum_QuotaErrorFromJSON, quotaErrorEnum_QuotaErrorToJSON, } from "./quota_error.js";
import { rangeErrorEnum_RangeErrorFromJSON, rangeErrorEnum_RangeErrorToJSON, } from "./range_error.js";
import { reachPlanErrorEnum_ReachPlanErrorFromJSON, reachPlanErrorEnum_ReachPlanErrorToJSON, } from "./reach_plan_error.js";
import { recommendationErrorEnum_RecommendationErrorFromJSON, recommendationErrorEnum_RecommendationErrorToJSON, } from "./recommendation_error.js";
import { recommendationSubscriptionErrorEnum_RecommendationSubscriptionErrorFromJSON, recommendationSubscriptionErrorEnum_RecommendationSubscriptionErrorToJSON, } from "./recommendation_subscription_error.js";
import { regionCodeErrorEnum_RegionCodeErrorFromJSON, regionCodeErrorEnum_RegionCodeErrorToJSON, } from "./region_code_error.js";
import { requestErrorEnum_RequestErrorFromJSON, requestErrorEnum_RequestErrorToJSON, } from "./request_error.js";
import { resourceAccessDeniedErrorEnum_ResourceAccessDeniedErrorFromJSON, resourceAccessDeniedErrorEnum_ResourceAccessDeniedErrorToJSON, } from "./resource_access_denied_error.js";
import { resourceCountLimitExceededErrorEnum_ResourceCountLimitExceededErrorFromJSON, resourceCountLimitExceededErrorEnum_ResourceCountLimitExceededErrorToJSON, } from "./resource_count_limit_exceeded_error.js";
import { searchTermInsightErrorEnum_SearchTermInsightErrorFromJSON, searchTermInsightErrorEnum_SearchTermInsightErrorToJSON, } from "./search_term_insight_error.js";
import { settingErrorEnum_SettingErrorFromJSON, settingErrorEnum_SettingErrorToJSON, } from "./setting_error.js";
import { shareablePreviewErrorEnum_ShareablePreviewErrorFromJSON, shareablePreviewErrorEnum_ShareablePreviewErrorToJSON, } from "./shareable_preview_error.js";
import { sharedCriterionErrorEnum_SharedCriterionErrorFromJSON, sharedCriterionErrorEnum_SharedCriterionErrorToJSON, } from "./shared_criterion_error.js";
import { sharedSetErrorEnum_SharedSetErrorFromJSON, sharedSetErrorEnum_SharedSetErrorToJSON, } from "./shared_set_error.js";
import { shoppingProductErrorEnum_ShoppingProductErrorFromJSON, shoppingProductErrorEnum_ShoppingProductErrorToJSON, } from "./shopping_product_error.js";
import { sizeLimitErrorEnum_SizeLimitErrorFromJSON, sizeLimitErrorEnum_SizeLimitErrorToJSON, } from "./size_limit_error.js";
import { smartCampaignErrorEnum_SmartCampaignErrorFromJSON, smartCampaignErrorEnum_SmartCampaignErrorToJSON, } from "./smart_campaign_error.js";
import { stringFormatErrorEnum_StringFormatErrorFromJSON, stringFormatErrorEnum_StringFormatErrorToJSON, } from "./string_format_error.js";
import { stringLengthErrorEnum_StringLengthErrorFromJSON, stringLengthErrorEnum_StringLengthErrorToJSON, } from "./string_length_error.js";
import { thirdPartyAppAnalyticsLinkErrorEnum_ThirdPartyAppAnalyticsLinkErrorFromJSON, thirdPartyAppAnalyticsLinkErrorEnum_ThirdPartyAppAnalyticsLinkErrorToJSON, } from "./third_party_app_analytics_link_error.js";
import { timeZoneErrorEnum_TimeZoneErrorFromJSON, timeZoneErrorEnum_TimeZoneErrorToJSON, } from "./time_zone_error.js";
import { urlFieldErrorEnum_UrlFieldErrorFromJSON, urlFieldErrorEnum_UrlFieldErrorToJSON, } from "./url_field_error.js";
import { userDataErrorEnum_UserDataErrorFromJSON, userDataErrorEnum_UserDataErrorToJSON, } from "./user_data_error.js";
import { userListCustomerTypeErrorEnum_UserListCustomerTypeErrorFromJSON, userListCustomerTypeErrorEnum_UserListCustomerTypeErrorToJSON, } from "./user_list_customer_type_error.js";
import { userListErrorEnum_UserListErrorFromJSON, userListErrorEnum_UserListErrorToJSON, } from "./user_list_error.js";
import { videoCampaignErrorEnum_VideoCampaignErrorFromJSON, videoCampaignErrorEnum_VideoCampaignErrorToJSON, } from "./video_campaign_error.js";
import { youtubeVideoRegistrationErrorEnum_YoutubeVideoRegistrationErrorFromJSON, youtubeVideoRegistrationErrorEnum_YoutubeVideoRegistrationErrorToJSON, } from "./youtube_video_registration_error.js";
/** Enum of possible scopes that quota buckets belong to. */
export 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 || (QuotaErrorDetails_QuotaRateScope = {}));
export 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;
}
}
export 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: "" };
}
export const GoogleAdsFailure = {
encode(message, writer = _m0.Writer.create()) {
if (message.errors !== undefined && message.errors.length !== 0) {
for (const v of message.errors) {
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 _m0.Reader ? input : _m0.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(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) => 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) => GoogleAdsError.toJSON(e));
}
if (message.request_id !== undefined && message.request_id !== "") {
obj.request_id = message.request_id;
}
return obj;
},
create(base) {
return 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) => 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 };
}
export const GoogleAdsError = {
encode(message, writer = _m0.Writer.create()) {
if (message.error_code !== undefined) {
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.encode(message.trigger, writer.uint32(26).fork()).ldelim();
}
if (message.location !== undefined) {
ErrorLocation.encode(message.location, writer.uint32(34).fork()).ldelim();
}
if (message.details !== undefined) {
ErrorDetails.encode(message.details, writer.uint32(42).fork()).ldelim();
}
return writer;
},
decode(input, length) {
const reader = input instanceof _m0.Reader ? input : _m0.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 = 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.decode(reader, reader.uint32());
continue;
case 4:
if (tag !== 34) {
break;
}
message.location = ErrorLocation.decode(reader, reader.uint32());
continue;
case 5:
if (tag !== 42) {
break;
}
message.details = 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) ? ErrorCode.fromJSON(object.error_code) : undefined,
message: isSet(object.message) ? globalThis.String(object.message) : "",
trigger: isSet(object.trigger) ? Value.fromJSON(object.trigger) : undefined,
location: isSet(object.location) ? ErrorLocation.fromJSON(object.location) : undefined,
details: isSet(object.details) ? ErrorDetails.fromJSON(object.details) : undefined,
};
},
toJSON(message) {
const obj = {};
if (message.error_code !== undefined) {
obj.error_code = ErrorCode.toJSON(message.error_code);
}
if (message.message !== undefined && message.message !== "") {
obj.message = message.message;
}
if (message.trigger !== undefined) {
obj.trigger = Value.toJSON(message.trigger);
}
if (message.location !== undefined) {
obj.location = ErrorLocation.toJSON(message.location);
}
if (message.details !== undefined) {
obj.details = ErrorDetails.toJSON(message.details);
}
return obj;
},
create(base) {
return 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)
? 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.fromPartial(object.trigger)
: undefined;
message.location = (object.location !== undefined && object.location !== null)
? ErrorLocation.fromPartial(object.location)
: undefined;
message.details = (object.details !== undefined && object.details !== null)
? 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,
};
}
export const ErrorCode = {
encode(message, writer = _m0.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);
}