public static final class Snapshot.Builder extends GeneratedMessageV3.Builder<Snapshot.Builder> implements SnapshotOrBuilder
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. 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.Protobuf type
google.bigtable.admin.v2.Snapshot| Modifier and Type | Method and Description |
|---|---|
Snapshot.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Snapshot |
build() |
Snapshot |
buildPartial() |
Snapshot.Builder |
clear() |
Snapshot.Builder |
clearCreateTime()
(`OutputOnly`)
The time when the snapshot is created.
|
Snapshot.Builder |
clearDataSizeBytes()
(`OutputOnly`)
The size of the data in the source table at the time the snapshot was
taken.
|
Snapshot.Builder |
clearDeleteTime()
(`OutputOnly`)
The time when the snapshot will be deleted.
|
Snapshot.Builder |
clearDescription()
(`OutputOnly`)
Description of the snapshot.
|
Snapshot.Builder |
clearField(Descriptors.FieldDescriptor field) |
Snapshot.Builder |
clearName()
(`OutputOnly`)
The unique name of the snapshot.
|
Snapshot.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Snapshot.Builder |
clearSourceTable()
(`OutputOnly`)
The source table at the time the snapshot was taken.
|
Snapshot.Builder |
clearState()
(`OutputOnly`)
The current state of the snapshot.
|
Snapshot.Builder |
clone() |
Timestamp |
getCreateTime()
(`OutputOnly`)
The time when the snapshot is created.
|
Timestamp.Builder |
getCreateTimeBuilder()
(`OutputOnly`)
The time when the snapshot is created.
|
TimestampOrBuilder |
getCreateTimeOrBuilder()
(`OutputOnly`)
The time when the snapshot is created.
|
long |
getDataSizeBytes()
(`OutputOnly`)
The size of the data in the source table at the time the snapshot was
taken.
|
Snapshot |
getDefaultInstanceForType() |
Timestamp |
getDeleteTime()
(`OutputOnly`)
The time when the snapshot will be deleted.
|
Timestamp.Builder |
getDeleteTimeBuilder()
(`OutputOnly`)
The time when the snapshot will be deleted.
|
TimestampOrBuilder |
getDeleteTimeOrBuilder()
(`OutputOnly`)
The time when the snapshot will be deleted.
|
java.lang.String |
getDescription()
(`OutputOnly`)
Description of the snapshot.
|
ByteString |
getDescriptionBytes()
(`OutputOnly`)
Description of the snapshot.
|
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getName()
(`OutputOnly`)
The unique name of the snapshot.
|
ByteString |
getNameBytes()
(`OutputOnly`)
The unique name of the snapshot.
|
Table |
getSourceTable()
(`OutputOnly`)
The source table at the time the snapshot was taken.
|
Table.Builder |
getSourceTableBuilder()
(`OutputOnly`)
The source table at the time the snapshot was taken.
|
TableOrBuilder |
getSourceTableOrBuilder()
(`OutputOnly`)
The source table at the time the snapshot was taken.
|
Snapshot.State |
getState()
(`OutputOnly`)
The current state of the snapshot.
|
int |
getStateValue()
(`OutputOnly`)
The current state of the snapshot.
|
boolean |
hasCreateTime()
(`OutputOnly`)
The time when the snapshot is created.
|
boolean |
hasDeleteTime()
(`OutputOnly`)
The time when the snapshot will be deleted.
|
boolean |
hasSourceTable()
(`OutputOnly`)
The source table at the time the snapshot was taken.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Snapshot.Builder |
mergeCreateTime(Timestamp value)
(`OutputOnly`)
The time when the snapshot is created.
|
Snapshot.Builder |
mergeDeleteTime(Timestamp value)
(`OutputOnly`)
The time when the snapshot will be deleted.
|
Snapshot.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Snapshot.Builder |
mergeFrom(Message other) |
Snapshot.Builder |
mergeFrom(Snapshot other) |
Snapshot.Builder |
mergeSourceTable(Table value)
(`OutputOnly`)
The source table at the time the snapshot was taken.
|
Snapshot.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Snapshot.Builder |
setCreateTime(Timestamp.Builder builderForValue)
(`OutputOnly`)
The time when the snapshot is created.
|
Snapshot.Builder |
setCreateTime(Timestamp value)
(`OutputOnly`)
The time when the snapshot is created.
|
Snapshot.Builder |
setDataSizeBytes(long value)
(`OutputOnly`)
The size of the data in the source table at the time the snapshot was
taken.
|
Snapshot.Builder |
setDeleteTime(Timestamp.Builder builderForValue)
(`OutputOnly`)
The time when the snapshot will be deleted.
|
Snapshot.Builder |
setDeleteTime(Timestamp value)
(`OutputOnly`)
The time when the snapshot will be deleted.
|
Snapshot.Builder |
setDescription(java.lang.String value)
(`OutputOnly`)
Description of the snapshot.
|
Snapshot.Builder |
setDescriptionBytes(ByteString value)
(`OutputOnly`)
Description of the snapshot.
|
Snapshot.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Snapshot.Builder |
setName(java.lang.String value)
(`OutputOnly`)
The unique name of the snapshot.
|
Snapshot.Builder |
setNameBytes(ByteString value)
(`OutputOnly`)
The unique name of the snapshot.
|
Snapshot.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Snapshot.Builder |
setSourceTable(Table.Builder builderForValue)
(`OutputOnly`)
The source table at the time the snapshot was taken.
|
Snapshot.Builder |
setSourceTable(Table value)
(`OutputOnly`)
The source table at the time the snapshot was taken.
|
Snapshot.Builder |
setState(Snapshot.State value)
(`OutputOnly`)
The current state of the snapshot.
|
Snapshot.Builder |
setStateValue(int value)
(`OutputOnly`)
The current state of the snapshot.
|
Snapshot.Builder |
setUnknownFields(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, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<Snapshot.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic Snapshot build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic Snapshot buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic Snapshot.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<Snapshot.Builder>public Snapshot.Builder mergeFrom(Snapshot other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<Snapshot.Builder>public Snapshot.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<Snapshot.Builder>java.io.IOExceptionpublic java.lang.String getName()
(`OutputOnly`) 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 ByteString getNameBytes()
(`OutputOnly`) 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(java.lang.String value)
(`OutputOnly`) 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 clearName()
(`OutputOnly`) 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(ByteString value)
(`OutputOnly`) The unique name of the snapshot. Values are of the form `projects/<project>/instances/<instance>/clusters/<cluster>/snapshots/<snapshot>`.
string name = 1;public boolean hasSourceTable()
(`OutputOnly`) The source table at the time the snapshot was taken.
.google.bigtable.admin.v2.Table source_table = 2;hasSourceTable in interface SnapshotOrBuilderpublic Table getSourceTable()
(`OutputOnly`) 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)
(`OutputOnly`) 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)
(`OutputOnly`) The source table at the time the snapshot was taken.
.google.bigtable.admin.v2.Table source_table = 2;public Snapshot.Builder mergeSourceTable(Table value)
(`OutputOnly`) The source table at the time the snapshot was taken.
.google.bigtable.admin.v2.Table source_table = 2;public Snapshot.Builder clearSourceTable()
(`OutputOnly`) The source table at the time the snapshot was taken.
.google.bigtable.admin.v2.Table source_table = 2;public Table.Builder getSourceTableBuilder()
(`OutputOnly`) The source table at the time the snapshot was taken.
.google.bigtable.admin.v2.Table source_table = 2;public TableOrBuilder getSourceTableOrBuilder()
(`OutputOnly`) The source table at the time the snapshot was taken.
.google.bigtable.admin.v2.Table source_table = 2;getSourceTableOrBuilder in interface SnapshotOrBuilderpublic long getDataSizeBytes()
(`OutputOnly`) 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)
(`OutputOnly`) 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 Snapshot.Builder clearDataSizeBytes()
(`OutputOnly`) 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()
(`OutputOnly`) The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;hasCreateTime in interface SnapshotOrBuilderpublic Timestamp getCreateTime()
(`OutputOnly`) The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;getCreateTime in interface SnapshotOrBuilderpublic Snapshot.Builder setCreateTime(Timestamp value)
(`OutputOnly`) The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;public Snapshot.Builder setCreateTime(Timestamp.Builder builderForValue)
(`OutputOnly`) The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;public Snapshot.Builder mergeCreateTime(Timestamp value)
(`OutputOnly`) The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;public Snapshot.Builder clearCreateTime()
(`OutputOnly`) The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;public Timestamp.Builder getCreateTimeBuilder()
(`OutputOnly`) The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;public TimestampOrBuilder getCreateTimeOrBuilder()
(`OutputOnly`) The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;getCreateTimeOrBuilder in interface SnapshotOrBuilderpublic boolean hasDeleteTime()
(`OutputOnly`) 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 Timestamp getDeleteTime()
(`OutputOnly`) 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(Timestamp value)
(`OutputOnly`) 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(Timestamp.Builder builderForValue)
(`OutputOnly`) 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(Timestamp value)
(`OutputOnly`) 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()
(`OutputOnly`) 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 Timestamp.Builder getDeleteTimeBuilder()
(`OutputOnly`) 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 TimestampOrBuilder getDeleteTimeOrBuilder()
(`OutputOnly`) 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()
(`OutputOnly`) The current state of the snapshot.
.google.bigtable.admin.v2.Snapshot.State state = 6;getStateValue in interface SnapshotOrBuilderpublic Snapshot.Builder setStateValue(int value)
(`OutputOnly`) The current state of the snapshot.
.google.bigtable.admin.v2.Snapshot.State state = 6;public Snapshot.State getState()
(`OutputOnly`) The current state of the snapshot.
.google.bigtable.admin.v2.Snapshot.State state = 6;getState in interface SnapshotOrBuilderpublic Snapshot.Builder setState(Snapshot.State value)
(`OutputOnly`) The current state of the snapshot.
.google.bigtable.admin.v2.Snapshot.State state = 6;public Snapshot.Builder clearState()
(`OutputOnly`) The current state of the snapshot.
.google.bigtable.admin.v2.Snapshot.State state = 6;public java.lang.String getDescription()
(`OutputOnly`) Description of the snapshot.
string description = 7;getDescription in interface SnapshotOrBuilderpublic ByteString getDescriptionBytes()
(`OutputOnly`) Description of the snapshot.
string description = 7;getDescriptionBytes in interface SnapshotOrBuilderpublic Snapshot.Builder setDescription(java.lang.String value)
(`OutputOnly`) Description of the snapshot.
string description = 7;public Snapshot.Builder clearDescription()
(`OutputOnly`) Description of the snapshot.
string description = 7;public Snapshot.Builder setDescriptionBytes(ByteString value)
(`OutputOnly`) Description of the snapshot.
string description = 7;public final Snapshot.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<Snapshot.Builder>public final Snapshot.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<Snapshot.Builder>