Package com.google.bigtable.admin.v2
Class Table.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
- com.google.bigtable.admin.v2.Table.Builder
-
- All Implemented Interfaces:
TableOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Table
public static final class Table.Builder extends com.google.protobuf.GeneratedMessageV3.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 typegoogle.bigtable.admin.v2.Table
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Table.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Tablebuild()TablebuildPartial()Table.Builderclear()Table.BuilderclearChangeStreamConfig()If specified, enable the change stream on this table.Table.BuilderclearClusterStates()Table.BuilderclearColumnFamilies()Table.BuilderclearDeletionProtection()Set to true to make the table protected against data loss.Table.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Table.BuilderclearGranularity()Immutable.Table.BuilderclearName()The unique name of the table.Table.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Table.BuilderclearRestoreInfo()Output only.Table.Builderclone()booleancontainsClusterStates(String key)Output only.booleancontainsColumnFamilies(String key)The column families configured for this table, mapped by column family ID.ChangeStreamConfiggetChangeStreamConfig()If specified, enable the change stream on this table.ChangeStreamConfig.BuildergetChangeStreamConfigBuilder()If specified, enable the change stream on this table.ChangeStreamConfigOrBuildergetChangeStreamConfigOrBuilder()If specified, enable the change stream on this table.Map<String,Table.ClusterState>getClusterStates()Deprecated.intgetClusterStatesCount()Output only.Map<String,Table.ClusterState>getClusterStatesMap()Output only.Table.ClusterStategetClusterStatesOrDefault(String key, Table.ClusterState defaultValue)Output only.Table.ClusterStategetClusterStatesOrThrow(String key)Output only.Map<String,ColumnFamily>getColumnFamilies()Deprecated.intgetColumnFamiliesCount()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.ColumnFamilygetColumnFamiliesOrDefault(String key, ColumnFamily defaultValue)The column families configured for this table, mapped by column family ID.ColumnFamilygetColumnFamiliesOrThrow(String key)The column families configured for this table, mapped by column family ID.TablegetDefaultInstanceForType()booleangetDeletionProtection()Set to true to make the table protected against data loss.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Table.TimestampGranularitygetGranularity()Immutable.intgetGranularityValue()Immutable.Map<String,Table.ClusterState>getMutableClusterStates()Deprecated.Map<String,ColumnFamily>getMutableColumnFamilies()Deprecated.StringgetName()The unique name of the table.com.google.protobuf.ByteStringgetNameBytes()The unique name of the table.RestoreInfogetRestoreInfo()Output only.RestoreInfo.BuildergetRestoreInfoBuilder()Output only.RestoreInfoOrBuildergetRestoreInfoOrBuilder()Output only.booleanhasChangeStreamConfig()If specified, enable the change stream on this table.booleanhasRestoreInfo()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Table.BuildermergeChangeStreamConfig(ChangeStreamConfig value)If specified, enable the change stream on this table.Table.BuildermergeFrom(Table other)Table.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Table.BuildermergeFrom(com.google.protobuf.Message other)Table.BuildermergeRestoreInfo(RestoreInfo value)Output only.Table.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Table.BuilderputAllClusterStates(Map<String,Table.ClusterState> values)Output only.Table.BuilderputAllColumnFamilies(Map<String,ColumnFamily> values)The column families configured for this table, mapped by column family ID.Table.BuilderputClusterStates(String key, Table.ClusterState value)Output only.Table.BuilderputColumnFamilies(String key, ColumnFamily value)The column families configured for this table, mapped by column family ID.Table.BuilderremoveClusterStates(String key)Output only.Table.BuilderremoveColumnFamilies(String key)The column families configured for this table, mapped by column family ID.Table.BuildersetChangeStreamConfig(ChangeStreamConfig value)If specified, enable the change stream on this table.Table.BuildersetChangeStreamConfig(ChangeStreamConfig.Builder builderForValue)If specified, enable the change stream on this table.Table.BuildersetDeletionProtection(boolean value)Set to true to make the table protected against data loss.Table.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Table.BuildersetGranularity(Table.TimestampGranularity value)Immutable.Table.BuildersetGranularityValue(int value)Immutable.Table.BuildersetName(String value)The unique name of the table.Table.BuildersetNameBytes(com.google.protobuf.ByteString value)The unique name of the table.Table.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Table.BuildersetRestoreInfo(RestoreInfo value)Output only.Table.BuildersetRestoreInfo(RestoreInfo.Builder builderForValue)Output only.Table.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
clear
public Table.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
getDefaultInstanceForType
public Table getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Table build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Table buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Table.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
setField
public Table.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
clearField
public Table.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
clearOneof
public Table.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
setRepeatedField
public Table.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
addRepeatedField
public Table.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
mergeFrom
public Table.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Table.Builder>
-
mergeFrom
public Table.Builder mergeFrom(Table other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
mergeFrom
public Table.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Table.Builder>- Throws:
IOException
-
getName
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;- Specified by:
getNamein interfaceTableOrBuilder- Returns:
- The name.
-
getNameBytes
public 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;- Specified by:
getNameBytesin interfaceTableOrBuilder- Returns:
- The bytes for name.
-
setName
public 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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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;- Returns:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getClusterStatesCount
public int getClusterStatesCount()
Description copied from interface: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];- Specified by:
getClusterStatesCountin interfaceTableOrBuilder
-
containsClusterStates
public 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];- Specified by:
containsClusterStatesin interfaceTableOrBuilder
-
getClusterStates
@Deprecated public Map<String,Table.ClusterState> getClusterStates()
Deprecated.UsegetClusterStatesMap()instead.- Specified by:
getClusterStatesin interfaceTableOrBuilder
-
getClusterStatesMap
public 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];- Specified by:
getClusterStatesMapin interfaceTableOrBuilder
-
getClusterStatesOrDefault
public 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];- Specified by:
getClusterStatesOrDefaultin interfaceTableOrBuilder
-
getClusterStatesOrThrow
public 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];- Specified by:
getClusterStatesOrThrowin interfaceTableOrBuilder
-
clearClusterStates
public Table.Builder clearClusterStates()
-
removeClusterStates
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];
-
getMutableClusterStates
@Deprecated public Map<String,Table.ClusterState> getMutableClusterStates()
Deprecated.Use alternate mutation accessors instead.
-
putClusterStates
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];
-
putAllClusterStates
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];
-
getColumnFamiliesCount
public int getColumnFamiliesCount()
Description copied from interface: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;- Specified by:
getColumnFamiliesCountin interfaceTableOrBuilder
-
containsColumnFamilies
public 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;- Specified by:
containsColumnFamiliesin interfaceTableOrBuilder
-
getColumnFamilies
@Deprecated public Map<String,ColumnFamily> getColumnFamilies()
Deprecated.UsegetColumnFamiliesMap()instead.- Specified by:
getColumnFamiliesin interfaceTableOrBuilder
-
getColumnFamiliesMap
public 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;- Specified by:
getColumnFamiliesMapin interfaceTableOrBuilder
-
getColumnFamiliesOrDefault
public 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;- Specified by:
getColumnFamiliesOrDefaultin interfaceTableOrBuilder
-
getColumnFamiliesOrThrow
public 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;- Specified by:
getColumnFamiliesOrThrowin interfaceTableOrBuilder
-
clearColumnFamilies
public Table.Builder clearColumnFamilies()
-
removeColumnFamilies
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;
-
getMutableColumnFamilies
@Deprecated public Map<String,ColumnFamily> getMutableColumnFamilies()
Deprecated.Use alternate mutation accessors instead.
-
putColumnFamilies
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;
-
putAllColumnFamilies
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;
-
getGranularityValue
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];- Specified by:
getGranularityValuein interfaceTableOrBuilder- Returns:
- The enum numeric value on the wire for granularity.
-
setGranularityValue
public 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];- Parameters:
value- The enum numeric value on the wire for granularity to set.- Returns:
- This builder for chaining.
-
getGranularity
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];- Specified by:
getGranularityin interfaceTableOrBuilder- Returns:
- The granularity.
-
setGranularity
public 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];- Parameters:
value- The granularity to set.- Returns:
- This builder for chaining.
-
clearGranularity
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];- Returns:
- This builder for chaining.
-
hasRestoreInfo
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];- Specified by:
hasRestoreInfoin interfaceTableOrBuilder- Returns:
- Whether the restoreInfo field is set.
-
getRestoreInfo
public 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];- Specified by:
getRestoreInfoin interfaceTableOrBuilder- Returns:
- The restoreInfo.
-
setRestoreInfo
public 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];
-
setRestoreInfo
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];
-
mergeRestoreInfo
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];
-
clearRestoreInfo
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];
-
getRestoreInfoBuilder
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];
-
getRestoreInfoOrBuilder
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];- Specified by:
getRestoreInfoOrBuilderin interfaceTableOrBuilder
-
hasChangeStreamConfig
public 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;- Specified by:
hasChangeStreamConfigin interfaceTableOrBuilder- Returns:
- Whether the changeStreamConfig field is set.
-
getChangeStreamConfig
public 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;- Specified by:
getChangeStreamConfigin interfaceTableOrBuilder- Returns:
- The changeStreamConfig.
-
setChangeStreamConfig
public 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;
-
setChangeStreamConfig
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;
-
mergeChangeStreamConfig
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;
-
clearChangeStreamConfig
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;
-
getChangeStreamConfigBuilder
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;
-
getChangeStreamConfigOrBuilder
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;- Specified by:
getChangeStreamConfigOrBuilderin interfaceTableOrBuilder
-
getDeletionProtection
public 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;- Specified by:
getDeletionProtectionin interfaceTableOrBuilder- Returns:
- The deletionProtection.
-
setDeletionProtection
public 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;- Parameters:
value- The deletionProtection to set.- Returns:
- This builder for chaining.
-
clearDeletionProtection
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;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Table.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
mergeUnknownFields
public final Table.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
-