Class VeniceClientRequest.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, VeniceClientRequestOrBuilder, java.lang.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 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<VeniceClientRequest.Builder>
      • clear

        public 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

        public VeniceClientRequest.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,
                                                    java.lang.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,
                                                            java.lang.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,
                                                            java.lang.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>
      • 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 java.io.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:
        java.io.IOException
      • setPartition

        public VeniceClientRequest.Builder setPartition​(int value)
        uint32 partition = 1;
        Parameters:
        value - The partition to set.
        Returns:
        This builder for chaining.
      • 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​(java.lang.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.
      • setResourceName

        public VeniceClientRequest.Builder setResourceName​(java.lang.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.
      • 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.
      • 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.
      • 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.
      • setMethod

        public VeniceClientRequest.Builder setMethod​(java.lang.String value)
        string method = 10;
        Parameters:
        value - The method to set.
        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>