public static final class Snapshot.Builder extends 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Snapshot.BuilderImplements
SnapshotOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Snapshot.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Snapshot.Builder |
build()
public Snapshot build()
Type | Description |
Snapshot |
buildPartial()
public Snapshot buildPartial()
Type | Description |
Snapshot |
clear()
public Snapshot.Builder clear()
Type | Description |
Snapshot.Builder |
clearCreateTime()
public Snapshot.Builder clearCreateTime()
Output only. The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;
Type | Description |
Snapshot.Builder |
clearDataSizeBytes()
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;
Type | Description |
Snapshot.Builder | This builder for chaining. |
clearDeleteTime()
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;
Type | Description |
Snapshot.Builder |
clearDescription()
public Snapshot.Builder clearDescription()
Output only. Description of the snapshot.
string description = 7;
Type | Description |
Snapshot.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Snapshot.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Snapshot.Builder |
clearName()
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;
Type | Description |
Snapshot.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Snapshot.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Snapshot.Builder |
clearSourceTable()
public Snapshot.Builder clearSourceTable()
Output only. The source table at the time the snapshot was taken.
.google.bigtable.admin.v2.Table source_table = 2;
Type | Description |
Snapshot.Builder |
clearState()
public Snapshot.Builder clearState()
Output only. The current state of the snapshot.
.google.bigtable.admin.v2.Snapshot.State state = 6;
Type | Description |
Snapshot.Builder | This builder for chaining. |
clone()
public Snapshot.Builder clone()
Type | Description |
Snapshot.Builder |
getCreateTime()
public Timestamp getCreateTime()
Output only. The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;
Type | Description |
TimestampOrBuilder |
getDataSizeBytes()
public 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;
Type | Description |
long | The dataSizeBytes. |
getDefaultInstanceForType()
public Snapshot getDefaultInstanceForType()
Type | Description |
Snapshot |
getDeleteTime()
public 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;
Type | Description |
Timestamp | The deleteTime. |
getDeleteTimeBuilder()
public 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;
Type | Description |
Builder |
getDeleteTimeOrBuilder()
public 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;
Type | Description |
TimestampOrBuilder |
getDescription()
public String getDescription()
Output only. Description of the snapshot.
string description = 7;
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
Output only. Description of the snapshot.
string description = 7;
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getName()
public 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;
Type | Description |
String | The name. |
getNameBytes()
public 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;
Type | Description |
ByteString | The bytes for name. |
getSourceTable()
public Table getSourceTable()
Output only. The source table at the time the snapshot was taken.
.google.bigtable.admin.v2.Table source_table = 2;
Type | Description |
Table | The sourceTable. |
getSourceTableBuilder()
public Table.Builder getSourceTableBuilder()
Output only. The source table at the time the snapshot was taken.
.google.bigtable.admin.v2.Table source_table = 2;
Type | Description |
Table.Builder |
getSourceTableOrBuilder()
public TableOrBuilder getSourceTableOrBuilder()
Output only. The source table at the time the snapshot was taken.
.google.bigtable.admin.v2.Table source_table = 2;
Type | Description |
TableOrBuilder |
getState()
public Snapshot.State getState()
Output only. The current state of the snapshot.
.google.bigtable.admin.v2.Snapshot.State state = 6;
Type | Description |
Snapshot.State | The state. |
getStateValue()
public int getStateValue()
Output only. The current state of the snapshot.
.google.bigtable.admin.v2.Snapshot.State state = 6;
Type | Description |
int | The enum numeric value on the wire for state. |
hasCreateTime()
public boolean hasCreateTime()
Output only. The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;
Type | Description |
boolean | Whether the createTime field is set. |
hasDeleteTime()
public 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;
Type | Description |
boolean | Whether the deleteTime field is set. |
hasSourceTable()
public boolean hasSourceTable()
Output only. The source table at the time the snapshot was taken.
.google.bigtable.admin.v2.Table source_table = 2;
Type | Description |
boolean | Whether the sourceTable field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public Snapshot.Builder mergeCreateTime(Timestamp value)
Output only. The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;
Name | Description |
value | Timestamp |
Type | Description |
Snapshot.Builder |
mergeDeleteTime(Timestamp value)
public Snapshot.Builder mergeDeleteTime(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;
Name | Description |
value | Timestamp |
Type | Description |
Snapshot.Builder |
mergeFrom(Snapshot other)
public Snapshot.Builder mergeFrom(Snapshot other)
Name | Description |
other | Snapshot |
Type | Description |
Snapshot.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Snapshot.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Snapshot.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Snapshot.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Snapshot.Builder |
mergeSourceTable(Table value)
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;
Name | Description |
value | Table |
Type | Description |
Snapshot.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Snapshot.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Snapshot.Builder |
setCreateTime(Timestamp value)
public Snapshot.Builder setCreateTime(Timestamp value)
Output only. The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;
Name | Description |
value | Timestamp |
Type | Description |
Snapshot.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public Snapshot.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. The time when the snapshot is created.
.google.protobuf.Timestamp create_time = 4;
Name | Description |
builderForValue | Builder |
Type | Description |
Snapshot.Builder |
setDataSizeBytes(long value)
public 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;
Name | Description |
value | long The dataSizeBytes to set. |
Type | Description |
Snapshot.Builder | This builder for chaining. |
setDeleteTime(Timestamp value)
public Snapshot.Builder setDeleteTime(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;
Name | Description |
value | Timestamp |
Type | Description |
Snapshot.Builder |
setDeleteTime(Timestamp.Builder builderForValue)
public Snapshot.Builder setDeleteTime(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;
Name | Description |
builderForValue | Builder |
Type | Description |
Snapshot.Builder |
setDescription(String value)
public Snapshot.Builder setDescription(String value)
Output only. Description of the snapshot.
string description = 7;
Name | Description |
value | String The description to set. |
Type | Description |
Snapshot.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public Snapshot.Builder setDescriptionBytes(ByteString value)
Output only. Description of the snapshot.
string description = 7;
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
Snapshot.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Snapshot.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Snapshot.Builder |
setName(String value)
public 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;
Name | Description |
value | String The name to set. |
Type | Description |
Snapshot.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Snapshot.Builder setNameBytes(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;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
Snapshot.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Snapshot.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Snapshot.Builder |
setSourceTable(Table value)
public 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;
Name | Description |
value | Table |
Type | Description |
Snapshot.Builder |
setSourceTable(Table.Builder builderForValue)
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;
Name | Description |
builderForValue | Table.Builder |
Type | Description |
Snapshot.Builder |
setState(Snapshot.State value)
public Snapshot.Builder setState(Snapshot.State value)
Output only. The current state of the snapshot.
.google.bigtable.admin.v2.Snapshot.State state = 6;
Name | Description |
value | Snapshot.State The state to set. |
Type | Description |
Snapshot.Builder | This builder for chaining. |
setStateValue(int value)
public Snapshot.Builder setStateValue(int value)
Output only. The current state of the snapshot.
.google.bigtable.admin.v2.Snapshot.State state = 6;
Name | Description |
value | int The enum numeric value on the wire for state to set. |
Type | Description |
Snapshot.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Snapshot.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Snapshot.Builder |