Class KeywordThemeConstant.Builder

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

    public static final class KeywordThemeConstant.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<KeywordThemeConstant.Builder>
    implements KeywordThemeConstantOrBuilder
     A Smart Campaign keyword theme constant.
     
    Protobuf type google.ads.googleads.v14.resources.KeywordThemeConstant
    • 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<KeywordThemeConstant.Builder>
      • clear

        public KeywordThemeConstant.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<KeywordThemeConstant.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<KeywordThemeConstant.Builder>
      • getDefaultInstanceForType

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

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

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

        public KeywordThemeConstant.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<KeywordThemeConstant.Builder>
      • setField

        public KeywordThemeConstant.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<KeywordThemeConstant.Builder>
      • clearField

        public KeywordThemeConstant.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<KeywordThemeConstant.Builder>
      • clearOneof

        public KeywordThemeConstant.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<KeywordThemeConstant.Builder>
      • setRepeatedField

        public KeywordThemeConstant.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<KeywordThemeConstant.Builder>
      • addRepeatedField

        public KeywordThemeConstant.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<KeywordThemeConstant.Builder>
      • isInitialized

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

        public KeywordThemeConstant.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<KeywordThemeConstant.Builder>
        Throws:
        java.io.IOException
      • getResourceName

        public java.lang.String getResourceName()
         Output only. The resource name of the keyword theme constant.
         Keyword theme constant resource names have the form:
        
         `keywordThemeConstants/{keyword_theme_id}~{sub_keyword_theme_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceName in interface KeywordThemeConstantOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         Output only. The resource name of the keyword theme constant.
         Keyword theme constant resource names have the form:
        
         `keywordThemeConstants/{keyword_theme_id}~{sub_keyword_theme_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceNameBytes in interface KeywordThemeConstantOrBuilder
        Returns:
        The bytes for resourceName.
      • setResourceName

        public KeywordThemeConstant.Builder setResourceName​(java.lang.String value)
         Output only. The resource name of the keyword theme constant.
         Keyword theme constant resource names have the form:
        
         `keywordThemeConstants/{keyword_theme_id}~{sub_keyword_theme_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The resourceName to set.
        Returns:
        This builder for chaining.
      • clearResourceName

        public KeywordThemeConstant.Builder clearResourceName()
         Output only. The resource name of the keyword theme constant.
         Keyword theme constant resource names have the form:
        
         `keywordThemeConstants/{keyword_theme_id}~{sub_keyword_theme_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setResourceNameBytes

        public KeywordThemeConstant.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         Output only. The resource name of the keyword theme constant.
         Keyword theme constant resource names have the form:
        
         `keywordThemeConstants/{keyword_theme_id}~{sub_keyword_theme_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for resourceName to set.
        Returns:
        This builder for chaining.
      • hasCountryCode

        public boolean hasCountryCode()
         Output only. The ISO-3166 Alpha-2 country code of the constant, eg. "US".
         To display and query matching purpose, the keyword theme needs to be
         localized.
         
        optional string country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCountryCode in interface KeywordThemeConstantOrBuilder
        Returns:
        Whether the countryCode field is set.
      • getCountryCode

        public java.lang.String getCountryCode()
         Output only. The ISO-3166 Alpha-2 country code of the constant, eg. "US".
         To display and query matching purpose, the keyword theme needs to be
         localized.
         
        optional string country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCountryCode in interface KeywordThemeConstantOrBuilder
        Returns:
        The countryCode.
      • getCountryCodeBytes

        public com.google.protobuf.ByteString getCountryCodeBytes()
         Output only. The ISO-3166 Alpha-2 country code of the constant, eg. "US".
         To display and query matching purpose, the keyword theme needs to be
         localized.
         
        optional string country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCountryCodeBytes in interface KeywordThemeConstantOrBuilder
        Returns:
        The bytes for countryCode.
      • setCountryCode

        public KeywordThemeConstant.Builder setCountryCode​(java.lang.String value)
         Output only. The ISO-3166 Alpha-2 country code of the constant, eg. "US".
         To display and query matching purpose, the keyword theme needs to be
         localized.
         
        optional string country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The countryCode to set.
        Returns:
        This builder for chaining.
      • clearCountryCode

        public KeywordThemeConstant.Builder clearCountryCode()
         Output only. The ISO-3166 Alpha-2 country code of the constant, eg. "US".
         To display and query matching purpose, the keyword theme needs to be
         localized.
         
        optional string country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setCountryCodeBytes

        public KeywordThemeConstant.Builder setCountryCodeBytes​(com.google.protobuf.ByteString value)
         Output only. The ISO-3166 Alpha-2 country code of the constant, eg. "US".
         To display and query matching purpose, the keyword theme needs to be
         localized.
         
        optional string country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for countryCode to set.
        Returns:
        This builder for chaining.
      • hasLanguageCode

        public boolean hasLanguageCode()
         Output only. The ISO-639-1 language code with 2 letters of the constant,
         eg. "en". To display and query matching purpose, the keyword theme needs to
         be localized.
         
        optional string language_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasLanguageCode in interface KeywordThemeConstantOrBuilder
        Returns:
        Whether the languageCode field is set.
      • getLanguageCode

        public java.lang.String getLanguageCode()
         Output only. The ISO-639-1 language code with 2 letters of the constant,
         eg. "en". To display and query matching purpose, the keyword theme needs to
         be localized.
         
        optional string language_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLanguageCode in interface KeywordThemeConstantOrBuilder
        Returns:
        The languageCode.
      • getLanguageCodeBytes

        public com.google.protobuf.ByteString getLanguageCodeBytes()
         Output only. The ISO-639-1 language code with 2 letters of the constant,
         eg. "en". To display and query matching purpose, the keyword theme needs to
         be localized.
         
        optional string language_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLanguageCodeBytes in interface KeywordThemeConstantOrBuilder
        Returns:
        The bytes for languageCode.
      • setLanguageCode

        public KeywordThemeConstant.Builder setLanguageCode​(java.lang.String value)
         Output only. The ISO-639-1 language code with 2 letters of the constant,
         eg. "en". To display and query matching purpose, the keyword theme needs to
         be localized.
         
        optional string language_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The languageCode to set.
        Returns:
        This builder for chaining.
      • clearLanguageCode

        public KeywordThemeConstant.Builder clearLanguageCode()
         Output only. The ISO-639-1 language code with 2 letters of the constant,
         eg. "en". To display and query matching purpose, the keyword theme needs to
         be localized.
         
        optional string language_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setLanguageCodeBytes

        public KeywordThemeConstant.Builder setLanguageCodeBytes​(com.google.protobuf.ByteString value)
         Output only. The ISO-639-1 language code with 2 letters of the constant,
         eg. "en". To display and query matching purpose, the keyword theme needs to
         be localized.
         
        optional string language_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for languageCode to set.
        Returns:
        This builder for chaining.
      • hasDisplayName

        public boolean hasDisplayName()
         Output only. The display name of the keyword theme or sub keyword theme.
         
        optional string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasDisplayName in interface KeywordThemeConstantOrBuilder
        Returns:
        Whether the displayName field is set.
      • getDisplayName

        public java.lang.String getDisplayName()
         Output only. The display name of the keyword theme or sub keyword theme.
         
        optional string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDisplayName in interface KeywordThemeConstantOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         Output only. The display name of the keyword theme or sub keyword theme.
         
        optional string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDisplayNameBytes in interface KeywordThemeConstantOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        public KeywordThemeConstant.Builder setDisplayName​(java.lang.String value)
         Output only. The display name of the keyword theme or sub keyword theme.
         
        optional string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • clearDisplayName

        public KeywordThemeConstant.Builder clearDisplayName()
         Output only. The display name of the keyword theme or sub keyword theme.
         
        optional string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public KeywordThemeConstant.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         Output only. The display name of the keyword theme or sub keyword theme.
         
        optional string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final KeywordThemeConstant.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<KeywordThemeConstant.Builder>
      • mergeUnknownFields

        public final KeywordThemeConstant.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<KeywordThemeConstant.Builder>