Class GetRequest.Builder

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

public static final class GetRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GetRequest.Builder> implements GetRequestOrBuilder

 A get request. Gets the stat and optionally the value for the specified
 key.
 
Protobuf type io.streamnative.oxia.proto.GetRequest
  • 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<GetRequest.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public GetRequest.Builder mergeFrom(GetRequest other)
    • isInitialized

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

      public GetRequest.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<GetRequest.Builder>
      Throws:
      IOException
    • getKey

      public String getKey()
       The key
       
      string key = 1;
      Specified by:
      getKey in interface GetRequestOrBuilder
      Returns:
      The key.
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
       The key
       
      string key = 1;
      Specified by:
      getKeyBytes in interface GetRequestOrBuilder
      Returns:
      The bytes for key.
    • setKey

      public GetRequest.Builder setKey(String value)
       The key
       
      string key = 1;
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

      public GetRequest.Builder clearKey()
       The key
       
      string key = 1;
      Returns:
      This builder for chaining.
    • setKeyBytes

      public GetRequest.Builder setKeyBytes(com.google.protobuf.ByteString value)
       The key
       
      string key = 1;
      Parameters:
      value - The bytes for key to set.
      Returns:
      This builder for chaining.
    • getIncludeValue

      public boolean getIncludeValue()
       Specifies whether the response should include the value
       
      bool include_value = 2;
      Specified by:
      getIncludeValue in interface GetRequestOrBuilder
      Returns:
      The includeValue.
    • setIncludeValue

      public GetRequest.Builder setIncludeValue(boolean value)
       Specifies whether the response should include the value
       
      bool include_value = 2;
      Parameters:
      value - The includeValue to set.
      Returns:
      This builder for chaining.
    • clearIncludeValue

      public GetRequest.Builder clearIncludeValue()
       Specifies whether the response should include the value
       
      bool include_value = 2;
      Returns:
      This builder for chaining.
    • getComparisonTypeValue

      public int getComparisonTypeValue()
      .io.streamnative.oxia.proto.KeyComparisonType comparison_type = 3;
      Specified by:
      getComparisonTypeValue in interface GetRequestOrBuilder
      Returns:
      The enum numeric value on the wire for comparisonType.
    • setComparisonTypeValue

      public GetRequest.Builder setComparisonTypeValue(int value)
      .io.streamnative.oxia.proto.KeyComparisonType comparison_type = 3;
      Parameters:
      value - The enum numeric value on the wire for comparisonType to set.
      Returns:
      This builder for chaining.
    • getComparisonType

      public KeyComparisonType getComparisonType()
      .io.streamnative.oxia.proto.KeyComparisonType comparison_type = 3;
      Specified by:
      getComparisonType in interface GetRequestOrBuilder
      Returns:
      The comparisonType.
    • setComparisonType

      public GetRequest.Builder setComparisonType(KeyComparisonType value)
      .io.streamnative.oxia.proto.KeyComparisonType comparison_type = 3;
      Parameters:
      value - The comparisonType to set.
      Returns:
      This builder for chaining.
    • clearComparisonType

      public GetRequest.Builder clearComparisonType()
      .io.streamnative.oxia.proto.KeyComparisonType comparison_type = 3;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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