Package com.google.longrunning
Class OperationInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<OperationInfo,OperationInfo.Builder>
com.google.longrunning.OperationInfo.Builder
- All Implemented Interfaces:
OperationInfoOrBuilder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
- Enclosing class:
- OperationInfo
public static final class OperationInfo.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<OperationInfo,OperationInfo.Builder>
implements OperationInfoOrBuilder
A message representing the message types used by a long-running operation. Example: rpc Export(ExportRequest) returns (google.longrunning.Operation) { option (google.longrunning.operation_info) = { response_type: "ExportResponse" metadata_type: "ExportMetadata" }; }Protobuf type
google.longrunning.OperationInfo
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionRequired.Required.Required.com.google.protobuf.ByteString
Required.Required.com.google.protobuf.ByteString
Required.setMetadataType
(String value) Required.setMetadataTypeBytes
(com.google.protobuf.ByteString value) Required.setResponseType
(String value) Required.setResponseTypeBytes
(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getResponseType
Required. The message name of the primary return type for this long-running operation. This type will be used to deserialize the LRO's response. If the response is in a different package from the rpc, a fully-qualified message name must be used (e.g. `google.protobuf.Struct`). Note: Altering this value constitutes a breaking change.
string response_type = 1 [json_name = "responseType"];
- Specified by:
getResponseType
in interfaceOperationInfoOrBuilder
- Returns:
- The responseType.
-
getResponseTypeBytes
public com.google.protobuf.ByteString getResponseTypeBytes()Required. The message name of the primary return type for this long-running operation. This type will be used to deserialize the LRO's response. If the response is in a different package from the rpc, a fully-qualified message name must be used (e.g. `google.protobuf.Struct`). Note: Altering this value constitutes a breaking change.
string response_type = 1 [json_name = "responseType"];
- Specified by:
getResponseTypeBytes
in interfaceOperationInfoOrBuilder
- Returns:
- The bytes for responseType.
-
setResponseType
Required. The message name of the primary return type for this long-running operation. This type will be used to deserialize the LRO's response. If the response is in a different package from the rpc, a fully-qualified message name must be used (e.g. `google.protobuf.Struct`). Note: Altering this value constitutes a breaking change.
string response_type = 1 [json_name = "responseType"];
- Parameters:
value
- The responseType to set.- Returns:
- This builder for chaining.
-
clearResponseType
Required. The message name of the primary return type for this long-running operation. This type will be used to deserialize the LRO's response. If the response is in a different package from the rpc, a fully-qualified message name must be used (e.g. `google.protobuf.Struct`). Note: Altering this value constitutes a breaking change.
string response_type = 1 [json_name = "responseType"];
- Returns:
- This builder for chaining.
-
setResponseTypeBytes
Required. The message name of the primary return type for this long-running operation. This type will be used to deserialize the LRO's response. If the response is in a different package from the rpc, a fully-qualified message name must be used (e.g. `google.protobuf.Struct`). Note: Altering this value constitutes a breaking change.
string response_type = 1 [json_name = "responseType"];
- Parameters:
value
- The bytes for responseType to set.- Returns:
- This builder for chaining.
-
getMetadataType
Required. The message name of the metadata type for this long-running operation. If the response is in a different package from the rpc, a fully-qualified message name must be used (e.g. `google.protobuf.Struct`). Note: Altering this value constitutes a breaking change.
string metadata_type = 2 [json_name = "metadataType"];
- Specified by:
getMetadataType
in interfaceOperationInfoOrBuilder
- Returns:
- The metadataType.
-
getMetadataTypeBytes
public com.google.protobuf.ByteString getMetadataTypeBytes()Required. The message name of the metadata type for this long-running operation. If the response is in a different package from the rpc, a fully-qualified message name must be used (e.g. `google.protobuf.Struct`). Note: Altering this value constitutes a breaking change.
string metadata_type = 2 [json_name = "metadataType"];
- Specified by:
getMetadataTypeBytes
in interfaceOperationInfoOrBuilder
- Returns:
- The bytes for metadataType.
-
setMetadataType
Required. The message name of the metadata type for this long-running operation. If the response is in a different package from the rpc, a fully-qualified message name must be used (e.g. `google.protobuf.Struct`). Note: Altering this value constitutes a breaking change.
string metadata_type = 2 [json_name = "metadataType"];
- Parameters:
value
- The metadataType to set.- Returns:
- This builder for chaining.
-
clearMetadataType
Required. The message name of the metadata type for this long-running operation. If the response is in a different package from the rpc, a fully-qualified message name must be used (e.g. `google.protobuf.Struct`). Note: Altering this value constitutes a breaking change.
string metadata_type = 2 [json_name = "metadataType"];
- Returns:
- This builder for chaining.
-
setMetadataTypeBytes
Required. The message name of the metadata type for this long-running operation. If the response is in a different package from the rpc, a fully-qualified message name must be used (e.g. `google.protobuf.Struct`). Note: Altering this value constitutes a breaking change.
string metadata_type = 2 [json_name = "metadataType"];
- Parameters:
value
- The bytes for metadataType to set.- Returns:
- This builder for chaining.
-