Class PutResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<PutResponse.Builder>
io.streamnative.oxia.proto.PutResponse.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, PutResponseOrBuilder, Cloneable
Enclosing class:
PutResponse

public static final class PutResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PutResponse.Builder> implements PutResponseOrBuilder

 The response to a put request.
 
Protobuf type io.streamnative.oxia.proto.PutResponse
  • Method Details

    • 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<PutResponse.Builder>
    • clear

      public PutResponse.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<PutResponse.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<PutResponse.Builder>
    • getDefaultInstanceForType

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

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

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

      public PutResponse.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<PutResponse.Builder>
    • setField

      public PutResponse.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<PutResponse.Builder>
    • clearField

      public PutResponse.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<PutResponse.Builder>
    • clearOneof

      public PutResponse.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<PutResponse.Builder>
    • setRepeatedField

      public PutResponse.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<PutResponse.Builder>
    • addRepeatedField

      public PutResponse.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<PutResponse.Builder>
    • mergeFrom

      public PutResponse.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<PutResponse.Builder>
    • mergeFrom

      public PutResponse.Builder mergeFrom(PutResponse other)
    • isInitialized

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

      public PutResponse.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<PutResponse.Builder>
      Throws:
      IOException
    • getStatusValue

      public int getStatusValue()
       Includes the error or OK
       
      .io.streamnative.oxia.proto.Status status = 1;
      Specified by:
      getStatusValue in interface PutResponseOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • setStatusValue

      public PutResponse.Builder setStatusValue(int value)
       Includes the error or OK
       
      .io.streamnative.oxia.proto.Status status = 1;
      Parameters:
      value - The enum numeric value on the wire for status to set.
      Returns:
      This builder for chaining.
    • getStatus

      public Status getStatus()
       Includes the error or OK
       
      .io.streamnative.oxia.proto.Status status = 1;
      Specified by:
      getStatus in interface PutResponseOrBuilder
      Returns:
      The status.
    • setStatus

      public PutResponse.Builder setStatus(Status value)
       Includes the error or OK
       
      .io.streamnative.oxia.proto.Status status = 1;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public PutResponse.Builder clearStatus()
       Includes the error or OK
       
      .io.streamnative.oxia.proto.Status status = 1;
      Returns:
      This builder for chaining.
    • hasVersion

      public boolean hasVersion()
       The version if the put was successful
       
      .io.streamnative.oxia.proto.Version version = 2;
      Specified by:
      hasVersion in interface PutResponseOrBuilder
      Returns:
      Whether the version field is set.
    • getVersion

      public Version getVersion()
       The version if the put was successful
       
      .io.streamnative.oxia.proto.Version version = 2;
      Specified by:
      getVersion in interface PutResponseOrBuilder
      Returns:
      The version.
    • setVersion

      public PutResponse.Builder setVersion(Version value)
       The version if the put was successful
       
      .io.streamnative.oxia.proto.Version version = 2;
    • setVersion

      public PutResponse.Builder setVersion(Version.Builder builderForValue)
       The version if the put was successful
       
      .io.streamnative.oxia.proto.Version version = 2;
    • mergeVersion

      public PutResponse.Builder mergeVersion(Version value)
       The version if the put was successful
       
      .io.streamnative.oxia.proto.Version version = 2;
    • clearVersion

      public PutResponse.Builder clearVersion()
       The version if the put was successful
       
      .io.streamnative.oxia.proto.Version version = 2;
    • getVersionBuilder

      public Version.Builder getVersionBuilder()
       The version if the put was successful
       
      .io.streamnative.oxia.proto.Version version = 2;
    • getVersionOrBuilder

      public VersionOrBuilder getVersionOrBuilder()
       The version if the put was successful
       
      .io.streamnative.oxia.proto.Version version = 2;
      Specified by:
      getVersionOrBuilder in interface PutResponseOrBuilder
    • hasKey

      public boolean hasKey()
       If the key was generated by Oxia, it will be returned as part
       of the response
       
      optional string key = 3;
      Specified by:
      hasKey in interface PutResponseOrBuilder
      Returns:
      Whether the key field is set.
    • getKey

      public String getKey()
       If the key was generated by Oxia, it will be returned as part
       of the response
       
      optional string key = 3;
      Specified by:
      getKey in interface PutResponseOrBuilder
      Returns:
      The key.
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
       If the key was generated by Oxia, it will be returned as part
       of the response
       
      optional string key = 3;
      Specified by:
      getKeyBytes in interface PutResponseOrBuilder
      Returns:
      The bytes for key.
    • setKey

      public PutResponse.Builder setKey(String value)
       If the key was generated by Oxia, it will be returned as part
       of the response
       
      optional string key = 3;
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

      public PutResponse.Builder clearKey()
       If the key was generated by Oxia, it will be returned as part
       of the response
       
      optional string key = 3;
      Returns:
      This builder for chaining.
    • setKeyBytes

      public PutResponse.Builder setKeyBytes(com.google.protobuf.ByteString value)
       If the key was generated by Oxia, it will be returned as part
       of the response
       
      optional string key = 3;
      Parameters:
      value - The bytes for key to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final PutResponse.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<PutResponse.Builder>
    • mergeUnknownFields

      public final PutResponse.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<PutResponse.Builder>