Class Value

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.spanner.executor.v1.Value
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ValueOrBuilder, Serializable

public final class Value extends com.google.protobuf.GeneratedMessageV3 implements ValueOrBuilder
 Value represents a single value that can be read or written to/from
 Spanner.
 
Protobuf type google.spanner.executor.v1.Value
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Value represents a single value that can be read or written to/from Spanner.
    static enum 
     

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Type of array element.
    Type of array element.
    Array type value.
    Array type value.
    boolean
    Bool type value.
    com.google.protobuf.ByteString
    Bytes type value, stored in CORD.
    int
    Date type value.
    static Value
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    double
    Double type value.
    long
    Int type value.
    boolean
    If set, holds the sentinel value for the transaction CommitTimestamp.
    boolean
    If is_null is set, then this value is null.
    com.google.protobuf.Parser<Value>
     
    int
     
    String type value, stored in CORD.
    com.google.protobuf.ByteString
    String type value, stored in CORD.
    Struct type value.
    Struct type value.
    com.google.protobuf.Timestamp
    Timestamp type value.
    com.google.protobuf.TimestampOrBuilder
    Timestamp type value.
     
    boolean
    Type of array element.
    boolean
    Array type value.
    boolean
    Bool type value.
    boolean
    Bytes type value, stored in CORD.
    boolean
    Date type value.
    boolean
    Double type value.
    int
     
    boolean
    Int type value.
    boolean
    If set, holds the sentinel value for the transaction CommitTimestamp.
    boolean
    If is_null is set, then this value is null.
    boolean
    String type value, stored in CORD.
    boolean
    Struct type value.
    boolean
    Timestamp type value.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(Value prototype)
     
     
    protected Value.Builder
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
    static Value
     
    static Value
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Value
    parseFrom(byte[] data)
     
    static Value
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Value
    parseFrom(com.google.protobuf.ByteString data)
     
    static Value
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Value
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static Value
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Value
     
    static Value
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Value
     
    static Value
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Value>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, 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.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • IS_NULL_FIELD_NUMBER

      public static final int IS_NULL_FIELD_NUMBER
      See Also:
    • INT_VALUE_FIELD_NUMBER

      public static final int INT_VALUE_FIELD_NUMBER
      See Also:
    • BOOL_VALUE_FIELD_NUMBER

      public static final int BOOL_VALUE_FIELD_NUMBER
      See Also:
    • DOUBLE_VALUE_FIELD_NUMBER

      public static final int DOUBLE_VALUE_FIELD_NUMBER
      See Also:
    • BYTES_VALUE_FIELD_NUMBER

      public static final int BYTES_VALUE_FIELD_NUMBER
      See Also:
    • STRING_VALUE_FIELD_NUMBER

      public static final int STRING_VALUE_FIELD_NUMBER
      See Also:
    • STRUCT_VALUE_FIELD_NUMBER

      public static final int STRUCT_VALUE_FIELD_NUMBER
      See Also:
    • TIMESTAMP_VALUE_FIELD_NUMBER

      public static final int TIMESTAMP_VALUE_FIELD_NUMBER
      See Also:
    • DATE_DAYS_VALUE_FIELD_NUMBER

      public static final int DATE_DAYS_VALUE_FIELD_NUMBER
      See Also:
    • IS_COMMIT_TIMESTAMP_FIELD_NUMBER

      public static final int IS_COMMIT_TIMESTAMP_FIELD_NUMBER
      See Also:
    • ARRAY_VALUE_FIELD_NUMBER

      public static final int ARRAY_VALUE_FIELD_NUMBER
      See Also:
    • ARRAY_TYPE_FIELD_NUMBER

      public static final int ARRAY_TYPE_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getValueTypeCase

      public Value.ValueTypeCase getValueTypeCase()
      Specified by:
      getValueTypeCase in interface ValueOrBuilder
    • hasIsNull

      public boolean hasIsNull()
       If is_null is set, then this value is null.
       
      bool is_null = 1;
      Specified by:
      hasIsNull in interface ValueOrBuilder
      Returns:
      Whether the isNull field is set.
    • getIsNull

      public boolean getIsNull()
       If is_null is set, then this value is null.
       
      bool is_null = 1;
      Specified by:
      getIsNull in interface ValueOrBuilder
      Returns:
      The isNull.
    • hasIntValue

      public boolean hasIntValue()
       Int type value. It's used for all integer number types, like int32 and
       int64.
       
      int64 int_value = 2;
      Specified by:
      hasIntValue in interface ValueOrBuilder
      Returns:
      Whether the intValue field is set.
    • getIntValue

      public long getIntValue()
       Int type value. It's used for all integer number types, like int32 and
       int64.
       
      int64 int_value = 2;
      Specified by:
      getIntValue in interface ValueOrBuilder
      Returns:
      The intValue.
    • hasBoolValue

      public boolean hasBoolValue()
       Bool type value.
       
      bool bool_value = 3;
      Specified by:
      hasBoolValue in interface ValueOrBuilder
      Returns:
      Whether the boolValue field is set.
    • getBoolValue

      public boolean getBoolValue()
       Bool type value.
       
      bool bool_value = 3;
      Specified by:
      getBoolValue in interface ValueOrBuilder
      Returns:
      The boolValue.
    • hasDoubleValue

      public boolean hasDoubleValue()
       Double type value. It's used for all float point types, like float and
       double.
       
      double double_value = 4;
      Specified by:
      hasDoubleValue in interface ValueOrBuilder
      Returns:
      Whether the doubleValue field is set.
    • getDoubleValue

      public double getDoubleValue()
       Double type value. It's used for all float point types, like float and
       double.
       
      double double_value = 4;
      Specified by:
      getDoubleValue in interface ValueOrBuilder
      Returns:
      The doubleValue.
    • hasBytesValue

      public boolean hasBytesValue()
       Bytes type value, stored in CORD. It's also used for PROTO type value.
       
      bytes bytes_value = 5;
      Specified by:
      hasBytesValue in interface ValueOrBuilder
      Returns:
      Whether the bytesValue field is set.
    • getBytesValue

      public com.google.protobuf.ByteString getBytesValue()
       Bytes type value, stored in CORD. It's also used for PROTO type value.
       
      bytes bytes_value = 5;
      Specified by:
      getBytesValue in interface ValueOrBuilder
      Returns:
      The bytesValue.
    • hasStringValue

      public boolean hasStringValue()
       String type value, stored in CORD.
       
      string string_value = 6;
      Specified by:
      hasStringValue in interface ValueOrBuilder
      Returns:
      Whether the stringValue field is set.
    • getStringValue

      public String getStringValue()
       String type value, stored in CORD.
       
      string string_value = 6;
      Specified by:
      getStringValue in interface ValueOrBuilder
      Returns:
      The stringValue.
    • getStringValueBytes

      public com.google.protobuf.ByteString getStringValueBytes()
       String type value, stored in CORD.
       
      string string_value = 6;
      Specified by:
      getStringValueBytes in interface ValueOrBuilder
      Returns:
      The bytes for stringValue.
    • hasStructValue

      public boolean hasStructValue()
       Struct type value. It contains a ValueList representing the values in
       this struct.
       
      .google.spanner.executor.v1.ValueList struct_value = 7;
      Specified by:
      hasStructValue in interface ValueOrBuilder
      Returns:
      Whether the structValue field is set.
    • getStructValue

      public ValueList getStructValue()
       Struct type value. It contains a ValueList representing the values in
       this struct.
       
      .google.spanner.executor.v1.ValueList struct_value = 7;
      Specified by:
      getStructValue in interface ValueOrBuilder
      Returns:
      The structValue.
    • getStructValueOrBuilder

      public ValueListOrBuilder getStructValueOrBuilder()
       Struct type value. It contains a ValueList representing the values in
       this struct.
       
      .google.spanner.executor.v1.ValueList struct_value = 7;
      Specified by:
      getStructValueOrBuilder in interface ValueOrBuilder
    • hasTimestampValue

      public boolean hasTimestampValue()
       Timestamp type value.
       
      .google.protobuf.Timestamp timestamp_value = 8;
      Specified by:
      hasTimestampValue in interface ValueOrBuilder
      Returns:
      Whether the timestampValue field is set.
    • getTimestampValue

      public com.google.protobuf.Timestamp getTimestampValue()
       Timestamp type value.
       
      .google.protobuf.Timestamp timestamp_value = 8;
      Specified by:
      getTimestampValue in interface ValueOrBuilder
      Returns:
      The timestampValue.
    • getTimestampValueOrBuilder

      public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder()
       Timestamp type value.
       
      .google.protobuf.Timestamp timestamp_value = 8;
      Specified by:
      getTimestampValueOrBuilder in interface ValueOrBuilder
    • hasDateDaysValue

      public boolean hasDateDaysValue()
       Date type value. Date is specified as a number of days since Unix epoch.
       
      int32 date_days_value = 9;
      Specified by:
      hasDateDaysValue in interface ValueOrBuilder
      Returns:
      Whether the dateDaysValue field is set.
    • getDateDaysValue

      public int getDateDaysValue()
       Date type value. Date is specified as a number of days since Unix epoch.
       
      int32 date_days_value = 9;
      Specified by:
      getDateDaysValue in interface ValueOrBuilder
      Returns:
      The dateDaysValue.
    • hasIsCommitTimestamp

      public boolean hasIsCommitTimestamp()
       If set, holds the sentinel value for the transaction CommitTimestamp.
       
      bool is_commit_timestamp = 10;
      Specified by:
      hasIsCommitTimestamp in interface ValueOrBuilder
      Returns:
      Whether the isCommitTimestamp field is set.
    • getIsCommitTimestamp

      public boolean getIsCommitTimestamp()
       If set, holds the sentinel value for the transaction CommitTimestamp.
       
      bool is_commit_timestamp = 10;
      Specified by:
      getIsCommitTimestamp in interface ValueOrBuilder
      Returns:
      The isCommitTimestamp.
    • hasArrayValue

      public boolean hasArrayValue()
       Array type value. The underlying Valuelist should have values that have
       the same type.
       
      .google.spanner.executor.v1.ValueList array_value = 11;
      Specified by:
      hasArrayValue in interface ValueOrBuilder
      Returns:
      Whether the arrayValue field is set.
    • getArrayValue

      public ValueList getArrayValue()
       Array type value. The underlying Valuelist should have values that have
       the same type.
       
      .google.spanner.executor.v1.ValueList array_value = 11;
      Specified by:
      getArrayValue in interface ValueOrBuilder
      Returns:
      The arrayValue.
    • getArrayValueOrBuilder

      public ValueListOrBuilder getArrayValueOrBuilder()
       Array type value. The underlying Valuelist should have values that have
       the same type.
       
      .google.spanner.executor.v1.ValueList array_value = 11;
      Specified by:
      getArrayValueOrBuilder in interface ValueOrBuilder
    • hasArrayType

      public boolean hasArrayType()
       Type of array element. Only set if value is an array.
       
      optional .google.spanner.v1.Type array_type = 12;
      Specified by:
      hasArrayType in interface ValueOrBuilder
      Returns:
      Whether the arrayType field is set.
    • getArrayType

      public Type getArrayType()
       Type of array element. Only set if value is an array.
       
      optional .google.spanner.v1.Type array_type = 12;
      Specified by:
      getArrayType in interface ValueOrBuilder
      Returns:
      The arrayType.
    • getArrayTypeOrBuilder

      public TypeOrBuilder getArrayTypeOrBuilder()
       Type of array element. Only set if value is an array.
       
      optional .google.spanner.v1.Type array_type = 12;
      Specified by:
      getArrayTypeOrBuilder in interface ValueOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Value parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Value parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Value parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Value parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Value parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Value parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Value parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Value parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Value parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Value parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Value parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Value.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Value.Builder newBuilder()
    • newBuilder

      public static Value.Builder newBuilder(Value prototype)
    • toBuilder

      public Value.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Value.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Value getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Value> parser()
    • getParserForType

      public com.google.protobuf.Parser<Value> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Value getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder