Class VeniceClientRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<VeniceClientRequest.Builder>
com.linkedin.venice.protocols.VeniceClientRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, VeniceClientRequestOrBuilder, Cloneable
Enclosing class:
VeniceClientRequest

public static final class VeniceClientRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VeniceClientRequest.Builder> implements VeniceClientRequestOrBuilder
Protobuf type com.linkedin.venice.protocols.VeniceClientRequest
  • 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<VeniceClientRequest.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<VeniceClientRequest.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<VeniceClientRequest.Builder>
    • getDefaultInstanceForType

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

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

      public VeniceClientRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<VeniceClientRequest.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public VeniceClientRequest.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<VeniceClientRequest.Builder>
      Throws:
      IOException
    • getPartition

      public int getPartition()
      uint32 partition = 1;
      Specified by:
      getPartition in interface VeniceClientRequestOrBuilder
      Returns:
      The partition.
    • setPartition

      public VeniceClientRequest.Builder setPartition(int value)
      uint32 partition = 1;
      Parameters:
      value - The partition to set.
      Returns:
      This builder for chaining.
    • clearPartition

      public VeniceClientRequest.Builder clearPartition()
      uint32 partition = 1;
      Returns:
      This builder for chaining.
    • getKeyString

      public String getKeyString()
       used for single get
       
      string keyString = 2;
      Specified by:
      getKeyString in interface VeniceClientRequestOrBuilder
      Returns:
      The keyString.
    • getKeyStringBytes

      public com.google.protobuf.ByteString getKeyStringBytes()
       used for single get
       
      string keyString = 2;
      Specified by:
      getKeyStringBytes in interface VeniceClientRequestOrBuilder
      Returns:
      The bytes for keyString.
    • setKeyString

      public VeniceClientRequest.Builder setKeyString(String value)
       used for single get
       
      string keyString = 2;
      Parameters:
      value - The keyString to set.
      Returns:
      This builder for chaining.
    • clearKeyString

      public VeniceClientRequest.Builder clearKeyString()
       used for single get
       
      string keyString = 2;
      Returns:
      This builder for chaining.
    • setKeyStringBytes

      public VeniceClientRequest.Builder setKeyStringBytes(com.google.protobuf.ByteString value)
       used for single get
       
      string keyString = 2;
      Parameters:
      value - The bytes for keyString to set.
      Returns:
      This builder for chaining.
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
       used for batch get
       
      bytes keyBytes = 3;
      Specified by:
      getKeyBytes in interface VeniceClientRequestOrBuilder
      Returns:
      The keyBytes.
    • setKeyBytes

      public VeniceClientRequest.Builder setKeyBytes(com.google.protobuf.ByteString value)
       used for batch get
       
      bytes keyBytes = 3;
      Parameters:
      value - The keyBytes to set.
      Returns:
      This builder for chaining.
    • clearKeyBytes

      public VeniceClientRequest.Builder clearKeyBytes()
       used for batch get
       
      bytes keyBytes = 3;
      Returns:
      This builder for chaining.
    • getResourceName

      public String getResourceName()
      string resourceName = 5;
      Specified by:
      getResourceName in interface VeniceClientRequestOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
      string resourceName = 5;
      Specified by:
      getResourceNameBytes in interface VeniceClientRequestOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public VeniceClientRequest.Builder setResourceName(String value)
      string resourceName = 5;
      Parameters:
      value - The resourceName to set.
      Returns:
      This builder for chaining.
    • clearResourceName

      public VeniceClientRequest.Builder clearResourceName()
      string resourceName = 5;
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public VeniceClientRequest.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
      string resourceName = 5;
      Parameters:
      value - The bytes for resourceName to set.
      Returns:
      This builder for chaining.
    • getIsStreamingRequest

      public boolean getIsStreamingRequest()
      bool isStreamingRequest = 7;
      Specified by:
      getIsStreamingRequest in interface VeniceClientRequestOrBuilder
      Returns:
      The isStreamingRequest.
    • setIsStreamingRequest

      public VeniceClientRequest.Builder setIsStreamingRequest(boolean value)
      bool isStreamingRequest = 7;
      Parameters:
      value - The isStreamingRequest to set.
      Returns:
      This builder for chaining.
    • clearIsStreamingRequest

      public VeniceClientRequest.Builder clearIsStreamingRequest()
      bool isStreamingRequest = 7;
      Returns:
      This builder for chaining.
    • getIsRetryRequest

      public boolean getIsRetryRequest()
      bool isRetryRequest = 8;
      Specified by:
      getIsRetryRequest in interface VeniceClientRequestOrBuilder
      Returns:
      The isRetryRequest.
    • setIsRetryRequest

      public VeniceClientRequest.Builder setIsRetryRequest(boolean value)
      bool isRetryRequest = 8;
      Parameters:
      value - The isRetryRequest to set.
      Returns:
      This builder for chaining.
    • clearIsRetryRequest

      public VeniceClientRequest.Builder clearIsRetryRequest()
      bool isRetryRequest = 8;
      Returns:
      This builder for chaining.
    • getIsBatchRequest

      public boolean getIsBatchRequest()
      bool isBatchRequest = 9;
      Specified by:
      getIsBatchRequest in interface VeniceClientRequestOrBuilder
      Returns:
      The isBatchRequest.
    • setIsBatchRequest

      public VeniceClientRequest.Builder setIsBatchRequest(boolean value)
      bool isBatchRequest = 9;
      Parameters:
      value - The isBatchRequest to set.
      Returns:
      This builder for chaining.
    • clearIsBatchRequest

      public VeniceClientRequest.Builder clearIsBatchRequest()
      bool isBatchRequest = 9;
      Returns:
      This builder for chaining.
    • getMethod

      public String getMethod()
      string method = 10;
      Specified by:
      getMethod in interface VeniceClientRequestOrBuilder
      Returns:
      The method.
    • getMethodBytes

      public com.google.protobuf.ByteString getMethodBytes()
      string method = 10;
      Specified by:
      getMethodBytes in interface VeniceClientRequestOrBuilder
      Returns:
      The bytes for method.
    • setMethod

      public VeniceClientRequest.Builder setMethod(String value)
      string method = 10;
      Parameters:
      value - The method to set.
      Returns:
      This builder for chaining.
    • clearMethod

      public VeniceClientRequest.Builder clearMethod()
      string method = 10;
      Returns:
      This builder for chaining.
    • setMethodBytes

      public VeniceClientRequest.Builder setMethodBytes(com.google.protobuf.ByteString value)
      string method = 10;
      Parameters:
      value - The bytes for method to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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