public
final
class
Value
extends
GeneratedMessageLite<Value
,
Value
.
Builder
>
implements
ValueOrBuilder
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 these
variants. Absence of any variant indicates an error.
The JSON representation for Value
is JSON value.
Protobuf type google.protobuf.Value
Implements
ValueOrBuilderStatic Fields
BOOL_VALUE_FIELD_NUMBER
public
static
final
int
BOOL_VALUE_FIELD_NUMBER
LIST_VALUE_FIELD_NUMBER
public
static
final
int
LIST_VALUE_FIELD_NUMBER
NULL_VALUE_FIELD_NUMBER
public
static
final
int
NULL_VALUE_FIELD_NUMBER
NUMBER_VALUE_FIELD_NUMBER
public
static
final
int
NUMBER_VALUE_FIELD_NUMBER
STRING_VALUE_FIELD_NUMBER
public
static
final
int
STRING_VALUE_FIELD_NUMBER
STRUCT_VALUE_FIELD_NUMBER
public
static
final
int
STRUCT_VALUE_FIELD_NUMBER
Static Methods
getDefaultInstance()
public
static
Value
getDefaultInstance
()
newBuilder()
public
static
Value
.
Builder
newBuilder
()
newBuilder(Value prototype)
public
static
Value
.
Builder
newBuilder
(
Value
prototype
)
parseDelimitedFrom(InputStream input)
public
static
Value
parseDelimitedFrom
(
InputStream
input
)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Value
parseDelimitedFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(byte[] data)
public
static
Value
parseFrom
(
byte
[]
data
)
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public
static
Value
parseFrom
(
byte
[]
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteString data)
public
static
Value
parseFrom
(
ByteString
data
)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public
static
Value
parseFrom
(
ByteString
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(CodedInputStream input)
public
static
Value
parseFrom
(
CodedInputStream
input
)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Value
parseFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(InputStream input)
public
static
Value
parseFrom
(
InputStream
input
)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Value
parseFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteBuffer data)
public
static
Value
parseFrom
(
ByteBuffer
data
)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public
static
Value
parseFrom
(
ByteBuffer
data
,
ExtensionRegistryLite
extensionRegistry
)
parser()
public
static
Parser<Value>
parser
()
Methods
dynamicMethod(GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
protected
final
Object
dynamicMethod
(
GeneratedMessageLite
.
MethodToInvoke
method
,
Object
arg0
,
Object
arg1
)
A method that implements different types of operations described in MethodToInvoke . These different kinds of operations are required to implement message-level operations for builders in the runtime. This method bundles those operations to reduce the generated methods count.
-
NEW_INSTANCE
returns a new instance of the protocol buffer that has not yet been made immutable. SeeMAKE_IMMUTABLE
. -
IS_INITIALIZED
returnsnull
for false and the default instance for true. It doesn't use or modify any memoized value. -
GET_MEMOIZED_IS_INITIALIZED
returns the memoizedisInitialized
byte value. -
SET_MEMOIZED_IS_INITIALIZED
sets the memoizedisInitialized
byte value to 1 if the first parameter is not null, or to 0 if the first parameter is null. -
NEW_BUILDER
returns aBuilderType
instance.
This method, plus the implementation of the Builder, enables the Builder class to be proguarded away entirely on Android.
For use by generated code only.
getBoolValue()
public
boolean
getBoolValue
()
Represents a boolean value.
bool bool_value = 4;
getKindCase()
public
Value
.
KindCase
getKindCase
()
getListValue()
public
ListValue
getListValue
()
Represents a repeated Value
.
.google.protobuf.ListValue list_value = 6;
getNullValue()
public
NullValue
getNullValue
()
Represents a null value.
.google.protobuf.NullValue null_value = 1;
getNullValueValue()
public
int
getNullValueValue
()
Represents a null value.
.google.protobuf.NullValue null_value = 1;
getNumberValue()
public
double
getNumberValue
()
Represents a double value.
double number_value = 2;
getStringValue()
public
String
getStringValue
()
Represents a string value.
string string_value = 3;
getStringValueBytes()
public
ByteString
getStringValueBytes
()
Represents a string value.
string string_value = 3;
getStructValue()
public
Struct
getStructValue
()
Represents a structured value.
.google.protobuf.Struct struct_value = 5;
hasBoolValue()
public
boolean
hasBoolValue
()
Represents a boolean value.
bool bool_value = 4;
hasListValue()
public
boolean
hasListValue
()
Represents a repeated Value
.
.google.protobuf.ListValue list_value = 6;
hasNullValue()
public
boolean
hasNullValue
()
Represents a null value.
.google.protobuf.NullValue null_value = 1;
hasNumberValue()
public
boolean
hasNumberValue
()
Represents a double value.
double number_value = 2;
hasStringValue()
public
boolean
hasStringValue
()
Represents a string value.
string string_value = 3;
hasStructValue()
public
boolean
hasStructValue
()
Represents a structured value.
.google.protobuf.Struct struct_value = 5;