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
 Store
 
Protobuf type dingodb.pb.common.Store
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
    • clear

      public Common.Store.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
    • getDefaultInstanceForType

      public Common.Store getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Common.Store build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Common.Store buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Common.Store.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
    • setField

      public Common.Store.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
    • clearField

      public Common.Store.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
    • clearOneof

      public Common.Store.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
    • addRepeatedField

      public Common.Store.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
    • mergeFrom

      public Common.Store.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Common.Store.Builder>
    • mergeFrom

      public Common.Store.Builder mergeFrom(Common.Store other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Common.Store.Builder>
      Throws:
      IOException
    • getId

      public long getId()
       only updated by coordinator
       
      int64 id = 1;
      Specified by:
      getId in interface Common.StoreOrBuilder
      Returns:
      The id.
    • setId

      public Common.Store.Builder setId(long value)
       only updated by coordinator
       
      int64 id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Common.Store.Builder 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:
      getEpoch in interface Common.StoreOrBuilder
      Returns:
      The epoch.
    • setEpoch

      public Common.Store.Builder setEpoch(long value)
       only updated by coordinator
       
      int64 epoch = 2;
      Parameters:
      value - The epoch to set.
      Returns:
      This builder for chaining.
    • clearEpoch

      public Common.Store.Builder 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:
      getStateValue in interface Common.StoreOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Common.Store.Builder setStateValue(int value)
       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

      public Common.StoreState getState()
       only updated by coordinator
       
      .dingodb.pb.common.StoreState state = 3;
      Specified by:
      getState in interface Common.StoreOrBuilder
      Returns:
      The state.
    • setState

      public Common.Store.Builder setState(Common.StoreState value)
       only updated by coordinator
       
      .dingodb.pb.common.StoreState state = 3;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Common.Store.Builder 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:
      getInStateValue in interface Common.StoreOrBuilder
      Returns:
      The enum numeric value on the wire for inState.
    • setInStateValue

      public Common.Store.Builder setInStateValue(int value)
       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

      public Common.StoreInState getInState()
       only updated by coordinator
       
      .dingodb.pb.common.StoreInState in_state = 4;
      Specified by:
      getInState in interface Common.StoreOrBuilder
      Returns:
      The inState.
    • setInState

      public Common.Store.Builder setInState(Common.StoreInState value)
       only updated by coordinator
       
      .dingodb.pb.common.StoreInState in_state = 4;
      Parameters:
      value - The inState to set.
      Returns:
      This builder for chaining.
    • clearInState

      public Common.Store.Builder 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:
      hasServerLocation in interface Common.StoreOrBuilder
      Returns:
      Whether the serverLocation field is set.
    • getServerLocation

      public Common.Location getServerLocation()
       store can only update this field in the first heartbeat
       
      .dingodb.pb.common.Location server_location = 5;
      Specified by:
      getServerLocation in interface Common.StoreOrBuilder
      Returns:
      The serverLocation.
    • setServerLocation

      public Common.Store.Builder setServerLocation(Common.Location value)
       store can only update this field in the first heartbeat
       
      .dingodb.pb.common.Location server_location = 5;
    • setServerLocation

      public Common.Store.Builder setServerLocation(Common.Location.Builder builderForValue)
       store can only update this field in the first heartbeat
       
      .dingodb.pb.common.Location server_location = 5;
    • mergeServerLocation

      public Common.Store.Builder mergeServerLocation(Common.Location value)
       store can only update this field in the first heartbeat
       
      .dingodb.pb.common.Location server_location = 5;
    • clearServerLocation

      public Common.Store.Builder clearServerLocation()
       store can only update this field in the first heartbeat
       
      .dingodb.pb.common.Location server_location = 5;
    • getServerLocationBuilder

      public Common.Location.Builder getServerLocationBuilder()
       store can only update this field in the first heartbeat
       
      .dingodb.pb.common.Location server_location = 5;
    • getServerLocationOrBuilder

      public Common.LocationOrBuilder getServerLocationOrBuilder()
       store can only update this field in the first heartbeat
       
      .dingodb.pb.common.Location server_location = 5;
      Specified by:
      getServerLocationOrBuilder in interface Common.StoreOrBuilder
    • hasRaftLocation

      public boolean hasRaftLocation()
       store can only update this field in the first heartbeat
       
      .dingodb.pb.common.Location raft_location = 6;
      Specified by:
      hasRaftLocation in interface Common.StoreOrBuilder
      Returns:
      Whether the raftLocation field is set.
    • getRaftLocation

      public Common.Location getRaftLocation()
       store can only update this field in the first heartbeat
       
      .dingodb.pb.common.Location raft_location = 6;
      Specified by:
      getRaftLocation in interface Common.StoreOrBuilder
      Returns:
      The raftLocation.
    • setRaftLocation

      public Common.Store.Builder setRaftLocation(Common.Location value)
       store can only update this field in the first heartbeat
       
      .dingodb.pb.common.Location raft_location = 6;
    • setRaftLocation

      public Common.Store.Builder setRaftLocation(Common.Location.Builder builderForValue)
       store can only update this field in the first heartbeat
       
      .dingodb.pb.common.Location raft_location = 6;
    • mergeRaftLocation

      public Common.Store.Builder mergeRaftLocation(Common.Location value)
       store can only update this field in the first heartbeat
       
      .dingodb.pb.common.Location raft_location = 6;
    • clearRaftLocation

      public Common.Store.Builder clearRaftLocation()
       store can only update this field in the first heartbeat
       
      .dingodb.pb.common.Location raft_location = 6;
    • getRaftLocationBuilder

      public Common.Location.Builder getRaftLocationBuilder()
       store can only update this field in the first heartbeat
       
      .dingodb.pb.common.Location raft_location = 6;
    • getRaftLocationOrBuilder

      public Common.LocationOrBuilder getRaftLocationOrBuilder()
       store can only update this field in the first heartbeat
       
      .dingodb.pb.common.Location raft_location = 6;
      Specified by:
      getRaftLocationOrBuilder in interface Common.StoreOrBuilder
    • getResourceTag

      public String getResourceTag()
       only updated by coordinator
       
      string resource_tag = 7;
      Specified by:
      getResourceTag in interface Common.StoreOrBuilder
      Returns:
      The resourceTag.
    • getResourceTagBytes

      public com.google.protobuf.ByteString getResourceTagBytes()
       only updated by coordinator
       
      string resource_tag = 7;
      Specified by:
      getResourceTagBytes in interface Common.StoreOrBuilder
      Returns:
      The bytes for resourceTag.
    • setResourceTag

      public Common.Store.Builder setResourceTag(String value)
       only updated by coordinator
       
      string resource_tag = 7;
      Parameters:
      value - The resourceTag to set.
      Returns:
      This builder for chaining.
    • clearResourceTag

      public Common.Store.Builder clearResourceTag()
       only updated by coordinator
       
      string resource_tag = 7;
      Returns:
      This builder for chaining.
    • setResourceTagBytes

      public Common.Store.Builder setResourceTagBytes(com.google.protobuf.ByteString value)
       only updated by coordinator
       
      string resource_tag = 7;
      Parameters:
      value - The bytes for resourceTag to set.
      Returns:
      This builder for chaining.
    • getKeyring

      public String getKeyring()
       only updated by coordinator
       
      string keyring = 8;
      Specified by:
      getKeyring in interface Common.StoreOrBuilder
      Returns:
      The keyring.
    • getKeyringBytes

      public com.google.protobuf.ByteString getKeyringBytes()
       only updated by coordinator
       
      string keyring = 8;
      Specified by:
      getKeyringBytes in interface Common.StoreOrBuilder
      Returns:
      The bytes for keyring.
    • setKeyring

      public Common.Store.Builder setKeyring(String value)
       only updated by coordinator
       
      string keyring = 8;
      Parameters:
      value - The keyring to set.
      Returns:
      This builder for chaining.
    • clearKeyring

      public Common.Store.Builder clearKeyring()
       only updated by coordinator
       
      string keyring = 8;
      Returns:
      This builder for chaining.
    • setKeyringBytes

      public Common.Store.Builder setKeyringBytes(com.google.protobuf.ByteString value)
       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:
      getCreateTimestamp in interface Common.StoreOrBuilder
      Returns:
      The createTimestamp.
    • setCreateTimestamp

      public Common.Store.Builder setCreateTimestamp(long value)
       only updated by coordinator
       
      int64 create_timestamp = 9;
      Parameters:
      value - The createTimestamp to set.
      Returns:
      This builder for chaining.
    • clearCreateTimestamp

      public Common.Store.Builder 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:
      getLastSeenTimestamp in interface Common.StoreOrBuilder
      Returns:
      The lastSeenTimestamp.
    • setLastSeenTimestamp

      public Common.Store.Builder setLastSeenTimestamp(long value)
       only updated by coordinator
       
      int64 last_seen_timestamp = 10;
      Parameters:
      value - The lastSeenTimestamp to set.
      Returns:
      This builder for chaining.
    • clearLastSeenTimestamp

      public Common.Store.Builder 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:
      getStoreTypeValue in interface Common.StoreOrBuilder
      Returns:
      The enum numeric value on the wire for storeType.
    • setStoreTypeValue

      public Common.Store.Builder setStoreTypeValue(int value)
       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

      public Common.StoreType getStoreType()
       store type
       
      .dingodb.pb.common.StoreType store_type = 11;
      Specified by:
      getStoreType in interface Common.StoreOrBuilder
      Returns:
      The storeType.
    • setStoreType

      public Common.Store.Builder setStoreType(Common.StoreType value)
       store type
       
      .dingodb.pb.common.StoreType store_type = 11;
      Parameters:
      value - The storeType to set.
      Returns:
      This builder for chaining.
    • clearStoreType

      public Common.Store.Builder 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:
      getLeaderNumWeight in interface Common.StoreOrBuilder
      Returns:
      The leaderNumWeight.
    • setLeaderNumWeight

      public Common.Store.Builder setLeaderNumWeight(int value)
      int32 leader_num_weight = 20;
      Parameters:
      value - The leaderNumWeight to set.
      Returns:
      This builder for chaining.
    • clearLeaderNumWeight

      public Common.Store.Builder 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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>
    • mergeUnknownFields

      public final Common.Store.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Common.Store.Builder>