public static final class Operation.Builder extends GeneratedMessage.Builder<Operation.Builder> implements OperationOrBuilderAn Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
Protobuf type google.cloud.sql.v1.Operation
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Operation.BuilderImplements
OperationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Operation build()| Returns | |
|---|---|
| Type | Description |
Operation |
|
buildPartial()
public Operation buildPartial()| Returns | |
|---|---|
| Type | Description |
Operation |
|
clear()
public Operation.Builder clear()| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
clearAcquireSsrsLeaseContext()
public Operation.Builder clearAcquireSsrsLeaseContext()The context for acquire SSRS lease operation, if applicable.
.google.cloud.sql.v1.AcquireSsrsLeaseContext acquire_ssrs_lease_context = 20;
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
clearApiWarning()
public Operation.Builder clearApiWarning()An Admin API warning message.
.google.cloud.sql.v1.ApiWarning api_warning = 19;
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
clearBackupContext()
public Operation.Builder clearBackupContext()The context for backup operation, if applicable.
.google.cloud.sql.v1.BackupContext backup_context = 17;
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
clearEndTime()
public Operation.Builder clearEndTime() The time this operation finished in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp end_time = 7;
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
clearError()
public Operation.Builder clearError()If errors occurred during processing of this operation, this field will be populated.
.google.cloud.sql.v1.OperationErrors error = 8;
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
clearExportContext()
public Operation.Builder clearExportContext()The context for export operation, if applicable.
.google.cloud.sql.v1.ExportContext export_context = 11;
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
clearImportContext()
public Operation.Builder clearImportContext()The context for import operation, if applicable.
.google.cloud.sql.v1.ImportContext import_context = 10;
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
clearInsertTime()
public Operation.Builder clearInsertTime() The time this operation was enqueued in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp insert_time = 5;
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
clearKind()
public Operation.Builder clearKind() This is always sql#operation.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
clearName()
public Operation.Builder clearName()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 |
Operation.Builder |
This builder for chaining. |
clearOperationType()
public Operation.Builder clearOperationType()The type of the operation. Valid values are:
CREATEDELETEUPDATERESTARTIMPORTEXPORTBACKUP_VOLUMERESTORE_VOLUMECREATE_USERDELETE_USERCREATE_DATABASEDELETE_DATABASE
.google.cloud.sql.v1.Operation.SqlOperationType operation_type = 9;
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
clearPreCheckMajorVersionUpgradeContext()
public Operation.Builder clearPreCheckMajorVersionUpgradeContext()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 |
Operation.Builder |
|
clearSelfLink()
public Operation.Builder clearSelfLink()The URI of this resource.
string self_link = 14;
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
clearStartTime()
public Operation.Builder clearStartTime() The time this operation actually started in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp start_time = 6;
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
clearStatus()
public Operation.Builder clearStatus()The status of an operation.
.google.cloud.sql.v1.Operation.SqlOperationStatus status = 3;
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
clearSubOperationType()
public Operation.Builder clearSubOperationType()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 |
Operation.Builder |
|
clearTargetId()
public Operation.Builder clearTargetId()Name of the resource on which this operation runs.
string target_id = 13;
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
clearTargetLink()
public Operation.Builder clearTargetLink()string target_link = 2;
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
clearTargetProject()
public Operation.Builder clearTargetProject()The project ID of the target instance related to this operation.
string target_project = 15;
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
clearUser()
public Operation.Builder clearUser()The email address of the user who initiated this operation.
string user = 4;
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
getAcquireSsrsLeaseContext()
public AcquireSsrsLeaseContext getAcquireSsrsLeaseContext()The context for acquire SSRS lease operation, if applicable.
.google.cloud.sql.v1.AcquireSsrsLeaseContext acquire_ssrs_lease_context = 20;
| Returns | |
|---|---|
| Type | Description |
AcquireSsrsLeaseContext |
The acquireSsrsLeaseContext. |
getAcquireSsrsLeaseContextBuilder()
public AcquireSsrsLeaseContext.Builder getAcquireSsrsLeaseContextBuilder()The context for acquire SSRS lease operation, if applicable.
.google.cloud.sql.v1.AcquireSsrsLeaseContext acquire_ssrs_lease_context = 20;
| Returns | |
|---|---|
| Type | Description |
AcquireSsrsLeaseContext.Builder |
|
getAcquireSsrsLeaseContextOrBuilder()
public AcquireSsrsLeaseContextOrBuilder getAcquireSsrsLeaseContextOrBuilder()The context for acquire SSRS lease operation, if applicable.
.google.cloud.sql.v1.AcquireSsrsLeaseContext acquire_ssrs_lease_context = 20;
| Returns | |
|---|---|
| Type | Description |
AcquireSsrsLeaseContextOrBuilder |
|
getApiWarning()
public ApiWarning getApiWarning()An Admin API warning message.
.google.cloud.sql.v1.ApiWarning api_warning = 19;
| Returns | |
|---|---|
| Type | Description |
ApiWarning |
The apiWarning. |
getApiWarningBuilder()
public ApiWarning.Builder getApiWarningBuilder()An Admin API warning message.
.google.cloud.sql.v1.ApiWarning api_warning = 19;
| Returns | |
|---|---|
| Type | Description |
ApiWarning.Builder |
|
getApiWarningOrBuilder()
public ApiWarningOrBuilder getApiWarningOrBuilder()An Admin API warning message.
.google.cloud.sql.v1.ApiWarning api_warning = 19;
| Returns | |
|---|---|
| Type | Description |
ApiWarningOrBuilder |
|
getBackupContext()
public BackupContext getBackupContext()The context for backup operation, if applicable.
.google.cloud.sql.v1.BackupContext backup_context = 17;
| Returns | |
|---|---|
| Type | Description |
BackupContext |
The backupContext. |
getBackupContextBuilder()
public BackupContext.Builder getBackupContextBuilder()The context for backup operation, if applicable.
.google.cloud.sql.v1.BackupContext backup_context = 17;
| Returns | |
|---|---|
| Type | Description |
BackupContext.Builder |
|
getBackupContextOrBuilder()
public BackupContextOrBuilder getBackupContextOrBuilder()The context for backup operation, if applicable.
.google.cloud.sql.v1.BackupContext backup_context = 17;
| Returns | |
|---|---|
| Type | Description |
BackupContextOrBuilder |
|
getDefaultInstanceForType()
public Operation getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Operation |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEndTime()
public Timestamp getEndTime() The time this operation finished in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp end_time = 7;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The endTime. |
getEndTimeBuilder()
public Timestamp.Builder getEndTimeBuilder() The time this operation finished in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp end_time = 7;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getEndTimeOrBuilder()
public TimestampOrBuilder getEndTimeOrBuilder() The time this operation finished in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp end_time = 7;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getError()
public 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 |
OperationErrors |
The error. |
getErrorBuilder()
public OperationErrors.Builder getErrorBuilder()If errors occurred during processing of this operation, this field will be populated.
.google.cloud.sql.v1.OperationErrors error = 8;
| Returns | |
|---|---|
| Type | Description |
OperationErrors.Builder |
|
getErrorOrBuilder()
public 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 |
OperationErrorsOrBuilder |
|
getExportContext()
public ExportContext getExportContext()The context for export operation, if applicable.
.google.cloud.sql.v1.ExportContext export_context = 11;
| Returns | |
|---|---|
| Type | Description |
ExportContext |
The exportContext. |
getExportContextBuilder()
public ExportContext.Builder getExportContextBuilder()The context for export operation, if applicable.
.google.cloud.sql.v1.ExportContext export_context = 11;
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
getExportContextOrBuilder()
public ExportContextOrBuilder getExportContextOrBuilder()The context for export operation, if applicable.
.google.cloud.sql.v1.ExportContext export_context = 11;
| Returns | |
|---|---|
| Type | Description |
ExportContextOrBuilder |
|
getImportContext()
public ImportContext getImportContext()The context for import operation, if applicable.
.google.cloud.sql.v1.ImportContext import_context = 10;
| Returns | |
|---|---|
| Type | Description |
ImportContext |
The importContext. |
getImportContextBuilder()
public ImportContext.Builder getImportContextBuilder()The context for import operation, if applicable.
.google.cloud.sql.v1.ImportContext import_context = 10;
| Returns | |
|---|---|
| Type | Description |
ImportContext.Builder |
|
getImportContextOrBuilder()
public ImportContextOrBuilder getImportContextOrBuilder()The context for import operation, if applicable.
.google.cloud.sql.v1.ImportContext import_context = 10;
| Returns | |
|---|---|
| Type | Description |
ImportContextOrBuilder |
|
getInsertTime()
public Timestamp getInsertTime() The time this operation was enqueued in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp insert_time = 5;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The insertTime. |
getInsertTimeBuilder()
public Timestamp.Builder getInsertTimeBuilder() The time this operation was enqueued in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp insert_time = 5;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getInsertTimeOrBuilder()
public TimestampOrBuilder getInsertTimeOrBuilder() The time this operation was enqueued in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp insert_time = 5;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getKind()
public String getKind() This is always sql#operation.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The kind. |
getKindBytes()
public ByteString getKindBytes() This is always sql#operation.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kind. |
getName()
public 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 |
String |
The name. |
getNameBytes()
public 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 |
ByteString |
The bytes for name. |
getOperationType()
public Operation.SqlOperationType getOperationType()The type of the operation. Valid values are:
CREATEDELETEUPDATERESTARTIMPORTEXPORTBACKUP_VOLUMERESTORE_VOLUMECREATE_USERDELETE_USERCREATE_DATABASEDELETE_DATABASE
.google.cloud.sql.v1.Operation.SqlOperationType operation_type = 9;
| Returns | |
|---|---|
| Type | Description |
Operation.SqlOperationType |
The operationType. |
getOperationTypeValue()
public int getOperationTypeValue()The type of the operation. Valid values are:
CREATEDELETEUPDATERESTARTIMPORTEXPORTBACKUP_VOLUMERESTORE_VOLUMECREATE_USERDELETE_USERCREATE_DATABASEDELETE_DATABASE
.google.cloud.sql.v1.Operation.SqlOperationType operation_type = 9;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for operationType. |
getPreCheckMajorVersionUpgradeContext()
public 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 |
PreCheckMajorVersionUpgradeContext |
The preCheckMajorVersionUpgradeContext. |
getPreCheckMajorVersionUpgradeContextBuilder()
public PreCheckMajorVersionUpgradeContext.Builder getPreCheckMajorVersionUpgradeContextBuilder()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 |
PreCheckMajorVersionUpgradeContext.Builder |
|
getPreCheckMajorVersionUpgradeContextOrBuilder()
public 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 |
PreCheckMajorVersionUpgradeContextOrBuilder |
|
getSelfLink()
public String getSelfLink()The URI of this resource.
string self_link = 14;
| Returns | |
|---|---|
| Type | Description |
String |
The selfLink. |
getSelfLinkBytes()
public ByteString getSelfLinkBytes()The URI of this resource.
string self_link = 14;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for selfLink. |
getStartTime()
public Timestamp getStartTime() The time this operation actually started in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp start_time = 6;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The startTime. |
getStartTimeBuilder()
public Timestamp.Builder getStartTimeBuilder() The time this operation actually started in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp start_time = 6;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getStartTimeOrBuilder()
public TimestampOrBuilder getStartTimeOrBuilder() The time this operation actually started in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp start_time = 6;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getStatus()
public Operation.SqlOperationStatus getStatus()The status of an operation.
.google.cloud.sql.v1.Operation.SqlOperationStatus status = 3;
| Returns | |
|---|---|
| Type | Description |
Operation.SqlOperationStatus |
The status. |
getStatusValue()
public int getStatusValue()The status of an operation.
.google.cloud.sql.v1.Operation.SqlOperationStatus status = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for status. |
getSubOperationType()
public 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 |
SqlSubOperationType |
The subOperationType. |
getSubOperationTypeBuilder()
public SqlSubOperationType.Builder getSubOperationTypeBuilder()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 |
SqlSubOperationType.Builder |
|
getSubOperationTypeOrBuilder()
public 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 |
SqlSubOperationTypeOrBuilder |
|
getTargetId()
public String getTargetId()Name of the resource on which this operation runs.
string target_id = 13;
| Returns | |
|---|---|
| Type | Description |
String |
The targetId. |
getTargetIdBytes()
public ByteString getTargetIdBytes()Name of the resource on which this operation runs.
string target_id = 13;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for targetId. |
getTargetLink()
public String getTargetLink()string target_link = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The targetLink. |
getTargetLinkBytes()
public ByteString getTargetLinkBytes()string target_link = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for targetLink. |
getTargetProject()
public String getTargetProject()The project ID of the target instance related to this operation.
string target_project = 15;
| Returns | |
|---|---|
| Type | Description |
String |
The targetProject. |
getTargetProjectBytes()
public ByteString getTargetProjectBytes()The project ID of the target instance related to this operation.
string target_project = 15;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for targetProject. |
getUser()
public String getUser()The email address of the user who initiated this operation.
string user = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The user. |
getUserBytes()
public ByteString getUserBytes()The email address of the user who initiated this operation.
string user = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for user. |
hasAcquireSsrsLeaseContext()
public boolean hasAcquireSsrsLeaseContext()The context for acquire SSRS lease operation, if applicable.
.google.cloud.sql.v1.AcquireSsrsLeaseContext acquire_ssrs_lease_context = 20;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the acquireSsrsLeaseContext field is set. |
hasApiWarning()
public boolean hasApiWarning()An Admin API warning message.
.google.cloud.sql.v1.ApiWarning api_warning = 19;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the apiWarning field is set. |
hasBackupContext()
public boolean hasBackupContext()The context for backup operation, if applicable.
.google.cloud.sql.v1.BackupContext backup_context = 17;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the backupContext field is set. |
hasEndTime()
public boolean hasEndTime() The time this operation finished in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp end_time = 7;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the endTime field is set. |
hasError()
public 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 |
boolean |
Whether the error field is set. |
hasExportContext()
public boolean hasExportContext()The context for export operation, if applicable.
.google.cloud.sql.v1.ExportContext export_context = 11;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the exportContext field is set. |
hasImportContext()
public boolean hasImportContext()The context for import operation, if applicable.
.google.cloud.sql.v1.ImportContext import_context = 10;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the importContext field is set. |
hasInsertTime()
public boolean hasInsertTime() The time this operation was enqueued in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp insert_time = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the insertTime field is set. |
hasPreCheckMajorVersionUpgradeContext()
public 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 |
boolean |
Whether the preCheckMajorVersionUpgradeContext field is set. |
hasStartTime()
public boolean hasStartTime() The time this operation actually started in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp start_time = 6;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the startTime field is set. |
hasSubOperationType()
public 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 |
boolean |
Whether the subOperationType field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAcquireSsrsLeaseContext(AcquireSsrsLeaseContext value)
public Operation.Builder mergeAcquireSsrsLeaseContext(AcquireSsrsLeaseContext value)The context for acquire SSRS lease operation, if applicable.
.google.cloud.sql.v1.AcquireSsrsLeaseContext acquire_ssrs_lease_context = 20;
| Parameter | |
|---|---|
| Name | Description |
value |
AcquireSsrsLeaseContext |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
mergeApiWarning(ApiWarning value)
public Operation.Builder mergeApiWarning(ApiWarning value)An Admin API warning message.
.google.cloud.sql.v1.ApiWarning api_warning = 19;
| Parameter | |
|---|---|
| Name | Description |
value |
ApiWarning |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
mergeBackupContext(BackupContext value)
public Operation.Builder mergeBackupContext(BackupContext value)The context for backup operation, if applicable.
.google.cloud.sql.v1.BackupContext backup_context = 17;
| Parameter | |
|---|---|
| Name | Description |
value |
BackupContext |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
mergeEndTime(Timestamp value)
public Operation.Builder mergeEndTime(Timestamp value) The time this operation finished in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp end_time = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
mergeError(OperationErrors value)
public Operation.Builder mergeError(OperationErrors value)If errors occurred during processing of this operation, this field will be populated.
.google.cloud.sql.v1.OperationErrors error = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
OperationErrors |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
mergeExportContext(ExportContext value)
public Operation.Builder mergeExportContext(ExportContext value)The context for export operation, if applicable.
.google.cloud.sql.v1.ExportContext export_context = 11;
| Parameter | |
|---|---|
| Name | Description |
value |
ExportContext |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
mergeFrom(Operation other)
public Operation.Builder mergeFrom(Operation other)| Parameter | |
|---|---|
| Name | Description |
other |
Operation |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Operation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Operation.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
mergeImportContext(ImportContext value)
public Operation.Builder mergeImportContext(ImportContext value)The context for import operation, if applicable.
.google.cloud.sql.v1.ImportContext import_context = 10;
| Parameter | |
|---|---|
| Name | Description |
value |
ImportContext |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
mergeInsertTime(Timestamp value)
public Operation.Builder mergeInsertTime(Timestamp value) The time this operation was enqueued in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp insert_time = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
mergePreCheckMajorVersionUpgradeContext(PreCheckMajorVersionUpgradeContext value)
public Operation.Builder mergePreCheckMajorVersionUpgradeContext(PreCheckMajorVersionUpgradeContext value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
PreCheckMajorVersionUpgradeContext |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
mergeStartTime(Timestamp value)
public Operation.Builder mergeStartTime(Timestamp value) The time this operation actually started in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp start_time = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
mergeSubOperationType(SqlSubOperationType value)
public Operation.Builder mergeSubOperationType(SqlSubOperationType value)Optional. The sub operation based on the operation type.
.google.cloud.sql.v1.SqlSubOperationType sub_operation_type = 48 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
SqlSubOperationType |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setAcquireSsrsLeaseContext(AcquireSsrsLeaseContext value)
public Operation.Builder setAcquireSsrsLeaseContext(AcquireSsrsLeaseContext value)The context for acquire SSRS lease operation, if applicable.
.google.cloud.sql.v1.AcquireSsrsLeaseContext acquire_ssrs_lease_context = 20;
| Parameter | |
|---|---|
| Name | Description |
value |
AcquireSsrsLeaseContext |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setAcquireSsrsLeaseContext(AcquireSsrsLeaseContext.Builder builderForValue)
public Operation.Builder setAcquireSsrsLeaseContext(AcquireSsrsLeaseContext.Builder builderForValue)The context for acquire SSRS lease operation, if applicable.
.google.cloud.sql.v1.AcquireSsrsLeaseContext acquire_ssrs_lease_context = 20;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AcquireSsrsLeaseContext.Builder |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setApiWarning(ApiWarning value)
public Operation.Builder setApiWarning(ApiWarning value)An Admin API warning message.
.google.cloud.sql.v1.ApiWarning api_warning = 19;
| Parameter | |
|---|---|
| Name | Description |
value |
ApiWarning |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setApiWarning(ApiWarning.Builder builderForValue)
public Operation.Builder setApiWarning(ApiWarning.Builder builderForValue)An Admin API warning message.
.google.cloud.sql.v1.ApiWarning api_warning = 19;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ApiWarning.Builder |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setBackupContext(BackupContext value)
public Operation.Builder setBackupContext(BackupContext value)The context for backup operation, if applicable.
.google.cloud.sql.v1.BackupContext backup_context = 17;
| Parameter | |
|---|---|
| Name | Description |
value |
BackupContext |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setBackupContext(BackupContext.Builder builderForValue)
public Operation.Builder setBackupContext(BackupContext.Builder builderForValue)The context for backup operation, if applicable.
.google.cloud.sql.v1.BackupContext backup_context = 17;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BackupContext.Builder |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setEndTime(Timestamp value)
public Operation.Builder setEndTime(Timestamp value) The time this operation finished in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp end_time = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setEndTime(Timestamp.Builder builderForValue)
public Operation.Builder setEndTime(Timestamp.Builder builderForValue) The time this operation finished in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp end_time = 7;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setError(OperationErrors value)
public Operation.Builder setError(OperationErrors value)If errors occurred during processing of this operation, this field will be populated.
.google.cloud.sql.v1.OperationErrors error = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
OperationErrors |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setError(OperationErrors.Builder builderForValue)
public Operation.Builder setError(OperationErrors.Builder builderForValue)If errors occurred during processing of this operation, this field will be populated.
.google.cloud.sql.v1.OperationErrors error = 8;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
OperationErrors.Builder |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setExportContext(ExportContext value)
public Operation.Builder setExportContext(ExportContext value)The context for export operation, if applicable.
.google.cloud.sql.v1.ExportContext export_context = 11;
| Parameter | |
|---|---|
| Name | Description |
value |
ExportContext |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setExportContext(ExportContext.Builder builderForValue)
public Operation.Builder setExportContext(ExportContext.Builder builderForValue)The context for export operation, if applicable.
.google.cloud.sql.v1.ExportContext export_context = 11;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ExportContext.Builder |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setImportContext(ImportContext value)
public Operation.Builder setImportContext(ImportContext value)The context for import operation, if applicable.
.google.cloud.sql.v1.ImportContext import_context = 10;
| Parameter | |
|---|---|
| Name | Description |
value |
ImportContext |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setImportContext(ImportContext.Builder builderForValue)
public Operation.Builder setImportContext(ImportContext.Builder builderForValue)The context for import operation, if applicable.
.google.cloud.sql.v1.ImportContext import_context = 10;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ImportContext.Builder |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setInsertTime(Timestamp value)
public Operation.Builder setInsertTime(Timestamp value) The time this operation was enqueued in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp insert_time = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setInsertTime(Timestamp.Builder builderForValue)
public Operation.Builder setInsertTime(Timestamp.Builder builderForValue) The time this operation was enqueued in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp insert_time = 5;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setKind(String value)
public Operation.Builder setKind(String value) This is always sql#operation.
string kind = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe kind to set. |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
setKindBytes(ByteString value)
public Operation.Builder setKindBytes(ByteString value) This is always sql#operation.
string kind = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for kind to set. |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
setName(String value)
public Operation.Builder setName(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Operation.Builder setNameBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
setOperationType(Operation.SqlOperationType value)
public Operation.Builder setOperationType(Operation.SqlOperationType value)The type of the operation. Valid values are:
CREATEDELETEUPDATERESTARTIMPORTEXPORTBACKUP_VOLUMERESTORE_VOLUMECREATE_USERDELETE_USERCREATE_DATABASEDELETE_DATABASE
.google.cloud.sql.v1.Operation.SqlOperationType operation_type = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
Operation.SqlOperationTypeThe operationType to set. |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
setOperationTypeValue(int value)
public Operation.Builder setOperationTypeValue(int value)The type of the operation. Valid values are:
CREATEDELETEUPDATERESTARTIMPORTEXPORTBACKUP_VOLUMERESTORE_VOLUMECREATE_USERDELETE_USERCREATE_DATABASEDELETE_DATABASE
.google.cloud.sql.v1.Operation.SqlOperationType operation_type = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for operationType to set. |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
setPreCheckMajorVersionUpgradeContext(PreCheckMajorVersionUpgradeContext value)
public Operation.Builder setPreCheckMajorVersionUpgradeContext(PreCheckMajorVersionUpgradeContext value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
PreCheckMajorVersionUpgradeContext |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setPreCheckMajorVersionUpgradeContext(PreCheckMajorVersionUpgradeContext.Builder builderForValue)
public Operation.Builder setPreCheckMajorVersionUpgradeContext(PreCheckMajorVersionUpgradeContext.Builder builderForValue)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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
PreCheckMajorVersionUpgradeContext.Builder |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setSelfLink(String value)
public Operation.Builder setSelfLink(String value)The URI of this resource.
string self_link = 14;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe selfLink to set. |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
setSelfLinkBytes(ByteString value)
public Operation.Builder setSelfLinkBytes(ByteString value)The URI of this resource.
string self_link = 14;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for selfLink to set. |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
setStartTime(Timestamp value)
public Operation.Builder setStartTime(Timestamp value) The time this operation actually started in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp start_time = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setStartTime(Timestamp.Builder builderForValue)
public Operation.Builder setStartTime(Timestamp.Builder builderForValue) The time this operation actually started in UTC timezone in RFC
3339 format, for example
2012-11-15T16:19:00.094Z.
.google.protobuf.Timestamp start_time = 6;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setStatus(Operation.SqlOperationStatus value)
public Operation.Builder setStatus(Operation.SqlOperationStatus value)The status of an operation.
.google.cloud.sql.v1.Operation.SqlOperationStatus status = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Operation.SqlOperationStatusThe status to set. |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
setStatusValue(int value)
public Operation.Builder setStatusValue(int value)The status of an operation.
.google.cloud.sql.v1.Operation.SqlOperationStatus status = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for status to set. |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
setSubOperationType(SqlSubOperationType value)
public Operation.Builder setSubOperationType(SqlSubOperationType value)Optional. The sub operation based on the operation type.
.google.cloud.sql.v1.SqlSubOperationType sub_operation_type = 48 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
SqlSubOperationType |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setSubOperationType(SqlSubOperationType.Builder builderForValue)
public Operation.Builder setSubOperationType(SqlSubOperationType.Builder builderForValue)Optional. The sub operation based on the operation type.
.google.cloud.sql.v1.SqlSubOperationType sub_operation_type = 48 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SqlSubOperationType.Builder |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
|
setTargetId(String value)
public Operation.Builder setTargetId(String value)Name of the resource on which this operation runs.
string target_id = 13;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe targetId to set. |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
setTargetIdBytes(ByteString value)
public Operation.Builder setTargetIdBytes(ByteString value)Name of the resource on which this operation runs.
string target_id = 13;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for targetId to set. |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
setTargetLink(String value)
public Operation.Builder setTargetLink(String value)string target_link = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe targetLink to set. |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
setTargetLinkBytes(ByteString value)
public Operation.Builder setTargetLinkBytes(ByteString value)string target_link = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for targetLink to set. |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
setTargetProject(String value)
public Operation.Builder setTargetProject(String value)The project ID of the target instance related to this operation.
string target_project = 15;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe targetProject to set. |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
setTargetProjectBytes(ByteString value)
public Operation.Builder setTargetProjectBytes(ByteString value)The project ID of the target instance related to this operation.
string target_project = 15;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for targetProject to set. |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
setUser(String value)
public Operation.Builder setUser(String value)The email address of the user who initiated this operation.
string user = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe user to set. |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |
setUserBytes(ByteString value)
public Operation.Builder setUserBytes(ByteString value)The email address of the user who initiated this operation.
string user = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for user to set. |
| Returns | |
|---|---|
| Type | Description |
Operation.Builder |
This builder for chaining. |