Class Campaign.DynamicSearchAdsSetting

  • All Implemented Interfaces:
    Campaign.DynamicSearchAdsSettingOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable
    Enclosing class:
    Campaign

    public static final class Campaign.DynamicSearchAdsSetting
    extends com.google.protobuf.GeneratedMessageV3
    implements Campaign.DynamicSearchAdsSettingOrBuilder
     The setting for controlling Dynamic Search Ads (DSA).
     
    Protobuf type google.ads.googleads.v14.resources.Campaign.DynamicSearchAdsSetting
    See Also:
    Serialized Form
    • Field Detail

      • DOMAIN_NAME_FIELD_NUMBER

        public static final int DOMAIN_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LANGUAGE_CODE_FIELD_NUMBER

        public static final int LANGUAGE_CODE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • USE_SUPPLIED_URLS_ONLY_FIELD_NUMBER

        public static final int USE_SUPPLIED_URLS_ONLY_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
      • 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
      • getDomainName

        public java.lang.String getDomainName()
         Required. The Internet domain name that this setting represents, for
         example, "google.com" or "www.google.com".
         
        string domain_name = 6 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDomainName in interface Campaign.DynamicSearchAdsSettingOrBuilder
        Returns:
        The domainName.
      • getDomainNameBytes

        public com.google.protobuf.ByteString getDomainNameBytes()
         Required. The Internet domain name that this setting represents, for
         example, "google.com" or "www.google.com".
         
        string domain_name = 6 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDomainNameBytes in interface Campaign.DynamicSearchAdsSettingOrBuilder
        Returns:
        The bytes for domainName.
      • getLanguageCode

        public java.lang.String getLanguageCode()
         Required. The language code specifying the language of the domain, for
         example, "en".
         
        string language_code = 7 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getLanguageCode in interface Campaign.DynamicSearchAdsSettingOrBuilder
        Returns:
        The languageCode.
      • getLanguageCodeBytes

        public com.google.protobuf.ByteString getLanguageCodeBytes()
         Required. The language code specifying the language of the domain, for
         example, "en".
         
        string language_code = 7 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getLanguageCodeBytes in interface Campaign.DynamicSearchAdsSettingOrBuilder
        Returns:
        The bytes for languageCode.
      • hasUseSuppliedUrlsOnly

        public boolean hasUseSuppliedUrlsOnly()
         Whether the campaign uses advertiser supplied URLs exclusively.
         
        optional bool use_supplied_urls_only = 8;
        Specified by:
        hasUseSuppliedUrlsOnly in interface Campaign.DynamicSearchAdsSettingOrBuilder
        Returns:
        Whether the useSuppliedUrlsOnly field is set.
      • getFeedsList

        public com.google.protobuf.ProtocolStringList getFeedsList()
         The list of page feeds associated with the campaign.
         
        repeated string feeds = 9 [(.google.api.resource_reference) = { ... }
        Specified by:
        getFeedsList in interface Campaign.DynamicSearchAdsSettingOrBuilder
        Returns:
        A list containing the feeds.
      • getFeedsCount

        public int getFeedsCount()
         The list of page feeds associated with the campaign.
         
        repeated string feeds = 9 [(.google.api.resource_reference) = { ... }
        Specified by:
        getFeedsCount in interface Campaign.DynamicSearchAdsSettingOrBuilder
        Returns:
        The count of feeds.
      • getFeeds

        public java.lang.String getFeeds​(int index)
         The list of page feeds associated with the campaign.
         
        repeated string feeds = 9 [(.google.api.resource_reference) = { ... }
        Specified by:
        getFeeds in interface Campaign.DynamicSearchAdsSettingOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The feeds at the given index.
      • getFeedsBytes

        public com.google.protobuf.ByteString getFeedsBytes​(int index)
         The list of page feeds associated with the campaign.
         
        repeated string feeds = 9 [(.google.api.resource_reference) = { ... }
        Specified by:
        getFeedsBytes in interface Campaign.DynamicSearchAdsSettingOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the feeds at the given index.
      • 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 Campaign.DynamicSearchAdsSetting parseFrom​(java.nio.ByteBuffer data)
                                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

        public com.google.protobuf.Parser<Campaign.DynamicSearchAdsSetting> 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 Campaign.DynamicSearchAdsSetting getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder