Top Description Inners Fields Constructors Methods
com.google.protobuf

public final Class Value

extends GeneratedMessageV3
implements ValueOrBuilder
Class Inheritance
All Implemented Interfaces
com.google.protobuf.ValueOrBuilder, com.google.protobuf.MessageOrBuilder, com.google.protobuf.MessageLiteOrBuilder

`Value` represents a dynamically typed value which can be either
null, a number, a string, a boolean, a recursive struct value, or a
list of values. A producer of value is expected to set one of that
variants, absence of any variant indicates an error.
The JSON representation for `Value` is JSON value.
Protobuf type google.protobuf.Value

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
Value.Builder

`Value` represents a dynamically typed value which can be either
null, a number, a string, a boolean, a recursive struct value, or a
list of values.
public static enum

Field Summary

Modifier and TypeField and Description
public static final int
private static final Value
private Object
private int
public static final int
private byte
public static final int
public static final int
private static final Parser<Value>
private static final long
public static final int
public static final int
Inherited from com.google.protobuf.GeneratedMessageV3:
alwaysUseFieldBuildersunknownFields

Constructor Summary

AccessConstructor and Description
private
private
private
Value(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(final Object
object to be compared for equality with this message
obj
)

Overrides com.google.protobuf.AbstractMessage.equals.

Implements com.google.protobuf.Message.equals.

Compares the specified object with this message for equality.
public boolean
getBoolValue()

Implements com.google.protobuf.ValueOrBuilder.getBoolValue.

Represents a boolean value.
public static Value
public Value
public static final Descriptors.Descriptor
public Value.KindCase
public ListValue
getListValue()

Implements com.google.protobuf.ValueOrBuilder.getListValue.

Represents a repeated `Value`.
public ListValueOrBuilder
public NullValue
getNullValue()

Implements com.google.protobuf.ValueOrBuilder.getNullValue.

Represents a null value.
public int
public double
getNumberValue()

Implements com.google.protobuf.ValueOrBuilder.getNumberValue.

Represents a double value.
public Parser<Value>
public int
getSerializedSize()

Overrides com.google.protobuf.GeneratedMessageV3.getSerializedSize.

Implements com.google.protobuf.MessageLite.getSerializedSize.

Get the number of bytes required to encode this message.
public String
getStringValue()

Implements com.google.protobuf.ValueOrBuilder.getStringValue.

Represents a string value.
public ByteString
public Struct
getStructValue()

Implements com.google.protobuf.ValueOrBuilder.getStructValue.

Represents a structured value.
public StructOrBuilder
public final UnknownFieldSet
public int
hashCode()

Overrides com.google.protobuf.AbstractMessage.hashCode.

Implements com.google.protobuf.Message.hashCode.

Returns the hash code value for this message.
public boolean
hasListValue()

Implements com.google.protobuf.ValueOrBuilder.hasListValue.

Represents a repeated `Value`.
public boolean
hasStructValue()

Implements com.google.protobuf.ValueOrBuilder.hasStructValue.

Represents a structured value.
protected GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()

Implements abstract com.google.protobuf.GeneratedMessageV3.internalGetFieldAccessorTable.

Get the FieldAccessorTable for this type.
public final boolean
isInitialized()

Overrides com.google.protobuf.GeneratedMessageV3.isInitialized.

Implements com.google.protobuf.MessageLiteOrBuilder.isInitialized.

Returns true if all required fields in the message and all embedded messages are set, false otherwise.
public static Value.Builder
public static Value.Builder
newBuilder(Value prototype)

public Value.Builder
newBuilderForType()

Implements com.google.protobuf.Message.newBuilderForType, com.google.protobuf.MessageLite.newBuilderForType.

Constructs a new builder for a message of the same type as this message.
protected Value.Builder
newBuilderForType(GeneratedMessageV3.BuilderParent parent)

Implements abstract com.google.protobuf.GeneratedMessageV3.newBuilderForType.

TODO(xiaofeng): remove this together with GeneratedMessageV3.BuilderParent.
public static Value
public static Value
public static Value
public static Value
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Value
public static Value
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Value
parseFrom(byte[] data)

public static Value
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Value
public static Value
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Value
public static Value
public static Parser<Value>
public Value.Builder
toBuilder()

Implements com.google.protobuf.Message.toBuilder, com.google.protobuf.MessageLite.toBuilder.

Constructs a builder initialized with the current message.
public void
writeTo(CodedOutputStream output)

Overrides com.google.protobuf.GeneratedMessageV3.writeTo.

Implements com.google.protobuf.MessageLite.writeTo.

Serializes the message and writes it to output.
Inherited from com.google.protobuf.GeneratedMessageV3:
canUseUnsafecomputeStringSizecomputeStringSizeNoTagemptyBooleanListemptyDoubleListemptyFloatListemptyIntListemptyLongListenableAlwaysUseFieldBuildersForTestinggetAllFieldsgetAllFieldsRawgetDescriptorForTypegetFieldgetFieldRawgetOneofFieldDescriptorgetRepeatedFieldgetRepeatedFieldCounthasFieldhasOneofinternalGetMapFieldmakeExtensionsImmutablemutableCopymutableCopymutableCopymutableCopymutableCopynewBooleanListnewBuilderForTypenewDoubleListnewFloatListnewIntListnewLongListparseDelimitedWithIOExceptionparseDelimitedWithIOExceptionparseUnknownFieldparseUnknownFieldProto3parseWithIOExceptionparseWithIOExceptionparseWithIOExceptionparseWithIOExceptionserializeBooleanMapToserializeIntegerMapToserializeLongMapToserializeStringMapTowriteReplacewriteStringwriteStringNoTag