Class CustomFieldOption.Builder (0.5.0)

public static final class CustomFieldOption.Builder extends GeneratedMessageV3.Builder<CustomFieldOption.Builder> implements CustomFieldOptionOrBuilder

An option for a drop-down CustomField.

Protobuf type google.ads.admanager.v1.CustomFieldOption

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CustomFieldOption.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CustomFieldOption.Builder
Overrides

build()

public CustomFieldOption build()
Returns
Type Description
CustomFieldOption

buildPartial()

public CustomFieldOption buildPartial()
Returns
Type Description
CustomFieldOption

clear()

public CustomFieldOption.Builder clear()
Returns
Type Description
CustomFieldOption.Builder
Overrides

clearCustomFieldOptionId()

public CustomFieldOption.Builder clearCustomFieldOptionId()

Output only. CustomFieldOption ID.

int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CustomFieldOption.Builder

This builder for chaining.

clearDisplayName()

public CustomFieldOption.Builder clearDisplayName()

Required. The display name of the CustomFieldOption.

This value has a maximum length of 127 characters.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomFieldOption.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CustomFieldOption.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CustomFieldOption.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CustomFieldOption.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CustomFieldOption.Builder
Overrides

clone()

public CustomFieldOption.Builder clone()
Returns
Type Description
CustomFieldOption.Builder
Overrides

getCustomFieldOptionId()

public long getCustomFieldOptionId()

Output only. CustomFieldOption ID.

int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The customFieldOptionId.

getDefaultInstanceForType()

public CustomFieldOption getDefaultInstanceForType()
Returns
Type Description
CustomFieldOption

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Required. The display name of the CustomFieldOption.

This value has a maximum length of 127 characters.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The display name of the CustomFieldOption.

This value has a maximum length of 127 characters.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CustomFieldOption other)

public CustomFieldOption.Builder mergeFrom(CustomFieldOption other)
Parameter
Name Description
other CustomFieldOption
Returns
Type Description
CustomFieldOption.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CustomFieldOption.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomFieldOption.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CustomFieldOption.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CustomFieldOption.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CustomFieldOption.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CustomFieldOption.Builder
Overrides

setCustomFieldOptionId(long value)

public CustomFieldOption.Builder setCustomFieldOptionId(long value)

Output only. CustomFieldOption ID.

int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The customFieldOptionId to set.

Returns
Type Description
CustomFieldOption.Builder

This builder for chaining.

setDisplayName(String value)

public CustomFieldOption.Builder setDisplayName(String value)

Required. The display name of the CustomFieldOption.

This value has a maximum length of 127 characters.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
CustomFieldOption.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public CustomFieldOption.Builder setDisplayNameBytes(ByteString value)

Required. The display name of the CustomFieldOption.

This value has a maximum length of 127 characters.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
CustomFieldOption.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CustomFieldOption.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CustomFieldOption.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CustomFieldOption.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CustomFieldOption.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CustomFieldOption.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CustomFieldOption.Builder
Overrides