public class Backup
A backup lets you save a copy of a table's schema and data and restore the backup to a new table at a later time.
Static Methods
fromProto(Backup proto)
public static Backup fromProto(Backup proto)
Parameter | |
---|---|
Name | Description |
proto |
com.google.bigtable.admin.v2.Backup |
Returns | |
---|---|
Type | Description |
Backup |
Methods
equals(Object o)
public boolean equals(Object o)
Parameter | |
---|---|
Name | Description |
o |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getEncryptionInfo()
public EncryptionInfo getEncryptionInfo()
Get the encryption information for the backup.
If encryption_type is CUSTOMER_MANAGED_ENCRYPTION, kms_key_version will be filled in with status UNKNOWN.
If encryption_type is GOOGLE_DEFAULT_ENCRYPTION, all other fields will have default value.
Returns | |
---|---|
Type | Description |
EncryptionInfo |
getEndTime()
public Instant getEndTime()
Get the end time when the creation of this backup has completed.
Returns | |
---|---|
Type | Description |
org.threeten.bp.Instant |
getExpireTime()
public Instant getExpireTime()
Get the expire time of this backup.
Returns | |
---|---|
Type | Description |
org.threeten.bp.Instant |
getId()
public String getId()
Get the ID of this backup.
Returns | |
---|---|
Type | Description |
String |
getInstanceId()
public String getInstanceId()
Get the instance ID where this backup is located.
Returns | |
---|---|
Type | Description |
String |
getSizeBytes()
public long getSizeBytes()
Get the size of this backup.
Returns | |
---|---|
Type | Description |
long |
getSourceBackupId()
public String getSourceBackupId()
Get the source backup ID from which the backup is copied.
Returns | |
---|---|
Type | Description |
String |
getSourceTableId()
public String getSourceTableId()
Get the source table ID from which the backup is created.
Returns | |
---|---|
Type | Description |
String |
getStartTime()
public Instant getStartTime()
Get the start time when this backup is taken.
Returns | |
---|---|
Type | Description |
org.threeten.bp.Instant |
getState()
public Backup.State getState()
Get the state of this backup.
Returns | |
---|---|
Type | Description |
Backup.State |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |