public final class Snapshot extends GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
Snapshot.Builder
This is a private alpha release of Cloud Bigtable snapshots.
|
static class |
Snapshot.State
Possible states of a snapshot.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
DATA_SIZE_BYTES_FIELD_NUMBER |
static int |
DELETE_TIME_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
SOURCE_TABLE_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Timestamp |
getCreateTime()
(`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.
|
static Snapshot |
getDefaultInstance() |
Snapshot |
getDefaultInstanceForType() |
Timestamp |
getDeleteTime()
(`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() |
java.lang.String |
getName()
(`OutputOnly`)
The unique name of the snapshot.
|
ByteString |
getNameBytes()
(`OutputOnly`)
The unique name of the snapshot.
|
Parser<Snapshot> |
getParserForType() |
int |
getSerializedSize() |
Table |
getSourceTable()
(`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.
|
UnknownFieldSet |
getUnknownFields() |
boolean |
hasCreateTime()
(`OutputOnly`)
The time when the snapshot is created.
|
boolean |
hasDeleteTime()
(`OutputOnly`)
The time when the snapshot will be deleted.
|
int |
hashCode() |
boolean |
hasSourceTable()
(`OutputOnly`)
The source table at the time the snapshot was taken.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Snapshot.Builder |
newBuilder() |
static Snapshot.Builder |
newBuilder(Snapshot prototype) |
Snapshot.Builder |
newBuilderForType() |
protected Snapshot.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static Snapshot |
parseDelimitedFrom(java.io.InputStream input) |
static Snapshot |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Snapshot |
parseFrom(byte[] data) |
static Snapshot |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Snapshot |
parseFrom(java.nio.ByteBuffer data) |
static Snapshot |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Snapshot |
parseFrom(ByteString data) |
static Snapshot |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Snapshot |
parseFrom(CodedInputStream input) |
static Snapshot |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Snapshot |
parseFrom(java.io.InputStream input) |
static Snapshot |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Snapshot> |
parser() |
Snapshot.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int NAME_FIELD_NUMBER
public static final int SOURCE_TABLE_FIELD_NUMBER
public static final int DATA_SIZE_BYTES_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int DELETE_TIME_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public 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 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 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 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 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 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.State getState()
(`OutputOnly`) The current state of the snapshot.
.google.bigtable.admin.v2.Snapshot.State state = 6;getState in interface SnapshotOrBuilderpublic 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 final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static Snapshot parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Snapshot parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Snapshot parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Snapshot parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Snapshot parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Snapshot parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Snapshot parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Snapshot parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Snapshot parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Snapshot parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Snapshot parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Snapshot parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Snapshot.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Snapshot.Builder newBuilder()
public static Snapshot.Builder newBuilder(Snapshot prototype)
public Snapshot.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Snapshot.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Snapshot getDefaultInstance()
public Parser<Snapshot> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Snapshot getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder