public final class Operation extends GeneratedMessageV3 implements OperationOrBuilder
This resource represents a long-running operation that is the result of a network API call.Protobuf type
google.longrunning.Operation| Modifier and Type | Class and Description |
|---|---|
static class |
Operation.Builder
This resource represents a long-running operation that is the result of a
network API call.
|
static class |
Operation.ResultCase |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
DONE_FIELD_NUMBER |
static int |
ERROR_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
RESPONSE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static Operation |
getDefaultInstance() |
Operation |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
boolean |
getDone()
If the value is `false`, it means the operation is still in progress.
|
Status |
getError()
The error result of the operation in case of failure or cancellation.
|
StatusOrBuilder |
getErrorOrBuilder()
The error result of the operation in case of failure or cancellation.
|
Any |
getMetadata()
Service-specific metadata associated with the operation.
|
AnyOrBuilder |
getMetadataOrBuilder()
Service-specific metadata associated with the operation.
|
java.lang.String |
getName()
The server-assigned name, which is only unique within the same service that
originally returns it.
|
ByteString |
getNameBytes()
The server-assigned name, which is only unique within the same service that
originally returns it.
|
Parser<Operation> |
getParserForType() |
Any |
getResponse()
The normal response of the operation in case of success.
|
AnyOrBuilder |
getResponseOrBuilder()
The normal response of the operation in case of success.
|
Operation.ResultCase |
getResultCase() |
int |
getSerializedSize() |
UnknownFieldSet |
getUnknownFields() |
boolean |
hasError()
The error result of the operation in case of failure or cancellation.
|
int |
hashCode() |
boolean |
hasMetadata()
Service-specific metadata associated with the operation.
|
boolean |
hasResponse()
The normal response of the operation in case of success.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Operation.Builder |
newBuilder() |
static Operation.Builder |
newBuilder(Operation prototype) |
Operation.Builder |
newBuilderForType() |
protected Operation.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static Operation |
parseDelimitedFrom(java.io.InputStream input) |
static Operation |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Operation |
parseFrom(byte[] data) |
static Operation |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Operation |
parseFrom(java.nio.ByteBuffer data) |
static Operation |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Operation |
parseFrom(ByteString data) |
static Operation |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Operation |
parseFrom(CodedInputStream input) |
static Operation |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Operation |
parseFrom(java.io.InputStream input) |
static Operation |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Operation> |
parser() |
Operation.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int NAME_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
public static final int DONE_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
public static final int RESPONSE_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public Operation.ResultCase getResultCase()
getResultCase in interface OperationOrBuilderpublic java.lang.String getName()
The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should have the format of `operations/some/unique/name`.
string name = 1;getName in interface OperationOrBuilderpublic ByteString getNameBytes()
The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should have the format of `operations/some/unique/name`.
string name = 1;getNameBytes in interface OperationOrBuilderpublic boolean hasMetadata()
Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
.google.protobuf.Any metadata = 2;hasMetadata in interface OperationOrBuilderpublic Any getMetadata()
Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
.google.protobuf.Any metadata = 2;getMetadata in interface OperationOrBuilderpublic AnyOrBuilder getMetadataOrBuilder()
Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
.google.protobuf.Any metadata = 2;getMetadataOrBuilder in interface OperationOrBuilderpublic boolean getDone()
If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
bool done = 3;getDone in interface OperationOrBuilderpublic boolean hasError()
The error result of the operation in case of failure or cancellation.
.google.rpc.Status error = 4;hasError in interface OperationOrBuilderpublic Status getError()
The error result of the operation in case of failure or cancellation.
.google.rpc.Status error = 4;getError in interface OperationOrBuilderpublic StatusOrBuilder getErrorOrBuilder()
The error result of the operation in case of failure or cancellation.
.google.rpc.Status error = 4;getErrorOrBuilder in interface OperationOrBuilderpublic boolean hasResponse()
The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
.google.protobuf.Any response = 5;hasResponse in interface OperationOrBuilderpublic Any getResponse()
The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
.google.protobuf.Any response = 5;getResponse in interface OperationOrBuilderpublic AnyOrBuilder getResponseOrBuilder()
The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
.google.protobuf.Any response = 5;getResponseOrBuilder in interface OperationOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static Operation parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Operation parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Operation parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Operation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Operation parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Operation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Operation parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Operation parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Operation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Operation parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Operation parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Operation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Operation.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Operation.Builder newBuilder()
public static Operation.Builder newBuilder(Operation prototype)
public Operation.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Operation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Operation getDefaultInstance()
public Parser<Operation> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Operation getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder