Class CustomFieldValue.Value (0.11.0)

public static final class CustomFieldValue.Value extends GeneratedMessageV3 implements CustomFieldValue.ValueOrBuilder

Represent custom field value type. Next Id: 5

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

Static Fields

DROPDOWN_VALUE_FIELD_NUMBER

public static final int DROPDOWN_VALUE_FIELD_NUMBER
Field Value
Type Description
int

NUMBER_VALUE_FIELD_NUMBER

public static final int NUMBER_VALUE_FIELD_NUMBER
Field Value
Type Description
int

STRING_VALUE_FIELD_NUMBER

public static final int STRING_VALUE_FIELD_NUMBER
Field Value
Type Description
int

TOGGLE_VALUE_FIELD_NUMBER

public static final int TOGGLE_VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CustomFieldValue.Value getDefaultInstance()
Returns
Type Description
CustomFieldValue.Value

getDescriptor()

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

newBuilder()

public static CustomFieldValue.Value.Builder newBuilder()
Returns
Type Description
CustomFieldValue.Value.Builder

newBuilder(CustomFieldValue.Value prototype)

public static CustomFieldValue.Value.Builder newBuilder(CustomFieldValue.Value prototype)
Parameter
Name Description
prototype CustomFieldValue.Value
Returns
Type Description
CustomFieldValue.Value.Builder

parseDelimitedFrom(InputStream input)

public static CustomFieldValue.Value parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CustomFieldValue.Value
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomFieldValue.Value parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomFieldValue.Value
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CustomFieldValue.Value parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CustomFieldValue.Value
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CustomFieldValue.Value parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomFieldValue.Value
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CustomFieldValue.Value parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CustomFieldValue.Value
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CustomFieldValue.Value parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomFieldValue.Value
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CustomFieldValue.Value parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CustomFieldValue.Value
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomFieldValue.Value parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomFieldValue.Value
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CustomFieldValue.Value parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CustomFieldValue.Value
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomFieldValue.Value parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomFieldValue.Value
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CustomFieldValue.Value parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CustomFieldValue.Value
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CustomFieldValue.Value parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomFieldValue.Value
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CustomFieldValue.Value> parser()
Returns
Type Description
Parser<Value>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

public Parser<CustomFieldValue.Value> getParserForType()
Returns
Type Description
Parser<Value>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CustomFieldValue.Value.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CustomFieldValue.Value.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException