Package io.dingodb.common
Class Common.Store.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
io.dingodb.common.Common.Store.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Common.StoreOrBuilder,Cloneable
- Enclosing class:
- Common.Store
public static final class Common.Store.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
implements Common.StoreOrBuilder
StoreProtobuf type
dingodb.pb.common.Store-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()only updated by coordinatoronly updated by coordinatorclearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearId()only updated by coordinatoronly updated by coordinatoronly updated by coordinatoronly updated by coordinatorint32 leader_num_weight = 20;clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) store can only update this field in the first heartbeatonly updated by coordinatorstore can only update this field in the first heartbeatonly updated by coordinatorstore typeclone()longonly updated by coordinatorstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlonggetEpoch()only updated by coordinatorlonggetId()only updated by coordinatoronly updated by coordinatorintonly updated by coordinatoronly updated by coordinatorcom.google.protobuf.ByteStringonly updated by coordinatorlongonly updated by coordinatorintint32 leader_num_weight = 20;store can only update this field in the first heartbeatstore can only update this field in the first heartbeatstore can only update this field in the first heartbeatonly updated by coordinatorcom.google.protobuf.ByteStringonly updated by coordinatorstore can only update this field in the first heartbeatstore can only update this field in the first heartbeatstore can only update this field in the first heartbeatgetState()only updated by coordinatorintonly updated by coordinatorstore typeintstore typebooleanstore can only update this field in the first heartbeatbooleanstore can only update this field in the first heartbeatprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Common.Store other) mergeRaftLocation(Common.Location value) store can only update this field in the first heartbeatstore can only update this field in the first heartbeatfinal Common.Store.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCreateTimestamp(long value) only updated by coordinatorsetEpoch(long value) only updated by coordinatorsetId(long value) only updated by coordinatorsetInState(Common.StoreInState value) only updated by coordinatorsetInStateValue(int value) only updated by coordinatorsetKeyring(String value) only updated by coordinatorsetKeyringBytes(com.google.protobuf.ByteString value) only updated by coordinatorsetLastSeenTimestamp(long value) only updated by coordinatorsetLeaderNumWeight(int value) int32 leader_num_weight = 20;setRaftLocation(Common.Location value) store can only update this field in the first heartbeatsetRaftLocation(Common.Location.Builder builderForValue) store can only update this field in the first heartbeatsetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResourceTag(String value) only updated by coordinatorsetResourceTagBytes(com.google.protobuf.ByteString value) only updated by coordinatorsetServerLocation(Common.Location value) store can only update this field in the first heartbeatsetServerLocation(Common.Location.Builder builderForValue) store can only update this field in the first heartbeatsetState(Common.StoreState value) only updated by coordinatorsetStateValue(int value) only updated by coordinatorsetStoreType(Common.StoreType value) store typesetStoreTypeValue(int value) store typefinal Common.Store.BuildersetUnknownFields(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
-
setField
public Common.Store.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
-
setRepeatedField
public Common.Store.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
-
addRepeatedField
public Common.Store.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Common.Store.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
-
mergeFrom
public Common.Store.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Common.Store.Builder>- Throws:
IOException
-
getId
public long getId()only updated by coordinator
int64 id = 1;- Specified by:
getIdin interfaceCommon.StoreOrBuilder- Returns:
- The id.
-
setId
only updated by coordinator
int64 id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
only updated by coordinator
int64 id = 1;- Returns:
- This builder for chaining.
-
getEpoch
public long getEpoch()only updated by coordinator
int64 epoch = 2;- Specified by:
getEpochin interfaceCommon.StoreOrBuilder- Returns:
- The epoch.
-
setEpoch
only updated by coordinator
int64 epoch = 2;- Parameters:
value- The epoch to set.- Returns:
- This builder for chaining.
-
clearEpoch
only updated by coordinator
int64 epoch = 2;- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()only updated by coordinator
.dingodb.pb.common.StoreState state = 3;- Specified by:
getStateValuein interfaceCommon.StoreOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
only updated by coordinator
.dingodb.pb.common.StoreState state = 3;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
only updated by coordinator
.dingodb.pb.common.StoreState state = 3;- Specified by:
getStatein interfaceCommon.StoreOrBuilder- Returns:
- The state.
-
setState
only updated by coordinator
.dingodb.pb.common.StoreState state = 3;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
only updated by coordinator
.dingodb.pb.common.StoreState state = 3;- Returns:
- This builder for chaining.
-
getInStateValue
public int getInStateValue()only updated by coordinator
.dingodb.pb.common.StoreInState in_state = 4;- Specified by:
getInStateValuein interfaceCommon.StoreOrBuilder- Returns:
- The enum numeric value on the wire for inState.
-
setInStateValue
only updated by coordinator
.dingodb.pb.common.StoreInState in_state = 4;- Parameters:
value- The enum numeric value on the wire for inState to set.- Returns:
- This builder for chaining.
-
getInState
only updated by coordinator
.dingodb.pb.common.StoreInState in_state = 4;- Specified by:
getInStatein interfaceCommon.StoreOrBuilder- Returns:
- The inState.
-
setInState
only updated by coordinator
.dingodb.pb.common.StoreInState in_state = 4;- Parameters:
value- The inState to set.- Returns:
- This builder for chaining.
-
clearInState
only updated by coordinator
.dingodb.pb.common.StoreInState in_state = 4;- Returns:
- This builder for chaining.
-
hasServerLocation
public boolean hasServerLocation()store can only update this field in the first heartbeat
.dingodb.pb.common.Location server_location = 5;- Specified by:
hasServerLocationin interfaceCommon.StoreOrBuilder- Returns:
- Whether the serverLocation field is set.
-
getServerLocation
store can only update this field in the first heartbeat
.dingodb.pb.common.Location server_location = 5;- Specified by:
getServerLocationin interfaceCommon.StoreOrBuilder- Returns:
- The serverLocation.
-
setServerLocation
store can only update this field in the first heartbeat
.dingodb.pb.common.Location server_location = 5; -
setServerLocation
store can only update this field in the first heartbeat
.dingodb.pb.common.Location server_location = 5; -
mergeServerLocation
store can only update this field in the first heartbeat
.dingodb.pb.common.Location server_location = 5; -
clearServerLocation
store can only update this field in the first heartbeat
.dingodb.pb.common.Location server_location = 5; -
getServerLocationBuilder
store can only update this field in the first heartbeat
.dingodb.pb.common.Location server_location = 5; -
getServerLocationOrBuilder
store can only update this field in the first heartbeat
.dingodb.pb.common.Location server_location = 5;- Specified by:
getServerLocationOrBuilderin interfaceCommon.StoreOrBuilder
-
hasRaftLocation
public boolean hasRaftLocation()store can only update this field in the first heartbeat
.dingodb.pb.common.Location raft_location = 6;- Specified by:
hasRaftLocationin interfaceCommon.StoreOrBuilder- Returns:
- Whether the raftLocation field is set.
-
getRaftLocation
store can only update this field in the first heartbeat
.dingodb.pb.common.Location raft_location = 6;- Specified by:
getRaftLocationin interfaceCommon.StoreOrBuilder- Returns:
- The raftLocation.
-
setRaftLocation
store can only update this field in the first heartbeat
.dingodb.pb.common.Location raft_location = 6; -
setRaftLocation
store can only update this field in the first heartbeat
.dingodb.pb.common.Location raft_location = 6; -
mergeRaftLocation
store can only update this field in the first heartbeat
.dingodb.pb.common.Location raft_location = 6; -
clearRaftLocation
store can only update this field in the first heartbeat
.dingodb.pb.common.Location raft_location = 6; -
getRaftLocationBuilder
store can only update this field in the first heartbeat
.dingodb.pb.common.Location raft_location = 6; -
getRaftLocationOrBuilder
store can only update this field in the first heartbeat
.dingodb.pb.common.Location raft_location = 6;- Specified by:
getRaftLocationOrBuilderin interfaceCommon.StoreOrBuilder
-
getResourceTag
only updated by coordinator
string resource_tag = 7;- Specified by:
getResourceTagin interfaceCommon.StoreOrBuilder- Returns:
- The resourceTag.
-
getResourceTagBytes
public com.google.protobuf.ByteString getResourceTagBytes()only updated by coordinator
string resource_tag = 7;- Specified by:
getResourceTagBytesin interfaceCommon.StoreOrBuilder- Returns:
- The bytes for resourceTag.
-
setResourceTag
only updated by coordinator
string resource_tag = 7;- Parameters:
value- The resourceTag to set.- Returns:
- This builder for chaining.
-
clearResourceTag
only updated by coordinator
string resource_tag = 7;- Returns:
- This builder for chaining.
-
setResourceTagBytes
only updated by coordinator
string resource_tag = 7;- Parameters:
value- The bytes for resourceTag to set.- Returns:
- This builder for chaining.
-
getKeyring
only updated by coordinator
string keyring = 8;- Specified by:
getKeyringin interfaceCommon.StoreOrBuilder- Returns:
- The keyring.
-
getKeyringBytes
public com.google.protobuf.ByteString getKeyringBytes()only updated by coordinator
string keyring = 8;- Specified by:
getKeyringBytesin interfaceCommon.StoreOrBuilder- Returns:
- The bytes for keyring.
-
setKeyring
only updated by coordinator
string keyring = 8;- Parameters:
value- The keyring to set.- Returns:
- This builder for chaining.
-
clearKeyring
only updated by coordinator
string keyring = 8;- Returns:
- This builder for chaining.
-
setKeyringBytes
only updated by coordinator
string keyring = 8;- Parameters:
value- The bytes for keyring to set.- Returns:
- This builder for chaining.
-
getCreateTimestamp
public long getCreateTimestamp()only updated by coordinator
int64 create_timestamp = 9;- Specified by:
getCreateTimestampin interfaceCommon.StoreOrBuilder- Returns:
- The createTimestamp.
-
setCreateTimestamp
only updated by coordinator
int64 create_timestamp = 9;- Parameters:
value- The createTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreateTimestamp
only updated by coordinator
int64 create_timestamp = 9;- Returns:
- This builder for chaining.
-
getLastSeenTimestamp
public long getLastSeenTimestamp()only updated by coordinator
int64 last_seen_timestamp = 10;- Specified by:
getLastSeenTimestampin interfaceCommon.StoreOrBuilder- Returns:
- The lastSeenTimestamp.
-
setLastSeenTimestamp
only updated by coordinator
int64 last_seen_timestamp = 10;- Parameters:
value- The lastSeenTimestamp to set.- Returns:
- This builder for chaining.
-
clearLastSeenTimestamp
only updated by coordinator
int64 last_seen_timestamp = 10;- Returns:
- This builder for chaining.
-
getStoreTypeValue
public int getStoreTypeValue()store type
.dingodb.pb.common.StoreType store_type = 11;- Specified by:
getStoreTypeValuein interfaceCommon.StoreOrBuilder- Returns:
- The enum numeric value on the wire for storeType.
-
setStoreTypeValue
store type
.dingodb.pb.common.StoreType store_type = 11;- Parameters:
value- The enum numeric value on the wire for storeType to set.- Returns:
- This builder for chaining.
-
getStoreType
store type
.dingodb.pb.common.StoreType store_type = 11;- Specified by:
getStoreTypein interfaceCommon.StoreOrBuilder- Returns:
- The storeType.
-
setStoreType
store type
.dingodb.pb.common.StoreType store_type = 11;- Parameters:
value- The storeType to set.- Returns:
- This builder for chaining.
-
clearStoreType
store type
.dingodb.pb.common.StoreType store_type = 11;- Returns:
- This builder for chaining.
-
getLeaderNumWeight
public int getLeaderNumWeight()int32 leader_num_weight = 20;- Specified by:
getLeaderNumWeightin interfaceCommon.StoreOrBuilder- Returns:
- The leaderNumWeight.
-
setLeaderNumWeight
int32 leader_num_weight = 20;- Parameters:
value- The leaderNumWeight to set.- Returns:
- This builder for chaining.
-
clearLeaderNumWeight
int32 leader_num_weight = 20;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Common.Store.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
-
mergeUnknownFields
public final Common.Store.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
-