Class KeywordThemeConstant.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<KeywordThemeConstant.Builder>
-
- com.google.ads.googleads.v13.resources.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 typegoogle.ads.googleads.v13.resources.KeywordThemeConstant
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KeywordThemeConstant.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
KeywordThemeConstant
build()
KeywordThemeConstant
buildPartial()
KeywordThemeConstant.Builder
clear()
KeywordThemeConstant.Builder
clearCountryCode()
Output only.KeywordThemeConstant.Builder
clearDisplayName()
Output only.KeywordThemeConstant.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
KeywordThemeConstant.Builder
clearLanguageCode()
Output only.KeywordThemeConstant.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
KeywordThemeConstant.Builder
clearResourceName()
Output only.KeywordThemeConstant.Builder
clone()
java.lang.String
getCountryCode()
Output only.com.google.protobuf.ByteString
getCountryCodeBytes()
Output only.KeywordThemeConstant
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getDisplayName()
Output only.com.google.protobuf.ByteString
getDisplayNameBytes()
Output only.java.lang.String
getLanguageCode()
Output only.com.google.protobuf.ByteString
getLanguageCodeBytes()
Output only.java.lang.String
getResourceName()
Output only.com.google.protobuf.ByteString
getResourceNameBytes()
Output only.boolean
hasCountryCode()
Output only.boolean
hasDisplayName()
Output only.boolean
hasLanguageCode()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
KeywordThemeConstant.Builder
mergeFrom(KeywordThemeConstant other)
KeywordThemeConstant.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
KeywordThemeConstant.Builder
mergeFrom(com.google.protobuf.Message other)
KeywordThemeConstant.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
KeywordThemeConstant.Builder
setCountryCode(java.lang.String value)
Output only.KeywordThemeConstant.Builder
setCountryCodeBytes(com.google.protobuf.ByteString value)
Output only.KeywordThemeConstant.Builder
setDisplayName(java.lang.String value)
Output only.KeywordThemeConstant.Builder
setDisplayNameBytes(com.google.protobuf.ByteString value)
Output only.KeywordThemeConstant.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
KeywordThemeConstant.Builder
setLanguageCode(java.lang.String value)
Output only.KeywordThemeConstant.Builder
setLanguageCodeBytes(com.google.protobuf.ByteString value)
Output only.KeywordThemeConstant.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
KeywordThemeConstant.Builder
setResourceName(java.lang.String value)
Output only.KeywordThemeConstant.Builder
setResourceNameBytes(com.google.protobuf.ByteString value)
Output only.KeywordThemeConstant.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<KeywordThemeConstant.Builder>
-
clear
public KeywordThemeConstant.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<KeywordThemeConstant.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<KeywordThemeConstant.Builder>
-
getDefaultInstanceForType
public KeywordThemeConstant getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public KeywordThemeConstant build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public KeywordThemeConstant buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public KeywordThemeConstant.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<KeywordThemeConstant.Builder>
-
clearField
public KeywordThemeConstant.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<KeywordThemeConstant.Builder>
-
clearOneof
public KeywordThemeConstant.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<KeywordThemeConstant.Builder>
-
mergeFrom
public KeywordThemeConstant.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<KeywordThemeConstant.Builder>
-
mergeFrom
public KeywordThemeConstant.Builder mergeFrom(KeywordThemeConstant other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceKeywordThemeConstantOrBuilder
- 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 interfaceKeywordThemeConstantOrBuilder
- 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 interfaceKeywordThemeConstantOrBuilder
- 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 interfaceKeywordThemeConstantOrBuilder
- 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 interfaceKeywordThemeConstantOrBuilder
- 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 interfaceKeywordThemeConstantOrBuilder
- 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 interfaceKeywordThemeConstantOrBuilder
- 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 interfaceKeywordThemeConstantOrBuilder
- 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 interfaceKeywordThemeConstantOrBuilder
- 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 interfaceKeywordThemeConstantOrBuilder
- 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 interfaceKeywordThemeConstantOrBuilder
- 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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<KeywordThemeConstant.Builder>
-
mergeUnknownFields
public final KeywordThemeConstant.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<KeywordThemeConstant.Builder>
-
-