Interface ValueOrBuilder
- All Superinterfaces:
MessageLiteOrBuilder
- All Known Implementing Classes:
Value, Value.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanRepresents a JSON boolean (`true` or `false` literal in JSON).Represents a JSON array.Represents a JSON `null`.intRepresents a JSON `null`.doubleRepresents a JSON number.Represents a JSON string.Represents a JSON string.Represents a JSON object.booleanRepresents a JSON boolean (`true` or `false` literal in JSON).booleanRepresents a JSON array.booleanRepresents a JSON `null`.booleanRepresents a JSON number.booleanRepresents a JSON string.booleanRepresents a JSON object.Methods inherited from interface MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasNullValue
boolean hasNullValue()Represents a JSON `null`.
.google.protobuf.NullValue null_value = 1;- Returns:
- Whether the nullValue field is set.
-
getNullValueValue
int getNullValueValue()Represents a JSON `null`.
.google.protobuf.NullValue null_value = 1;- Returns:
- The enum numeric value on the wire for nullValue.
-
getNullValue
NullValue getNullValue()Represents a JSON `null`.
.google.protobuf.NullValue null_value = 1;- Returns:
- The nullValue.
-
hasNumberValue
boolean hasNumberValue()Represents a JSON number. Must not be `NaN`, `Infinity` or `-Infinity`, since those are not supported in JSON. This also cannot represent large Int64 values, since JSON format generally does not support them in its number type.
double number_value = 2;- Returns:
- Whether the numberValue field is set.
-
getNumberValue
double getNumberValue()Represents a JSON number. Must not be `NaN`, `Infinity` or `-Infinity`, since those are not supported in JSON. This also cannot represent large Int64 values, since JSON format generally does not support them in its number type.
double number_value = 2;- Returns:
- The numberValue.
-
hasStringValue
boolean hasStringValue()Represents a JSON string.
string string_value = 3;- Returns:
- Whether the stringValue field is set.
-
getStringValue
String getStringValue()Represents a JSON string.
string string_value = 3;- Returns:
- The stringValue.
-
getStringValueBytes
ByteString getStringValueBytes()Represents a JSON string.
string string_value = 3;- Returns:
- The bytes for stringValue.
-
hasBoolValue
boolean hasBoolValue()Represents a JSON boolean (`true` or `false` literal in JSON).
bool bool_value = 4;- Returns:
- Whether the boolValue field is set.
-
getBoolValue
boolean getBoolValue()Represents a JSON boolean (`true` or `false` literal in JSON).
bool bool_value = 4;- Returns:
- The boolValue.
-
hasStructValue
boolean hasStructValue()Represents a JSON object.
.google.protobuf.Struct struct_value = 5;- Returns:
- Whether the structValue field is set.
-
getStructValue
Struct getStructValue()Represents a JSON object.
.google.protobuf.Struct struct_value = 5;- Returns:
- The structValue.
-
hasListValue
boolean hasListValue()Represents a JSON array.
.google.protobuf.ListValue list_value = 6;- Returns:
- Whether the listValue field is set.
-
getListValue
ListValue getListValue()Represents a JSON array.
.google.protobuf.ListValue list_value = 6;- Returns:
- The listValue.
-
getKindCase
Value.KindCase getKindCase()
-