public static final class Snapshot.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder> implements SnapshotOrBuilder
A snapshot of a table at a particular time. A snapshot can be used as a checkpoint for data restoration or a data source for a new table. 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 type
google.bigtable.admin.v2.Snapshot| Modifier and Type | Method and Description |
|---|---|
Snapshot.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Snapshot |
build() |
Snapshot |
buildPartial() |
Snapshot.Builder |
clear() |
Snapshot.Builder |
clearCreateTime()
Output only.
|
Snapshot.Builder |
clearDataSizeBytes()
Output only.
|
Snapshot.Builder |
clearDeleteTime()
Output only.
|
Snapshot.Builder |
clearDescription()
Output only.
|
Snapshot.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Snapshot.Builder |
clearName()
Output only.
|
Snapshot.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Snapshot.Builder |
clearSourceTable()
Output only.
|
Snapshot.Builder |
clearState()
Output only.
|
Snapshot.Builder |
clone() |
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
long |
getDataSizeBytes()
Output only.
|
Snapshot |
getDefaultInstanceForType() |
com.google.protobuf.Timestamp |
getDeleteTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getDeleteTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getDeleteTimeOrBuilder()
Output only.
|
String |
getDescription()
Output only.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
Output only.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
Table |
getSourceTable()
Output only.
|
Table.Builder |
getSourceTableBuilder()
Output only.
|
TableOrBuilder |
getSourceTableOrBuilder()
Output only.
|
Snapshot.State |
getState()
Output only.
|
int |
getStateValue()
Output only.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasDeleteTime()
Output only.
|
boolean |
hasSourceTable()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Snapshot.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
Snapshot.Builder |
mergeDeleteTime(com.google.protobuf.Timestamp value)
Output only.
|
Snapshot.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Snapshot.Builder |
mergeFrom(com.google.protobuf.Message other) |
Snapshot.Builder |
mergeFrom(Snapshot other) |
Snapshot.Builder |
mergeSourceTable(Table value)
Output only.
|
Snapshot.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Snapshot.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
Snapshot.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
Snapshot.Builder |
setDataSizeBytes(long value)
Output only.
|
Snapshot.Builder |
setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
Snapshot.Builder |
setDeleteTime(com.google.protobuf.Timestamp value)
Output only.
|
Snapshot.Builder |
setDescription(String value)
Output only.
|
Snapshot.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
Output only.
|
Snapshot.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Snapshot.Builder |
setName(String value)
Output only.
|
Snapshot.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Output only.
|
Snapshot.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Snapshot.Builder |
setSourceTable(Table.Builder builderForValue)
Output only.
|
Snapshot.Builder |
setSourceTable(Table value)
Output only.
|
Snapshot.Builder |
setState(Snapshot.State value)
Output only.
|
Snapshot.Builder |
setStateValue(int value)
Output only.
|
Snapshot.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.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.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Snapshot build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Snapshot buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Snapshot.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Snapshot.Builder>public Snapshot.Builder mergeFrom(Snapshot other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.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<Snapshot.Builder>IOExceptionpublic String getName()
Output only. The unique name of the snapshot. Values are of the form `projects/<project>/instances/<instance>/clusters/<cluster>/snapshots/<snapshot>`.
string name = 1;getName in interface SnapshotOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. The unique name of the snapshot. Values are of the form `projects/<project>/instances/<instance>/clusters/<cluster>/snapshots/<snapshot>`.
string name = 1;getNameBytes in interface SnapshotOrBuilderpublic Snapshot.Builder setName(String value)
Output only. The unique name of the snapshot. Values are of the form `projects/<project>/instances/<instance>/clusters/<cluster>/snapshots/<snapshot>`.
string name = 1;value - The name to set.public Snapshot.Builder clearName()
Output only. The unique name of the snapshot. Values are of the form `projects/<project>/instances/<instance>/clusters/<cluster>/snapshots/<snapshot>`.
string name = 1;public Snapshot.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The unique name of the snapshot. Values are of the form `projects/<project>/instances/<instance>/clusters/<cluster>/snapshots/<snapshot>`.
string name = 1;value - The bytes for name to set.public boolean hasSourceTable()
Output only. The source table at the time the snapshot was taken.
.google.bigtable.admin.v2.Table source_table = 2;hasSourceTable in interface SnapshotOrBuilderpublic Table getSourceTable()
Output only. The source table at the time the snapshot was taken.
.google.bigtable.admin.v2.Table source_table = 2;getSourceTable in interface SnapshotOrBuilderpublic Snapshot.Builder setSourceTable(Table value)
Output only. The source table at the time the snapshot was taken.
.google.bigtable.admin.v2.Table source_table = 2;public Snapshot.Builder setSourceTable(Table.Builder builderForValue)
Output only. The source table at the time the snapshot was taken.
.google.bigtable.admin.v2.Table source_table = 2;public Snapshot.Builder mergeSourceTable(Table value)
Output only. The source table at the time the snapshot was taken.
.google.bigtable.admin.v2.Table source_table = 2;public Snapshot.Builder clearSourceTable()
Output only. The source table at the time the snapshot was taken.
.google.bigtable.admin.v2.Table source_table = 2;public Table.Builder getSourceTableBuilder()
Output only. The source table at the time the snapshot was taken.
.google.bigtable.admin.v2.Table source_table = 2;public TableOrBuilder getSourceTableOrBuilder()
Output only. The source table at the time the snapshot was taken.
.google.bigtable.admin.v2.Table source_table = 2;getSourceTableOrBuilder in interface SnapshotOrBuilderpublic long getDataSizeBytes()
Output only. The size of the data in the source table at the time the snapshot was taken. In some cases, this value may be computed asynchronously via a background process and a placeholder of 0 will be used in the meantime.
int64 data_size_bytes = 3;getDataSizeBytes in interface SnapshotOrBuilderpublic Snapshot.Builder setDataSizeBytes(long value)
Output only. The size of the data in the source table at the time the snapshot was taken. In some cases, this value may be computed asynchronously via a background process and a placeholder of 0 will be used in the meantime.
int64 data_size_bytes = 3;value - The dataSizeBytes to set.public Snapshot.Builder clearDataSizeBytes()
Output only. The size of the data in the source table at the time the snapshot was taken. In some cases, this value may be computed asynchronously via a background process and a placeholder of 0 will be used in the meantime.
int64 data_size_bytes = 3;public boolean hasCreateTime()
Output only. The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;hasCreateTime in interface SnapshotOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;getCreateTime in interface SnapshotOrBuilderpublic Snapshot.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;public Snapshot.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;public Snapshot.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;public Snapshot.Builder clearCreateTime()
Output only. The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;getCreateTimeOrBuilder in interface SnapshotOrBuilderpublic boolean hasDeleteTime()
Output only. The time when the snapshot will be deleted. The maximum amount of time a snapshot can stay active is 365 days. If 'ttl' is not specified, the default maximum of 365 days will be used.
.google.protobuf.Timestamp delete_time = 5;hasDeleteTime in interface SnapshotOrBuilderpublic com.google.protobuf.Timestamp getDeleteTime()
Output only. The time when the snapshot will be deleted. The maximum amount of time a snapshot can stay active is 365 days. If 'ttl' is not specified, the default maximum of 365 days will be used.
.google.protobuf.Timestamp delete_time = 5;getDeleteTime in interface SnapshotOrBuilderpublic Snapshot.Builder setDeleteTime(com.google.protobuf.Timestamp value)
Output only. The time when the snapshot will be deleted. The maximum amount of time a snapshot can stay active is 365 days. If 'ttl' is not specified, the default maximum of 365 days will be used.
.google.protobuf.Timestamp delete_time = 5;public Snapshot.Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time when the snapshot will be deleted. The maximum amount of time a snapshot can stay active is 365 days. If 'ttl' is not specified, the default maximum of 365 days will be used.
.google.protobuf.Timestamp delete_time = 5;public Snapshot.Builder mergeDeleteTime(com.google.protobuf.Timestamp value)
Output only. The time when the snapshot will be deleted. The maximum amount of time a snapshot can stay active is 365 days. If 'ttl' is not specified, the default maximum of 365 days will be used.
.google.protobuf.Timestamp delete_time = 5;public Snapshot.Builder clearDeleteTime()
Output only. The time when the snapshot will be deleted. The maximum amount of time a snapshot can stay active is 365 days. If 'ttl' is not specified, the default maximum of 365 days will be used.
.google.protobuf.Timestamp delete_time = 5;public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder()
Output only. The time when the snapshot will be deleted. The maximum amount of time a snapshot can stay active is 365 days. If 'ttl' is not specified, the default maximum of 365 days will be used.
.google.protobuf.Timestamp delete_time = 5;public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()
Output only. The time when the snapshot will be deleted. The maximum amount of time a snapshot can stay active is 365 days. If 'ttl' is not specified, the default maximum of 365 days will be used.
.google.protobuf.Timestamp delete_time = 5;getDeleteTimeOrBuilder in interface SnapshotOrBuilderpublic int getStateValue()
Output only. The current state of the snapshot.
.google.bigtable.admin.v2.Snapshot.State state = 6;getStateValue in interface SnapshotOrBuilderpublic Snapshot.Builder setStateValue(int value)
Output only. The current state of the snapshot.
.google.bigtable.admin.v2.Snapshot.State state = 6;value - The enum numeric value on the wire for state to set.public Snapshot.State getState()
Output only. The current state of the snapshot.
.google.bigtable.admin.v2.Snapshot.State state = 6;getState in interface SnapshotOrBuilderpublic Snapshot.Builder setState(Snapshot.State value)
Output only. The current state of the snapshot.
.google.bigtable.admin.v2.Snapshot.State state = 6;value - The state to set.public Snapshot.Builder clearState()
Output only. The current state of the snapshot.
.google.bigtable.admin.v2.Snapshot.State state = 6;public String getDescription()
Output only. Description of the snapshot.
string description = 7;getDescription in interface SnapshotOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
Output only. Description of the snapshot.
string description = 7;getDescriptionBytes in interface SnapshotOrBuilderpublic Snapshot.Builder setDescription(String value)
Output only. Description of the snapshot.
string description = 7;value - The description to set.public Snapshot.Builder clearDescription()
Output only. Description of the snapshot.
string description = 7;public Snapshot.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Output only. Description of the snapshot.
string description = 7;value - The bytes for description to set.public final Snapshot.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>public final Snapshot.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>Copyright © 2020 Google LLC. All rights reserved.