Package com.linkedin.venice.protocols
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) bool isBatchRequest = 9;
bool isRetryRequest = 8;
bool isStreamingRequest = 7;
used for batch getused for single getstring method = 10;
clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) uint32 partition = 1;
string resourceName = 5;
clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
bool isBatchRequest = 9;
boolean
bool isRetryRequest = 8;
boolean
bool isStreamingRequest = 7;
com.google.protobuf.ByteString
used for batch getused for single getcom.google.protobuf.ByteString
used for single getstring method = 10;
com.google.protobuf.ByteString
string method = 10;
int
uint32 partition = 1;
string resourceName = 5;
com.google.protobuf.ByteString
string resourceName = 5;
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
(VeniceClientRequest other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setIsBatchRequest
(boolean value) bool isBatchRequest = 9;
setIsRetryRequest
(boolean value) bool isRetryRequest = 8;
setIsStreamingRequest
(boolean value) bool isStreamingRequest = 7;
setKeyBytes
(com.google.protobuf.ByteString value) used for batch getsetKeyString
(String value) used for single getsetKeyStringBytes
(com.google.protobuf.ByteString value) used for single getstring method = 10;
setMethodBytes
(com.google.protobuf.ByteString value) string method = 10;
setPartition
(int value) uint32 partition = 1;
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResourceName
(String value) string resourceName = 5;
setResourceNameBytes
(com.google.protobuf.ByteString value) string resourceName = 5;
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<VeniceClientRequest.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<VeniceClientRequest.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<VeniceClientRequest.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<VeniceClientRequest.Builder>
-
setField
public VeniceClientRequest.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<VeniceClientRequest.Builder>
-
clearField
public VeniceClientRequest.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<VeniceClientRequest.Builder>
-
clearOneof
public VeniceClientRequest.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<VeniceClientRequest.Builder>
-
setRepeatedField
public VeniceClientRequest.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<VeniceClientRequest.Builder>
-
addRepeatedField
public VeniceClientRequest.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<VeniceClientRequest.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<VeniceClientRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<VeniceClientRequest.Builder>
- Throws:
IOException
-
getPartition
public int getPartition()uint32 partition = 1;
- Specified by:
getPartition
in interfaceVeniceClientRequestOrBuilder
- Returns:
- The partition.
-
setPartition
uint32 partition = 1;
- Parameters:
value
- The partition to set.- Returns:
- This builder for chaining.
-
clearPartition
uint32 partition = 1;
- Returns:
- This builder for chaining.
-
getKeyString
used for single get
string keyString = 2;
- Specified by:
getKeyString
in interfaceVeniceClientRequestOrBuilder
- Returns:
- The keyString.
-
getKeyStringBytes
public com.google.protobuf.ByteString getKeyStringBytes()used for single get
string keyString = 2;
- Specified by:
getKeyStringBytes
in interfaceVeniceClientRequestOrBuilder
- Returns:
- The bytes for keyString.
-
setKeyString
used for single get
string keyString = 2;
- Parameters:
value
- The keyString to set.- Returns:
- This builder for chaining.
-
clearKeyString
used for single get
string keyString = 2;
- Returns:
- This builder for chaining.
-
setKeyStringBytes
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 interfaceVeniceClientRequestOrBuilder
- Returns:
- The keyBytes.
-
setKeyBytes
used for batch get
bytes keyBytes = 3;
- Parameters:
value
- The keyBytes to set.- Returns:
- This builder for chaining.
-
clearKeyBytes
used for batch get
bytes keyBytes = 3;
- Returns:
- This builder for chaining.
-
getResourceName
string resourceName = 5;
- Specified by:
getResourceName
in interfaceVeniceClientRequestOrBuilder
- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()string resourceName = 5;
- Specified by:
getResourceNameBytes
in interfaceVeniceClientRequestOrBuilder
- Returns:
- The bytes for resourceName.
-
setResourceName
string resourceName = 5;
- Parameters:
value
- The resourceName to set.- Returns:
- This builder for chaining.
-
clearResourceName
string resourceName = 5;
- Returns:
- This builder for chaining.
-
setResourceNameBytes
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 interfaceVeniceClientRequestOrBuilder
- Returns:
- The isStreamingRequest.
-
setIsStreamingRequest
bool isStreamingRequest = 7;
- Parameters:
value
- The isStreamingRequest to set.- Returns:
- This builder for chaining.
-
clearIsStreamingRequest
bool isStreamingRequest = 7;
- Returns:
- This builder for chaining.
-
getIsRetryRequest
public boolean getIsRetryRequest()bool isRetryRequest = 8;
- Specified by:
getIsRetryRequest
in interfaceVeniceClientRequestOrBuilder
- Returns:
- The isRetryRequest.
-
setIsRetryRequest
bool isRetryRequest = 8;
- Parameters:
value
- The isRetryRequest to set.- Returns:
- This builder for chaining.
-
clearIsRetryRequest
bool isRetryRequest = 8;
- Returns:
- This builder for chaining.
-
getIsBatchRequest
public boolean getIsBatchRequest()bool isBatchRequest = 9;
- Specified by:
getIsBatchRequest
in interfaceVeniceClientRequestOrBuilder
- Returns:
- The isBatchRequest.
-
setIsBatchRequest
bool isBatchRequest = 9;
- Parameters:
value
- The isBatchRequest to set.- Returns:
- This builder for chaining.
-
clearIsBatchRequest
bool isBatchRequest = 9;
- Returns:
- This builder for chaining.
-
getMethod
string method = 10;
- Specified by:
getMethod
in interfaceVeniceClientRequestOrBuilder
- Returns:
- The method.
-
getMethodBytes
public com.google.protobuf.ByteString getMethodBytes()string method = 10;
- Specified by:
getMethodBytes
in interfaceVeniceClientRequestOrBuilder
- Returns:
- The bytes for method.
-
setMethod
string method = 10;
- Parameters:
value
- The method to set.- Returns:
- This builder for chaining.
-
clearMethod
string method = 10;
- Returns:
- This builder for chaining.
-
setMethodBytes
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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceClientRequest.Builder>
-
mergeUnknownFields
public final VeniceClientRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceClientRequest.Builder>
-