public static final class Table.Builder extends com.google.protobuf.GeneratedMessage.Builder<Table.Builder> implements TableOrBuilder
A collection of user data indexed by row, column, and timestamp. Each table is served using the resources of its parent cluster.Protobuf type
google.bigtable.admin.v2.Table| Modifier and Type | Method and Description |
|---|---|
Table |
build() |
Table |
buildPartial() |
Table.Builder |
clear() |
Table.Builder |
clearAutomatedBackupConfig() |
Table.Builder |
clearAutomatedBackupPolicy()
If specified, automated backups are enabled for this table.
|
Table.Builder |
clearChangeStreamConfig()
If specified, enable the change stream on this table.
|
Table.Builder |
clearClusterStates() |
Table.Builder |
clearColumnFamilies() |
Table.Builder |
clearDeletionProtection()
Set to true to make the table protected against data loss. i.e. deleting
the following resources through Admin APIs are prohibited:
* The table
|
Table.Builder |
clearGranularity()
Immutable.
|
Table.Builder |
clearName()
The unique name of the table.
|
Table.Builder |
clearRestoreInfo()
Output only.
|
Table.Builder |
clearRowKeySchema()
The row key schema for this table.
|
Table.Builder |
clearTieredStorageConfig()
Rules to specify what data is stored in each storage tier.
|
boolean |
containsClusterStates(String key)
Output only.
|
boolean |
containsColumnFamilies(String key)
The column families configured for this table, mapped by column family ID.
|
Table.AutomatedBackupConfigCase |
getAutomatedBackupConfigCase() |
Table.AutomatedBackupPolicy |
getAutomatedBackupPolicy()
If specified, automated backups are enabled for this table.
|
Table.AutomatedBackupPolicy.Builder |
getAutomatedBackupPolicyBuilder()
If specified, automated backups are enabled for this table.
|
Table.AutomatedBackupPolicyOrBuilder |
getAutomatedBackupPolicyOrBuilder()
If specified, automated backups are enabled for this table.
|
ChangeStreamConfig |
getChangeStreamConfig()
If specified, enable the change stream on this table.
|
ChangeStreamConfig.Builder |
getChangeStreamConfigBuilder()
If specified, enable the change stream on this table.
|
ChangeStreamConfigOrBuilder |
getChangeStreamConfigOrBuilder()
If specified, enable the change stream on this table.
|
Map<String,Table.ClusterState> |
getClusterStates()
Deprecated.
|
int |
getClusterStatesCount()
Output only.
|
Map<String,Table.ClusterState> |
getClusterStatesMap()
Output only.
|
Table.ClusterState |
getClusterStatesOrDefault(String key,
Table.ClusterState defaultValue)
Output only.
|
Table.ClusterState |
getClusterStatesOrThrow(String key)
Output only.
|
Map<String,ColumnFamily> |
getColumnFamilies()
Deprecated.
|
int |
getColumnFamiliesCount()
The column families configured for this table, mapped by column family ID.
|
Map<String,ColumnFamily> |
getColumnFamiliesMap()
The column families configured for this table, mapped by column family ID.
|
ColumnFamily |
getColumnFamiliesOrDefault(String key,
ColumnFamily defaultValue)
The column families configured for this table, mapped by column family ID.
|
ColumnFamily |
getColumnFamiliesOrThrow(String key)
The column families configured for this table, mapped by column family ID.
|
Table |
getDefaultInstanceForType() |
boolean |
getDeletionProtection()
Set to true to make the table protected against data loss. i.e. deleting
the following resources through Admin APIs are prohibited:
* The table
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Table.TimestampGranularity |
getGranularity()
Immutable.
|
int |
getGranularityValue()
Immutable.
|
Map<String,Table.ClusterState> |
getMutableClusterStates()
Deprecated.
|
Map<String,ColumnFamily> |
getMutableColumnFamilies()
Deprecated.
|
String |
getName()
The unique name of the table.
|
com.google.protobuf.ByteString |
getNameBytes()
The unique name of the table.
|
RestoreInfo |
getRestoreInfo()
Output only.
|
RestoreInfo.Builder |
getRestoreInfoBuilder()
Output only.
|
RestoreInfoOrBuilder |
getRestoreInfoOrBuilder()
Output only.
|
Type.Struct |
getRowKeySchema()
The row key schema for this table.
|
Type.Struct.Builder |
getRowKeySchemaBuilder()
The row key schema for this table.
|
Type.StructOrBuilder |
getRowKeySchemaOrBuilder()
The row key schema for this table.
|
TieredStorageConfig |
getTieredStorageConfig()
Rules to specify what data is stored in each storage tier.
|
TieredStorageConfig.Builder |
getTieredStorageConfigBuilder()
Rules to specify what data is stored in each storage tier.
|
TieredStorageConfigOrBuilder |
getTieredStorageConfigOrBuilder()
Rules to specify what data is stored in each storage tier.
|
boolean |
hasAutomatedBackupPolicy()
If specified, automated backups are enabled for this table.
|
boolean |
hasChangeStreamConfig()
If specified, enable the change stream on this table.
|
boolean |
hasRestoreInfo()
Output only.
|
boolean |
hasRowKeySchema()
The row key schema for this table.
|
boolean |
hasTieredStorageConfig()
Rules to specify what data is stored in each storage tier.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
Table.Builder |
mergeAutomatedBackupPolicy(Table.AutomatedBackupPolicy value)
If specified, automated backups are enabled for this table.
|
Table.Builder |
mergeChangeStreamConfig(ChangeStreamConfig value)
If specified, enable the change stream on this table.
|
Table.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Table.Builder |
mergeFrom(com.google.protobuf.Message other) |
Table.Builder |
mergeFrom(Table other) |
Table.Builder |
mergeRestoreInfo(RestoreInfo value)
Output only.
|
Table.Builder |
mergeRowKeySchema(Type.Struct value)
The row key schema for this table.
|
Table.Builder |
mergeTieredStorageConfig(TieredStorageConfig value)
Rules to specify what data is stored in each storage tier.
|
Table.Builder |
putAllClusterStates(Map<String,Table.ClusterState> values)
Output only.
|
Table.Builder |
putAllColumnFamilies(Map<String,ColumnFamily> values)
The column families configured for this table, mapped by column family ID.
|
Table.Builder |
putClusterStates(String key,
Table.ClusterState value)
Output only.
|
Table.ClusterState.Builder |
putClusterStatesBuilderIfAbsent(String key)
Output only.
|
Table.Builder |
putColumnFamilies(String key,
ColumnFamily value)
The column families configured for this table, mapped by column family ID.
|
ColumnFamily.Builder |
putColumnFamiliesBuilderIfAbsent(String key)
The column families configured for this table, mapped by column family ID.
|
Table.Builder |
removeClusterStates(String key)
Output only.
|
Table.Builder |
removeColumnFamilies(String key)
The column families configured for this table, mapped by column family ID.
|
Table.Builder |
setAutomatedBackupPolicy(Table.AutomatedBackupPolicy.Builder builderForValue)
If specified, automated backups are enabled for this table.
|
Table.Builder |
setAutomatedBackupPolicy(Table.AutomatedBackupPolicy value)
If specified, automated backups are enabled for this table.
|
Table.Builder |
setChangeStreamConfig(ChangeStreamConfig.Builder builderForValue)
If specified, enable the change stream on this table.
|
Table.Builder |
setChangeStreamConfig(ChangeStreamConfig value)
If specified, enable the change stream on this table.
|
Table.Builder |
setDeletionProtection(boolean value)
Set to true to make the table protected against data loss. i.e. deleting
the following resources through Admin APIs are prohibited:
* The table
|
Table.Builder |
setGranularity(Table.TimestampGranularity value)
Immutable.
|
Table.Builder |
setGranularityValue(int value)
Immutable.
|
Table.Builder |
setName(String value)
The unique name of the table.
|
Table.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The unique name of the table.
|
Table.Builder |
setRestoreInfo(RestoreInfo.Builder builderForValue)
Output only.
|
Table.Builder |
setRestoreInfo(RestoreInfo value)
Output only.
|
Table.Builder |
setRowKeySchema(Type.Struct.Builder builderForValue)
The row key schema for this table.
|
Table.Builder |
setRowKeySchema(Type.Struct value)
The row key schema for this table.
|
Table.Builder |
setTieredStorageConfig(TieredStorageConfig.Builder builderForValue)
Rules to specify what data is stored in each storage tier.
|
Table.Builder |
setTieredStorageConfig(TieredStorageConfig value)
Rules to specify what data is stored in each storage tier.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Table.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Table.Builder>protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Table.Builder>public Table.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Table.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Table.Builder>public Table getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Table build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Table buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Table.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Table.Builder>public Table.Builder mergeFrom(Table other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Table.Builder>public Table.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Table.Builder>IOExceptionpublic Table.AutomatedBackupConfigCase getAutomatedBackupConfigCase()
getAutomatedBackupConfigCase in interface TableOrBuilderpublic Table.Builder clearAutomatedBackupConfig()
public String getName()
The unique name of the table. Values are of the form
`projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.
Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`
string name = 1;getName in interface TableOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The unique name of the table. Values are of the form
`projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.
Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`
string name = 1;getNameBytes in interface TableOrBuilderpublic Table.Builder setName(String value)
The unique name of the table. Values are of the form
`projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.
Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`
string name = 1;value - The name to set.public Table.Builder clearName()
The unique name of the table. Values are of the form
`projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.
Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`
string name = 1;public Table.Builder setNameBytes(com.google.protobuf.ByteString value)
The unique name of the table. Values are of the form
`projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.
Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`
string name = 1;value - The bytes for name to set.public int getClusterStatesCount()
TableOrBuilderOutput only. Map from cluster ID to per-cluster table state. If it could not be determined whether or not the table has data in a particular cluster (for example, if its zone is unavailable), then there will be an entry for the cluster with UNKNOWN `replication_status`. Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL`
map<string, .google.bigtable.admin.v2.Table.ClusterState> cluster_states = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getClusterStatesCount in interface TableOrBuilderpublic boolean containsClusterStates(String key)
Output only. Map from cluster ID to per-cluster table state. If it could not be determined whether or not the table has data in a particular cluster (for example, if its zone is unavailable), then there will be an entry for the cluster with UNKNOWN `replication_status`. Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL`
map<string, .google.bigtable.admin.v2.Table.ClusterState> cluster_states = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
containsClusterStates in interface TableOrBuilder@Deprecated public Map<String,Table.ClusterState> getClusterStates()
getClusterStatesMap() instead.getClusterStates in interface TableOrBuilderpublic Map<String,Table.ClusterState> getClusterStatesMap()
Output only. Map from cluster ID to per-cluster table state. If it could not be determined whether or not the table has data in a particular cluster (for example, if its zone is unavailable), then there will be an entry for the cluster with UNKNOWN `replication_status`. Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL`
map<string, .google.bigtable.admin.v2.Table.ClusterState> cluster_states = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getClusterStatesMap in interface TableOrBuilderpublic Table.ClusterState getClusterStatesOrDefault(String key, Table.ClusterState defaultValue)
Output only. Map from cluster ID to per-cluster table state. If it could not be determined whether or not the table has data in a particular cluster (for example, if its zone is unavailable), then there will be an entry for the cluster with UNKNOWN `replication_status`. Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL`
map<string, .google.bigtable.admin.v2.Table.ClusterState> cluster_states = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getClusterStatesOrDefault in interface TableOrBuilderpublic Table.ClusterState getClusterStatesOrThrow(String key)
Output only. Map from cluster ID to per-cluster table state. If it could not be determined whether or not the table has data in a particular cluster (for example, if its zone is unavailable), then there will be an entry for the cluster with UNKNOWN `replication_status`. Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL`
map<string, .google.bigtable.admin.v2.Table.ClusterState> cluster_states = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getClusterStatesOrThrow in interface TableOrBuilderpublic Table.Builder clearClusterStates()
public Table.Builder removeClusterStates(String key)
Output only. Map from cluster ID to per-cluster table state. If it could not be determined whether or not the table has data in a particular cluster (for example, if its zone is unavailable), then there will be an entry for the cluster with UNKNOWN `replication_status`. Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL`
map<string, .google.bigtable.admin.v2.Table.ClusterState> cluster_states = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
@Deprecated public Map<String,Table.ClusterState> getMutableClusterStates()
public Table.Builder putClusterStates(String key, Table.ClusterState value)
Output only. Map from cluster ID to per-cluster table state. If it could not be determined whether or not the table has data in a particular cluster (for example, if its zone is unavailable), then there will be an entry for the cluster with UNKNOWN `replication_status`. Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL`
map<string, .google.bigtable.admin.v2.Table.ClusterState> cluster_states = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Table.Builder putAllClusterStates(Map<String,Table.ClusterState> values)
Output only. Map from cluster ID to per-cluster table state. If it could not be determined whether or not the table has data in a particular cluster (for example, if its zone is unavailable), then there will be an entry for the cluster with UNKNOWN `replication_status`. Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL`
map<string, .google.bigtable.admin.v2.Table.ClusterState> cluster_states = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Table.ClusterState.Builder putClusterStatesBuilderIfAbsent(String key)
Output only. Map from cluster ID to per-cluster table state. If it could not be determined whether or not the table has data in a particular cluster (for example, if its zone is unavailable), then there will be an entry for the cluster with UNKNOWN `replication_status`. Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL`
map<string, .google.bigtable.admin.v2.Table.ClusterState> cluster_states = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
public int getColumnFamiliesCount()
TableOrBuilderThe column families configured for this table, mapped by column family ID. Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3;getColumnFamiliesCount in interface TableOrBuilderpublic boolean containsColumnFamilies(String key)
The column families configured for this table, mapped by column family ID. Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3;containsColumnFamilies in interface TableOrBuilder@Deprecated public Map<String,ColumnFamily> getColumnFamilies()
getColumnFamiliesMap() instead.getColumnFamilies in interface TableOrBuilderpublic Map<String,ColumnFamily> getColumnFamiliesMap()
The column families configured for this table, mapped by column family ID. Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3;getColumnFamiliesMap in interface TableOrBuilderpublic ColumnFamily getColumnFamiliesOrDefault(String key, ColumnFamily defaultValue)
The column families configured for this table, mapped by column family ID. Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3;getColumnFamiliesOrDefault in interface TableOrBuilderpublic ColumnFamily getColumnFamiliesOrThrow(String key)
The column families configured for this table, mapped by column family ID. Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3;getColumnFamiliesOrThrow in interface TableOrBuilderpublic Table.Builder clearColumnFamilies()
public Table.Builder removeColumnFamilies(String key)
The column families configured for this table, mapped by column family ID. Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3;@Deprecated public Map<String,ColumnFamily> getMutableColumnFamilies()
public Table.Builder putColumnFamilies(String key, ColumnFamily value)
The column families configured for this table, mapped by column family ID. Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3;public Table.Builder putAllColumnFamilies(Map<String,ColumnFamily> values)
The column families configured for this table, mapped by column family ID. Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3;public ColumnFamily.Builder putColumnFamiliesBuilderIfAbsent(String key)
The column families configured for this table, mapped by column family ID. Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3;public int getGranularityValue()
Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in this table. Timestamps not matching the granularity will be rejected. If unspecified at creation time, the value will be set to `MILLIS`. Views: `SCHEMA_VIEW`, `FULL`.
.google.bigtable.admin.v2.Table.TimestampGranularity granularity = 4 [(.google.api.field_behavior) = IMMUTABLE];
getGranularityValue in interface TableOrBuilderpublic Table.Builder setGranularityValue(int value)
Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in this table. Timestamps not matching the granularity will be rejected. If unspecified at creation time, the value will be set to `MILLIS`. Views: `SCHEMA_VIEW`, `FULL`.
.google.bigtable.admin.v2.Table.TimestampGranularity granularity = 4 [(.google.api.field_behavior) = IMMUTABLE];
value - The enum numeric value on the wire for granularity to set.public Table.TimestampGranularity getGranularity()
Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in this table. Timestamps not matching the granularity will be rejected. If unspecified at creation time, the value will be set to `MILLIS`. Views: `SCHEMA_VIEW`, `FULL`.
.google.bigtable.admin.v2.Table.TimestampGranularity granularity = 4 [(.google.api.field_behavior) = IMMUTABLE];
getGranularity in interface TableOrBuilderpublic Table.Builder setGranularity(Table.TimestampGranularity value)
Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in this table. Timestamps not matching the granularity will be rejected. If unspecified at creation time, the value will be set to `MILLIS`. Views: `SCHEMA_VIEW`, `FULL`.
.google.bigtable.admin.v2.Table.TimestampGranularity granularity = 4 [(.google.api.field_behavior) = IMMUTABLE];
value - The granularity to set.public Table.Builder clearGranularity()
Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in this table. Timestamps not matching the granularity will be rejected. If unspecified at creation time, the value will be set to `MILLIS`. Views: `SCHEMA_VIEW`, `FULL`.
.google.bigtable.admin.v2.Table.TimestampGranularity granularity = 4 [(.google.api.field_behavior) = IMMUTABLE];
public boolean hasRestoreInfo()
Output only. If this table was restored from another data source (e.g. a backup), this field will be populated with information about the restore.
.google.bigtable.admin.v2.RestoreInfo restore_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasRestoreInfo in interface TableOrBuilderpublic RestoreInfo getRestoreInfo()
Output only. If this table was restored from another data source (e.g. a backup), this field will be populated with information about the restore.
.google.bigtable.admin.v2.RestoreInfo restore_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getRestoreInfo in interface TableOrBuilderpublic Table.Builder setRestoreInfo(RestoreInfo value)
Output only. If this table was restored from another data source (e.g. a backup), this field will be populated with information about the restore.
.google.bigtable.admin.v2.RestoreInfo restore_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Table.Builder setRestoreInfo(RestoreInfo.Builder builderForValue)
Output only. If this table was restored from another data source (e.g. a backup), this field will be populated with information about the restore.
.google.bigtable.admin.v2.RestoreInfo restore_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Table.Builder mergeRestoreInfo(RestoreInfo value)
Output only. If this table was restored from another data source (e.g. a backup), this field will be populated with information about the restore.
.google.bigtable.admin.v2.RestoreInfo restore_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Table.Builder clearRestoreInfo()
Output only. If this table was restored from another data source (e.g. a backup), this field will be populated with information about the restore.
.google.bigtable.admin.v2.RestoreInfo restore_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RestoreInfo.Builder getRestoreInfoBuilder()
Output only. If this table was restored from another data source (e.g. a backup), this field will be populated with information about the restore.
.google.bigtable.admin.v2.RestoreInfo restore_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RestoreInfoOrBuilder getRestoreInfoOrBuilder()
Output only. If this table was restored from another data source (e.g. a backup), this field will be populated with information about the restore.
.google.bigtable.admin.v2.RestoreInfo restore_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getRestoreInfoOrBuilder in interface TableOrBuilderpublic boolean hasChangeStreamConfig()
If specified, enable the change stream on this table. Otherwise, the change stream is disabled and the change stream is not retained.
.google.bigtable.admin.v2.ChangeStreamConfig change_stream_config = 8;hasChangeStreamConfig in interface TableOrBuilderpublic ChangeStreamConfig getChangeStreamConfig()
If specified, enable the change stream on this table. Otherwise, the change stream is disabled and the change stream is not retained.
.google.bigtable.admin.v2.ChangeStreamConfig change_stream_config = 8;getChangeStreamConfig in interface TableOrBuilderpublic Table.Builder setChangeStreamConfig(ChangeStreamConfig value)
If specified, enable the change stream on this table. Otherwise, the change stream is disabled and the change stream is not retained.
.google.bigtable.admin.v2.ChangeStreamConfig change_stream_config = 8;public Table.Builder setChangeStreamConfig(ChangeStreamConfig.Builder builderForValue)
If specified, enable the change stream on this table. Otherwise, the change stream is disabled and the change stream is not retained.
.google.bigtable.admin.v2.ChangeStreamConfig change_stream_config = 8;public Table.Builder mergeChangeStreamConfig(ChangeStreamConfig value)
If specified, enable the change stream on this table. Otherwise, the change stream is disabled and the change stream is not retained.
.google.bigtable.admin.v2.ChangeStreamConfig change_stream_config = 8;public Table.Builder clearChangeStreamConfig()
If specified, enable the change stream on this table. Otherwise, the change stream is disabled and the change stream is not retained.
.google.bigtable.admin.v2.ChangeStreamConfig change_stream_config = 8;public ChangeStreamConfig.Builder getChangeStreamConfigBuilder()
If specified, enable the change stream on this table. Otherwise, the change stream is disabled and the change stream is not retained.
.google.bigtable.admin.v2.ChangeStreamConfig change_stream_config = 8;public ChangeStreamConfigOrBuilder getChangeStreamConfigOrBuilder()
If specified, enable the change stream on this table. Otherwise, the change stream is disabled and the change stream is not retained.
.google.bigtable.admin.v2.ChangeStreamConfig change_stream_config = 8;getChangeStreamConfigOrBuilder in interface TableOrBuilderpublic boolean getDeletionProtection()
Set to true to make the table protected against data loss. i.e. deleting the following resources through Admin APIs are prohibited: * The table. * The column families in the table. * The instance containing the table. Note one can still delete the data stored in the table through Data APIs.
bool deletion_protection = 9;getDeletionProtection in interface TableOrBuilderpublic Table.Builder setDeletionProtection(boolean value)
Set to true to make the table protected against data loss. i.e. deleting the following resources through Admin APIs are prohibited: * The table. * The column families in the table. * The instance containing the table. Note one can still delete the data stored in the table through Data APIs.
bool deletion_protection = 9;value - The deletionProtection to set.public Table.Builder clearDeletionProtection()
Set to true to make the table protected against data loss. i.e. deleting the following resources through Admin APIs are prohibited: * The table. * The column families in the table. * The instance containing the table. Note one can still delete the data stored in the table through Data APIs.
bool deletion_protection = 9;public boolean hasAutomatedBackupPolicy()
If specified, automated backups are enabled for this table. Otherwise, automated backups are disabled.
.google.bigtable.admin.v2.Table.AutomatedBackupPolicy automated_backup_policy = 13;
hasAutomatedBackupPolicy in interface TableOrBuilderpublic Table.AutomatedBackupPolicy getAutomatedBackupPolicy()
If specified, automated backups are enabled for this table. Otherwise, automated backups are disabled.
.google.bigtable.admin.v2.Table.AutomatedBackupPolicy automated_backup_policy = 13;
getAutomatedBackupPolicy in interface TableOrBuilderpublic Table.Builder setAutomatedBackupPolicy(Table.AutomatedBackupPolicy value)
If specified, automated backups are enabled for this table. Otherwise, automated backups are disabled.
.google.bigtable.admin.v2.Table.AutomatedBackupPolicy automated_backup_policy = 13;
public Table.Builder setAutomatedBackupPolicy(Table.AutomatedBackupPolicy.Builder builderForValue)
If specified, automated backups are enabled for this table. Otherwise, automated backups are disabled.
.google.bigtable.admin.v2.Table.AutomatedBackupPolicy automated_backup_policy = 13;
public Table.Builder mergeAutomatedBackupPolicy(Table.AutomatedBackupPolicy value)
If specified, automated backups are enabled for this table. Otherwise, automated backups are disabled.
.google.bigtable.admin.v2.Table.AutomatedBackupPolicy automated_backup_policy = 13;
public Table.Builder clearAutomatedBackupPolicy()
If specified, automated backups are enabled for this table. Otherwise, automated backups are disabled.
.google.bigtable.admin.v2.Table.AutomatedBackupPolicy automated_backup_policy = 13;
public Table.AutomatedBackupPolicy.Builder getAutomatedBackupPolicyBuilder()
If specified, automated backups are enabled for this table. Otherwise, automated backups are disabled.
.google.bigtable.admin.v2.Table.AutomatedBackupPolicy automated_backup_policy = 13;
public Table.AutomatedBackupPolicyOrBuilder getAutomatedBackupPolicyOrBuilder()
If specified, automated backups are enabled for this table. Otherwise, automated backups are disabled.
.google.bigtable.admin.v2.Table.AutomatedBackupPolicy automated_backup_policy = 13;
getAutomatedBackupPolicyOrBuilder in interface TableOrBuilderpublic boolean hasTieredStorageConfig()
Rules to specify what data is stored in each storage tier. Different tiers store data differently, providing different trade-offs between cost and performance. Different parts of a table can be stored separately on different tiers. If a config is specified, tiered storage is enabled for this table. Otherwise, tiered storage is disabled. Only SSD instances can configure tiered storage.
.google.bigtable.admin.v2.TieredStorageConfig tiered_storage_config = 14;hasTieredStorageConfig in interface TableOrBuilderpublic TieredStorageConfig getTieredStorageConfig()
Rules to specify what data is stored in each storage tier. Different tiers store data differently, providing different trade-offs between cost and performance. Different parts of a table can be stored separately on different tiers. If a config is specified, tiered storage is enabled for this table. Otherwise, tiered storage is disabled. Only SSD instances can configure tiered storage.
.google.bigtable.admin.v2.TieredStorageConfig tiered_storage_config = 14;getTieredStorageConfig in interface TableOrBuilderpublic Table.Builder setTieredStorageConfig(TieredStorageConfig value)
Rules to specify what data is stored in each storage tier. Different tiers store data differently, providing different trade-offs between cost and performance. Different parts of a table can be stored separately on different tiers. If a config is specified, tiered storage is enabled for this table. Otherwise, tiered storage is disabled. Only SSD instances can configure tiered storage.
.google.bigtable.admin.v2.TieredStorageConfig tiered_storage_config = 14;public Table.Builder setTieredStorageConfig(TieredStorageConfig.Builder builderForValue)
Rules to specify what data is stored in each storage tier. Different tiers store data differently, providing different trade-offs between cost and performance. Different parts of a table can be stored separately on different tiers. If a config is specified, tiered storage is enabled for this table. Otherwise, tiered storage is disabled. Only SSD instances can configure tiered storage.
.google.bigtable.admin.v2.TieredStorageConfig tiered_storage_config = 14;public Table.Builder mergeTieredStorageConfig(TieredStorageConfig value)
Rules to specify what data is stored in each storage tier. Different tiers store data differently, providing different trade-offs between cost and performance. Different parts of a table can be stored separately on different tiers. If a config is specified, tiered storage is enabled for this table. Otherwise, tiered storage is disabled. Only SSD instances can configure tiered storage.
.google.bigtable.admin.v2.TieredStorageConfig tiered_storage_config = 14;public Table.Builder clearTieredStorageConfig()
Rules to specify what data is stored in each storage tier. Different tiers store data differently, providing different trade-offs between cost and performance. Different parts of a table can be stored separately on different tiers. If a config is specified, tiered storage is enabled for this table. Otherwise, tiered storage is disabled. Only SSD instances can configure tiered storage.
.google.bigtable.admin.v2.TieredStorageConfig tiered_storage_config = 14;public TieredStorageConfig.Builder getTieredStorageConfigBuilder()
Rules to specify what data is stored in each storage tier. Different tiers store data differently, providing different trade-offs between cost and performance. Different parts of a table can be stored separately on different tiers. If a config is specified, tiered storage is enabled for this table. Otherwise, tiered storage is disabled. Only SSD instances can configure tiered storage.
.google.bigtable.admin.v2.TieredStorageConfig tiered_storage_config = 14;public TieredStorageConfigOrBuilder getTieredStorageConfigOrBuilder()
Rules to specify what data is stored in each storage tier. Different tiers store data differently, providing different trade-offs between cost and performance. Different parts of a table can be stored separately on different tiers. If a config is specified, tiered storage is enabled for this table. Otherwise, tiered storage is disabled. Only SSD instances can configure tiered storage.
.google.bigtable.admin.v2.TieredStorageConfig tiered_storage_config = 14;getTieredStorageConfigOrBuilder in interface TableOrBuilderpublic boolean hasRowKeySchema()
The row key schema for this table. The schema is used to decode the raw row
key bytes into a structured format. The order of field declarations in this
schema is important, as it reflects how the raw row key bytes are
structured. Currently, this only affects how the key is read via a
GoogleSQL query from the ExecuteQuery API.
For a SQL query, the _key column is still read as raw bytes. But queries
can reference the key fields by name, which will be decoded from _key using
provided type and encoding. Queries that reference key fields will fail if
they encounter an invalid row key.
For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
following schema:
{
fields {
field_name: "id"
type { string { encoding: utf8_bytes {} } }
}
fields {
field_name: "date"
type { string { encoding: utf8_bytes {} } }
}
fields {
field_name: "product_code"
type { int64 { encoding: big_endian_bytes {} } }
}
encoding { delimited_bytes { delimiter: "#" } }
}
The decoded key parts would be:
id = "some_id", date = "2024-04-30", product_code = 1245427
The query "SELECT _key, product_code FROM table" will return two columns:
/------------------------------------------------------\
| _key | product_code |
| --------------------------------------|--------------|
| "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 |
\------------------------------------------------------/
The schema has the following invariants:
(1) The decoded field values are order-preserved. For read, the field
values will be decoded in sorted mode from the raw bytes.
(2) Every field in the schema must specify a non-empty name.
(3) Every field must specify a type with an associated encoding. The type
is limited to scalar types only: Array, Map, Aggregate, and Struct are not
allowed.
(4) The field names must not collide with existing column family
names and reserved keywords "_key" and "_timestamp".
The following update operations are allowed for row_key_schema:
- Update from an empty schema to a new schema.
- Remove the existing schema. This operation requires setting the
`ignore_warnings` flag to `true`, since it might be a backward
incompatible change. Without the flag, the update request will fail with
an INVALID_ARGUMENT error.
Any other row key schema update operation (e.g. update existing schema
columns names or types) is currently unsupported.
.google.bigtable.admin.v2.Type.Struct row_key_schema = 15;hasRowKeySchema in interface TableOrBuilderpublic Type.Struct getRowKeySchema()
The row key schema for this table. The schema is used to decode the raw row
key bytes into a structured format. The order of field declarations in this
schema is important, as it reflects how the raw row key bytes are
structured. Currently, this only affects how the key is read via a
GoogleSQL query from the ExecuteQuery API.
For a SQL query, the _key column is still read as raw bytes. But queries
can reference the key fields by name, which will be decoded from _key using
provided type and encoding. Queries that reference key fields will fail if
they encounter an invalid row key.
For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
following schema:
{
fields {
field_name: "id"
type { string { encoding: utf8_bytes {} } }
}
fields {
field_name: "date"
type { string { encoding: utf8_bytes {} } }
}
fields {
field_name: "product_code"
type { int64 { encoding: big_endian_bytes {} } }
}
encoding { delimited_bytes { delimiter: "#" } }
}
The decoded key parts would be:
id = "some_id", date = "2024-04-30", product_code = 1245427
The query "SELECT _key, product_code FROM table" will return two columns:
/------------------------------------------------------\
| _key | product_code |
| --------------------------------------|--------------|
| "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 |
\------------------------------------------------------/
The schema has the following invariants:
(1) The decoded field values are order-preserved. For read, the field
values will be decoded in sorted mode from the raw bytes.
(2) Every field in the schema must specify a non-empty name.
(3) Every field must specify a type with an associated encoding. The type
is limited to scalar types only: Array, Map, Aggregate, and Struct are not
allowed.
(4) The field names must not collide with existing column family
names and reserved keywords "_key" and "_timestamp".
The following update operations are allowed for row_key_schema:
- Update from an empty schema to a new schema.
- Remove the existing schema. This operation requires setting the
`ignore_warnings` flag to `true`, since it might be a backward
incompatible change. Without the flag, the update request will fail with
an INVALID_ARGUMENT error.
Any other row key schema update operation (e.g. update existing schema
columns names or types) is currently unsupported.
.google.bigtable.admin.v2.Type.Struct row_key_schema = 15;getRowKeySchema in interface TableOrBuilderpublic Table.Builder setRowKeySchema(Type.Struct value)
The row key schema for this table. The schema is used to decode the raw row
key bytes into a structured format. The order of field declarations in this
schema is important, as it reflects how the raw row key bytes are
structured. Currently, this only affects how the key is read via a
GoogleSQL query from the ExecuteQuery API.
For a SQL query, the _key column is still read as raw bytes. But queries
can reference the key fields by name, which will be decoded from _key using
provided type and encoding. Queries that reference key fields will fail if
they encounter an invalid row key.
For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
following schema:
{
fields {
field_name: "id"
type { string { encoding: utf8_bytes {} } }
}
fields {
field_name: "date"
type { string { encoding: utf8_bytes {} } }
}
fields {
field_name: "product_code"
type { int64 { encoding: big_endian_bytes {} } }
}
encoding { delimited_bytes { delimiter: "#" } }
}
The decoded key parts would be:
id = "some_id", date = "2024-04-30", product_code = 1245427
The query "SELECT _key, product_code FROM table" will return two columns:
/------------------------------------------------------\
| _key | product_code |
| --------------------------------------|--------------|
| "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 |
\------------------------------------------------------/
The schema has the following invariants:
(1) The decoded field values are order-preserved. For read, the field
values will be decoded in sorted mode from the raw bytes.
(2) Every field in the schema must specify a non-empty name.
(3) Every field must specify a type with an associated encoding. The type
is limited to scalar types only: Array, Map, Aggregate, and Struct are not
allowed.
(4) The field names must not collide with existing column family
names and reserved keywords "_key" and "_timestamp".
The following update operations are allowed for row_key_schema:
- Update from an empty schema to a new schema.
- Remove the existing schema. This operation requires setting the
`ignore_warnings` flag to `true`, since it might be a backward
incompatible change. Without the flag, the update request will fail with
an INVALID_ARGUMENT error.
Any other row key schema update operation (e.g. update existing schema
columns names or types) is currently unsupported.
.google.bigtable.admin.v2.Type.Struct row_key_schema = 15;public Table.Builder setRowKeySchema(Type.Struct.Builder builderForValue)
The row key schema for this table. The schema is used to decode the raw row
key bytes into a structured format. The order of field declarations in this
schema is important, as it reflects how the raw row key bytes are
structured. Currently, this only affects how the key is read via a
GoogleSQL query from the ExecuteQuery API.
For a SQL query, the _key column is still read as raw bytes. But queries
can reference the key fields by name, which will be decoded from _key using
provided type and encoding. Queries that reference key fields will fail if
they encounter an invalid row key.
For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
following schema:
{
fields {
field_name: "id"
type { string { encoding: utf8_bytes {} } }
}
fields {
field_name: "date"
type { string { encoding: utf8_bytes {} } }
}
fields {
field_name: "product_code"
type { int64 { encoding: big_endian_bytes {} } }
}
encoding { delimited_bytes { delimiter: "#" } }
}
The decoded key parts would be:
id = "some_id", date = "2024-04-30", product_code = 1245427
The query "SELECT _key, product_code FROM table" will return two columns:
/------------------------------------------------------\
| _key | product_code |
| --------------------------------------|--------------|
| "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 |
\------------------------------------------------------/
The schema has the following invariants:
(1) The decoded field values are order-preserved. For read, the field
values will be decoded in sorted mode from the raw bytes.
(2) Every field in the schema must specify a non-empty name.
(3) Every field must specify a type with an associated encoding. The type
is limited to scalar types only: Array, Map, Aggregate, and Struct are not
allowed.
(4) The field names must not collide with existing column family
names and reserved keywords "_key" and "_timestamp".
The following update operations are allowed for row_key_schema:
- Update from an empty schema to a new schema.
- Remove the existing schema. This operation requires setting the
`ignore_warnings` flag to `true`, since it might be a backward
incompatible change. Without the flag, the update request will fail with
an INVALID_ARGUMENT error.
Any other row key schema update operation (e.g. update existing schema
columns names or types) is currently unsupported.
.google.bigtable.admin.v2.Type.Struct row_key_schema = 15;public Table.Builder mergeRowKeySchema(Type.Struct value)
The row key schema for this table. The schema is used to decode the raw row
key bytes into a structured format. The order of field declarations in this
schema is important, as it reflects how the raw row key bytes are
structured. Currently, this only affects how the key is read via a
GoogleSQL query from the ExecuteQuery API.
For a SQL query, the _key column is still read as raw bytes. But queries
can reference the key fields by name, which will be decoded from _key using
provided type and encoding. Queries that reference key fields will fail if
they encounter an invalid row key.
For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
following schema:
{
fields {
field_name: "id"
type { string { encoding: utf8_bytes {} } }
}
fields {
field_name: "date"
type { string { encoding: utf8_bytes {} } }
}
fields {
field_name: "product_code"
type { int64 { encoding: big_endian_bytes {} } }
}
encoding { delimited_bytes { delimiter: "#" } }
}
The decoded key parts would be:
id = "some_id", date = "2024-04-30", product_code = 1245427
The query "SELECT _key, product_code FROM table" will return two columns:
/------------------------------------------------------\
| _key | product_code |
| --------------------------------------|--------------|
| "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 |
\------------------------------------------------------/
The schema has the following invariants:
(1) The decoded field values are order-preserved. For read, the field
values will be decoded in sorted mode from the raw bytes.
(2) Every field in the schema must specify a non-empty name.
(3) Every field must specify a type with an associated encoding. The type
is limited to scalar types only: Array, Map, Aggregate, and Struct are not
allowed.
(4) The field names must not collide with existing column family
names and reserved keywords "_key" and "_timestamp".
The following update operations are allowed for row_key_schema:
- Update from an empty schema to a new schema.
- Remove the existing schema. This operation requires setting the
`ignore_warnings` flag to `true`, since it might be a backward
incompatible change. Without the flag, the update request will fail with
an INVALID_ARGUMENT error.
Any other row key schema update operation (e.g. update existing schema
columns names or types) is currently unsupported.
.google.bigtable.admin.v2.Type.Struct row_key_schema = 15;public Table.Builder clearRowKeySchema()
The row key schema for this table. The schema is used to decode the raw row
key bytes into a structured format. The order of field declarations in this
schema is important, as it reflects how the raw row key bytes are
structured. Currently, this only affects how the key is read via a
GoogleSQL query from the ExecuteQuery API.
For a SQL query, the _key column is still read as raw bytes. But queries
can reference the key fields by name, which will be decoded from _key using
provided type and encoding. Queries that reference key fields will fail if
they encounter an invalid row key.
For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
following schema:
{
fields {
field_name: "id"
type { string { encoding: utf8_bytes {} } }
}
fields {
field_name: "date"
type { string { encoding: utf8_bytes {} } }
}
fields {
field_name: "product_code"
type { int64 { encoding: big_endian_bytes {} } }
}
encoding { delimited_bytes { delimiter: "#" } }
}
The decoded key parts would be:
id = "some_id", date = "2024-04-30", product_code = 1245427
The query "SELECT _key, product_code FROM table" will return two columns:
/------------------------------------------------------\
| _key | product_code |
| --------------------------------------|--------------|
| "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 |
\------------------------------------------------------/
The schema has the following invariants:
(1) The decoded field values are order-preserved. For read, the field
values will be decoded in sorted mode from the raw bytes.
(2) Every field in the schema must specify a non-empty name.
(3) Every field must specify a type with an associated encoding. The type
is limited to scalar types only: Array, Map, Aggregate, and Struct are not
allowed.
(4) The field names must not collide with existing column family
names and reserved keywords "_key" and "_timestamp".
The following update operations are allowed for row_key_schema:
- Update from an empty schema to a new schema.
- Remove the existing schema. This operation requires setting the
`ignore_warnings` flag to `true`, since it might be a backward
incompatible change. Without the flag, the update request will fail with
an INVALID_ARGUMENT error.
Any other row key schema update operation (e.g. update existing schema
columns names or types) is currently unsupported.
.google.bigtable.admin.v2.Type.Struct row_key_schema = 15;public Type.Struct.Builder getRowKeySchemaBuilder()
The row key schema for this table. The schema is used to decode the raw row
key bytes into a structured format. The order of field declarations in this
schema is important, as it reflects how the raw row key bytes are
structured. Currently, this only affects how the key is read via a
GoogleSQL query from the ExecuteQuery API.
For a SQL query, the _key column is still read as raw bytes. But queries
can reference the key fields by name, which will be decoded from _key using
provided type and encoding. Queries that reference key fields will fail if
they encounter an invalid row key.
For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
following schema:
{
fields {
field_name: "id"
type { string { encoding: utf8_bytes {} } }
}
fields {
field_name: "date"
type { string { encoding: utf8_bytes {} } }
}
fields {
field_name: "product_code"
type { int64 { encoding: big_endian_bytes {} } }
}
encoding { delimited_bytes { delimiter: "#" } }
}
The decoded key parts would be:
id = "some_id", date = "2024-04-30", product_code = 1245427
The query "SELECT _key, product_code FROM table" will return two columns:
/------------------------------------------------------\
| _key | product_code |
| --------------------------------------|--------------|
| "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 |
\------------------------------------------------------/
The schema has the following invariants:
(1) The decoded field values are order-preserved. For read, the field
values will be decoded in sorted mode from the raw bytes.
(2) Every field in the schema must specify a non-empty name.
(3) Every field must specify a type with an associated encoding. The type
is limited to scalar types only: Array, Map, Aggregate, and Struct are not
allowed.
(4) The field names must not collide with existing column family
names and reserved keywords "_key" and "_timestamp".
The following update operations are allowed for row_key_schema:
- Update from an empty schema to a new schema.
- Remove the existing schema. This operation requires setting the
`ignore_warnings` flag to `true`, since it might be a backward
incompatible change. Without the flag, the update request will fail with
an INVALID_ARGUMENT error.
Any other row key schema update operation (e.g. update existing schema
columns names or types) is currently unsupported.
.google.bigtable.admin.v2.Type.Struct row_key_schema = 15;public Type.StructOrBuilder getRowKeySchemaOrBuilder()
The row key schema for this table. The schema is used to decode the raw row
key bytes into a structured format. The order of field declarations in this
schema is important, as it reflects how the raw row key bytes are
structured. Currently, this only affects how the key is read via a
GoogleSQL query from the ExecuteQuery API.
For a SQL query, the _key column is still read as raw bytes. But queries
can reference the key fields by name, which will be decoded from _key using
provided type and encoding. Queries that reference key fields will fail if
they encounter an invalid row key.
For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the
following schema:
{
fields {
field_name: "id"
type { string { encoding: utf8_bytes {} } }
}
fields {
field_name: "date"
type { string { encoding: utf8_bytes {} } }
}
fields {
field_name: "product_code"
type { int64 { encoding: big_endian_bytes {} } }
}
encoding { delimited_bytes { delimiter: "#" } }
}
The decoded key parts would be:
id = "some_id", date = "2024-04-30", product_code = 1245427
The query "SELECT _key, product_code FROM table" will return two columns:
/------------------------------------------------------\
| _key | product_code |
| --------------------------------------|--------------|
| "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 |
\------------------------------------------------------/
The schema has the following invariants:
(1) The decoded field values are order-preserved. For read, the field
values will be decoded in sorted mode from the raw bytes.
(2) Every field in the schema must specify a non-empty name.
(3) Every field must specify a type with an associated encoding. The type
is limited to scalar types only: Array, Map, Aggregate, and Struct are not
allowed.
(4) The field names must not collide with existing column family
names and reserved keywords "_key" and "_timestamp".
The following update operations are allowed for row_key_schema:
- Update from an empty schema to a new schema.
- Remove the existing schema. This operation requires setting the
`ignore_warnings` flag to `true`, since it might be a backward
incompatible change. Without the flag, the update request will fail with
an INVALID_ARGUMENT error.
Any other row key schema update operation (e.g. update existing schema
columns names or types) is currently unsupported.
.google.bigtable.admin.v2.Type.Struct row_key_schema = 15;getRowKeySchemaOrBuilder in interface TableOrBuilderCopyright © 2026 Google LLC. All rights reserved.