Class SmartCampaignSetting

  • All Implemented Interfaces:
    SmartCampaignSettingOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable

    public final class SmartCampaignSetting
    extends com.google.protobuf.GeneratedMessageV3
    implements SmartCampaignSettingOrBuilder
     Settings for configuring Smart campaigns.
     
    Protobuf type google.ads.googleads.v10.resources.SmartCampaignSetting
    See Also:
    Serialized Form
    • Field Detail

      • RESOURCE_NAME_FIELD_NUMBER

        public static final int RESOURCE_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PHONE_NUMBER_FIELD_NUMBER

        public static final int PHONE_NUMBER_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ADVERTISING_LANGUAGE_CODE_FIELD_NUMBER

        public static final int ADVERTISING_LANGUAGE_CODE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BUSINESS_NAME_FIELD_NUMBER

        public static final int BUSINESS_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BUSINESS_LOCATION_ID_FIELD_NUMBER

        public static final int BUSINESS_LOCATION_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static SmartCampaignSetting parseFrom​(java.nio.ByteBuffer data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SmartCampaignSetting parseFrom​(java.nio.ByteBuffer data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SmartCampaignSetting parseFrom​(com.google.protobuf.ByteString data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SmartCampaignSetting parseFrom​(com.google.protobuf.ByteString data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SmartCampaignSetting parseFrom​(byte[] data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SmartCampaignSetting parseFrom​(byte[] data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SmartCampaignSetting parseFrom​(java.io.InputStream input)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static SmartCampaignSetting parseFrom​(java.io.InputStream input,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static SmartCampaignSetting parseDelimitedFrom​(java.io.InputStream input)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static SmartCampaignSetting parseDelimitedFrom​(java.io.InputStream input,
                                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static SmartCampaignSetting parseFrom​(com.google.protobuf.CodedInputStream input)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static SmartCampaignSetting parseFrom​(com.google.protobuf.CodedInputStream input,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

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

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

        protected SmartCampaignSetting.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<SmartCampaignSetting> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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