Package com.google.protobuf
Interface ValueOrBuilder
-
- All Superinterfaces:
MessageLiteOrBuilder
- All Known Implementing Classes:
Value,Value.Builder
@Generated public interface ValueOrBuilder extends MessageLiteOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetBoolValue()Represents a JSON boolean (`true` or `false` literal in JSON).Value.KindCasegetKindCase()ListValuegetListValue()Represents a JSON array.NullValuegetNullValue()Represents a JSON `null`.intgetNullValueValue()Represents a JSON `null`.doublegetNumberValue()Represents a JSON number.java.lang.StringgetStringValue()Represents a JSON string.ByteStringgetStringValueBytes()Represents a JSON string.StructgetStructValue()Represents a JSON object.booleanhasBoolValue()Represents a JSON boolean (`true` or `false` literal in JSON).booleanhasListValue()Represents a JSON array.booleanhasNullValue()Represents a JSON `null`.booleanhasNumberValue()Represents a JSON number.booleanhasStringValue()Represents a JSON string.booleanhasStructValue()Represents a JSON object.-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
-
-
-
Method Detail
-
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
java.lang.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()
-
-