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
,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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
uint32 compressionStrategy = 3;
bytes data = 2;
uint32 errorCode = 6;
string errorMessage = 7;
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) bool isStreamingResponse = 5;
clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) uint32 responseRCU = 4;
sint32 schemaId = 1;
clone()
int
uint32 compressionStrategy = 3;
com.google.protobuf.ByteString
getData()
bytes data = 2;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
int
uint32 errorCode = 6;
string errorMessage = 7;
com.google.protobuf.ByteString
string errorMessage = 7;
boolean
bool isStreamingResponse = 5;
int
uint32 responseRCU = 4;
int
sint32 schemaId = 1;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(VeniceServerResponse other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setCompressionStrategy
(int value) uint32 compressionStrategy = 3;
setData
(com.google.protobuf.ByteString value) bytes data = 2;
setErrorCode
(int value) uint32 errorCode = 6;
setErrorMessage
(String value) string errorMessage = 7;
setErrorMessageBytes
(com.google.protobuf.ByteString value) string errorMessage = 7;
setIsStreamingResponse
(boolean value) bool isStreamingResponse = 5;
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResponseRCU
(int value) uint32 responseRCU = 4;
setSchemaId
(int value) sint32 schemaId = 1;
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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.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, 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, 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, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceServerResponse.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<VeniceServerResponse.Builder>
-
mergeFrom
-
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 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:
IOException
-
getSchemaId
public int getSchemaId()sint32 schemaId = 1;
- Specified by:
getSchemaId
in interfaceVeniceServerResponseOrBuilder
- Returns:
- The schemaId.
-
setSchemaId
sint32 schemaId = 1;
- Parameters:
value
- The schemaId to set.- Returns:
- This builder for chaining.
-
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
bytes data = 2;
- Parameters:
value
- The data to set.- Returns:
- This builder for chaining.
-
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
uint32 compressionStrategy = 3;
- Parameters:
value
- The compressionStrategy to set.- Returns:
- This builder for chaining.
-
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
uint32 responseRCU = 4;
- Parameters:
value
- The responseRCU to set.- Returns:
- This builder for chaining.
-
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
bool isStreamingResponse = 5;
- Parameters:
value
- The isStreamingResponse to set.- Returns:
- This builder for chaining.
-
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
uint32 errorCode = 6;
- Parameters:
value
- The errorCode to set.- Returns:
- This builder for chaining.
-
clearErrorCode
uint32 errorCode = 6;
- Returns:
- This builder for chaining.
-
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
string errorMessage = 7;
- Parameters:
value
- The errorMessage to set.- Returns:
- This builder for chaining.
-
clearErrorMessage
string errorMessage = 7;
- Returns:
- This builder for chaining.
-
setErrorMessageBytes
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>
-