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.
|
boolean |
hasListValue()
Represents a repeated `Value`.
|
boolean |
hasStructValue()
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, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, 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.
.google.protobuf.NullValue null_value = 1;
getNullValueValue
in interface ValueOrBuilder
public Value.Builder setNullValueValue(int value)
Represents a null value.
.google.protobuf.NullValue null_value = 1;
value
- The enum numeric value on the wire for nullValue to set.public NullValue getNullValue()
Represents a null value.
.google.protobuf.NullValue null_value = 1;
getNullValue
in interface ValueOrBuilder
public Value.Builder setNullValue(NullValue value)
Represents a null value.
.google.protobuf.NullValue null_value = 1;
value
- The nullValue to set.public Value.Builder clearNullValue()
Represents a null value.
.google.protobuf.NullValue null_value = 1;
public double getNumberValue()
Represents a double value.
double number_value = 2;
getNumberValue
in interface ValueOrBuilder
public Value.Builder setNumberValue(double value)
Represents a double value.
double number_value = 2;
value
- The numberValue to set.public Value.Builder clearNumberValue()
Represents a double value.
double number_value = 2;
public String getStringValue()
Represents a string value.
string string_value = 3;
getStringValue
in interface ValueOrBuilder
public ByteString getStringValueBytes()
Represents a string value.
string string_value = 3;
getStringValueBytes
in interface ValueOrBuilder
public Value.Builder setStringValue(String value)
Represents a string value.
string string_value = 3;
value
- The stringValue to set.public Value.Builder clearStringValue()
Represents a string value.
string string_value = 3;
public Value.Builder setStringValueBytes(ByteString value)
Represents a string value.
string string_value = 3;
value
- The bytes for stringValue to set.public boolean getBoolValue()
Represents a boolean value.
bool bool_value = 4;
getBoolValue
in interface ValueOrBuilder
public Value.Builder setBoolValue(boolean value)
Represents a boolean value.
bool bool_value = 4;
value
- The boolValue to set.public Value.Builder clearBoolValue()
Represents a boolean value.
bool bool_value = 4;
public boolean hasStructValue()
Represents a structured value.
.google.protobuf.Struct struct_value = 5;
hasStructValue
in interface ValueOrBuilder
public Struct getStructValue()
Represents a structured value.
.google.protobuf.Struct struct_value = 5;
getStructValue
in interface ValueOrBuilder
public Value.Builder setStructValue(Struct value)
Represents a structured value.
.google.protobuf.Struct struct_value = 5;
public Value.Builder setStructValue(Struct.Builder builderForValue)
Represents a structured value.
.google.protobuf.Struct struct_value = 5;
public Value.Builder mergeStructValue(Struct value)
Represents a structured value.
.google.protobuf.Struct struct_value = 5;
public Value.Builder clearStructValue()
Represents a structured value.
.google.protobuf.Struct struct_value = 5;
public boolean hasListValue()
Represents a repeated `Value`.
.google.protobuf.ListValue list_value = 6;
hasListValue
in interface ValueOrBuilder
public ListValue getListValue()
Represents a repeated `Value`.
.google.protobuf.ListValue list_value = 6;
getListValue
in interface ValueOrBuilder
public Value.Builder setListValue(ListValue value)
Represents a repeated `Value`.
.google.protobuf.ListValue list_value = 6;
public Value.Builder setListValue(ListValue.Builder builderForValue)
Represents a repeated `Value`.
.google.protobuf.ListValue list_value = 6;
public Value.Builder mergeListValue(ListValue value)
Represents a repeated `Value`.
.google.protobuf.ListValue list_value = 6;
public Value.Builder clearListValue()
Represents a repeated `Value`.
.google.protobuf.ListValue list_value = 6;
Copyright © 2008–2022. All rights reserved.