Package com.linkedin.venice.protocols
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
,java.lang.Cloneable
- Enclosing class:
- VeniceServerResponse
public static final class VeniceServerResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VeniceServerResponse.Builder> implements VeniceServerResponseOrBuilder
Protobuf typecom.linkedin.venice.protocols.VeniceServerResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VeniceServerResponse.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
VeniceServerResponse
build()
VeniceServerResponse
buildPartial()
VeniceServerResponse.Builder
clear()
VeniceServerResponse.Builder
clearCompressionStrategy()
uint32 compressionStrategy = 3;
VeniceServerResponse.Builder
clearData()
bytes data = 2;
VeniceServerResponse.Builder
clearErrorCode()
uint32 errorCode = 6;
VeniceServerResponse.Builder
clearErrorMessage()
string errorMessage = 7;
VeniceServerResponse.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
VeniceServerResponse.Builder
clearIsStreamingResponse()
bool isStreamingResponse = 5;
VeniceServerResponse.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
VeniceServerResponse.Builder
clearResponseRCU()
uint32 responseRCU = 4;
VeniceServerResponse.Builder
clearSchemaId()
sint32 schemaId = 1;
VeniceServerResponse.Builder
clone()
int
getCompressionStrategy()
uint32 compressionStrategy = 3;
com.google.protobuf.ByteString
getData()
bytes data = 2;
VeniceServerResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getErrorCode()
uint32 errorCode = 6;
java.lang.String
getErrorMessage()
string errorMessage = 7;
com.google.protobuf.ByteString
getErrorMessageBytes()
string errorMessage = 7;
boolean
getIsStreamingResponse()
bool isStreamingResponse = 5;
int
getResponseRCU()
uint32 responseRCU = 4;
int
getSchemaId()
sint32 schemaId = 1;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
VeniceServerResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
VeniceServerResponse.Builder
mergeFrom(com.google.protobuf.Message other)
VeniceServerResponse.Builder
mergeFrom(VeniceServerResponse other)
VeniceServerResponse.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
VeniceServerResponse.Builder
setCompressionStrategy(int value)
uint32 compressionStrategy = 3;
VeniceServerResponse.Builder
setData(com.google.protobuf.ByteString value)
bytes data = 2;
VeniceServerResponse.Builder
setErrorCode(int value)
uint32 errorCode = 6;
VeniceServerResponse.Builder
setErrorMessage(java.lang.String value)
string errorMessage = 7;
VeniceServerResponse.Builder
setErrorMessageBytes(com.google.protobuf.ByteString value)
string errorMessage = 7;
VeniceServerResponse.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
VeniceServerResponse.Builder
setIsStreamingResponse(boolean value)
bool isStreamingResponse = 5;
VeniceServerResponse.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
VeniceServerResponse.Builder
setResponseRCU(int value)
uint32 responseRCU = 4;
VeniceServerResponse.Builder
setSchemaId(int value)
sint32 schemaId = 1;
VeniceServerResponse.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceServerResponse.Builder>
-
clear
public VeniceServerResponse.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceServerResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceServerResponse.Builder>
-
getDefaultInstanceForType
public VeniceServerResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public VeniceServerResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VeniceServerResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VeniceServerResponse.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceServerResponse.Builder>
-
setField
public VeniceServerResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceServerResponse.Builder>
-
clearField
public VeniceServerResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceServerResponse.Builder>
-
clearOneof
public VeniceServerResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceServerResponse.Builder>
-
setRepeatedField
public VeniceServerResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceServerResponse.Builder>
-
addRepeatedField
public VeniceServerResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceServerResponse.Builder>
-
mergeFrom
public VeniceServerResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<VeniceServerResponse.Builder>
-
mergeFrom
public VeniceServerResponse.Builder mergeFrom(VeniceServerResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceServerResponse.Builder>
-
mergeFrom
public VeniceServerResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<VeniceServerResponse.Builder>
- Throws:
java.io.IOException
-
getSchemaId
public int getSchemaId()
sint32 schemaId = 1;
- Specified by:
getSchemaId
in interfaceVeniceServerResponseOrBuilder
- 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 interfaceVeniceServerResponseOrBuilder
- 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 interfaceVeniceServerResponseOrBuilder
- 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 interfaceVeniceServerResponseOrBuilder
- 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 interfaceVeniceServerResponseOrBuilder
- 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 interfaceVeniceServerResponseOrBuilder
- 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 java.lang.String getErrorMessage()
string errorMessage = 7;
- Specified by:
getErrorMessage
in interfaceVeniceServerResponseOrBuilder
- Returns:
- The errorMessage.
-
getErrorMessageBytes
public com.google.protobuf.ByteString getErrorMessageBytes()
string errorMessage = 7;
- Specified by:
getErrorMessageBytes
in interfaceVeniceServerResponseOrBuilder
- Returns:
- The bytes for errorMessage.
-
setErrorMessage
public VeniceServerResponse.Builder setErrorMessage(java.lang.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceServerResponse.Builder>
-
mergeUnknownFields
public final VeniceServerResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceServerResponse.Builder>
-
-