- 1.62.0 (latest)
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public final class Operation extends GeneratedMessageV3 implements OperationOrBuilder
Represents an Operation resource. Google Compute Engine has three Operation resources: * Global * Regional * Zonal You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the globalOperations
resource. - For regional operations, use the regionOperations
resource. - For zonal operations, use the zoneOperations
resource. For more information, read Global, Regional, and Zonal Resources. Note that completed Operation resources have a limited retention period.
Protobuf type google.cloud.compute.v1.Operation
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > OperationImplements
OperationOrBuilderStatic Fields
CLIENT_OPERATION_ID_FIELD_NUMBER
public static final int CLIENT_OPERATION_ID_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
CREATION_TIMESTAMP_FIELD_NUMBER
public static final int CREATION_TIMESTAMP_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
HTTP_ERROR_MESSAGE_FIELD_NUMBER
public static final int HTTP_ERROR_MESSAGE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
HTTP_ERROR_STATUS_CODE_FIELD_NUMBER
public static final int HTTP_ERROR_STATUS_CODE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
INSERT_TIME_FIELD_NUMBER
public static final int INSERT_TIME_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
INSTANCES_BULK_INSERT_OPERATION_METADATA_FIELD_NUMBER
public static final int INSTANCES_BULK_INSERT_OPERATION_METADATA_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
OPERATION_GROUP_ID_FIELD_NUMBER
public static final int OPERATION_GROUP_ID_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
OPERATION_TYPE_FIELD_NUMBER
public static final int OPERATION_TYPE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
PROGRESS_FIELD_NUMBER
public static final int PROGRESS_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
REGION_FIELD_NUMBER
public static final int REGION_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
SELF_LINK_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
SET_COMMON_INSTANCE_METADATA_OPERATION_METADATA_FIELD_NUMBER
public static final int SET_COMMON_INSTANCE_METADATA_OPERATION_METADATA_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 |
STATUS_MESSAGE_FIELD_NUMBER
public static final int STATUS_MESSAGE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
TARGET_ID_FIELD_NUMBER
public static final int TARGET_ID_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
TARGET_LINK_FIELD_NUMBER
public static final int TARGET_LINK_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
USER_FIELD_NUMBER
public static final int USER_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
WARNINGS_FIELD_NUMBER
public static final int WARNINGS_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
ZONE_FIELD_NUMBER
public static final int ZONE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Operation getDefaultInstance()
Returns | |
---|---|
Type | Description |
Operation |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static Operation.Builder newBuilder()
Returns | |
---|---|
Type | Description |
Operation.Builder |
newBuilder(Operation prototype)
public static Operation.Builder newBuilder(Operation prototype)
Parameter | |
---|---|
Name | Description |
prototype |
Operation |
Returns | |
---|---|
Type | Description |
Operation.Builder |
parseDelimitedFrom(InputStream input)
public static Operation parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
Operation |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Operation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Operation |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static Operation parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
Operation |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Operation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Operation |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Operation parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
Operation |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Operation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Operation |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Operation parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
Operation |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Operation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Operation |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static Operation parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
Operation |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Operation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Operation |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Operation parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
Operation |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Operation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Operation |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Operation> parser()
Returns | |
---|---|
Type | Description |
Parser<Operation> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getClientOperationId()
public 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 | |
---|---|
Type | Description |
String |
The clientOperationId. |
getClientOperationIdBytes()
public 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 | |
---|---|
Type | Description |
ByteString |
The bytes for clientOperationId. |
getCreationTimestamp()
public String getCreationTimestamp()
[Deprecated] This field is deprecated.
optional string creation_timestamp = 30525366;
Returns | |
---|---|
Type | Description |
String |
The creationTimestamp. |
getCreationTimestampBytes()
public ByteString getCreationTimestampBytes()
[Deprecated] This field is deprecated.
optional string creation_timestamp = 30525366;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for creationTimestamp. |
getDefaultInstanceForType()
public Operation getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Operation |
getDescription()
public String getDescription()
[Output Only] A textual description of the operation, which is set when the operation is created.
optional string description = 422937596;
Returns | |
---|---|
Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
[Output Only] A textual description of the operation, which is set when the operation is created.
optional string description = 422937596;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for description. |
getEndTime()
public String getEndTime()
[Output Only] The time that this operation was completed. This value is in RFC3339 text format.
optional string end_time = 114938801;
Returns | |
---|---|
Type | Description |
String |
The endTime. |
getEndTimeBytes()
public ByteString getEndTimeBytes()
[Output Only] The time that this operation was completed. This value is in RFC3339 text format.
optional string end_time = 114938801;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for endTime. |
getError()
public 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 | |
---|---|
Type | Description |
Error |
The error. |
getErrorOrBuilder()
public 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 | |
---|---|
Type | Description |
ErrorOrBuilder |
getHttpErrorMessage()
public 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 | |
---|---|
Type | Description |
String |
The httpErrorMessage. |
getHttpErrorMessageBytes()
public 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 | |
---|---|
Type | Description |
ByteString |
The bytes for httpErrorMessage. |
getHttpErrorStatusCode()
public 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 | |
---|---|
Type | Description |
int |
The httpErrorStatusCode. |
getId()
public long getId()
[Output Only] The unique identifier for the operation. This identifier is defined by the server.
optional uint64 id = 3355;
Returns | |
---|---|
Type | Description |
long |
The id. |
getInsertTime()
public String getInsertTime()
[Output Only] The time that this operation was requested. This value is in RFC3339 text format.
optional string insert_time = 433722515;
Returns | |
---|---|
Type | Description |
String |
The insertTime. |
getInsertTimeBytes()
public ByteString getInsertTimeBytes()
[Output Only] The time that this operation was requested. This value is in RFC3339 text format.
optional string insert_time = 433722515;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for insertTime. |
getInstancesBulkInsertOperationMetadata()
public InstancesBulkInsertOperationMetadata getInstancesBulkInsertOperationMetadata()
optional .google.cloud.compute.v1.InstancesBulkInsertOperationMetadata instances_bulk_insert_operation_metadata = 89146177;
Returns | |
---|---|
Type | Description |
InstancesBulkInsertOperationMetadata |
The instancesBulkInsertOperationMetadata. |
getInstancesBulkInsertOperationMetadataOrBuilder()
public InstancesBulkInsertOperationMetadataOrBuilder getInstancesBulkInsertOperationMetadataOrBuilder()
optional .google.cloud.compute.v1.InstancesBulkInsertOperationMetadata instances_bulk_insert_operation_metadata = 89146177;
Returns | |
---|---|
Type | Description |
InstancesBulkInsertOperationMetadataOrBuilder |
getKind()
public String getKind()
[Output Only] Type of the resource. Always compute#operation
for Operation resources.
optional string kind = 3292052;
Returns | |
---|---|
Type | Description |
String |
The kind. |
getKindBytes()
public ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#operation
for Operation resources.
optional string kind = 3292052;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for kind. |
getName()
public String getName()
[Output Only] Name of the operation.
optional string name = 3373707 [(.google.cloud.operation_field) = NAME];
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
[Output Only] Name of the operation.
optional string name = 3373707 [(.google.cloud.operation_field) = NAME];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getOperationGroupId()
public 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 | |
---|---|
Type | Description |
String |
The operationGroupId. |
getOperationGroupIdBytes()
public 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 | |
---|---|
Type | Description |
ByteString |
The bytes for operationGroupId. |
getOperationType()
public String getOperationType()
[Output Only] The type of operation, such as insert
, update
, or delete
, and so on.
optional string operation_type = 177650450;
Returns | |
---|---|
Type | Description |
String |
The operationType. |
getOperationTypeBytes()
public ByteString getOperationTypeBytes()
[Output Only] The type of operation, such as insert
, update
, or delete
, and so on.
optional string operation_type = 177650450;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for operationType. |
getParserForType()
public Parser<Operation> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<Operation> |
getProgress()
public 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 | |
---|---|
Type | Description |
int |
The progress. |
getRegion()
public String getRegion()
[Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
optional string region = 138946292;
Returns | |
---|---|
Type | Description |
String |
The region. |
getRegionBytes()
public ByteString getRegionBytes()
[Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
optional string region = 138946292;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for region. |
getSelfLink()
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
String |
The selfLink. |
getSelfLinkBytes()
public ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for selfLink. |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
getSetCommonInstanceMetadataOperationMetadata()
public SetCommonInstanceMetadataOperationMetadata getSetCommonInstanceMetadataOperationMetadata()
[Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will contain information on all underlying zonal actions and their state.
optional .google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata set_common_instance_metadata_operation_metadata = 490378980;
Returns | |
---|---|
Type | Description |
SetCommonInstanceMetadataOperationMetadata |
The setCommonInstanceMetadataOperationMetadata. |
getSetCommonInstanceMetadataOperationMetadataOrBuilder()
public SetCommonInstanceMetadataOperationMetadataOrBuilder getSetCommonInstanceMetadataOperationMetadataOrBuilder()
[Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will contain information on all underlying zonal actions and their state.
optional .google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata set_common_instance_metadata_operation_metadata = 490378980;
Returns | |
---|---|
Type | Description |
SetCommonInstanceMetadataOperationMetadataOrBuilder |
getStartTime()
public 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 | |
---|---|
Type | Description |
String |
The startTime. |
getStartTimeBytes()
public 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 | |
---|---|
Type | Description |
ByteString |
The bytes for startTime. |
getStatus()
public 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 | |
---|---|
Type | Description |
Operation.Status |
The status. |
getStatusMessage()
public String getStatusMessage()
[Output Only] An optional textual description of the current status of the operation.
optional string status_message = 297428154;
Returns | |
---|---|
Type | Description |
String |
The statusMessage. |
getStatusMessageBytes()
public ByteString getStatusMessageBytes()
[Output Only] An optional textual description of the current status of the operation.
optional string status_message = 297428154;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for statusMessage. |
getStatusValue()
public 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 | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for status. |
getTargetId()
public long getTargetId()
[Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
optional uint64 target_id = 258165385;
Returns | |
---|---|
Type | Description |
long |
The targetId. |
getTargetLink()
public 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 | |
---|---|
Type | Description |
String |
The targetLink. |
getTargetLinkBytes()
public 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 | |
---|---|
Type | Description |
ByteString |
The bytes for targetLink. |
getUser()
public String getUser()
[Output Only] User who requested the operation, for example: user@example.com
or alice_smith_identifier (global/workforcePools/example-com-us-employees)
.
optional string user = 3599307;
Returns | |
---|---|
Type | Description |
String |
The user. |
getUserBytes()
public ByteString getUserBytes()
[Output Only] User who requested the operation, for example: user@example.com
or alice_smith_identifier (global/workforcePools/example-com-us-employees)
.
optional string user = 3599307;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for user. |
getWarnings(int index)
public 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 | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Warnings |
getWarningsCount()
public 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 | |
---|---|
Type | Description |
int |
getWarningsList()
public 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 | |
---|---|
Type | Description |
List<Warnings> |
getWarningsOrBuilder(int index)
public 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 | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
WarningsOrBuilder |
getWarningsOrBuilderList()
public 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 | |
---|---|
Type | Description |
List<? extends com.google.cloud.compute.v1.WarningsOrBuilder> |
getZone()
public 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 | |
---|---|
Type | Description |
String |
The zone. |
getZoneBytes()
public 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 | |
---|---|
Type | Description |
ByteString |
The bytes for zone. |
hasClientOperationId()
public 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 | |
---|---|
Type | Description |
boolean |
Whether the clientOperationId field is set. |
hasCreationTimestamp()
public boolean hasCreationTimestamp()
[Deprecated] This field is deprecated.
optional string creation_timestamp = 30525366;
Returns | |
---|---|
Type | Description |
boolean |
Whether the creationTimestamp field is set. |
hasDescription()
public boolean hasDescription()
[Output Only] A textual description of the operation, which is set when the operation is created.
optional string description = 422937596;
Returns | |
---|---|
Type | Description |
boolean |
Whether the description field is set. |
hasEndTime()
public boolean hasEndTime()
[Output Only] The time that this operation was completed. This value is in RFC3339 text format.
optional string end_time = 114938801;
Returns | |
---|---|
Type | Description |
boolean |
Whether the endTime field is set. |
hasError()
public 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 | |
---|---|
Type | Description |
boolean |
Whether the error field is set. |
hasHttpErrorMessage()
public 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 | |
---|---|
Type | Description |
boolean |
Whether the httpErrorMessage field is set. |
hasHttpErrorStatusCode()
public 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 | |
---|---|
Type | Description |
boolean |
Whether the httpErrorStatusCode field is set. |
hasId()
public boolean hasId()
[Output Only] The unique identifier for the operation. This identifier is defined by the server.
optional uint64 id = 3355;
Returns | |
---|---|
Type | Description |
boolean |
Whether the id field is set. |
hasInsertTime()
public boolean hasInsertTime()
[Output Only] The time that this operation was requested. This value is in RFC3339 text format.
optional string insert_time = 433722515;
Returns | |
---|---|
Type | Description |
boolean |
Whether the insertTime field is set. |
hasInstancesBulkInsertOperationMetadata()
public boolean hasInstancesBulkInsertOperationMetadata()
optional .google.cloud.compute.v1.InstancesBulkInsertOperationMetadata instances_bulk_insert_operation_metadata = 89146177;
Returns | |
---|---|
Type | Description |
boolean |
Whether the instancesBulkInsertOperationMetadata field is set. |
hasKind()
public boolean hasKind()
[Output Only] Type of the resource. Always compute#operation
for Operation resources.
optional string kind = 3292052;
Returns | |
---|---|
Type | Description |
boolean |
Whether the kind field is set. |
hasName()
public boolean hasName()
[Output Only] Name of the operation.
optional string name = 3373707 [(.google.cloud.operation_field) = NAME];
Returns | |
---|---|
Type | Description |
boolean |
Whether the name field is set. |
hasOperationGroupId()
public 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 | |
---|---|
Type | Description |
boolean |
Whether the operationGroupId field is set. |
hasOperationType()
public boolean hasOperationType()
[Output Only] The type of operation, such as insert
, update
, or delete
, and so on.
optional string operation_type = 177650450;
Returns | |
---|---|
Type | Description |
boolean |
Whether the operationType field is set. |
hasProgress()
public 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 | |
---|---|
Type | Description |
boolean |
Whether the progress field is set. |
hasRegion()
public boolean hasRegion()
[Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
optional string region = 138946292;
Returns | |
---|---|
Type | Description |
boolean |
Whether the region field is set. |
hasSelfLink()
public boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
boolean |
Whether the selfLink field is set. |
hasSetCommonInstanceMetadataOperationMetadata()
public boolean hasSetCommonInstanceMetadataOperationMetadata()
[Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will contain information on all underlying zonal actions and their state.
optional .google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadata set_common_instance_metadata_operation_metadata = 490378980;
Returns | |
---|---|
Type | Description |
boolean |
Whether the setCommonInstanceMetadataOperationMetadata field is set. |
hasStartTime()
public 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 | |
---|---|
Type | Description |
boolean |
Whether the startTime field is set. |
hasStatus()
public 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 | |
---|---|
Type | Description |
boolean |
Whether the status field is set. |
hasStatusMessage()
public boolean hasStatusMessage()
[Output Only] An optional textual description of the current status of the operation.
optional string status_message = 297428154;
Returns | |
---|---|
Type | Description |
boolean |
Whether the statusMessage field is set. |
hasTargetId()
public boolean hasTargetId()
[Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
optional uint64 target_id = 258165385;
Returns | |
---|---|
Type | Description |
boolean |
Whether the targetId field is set. |
hasTargetLink()
public 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 | |
---|---|
Type | Description |
boolean |
Whether the targetLink field is set. |
hasUser()
public boolean hasUser()
[Output Only] User who requested the operation, for example: user@example.com
or alice_smith_identifier (global/workforcePools/example-com-us-employees)
.
optional string user = 3599307;
Returns | |
---|---|
Type | Description |
boolean |
Whether the user field is set. |
hasZone()
public 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 | |
---|---|
Type | Description |
boolean |
Whether the zone field is set. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public Operation.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
Operation.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Operation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
Operation.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public Operation.Builder toBuilder()
Returns | |
---|---|
Type | Description |
Operation.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |