Package io.sbp.grpc
Class Config.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
io.sbp.grpc.Config.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,ConfigOrBuilder
,Cloneable
- Enclosing class:
- Config
public static final class Config.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
implements ConfigOrBuilder
Protobuf type
Config
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
.EnumAction action = 2;
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) bool isReadRequests = 7;
bool isWriteRequests = 6;
int64 maxLatency = 5;
int64 minLatency = 4;
clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) string storageName = 1;
.EnumTimeUnit timeUnit = 3;
clone()
.EnumAction action = 2;
int
.EnumAction action = 2;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
bool isReadRequests = 7;
boolean
bool isWriteRequests = 6;
long
int64 maxLatency = 5;
long
int64 minLatency = 4;
string storageName = 1;
com.google.protobuf.ByteString
string storageName = 1;
.EnumTimeUnit timeUnit = 3;
int
.EnumTimeUnit timeUnit = 3;
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) final Config.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setAction
(EnumAction value) .EnumAction action = 2;
setActionValue
(int value) .EnumAction action = 2;
setIsReadRequests
(boolean value) bool isReadRequests = 7;
setIsWriteRequests
(boolean value) bool isWriteRequests = 6;
setMaxLatency
(long value) int64 maxLatency = 5;
setMinLatency
(long value) int64 minLatency = 4;
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStorageName
(String value) string storageName = 1;
setStorageNameBytes
(com.google.protobuf.ByteString value) string storageName = 1;
setTimeUnit
(EnumTimeUnit value) .EnumTimeUnit timeUnit = 3;
setTimeUnitValue
(int value) .EnumTimeUnit timeUnit = 3;
final Config.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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<Config.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<Config.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<Config.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<Config.Builder>
-
setField
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
-
setRepeatedField
public Config.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<Config.Builder>
-
addRepeatedField
public Config.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<Config.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Config.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
-
mergeFrom
public Config.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<Config.Builder>
- Throws:
IOException
-
getStorageName
string storageName = 1;
- Specified by:
getStorageName
in interfaceConfigOrBuilder
- Returns:
- The storageName.
-
getStorageNameBytes
public com.google.protobuf.ByteString getStorageNameBytes()string storageName = 1;
- Specified by:
getStorageNameBytes
in interfaceConfigOrBuilder
- Returns:
- The bytes for storageName.
-
setStorageName
string storageName = 1;
- Parameters:
value
- The storageName to set.- Returns:
- This builder for chaining.
-
clearStorageName
string storageName = 1;
- Returns:
- This builder for chaining.
-
setStorageNameBytes
string storageName = 1;
- Parameters:
value
- The bytes for storageName to set.- Returns:
- This builder for chaining.
-
getActionValue
public int getActionValue().EnumAction action = 2;
- Specified by:
getActionValue
in interfaceConfigOrBuilder
- Returns:
- The enum numeric value on the wire for action.
-
setActionValue
.EnumAction action = 2;
- Parameters:
value
- The enum numeric value on the wire for action to set.- Returns:
- This builder for chaining.
-
getAction
.EnumAction action = 2;
- Specified by:
getAction
in interfaceConfigOrBuilder
- Returns:
- The action.
-
setAction
.EnumAction action = 2;
- Parameters:
value
- The action to set.- Returns:
- This builder for chaining.
-
clearAction
.EnumAction action = 2;
- Returns:
- This builder for chaining.
-
getTimeUnitValue
public int getTimeUnitValue().EnumTimeUnit timeUnit = 3;
- Specified by:
getTimeUnitValue
in interfaceConfigOrBuilder
- Returns:
- The enum numeric value on the wire for timeUnit.
-
setTimeUnitValue
.EnumTimeUnit timeUnit = 3;
- Parameters:
value
- The enum numeric value on the wire for timeUnit to set.- Returns:
- This builder for chaining.
-
getTimeUnit
.EnumTimeUnit timeUnit = 3;
- Specified by:
getTimeUnit
in interfaceConfigOrBuilder
- Returns:
- The timeUnit.
-
setTimeUnit
.EnumTimeUnit timeUnit = 3;
- Parameters:
value
- The timeUnit to set.- Returns:
- This builder for chaining.
-
clearTimeUnit
.EnumTimeUnit timeUnit = 3;
- Returns:
- This builder for chaining.
-
getMinLatency
public long getMinLatency()int64 minLatency = 4;
- Specified by:
getMinLatency
in interfaceConfigOrBuilder
- Returns:
- The minLatency.
-
setMinLatency
int64 minLatency = 4;
- Parameters:
value
- The minLatency to set.- Returns:
- This builder for chaining.
-
clearMinLatency
int64 minLatency = 4;
- Returns:
- This builder for chaining.
-
getMaxLatency
public long getMaxLatency()int64 maxLatency = 5;
- Specified by:
getMaxLatency
in interfaceConfigOrBuilder
- Returns:
- The maxLatency.
-
setMaxLatency
int64 maxLatency = 5;
- Parameters:
value
- The maxLatency to set.- Returns:
- This builder for chaining.
-
clearMaxLatency
int64 maxLatency = 5;
- Returns:
- This builder for chaining.
-
getIsWriteRequests
public boolean getIsWriteRequests()bool isWriteRequests = 6;
- Specified by:
getIsWriteRequests
in interfaceConfigOrBuilder
- Returns:
- The isWriteRequests.
-
setIsWriteRequests
bool isWriteRequests = 6;
- Parameters:
value
- The isWriteRequests to set.- Returns:
- This builder for chaining.
-
clearIsWriteRequests
bool isWriteRequests = 6;
- Returns:
- This builder for chaining.
-
getIsReadRequests
public boolean getIsReadRequests()bool isReadRequests = 7;
- Specified by:
getIsReadRequests
in interfaceConfigOrBuilder
- Returns:
- The isReadRequests.
-
setIsReadRequests
bool isReadRequests = 7;
- Parameters:
value
- The isReadRequests to set.- Returns:
- This builder for chaining.
-
clearIsReadRequests
bool isReadRequests = 7;
- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
-