public static final class CustomTargetingValue.Builder extends GeneratedMessageV3.Builder<CustomTargetingValue.Builder> implements CustomTargetingValueOrBuilder
The CustomTargetingValue
resource.
Protobuf type google.ads.admanager.v1.CustomTargetingValue
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CustomTargetingValue.BuilderImplements
CustomTargetingValueOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CustomTargetingValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
build()
public CustomTargetingValue build()
Returns | |
---|---|
Type | Description |
CustomTargetingValue |
buildPartial()
public CustomTargetingValue buildPartial()
Returns | |
---|---|
Type | Description |
CustomTargetingValue |
clear()
public CustomTargetingValue.Builder clear()
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
clearAdTagName()
public CustomTargetingValue.Builder clearAdTagName()
Immutable. Name of the CustomTargetingValue
. Values can contain up to 40
characters each. You can use alphanumeric characters and symbols other than
the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are
not data-specific; all values are treated as strings. For example, instead
of using "age>=18 AND <=34", try "18-34"
string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
This builder for chaining. |
clearDisplayName()
public CustomTargetingValue.Builder clearDisplayName()
Optional. Descriptive name for the CustomTargetingValue
.
string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CustomTargetingValue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
clearMatchType()
public CustomTargetingValue.Builder clearMatchType()
Required. Immutable. The way in which the CustomTargetingValue.name strings will be matched.
.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
This builder for chaining. |
clearName()
public CustomTargetingValue.Builder clearName()
Identifier. The resource name of the CustomTargetingValue
.
Format:
networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public CustomTargetingValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
clearStatus()
public CustomTargetingValue.Builder clearStatus()
Output only. Status of the CustomTargetingValue
.
.google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
This builder for chaining. |
clone()
public CustomTargetingValue.Builder clone()
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
getAdTagName()
public String getAdTagName()
Immutable. Name of the CustomTargetingValue
. Values can contain up to 40
characters each. You can use alphanumeric characters and symbols other than
the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are
not data-specific; all values are treated as strings. For example, instead
of using "age>=18 AND <=34", try "18-34"
string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
String |
The adTagName. |
getAdTagNameBytes()
public ByteString getAdTagNameBytes()
Immutable. Name of the CustomTargetingValue
. Values can contain up to 40
characters each. You can use alphanumeric characters and symbols other than
the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are
not data-specific; all values are treated as strings. For example, instead
of using "age>=18 AND <=34", try "18-34"
string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for adTagName. |
getDefaultInstanceForType()
public CustomTargetingValue getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
CustomTargetingValue |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getDisplayName()
public String getDisplayName()
Optional. Descriptive name for the CustomTargetingValue
.
string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Optional. Descriptive name for the CustomTargetingValue
.
string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for displayName. |
getMatchType()
public CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType getMatchType()
Required. Immutable. The way in which the CustomTargetingValue.name strings will be matched.
.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType |
The matchType. |
getMatchTypeValue()
public int getMatchTypeValue()
Required. Immutable. The way in which the CustomTargetingValue.name strings will be matched.
.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for matchType. |
getName()
public String getName()
Identifier. The resource name of the CustomTargetingValue
.
Format:
networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
Identifier. The resource name of the CustomTargetingValue
.
Format:
networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getStatus()
public CustomTargetingValueStatusEnum.CustomTargetingValueStatus getStatus()
Output only. Status of the CustomTargetingValue
.
.google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
CustomTargetingValueStatusEnum.CustomTargetingValueStatus |
The status. |
getStatusValue()
public int getStatusValue()
Output only. Status of the CustomTargetingValue
.
.google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for status. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CustomTargetingValue other)
public CustomTargetingValue.Builder mergeFrom(CustomTargetingValue other)
Parameter | |
---|---|
Name | Description |
other |
CustomTargetingValue |
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CustomTargetingValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CustomTargetingValue.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CustomTargetingValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
setAdTagName(String value)
public CustomTargetingValue.Builder setAdTagName(String value)
Immutable. Name of the CustomTargetingValue
. Values can contain up to 40
characters each. You can use alphanumeric characters and symbols other than
the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are
not data-specific; all values are treated as strings. For example, instead
of using "age>=18 AND <=34", try "18-34"
string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE];
Parameter | |
---|---|
Name | Description |
value |
String The adTagName to set. |
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
This builder for chaining. |
setAdTagNameBytes(ByteString value)
public CustomTargetingValue.Builder setAdTagNameBytes(ByteString value)
Immutable. Name of the CustomTargetingValue
. Values can contain up to 40
characters each. You can use alphanumeric characters and symbols other than
the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are
not data-specific; all values are treated as strings. For example, instead
of using "age>=18 AND <=34", try "18-34"
string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for adTagName to set. |
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
This builder for chaining. |
setDisplayName(String value)
public CustomTargetingValue.Builder setDisplayName(String value)
Optional. Descriptive name for the CustomTargetingValue
.
string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The displayName to set. |
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public CustomTargetingValue.Builder setDisplayNameBytes(ByteString value)
Optional. Descriptive name for the CustomTargetingValue
.
string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for displayName to set. |
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public CustomTargetingValue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
setMatchType(CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType value)
public CustomTargetingValue.Builder setMatchType(CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType value)
Required. Immutable. The way in which the CustomTargetingValue.name strings will be matched.
.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType The matchType to set. |
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
This builder for chaining. |
setMatchTypeValue(int value)
public CustomTargetingValue.Builder setMatchTypeValue(int value)
Required. Immutable. The way in which the CustomTargetingValue.name strings will be matched.
.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for matchType to set. |
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
This builder for chaining. |
setName(String value)
public CustomTargetingValue.Builder setName(String value)
Identifier. The resource name of the CustomTargetingValue
.
Format:
networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public CustomTargetingValue.Builder setNameBytes(ByteString value)
Identifier. The resource name of the CustomTargetingValue
.
Format:
networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CustomTargetingValue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
setStatus(CustomTargetingValueStatusEnum.CustomTargetingValueStatus value)
public CustomTargetingValue.Builder setStatus(CustomTargetingValueStatusEnum.CustomTargetingValueStatus value)
Output only. Status of the CustomTargetingValue
.
.google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
CustomTargetingValueStatusEnum.CustomTargetingValueStatus The status to set. |
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
This builder for chaining. |
setStatusValue(int value)
public CustomTargetingValue.Builder setStatusValue(int value)
Output only. Status of the CustomTargetingValue
.
.google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for status to set. |
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final CustomTargetingValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CustomTargetingValue.Builder |