Package io.hstream.internal
Class Shard.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Shard.Builder>
-
- io.hstream.internal.Shard.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,ShardOrBuilder
,Cloneable
- Enclosing class:
- Shard
public static final class Shard.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Shard.Builder> implements ShardOrBuilder
Protobuf typehstream.server.Shard
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Shard
build()
Shard
buildPartial()
Shard.Builder
clear()
Shard.Builder
clearEndHashRangeKey()
string endHashRangeKey = 4;
Shard.Builder
clearEpoch()
uint64 epoch = 5;
Shard.Builder
clearIsActive()
bool isActive = 6;
Shard.Builder
clearShardId()
uint64 shardId = 2;
Shard.Builder
clearStartHashRangeKey()
string startHashRangeKey = 3;
Shard.Builder
clearStreamName()
string streamName = 1;
Shard
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getEndHashRangeKey()
string endHashRangeKey = 4;
com.google.protobuf.ByteString
getEndHashRangeKeyBytes()
string endHashRangeKey = 4;
long
getEpoch()
uint64 epoch = 5;
boolean
getIsActive()
bool isActive = 6;
long
getShardId()
uint64 shardId = 2;
String
getStartHashRangeKey()
string startHashRangeKey = 3;
com.google.protobuf.ByteString
getStartHashRangeKeyBytes()
string startHashRangeKey = 3;
String
getStreamName()
string streamName = 1;
com.google.protobuf.ByteString
getStreamNameBytes()
string streamName = 1;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Shard.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Shard.Builder
mergeFrom(com.google.protobuf.Message other)
Shard.Builder
mergeFrom(Shard other)
Shard.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Shard.Builder
setEndHashRangeKey(String value)
string endHashRangeKey = 4;
Shard.Builder
setEndHashRangeKeyBytes(com.google.protobuf.ByteString value)
string endHashRangeKey = 4;
Shard.Builder
setEpoch(long value)
uint64 epoch = 5;
Shard.Builder
setIsActive(boolean value)
bool isActive = 6;
Shard.Builder
setShardId(long value)
uint64 shardId = 2;
Shard.Builder
setStartHashRangeKey(String value)
string startHashRangeKey = 3;
Shard.Builder
setStartHashRangeKeyBytes(com.google.protobuf.ByteString value)
string startHashRangeKey = 3;
Shard.Builder
setStreamName(String value)
string streamName = 1;
Shard.Builder
setStreamNameBytes(com.google.protobuf.ByteString value)
string streamName = 1;
Shard.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, 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<Shard.Builder>
-
clear
public Shard.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<Shard.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<Shard.Builder>
-
getDefaultInstanceForType
public Shard getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Shard build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Shard buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public Shard.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Shard.Builder>
-
mergeFrom
public Shard.Builder mergeFrom(Shard other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Shard.Builder>
-
mergeFrom
public Shard.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<Shard.Builder>
- Throws:
IOException
-
getStreamName
public String getStreamName()
string streamName = 1;
- Specified by:
getStreamName
in interfaceShardOrBuilder
- Returns:
- The streamName.
-
getStreamNameBytes
public com.google.protobuf.ByteString getStreamNameBytes()
string streamName = 1;
- Specified by:
getStreamNameBytes
in interfaceShardOrBuilder
- Returns:
- The bytes for streamName.
-
setStreamName
public Shard.Builder setStreamName(String value)
string streamName = 1;
- Parameters:
value
- The streamName to set.- Returns:
- This builder for chaining.
-
clearStreamName
public Shard.Builder clearStreamName()
string streamName = 1;
- Returns:
- This builder for chaining.
-
setStreamNameBytes
public Shard.Builder setStreamNameBytes(com.google.protobuf.ByteString value)
string streamName = 1;
- Parameters:
value
- The bytes for streamName to set.- Returns:
- This builder for chaining.
-
getShardId
public long getShardId()
uint64 shardId = 2;
- Specified by:
getShardId
in interfaceShardOrBuilder
- Returns:
- The shardId.
-
setShardId
public Shard.Builder setShardId(long value)
uint64 shardId = 2;
- Parameters:
value
- The shardId to set.- Returns:
- This builder for chaining.
-
clearShardId
public Shard.Builder clearShardId()
uint64 shardId = 2;
- Returns:
- This builder for chaining.
-
getStartHashRangeKey
public String getStartHashRangeKey()
string startHashRangeKey = 3;
- Specified by:
getStartHashRangeKey
in interfaceShardOrBuilder
- Returns:
- The startHashRangeKey.
-
getStartHashRangeKeyBytes
public com.google.protobuf.ByteString getStartHashRangeKeyBytes()
string startHashRangeKey = 3;
- Specified by:
getStartHashRangeKeyBytes
in interfaceShardOrBuilder
- Returns:
- The bytes for startHashRangeKey.
-
setStartHashRangeKey
public Shard.Builder setStartHashRangeKey(String value)
string startHashRangeKey = 3;
- Parameters:
value
- The startHashRangeKey to set.- Returns:
- This builder for chaining.
-
clearStartHashRangeKey
public Shard.Builder clearStartHashRangeKey()
string startHashRangeKey = 3;
- Returns:
- This builder for chaining.
-
setStartHashRangeKeyBytes
public Shard.Builder setStartHashRangeKeyBytes(com.google.protobuf.ByteString value)
string startHashRangeKey = 3;
- Parameters:
value
- The bytes for startHashRangeKey to set.- Returns:
- This builder for chaining.
-
getEndHashRangeKey
public String getEndHashRangeKey()
string endHashRangeKey = 4;
- Specified by:
getEndHashRangeKey
in interfaceShardOrBuilder
- Returns:
- The endHashRangeKey.
-
getEndHashRangeKeyBytes
public com.google.protobuf.ByteString getEndHashRangeKeyBytes()
string endHashRangeKey = 4;
- Specified by:
getEndHashRangeKeyBytes
in interfaceShardOrBuilder
- Returns:
- The bytes for endHashRangeKey.
-
setEndHashRangeKey
public Shard.Builder setEndHashRangeKey(String value)
string endHashRangeKey = 4;
- Parameters:
value
- The endHashRangeKey to set.- Returns:
- This builder for chaining.
-
clearEndHashRangeKey
public Shard.Builder clearEndHashRangeKey()
string endHashRangeKey = 4;
- Returns:
- This builder for chaining.
-
setEndHashRangeKeyBytes
public Shard.Builder setEndHashRangeKeyBytes(com.google.protobuf.ByteString value)
string endHashRangeKey = 4;
- Parameters:
value
- The bytes for endHashRangeKey to set.- Returns:
- This builder for chaining.
-
getEpoch
public long getEpoch()
uint64 epoch = 5;
- Specified by:
getEpoch
in interfaceShardOrBuilder
- Returns:
- The epoch.
-
setEpoch
public Shard.Builder setEpoch(long value)
uint64 epoch = 5;
- Parameters:
value
- The epoch to set.- Returns:
- This builder for chaining.
-
clearEpoch
public Shard.Builder clearEpoch()
uint64 epoch = 5;
- Returns:
- This builder for chaining.
-
getIsActive
public boolean getIsActive()
bool isActive = 6;
- Specified by:
getIsActive
in interfaceShardOrBuilder
- Returns:
- The isActive.
-
setIsActive
public Shard.Builder setIsActive(boolean value)
bool isActive = 6;
- Parameters:
value
- The isActive to set.- Returns:
- This builder for chaining.
-
clearIsActive
public Shard.Builder clearIsActive()
bool isActive = 6;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final Shard.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Shard.Builder>
-
mergeUnknownFields
public final Shard.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Shard.Builder>
-
-