Package com.google.bigtable.admin.v2
Class SnapshotTableRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SnapshotTableRequest.Builder>
-
- com.google.bigtable.admin.v2.SnapshotTableRequest.Builder
-
- All Implemented Interfaces:
SnapshotTableRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SnapshotTableRequest
public static final class SnapshotTableRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SnapshotTableRequest.Builder> implements SnapshotTableRequestOrBuilder
Request message for [google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable][google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable] Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Protobuf typegoogle.bigtable.admin.v2.SnapshotTableRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SnapshotTableRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SnapshotTableRequestbuild()SnapshotTableRequestbuildPartial()SnapshotTableRequest.Builderclear()SnapshotTableRequest.BuilderclearCluster()Required.SnapshotTableRequest.BuilderclearDescription()Description of the snapshot.SnapshotTableRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SnapshotTableRequest.BuilderclearName()Required.SnapshotTableRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SnapshotTableRequest.BuilderclearSnapshotId()Required.SnapshotTableRequest.BuilderclearTtl()The amount of time that the new snapshot can stay active after it is created.SnapshotTableRequest.Builderclone()StringgetCluster()Required.com.google.protobuf.ByteStringgetClusterBytes()Required.SnapshotTableRequestgetDefaultInstanceForType()StringgetDescription()Description of the snapshot.com.google.protobuf.ByteStringgetDescriptionBytes()Description of the snapshot.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetName()Required.com.google.protobuf.ByteStringgetNameBytes()Required.StringgetSnapshotId()Required.com.google.protobuf.ByteStringgetSnapshotIdBytes()Required.com.google.protobuf.DurationgetTtl()The amount of time that the new snapshot can stay active after it is created.com.google.protobuf.Duration.BuildergetTtlBuilder()The amount of time that the new snapshot can stay active after it is created.com.google.protobuf.DurationOrBuildergetTtlOrBuilder()The amount of time that the new snapshot can stay active after it is created.booleanhasTtl()The amount of time that the new snapshot can stay active after it is created.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SnapshotTableRequest.BuildermergeFrom(SnapshotTableRequest other)SnapshotTableRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SnapshotTableRequest.BuildermergeFrom(com.google.protobuf.Message other)SnapshotTableRequest.BuildermergeTtl(com.google.protobuf.Duration value)The amount of time that the new snapshot can stay active after it is created.SnapshotTableRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SnapshotTableRequest.BuildersetCluster(String value)Required.SnapshotTableRequest.BuildersetClusterBytes(com.google.protobuf.ByteString value)Required.SnapshotTableRequest.BuildersetDescription(String value)Description of the snapshot.SnapshotTableRequest.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)Description of the snapshot.SnapshotTableRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SnapshotTableRequest.BuildersetName(String value)Required.SnapshotTableRequest.BuildersetNameBytes(com.google.protobuf.ByteString value)Required.SnapshotTableRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SnapshotTableRequest.BuildersetSnapshotId(String value)Required.SnapshotTableRequest.BuildersetSnapshotIdBytes(com.google.protobuf.ByteString value)Required.SnapshotTableRequest.BuildersetTtl(com.google.protobuf.Duration value)The amount of time that the new snapshot can stay active after it is created.SnapshotTableRequest.BuildersetTtl(com.google.protobuf.Duration.Builder builderForValue)The amount of time that the new snapshot can stay active after it is created.SnapshotTableRequest.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, internalGetMapField, internalGetMutableMapField, 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()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SnapshotTableRequest.Builder>
-
clear
public SnapshotTableRequest.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<SnapshotTableRequest.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<SnapshotTableRequest.Builder>
-
getDefaultInstanceForType
public SnapshotTableRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SnapshotTableRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SnapshotTableRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SnapshotTableRequest.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<SnapshotTableRequest.Builder>
-
setField
public SnapshotTableRequest.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<SnapshotTableRequest.Builder>
-
clearField
public SnapshotTableRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SnapshotTableRequest.Builder>
-
clearOneof
public SnapshotTableRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SnapshotTableRequest.Builder>
-
setRepeatedField
public SnapshotTableRequest.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<SnapshotTableRequest.Builder>
-
addRepeatedField
public SnapshotTableRequest.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<SnapshotTableRequest.Builder>
-
mergeFrom
public SnapshotTableRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SnapshotTableRequest.Builder>
-
mergeFrom
public SnapshotTableRequest.Builder mergeFrom(SnapshotTableRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SnapshotTableRequest.Builder>
-
mergeFrom
public SnapshotTableRequest.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<SnapshotTableRequest.Builder>- Throws:
IOException
-
getName
public String getName()
Required. The unique name of the table to have the snapshot taken. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNamein interfaceSnapshotTableRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Required. The unique name of the table to have the snapshot taken. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNameBytesin interfaceSnapshotTableRequestOrBuilder- Returns:
- The bytes for name.
-
setName
public SnapshotTableRequest.Builder setName(String value)
Required. The unique name of the table to have the snapshot taken. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public SnapshotTableRequest.Builder clearName()
Required. The unique name of the table to have the snapshot taken. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
public SnapshotTableRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. The unique name of the table to have the snapshot taken. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getCluster
public String getCluster()
Required. The name of the cluster where the snapshot will be created in. Values are of the form `projects/{project}/instances/{instance}/clusters/{cluster}`.string cluster = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getClusterin interfaceSnapshotTableRequestOrBuilder- Returns:
- The cluster.
-
getClusterBytes
public com.google.protobuf.ByteString getClusterBytes()
Required. The name of the cluster where the snapshot will be created in. Values are of the form `projects/{project}/instances/{instance}/clusters/{cluster}`.string cluster = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getClusterBytesin interfaceSnapshotTableRequestOrBuilder- Returns:
- The bytes for cluster.
-
setCluster
public SnapshotTableRequest.Builder setCluster(String value)
Required. The name of the cluster where the snapshot will be created in. Values are of the form `projects/{project}/instances/{instance}/clusters/{cluster}`.string cluster = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The cluster to set.- Returns:
- This builder for chaining.
-
clearCluster
public SnapshotTableRequest.Builder clearCluster()
Required. The name of the cluster where the snapshot will be created in. Values are of the form `projects/{project}/instances/{instance}/clusters/{cluster}`.string cluster = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setClusterBytes
public SnapshotTableRequest.Builder setClusterBytes(com.google.protobuf.ByteString value)
Required. The name of the cluster where the snapshot will be created in. Values are of the form `projects/{project}/instances/{instance}/clusters/{cluster}`.string cluster = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for cluster to set.- Returns:
- This builder for chaining.
-
getSnapshotId
public String getSnapshotId()
Required. The ID by which the new snapshot should be referred to within the parent cluster, e.g., `mysnapshot` of the form: `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`.string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSnapshotIdin interfaceSnapshotTableRequestOrBuilder- Returns:
- The snapshotId.
-
getSnapshotIdBytes
public com.google.protobuf.ByteString getSnapshotIdBytes()
Required. The ID by which the new snapshot should be referred to within the parent cluster, e.g., `mysnapshot` of the form: `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`.string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSnapshotIdBytesin interfaceSnapshotTableRequestOrBuilder- Returns:
- The bytes for snapshotId.
-
setSnapshotId
public SnapshotTableRequest.Builder setSnapshotId(String value)
Required. The ID by which the new snapshot should be referred to within the parent cluster, e.g., `mysnapshot` of the form: `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`.string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The snapshotId to set.- Returns:
- This builder for chaining.
-
clearSnapshotId
public SnapshotTableRequest.Builder clearSnapshotId()
Required. The ID by which the new snapshot should be referred to within the parent cluster, e.g., `mysnapshot` of the form: `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`.string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setSnapshotIdBytes
public SnapshotTableRequest.Builder setSnapshotIdBytes(com.google.protobuf.ByteString value)
Required. The ID by which the new snapshot should be referred to within the parent cluster, e.g., `mysnapshot` of the form: `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`.string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for snapshotId to set.- Returns:
- This builder for chaining.
-
hasTtl
public boolean hasTtl()
The amount of time that the new snapshot can stay active after it is created. Once 'ttl' expires, the snapshot will get deleted. The maximum amount of time a snapshot can stay active is 7 days. If 'ttl' is not specified, the default value of 24 hours will be used.
.google.protobuf.Duration ttl = 4;- Specified by:
hasTtlin interfaceSnapshotTableRequestOrBuilder- Returns:
- Whether the ttl field is set.
-
getTtl
public com.google.protobuf.Duration getTtl()
The amount of time that the new snapshot can stay active after it is created. Once 'ttl' expires, the snapshot will get deleted. The maximum amount of time a snapshot can stay active is 7 days. If 'ttl' is not specified, the default value of 24 hours will be used.
.google.protobuf.Duration ttl = 4;- Specified by:
getTtlin interfaceSnapshotTableRequestOrBuilder- Returns:
- The ttl.
-
setTtl
public SnapshotTableRequest.Builder setTtl(com.google.protobuf.Duration value)
The amount of time that the new snapshot can stay active after it is created. Once 'ttl' expires, the snapshot will get deleted. The maximum amount of time a snapshot can stay active is 7 days. If 'ttl' is not specified, the default value of 24 hours will be used.
.google.protobuf.Duration ttl = 4;
-
setTtl
public SnapshotTableRequest.Builder setTtl(com.google.protobuf.Duration.Builder builderForValue)
The amount of time that the new snapshot can stay active after it is created. Once 'ttl' expires, the snapshot will get deleted. The maximum amount of time a snapshot can stay active is 7 days. If 'ttl' is not specified, the default value of 24 hours will be used.
.google.protobuf.Duration ttl = 4;
-
mergeTtl
public SnapshotTableRequest.Builder mergeTtl(com.google.protobuf.Duration value)
The amount of time that the new snapshot can stay active after it is created. Once 'ttl' expires, the snapshot will get deleted. The maximum amount of time a snapshot can stay active is 7 days. If 'ttl' is not specified, the default value of 24 hours will be used.
.google.protobuf.Duration ttl = 4;
-
clearTtl
public SnapshotTableRequest.Builder clearTtl()
The amount of time that the new snapshot can stay active after it is created. Once 'ttl' expires, the snapshot will get deleted. The maximum amount of time a snapshot can stay active is 7 days. If 'ttl' is not specified, the default value of 24 hours will be used.
.google.protobuf.Duration ttl = 4;
-
getTtlBuilder
public com.google.protobuf.Duration.Builder getTtlBuilder()
The amount of time that the new snapshot can stay active after it is created. Once 'ttl' expires, the snapshot will get deleted. The maximum amount of time a snapshot can stay active is 7 days. If 'ttl' is not specified, the default value of 24 hours will be used.
.google.protobuf.Duration ttl = 4;
-
getTtlOrBuilder
public com.google.protobuf.DurationOrBuilder getTtlOrBuilder()
The amount of time that the new snapshot can stay active after it is created. Once 'ttl' expires, the snapshot will get deleted. The maximum amount of time a snapshot can stay active is 7 days. If 'ttl' is not specified, the default value of 24 hours will be used.
.google.protobuf.Duration ttl = 4;- Specified by:
getTtlOrBuilderin interfaceSnapshotTableRequestOrBuilder
-
getDescription
public String getDescription()
Description of the snapshot.
string description = 5;- Specified by:
getDescriptionin interfaceSnapshotTableRequestOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Description of the snapshot.
string description = 5;- Specified by:
getDescriptionBytesin interfaceSnapshotTableRequestOrBuilder- Returns:
- The bytes for description.
-
setDescription
public SnapshotTableRequest.Builder setDescription(String value)
Description of the snapshot.
string description = 5;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public SnapshotTableRequest.Builder clearDescription()
Description of the snapshot.
string description = 5;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public SnapshotTableRequest.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Description of the snapshot.
string description = 5;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final SnapshotTableRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SnapshotTableRequest.Builder>
-
mergeUnknownFields
public final SnapshotTableRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SnapshotTableRequest.Builder>
-
-