Class SmartCampaignSetting.Builder

  • All Implemented Interfaces:
    SmartCampaignSettingOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    SmartCampaignSetting

    public static final class SmartCampaignSetting.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SmartCampaignSetting.Builder>
    implements SmartCampaignSettingOrBuilder
     Settings for configuring Smart campaigns.
     
    Protobuf type google.ads.googleads.v15.resources.SmartCampaignSetting
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SmartCampaignSetting.Builder>
      • clear

        public SmartCampaignSetting.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<SmartCampaignSetting.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SmartCampaignSetting.Builder>
      • getDefaultInstanceForType

        public SmartCampaignSetting getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public SmartCampaignSetting build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public SmartCampaignSetting buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public SmartCampaignSetting.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<SmartCampaignSetting.Builder>
      • setField

        public SmartCampaignSetting.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<SmartCampaignSetting.Builder>
      • clearField

        public SmartCampaignSetting.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SmartCampaignSetting.Builder>
      • clearOneof

        public SmartCampaignSetting.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SmartCampaignSetting.Builder>
      • setRepeatedField

        public SmartCampaignSetting.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SmartCampaignSetting.Builder>
      • addRepeatedField

        public SmartCampaignSetting.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SmartCampaignSetting.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SmartCampaignSetting.Builder>
      • mergeFrom

        public SmartCampaignSetting.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SmartCampaignSetting.Builder>
        Throws:
        java.io.IOException
      • getResourceName

        public java.lang.String getResourceName()
         Immutable. The resource name of the Smart campaign setting.
         Smart campaign setting resource names have the form:
        
         `customers/{customer_id}/smartCampaignSettings/{campaign_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceName in interface SmartCampaignSettingOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         Immutable. The resource name of the Smart campaign setting.
         Smart campaign setting resource names have the form:
        
         `customers/{customer_id}/smartCampaignSettings/{campaign_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceNameBytes in interface SmartCampaignSettingOrBuilder
        Returns:
        The bytes for resourceName.
      • setResourceName

        public SmartCampaignSetting.Builder setResourceName​(java.lang.String value)
         Immutable. The resource name of the Smart campaign setting.
         Smart campaign setting resource names have the form:
        
         `customers/{customer_id}/smartCampaignSettings/{campaign_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The resourceName to set.
        Returns:
        This builder for chaining.
      • clearResourceName

        public SmartCampaignSetting.Builder clearResourceName()
         Immutable. The resource name of the Smart campaign setting.
         Smart campaign setting resource names have the form:
        
         `customers/{customer_id}/smartCampaignSettings/{campaign_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setResourceNameBytes

        public SmartCampaignSetting.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         Immutable. The resource name of the Smart campaign setting.
         Smart campaign setting resource names have the form:
        
         `customers/{customer_id}/smartCampaignSettings/{campaign_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for resourceName to set.
        Returns:
        This builder for chaining.
      • getCampaign

        public java.lang.String getCampaign()
         Output only. The campaign to which these settings apply.
         
        string campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getCampaign in interface SmartCampaignSettingOrBuilder
        Returns:
        The campaign.
      • getCampaignBytes

        public com.google.protobuf.ByteString getCampaignBytes()
         Output only. The campaign to which these settings apply.
         
        string campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getCampaignBytes in interface SmartCampaignSettingOrBuilder
        Returns:
        The bytes for campaign.
      • setCampaign

        public SmartCampaignSetting.Builder setCampaign​(java.lang.String value)
         Output only. The campaign to which these settings apply.
         
        string campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The campaign to set.
        Returns:
        This builder for chaining.
      • clearCampaign

        public SmartCampaignSetting.Builder clearCampaign()
         Output only. The campaign to which these settings apply.
         
        string campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setCampaignBytes

        public SmartCampaignSetting.Builder setCampaignBytes​(com.google.protobuf.ByteString value)
         Output only. The campaign to which these settings apply.
         
        string campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for campaign to set.
        Returns:
        This builder for chaining.
      • hasPhoneNumber

        public boolean hasPhoneNumber()
         Phone number and country code.
         
        .google.ads.googleads.v15.resources.SmartCampaignSetting.PhoneNumber phone_number = 3;
        Specified by:
        hasPhoneNumber in interface SmartCampaignSettingOrBuilder
        Returns:
        Whether the phoneNumber field is set.
      • clearPhoneNumber

        public SmartCampaignSetting.Builder clearPhoneNumber()
         Phone number and country code.
         
        .google.ads.googleads.v15.resources.SmartCampaignSetting.PhoneNumber phone_number = 3;
      • getPhoneNumberBuilder

        public SmartCampaignSetting.PhoneNumber.Builder getPhoneNumberBuilder()
         Phone number and country code.
         
        .google.ads.googleads.v15.resources.SmartCampaignSetting.PhoneNumber phone_number = 3;
      • getAdvertisingLanguageCode

        public java.lang.String getAdvertisingLanguageCode()
         The language code to advertise in from the set of
         [supported language codes]
         (https://developers.google.com/google-ads/api/reference/data/codes-formats#languages).
         
        string advertising_language_code = 7;
        Specified by:
        getAdvertisingLanguageCode in interface SmartCampaignSettingOrBuilder
        Returns:
        The advertisingLanguageCode.
      • getAdvertisingLanguageCodeBytes

        public com.google.protobuf.ByteString getAdvertisingLanguageCodeBytes()
         The language code to advertise in from the set of
         [supported language codes]
         (https://developers.google.com/google-ads/api/reference/data/codes-formats#languages).
         
        string advertising_language_code = 7;
        Specified by:
        getAdvertisingLanguageCodeBytes in interface SmartCampaignSettingOrBuilder
        Returns:
        The bytes for advertisingLanguageCode.
      • setAdvertisingLanguageCode

        public SmartCampaignSetting.Builder setAdvertisingLanguageCode​(java.lang.String value)
         The language code to advertise in from the set of
         [supported language codes]
         (https://developers.google.com/google-ads/api/reference/data/codes-formats#languages).
         
        string advertising_language_code = 7;
        Parameters:
        value - The advertisingLanguageCode to set.
        Returns:
        This builder for chaining.
      • clearAdvertisingLanguageCode

        public SmartCampaignSetting.Builder clearAdvertisingLanguageCode()
         The language code to advertise in from the set of
         [supported language codes]
         (https://developers.google.com/google-ads/api/reference/data/codes-formats#languages).
         
        string advertising_language_code = 7;
        Returns:
        This builder for chaining.
      • setAdvertisingLanguageCodeBytes

        public SmartCampaignSetting.Builder setAdvertisingLanguageCodeBytes​(com.google.protobuf.ByteString value)
         The language code to advertise in from the set of
         [supported language codes]
         (https://developers.google.com/google-ads/api/reference/data/codes-formats#languages).
         
        string advertising_language_code = 7;
        Parameters:
        value - The bytes for advertisingLanguageCode to set.
        Returns:
        This builder for chaining.
      • hasFinalUrl

        public boolean hasFinalUrl()
         The user-provided landing page URL for this Campaign.
         
        string final_url = 8;
        Specified by:
        hasFinalUrl in interface SmartCampaignSettingOrBuilder
        Returns:
        Whether the finalUrl field is set.
      • getFinalUrl

        public java.lang.String getFinalUrl()
         The user-provided landing page URL for this Campaign.
         
        string final_url = 8;
        Specified by:
        getFinalUrl in interface SmartCampaignSettingOrBuilder
        Returns:
        The finalUrl.
      • getFinalUrlBytes

        public com.google.protobuf.ByteString getFinalUrlBytes()
         The user-provided landing page URL for this Campaign.
         
        string final_url = 8;
        Specified by:
        getFinalUrlBytes in interface SmartCampaignSettingOrBuilder
        Returns:
        The bytes for finalUrl.
      • setFinalUrl

        public SmartCampaignSetting.Builder setFinalUrl​(java.lang.String value)
         The user-provided landing page URL for this Campaign.
         
        string final_url = 8;
        Parameters:
        value - The finalUrl to set.
        Returns:
        This builder for chaining.
      • clearFinalUrl

        public SmartCampaignSetting.Builder clearFinalUrl()
         The user-provided landing page URL for this Campaign.
         
        string final_url = 8;
        Returns:
        This builder for chaining.
      • setFinalUrlBytes

        public SmartCampaignSetting.Builder setFinalUrlBytes​(com.google.protobuf.ByteString value)
         The user-provided landing page URL for this Campaign.
         
        string final_url = 8;
        Parameters:
        value - The bytes for finalUrl to set.
        Returns:
        This builder for chaining.
      • hasAdOptimizedBusinessProfileSetting

        public boolean hasAdOptimizedBusinessProfileSetting()
         Settings for configuring a business profile optimized for ads as this
         campaign's landing page.  This campaign must be linked to a business
         profile to use this option.  For more information on this feature,
         consult https://support.google.com/google-ads/answer/9827068.
         
        .google.ads.googleads.v15.resources.SmartCampaignSetting.AdOptimizedBusinessProfileSetting ad_optimized_business_profile_setting = 9;
        Specified by:
        hasAdOptimizedBusinessProfileSetting in interface SmartCampaignSettingOrBuilder
        Returns:
        Whether the adOptimizedBusinessProfileSetting field is set.
      • getAdOptimizedBusinessProfileSetting

        public SmartCampaignSetting.AdOptimizedBusinessProfileSetting getAdOptimizedBusinessProfileSetting()
         Settings for configuring a business profile optimized for ads as this
         campaign's landing page.  This campaign must be linked to a business
         profile to use this option.  For more information on this feature,
         consult https://support.google.com/google-ads/answer/9827068.
         
        .google.ads.googleads.v15.resources.SmartCampaignSetting.AdOptimizedBusinessProfileSetting ad_optimized_business_profile_setting = 9;
        Specified by:
        getAdOptimizedBusinessProfileSetting in interface SmartCampaignSettingOrBuilder
        Returns:
        The adOptimizedBusinessProfileSetting.
      • setAdOptimizedBusinessProfileSetting

        public SmartCampaignSetting.Builder setAdOptimizedBusinessProfileSetting​(SmartCampaignSetting.AdOptimizedBusinessProfileSetting value)
         Settings for configuring a business profile optimized for ads as this
         campaign's landing page.  This campaign must be linked to a business
         profile to use this option.  For more information on this feature,
         consult https://support.google.com/google-ads/answer/9827068.
         
        .google.ads.googleads.v15.resources.SmartCampaignSetting.AdOptimizedBusinessProfileSetting ad_optimized_business_profile_setting = 9;
      • setAdOptimizedBusinessProfileSetting

        public SmartCampaignSetting.Builder setAdOptimizedBusinessProfileSetting​(SmartCampaignSetting.AdOptimizedBusinessProfileSetting.Builder builderForValue)
         Settings for configuring a business profile optimized for ads as this
         campaign's landing page.  This campaign must be linked to a business
         profile to use this option.  For more information on this feature,
         consult https://support.google.com/google-ads/answer/9827068.
         
        .google.ads.googleads.v15.resources.SmartCampaignSetting.AdOptimizedBusinessProfileSetting ad_optimized_business_profile_setting = 9;
      • mergeAdOptimizedBusinessProfileSetting

        public SmartCampaignSetting.Builder mergeAdOptimizedBusinessProfileSetting​(SmartCampaignSetting.AdOptimizedBusinessProfileSetting value)
         Settings for configuring a business profile optimized for ads as this
         campaign's landing page.  This campaign must be linked to a business
         profile to use this option.  For more information on this feature,
         consult https://support.google.com/google-ads/answer/9827068.
         
        .google.ads.googleads.v15.resources.SmartCampaignSetting.AdOptimizedBusinessProfileSetting ad_optimized_business_profile_setting = 9;
      • clearAdOptimizedBusinessProfileSetting

        public SmartCampaignSetting.Builder clearAdOptimizedBusinessProfileSetting()
         Settings for configuring a business profile optimized for ads as this
         campaign's landing page.  This campaign must be linked to a business
         profile to use this option.  For more information on this feature,
         consult https://support.google.com/google-ads/answer/9827068.
         
        .google.ads.googleads.v15.resources.SmartCampaignSetting.AdOptimizedBusinessProfileSetting ad_optimized_business_profile_setting = 9;
      • getAdOptimizedBusinessProfileSettingBuilder

        public SmartCampaignSetting.AdOptimizedBusinessProfileSetting.Builder getAdOptimizedBusinessProfileSettingBuilder()
         Settings for configuring a business profile optimized for ads as this
         campaign's landing page.  This campaign must be linked to a business
         profile to use this option.  For more information on this feature,
         consult https://support.google.com/google-ads/answer/9827068.
         
        .google.ads.googleads.v15.resources.SmartCampaignSetting.AdOptimizedBusinessProfileSetting ad_optimized_business_profile_setting = 9;
      • hasBusinessName

        public boolean hasBusinessName()
         The name of the business.
         
        string business_name = 5;
        Specified by:
        hasBusinessName in interface SmartCampaignSettingOrBuilder
        Returns:
        Whether the businessName field is set.
      • getBusinessNameBytes

        public com.google.protobuf.ByteString getBusinessNameBytes()
         The name of the business.
         
        string business_name = 5;
        Specified by:
        getBusinessNameBytes in interface SmartCampaignSettingOrBuilder
        Returns:
        The bytes for businessName.
      • setBusinessName

        public SmartCampaignSetting.Builder setBusinessName​(java.lang.String value)
         The name of the business.
         
        string business_name = 5;
        Parameters:
        value - The businessName to set.
        Returns:
        This builder for chaining.
      • clearBusinessName

        public SmartCampaignSetting.Builder clearBusinessName()
         The name of the business.
         
        string business_name = 5;
        Returns:
        This builder for chaining.
      • setBusinessNameBytes

        public SmartCampaignSetting.Builder setBusinessNameBytes​(com.google.protobuf.ByteString value)
         The name of the business.
         
        string business_name = 5;
        Parameters:
        value - The bytes for businessName to set.
        Returns:
        This builder for chaining.
      • hasBusinessProfileLocation

        public boolean hasBusinessProfileLocation()
         The resource name of a Business Profile location.
         Business Profile location resource names can be fetched through the
         Business Profile API and adhere to the following format:
         `locations/{locationId}`.
        
         See the [Business Profile API]
         (https://developers.google.com/my-business/reference/businessinformation/rest/v1/accounts.locations)
         for additional details.
         
        string business_profile_location = 10;
        Specified by:
        hasBusinessProfileLocation in interface SmartCampaignSettingOrBuilder
        Returns:
        Whether the businessProfileLocation field is set.
      • getBusinessProfileLocation

        public java.lang.String getBusinessProfileLocation()
         The resource name of a Business Profile location.
         Business Profile location resource names can be fetched through the
         Business Profile API and adhere to the following format:
         `locations/{locationId}`.
        
         See the [Business Profile API]
         (https://developers.google.com/my-business/reference/businessinformation/rest/v1/accounts.locations)
         for additional details.
         
        string business_profile_location = 10;
        Specified by:
        getBusinessProfileLocation in interface SmartCampaignSettingOrBuilder
        Returns:
        The businessProfileLocation.
      • getBusinessProfileLocationBytes

        public com.google.protobuf.ByteString getBusinessProfileLocationBytes()
         The resource name of a Business Profile location.
         Business Profile location resource names can be fetched through the
         Business Profile API and adhere to the following format:
         `locations/{locationId}`.
        
         See the [Business Profile API]
         (https://developers.google.com/my-business/reference/businessinformation/rest/v1/accounts.locations)
         for additional details.
         
        string business_profile_location = 10;
        Specified by:
        getBusinessProfileLocationBytes in interface SmartCampaignSettingOrBuilder
        Returns:
        The bytes for businessProfileLocation.
      • setBusinessProfileLocation

        public SmartCampaignSetting.Builder setBusinessProfileLocation​(java.lang.String value)
         The resource name of a Business Profile location.
         Business Profile location resource names can be fetched through the
         Business Profile API and adhere to the following format:
         `locations/{locationId}`.
        
         See the [Business Profile API]
         (https://developers.google.com/my-business/reference/businessinformation/rest/v1/accounts.locations)
         for additional details.
         
        string business_profile_location = 10;
        Parameters:
        value - The businessProfileLocation to set.
        Returns:
        This builder for chaining.
      • clearBusinessProfileLocation

        public SmartCampaignSetting.Builder clearBusinessProfileLocation()
         The resource name of a Business Profile location.
         Business Profile location resource names can be fetched through the
         Business Profile API and adhere to the following format:
         `locations/{locationId}`.
        
         See the [Business Profile API]
         (https://developers.google.com/my-business/reference/businessinformation/rest/v1/accounts.locations)
         for additional details.
         
        string business_profile_location = 10;
        Returns:
        This builder for chaining.
      • setBusinessProfileLocationBytes

        public SmartCampaignSetting.Builder setBusinessProfileLocationBytes​(com.google.protobuf.ByteString value)
         The resource name of a Business Profile location.
         Business Profile location resource names can be fetched through the
         Business Profile API and adhere to the following format:
         `locations/{locationId}`.
        
         See the [Business Profile API]
         (https://developers.google.com/my-business/reference/businessinformation/rest/v1/accounts.locations)
         for additional details.
         
        string business_profile_location = 10;
        Parameters:
        value - The bytes for businessProfileLocation to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final SmartCampaignSetting.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SmartCampaignSetting.Builder>
      • mergeUnknownFields

        public final SmartCampaignSetting.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SmartCampaignSetting.Builder>