Package com.google.longrunning
Class Operation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Operation.Builder>
com.google.longrunning.Operation.Builder
- All Implemented Interfaces:
OperationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Operation
public static final class Operation.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Operation.Builder>
implements OperationOrBuilder
This resource represents a long-running operation that is the result of a network API call.Protobuf type
google.longrunning.Operation-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()If the value is `false`, it means the operation is still in progress.The error result of the operation in case of failure or cancellation.Service-specific metadata associated with the operation.The server-assigned name, which is only unique within the same service that originally returns it.The normal, successful response of the operation.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleangetDone()If the value is `false`, it means the operation is still in progress.getError()The error result of the operation in case of failure or cancellation.The error result of the operation in case of failure or cancellation.The error result of the operation in case of failure or cancellation.com.google.protobuf.AnyService-specific metadata associated with the operation.com.google.protobuf.Any.BuilderService-specific metadata associated with the operation.com.google.protobuf.AnyOrBuilderService-specific metadata associated with the operation.getName()The server-assigned name, which is only unique within the same service that originally returns it.com.google.protobuf.ByteStringThe server-assigned name, which is only unique within the same service that originally returns it.com.google.protobuf.AnyThe normal, successful response of the operation.com.google.protobuf.Any.BuilderThe normal, successful response of the operation.com.google.protobuf.AnyOrBuilderThe normal, successful response of the operation.booleanhasError()The error result of the operation in case of failure or cancellation.booleanService-specific metadata associated with the operation.booleanThe normal, successful response of the operation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeError(Status value) The error result of the operation in case of failure or cancellation.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMetadata(com.google.protobuf.Any value) Service-specific metadata associated with the operation.mergeResponse(com.google.protobuf.Any value) The normal, successful response of the operation.setDone(boolean value) If the value is `false`, it means the operation is still in progress.The error result of the operation in case of failure or cancellation.setError(Status.Builder builderForValue) The error result of the operation in case of failure or cancellation.setMetadata(com.google.protobuf.Any value) Service-specific metadata associated with the operation.setMetadata(com.google.protobuf.Any.Builder builderForValue) Service-specific metadata associated with the operation.The server-assigned name, which is only unique within the same service that originally returns it.setNameBytes(com.google.protobuf.ByteString value) The server-assigned name, which is only unique within the same service that originally returns it.setResponse(com.google.protobuf.Any value) The normal, successful response of the operation.setResponse(com.google.protobuf.Any.Builder builderForValue) The normal, successful response of the operation.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Operation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Operation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Operation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Operation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Operation.Builder>
-
mergeFrom
public Operation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Operation.Builder>- Throws:
IOException
-
getResultCase
- Specified by:
getResultCasein interfaceOperationOrBuilder
-
clearResult
-
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 be a resource name ending with `operations/{unique_id}`.string name = 1;- Specified by:
getNamein interfaceOperationOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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 be a resource name ending with `operations/{unique_id}`.string name = 1;- Specified by:
getNameBytesin interfaceOperationOrBuilder- Returns:
- The bytes for name.
-
setName
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 be a resource name ending with `operations/{unique_id}`.string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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 be a resource name ending with `operations/{unique_id}`.string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
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 be a resource name ending with `operations/{unique_id}`.string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasMetadata
public 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;- Specified by:
hasMetadatain interfaceOperationOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
public com.google.protobuf.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;- Specified by:
getMetadatain interfaceOperationOrBuilder- Returns:
- The metadata.
-
setMetadata
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; -
setMetadata
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; -
mergeMetadata
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; -
clearMetadata
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; -
getMetadataBuilder
public com.google.protobuf.Any.Builder getMetadataBuilder()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
public com.google.protobuf.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;- Specified by:
getMetadataOrBuilderin interfaceOperationOrBuilder
-
getDone
public 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;- Specified by:
getDonein interfaceOperationOrBuilder- Returns:
- The done.
-
setDone
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;- Parameters:
value- The done to set.- Returns:
- This builder for chaining.
-
clearDone
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;- Returns:
- This builder for chaining.
-
hasError
public boolean hasError()The error result of the operation in case of failure or cancellation.
.google.rpc.Status error = 4;- Specified by:
hasErrorin interfaceOperationOrBuilder- Returns:
- Whether the error field is set.
-
getError
The error result of the operation in case of failure or cancellation.
.google.rpc.Status error = 4;- Specified by:
getErrorin interfaceOperationOrBuilder- Returns:
- The error.
-
setError
The error result of the operation in case of failure or cancellation.
.google.rpc.Status error = 4; -
setError
The error result of the operation in case of failure or cancellation.
.google.rpc.Status error = 4; -
mergeError
The error result of the operation in case of failure or cancellation.
.google.rpc.Status error = 4; -
clearError
The error result of the operation in case of failure or cancellation.
.google.rpc.Status error = 4; -
getErrorBuilder
The error result of the operation in case of failure or cancellation.
.google.rpc.Status error = 4; -
getErrorOrBuilder
The error result of the operation in case of failure or cancellation.
.google.rpc.Status error = 4;- Specified by:
getErrorOrBuilderin interfaceOperationOrBuilder
-
hasResponse
public boolean hasResponse()The normal, successful response of the operation. 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;- Specified by:
hasResponsein interfaceOperationOrBuilder- Returns:
- Whether the response field is set.
-
getResponse
public com.google.protobuf.Any getResponse()The normal, successful response of the operation. 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;- Specified by:
getResponsein interfaceOperationOrBuilder- Returns:
- The response.
-
setResponse
The normal, successful response of the operation. 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; -
setResponse
The normal, successful response of the operation. 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; -
mergeResponse
The normal, successful response of the operation. 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; -
clearResponse
The normal, successful response of the operation. 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; -
getResponseBuilder
public com.google.protobuf.Any.Builder getResponseBuilder()The normal, successful response of the operation. 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
public com.google.protobuf.AnyOrBuilder getResponseOrBuilder()The normal, successful response of the operation. 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;- Specified by:
getResponseOrBuilderin interfaceOperationOrBuilder
-