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.v10.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.v10.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.v10.resources.SmartCampaignSetting.PhoneNumber phone_number = 3;
      • getPhoneNumberBuilder

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

        public java.lang.String getFinalUrl()
         Landing page url given by user for this Campaign.
         
        string final_url = 4;
        Specified by:
        getFinalUrl in interface SmartCampaignSettingOrBuilder
        Returns:
        The finalUrl.
      • getFinalUrlBytes

        public com.google.protobuf.ByteString getFinalUrlBytes()
         Landing page url given by user for this Campaign.
         
        string final_url = 4;
        Specified by:
        getFinalUrlBytes in interface SmartCampaignSettingOrBuilder
        Returns:
        The bytes for finalUrl.
      • setFinalUrl

        public SmartCampaignSetting.Builder setFinalUrl​(java.lang.String value)
         Landing page url given by user for this Campaign.
         
        string final_url = 4;
        Parameters:
        value - The finalUrl to set.
        Returns:
        This builder for chaining.
      • clearFinalUrl

        public SmartCampaignSetting.Builder clearFinalUrl()
         Landing page url given by user for this Campaign.
         
        string final_url = 4;
        Returns:
        This builder for chaining.
      • setFinalUrlBytes

        public SmartCampaignSetting.Builder setFinalUrlBytes​(com.google.protobuf.ByteString value)
         Landing page url given by user for this Campaign.
         
        string final_url = 4;
        Parameters:
        value - The bytes for finalUrl to set.
        Returns:
        This builder for chaining.
      • getAdvertisingLanguageCode

        public java.lang.String getAdvertisingLanguageCode()
         The ISO-639-1 language code to advertise in.
         
        string advertising_language_code = 7;
        Specified by:
        getAdvertisingLanguageCode in interface SmartCampaignSettingOrBuilder
        Returns:
        The advertisingLanguageCode.
      • getAdvertisingLanguageCodeBytes

        public com.google.protobuf.ByteString getAdvertisingLanguageCodeBytes()
         The ISO-639-1 language code to advertise in.
         
        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 ISO-639-1 language code to advertise in.
         
        string advertising_language_code = 7;
        Parameters:
        value - The advertisingLanguageCode to set.
        Returns:
        This builder for chaining.
      • clearAdvertisingLanguageCode

        public SmartCampaignSetting.Builder clearAdvertisingLanguageCode()
         The ISO-639-1 language code to advertise in.
         
        string advertising_language_code = 7;
        Returns:
        This builder for chaining.
      • setAdvertisingLanguageCodeBytes

        public SmartCampaignSetting.Builder setAdvertisingLanguageCodeBytes​(com.google.protobuf.ByteString value)
         The ISO-639-1 language code to advertise in.
         
        string advertising_language_code = 7;
        Parameters:
        value - The bytes for advertisingLanguageCode to set.
        Returns:
        This builder for chaining.
      • 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.
      • hasBusinessLocationId

        public boolean hasBusinessLocationId()
         The ID of the Business Profile location.
         The location ID can be fetched by Business Profile API with its form:
         accounts/{accountId}/locations/{locationId}. The last {locationId}
         component from the Business Profile API represents the
         business_location_id. See the [Business Profile API]
         (https://developers.google.com/my-business/reference/rest/v4/accounts.locations)
         
        int64 business_location_id = 6;
        Specified by:
        hasBusinessLocationId in interface SmartCampaignSettingOrBuilder
        Returns:
        Whether the businessLocationId field is set.
      • getBusinessLocationId

        public long getBusinessLocationId()
         The ID of the Business Profile location.
         The location ID can be fetched by Business Profile API with its form:
         accounts/{accountId}/locations/{locationId}. The last {locationId}
         component from the Business Profile API represents the
         business_location_id. See the [Business Profile API]
         (https://developers.google.com/my-business/reference/rest/v4/accounts.locations)
         
        int64 business_location_id = 6;
        Specified by:
        getBusinessLocationId in interface SmartCampaignSettingOrBuilder
        Returns:
        The businessLocationId.
      • setBusinessLocationId

        public SmartCampaignSetting.Builder setBusinessLocationId​(long value)
         The ID of the Business Profile location.
         The location ID can be fetched by Business Profile API with its form:
         accounts/{accountId}/locations/{locationId}. The last {locationId}
         component from the Business Profile API represents the
         business_location_id. See the [Business Profile API]
         (https://developers.google.com/my-business/reference/rest/v4/accounts.locations)
         
        int64 business_location_id = 6;
        Parameters:
        value - The businessLocationId to set.
        Returns:
        This builder for chaining.
      • clearBusinessLocationId

        public SmartCampaignSetting.Builder clearBusinessLocationId()
         The ID of the Business Profile location.
         The location ID can be fetched by Business Profile API with its form:
         accounts/{accountId}/locations/{locationId}. The last {locationId}
         component from the Business Profile API represents the
         business_location_id. See the [Business Profile API]
         (https://developers.google.com/my-business/reference/rest/v4/accounts.locations)
         
        int64 business_location_id = 6;
        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>