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
  • Method Details

    • getResponseType

      public String 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 interface OperationInfoOrBuilder
      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 interface OperationInfoOrBuilder
      Returns:
      The bytes for responseType.
    • setResponseType

      public OperationInfo.Builder setResponseType(String value)
       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

      public OperationInfo.Builder 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

      public OperationInfo.Builder setResponseTypeBytes(com.google.protobuf.ByteString value)
       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

      public String 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 interface OperationInfoOrBuilder
      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 interface OperationInfoOrBuilder
      Returns:
      The bytes for metadataType.
    • setMetadataType

      public OperationInfo.Builder setMetadataType(String value)
       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

      public OperationInfo.Builder 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

      public OperationInfo.Builder setMetadataTypeBytes(com.google.protobuf.ByteString value)
       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.