Interface OperationOrBuilder (1.33.0)

public interface OperationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getClientOperationId()

public abstract String getClientOperationId()

[Output Only] The value of requestId if you provided it in the request. Not present otherwise.

optional string client_operation_id = 297240295;

Returns
TypeDescription
String

The clientOperationId.

getClientOperationIdBytes()

public abstract ByteString getClientOperationIdBytes()

[Output Only] The value of requestId if you provided it in the request. Not present otherwise.

optional string client_operation_id = 297240295;

Returns
TypeDescription
ByteString

The bytes for clientOperationId.

getCreationTimestamp()

public abstract String getCreationTimestamp()

[Deprecated] This field is deprecated.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
String

The creationTimestamp.

getCreationTimestampBytes()

public abstract ByteString getCreationTimestampBytes()

[Deprecated] This field is deprecated.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
ByteString

The bytes for creationTimestamp.

getDescription()

public abstract String getDescription()

[Output Only] A textual description of the operation, which is set when the operation is created.

optional string description = 422937596;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public abstract ByteString getDescriptionBytes()

[Output Only] A textual description of the operation, which is set when the operation is created.

optional string description = 422937596;

Returns
TypeDescription
ByteString

The bytes for description.

getEndTime()

public abstract String getEndTime()

[Output Only] The time that this operation was completed. This value is in RFC3339 text format.

optional string end_time = 114938801;

Returns
TypeDescription
String

The endTime.

getEndTimeBytes()

public abstract ByteString getEndTimeBytes()

[Output Only] The time that this operation was completed. This value is in RFC3339 text format.

optional string end_time = 114938801;

Returns
TypeDescription
ByteString

The bytes for endTime.

getError()

public abstract Error getError()

[Output Only] If errors are generated during processing of the operation, this field will be populated.

optional .google.cloud.compute.v1.Error error = 96784904;

Returns
TypeDescription
Error

The error.

getErrorOrBuilder()

public abstract ErrorOrBuilder getErrorOrBuilder()

[Output Only] If errors are generated during processing of the operation, this field will be populated.

optional .google.cloud.compute.v1.Error error = 96784904;

Returns
TypeDescription
ErrorOrBuilder

getHttpErrorMessage()

public abstract String getHttpErrorMessage()

[Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.

optional string http_error_message = 202521945 [(.google.cloud.operation_field) = ERROR_MESSAGE];

Returns
TypeDescription
String

The httpErrorMessage.

getHttpErrorMessageBytes()

public abstract ByteString getHttpErrorMessageBytes()

[Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.

optional string http_error_message = 202521945 [(.google.cloud.operation_field) = ERROR_MESSAGE];

Returns
TypeDescription
ByteString

The bytes for httpErrorMessage.

getHttpErrorStatusCode()

public abstract int getHttpErrorStatusCode()

[Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.

optional int32 http_error_status_code = 312345196 [(.google.cloud.operation_field) = ERROR_CODE];

Returns
TypeDescription
int

The httpErrorStatusCode.

getId()

public abstract long getId()

[Output Only] The unique identifier for the operation. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
TypeDescription
long

The id.

getInsertTime()

public abstract String getInsertTime()

[Output Only] The time that this operation was requested. This value is in RFC3339 text format.

optional string insert_time = 433722515;

Returns
TypeDescription
String

The insertTime.

getInsertTimeBytes()

public abstract ByteString getInsertTimeBytes()

[Output Only] The time that this operation was requested. This value is in RFC3339 text format.

optional string insert_time = 433722515;

Returns
TypeDescription
ByteString

The bytes for insertTime.

getKind()

public abstract String getKind()

[Output Only] Type of the resource. Always compute#operation for Operation resources.

optional string kind = 3292052;

Returns
TypeDescription
String

The kind.

getKindBytes()

public abstract ByteString getKindBytes()

[Output Only] Type of the resource. Always compute#operation for Operation resources.

optional string kind = 3292052;

Returns
TypeDescription
ByteString

The bytes for kind.

getName()

public abstract String getName()

[Output Only] Name of the operation.

optional string name = 3373707 [(.google.cloud.operation_field) = NAME];

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

[Output Only] Name of the operation.

optional string name = 3373707 [(.google.cloud.operation_field) = NAME];

Returns
TypeDescription
ByteString

The bytes for name.

getOperationGroupId()

public abstract String getOperationGroupId()

[Output Only] An ID that represents a group of operations, such as when a group of operations results from a bulkInsert API request.

optional string operation_group_id = 40171187;

Returns
TypeDescription
String

The operationGroupId.

getOperationGroupIdBytes()

public abstract ByteString getOperationGroupIdBytes()

[Output Only] An ID that represents a group of operations, such as when a group of operations results from a bulkInsert API request.

optional string operation_group_id = 40171187;

Returns
TypeDescription
ByteString

The bytes for operationGroupId.

getOperationType()

public abstract String getOperationType()

[Output Only] The type of operation, such as insert, update, or delete, and so on.

optional string operation_type = 177650450;

Returns
TypeDescription
String

The operationType.

getOperationTypeBytes()

public abstract ByteString getOperationTypeBytes()

[Output Only] The type of operation, such as insert, update, or delete, and so on.

optional string operation_type = 177650450;

Returns
TypeDescription
ByteString

The bytes for operationType.

getProgress()

public abstract int getProgress()

[Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.

optional int32 progress = 72663597;

Returns
TypeDescription
int

The progress.

getRegion()

public abstract String getRegion()

[Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.

optional string region = 138946292;

Returns
TypeDescription
String

The region.

getRegionBytes()

public abstract ByteString getRegionBytes()

[Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.

optional string region = 138946292;

Returns
TypeDescription
ByteString

The bytes for region.

public abstract String getSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
String

The selfLink.

getSelfLinkBytes()

public abstract ByteString getSelfLinkBytes()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
ByteString

The bytes for selfLink.

getStartTime()

public abstract String getStartTime()

[Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.

optional string start_time = 37467274;

Returns
TypeDescription
String

The startTime.

getStartTimeBytes()

public abstract ByteString getStartTimeBytes()

[Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.

optional string start_time = 37467274;

Returns
TypeDescription
ByteString

The bytes for startTime.

getStatus()

public abstract Operation.Status getStatus()

[Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.

optional .google.cloud.compute.v1.Operation.Status status = 181260274 [(.google.cloud.operation_field) = STATUS];

Returns
TypeDescription
Operation.Status

The status.

getStatusMessage()

public abstract String getStatusMessage()

[Output Only] An optional textual description of the current status of the operation.

optional string status_message = 297428154;

Returns
TypeDescription
String

The statusMessage.

getStatusMessageBytes()

public abstract ByteString getStatusMessageBytes()

[Output Only] An optional textual description of the current status of the operation.

optional string status_message = 297428154;

Returns
TypeDescription
ByteString

The bytes for statusMessage.

getStatusValue()

public abstract int getStatusValue()

[Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.

optional .google.cloud.compute.v1.Operation.Status status = 181260274 [(.google.cloud.operation_field) = STATUS];

Returns
TypeDescription
int

The enum numeric value on the wire for status.

getTargetId()

public abstract long getTargetId()

[Output Only] The unique target ID, which identifies a specific incarnation of the target resource.

optional uint64 target_id = 258165385;

Returns
TypeDescription
long

The targetId.

public abstract String getTargetLink()

[Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.

optional string target_link = 62671336;

Returns
TypeDescription
String

The targetLink.

getTargetLinkBytes()

public abstract ByteString getTargetLinkBytes()

[Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.

optional string target_link = 62671336;

Returns
TypeDescription
ByteString

The bytes for targetLink.

getUser()

public abstract String getUser()

[Output Only] User who requested the operation, for example: user@example.com.

optional string user = 3599307;

Returns
TypeDescription
String

The user.

getUserBytes()

public abstract ByteString getUserBytes()

[Output Only] User who requested the operation, for example: user@example.com.

optional string user = 3599307;

Returns
TypeDescription
ByteString

The bytes for user.

getWarnings(int index)

public abstract Warnings getWarnings(int index)

[Output Only] If warning messages are generated during processing of the operation, this field will be populated.

repeated .google.cloud.compute.v1.Warnings warnings = 498091095;

Parameter
NameDescription
indexint
Returns
TypeDescription
Warnings

getWarningsCount()

public abstract int getWarningsCount()

[Output Only] If warning messages are generated during processing of the operation, this field will be populated.

repeated .google.cloud.compute.v1.Warnings warnings = 498091095;

Returns
TypeDescription
int

getWarningsList()

public abstract List<Warnings> getWarningsList()

[Output Only] If warning messages are generated during processing of the operation, this field will be populated.

repeated .google.cloud.compute.v1.Warnings warnings = 498091095;

Returns
TypeDescription
List<Warnings>

getWarningsOrBuilder(int index)

public abstract WarningsOrBuilder getWarningsOrBuilder(int index)

[Output Only] If warning messages are generated during processing of the operation, this field will be populated.

repeated .google.cloud.compute.v1.Warnings warnings = 498091095;

Parameter
NameDescription
indexint
Returns
TypeDescription
WarningsOrBuilder

getWarningsOrBuilderList()

public abstract List<? extends WarningsOrBuilder> getWarningsOrBuilderList()

[Output Only] If warning messages are generated during processing of the operation, this field will be populated.

repeated .google.cloud.compute.v1.Warnings warnings = 498091095;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.WarningsOrBuilder>

getZone()

public abstract String getZone()

[Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.

optional string zone = 3744684;

Returns
TypeDescription
String

The zone.

getZoneBytes()

public abstract ByteString getZoneBytes()

[Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.

optional string zone = 3744684;

Returns
TypeDescription
ByteString

The bytes for zone.

hasClientOperationId()

public abstract boolean hasClientOperationId()

[Output Only] The value of requestId if you provided it in the request. Not present otherwise.

optional string client_operation_id = 297240295;

Returns
TypeDescription
boolean

Whether the clientOperationId field is set.

hasCreationTimestamp()

public abstract boolean hasCreationTimestamp()

[Deprecated] This field is deprecated.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
boolean

Whether the creationTimestamp field is set.

hasDescription()

public abstract boolean hasDescription()

[Output Only] A textual description of the operation, which is set when the operation is created.

optional string description = 422937596;

Returns
TypeDescription
boolean

Whether the description field is set.

hasEndTime()

public abstract boolean hasEndTime()

[Output Only] The time that this operation was completed. This value is in RFC3339 text format.

optional string end_time = 114938801;

Returns
TypeDescription
boolean

Whether the endTime field is set.

hasError()

public abstract boolean hasError()

[Output Only] If errors are generated during processing of the operation, this field will be populated.

optional .google.cloud.compute.v1.Error error = 96784904;

Returns
TypeDescription
boolean

Whether the error field is set.

hasHttpErrorMessage()

public abstract boolean hasHttpErrorMessage()

[Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.

optional string http_error_message = 202521945 [(.google.cloud.operation_field) = ERROR_MESSAGE];

Returns
TypeDescription
boolean

Whether the httpErrorMessage field is set.

hasHttpErrorStatusCode()

public abstract boolean hasHttpErrorStatusCode()

[Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.

optional int32 http_error_status_code = 312345196 [(.google.cloud.operation_field) = ERROR_CODE];

Returns
TypeDescription
boolean

Whether the httpErrorStatusCode field is set.

hasId()

public abstract boolean hasId()

[Output Only] The unique identifier for the operation. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
TypeDescription
boolean

Whether the id field is set.

hasInsertTime()

public abstract boolean hasInsertTime()

[Output Only] The time that this operation was requested. This value is in RFC3339 text format.

optional string insert_time = 433722515;

Returns
TypeDescription
boolean

Whether the insertTime field is set.

hasKind()

public abstract boolean hasKind()

[Output Only] Type of the resource. Always compute#operation for Operation resources.

optional string kind = 3292052;

Returns
TypeDescription
boolean

Whether the kind field is set.

hasName()

public abstract boolean hasName()

[Output Only] Name of the operation.

optional string name = 3373707 [(.google.cloud.operation_field) = NAME];

Returns
TypeDescription
boolean

Whether the name field is set.

hasOperationGroupId()

public abstract boolean hasOperationGroupId()

[Output Only] An ID that represents a group of operations, such as when a group of operations results from a bulkInsert API request.

optional string operation_group_id = 40171187;

Returns
TypeDescription
boolean

Whether the operationGroupId field is set.

hasOperationType()

public abstract boolean hasOperationType()

[Output Only] The type of operation, such as insert, update, or delete, and so on.

optional string operation_type = 177650450;

Returns
TypeDescription
boolean

Whether the operationType field is set.

hasProgress()

public abstract boolean hasProgress()

[Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.

optional int32 progress = 72663597;

Returns
TypeDescription
boolean

Whether the progress field is set.

hasRegion()

public abstract boolean hasRegion()

[Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.

optional string region = 138946292;

Returns
TypeDescription
boolean

Whether the region field is set.

public abstract boolean hasSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
boolean

Whether the selfLink field is set.

hasStartTime()

public abstract boolean hasStartTime()

[Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.

optional string start_time = 37467274;

Returns
TypeDescription
boolean

Whether the startTime field is set.

hasStatus()

public abstract boolean hasStatus()

[Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.

optional .google.cloud.compute.v1.Operation.Status status = 181260274 [(.google.cloud.operation_field) = STATUS];

Returns
TypeDescription
boolean

Whether the status field is set.

hasStatusMessage()

public abstract boolean hasStatusMessage()

[Output Only] An optional textual description of the current status of the operation.

optional string status_message = 297428154;

Returns
TypeDescription
boolean

Whether the statusMessage field is set.

hasTargetId()

public abstract boolean hasTargetId()

[Output Only] The unique target ID, which identifies a specific incarnation of the target resource.

optional uint64 target_id = 258165385;

Returns
TypeDescription
boolean

Whether the targetId field is set.

public abstract boolean hasTargetLink()

[Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.

optional string target_link = 62671336;

Returns
TypeDescription
boolean

Whether the targetLink field is set.

hasUser()

public abstract boolean hasUser()

[Output Only] User who requested the operation, for example: user@example.com.

optional string user = 3599307;

Returns
TypeDescription
boolean

Whether the user field is set.

hasZone()

public abstract boolean hasZone()

[Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.

optional string zone = 3744684;

Returns
TypeDescription
boolean

Whether the zone field is set.