public final class BackupRun extends GeneratedMessage implements BackupRunOrBuilderA BackupRun resource.
Protobuf type google.cloud.sql.v1.BackupRun
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > BackupRunImplements
BackupRunOrBuilderStatic Fields
BACKUP_KIND_FIELD_NUMBER
public static final int BACKUP_KIND_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DATABASE_VERSION_FIELD_NUMBER
public static final int DATABASE_VERSION_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DISK_ENCRYPTION_CONFIGURATION_FIELD_NUMBER
public static final int DISK_ENCRYPTION_CONFIGURATION_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DISK_ENCRYPTION_STATUS_FIELD_NUMBER
public static final int DISK_ENCRYPTION_STATUS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
ENQUEUED_TIME_FIELD_NUMBER
public static final int ENQUEUED_TIME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
INSTANCE_FIELD_NUMBER
public static final int INSTANCE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
MAX_CHARGEABLE_BYTES_FIELD_NUMBER
public static final int MAX_CHARGEABLE_BYTES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SELF_LINK_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
TIME_ZONE_FIELD_NUMBER
public static final int TIME_ZONE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
WINDOW_START_TIME_FIELD_NUMBER
public static final int WINDOW_START_TIME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static BackupRun getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
BackupRun |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static BackupRun.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
BackupRun.Builder |
|
newBuilder(BackupRun prototype)
public static BackupRun.Builder newBuilder(BackupRun prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
BackupRun |
| Returns | |
|---|---|
| Type | Description |
BackupRun.Builder |
|
parseDelimitedFrom(InputStream input)
public static BackupRun parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
BackupRun |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static BackupRun parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BackupRun |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static BackupRun parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
BackupRun |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BackupRun parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BackupRun |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static BackupRun parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
BackupRun |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BackupRun parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BackupRun |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static BackupRun parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
BackupRun |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static BackupRun parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BackupRun |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static BackupRun parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
BackupRun |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static BackupRun parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BackupRun |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static BackupRun parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
BackupRun |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static BackupRun parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BackupRun |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<BackupRun> parser()| Returns | |
|---|---|
| Type | Description |
Parser<BackupRun> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getBackupKind()
public SqlBackupKind getBackupKind()Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
.google.cloud.sql.v1.SqlBackupKind backup_kind = 19;
| Returns | |
|---|---|
| Type | Description |
SqlBackupKind |
The backupKind. |
getBackupKindValue()
public int getBackupKindValue()Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
.google.cloud.sql.v1.SqlBackupKind backup_kind = 19;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for backupKind. |
getDatabaseVersion()
public SqlDatabaseVersion getDatabaseVersion()Output only. The instance database version at the time this backup was made.
.google.cloud.sql.v1.SqlDatabaseVersion database_version = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
SqlDatabaseVersion |
The databaseVersion. |
getDatabaseVersionValue()
public int getDatabaseVersionValue()Output only. The instance database version at the time this backup was made.
.google.cloud.sql.v1.SqlDatabaseVersion database_version = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for databaseVersion. |
getDefaultInstanceForType()
public BackupRun getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
BackupRun |
|
getDescription()
public String getDescription()The description of this run, only applicable to on-demand backups.
string description = 9;
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()The description of this run, only applicable to on-demand backups.
string description = 9;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDiskEncryptionConfiguration()
public DiskEncryptionConfiguration getDiskEncryptionConfiguration()Encryption configuration specific to a backup.
.google.cloud.sql.v1.DiskEncryptionConfiguration disk_encryption_configuration = 16;
| Returns | |
|---|---|
| Type | Description |
DiskEncryptionConfiguration |
The diskEncryptionConfiguration. |
getDiskEncryptionConfigurationOrBuilder()
public DiskEncryptionConfigurationOrBuilder getDiskEncryptionConfigurationOrBuilder()Encryption configuration specific to a backup.
.google.cloud.sql.v1.DiskEncryptionConfiguration disk_encryption_configuration = 16;
| Returns | |
|---|---|
| Type | Description |
DiskEncryptionConfigurationOrBuilder |
|
getDiskEncryptionStatus()
public DiskEncryptionStatus getDiskEncryptionStatus()Encryption status specific to a backup.
.google.cloud.sql.v1.DiskEncryptionStatus disk_encryption_status = 17;
| Returns | |
|---|---|
| Type | Description |
DiskEncryptionStatus |
The diskEncryptionStatus. |
getDiskEncryptionStatusOrBuilder()
public DiskEncryptionStatusOrBuilder getDiskEncryptionStatusOrBuilder()Encryption status specific to a backup.
.google.cloud.sql.v1.DiskEncryptionStatus disk_encryption_status = 17;
| Returns | |
|---|---|
| Type | Description |
DiskEncryptionStatusOrBuilder |
|
getEndTime()
public Timestamp getEndTime() The time the backup operation completed in UTC timezone in
RFC 3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp end_time = 6;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The endTime. |
getEndTimeOrBuilder()
public TimestampOrBuilder getEndTimeOrBuilder() The time the backup operation completed in UTC timezone in
RFC 3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp end_time = 6;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getEnqueuedTime()
public Timestamp getEnqueuedTime() The time the run was enqueued in UTC timezone in
RFC 3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp enqueued_time = 3;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The enqueuedTime. |
getEnqueuedTimeOrBuilder()
public TimestampOrBuilder getEnqueuedTimeOrBuilder() The time the run was enqueued in UTC timezone in
RFC 3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp enqueued_time = 3;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getError()
public OperationError getError()Information about why the backup operation failed. This is only present if the run has the FAILED status.
.google.cloud.sql.v1.OperationError error = 7;
| Returns | |
|---|---|
| Type | Description |
OperationError |
The error. |
getErrorOrBuilder()
public OperationErrorOrBuilder getErrorOrBuilder()Information about why the backup operation failed. This is only present if the run has the FAILED status.
.google.cloud.sql.v1.OperationError error = 7;
| Returns | |
|---|---|
| Type | Description |
OperationErrorOrBuilder |
|
getId()
public long getId()The identifier for this backup run. Unique only for a specific Cloud SQL instance.
int64 id = 4;
| Returns | |
|---|---|
| Type | Description |
long |
The id. |
getInstance()
public String getInstance()Name of the database instance.
string instance = 11;
| Returns | |
|---|---|
| Type | Description |
String |
The instance. |
getInstanceBytes()
public ByteString getInstanceBytes()Name of the database instance.
string instance = 11;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for instance. |
getKind()
public String getKind() This is always sql#backupRun.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The kind. |
getKindBytes()
public ByteString getKindBytes() This is always sql#backupRun.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kind. |
getLocation()
public String getLocation()Location of the backups.
string location = 13;
| Returns | |
|---|---|
| Type | Description |
String |
The location. |
getLocationBytes()
public ByteString getLocationBytes()Location of the backups.
string location = 13;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for location. |
getMaxChargeableBytes()
public long getMaxChargeableBytes()Output only. The maximum chargeable bytes for the backup.
optional int64 max_chargeable_bytes = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
long |
The maxChargeableBytes. |
getParserForType()
public Parser<BackupRun> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<BackupRun> |
|
getSelfLink()
public String getSelfLink()The URI of this resource.
string self_link = 12;
| Returns | |
|---|---|
| Type | Description |
String |
The selfLink. |
getSelfLinkBytes()
public ByteString getSelfLinkBytes()The URI of this resource.
string self_link = 12;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for selfLink. |
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getStartTime()
public Timestamp getStartTime() The time the backup operation actually started in UTC timezone in
RFC 3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp start_time = 5;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The startTime. |
getStartTimeOrBuilder()
public TimestampOrBuilder getStartTimeOrBuilder() The time the backup operation actually started in UTC timezone in
RFC 3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp start_time = 5;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getStatus()
public SqlBackupRunStatus getStatus()The status of this run.
.google.cloud.sql.v1.SqlBackupRunStatus status = 2;
| Returns | |
|---|---|
| Type | Description |
SqlBackupRunStatus |
The status. |
getStatusValue()
public int getStatusValue()The status of this run.
.google.cloud.sql.v1.SqlBackupRunStatus status = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for status. |
getTimeZone()
public String getTimeZone()Backup time zone to prevent restores to an instance with a different time zone. Now relevant only for SQL Server.
string time_zone = 23;
| Returns | |
|---|---|
| Type | Description |
String |
The timeZone. |
getTimeZoneBytes()
public ByteString getTimeZoneBytes()Backup time zone to prevent restores to an instance with a different time zone. Now relevant only for SQL Server.
string time_zone = 23;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for timeZone. |
getType()
public SqlBackupRunType getType()The type of this run; can be either "AUTOMATED" or "ON_DEMAND" or "FINAL". This field defaults to "ON_DEMAND" and is ignored, when specified for insert requests.
.google.cloud.sql.v1.SqlBackupRunType type = 8;
| Returns | |
|---|---|
| Type | Description |
SqlBackupRunType |
The type. |
getTypeValue()
public int getTypeValue()The type of this run; can be either "AUTOMATED" or "ON_DEMAND" or "FINAL". This field defaults to "ON_DEMAND" and is ignored, when specified for insert requests.
.google.cloud.sql.v1.SqlBackupRunType type = 8;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for type. |
getWindowStartTime()
public Timestamp getWindowStartTime() The start time of the backup window during which this the backup was
attempted in RFC 3339 format, for
example 2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp window_start_time = 10;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The windowStartTime. |
getWindowStartTimeOrBuilder()
public TimestampOrBuilder getWindowStartTimeOrBuilder() The start time of the backup window during which this the backup was
attempted in RFC 3339 format, for
example 2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp window_start_time = 10;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
hasDiskEncryptionConfiguration()
public boolean hasDiskEncryptionConfiguration()Encryption configuration specific to a backup.
.google.cloud.sql.v1.DiskEncryptionConfiguration disk_encryption_configuration = 16;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the diskEncryptionConfiguration field is set. |
hasDiskEncryptionStatus()
public boolean hasDiskEncryptionStatus()Encryption status specific to a backup.
.google.cloud.sql.v1.DiskEncryptionStatus disk_encryption_status = 17;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the diskEncryptionStatus field is set. |
hasEndTime()
public boolean hasEndTime() The time the backup operation completed in UTC timezone in
RFC 3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp end_time = 6;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the endTime field is set. |
hasEnqueuedTime()
public boolean hasEnqueuedTime() The time the run was enqueued in UTC timezone in
RFC 3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp enqueued_time = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the enqueuedTime field is set. |
hasError()
public boolean hasError()Information about why the backup operation failed. This is only present if the run has the FAILED status.
.google.cloud.sql.v1.OperationError error = 7;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the error field is set. |
hasMaxChargeableBytes()
public boolean hasMaxChargeableBytes()Output only. The maximum chargeable bytes for the backup.
optional int64 max_chargeable_bytes = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the maxChargeableBytes field is set. |
hasStartTime()
public boolean hasStartTime() The time the backup operation actually started in UTC timezone in
RFC 3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp start_time = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the startTime field is set. |
hasWindowStartTime()
public boolean hasWindowStartTime() The start time of the backup window during which this the backup was
attempted in RFC 3339 format, for
example 2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp window_start_time = 10;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the windowStartTime field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public BackupRun.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
BackupRun.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected BackupRun.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
BackupRun.Builder |
|
toBuilder()
public BackupRun.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
BackupRun.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|