Class CustomFieldValue.Value.Builder (0.11.0)

public static final class CustomFieldValue.Value.Builder extends GeneratedMessageV3.Builder<CustomFieldValue.Value.Builder> implements CustomFieldValue.ValueOrBuilder

Represent custom field value type. Next Id: 5

Protobuf type google.ads.admanager.v1.CustomFieldValue.Value

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CustomFieldValue.Value build()
Returns
Type Description
CustomFieldValue.Value

buildPartial()

public CustomFieldValue.Value buildPartial()
Returns
Type Description
CustomFieldValue.Value

clear()

public CustomFieldValue.Value.Builder clear()
Returns
Type Description
CustomFieldValue.Value.Builder
Overrides

clearDropdownValue()

public CustomFieldValue.Value.Builder clearDropdownValue()

The custom_field_option_id, if the CustomFieldDataType is DROPDOWN.

int64 dropdown_value = 1;

Returns
Type Description
CustomFieldValue.Value.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearNumberValue()

public CustomFieldValue.Value.Builder clearNumberValue()

The value, if the CustomFieldDataType is NUMBER.

double number_value = 3;

Returns
Type Description
CustomFieldValue.Value.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStringValue()

public CustomFieldValue.Value.Builder clearStringValue()

The value, if the CustomFieldDataType is STRING.

string string_value = 2;

Returns
Type Description
CustomFieldValue.Value.Builder

This builder for chaining.

clearToggleValue()

public CustomFieldValue.Value.Builder clearToggleValue()

The value, if the CustomFieldDataType is TOGGLE.

bool toggle_value = 4;

Returns
Type Description
CustomFieldValue.Value.Builder

This builder for chaining.

clearValue()

public CustomFieldValue.Value.Builder clearValue()
Returns
Type Description
CustomFieldValue.Value.Builder

clone()

public CustomFieldValue.Value.Builder clone()
Returns
Type Description
CustomFieldValue.Value.Builder
Overrides

getDefaultInstanceForType()

public CustomFieldValue.Value getDefaultInstanceForType()
Returns
Type Description
CustomFieldValue.Value

getDescriptorForType()

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

getDropdownValue()

public long getDropdownValue()

The custom_field_option_id, if the CustomFieldDataType is DROPDOWN.

int64 dropdown_value = 1;

Returns
Type Description
long

The dropdownValue.

getNumberValue()

public double getNumberValue()

The value, if the CustomFieldDataType is NUMBER.

double number_value = 3;

Returns
Type Description
double

The numberValue.

getStringValue()

public String getStringValue()

The value, if the CustomFieldDataType is STRING.

string string_value = 2;

Returns
Type Description
String

The stringValue.

getStringValueBytes()

public ByteString getStringValueBytes()

The value, if the CustomFieldDataType is STRING.

string string_value = 2;

Returns
Type Description
ByteString

The bytes for stringValue.

getToggleValue()

public boolean getToggleValue()

The value, if the CustomFieldDataType is TOGGLE.

bool toggle_value = 4;

Returns
Type Description
boolean

The toggleValue.

getValueCase()

public CustomFieldValue.Value.ValueCase getValueCase()
Returns
Type Description
CustomFieldValue.Value.ValueCase

hasDropdownValue()

public boolean hasDropdownValue()

The custom_field_option_id, if the CustomFieldDataType is DROPDOWN.

int64 dropdown_value = 1;

Returns
Type Description
boolean

Whether the dropdownValue field is set.

hasNumberValue()

public boolean hasNumberValue()

The value, if the CustomFieldDataType is NUMBER.

double number_value = 3;

Returns
Type Description
boolean

Whether the numberValue field is set.

hasStringValue()

public boolean hasStringValue()

The value, if the CustomFieldDataType is STRING.

string string_value = 2;

Returns
Type Description
boolean

Whether the stringValue field is set.

hasToggleValue()

public boolean hasToggleValue()

The value, if the CustomFieldDataType is TOGGLE.

bool toggle_value = 4;

Returns
Type Description
boolean

Whether the toggleValue field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CustomFieldValue.Value other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDropdownValue(long value)

public CustomFieldValue.Value.Builder setDropdownValue(long value)

The custom_field_option_id, if the CustomFieldDataType is DROPDOWN.

int64 dropdown_value = 1;

Parameter
Name Description
value long

The dropdownValue to set.

Returns
Type Description
CustomFieldValue.Value.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setNumberValue(double value)

public CustomFieldValue.Value.Builder setNumberValue(double value)

The value, if the CustomFieldDataType is NUMBER.

double number_value = 3;

Parameter
Name Description
value double

The numberValue to set.

Returns
Type Description
CustomFieldValue.Value.Builder

This builder for chaining.

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

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

setStringValue(String value)

public CustomFieldValue.Value.Builder setStringValue(String value)

The value, if the CustomFieldDataType is STRING.

string string_value = 2;

Parameter
Name Description
value String

The stringValue to set.

Returns
Type Description
CustomFieldValue.Value.Builder

This builder for chaining.

setStringValueBytes(ByteString value)

public CustomFieldValue.Value.Builder setStringValueBytes(ByteString value)

The value, if the CustomFieldDataType is STRING.

string string_value = 2;

Parameter
Name Description
value ByteString

The bytes for stringValue to set.

Returns
Type Description
CustomFieldValue.Value.Builder

This builder for chaining.

setToggleValue(boolean value)

public CustomFieldValue.Value.Builder setToggleValue(boolean value)

The value, if the CustomFieldDataType is TOGGLE.

bool toggle_value = 4;

Parameter
Name Description
value boolean

The toggleValue to set.

Returns
Type Description
CustomFieldValue.Value.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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