Package com.google.cloud.compute.v1
Class Operation
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.compute.v1.Operation
-
- All Implemented Interfaces:
OperationOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class Operation extends com.google.protobuf.GeneratedMessageV3 implements OperationOrBuilder
Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/v1/globalOperations) * [Regional](/compute/docs/reference/rest/v1/regionOperations) * [Zonal](/compute/docs/reference/rest/v1/zoneOperations) 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 `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources.
Protobuf typegoogle.cloud.compute.v1.Operation
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Operation.Builder
Represents an Operation resource.static class
Operation.Status
[Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
CLIENT_OPERATION_ID_FIELD_NUMBER
static int
CREATION_TIMESTAMP_FIELD_NUMBER
static int
DESCRIPTION_FIELD_NUMBER
static int
END_TIME_FIELD_NUMBER
static int
ERROR_FIELD_NUMBER
static int
HTTP_ERROR_MESSAGE_FIELD_NUMBER
static int
HTTP_ERROR_STATUS_CODE_FIELD_NUMBER
static int
ID_FIELD_NUMBER
static int
INSERT_TIME_FIELD_NUMBER
static int
KIND_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
OPERATION_GROUP_ID_FIELD_NUMBER
static int
OPERATION_TYPE_FIELD_NUMBER
static int
PROGRESS_FIELD_NUMBER
static int
REGION_FIELD_NUMBER
static int
SELF_LINK_FIELD_NUMBER
static int
START_TIME_FIELD_NUMBER
static int
STATUS_FIELD_NUMBER
static int
STATUS_MESSAGE_FIELD_NUMBER
static int
TARGET_ID_FIELD_NUMBER
static int
TARGET_LINK_FIELD_NUMBER
static int
USER_FIELD_NUMBER
static int
WARNINGS_FIELD_NUMBER
static int
ZONE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getClientOperationId()
[Output Only] The value of `requestId` if you provided it in the request.com.google.protobuf.ByteString
getClientOperationIdBytes()
[Output Only] The value of `requestId` if you provided it in the request.String
getCreationTimestamp()
[Deprecated] This field is deprecated.com.google.protobuf.ByteString
getCreationTimestampBytes()
[Deprecated] This field is deprecated.static Operation
getDefaultInstance()
Operation
getDefaultInstanceForType()
String
getDescription()
[Output Only] A textual description of the operation, which is set when the operation is created.com.google.protobuf.ByteString
getDescriptionBytes()
[Output Only] A textual description of the operation, which is set when the operation is created.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getEndTime()
[Output Only] The time that this operation was completed.com.google.protobuf.ByteString
getEndTimeBytes()
[Output Only] The time that this operation was completed.Error
getError()
[Output Only] If errors are generated during processing of the operation, this field will be populated.ErrorOrBuilder
getErrorOrBuilder()
[Output Only] If errors are generated during processing of the operation, this field will be populated.String
getHttpErrorMessage()
[Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`.com.google.protobuf.ByteString
getHttpErrorMessageBytes()
[Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`.int
getHttpErrorStatusCode()
[Output Only] If the operation fails, this field contains the HTTP error status code that was returned.long
getId()
[Output Only] The unique identifier for the operation.String
getInsertTime()
[Output Only] The time that this operation was requested.com.google.protobuf.ByteString
getInsertTimeBytes()
[Output Only] The time that this operation was requested.String
getKind()
[Output Only] Type of the resource.com.google.protobuf.ByteString
getKindBytes()
[Output Only] Type of the resource.String
getName()
[Output Only] Name of the operation.com.google.protobuf.ByteString
getNameBytes()
[Output Only] Name of the operation.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.com.google.protobuf.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.String
getOperationType()
[Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.com.google.protobuf.ByteString
getOperationTypeBytes()
[Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.com.google.protobuf.Parser<Operation>
getParserForType()
int
getProgress()
[Output Only] An optional progress indicator that ranges from 0 to 100.String
getRegion()
[Output Only] The URL of the region where the operation resides.com.google.protobuf.ByteString
getRegionBytes()
[Output Only] The URL of the region where the operation resides.String
getSelfLink()
[Output Only] Server-defined URL for the resource.com.google.protobuf.ByteString
getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.int
getSerializedSize()
String
getStartTime()
[Output Only] The time that this operation was started by the server.com.google.protobuf.ByteString
getStartTimeBytes()
[Output Only] The time that this operation was started by the server.Operation.Status
getStatus()
[Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.String
getStatusMessage()
[Output Only] An optional textual description of the current status of the operation.com.google.protobuf.ByteString
getStatusMessageBytes()
[Output Only] An optional textual description of the current status of the operation.int
getStatusValue()
[Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.long
getTargetId()
[Output Only] The unique target ID, which identifies a specific incarnation of the target resource.String
getTargetLink()
[Output Only] The URL of the resource that the operation modifies.com.google.protobuf.ByteString
getTargetLinkBytes()
[Output Only] The URL of the resource that the operation modifies.String
getUser()
[Output Only] User who requested the operation, for example: `user@example.com`.com.google.protobuf.ByteString
getUserBytes()
[Output Only] User who requested the operation, for example: `user@example.com`.Warnings
getWarnings(int index)
[Output Only] If warning messages are generated during processing of the operation, this field will be populated.int
getWarningsCount()
[Output Only] If warning messages are generated during processing of the operation, this field will be populated.List<Warnings>
getWarningsList()
[Output Only] If warning messages are generated during processing of the operation, this field will be populated.WarningsOrBuilder
getWarningsOrBuilder(int index)
[Output Only] If warning messages are generated during processing of the operation, this field will be populated.List<? extends WarningsOrBuilder>
getWarningsOrBuilderList()
[Output Only] If warning messages are generated during processing of the operation, this field will be populated.String
getZone()
[Output Only] The URL of the zone where the operation resides.com.google.protobuf.ByteString
getZoneBytes()
[Output Only] The URL of the zone where the operation resides.boolean
hasClientOperationId()
[Output Only] The value of `requestId` if you provided it in the request.boolean
hasCreationTimestamp()
[Deprecated] This field is deprecated.boolean
hasDescription()
[Output Only] A textual description of the operation, which is set when the operation is created.boolean
hasEndTime()
[Output Only] The time that this operation was completed.boolean
hasError()
[Output Only] If errors are generated during processing of the operation, this field will be populated.int
hashCode()
boolean
hasHttpErrorMessage()
[Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`.boolean
hasHttpErrorStatusCode()
[Output Only] If the operation fails, this field contains the HTTP error status code that was returned.boolean
hasId()
[Output Only] The unique identifier for the operation.boolean
hasInsertTime()
[Output Only] The time that this operation was requested.boolean
hasKind()
[Output Only] Type of the resource.boolean
hasName()
[Output Only] Name of the operation.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.boolean
hasOperationType()
[Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.boolean
hasProgress()
[Output Only] An optional progress indicator that ranges from 0 to 100.boolean
hasRegion()
[Output Only] The URL of the region where the operation resides.boolean
hasSelfLink()
[Output Only] Server-defined URL for the resource.boolean
hasStartTime()
[Output Only] The time that this operation was started by the server.boolean
hasStatus()
[Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.boolean
hasStatusMessage()
[Output Only] An optional textual description of the current status of the operation.boolean
hasTargetId()
[Output Only] The unique target ID, which identifies a specific incarnation of the target resource.boolean
hasTargetLink()
[Output Only] The URL of the resource that the operation modifies.boolean
hasUser()
[Output Only] User who requested the operation, for example: `user@example.com`.boolean
hasZone()
[Output Only] The URL of the zone where the operation resides.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Operation.Builder
newBuilder()
static Operation.Builder
newBuilder(Operation prototype)
Operation.Builder
newBuilderForType()
protected Operation.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Operation
parseDelimitedFrom(InputStream input)
static Operation
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Operation
parseFrom(byte[] data)
static Operation
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Operation
parseFrom(com.google.protobuf.ByteString data)
static Operation
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Operation
parseFrom(com.google.protobuf.CodedInputStream input)
static Operation
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Operation
parseFrom(InputStream input)
static Operation
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Operation
parseFrom(ByteBuffer data)
static Operation
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Operation>
parser()
Operation.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
CLIENT_OPERATION_ID_FIELD_NUMBER
public static final int CLIENT_OPERATION_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATION_TIMESTAMP_FIELD_NUMBER
public static final int CREATION_TIMESTAMP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HTTP_ERROR_MESSAGE_FIELD_NUMBER
public static final int HTTP_ERROR_MESSAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HTTP_ERROR_STATUS_CODE_FIELD_NUMBER
public static final int HTTP_ERROR_STATUS_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INSERT_TIME_FIELD_NUMBER
public static final int INSERT_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OPERATION_GROUP_ID_FIELD_NUMBER
public static final int OPERATION_GROUP_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OPERATION_TYPE_FIELD_NUMBER
public static final int OPERATION_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROGRESS_FIELD_NUMBER
public static final int PROGRESS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REGION_FIELD_NUMBER
public static final int REGION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SELF_LINK_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATUS_MESSAGE_FIELD_NUMBER
public static final int STATUS_MESSAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TARGET_ID_FIELD_NUMBER
public static final int TARGET_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TARGET_LINK_FIELD_NUMBER
public static final int TARGET_LINK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
USER_FIELD_NUMBER
public static final int USER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WARNINGS_FIELD_NUMBER
public static final int WARNINGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ZONE_FIELD_NUMBER
public static final int ZONE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
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;
- Specified by:
hasClientOperationId
in interfaceOperationOrBuilder
- Returns:
- Whether the clientOperationId field is set.
-
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;
- Specified by:
getClientOperationId
in interfaceOperationOrBuilder
- Returns:
- The clientOperationId.
-
getClientOperationIdBytes
public com.google.protobuf.ByteString getClientOperationIdBytes()
[Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
optional string client_operation_id = 297240295;
- Specified by:
getClientOperationIdBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for clientOperationId.
-
hasCreationTimestamp
public boolean hasCreationTimestamp()
[Deprecated] This field is deprecated.
optional string creation_timestamp = 30525366;
- Specified by:
hasCreationTimestamp
in interfaceOperationOrBuilder
- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
public String getCreationTimestamp()
[Deprecated] This field is deprecated.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestamp
in interfaceOperationOrBuilder
- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()
[Deprecated] This field is deprecated.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestampBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for creationTimestamp.
-
hasDescription
public boolean hasDescription()
[Output Only] A textual description of the operation, which is set when the operation is created.
optional string description = 422937596;
- Specified by:
hasDescription
in interfaceOperationOrBuilder
- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
[Output Only] A textual description of the operation, which is set when the operation is created.
optional string description = 422937596;
- Specified by:
getDescription
in interfaceOperationOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
[Output Only] A textual description of the operation, which is set when the operation is created.
optional string description = 422937596;
- Specified by:
getDescriptionBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for description.
-
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;
- Specified by:
hasEndTime
in interfaceOperationOrBuilder
- Returns:
- Whether the endTime field is set.
-
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;
- Specified by:
getEndTime
in interfaceOperationOrBuilder
- Returns:
- The endTime.
-
getEndTimeBytes
public com.google.protobuf.ByteString getEndTimeBytes()
[Output Only] The time that this operation was completed. This value is in RFC3339 text format.
optional string end_time = 114938801;
- Specified by:
getEndTimeBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for endTime.
-
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;
- Specified by:
hasError
in interfaceOperationOrBuilder
- Returns:
- Whether the error field is set.
-
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;
- Specified by:
getError
in interfaceOperationOrBuilder
- Returns:
- 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;
- Specified by:
getErrorOrBuilder
in interfaceOperationOrBuilder
-
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];
- Specified by:
hasHttpErrorMessage
in interfaceOperationOrBuilder
- Returns:
- Whether the httpErrorMessage field is set.
-
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];
- Specified by:
getHttpErrorMessage
in interfaceOperationOrBuilder
- Returns:
- The httpErrorMessage.
-
getHttpErrorMessageBytes
public com.google.protobuf.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];
- Specified by:
getHttpErrorMessageBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for httpErrorMessage.
-
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];
- Specified by:
hasHttpErrorStatusCode
in interfaceOperationOrBuilder
- Returns:
- Whether the httpErrorStatusCode field is set.
-
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];
- Specified by:
getHttpErrorStatusCode
in interfaceOperationOrBuilder
- Returns:
- The httpErrorStatusCode.
-
hasId
public boolean hasId()
[Output Only] The unique identifier for the operation. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
hasId
in interfaceOperationOrBuilder
- Returns:
- Whether the id field is set.
-
getId
public long getId()
[Output Only] The unique identifier for the operation. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
getId
in interfaceOperationOrBuilder
- Returns:
- The id.
-
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;
- Specified by:
hasInsertTime
in interfaceOperationOrBuilder
- Returns:
- Whether the insertTime field is set.
-
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;
- Specified by:
getInsertTime
in interfaceOperationOrBuilder
- Returns:
- The insertTime.
-
getInsertTimeBytes
public com.google.protobuf.ByteString getInsertTimeBytes()
[Output Only] The time that this operation was requested. This value is in RFC3339 text format.
optional string insert_time = 433722515;
- Specified by:
getInsertTimeBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for insertTime.
-
hasKind
public boolean hasKind()
[Output Only] Type of the resource. Always `compute#operation` for Operation resources.
optional string kind = 3292052;
- Specified by:
hasKind
in interfaceOperationOrBuilder
- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
[Output Only] Type of the resource. Always `compute#operation` for Operation resources.
optional string kind = 3292052;
- Specified by:
getKind
in interfaceOperationOrBuilder
- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always `compute#operation` for Operation resources.
optional string kind = 3292052;
- Specified by:
getKindBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for kind.
-
hasName
public boolean hasName()
[Output Only] Name of the operation.
optional string name = 3373707 [(.google.cloud.operation_field) = NAME];
- Specified by:
hasName
in interfaceOperationOrBuilder
- Returns:
- Whether the name field is set.
-
getName
public String getName()
[Output Only] Name of the operation.
optional string name = 3373707 [(.google.cloud.operation_field) = NAME];
- Specified by:
getName
in interfaceOperationOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
[Output Only] Name of the operation.
optional string name = 3373707 [(.google.cloud.operation_field) = NAME];
- Specified by:
getNameBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for name.
-
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;
- Specified by:
hasOperationGroupId
in interfaceOperationOrBuilder
- Returns:
- Whether the operationGroupId field is set.
-
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;
- Specified by:
getOperationGroupId
in interfaceOperationOrBuilder
- Returns:
- The operationGroupId.
-
getOperationGroupIdBytes
public com.google.protobuf.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;
- Specified by:
getOperationGroupIdBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for operationGroupId.
-
hasOperationType
public boolean hasOperationType()
[Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
optional string operation_type = 177650450;
- Specified by:
hasOperationType
in interfaceOperationOrBuilder
- Returns:
- Whether the operationType field is set.
-
getOperationType
public String getOperationType()
[Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
optional string operation_type = 177650450;
- Specified by:
getOperationType
in interfaceOperationOrBuilder
- Returns:
- The operationType.
-
getOperationTypeBytes
public com.google.protobuf.ByteString getOperationTypeBytes()
[Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
optional string operation_type = 177650450;
- Specified by:
getOperationTypeBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for operationType.
-
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;
- Specified by:
hasProgress
in interfaceOperationOrBuilder
- Returns:
- Whether the progress field is set.
-
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;
- Specified by:
getProgress
in interfaceOperationOrBuilder
- Returns:
- The progress.
-
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;
- Specified by:
hasRegion
in interfaceOperationOrBuilder
- Returns:
- Whether the region field is set.
-
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;
- Specified by:
getRegion
in interfaceOperationOrBuilder
- Returns:
- The region.
-
getRegionBytes
public com.google.protobuf.ByteString getRegionBytes()
[Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
optional string region = 138946292;
- Specified by:
getRegionBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for region.
-
hasSelfLink
public boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
hasSelfLink
in interfaceOperationOrBuilder
- Returns:
- Whether the selfLink field is set.
-
getSelfLink
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
getSelfLink
in interfaceOperationOrBuilder
- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
getSelfLinkBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for selfLink.
-
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;
- Specified by:
hasStartTime
in interfaceOperationOrBuilder
- Returns:
- Whether the startTime field is set.
-
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;
- Specified by:
getStartTime
in interfaceOperationOrBuilder
- Returns:
- The startTime.
-
getStartTimeBytes
public com.google.protobuf.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;
- Specified by:
getStartTimeBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for startTime.
-
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];
- Specified by:
hasStatus
in interfaceOperationOrBuilder
- Returns:
- Whether the status field is set.
-
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];
- Specified by:
getStatusValue
in interfaceOperationOrBuilder
- Returns:
- The enum numeric value on the wire for status.
-
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];
- Specified by:
getStatus
in interfaceOperationOrBuilder
- Returns:
- The status.
-
hasStatusMessage
public boolean hasStatusMessage()
[Output Only] An optional textual description of the current status of the operation.
optional string status_message = 297428154;
- Specified by:
hasStatusMessage
in interfaceOperationOrBuilder
- Returns:
- Whether the statusMessage field is set.
-
getStatusMessage
public String getStatusMessage()
[Output Only] An optional textual description of the current status of the operation.
optional string status_message = 297428154;
- Specified by:
getStatusMessage
in interfaceOperationOrBuilder
- Returns:
- The statusMessage.
-
getStatusMessageBytes
public com.google.protobuf.ByteString getStatusMessageBytes()
[Output Only] An optional textual description of the current status of the operation.
optional string status_message = 297428154;
- Specified by:
getStatusMessageBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for statusMessage.
-
hasTargetId
public boolean hasTargetId()
[Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
optional uint64 target_id = 258165385;
- Specified by:
hasTargetId
in interfaceOperationOrBuilder
- Returns:
- Whether the targetId field is set.
-
getTargetId
public long getTargetId()
[Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
optional uint64 target_id = 258165385;
- Specified by:
getTargetId
in interfaceOperationOrBuilder
- Returns:
- The targetId.
-
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;
- Specified by:
hasTargetLink
in interfaceOperationOrBuilder
- Returns:
- Whether the targetLink field is set.
-
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;
- Specified by:
getTargetLink
in interfaceOperationOrBuilder
- Returns:
- The targetLink.
-
getTargetLinkBytes
public com.google.protobuf.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;
- Specified by:
getTargetLinkBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for targetLink.
-
hasUser
public boolean hasUser()
[Output Only] User who requested the operation, for example: `user@example.com`.
optional string user = 3599307;
- Specified by:
hasUser
in interfaceOperationOrBuilder
- Returns:
- Whether the user field is set.
-
getUser
public String getUser()
[Output Only] User who requested the operation, for example: `user@example.com`.
optional string user = 3599307;
- Specified by:
getUser
in interfaceOperationOrBuilder
- Returns:
- The user.
-
getUserBytes
public com.google.protobuf.ByteString getUserBytes()
[Output Only] User who requested the operation, for example: `user@example.com`.
optional string user = 3599307;
- Specified by:
getUserBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for user.
-
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;
- Specified by:
getWarningsList
in interfaceOperationOrBuilder
-
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;
- Specified by:
getWarningsOrBuilderList
in interfaceOperationOrBuilder
-
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;
- Specified by:
getWarningsCount
in interfaceOperationOrBuilder
-
getWarnings
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;
- Specified by:
getWarnings
in interfaceOperationOrBuilder
-
getWarningsOrBuilder
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;
- Specified by:
getWarningsOrBuilder
in interfaceOperationOrBuilder
-
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;
- Specified by:
hasZone
in interfaceOperationOrBuilder
- Returns:
- Whether the zone field is set.
-
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;
- Specified by:
getZone
in interfaceOperationOrBuilder
- Returns:
- The zone.
-
getZoneBytes
public com.google.protobuf.ByteString getZoneBytes()
[Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
optional string zone = 3744684;
- Specified by:
getZoneBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for zone.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Operation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Operation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Operation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Operation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Operation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Operation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Operation parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Operation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Operation parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Operation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Operation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Operation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Operation.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Operation.Builder newBuilder()
-
newBuilder
public static Operation.Builder newBuilder(Operation prototype)
-
toBuilder
public Operation.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Operation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Operation getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Operation> parser()
-
getParserForType
public com.google.protobuf.Parser<Operation> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Operation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-