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
,java.lang.Cloneable
- Enclosing class:
- VeniceClientRequest
public static final class VeniceClientRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VeniceClientRequest.Builder> implements VeniceClientRequestOrBuilder
Protobuf typecom.linkedin.venice.protocols.VeniceClientRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VeniceClientRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
VeniceClientRequest
build()
VeniceClientRequest
buildPartial()
VeniceClientRequest.Builder
clear()
VeniceClientRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
VeniceClientRequest.Builder
clearIsBatchRequest()
bool isBatchRequest = 9;
VeniceClientRequest.Builder
clearIsRetryRequest()
bool isRetryRequest = 8;
VeniceClientRequest.Builder
clearIsStreamingRequest()
bool isStreamingRequest = 7;
VeniceClientRequest.Builder
clearKeyBytes()
used for batch getVeniceClientRequest.Builder
clearKeyString()
used for single getVeniceClientRequest.Builder
clearMethod()
string method = 10;
VeniceClientRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
VeniceClientRequest.Builder
clearPartition()
uint32 partition = 1;
VeniceClientRequest.Builder
clearResourceName()
string resourceName = 5;
VeniceClientRequest.Builder
clone()
VeniceClientRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
getIsBatchRequest()
bool isBatchRequest = 9;
boolean
getIsRetryRequest()
bool isRetryRequest = 8;
boolean
getIsStreamingRequest()
bool isStreamingRequest = 7;
com.google.protobuf.ByteString
getKeyBytes()
used for batch getjava.lang.String
getKeyString()
used for single getcom.google.protobuf.ByteString
getKeyStringBytes()
used for single getjava.lang.String
getMethod()
string method = 10;
com.google.protobuf.ByteString
getMethodBytes()
string method = 10;
int
getPartition()
uint32 partition = 1;
java.lang.String
getResourceName()
string resourceName = 5;
com.google.protobuf.ByteString
getResourceNameBytes()
string resourceName = 5;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
VeniceClientRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
VeniceClientRequest.Builder
mergeFrom(com.google.protobuf.Message other)
VeniceClientRequest.Builder
mergeFrom(VeniceClientRequest other)
VeniceClientRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
VeniceClientRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
VeniceClientRequest.Builder
setIsBatchRequest(boolean value)
bool isBatchRequest = 9;
VeniceClientRequest.Builder
setIsRetryRequest(boolean value)
bool isRetryRequest = 8;
VeniceClientRequest.Builder
setIsStreamingRequest(boolean value)
bool isStreamingRequest = 7;
VeniceClientRequest.Builder
setKeyBytes(com.google.protobuf.ByteString value)
used for batch getVeniceClientRequest.Builder
setKeyString(java.lang.String value)
used for single getVeniceClientRequest.Builder
setKeyStringBytes(com.google.protobuf.ByteString value)
used for single getVeniceClientRequest.Builder
setMethod(java.lang.String value)
string method = 10;
VeniceClientRequest.Builder
setMethodBytes(com.google.protobuf.ByteString value)
string method = 10;
VeniceClientRequest.Builder
setPartition(int value)
uint32 partition = 1;
VeniceClientRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
VeniceClientRequest.Builder
setResourceName(java.lang.String value)
string resourceName = 5;
VeniceClientRequest.Builder
setResourceNameBytes(com.google.protobuf.ByteString value)
string resourceName = 5;
VeniceClientRequest.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<VeniceClientRequest.Builder>
-
clear
public 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
public VeniceClientRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public VeniceClientRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VeniceClientRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VeniceClientRequest.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, java.lang.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, java.lang.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, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceClientRequest.Builder>
-
mergeFrom
public VeniceClientRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<VeniceClientRequest.Builder>
-
mergeFrom
public VeniceClientRequest.Builder mergeFrom(VeniceClientRequest other)
-
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 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<VeniceClientRequest.Builder>
- Throws:
java.io.IOException
-
getPartition
public int getPartition()
uint32 partition = 1;
- Specified by:
getPartition
in interfaceVeniceClientRequestOrBuilder
- Returns:
- The partition.
-
setPartition
public VeniceClientRequest.Builder setPartition(int value)
uint32 partition = 1;
- Parameters:
value
- The partition to set.- Returns:
- This builder for chaining.
-
clearPartition
public VeniceClientRequest.Builder clearPartition()
uint32 partition = 1;
- Returns:
- This builder for chaining.
-
getKeyString
public java.lang.String 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
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 interfaceVeniceClientRequestOrBuilder
- 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.
-
getResourceName
public java.lang.String 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
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.
-
getIsStreamingRequest
public boolean getIsStreamingRequest()
bool isStreamingRequest = 7;
- Specified by:
getIsStreamingRequest
in interfaceVeniceClientRequestOrBuilder
- Returns:
- The isStreamingRequest.
-
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.
-
getIsRetryRequest
public boolean getIsRetryRequest()
bool isRetryRequest = 8;
- Specified by:
getIsRetryRequest
in interfaceVeniceClientRequestOrBuilder
- Returns:
- The isRetryRequest.
-
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.
-
getIsBatchRequest
public boolean getIsBatchRequest()
bool isBatchRequest = 9;
- Specified by:
getIsBatchRequest
in interfaceVeniceClientRequestOrBuilder
- Returns:
- The isBatchRequest.
-
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.
-
getMethod
public java.lang.String 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
public VeniceClientRequest.Builder setMethod(java.lang.String value)
string method = 10;
- Parameters:
value
- The method to set.- Returns:
- This builder for chaining.
-
clearMethod
public VeniceClientRequest.Builder clearMethod()
string method = 10;
- 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 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>
-
-