Package com.google.bigtable.admin.v2
Class Type
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.bigtable.admin.v2.Type
- All Implemented Interfaces:
TypeOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
`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 or from the underlying data.
Each encoding can operate in one of two modes:
- Sorted: In this mode, Bigtable guarantees that `Encode(X) <= Encode(Y)`
if and only if `X <= Y`. This is useful anywhere sort order is important,
for example when encoding keys.
- Distinct: In this mode, Bigtable guarantees that if `X != Y` then
`Encode(X) != Encode(Y)`. However, the converse is not guaranteed. For
example, both "{'foo': '1', 'bar': '2'}" and "{'bar': '2', 'foo': '1'}"
are valid encodings of the same JSON value.
The API clearly documents which mode is used wherever an encoding can be
configured. Each encoding also documents which values are supported in which
modes. For example, when encoding INT64 as a numeric STRING, negative numbers
cannot be encoded in sorted mode. This is because `INT64(1) > INT64(-1)`, but
`STRING("-00001") > STRING("00001")`.
Protobuf type google.bigtable.admin.v2.Type- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA value that combines incremental updates into a summarized value.static interfacestatic final classAn ordered list of elements of a given type.static interfacestatic final classbool Values of type `Bool` are stored in `Value.bool_value`.static interfacestatic final class`Type` represents the type of data that is written to, read from, or stored in Bigtable.static final classBytes Values of type `Bytes` are stored in `Value.bytes_value`.static interfacestatic final classDate Values of type `Date` are stored in `Value.date_value`.static interfacestatic final classA protobuf enum type.static interfacestatic final classFloat32 Values of type `Float32` are stored in `Value.float_value`.static interfacestatic final classFloat64 Values of type `Float64` are stored in `Value.float_value`.static interfacestatic final classInt64 Values of type `Int64` are stored in `Value.int_value`.static interfacestatic enumstatic final classA mapping of keys to values of a given type.static interfacestatic final classA protobuf message type.static interfacestatic final classString Values of type `String` are stored in `Value.string_value`.static interfacestatic final classA structured data value, consisting of fields which map to dynamically typed values.static interfacestatic final classTimestamp Values of type `Timestamp` are stored in `Value.timestamp_value`.static interfaceNested 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanAggregateAggregateArrayArrayBoolBoolBytesBytesDateDatestatic Typestatic final com.google.protobuf.Descriptors.DescriptorEnumEnumFloat32Float32Float64Float64Int64Int64MapMapcom.google.protobuf.Parser<Type>ProtoProtointStringStringStructStructTimestampTimestampbooleanAggregatebooleanArraybooleanBoolbooleanBytesbooleanDatebooleanEnumbooleanFloat32booleanFloat64inthashCode()booleanInt64booleanMapbooleanProtobooleanStringbooleanStructbooleanTimestampprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Type.Builderstatic Type.BuildernewBuilder(Type prototype) protected Type.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static TypeparseDelimitedFrom(InputStream input) static TypeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TypeparseFrom(byte[] data) static TypeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TypeparseFrom(com.google.protobuf.ByteString data) static TypeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TypeparseFrom(com.google.protobuf.CodedInputStream input) static TypeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TypeparseFrom(InputStream input) static TypeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TypeparseFrom(ByteBuffer data) static TypeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Type>parser()voidwriteTo(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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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:
-
PROTO_TYPE_FIELD_NUMBER
public static final int PROTO_TYPE_FIELD_NUMBER- See Also:
-
ENUM_TYPE_FIELD_NUMBER
public static final int ENUM_TYPE_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getKindCase
- Specified by:
getKindCasein interfaceTypeOrBuilder
-
hasBytesType
public boolean hasBytesType()Bytes
.google.bigtable.admin.v2.Type.Bytes bytes_type = 1;- Specified by:
hasBytesTypein interfaceTypeOrBuilder- Returns:
- Whether the bytesType field is set.
-
getBytesType
Bytes
.google.bigtable.admin.v2.Type.Bytes bytes_type = 1;- Specified by:
getBytesTypein interfaceTypeOrBuilder- Returns:
- The bytesType.
-
getBytesTypeOrBuilder
Bytes
.google.bigtable.admin.v2.Type.Bytes bytes_type = 1;- Specified by:
getBytesTypeOrBuilderin interfaceTypeOrBuilder
-
hasStringType
public boolean hasStringType()String
.google.bigtable.admin.v2.Type.String string_type = 2;- Specified by:
hasStringTypein interfaceTypeOrBuilder- Returns:
- Whether the stringType field is set.
-
getStringType
String
.google.bigtable.admin.v2.Type.String string_type = 2;- Specified by:
getStringTypein interfaceTypeOrBuilder- Returns:
- The stringType.
-
getStringTypeOrBuilder
String
.google.bigtable.admin.v2.Type.String string_type = 2;- Specified by:
getStringTypeOrBuilderin interfaceTypeOrBuilder
-
hasInt64Type
public boolean hasInt64Type()Int64
.google.bigtable.admin.v2.Type.Int64 int64_type = 5;- Specified by:
hasInt64Typein interfaceTypeOrBuilder- Returns:
- Whether the int64Type field is set.
-
getInt64Type
Int64
.google.bigtable.admin.v2.Type.Int64 int64_type = 5;- Specified by:
getInt64Typein interfaceTypeOrBuilder- Returns:
- The int64Type.
-
getInt64TypeOrBuilder
Int64
.google.bigtable.admin.v2.Type.Int64 int64_type = 5;- Specified by:
getInt64TypeOrBuilderin interfaceTypeOrBuilder
-
hasFloat32Type
public boolean hasFloat32Type()Float32
.google.bigtable.admin.v2.Type.Float32 float32_type = 12;- Specified by:
hasFloat32Typein interfaceTypeOrBuilder- Returns:
- Whether the float32Type field is set.
-
getFloat32Type
Float32
.google.bigtable.admin.v2.Type.Float32 float32_type = 12;- Specified by:
getFloat32Typein interfaceTypeOrBuilder- Returns:
- The float32Type.
-
getFloat32TypeOrBuilder
Float32
.google.bigtable.admin.v2.Type.Float32 float32_type = 12;- Specified by:
getFloat32TypeOrBuilderin interfaceTypeOrBuilder
-
hasFloat64Type
public boolean hasFloat64Type()Float64
.google.bigtable.admin.v2.Type.Float64 float64_type = 9;- Specified by:
hasFloat64Typein interfaceTypeOrBuilder- Returns:
- Whether the float64Type field is set.
-
getFloat64Type
Float64
.google.bigtable.admin.v2.Type.Float64 float64_type = 9;- Specified by:
getFloat64Typein interfaceTypeOrBuilder- Returns:
- The float64Type.
-
getFloat64TypeOrBuilder
Float64
.google.bigtable.admin.v2.Type.Float64 float64_type = 9;- Specified by:
getFloat64TypeOrBuilderin interfaceTypeOrBuilder
-
hasBoolType
public boolean hasBoolType()Bool
.google.bigtable.admin.v2.Type.Bool bool_type = 8;- Specified by:
hasBoolTypein interfaceTypeOrBuilder- Returns:
- Whether the boolType field is set.
-
getBoolType
Bool
.google.bigtable.admin.v2.Type.Bool bool_type = 8;- Specified by:
getBoolTypein interfaceTypeOrBuilder- Returns:
- The boolType.
-
getBoolTypeOrBuilder
Bool
.google.bigtable.admin.v2.Type.Bool bool_type = 8;- Specified by:
getBoolTypeOrBuilderin interfaceTypeOrBuilder
-
hasTimestampType
public boolean hasTimestampType()Timestamp
.google.bigtable.admin.v2.Type.Timestamp timestamp_type = 10;- Specified by:
hasTimestampTypein interfaceTypeOrBuilder- Returns:
- Whether the timestampType field is set.
-
getTimestampType
Timestamp
.google.bigtable.admin.v2.Type.Timestamp timestamp_type = 10;- Specified by:
getTimestampTypein interfaceTypeOrBuilder- Returns:
- The timestampType.
-
getTimestampTypeOrBuilder
Timestamp
.google.bigtable.admin.v2.Type.Timestamp timestamp_type = 10;- Specified by:
getTimestampTypeOrBuilderin interfaceTypeOrBuilder
-
hasDateType
public boolean hasDateType()Date
.google.bigtable.admin.v2.Type.Date date_type = 11;- Specified by:
hasDateTypein interfaceTypeOrBuilder- Returns:
- Whether the dateType field is set.
-
getDateType
Date
.google.bigtable.admin.v2.Type.Date date_type = 11;- Specified by:
getDateTypein interfaceTypeOrBuilder- Returns:
- The dateType.
-
getDateTypeOrBuilder
Date
.google.bigtable.admin.v2.Type.Date date_type = 11;- Specified by:
getDateTypeOrBuilderin interfaceTypeOrBuilder
-
hasAggregateType
public boolean hasAggregateType()Aggregate
.google.bigtable.admin.v2.Type.Aggregate aggregate_type = 6;- Specified by:
hasAggregateTypein interfaceTypeOrBuilder- Returns:
- Whether the aggregateType field is set.
-
getAggregateType
Aggregate
.google.bigtable.admin.v2.Type.Aggregate aggregate_type = 6;- Specified by:
getAggregateTypein interfaceTypeOrBuilder- Returns:
- The aggregateType.
-
getAggregateTypeOrBuilder
Aggregate
.google.bigtable.admin.v2.Type.Aggregate aggregate_type = 6;- Specified by:
getAggregateTypeOrBuilderin interfaceTypeOrBuilder
-
hasStructType
public boolean hasStructType()Struct
.google.bigtable.admin.v2.Type.Struct struct_type = 7;- Specified by:
hasStructTypein interfaceTypeOrBuilder- Returns:
- Whether the structType field is set.
-
getStructType
Struct
.google.bigtable.admin.v2.Type.Struct struct_type = 7;- Specified by:
getStructTypein interfaceTypeOrBuilder- Returns:
- The structType.
-
getStructTypeOrBuilder
Struct
.google.bigtable.admin.v2.Type.Struct struct_type = 7;- Specified by:
getStructTypeOrBuilderin interfaceTypeOrBuilder
-
hasArrayType
public boolean hasArrayType()Array
.google.bigtable.admin.v2.Type.Array array_type = 3;- Specified by:
hasArrayTypein interfaceTypeOrBuilder- Returns:
- Whether the arrayType field is set.
-
getArrayType
Array
.google.bigtable.admin.v2.Type.Array array_type = 3;- Specified by:
getArrayTypein interfaceTypeOrBuilder- Returns:
- The arrayType.
-
getArrayTypeOrBuilder
Array
.google.bigtable.admin.v2.Type.Array array_type = 3;- Specified by:
getArrayTypeOrBuilderin interfaceTypeOrBuilder
-
hasMapType
public boolean hasMapType()Map
.google.bigtable.admin.v2.Type.Map map_type = 4;- Specified by:
hasMapTypein interfaceTypeOrBuilder- Returns:
- Whether the mapType field is set.
-
getMapType
Map
.google.bigtable.admin.v2.Type.Map map_type = 4;- Specified by:
getMapTypein interfaceTypeOrBuilder- Returns:
- The mapType.
-
getMapTypeOrBuilder
Map
.google.bigtable.admin.v2.Type.Map map_type = 4;- Specified by:
getMapTypeOrBuilderin interfaceTypeOrBuilder
-
hasProtoType
public boolean hasProtoType()Proto
.google.bigtable.admin.v2.Type.Proto proto_type = 13;- Specified by:
hasProtoTypein interfaceTypeOrBuilder- Returns:
- Whether the protoType field is set.
-
getProtoType
Proto
.google.bigtable.admin.v2.Type.Proto proto_type = 13;- Specified by:
getProtoTypein interfaceTypeOrBuilder- Returns:
- The protoType.
-
getProtoTypeOrBuilder
Proto
.google.bigtable.admin.v2.Type.Proto proto_type = 13;- Specified by:
getProtoTypeOrBuilderin interfaceTypeOrBuilder
-
hasEnumType
public boolean hasEnumType()Enum
.google.bigtable.admin.v2.Type.Enum enum_type = 14;- Specified by:
hasEnumTypein interfaceTypeOrBuilder- Returns:
- Whether the enumType field is set.
-
getEnumType
Enum
.google.bigtable.admin.v2.Type.Enum enum_type = 14;- Specified by:
getEnumTypein interfaceTypeOrBuilder- Returns:
- The enumType.
-
getEnumTypeOrBuilder
Enum
.google.bigtable.admin.v2.Type.Enum enum_type = 14;- Specified by:
getEnumTypeOrBuilderin interfaceTypeOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- 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
- Throws:
IOException
-
parseFrom
public static Type parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Type parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Type parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Type.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-