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, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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 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 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 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 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 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.State getState()
(`OutputOnly`) The current state of the snapshot.
.google.bigtable.admin.v2.Snapshot.State state = 6;
getState
in interface SnapshotOrBuilder
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 final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Snapshot parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Snapshot parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Snapshot parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Snapshot parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Snapshot parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Snapshot parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Snapshot parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Snapshot parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Snapshot parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Snapshot parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Snapshot parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Snapshot parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Snapshot.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Snapshot.Builder newBuilder()
public static Snapshot.Builder newBuilder(Snapshot prototype)
public Snapshot.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Snapshot.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Snapshot getDefaultInstance()
public Parser<Snapshot> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Snapshot getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder