Class Type

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.bigtable.v2.Type
All Implemented Interfaces:
TypeOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class Type extends com.google.protobuf.GeneratedMessageV3 implements TypeOrBuilder
 `Type` represents the type of data that is written to, read from, or stored
 in Bigtable. It is heavily based on the GoogleSQL standard to help maintain
 familiarity and consistency across products and features.

 For compatibility with Bigtable's existing untyped APIs, each `Type` includes
 an `Encoding` which describes how to convert to/from the underlying data.

 Each encoding also defines the following properties:

  * Order-preserving: Does the encoded value sort consistently with the
    original typed value? Note that Bigtable will always sort data based on
    the raw encoded value, *not* the decoded type.
     - Example: BYTES values sort in the same order as their raw encodings.
     - Counterexample: Encoding INT64 as a fixed-width decimal string does
       *not* preserve sort order when dealing with negative numbers.
       `INT64(1) > INT64(-1)`, but `STRING("-00001") > STRING("00001)`.
  * Self-delimiting: If we concatenate two encoded values, can we always tell
    where the first one ends and the second one begins?
     - Example: If we encode INT64s to fixed-width STRINGs, the first value
       will always contain exactly N digits, possibly preceded by a sign.
     - Counterexample: If we concatenate two UTF-8 encoded STRINGs, we have
       no way to tell where the first one ends.
  * Compatibility: Which other systems have matching encoding schemes? For
    example, does this encoding have a GoogleSQL equivalent? HBase? Java?
 
Protobuf type google.bigtable.v2.Type
See Also:
  • Field Details

    • BYTES_TYPE_FIELD_NUMBER

      public static final int BYTES_TYPE_FIELD_NUMBER
      See Also:
    • STRING_TYPE_FIELD_NUMBER

      public static final int STRING_TYPE_FIELD_NUMBER
      See Also:
    • INT64_TYPE_FIELD_NUMBER

      public static final int INT64_TYPE_FIELD_NUMBER
      See Also:
    • FLOAT32_TYPE_FIELD_NUMBER

      public static final int FLOAT32_TYPE_FIELD_NUMBER
      See Also:
    • FLOAT64_TYPE_FIELD_NUMBER

      public static final int FLOAT64_TYPE_FIELD_NUMBER
      See Also:
    • BOOL_TYPE_FIELD_NUMBER

      public static final int BOOL_TYPE_FIELD_NUMBER
      See Also:
    • TIMESTAMP_TYPE_FIELD_NUMBER

      public static final int TIMESTAMP_TYPE_FIELD_NUMBER
      See Also:
    • DATE_TYPE_FIELD_NUMBER

      public static final int DATE_TYPE_FIELD_NUMBER
      See Also:
    • AGGREGATE_TYPE_FIELD_NUMBER

      public static final int AGGREGATE_TYPE_FIELD_NUMBER
      See Also:
    • STRUCT_TYPE_FIELD_NUMBER

      public static final int STRUCT_TYPE_FIELD_NUMBER
      See Also:
    • ARRAY_TYPE_FIELD_NUMBER

      public static final int ARRAY_TYPE_FIELD_NUMBER
      See Also:
    • MAP_TYPE_FIELD_NUMBER

      public static final int MAP_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
    • getKindCase

      public Type.KindCase getKindCase()
      Specified by:
      getKindCase in interface TypeOrBuilder
    • hasBytesType

      public boolean hasBytesType()
       Bytes
       
      .google.bigtable.v2.Type.Bytes bytes_type = 1;
      Specified by:
      hasBytesType in interface TypeOrBuilder
      Returns:
      Whether the bytesType field is set.
    • getBytesType

      public Type.Bytes getBytesType()
       Bytes
       
      .google.bigtable.v2.Type.Bytes bytes_type = 1;
      Specified by:
      getBytesType in interface TypeOrBuilder
      Returns:
      The bytesType.
    • getBytesTypeOrBuilder

      public Type.BytesOrBuilder getBytesTypeOrBuilder()
       Bytes
       
      .google.bigtable.v2.Type.Bytes bytes_type = 1;
      Specified by:
      getBytesTypeOrBuilder in interface TypeOrBuilder
    • hasStringType

      public boolean hasStringType()
       String
       
      .google.bigtable.v2.Type.String string_type = 2;
      Specified by:
      hasStringType in interface TypeOrBuilder
      Returns:
      Whether the stringType field is set.
    • getStringType

      public Type.String getStringType()
       String
       
      .google.bigtable.v2.Type.String string_type = 2;
      Specified by:
      getStringType in interface TypeOrBuilder
      Returns:
      The stringType.
    • getStringTypeOrBuilder

      public Type.StringOrBuilder getStringTypeOrBuilder()
       String
       
      .google.bigtable.v2.Type.String string_type = 2;
      Specified by:
      getStringTypeOrBuilder in interface TypeOrBuilder
    • hasInt64Type

      public boolean hasInt64Type()
       Int64
       
      .google.bigtable.v2.Type.Int64 int64_type = 5;
      Specified by:
      hasInt64Type in interface TypeOrBuilder
      Returns:
      Whether the int64Type field is set.
    • getInt64Type

      public Type.Int64 getInt64Type()
       Int64
       
      .google.bigtable.v2.Type.Int64 int64_type = 5;
      Specified by:
      getInt64Type in interface TypeOrBuilder
      Returns:
      The int64Type.
    • getInt64TypeOrBuilder

      public Type.Int64OrBuilder getInt64TypeOrBuilder()
       Int64
       
      .google.bigtable.v2.Type.Int64 int64_type = 5;
      Specified by:
      getInt64TypeOrBuilder in interface TypeOrBuilder
    • hasFloat32Type

      public boolean hasFloat32Type()
       Float32
       
      .google.bigtable.v2.Type.Float32 float32_type = 12;
      Specified by:
      hasFloat32Type in interface TypeOrBuilder
      Returns:
      Whether the float32Type field is set.
    • getFloat32Type

      public Type.Float32 getFloat32Type()
       Float32
       
      .google.bigtable.v2.Type.Float32 float32_type = 12;
      Specified by:
      getFloat32Type in interface TypeOrBuilder
      Returns:
      The float32Type.
    • getFloat32TypeOrBuilder

      public Type.Float32OrBuilder getFloat32TypeOrBuilder()
       Float32
       
      .google.bigtable.v2.Type.Float32 float32_type = 12;
      Specified by:
      getFloat32TypeOrBuilder in interface TypeOrBuilder
    • hasFloat64Type

      public boolean hasFloat64Type()
       Float64
       
      .google.bigtable.v2.Type.Float64 float64_type = 9;
      Specified by:
      hasFloat64Type in interface TypeOrBuilder
      Returns:
      Whether the float64Type field is set.
    • getFloat64Type

      public Type.Float64 getFloat64Type()
       Float64
       
      .google.bigtable.v2.Type.Float64 float64_type = 9;
      Specified by:
      getFloat64Type in interface TypeOrBuilder
      Returns:
      The float64Type.
    • getFloat64TypeOrBuilder

      public Type.Float64OrBuilder getFloat64TypeOrBuilder()
       Float64
       
      .google.bigtable.v2.Type.Float64 float64_type = 9;
      Specified by:
      getFloat64TypeOrBuilder in interface TypeOrBuilder
    • hasBoolType

      public boolean hasBoolType()
       Bool
       
      .google.bigtable.v2.Type.Bool bool_type = 8;
      Specified by:
      hasBoolType in interface TypeOrBuilder
      Returns:
      Whether the boolType field is set.
    • getBoolType

      public Type.Bool getBoolType()
       Bool
       
      .google.bigtable.v2.Type.Bool bool_type = 8;
      Specified by:
      getBoolType in interface TypeOrBuilder
      Returns:
      The boolType.
    • getBoolTypeOrBuilder

      public Type.BoolOrBuilder getBoolTypeOrBuilder()
       Bool
       
      .google.bigtable.v2.Type.Bool bool_type = 8;
      Specified by:
      getBoolTypeOrBuilder in interface TypeOrBuilder
    • hasTimestampType

      public boolean hasTimestampType()
       Timestamp
       
      .google.bigtable.v2.Type.Timestamp timestamp_type = 10;
      Specified by:
      hasTimestampType in interface TypeOrBuilder
      Returns:
      Whether the timestampType field is set.
    • getTimestampType

      public Type.Timestamp getTimestampType()
       Timestamp
       
      .google.bigtable.v2.Type.Timestamp timestamp_type = 10;
      Specified by:
      getTimestampType in interface TypeOrBuilder
      Returns:
      The timestampType.
    • getTimestampTypeOrBuilder

      public Type.TimestampOrBuilder getTimestampTypeOrBuilder()
       Timestamp
       
      .google.bigtable.v2.Type.Timestamp timestamp_type = 10;
      Specified by:
      getTimestampTypeOrBuilder in interface TypeOrBuilder
    • hasDateType

      public boolean hasDateType()
       Date
       
      .google.bigtable.v2.Type.Date date_type = 11;
      Specified by:
      hasDateType in interface TypeOrBuilder
      Returns:
      Whether the dateType field is set.
    • getDateType

      public Type.Date getDateType()
       Date
       
      .google.bigtable.v2.Type.Date date_type = 11;
      Specified by:
      getDateType in interface TypeOrBuilder
      Returns:
      The dateType.
    • getDateTypeOrBuilder

      public Type.DateOrBuilder getDateTypeOrBuilder()
       Date
       
      .google.bigtable.v2.Type.Date date_type = 11;
      Specified by:
      getDateTypeOrBuilder in interface TypeOrBuilder
    • hasAggregateType

      public boolean hasAggregateType()
       Aggregate
       
      .google.bigtable.v2.Type.Aggregate aggregate_type = 6;
      Specified by:
      hasAggregateType in interface TypeOrBuilder
      Returns:
      Whether the aggregateType field is set.
    • getAggregateType

      public Type.Aggregate getAggregateType()
       Aggregate
       
      .google.bigtable.v2.Type.Aggregate aggregate_type = 6;
      Specified by:
      getAggregateType in interface TypeOrBuilder
      Returns:
      The aggregateType.
    • getAggregateTypeOrBuilder

      public Type.AggregateOrBuilder getAggregateTypeOrBuilder()
       Aggregate
       
      .google.bigtable.v2.Type.Aggregate aggregate_type = 6;
      Specified by:
      getAggregateTypeOrBuilder in interface TypeOrBuilder
    • hasStructType

      public boolean hasStructType()
       Struct
       
      .google.bigtable.v2.Type.Struct struct_type = 7;
      Specified by:
      hasStructType in interface TypeOrBuilder
      Returns:
      Whether the structType field is set.
    • getStructType

      public Type.Struct getStructType()
       Struct
       
      .google.bigtable.v2.Type.Struct struct_type = 7;
      Specified by:
      getStructType in interface TypeOrBuilder
      Returns:
      The structType.
    • getStructTypeOrBuilder

      public Type.StructOrBuilder getStructTypeOrBuilder()
       Struct
       
      .google.bigtable.v2.Type.Struct struct_type = 7;
      Specified by:
      getStructTypeOrBuilder in interface TypeOrBuilder
    • hasArrayType

      public boolean hasArrayType()
       Array
       
      .google.bigtable.v2.Type.Array array_type = 3;
      Specified by:
      hasArrayType in interface TypeOrBuilder
      Returns:
      Whether the arrayType field is set.
    • getArrayType

      public Type.Array getArrayType()
       Array
       
      .google.bigtable.v2.Type.Array array_type = 3;
      Specified by:
      getArrayType in interface TypeOrBuilder
      Returns:
      The arrayType.
    • getArrayTypeOrBuilder

      public Type.ArrayOrBuilder getArrayTypeOrBuilder()
       Array
       
      .google.bigtable.v2.Type.Array array_type = 3;
      Specified by:
      getArrayTypeOrBuilder in interface TypeOrBuilder
    • hasMapType

      public boolean hasMapType()
       Map
       
      .google.bigtable.v2.Type.Map map_type = 4;
      Specified by:
      hasMapType in interface TypeOrBuilder
      Returns:
      Whether the mapType field is set.
    • getMapType

      public Type.Map getMapType()
       Map
       
      .google.bigtable.v2.Type.Map map_type = 4;
      Specified by:
      getMapType in interface TypeOrBuilder
      Returns:
      The mapType.
    • getMapTypeOrBuilder

      public Type.MapOrBuilder getMapTypeOrBuilder()
       Map
       
      .google.bigtable.v2.Type.Map map_type = 4;
      Specified by:
      getMapTypeOrBuilder in interface TypeOrBuilder
    • 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 Type parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static Type.Builder newBuilder()
    • newBuilder

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

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

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

      public static Type getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Type> 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 Type getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder