Class VeniceServerResponse.Builder

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

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

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

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

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

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

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

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

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

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

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

      public VeniceServerResponse.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<VeniceServerResponse.Builder>
      Throws:
      IOException
    • getSchemaId

      public int getSchemaId()
      sint32 schemaId = 1;
      Specified by:
      getSchemaId in interface VeniceServerResponseOrBuilder
      Returns:
      The schemaId.
    • setSchemaId

      public VeniceServerResponse.Builder setSchemaId(int value)
      sint32 schemaId = 1;
      Parameters:
      value - The schemaId to set.
      Returns:
      This builder for chaining.
    • clearSchemaId

      public VeniceServerResponse.Builder clearSchemaId()
      sint32 schemaId = 1;
      Returns:
      This builder for chaining.
    • getData

      public com.google.protobuf.ByteString getData()
      bytes data = 2;
      Specified by:
      getData in interface VeniceServerResponseOrBuilder
      Returns:
      The data.
    • setData

      public VeniceServerResponse.Builder setData(com.google.protobuf.ByteString value)
      bytes data = 2;
      Parameters:
      value - The data to set.
      Returns:
      This builder for chaining.
    • clearData

      public VeniceServerResponse.Builder clearData()
      bytes data = 2;
      Returns:
      This builder for chaining.
    • getCompressionStrategy

      public int getCompressionStrategy()
      uint32 compressionStrategy = 3;
      Specified by:
      getCompressionStrategy in interface VeniceServerResponseOrBuilder
      Returns:
      The compressionStrategy.
    • setCompressionStrategy

      public VeniceServerResponse.Builder setCompressionStrategy(int value)
      uint32 compressionStrategy = 3;
      Parameters:
      value - The compressionStrategy to set.
      Returns:
      This builder for chaining.
    • clearCompressionStrategy

      public VeniceServerResponse.Builder clearCompressionStrategy()
      uint32 compressionStrategy = 3;
      Returns:
      This builder for chaining.
    • getResponseRCU

      public int getResponseRCU()
      uint32 responseRCU = 4;
      Specified by:
      getResponseRCU in interface VeniceServerResponseOrBuilder
      Returns:
      The responseRCU.
    • setResponseRCU

      public VeniceServerResponse.Builder setResponseRCU(int value)
      uint32 responseRCU = 4;
      Parameters:
      value - The responseRCU to set.
      Returns:
      This builder for chaining.
    • clearResponseRCU

      public VeniceServerResponse.Builder clearResponseRCU()
      uint32 responseRCU = 4;
      Returns:
      This builder for chaining.
    • getIsStreamingResponse

      public boolean getIsStreamingResponse()
      bool isStreamingResponse = 5;
      Specified by:
      getIsStreamingResponse in interface VeniceServerResponseOrBuilder
      Returns:
      The isStreamingResponse.
    • setIsStreamingResponse

      public VeniceServerResponse.Builder setIsStreamingResponse(boolean value)
      bool isStreamingResponse = 5;
      Parameters:
      value - The isStreamingResponse to set.
      Returns:
      This builder for chaining.
    • clearIsStreamingResponse

      public VeniceServerResponse.Builder clearIsStreamingResponse()
      bool isStreamingResponse = 5;
      Returns:
      This builder for chaining.
    • getErrorCode

      public int getErrorCode()
      uint32 errorCode = 6;
      Specified by:
      getErrorCode in interface VeniceServerResponseOrBuilder
      Returns:
      The errorCode.
    • setErrorCode

      public VeniceServerResponse.Builder setErrorCode(int value)
      uint32 errorCode = 6;
      Parameters:
      value - The errorCode to set.
      Returns:
      This builder for chaining.
    • clearErrorCode

      public VeniceServerResponse.Builder clearErrorCode()
      uint32 errorCode = 6;
      Returns:
      This builder for chaining.
    • getErrorMessage

      public String getErrorMessage()
      string errorMessage = 7;
      Specified by:
      getErrorMessage in interface VeniceServerResponseOrBuilder
      Returns:
      The errorMessage.
    • getErrorMessageBytes

      public com.google.protobuf.ByteString getErrorMessageBytes()
      string errorMessage = 7;
      Specified by:
      getErrorMessageBytes in interface VeniceServerResponseOrBuilder
      Returns:
      The bytes for errorMessage.
    • setErrorMessage

      public VeniceServerResponse.Builder setErrorMessage(String value)
      string errorMessage = 7;
      Parameters:
      value - The errorMessage to set.
      Returns:
      This builder for chaining.
    • clearErrorMessage

      public VeniceServerResponse.Builder clearErrorMessage()
      string errorMessage = 7;
      Returns:
      This builder for chaining.
    • setErrorMessageBytes

      public VeniceServerResponse.Builder setErrorMessageBytes(com.google.protobuf.ByteString value)
      string errorMessage = 7;
      Parameters:
      value - The bytes for errorMessage to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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