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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Table
build()
Table
buildPartial()
Table.Builder
clear()
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.Table.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Table.Builder
clearGranularity()
Immutable.Table.Builder
clearName()
The unique name of the table.Table.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Table.Builder
clearRestoreInfo()
Output only.Table.Builder
clone()
boolean
containsClusterStates(String key)
Output only.boolean
containsColumnFamilies(String key)
The column families configured for this table, mapped by column family ID.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.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.boolean
hasChangeStreamConfig()
If specified, enable the change stream on this table.boolean
hasRestoreInfo()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
Table.Builder
mergeChangeStreamConfig(ChangeStreamConfig value)
If specified, enable the change stream on this table.Table.Builder
mergeFrom(Table other)
Table.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Table.Builder
mergeFrom(com.google.protobuf.Message other)
Table.Builder
mergeRestoreInfo(RestoreInfo value)
Output only.Table.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
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.Builder
putColumnFamilies(String key, ColumnFamily value)
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
setChangeStreamConfig(ChangeStreamConfig value)
If specified, enable the change stream on this table.Table.Builder
setChangeStreamConfig(ChangeStreamConfig.Builder builderForValue)
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.Table.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
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
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Table.Builder
setRestoreInfo(RestoreInfo value)
Output only.Table.Builder
setRestoreInfo(RestoreInfo.Builder builderForValue)
Output only.Table.Builder
setUnknownFields(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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
clear
public Table.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
getDefaultInstanceForType
public Table getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Table build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Table buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Table.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
setField
public Table.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
clearField
public Table.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
clearOneof
public Table.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
setRepeatedField
public Table.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
addRepeatedField
public Table.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
mergeFrom
public Table.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Table.Builder>
-
mergeFrom
public Table.Builder mergeFrom(Table other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in 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:
getNameBytes
in 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:TableOrBuilder
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:
getClusterStatesCount
in 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:
containsClusterStates
in interfaceTableOrBuilder
-
getClusterStates
@Deprecated public Map<String,Table.ClusterState> getClusterStates()
Deprecated.UsegetClusterStatesMap()
instead.- Specified by:
getClusterStates
in 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:
getClusterStatesMap
in 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:
getClusterStatesOrDefault
in 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:
getClusterStatesOrThrow
in 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:TableOrBuilder
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:
getColumnFamiliesCount
in 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:
containsColumnFamilies
in interfaceTableOrBuilder
-
getColumnFamilies
@Deprecated public Map<String,ColumnFamily> getColumnFamilies()
Deprecated.UsegetColumnFamiliesMap()
instead.- Specified by:
getColumnFamilies
in 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:
getColumnFamiliesMap
in 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:
getColumnFamiliesOrDefault
in 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:
getColumnFamiliesOrThrow
in 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:
getGranularityValue
in 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:
getGranularity
in 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:
hasRestoreInfo
in 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:
getRestoreInfo
in 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:
getRestoreInfoOrBuilder
in 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:
hasChangeStreamConfig
in 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:
getChangeStreamConfig
in 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:
getChangeStreamConfigOrBuilder
in 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:
getDeletionProtection
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
mergeUnknownFields
public final Table.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Table.Builder>
-
-