Class OperationInfo.Builder

  • All Implemented Interfaces:
    OperationInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    OperationInfo

    public static final class OperationInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<OperationInfo.Builder>
    implements OperationInfoOrBuilder
     A message representing the message types used by a long-running operation.
     Example:
       rpc LongRunningRecognize(LongRunningRecognizeRequest)
           returns (google.longrunning.Operation) {
         option (google.longrunning.operation_info) = {
           response_type: "LongRunningRecognizeResponse"
           metadata_type: "LongRunningRecognizeMetadata"
         };
       }
     
    Protobuf type google.longrunning.OperationInfo
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<OperationInfo.Builder>
      • clear

        public OperationInfo.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<OperationInfo.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<OperationInfo.Builder>
      • getDefaultInstanceForType

        public OperationInfo getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public OperationInfo build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public OperationInfo buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public OperationInfo.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<OperationInfo.Builder>
      • setField

        public OperationInfo.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<OperationInfo.Builder>
      • clearField

        public OperationInfo.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<OperationInfo.Builder>
      • clearOneof

        public OperationInfo.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<OperationInfo.Builder>
      • setRepeatedField

        public OperationInfo.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      int index,
                                                      Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OperationInfo.Builder>
      • addRepeatedField

        public OperationInfo.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OperationInfo.Builder>
      • mergeFrom

        public OperationInfo.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OperationInfo.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<OperationInfo.Builder>
      • mergeFrom

        public OperationInfo.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OperationInfo.Builder>
        Throws:
        IOException
      • 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;
        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;
        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;
        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;
        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;
        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;
        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;
        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;
        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;
        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;
        Parameters:
        value - The bytes for metadataType to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final OperationInfo.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OperationInfo.Builder>
      • mergeUnknownFields

        public final OperationInfo.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OperationInfo.Builder>