    public interface OperationOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getAcquireSsrsLeaseContext()

    public abstract AcquireSsrsLeaseContext getAcquireSsrsLeaseContext()

The context for acquire SSRS lease operation, if applicable.

`.google.cloud.sql.v1.AcquireSsrsLeaseContext acquire_ssrs_lease_context = 20;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.AcquireSsrsLeaseContext` | The acquireSsrsLeaseContext. |

### getAcquireSsrsLeaseContextOrBuilder()

    public abstract AcquireSsrsLeaseContextOrBuilder getAcquireSsrsLeaseContextOrBuilder()

The context for acquire SSRS lease operation, if applicable.

`.google.cloud.sql.v1.AcquireSsrsLeaseContext acquire_ssrs_lease_context = 20;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.AcquireSsrsLeaseContextOrBuilder` |   |

### getApiWarning()

    public abstract ApiWarning getApiWarning()

An Admin API warning message.

`.google.cloud.sql.v1.ApiWarning api_warning = 19;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.ApiWarning` | The apiWarning. |

### getApiWarningOrBuilder()

    public abstract ApiWarningOrBuilder getApiWarningOrBuilder()

An Admin API warning message.

`.google.cloud.sql.v1.ApiWarning api_warning = 19;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.ApiWarningOrBuilder` |   |

### getBackupContext()

    public abstract BackupContext getBackupContext()

The context for backup operation, if applicable.

`.google.cloud.sql.v1.BackupContext backup_context = 17;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.BackupContext` | The backupContext. |

### getBackupContextOrBuilder()

    public abstract BackupContextOrBuilder getBackupContextOrBuilder()

The context for backup operation, if applicable.

`.google.cloud.sql.v1.BackupContext backup_context = 17;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.BackupContextOrBuilder` |   |

### getEndTime()

    public abstract Timestamp getEndTime()

The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.

`.google.protobuf.Timestamp end_time = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The endTime. |

### getEndTimeOrBuilder()

    public abstract TimestampOrBuilder getEndTimeOrBuilder()

The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.

`.google.protobuf.Timestamp end_time = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getError()

    public abstract OperationErrors getError()

If errors occurred during processing of this operation, this field will be populated.

`.google.cloud.sql.v1.OperationErrors error = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.OperationErrors` | The error. |

### getErrorOrBuilder()

    public abstract OperationErrorsOrBuilder getErrorOrBuilder()

If errors occurred during processing of this operation, this field will be populated.

`.google.cloud.sql.v1.OperationErrors error = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.OperationErrorsOrBuilder` |   |

### getExportContext()

    public abstract ExportContext getExportContext()

The context for export operation, if applicable.

`.google.cloud.sql.v1.ExportContext export_context = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.ExportContext` | The exportContext. |

### getExportContextOrBuilder()

    public abstract ExportContextOrBuilder getExportContextOrBuilder()

The context for export operation, if applicable.

`.google.cloud.sql.v1.ExportContext export_context = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.ExportContextOrBuilder` |   |

### getImportContext()

    public abstract ImportContext getImportContext()

The context for import operation, if applicable.

`.google.cloud.sql.v1.ImportContext import_context = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.ImportContext` | The importContext. |

### getImportContextOrBuilder()

    public abstract ImportContextOrBuilder getImportContextOrBuilder()

The context for import operation, if applicable.

`.google.cloud.sql.v1.ImportContext import_context = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.ImportContextOrBuilder` |   |

### getInsertTime()

    public abstract Timestamp getInsertTime()

The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.

`.google.protobuf.Timestamp insert_time = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The insertTime. |

### getInsertTimeOrBuilder()

    public abstract TimestampOrBuilder getInsertTimeOrBuilder()

The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.

`.google.protobuf.Timestamp insert_time = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getKind()

    public abstract String getKind()

This is always `sql#operation`.

`string kind = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The kind. |

### getKindBytes()

    public abstract ByteString getKindBytes()

This is always `sql#operation`.

`string kind = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for kind. |

### getName()

    public abstract String getName()

An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.

`string name = 12;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.

`string name = 12;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getOperationType()

    public abstract Operation.SqlOperationType getOperationType()

The type of the operation. Valid values are:

- `CREATE`
- `DELETE`
- `UPDATE`
- `RESTART`
- `IMPORT`
- `EXPORT`
- `BACKUP_VOLUME`
- `RESTORE_VOLUME`
- `CREATE_USER`
- `DELETE_USER`
- `CREATE_DATABASE`
- `DELETE_DATABASE`

`.google.cloud.sql.v1.Operation.SqlOperationType operation_type = 9;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Operation.SqlOperationType` | The operationType. |

### getOperationTypeValue()

    public abstract int getOperationTypeValue()

The type of the operation. Valid values are:

- `CREATE`
- `DELETE`
- `UPDATE`
- `RESTART`
- `IMPORT`
- `EXPORT`
- `BACKUP_VOLUME`
- `RESTORE_VOLUME`
- `CREATE_USER`
- `DELETE_USER`
- `CREATE_DATABASE`
- `DELETE_DATABASE`

`.google.cloud.sql.v1.Operation.SqlOperationType operation_type = 9;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for operationType. |

### getPreCheckMajorVersionUpgradeContext()

    public abstract PreCheckMajorVersionUpgradeContext getPreCheckMajorVersionUpgradeContext()

This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).

` .google.cloud.sql.v1.PreCheckMajorVersionUpgradeContext pre_check_major_version_upgrade_context = 50; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.PreCheckMajorVersionUpgradeContext` | The preCheckMajorVersionUpgradeContext. |

### getPreCheckMajorVersionUpgradeContextOrBuilder()

    public abstract PreCheckMajorVersionUpgradeContextOrBuilder getPreCheckMajorVersionUpgradeContextOrBuilder()

This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).

` .google.cloud.sql.v1.PreCheckMajorVersionUpgradeContext pre_check_major_version_upgrade_context = 50; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.PreCheckMajorVersionUpgradeContextOrBuilder` |   |

### getSelfLink()

    public abstract String getSelfLink()

The URI of this resource.

`string self_link = 14;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The selfLink. |

### getSelfLinkBytes()

    public abstract ByteString getSelfLinkBytes()

The URI of this resource.

`string self_link = 14;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for selfLink. |

### getStartTime()

    public abstract Timestamp getStartTime()

The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.

`.google.protobuf.Timestamp start_time = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The startTime. |

### getStartTimeOrBuilder()

    public abstract TimestampOrBuilder getStartTimeOrBuilder()

The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.

`.google.protobuf.Timestamp start_time = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getStatus()

    public abstract Operation.SqlOperationStatus getStatus()

The status of an operation.

`.google.cloud.sql.v1.Operation.SqlOperationStatus status = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Operation.SqlOperationStatus` | The status. |

### getStatusValue()

    public abstract int getStatusValue()

The status of an operation.

`.google.cloud.sql.v1.Operation.SqlOperationStatus status = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for status. |

### getSubOperationType()

    public abstract SqlSubOperationType getSubOperationType()

Optional. The sub operation based on the operation type.

` .google.cloud.sql.v1.SqlSubOperationType sub_operation_type = 48 [(.google.api.field_behavior) = OPTIONAL]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.SqlSubOperationType` | The subOperationType. |

### getSubOperationTypeOrBuilder()

    public abstract SqlSubOperationTypeOrBuilder getSubOperationTypeOrBuilder()

Optional. The sub operation based on the operation type.

` .google.cloud.sql.v1.SqlSubOperationType sub_operation_type = 48 [(.google.api.field_behavior) = OPTIONAL]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.SqlSubOperationTypeOrBuilder` |   |

### getTargetId()

    public abstract String getTargetId()

Name of the resource on which this operation runs.

`string target_id = 13;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The targetId. |

### getTargetIdBytes()

    public abstract ByteString getTargetIdBytes()

Name of the resource on which this operation runs.

`string target_id = 13;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for targetId. |

### getTargetLink()

    public abstract String getTargetLink()

`string target_link = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The targetLink. |

### getTargetLinkBytes()

    public abstract ByteString getTargetLinkBytes()

`string target_link = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for targetLink. |

### getTargetProject()

    public abstract String getTargetProject()

The project ID of the target instance related to this operation.

`string target_project = 15;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The targetProject. |

### getTargetProjectBytes()

    public abstract ByteString getTargetProjectBytes()

The project ID of the target instance related to this operation.

`string target_project = 15;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for targetProject. |

### getUser()

    public abstract String getUser()

The email address of the user who initiated this operation.

`string user = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The user. |

### getUserBytes()

    public abstract ByteString getUserBytes()

The email address of the user who initiated this operation.

`string user = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for user. |

### hasAcquireSsrsLeaseContext()

    public abstract boolean hasAcquireSsrsLeaseContext()

The context for acquire SSRS lease operation, if applicable.

`.google.cloud.sql.v1.AcquireSsrsLeaseContext acquire_ssrs_lease_context = 20;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the acquireSsrsLeaseContext field is set. |

### hasApiWarning()

    public abstract boolean hasApiWarning()

An Admin API warning message.

`.google.cloud.sql.v1.ApiWarning api_warning = 19;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the apiWarning field is set. |

### hasBackupContext()

    public abstract boolean hasBackupContext()

The context for backup operation, if applicable.

`.google.cloud.sql.v1.BackupContext backup_context = 17;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the backupContext field is set. |

### hasEndTime()

    public abstract boolean hasEndTime()

The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.

`.google.protobuf.Timestamp end_time = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the endTime field is set. |

### hasError()

    public abstract boolean hasError()

If errors occurred during processing of this operation, this field will be populated.

`.google.cloud.sql.v1.OperationErrors error = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the error field is set. |

### hasExportContext()

    public abstract boolean hasExportContext()

The context for export operation, if applicable.

`.google.cloud.sql.v1.ExportContext export_context = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the exportContext field is set. |

### hasImportContext()

    public abstract boolean hasImportContext()

The context for import operation, if applicable.

`.google.cloud.sql.v1.ImportContext import_context = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the importContext field is set. |

### hasInsertTime()

    public abstract boolean hasInsertTime()

The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.

`.google.protobuf.Timestamp insert_time = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the insertTime field is set. |

### hasPreCheckMajorVersionUpgradeContext()

    public abstract boolean hasPreCheckMajorVersionUpgradeContext()

This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).

` .google.cloud.sql.v1.PreCheckMajorVersionUpgradeContext pre_check_major_version_upgrade_context = 50; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the preCheckMajorVersionUpgradeContext field is set. |

### hasStartTime()

    public abstract boolean hasStartTime()

The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.

`.google.protobuf.Timestamp start_time = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the startTime field is set. |

### hasSubOperationType()

    public abstract boolean hasSubOperationType()

Optional. The sub operation based on the operation type.

` .google.cloud.sql.v1.SqlSubOperationType sub_operation_type = 48 [(.google.api.field_behavior) = OPTIONAL]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the subOperationType field is set. |