Class CustomFieldValue.Value.Builder (0.44.0)

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

Represent custom field value type.

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

Static Methods

getDescriptor()

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

Methods

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.

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.

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

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 GeneratedMessage.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

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.

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.

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.