Package com.google.protobuf
Class Value
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite<Value,Value.Builder>
-
- com.google.protobuf.Value
-
- All Implemented Interfaces:
MessageLite,MessageLiteOrBuilder,ValueOrBuilder
public final class Value extends GeneratedMessageLite<Value,Value.Builder> implements ValueOrBuilder
Protobuf typegoogle.protobuf.Value
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValue.BuilderProtobuf typegoogle.protobuf.Valuestatic classValue.KindCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
GeneratedMessageLite.DefaultInstanceBasedParser<T extends GeneratedMessageLite<T,?>>, GeneratedMessageLite.ExtendableBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.ExtendableMessage<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.GeneratedExtension<ContainingType extends MessageLite,Type>, GeneratedMessageLite.MethodToInvoke, GeneratedMessageLite.SerializedForm
-
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum
-
-
Field Summary
Fields Modifier and Type Field Description static intBOOL_VALUE_FIELD_NUMBERstatic intLIST_VALUE_FIELD_NUMBERstatic intNULL_VALUE_FIELD_NUMBERstatic intNUMBER_VALUE_FIELD_NUMBERstatic intSTRING_VALUE_FIELD_NUMBERstatic intSTRUCT_VALUE_FIELD_NUMBER-
Fields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFields
-
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectdynamicMethod(GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)A method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke.booleangetBoolValue()bool bool_value = 4 [json_name = "boolValue"];static ValuegetDefaultInstance()Value.KindCasegetKindCase()ListValuegetListValue().google.protobuf.ListValue list_value = 6 [json_name = "listValue"];NullValuegetNullValue().google.protobuf.NullValue null_value = 1 [json_name = "nullValue"];intgetNullValueValue().google.protobuf.NullValue null_value = 1 [json_name = "nullValue"];doublegetNumberValue()double number_value = 2 [json_name = "numberValue"];java.lang.StringgetStringValue()string string_value = 3 [json_name = "stringValue"];ByteStringgetStringValueBytes()string string_value = 3 [json_name = "stringValue"];StructgetStructValue().google.protobuf.Struct struct_value = 5 [json_name = "structValue"];booleanhasBoolValue()bool bool_value = 4 [json_name = "boolValue"];booleanhasListValue().google.protobuf.ListValue list_value = 6 [json_name = "listValue"];booleanhasNullValue().google.protobuf.NullValue null_value = 1 [json_name = "nullValue"];booleanhasNumberValue()double number_value = 2 [json_name = "numberValue"];booleanhasStringValue()string string_value = 3 [json_name = "stringValue"];booleanhasStructValue().google.protobuf.Struct struct_value = 5 [json_name = "structValue"];static Value.BuildernewBuilder()static Value.BuildernewBuilder(Value prototype)static ValueparseDelimitedFrom(java.io.InputStream input)static ValueparseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)static ValueparseFrom(byte[] data)static ValueparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)static ValueparseFrom(ByteString data)static ValueparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)static ValueparseFrom(CodedInputStream input)static ValueparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)static ValueparseFrom(java.io.InputStream input)static ValueparseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)static ValueparseFrom(java.nio.ByteBuffer data)static ValueparseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry)static Parser<Value>parser()-
Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
-
-
-
Field Detail
-
NULL_VALUE_FIELD_NUMBER
public static final int NULL_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NUMBER_VALUE_FIELD_NUMBER
public static final int NUMBER_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRING_VALUE_FIELD_NUMBER
public static final int STRING_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOL_VALUE_FIELD_NUMBER
public static final int BOOL_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRUCT_VALUE_FIELD_NUMBER
public static final int STRUCT_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LIST_VALUE_FIELD_NUMBER
public static final int LIST_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getKindCase
public Value.KindCase getKindCase()
- Specified by:
getKindCasein interfaceValueOrBuilder
-
hasNullValue
public boolean hasNullValue()
.google.protobuf.NullValue null_value = 1 [json_name = "nullValue"];- Specified by:
hasNullValuein interfaceValueOrBuilder- Returns:
- Whether the nullValue field is set.
-
getNullValueValue
public int getNullValueValue()
.google.protobuf.NullValue null_value = 1 [json_name = "nullValue"];- Specified by:
getNullValueValuein interfaceValueOrBuilder- Returns:
- The enum numeric value on the wire for nullValue.
-
getNullValue
public NullValue getNullValue()
.google.protobuf.NullValue null_value = 1 [json_name = "nullValue"];- Specified by:
getNullValuein interfaceValueOrBuilder- Returns:
- The nullValue.
-
hasNumberValue
public boolean hasNumberValue()
double number_value = 2 [json_name = "numberValue"];- Specified by:
hasNumberValuein interfaceValueOrBuilder- Returns:
- Whether the numberValue field is set.
-
getNumberValue
public double getNumberValue()
double number_value = 2 [json_name = "numberValue"];- Specified by:
getNumberValuein interfaceValueOrBuilder- Returns:
- The numberValue.
-
hasStringValue
public boolean hasStringValue()
string string_value = 3 [json_name = "stringValue"];- Specified by:
hasStringValuein interfaceValueOrBuilder- Returns:
- Whether the stringValue field is set.
-
getStringValue
public java.lang.String getStringValue()
string string_value = 3 [json_name = "stringValue"];- Specified by:
getStringValuein interfaceValueOrBuilder- Returns:
- The stringValue.
-
getStringValueBytes
public ByteString getStringValueBytes()
string string_value = 3 [json_name = "stringValue"];- Specified by:
getStringValueBytesin interfaceValueOrBuilder- Returns:
- The bytes for stringValue.
-
hasBoolValue
public boolean hasBoolValue()
bool bool_value = 4 [json_name = "boolValue"];- Specified by:
hasBoolValuein interfaceValueOrBuilder- Returns:
- Whether the boolValue field is set.
-
getBoolValue
public boolean getBoolValue()
bool bool_value = 4 [json_name = "boolValue"];- Specified by:
getBoolValuein interfaceValueOrBuilder- Returns:
- The boolValue.
-
hasStructValue
public boolean hasStructValue()
.google.protobuf.Struct struct_value = 5 [json_name = "structValue"];- Specified by:
hasStructValuein interfaceValueOrBuilder- Returns:
- Whether the structValue field is set.
-
getStructValue
public Struct getStructValue()
.google.protobuf.Struct struct_value = 5 [json_name = "structValue"];- Specified by:
getStructValuein interfaceValueOrBuilder- Returns:
- The structValue.
-
hasListValue
public boolean hasListValue()
.google.protobuf.ListValue list_value = 6 [json_name = "listValue"];- Specified by:
hasListValuein interfaceValueOrBuilder- Returns:
- Whether the listValue field is set.
-
getListValue
public ListValue getListValue()
.google.protobuf.ListValue list_value = 6 [json_name = "listValue"];- Specified by:
getListValuein interfaceValueOrBuilder- Returns:
- The listValue.
-
parseFrom
public static Value parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Value parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Value parseFrom(ByteString data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Value parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Value parseFrom(byte[] data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Value parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Value parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Value parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Value parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Value parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Value parseFrom(CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Value parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilder
public static Value.Builder newBuilder()
-
newBuilder
public static Value.Builder newBuilder(Value prototype)
-
dynamicMethod
protected final java.lang.Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)
Description copied from class:GeneratedMessageLiteA method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke. These different kinds of operations are required to implement message-level operations for builders in the runtime. This method bundles those operations to reduce the generated methods count.NEW_INSTANCEreturns a new instance of the protocol buffer that has not yet been made immutable. SeeMAKE_IMMUTABLE.IS_INITIALIZEDreturnsnullfor false and the default instance for true. It doesn't use or modify any memoized value.GET_MEMOIZED_IS_INITIALIZEDreturns the memoizedisInitializedbyte value.SET_MEMOIZED_IS_INITIALIZEDsets the memoizedisInitializedbyte value to 1 if the first parameter is not null, or to 0 if the first parameter is null.NEW_BUILDERreturns aBuilderTypeinstance.
For use by generated code only.
- Specified by:
dynamicMethodin classGeneratedMessageLite<Value,Value.Builder>
-
getDefaultInstance
public static Value getDefaultInstance()
-
-