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 that variants, absence of any variant indicates an error. The JSON representation for `Value` is JSON value.Protobuf type
google.protobuf.Value
instance, isBuilt
Modifier and Type | Method and Description |
---|---|
Value.Builder |
clearBoolValue()
Represents a boolean value.
|
Value.Builder |
clearKind() |
Value.Builder |
clearListValue()
Represents a repeated `Value`.
|
Value.Builder |
clearNullValue()
Represents a null value.
|
Value.Builder |
clearNumberValue()
Represents a double value.
|
Value.Builder |
clearStringValue()
Represents a string value.
|
Value.Builder |
clearStructValue()
Represents a structured value.
|
boolean |
getBoolValue()
Represents a boolean value.
|
Value.KindCase |
getKindCase() |
ListValue |
getListValue()
Represents a repeated `Value`.
|
NullValue |
getNullValue()
Represents a null value.
|
int |
getNullValueValue()
Represents a null value.
|
double |
getNumberValue()
Represents a double value.
|
String |
getStringValue()
Represents a string value.
|
ByteString |
getStringValueBytes()
Represents a string value.
|
Struct |
getStructValue()
Represents a structured value.
|
Value.Builder |
mergeListValue(ListValue value)
Represents a repeated `Value`.
|
Value.Builder |
mergeStructValue(Struct value)
Represents a structured value.
|
Value.Builder |
setBoolValue(boolean value)
Represents a boolean value.
|
Value.Builder |
setListValue(ListValue.Builder builderForValue)
Represents a repeated `Value`.
|
Value.Builder |
setListValue(ListValue value)
Represents a repeated `Value`.
|
Value.Builder |
setNullValue(NullValue value)
Represents a null value.
|
Value.Builder |
setNullValueValue(int value)
Represents a null value.
|
Value.Builder |
setNumberValue(double value)
Represents a double value.
|
Value.Builder |
setStringValue(String value)
Represents a string value.
|
Value.Builder |
setStringValueBytes(ByteString value)
Represents a string value.
|
Value.Builder |
setStructValue(Struct.Builder builderForValue)
Represents a structured value.
|
Value.Builder |
setStructValue(Struct value)
Represents a structured value.
|
build, buildPartial, clear, clone, copyOnWrite, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom
addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultInstanceForType, isInitialized
public Value.KindCase getKindCase()
getKindCase
in interface ValueOrBuilder
public Value.Builder clearKind()
public int getNullValueValue()
Represents a null value.
optional .google.protobuf.NullValue null_value = 1;
getNullValueValue
in interface ValueOrBuilder
public Value.Builder setNullValueValue(int value)
Represents a null value.
optional .google.protobuf.NullValue null_value = 1;
public NullValue getNullValue()
Represents a null value.
optional .google.protobuf.NullValue null_value = 1;
getNullValue
in interface ValueOrBuilder
public Value.Builder setNullValue(NullValue value)
Represents a null value.
optional .google.protobuf.NullValue null_value = 1;
public Value.Builder clearNullValue()
Represents a null value.
optional .google.protobuf.NullValue null_value = 1;
public double getNumberValue()
Represents a double value.
optional double number_value = 2;
getNumberValue
in interface ValueOrBuilder
public Value.Builder setNumberValue(double value)
Represents a double value.
optional double number_value = 2;
public Value.Builder clearNumberValue()
Represents a double value.
optional double number_value = 2;
public String getStringValue()
Represents a string value.
optional string string_value = 3;
getStringValue
in interface ValueOrBuilder
public ByteString getStringValueBytes()
Represents a string value.
optional string string_value = 3;
getStringValueBytes
in interface ValueOrBuilder
public Value.Builder setStringValue(String value)
Represents a string value.
optional string string_value = 3;
public Value.Builder clearStringValue()
Represents a string value.
optional string string_value = 3;
public Value.Builder setStringValueBytes(ByteString value)
Represents a string value.
optional string string_value = 3;
public boolean getBoolValue()
Represents a boolean value.
optional bool bool_value = 4;
getBoolValue
in interface ValueOrBuilder
public Value.Builder setBoolValue(boolean value)
Represents a boolean value.
optional bool bool_value = 4;
public Value.Builder clearBoolValue()
Represents a boolean value.
optional bool bool_value = 4;
public Struct getStructValue()
Represents a structured value.
optional .google.protobuf.Struct struct_value = 5;
getStructValue
in interface ValueOrBuilder
public Value.Builder setStructValue(Struct value)
Represents a structured value.
optional .google.protobuf.Struct struct_value = 5;
public Value.Builder setStructValue(Struct.Builder builderForValue)
Represents a structured value.
optional .google.protobuf.Struct struct_value = 5;
public Value.Builder mergeStructValue(Struct value)
Represents a structured value.
optional .google.protobuf.Struct struct_value = 5;
public Value.Builder clearStructValue()
Represents a structured value.
optional .google.protobuf.Struct struct_value = 5;
public ListValue getListValue()
Represents a repeated `Value`.
optional .google.protobuf.ListValue list_value = 6;
getListValue
in interface ValueOrBuilder
public Value.Builder setListValue(ListValue value)
Represents a repeated `Value`.
optional .google.protobuf.ListValue list_value = 6;
public Value.Builder setListValue(ListValue.Builder builderForValue)
Represents a repeated `Value`.
optional .google.protobuf.ListValue list_value = 6;
public Value.Builder mergeListValue(ListValue value)
Represents a repeated `Value`.
optional .google.protobuf.ListValue list_value = 6;
public Value.Builder clearListValue()
Represents a repeated `Value`.
optional .google.protobuf.ListValue list_value = 6;
Copyright © 2008–2016 Google. All rights reserved.