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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Snapshot.Builder>
public Snapshot.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Snapshot.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Snapshot.Builder>
public Snapshot getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Snapshot build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Snapshot buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Snapshot.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Snapshot.Builder>
public Snapshot.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Snapshot.Builder>
public Snapshot.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Snapshot.Builder>
public Snapshot.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Snapshot.Builder>
public Snapshot.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Snapshot.Builder>
public Snapshot.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Snapshot.Builder>
public Snapshot.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Snapshot.Builder>
public Snapshot.Builder mergeFrom(Snapshot other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Snapshot.Builder>
public Snapshot.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Snapshot.Builder>
java.io.IOException
public 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 SnapshotOrBuilder
public 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 SnapshotOrBuilder
public 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 SnapshotOrBuilder
public Table getSourceTable()
(`OutputOnly`) The source table at the time the snapshot was taken.
.google.bigtable.admin.v2.Table source_table = 2;
getSourceTable
in interface SnapshotOrBuilder
public 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 SnapshotOrBuilder
public 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 SnapshotOrBuilder
public 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 SnapshotOrBuilder
public Timestamp getCreateTime()
(`OutputOnly`) The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;
getCreateTime
in interface SnapshotOrBuilder
public 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 SnapshotOrBuilder
public 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 SnapshotOrBuilder
public 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 SnapshotOrBuilder
public 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 SnapshotOrBuilder
public int getStateValue()
(`OutputOnly`) The current state of the snapshot.
.google.bigtable.admin.v2.Snapshot.State state = 6;
getStateValue
in interface SnapshotOrBuilder
public 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 SnapshotOrBuilder
public 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 SnapshotOrBuilder
public ByteString getDescriptionBytes()
(`OutputOnly`) Description of the snapshot.
string description = 7;
getDescriptionBytes
in interface SnapshotOrBuilder
public 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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Snapshot.Builder>
public final Snapshot.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Snapshot.Builder>