public
static
final
class
Value
.
Builder
extends
GeneratedMessageLite
.
Builder<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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > GeneratedMessageLite.Builder > Value.BuilderImplements
ValueOrBuilderMethods
clearBoolValue()
public
Value
.
Builder
clearBoolValue
()
Represents a boolean value.
bool bool_value = 4;
clearKind()
public
Value
.
Builder
clearKind
()
clearListValue()
public
Value
.
Builder
clearListValue
()
Represents a repeated Value
.
.google.protobuf.ListValue list_value = 6;
clearNullValue()
public
Value
.
Builder
clearNullValue
()
Represents a null value.
.google.protobuf.NullValue null_value = 1;
clearNumberValue()
public
Value
.
Builder
clearNumberValue
()
Represents a double value.
double number_value = 2;
clearStringValue()
public
Value
.
Builder
clearStringValue
()
Represents a string value.
string string_value = 3;
clearStructValue()
public
Value
.
Builder
clearStructValue
()
Represents a structured value.
.google.protobuf.Struct struct_value = 5;
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;
mergeListValue(ListValue value)
public
Value
.
Builder
mergeListValue
(
ListValue
value
)
Represents a repeated Value
.
.google.protobuf.ListValue list_value = 6;
mergeStructValue(Struct value)
public
Value
.
Builder
mergeStructValue
(
Struct
value
)
Represents a structured value.
.google.protobuf.Struct struct_value = 5;
setBoolValue(boolean value)
public
Value
.
Builder
setBoolValue
(
boolean
value
)
Represents a boolean value.
bool bool_value = 4;
setListValue(ListValue value)
public
Value
.
Builder
setListValue
(
ListValue
value
)
Represents a repeated Value
.
.google.protobuf.ListValue list_value = 6;
setListValue(ListValue.Builder builderForValue)
public
Value
.
Builder
setListValue
(
ListValue
.
Builder
builderForValue
)
Represents a repeated Value
.
.google.protobuf.ListValue list_value = 6;
setNullValue(NullValue value)
public
Value
.
Builder
setNullValue
(
NullValue
value
)
Represents a null value.
.google.protobuf.NullValue null_value = 1;
setNullValueValue(int value)
public
Value
.
Builder
setNullValueValue
(
int
value
)
Represents a null value.
.google.protobuf.NullValue null_value = 1;
setNumberValue(double value)
public
Value
.
Builder
setNumberValue
(
double
value
)
Represents a double value.
double number_value = 2;
setStringValue(String value)
public
Value
.
Builder
setStringValue
(
String
value
)
Represents a string value.
string string_value = 3;
setStringValueBytes(ByteString value)
public
Value
.
Builder
setStringValueBytes
(
ByteString
value
)
Represents a string value.
string string_value = 3;
setStructValue(Struct value)
public
Value
.
Builder
setStructValue
(
Struct
value
)
Represents a structured value.
.google.protobuf.Struct struct_value = 5;
setStructValue(Struct.Builder builderForValue)
public
Value
.
Builder
setStructValue
(
Struct
.
Builder
builderForValue
)
Represents a structured value.
.google.protobuf.Struct struct_value = 5;