Class Common.Peer.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Common.Peer.Builder>
io.dingodb.common.Common.Peer.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Common.PeerOrBuilder, Cloneable
Enclosing class:
Common.Peer

public static final class Common.Peer.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Common.Peer.Builder> implements Common.PeerOrBuilder
Protobuf type dingodb.pb.common.Peer
  • 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.Peer.Builder>
    • clear

      public Common.Peer.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.Peer.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.Peer.Builder>
    • getDefaultInstanceForType

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

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

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

      public Common.Peer.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.Peer.Builder>
    • setField

      public Common.Peer.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.Peer.Builder>
    • clearField

      public Common.Peer.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.Peer.Builder>
    • clearOneof

      public Common.Peer.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.Peer.Builder>
    • setRepeatedField

      public Common.Peer.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.Peer.Builder>
    • addRepeatedField

      public Common.Peer.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.Peer.Builder>
    • mergeFrom

      public Common.Peer.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.Peer.Builder>
    • mergeFrom

      public Common.Peer.Builder mergeFrom(Common.Peer 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.Peer.Builder>
    • mergeFrom

      public Common.Peer.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.Peer.Builder>
      Throws:
      IOException
    • getStoreId

      public long getStoreId()
      int64 store_id = 1;
      Specified by:
      getStoreId in interface Common.PeerOrBuilder
      Returns:
      The storeId.
    • setStoreId

      public Common.Peer.Builder setStoreId(long value)
      int64 store_id = 1;
      Parameters:
      value - The storeId to set.
      Returns:
      This builder for chaining.
    • clearStoreId

      public Common.Peer.Builder clearStoreId()
      int64 store_id = 1;
      Returns:
      This builder for chaining.
    • getRoleValue

      public int getRoleValue()
      .dingodb.pb.common.PeerRole role = 2;
      Specified by:
      getRoleValue in interface Common.PeerOrBuilder
      Returns:
      The enum numeric value on the wire for role.
    • setRoleValue

      public Common.Peer.Builder setRoleValue(int value)
      .dingodb.pb.common.PeerRole role = 2;
      Parameters:
      value - The enum numeric value on the wire for role to set.
      Returns:
      This builder for chaining.
    • getRole

      public Common.PeerRole getRole()
      .dingodb.pb.common.PeerRole role = 2;
      Specified by:
      getRole in interface Common.PeerOrBuilder
      Returns:
      The role.
    • setRole

      public Common.Peer.Builder setRole(Common.PeerRole value)
      .dingodb.pb.common.PeerRole role = 2;
      Parameters:
      value - The role to set.
      Returns:
      This builder for chaining.
    • clearRole

      public Common.Peer.Builder clearRole()
      .dingodb.pb.common.PeerRole role = 2;
      Returns:
      This builder for chaining.
    • hasServerLocation

      public boolean hasServerLocation()
      .dingodb.pb.common.Location server_location = 3;
      Specified by:
      hasServerLocation in interface Common.PeerOrBuilder
      Returns:
      Whether the serverLocation field is set.
    • getServerLocation

      public Common.Location getServerLocation()
      .dingodb.pb.common.Location server_location = 3;
      Specified by:
      getServerLocation in interface Common.PeerOrBuilder
      Returns:
      The serverLocation.
    • setServerLocation

      public Common.Peer.Builder setServerLocation(Common.Location value)
      .dingodb.pb.common.Location server_location = 3;
    • setServerLocation

      public Common.Peer.Builder setServerLocation(Common.Location.Builder builderForValue)
      .dingodb.pb.common.Location server_location = 3;
    • mergeServerLocation

      public Common.Peer.Builder mergeServerLocation(Common.Location value)
      .dingodb.pb.common.Location server_location = 3;
    • clearServerLocation

      public Common.Peer.Builder clearServerLocation()
      .dingodb.pb.common.Location server_location = 3;
    • getServerLocationBuilder

      public Common.Location.Builder getServerLocationBuilder()
      .dingodb.pb.common.Location server_location = 3;
    • getServerLocationOrBuilder

      public Common.LocationOrBuilder getServerLocationOrBuilder()
      .dingodb.pb.common.Location server_location = 3;
      Specified by:
      getServerLocationOrBuilder in interface Common.PeerOrBuilder
    • hasRaftLocation

      public boolean hasRaftLocation()
      .dingodb.pb.common.Location raft_location = 4;
      Specified by:
      hasRaftLocation in interface Common.PeerOrBuilder
      Returns:
      Whether the raftLocation field is set.
    • getRaftLocation

      public Common.Location getRaftLocation()
      .dingodb.pb.common.Location raft_location = 4;
      Specified by:
      getRaftLocation in interface Common.PeerOrBuilder
      Returns:
      The raftLocation.
    • setRaftLocation

      public Common.Peer.Builder setRaftLocation(Common.Location value)
      .dingodb.pb.common.Location raft_location = 4;
    • setRaftLocation

      public Common.Peer.Builder setRaftLocation(Common.Location.Builder builderForValue)
      .dingodb.pb.common.Location raft_location = 4;
    • mergeRaftLocation

      public Common.Peer.Builder mergeRaftLocation(Common.Location value)
      .dingodb.pb.common.Location raft_location = 4;
    • clearRaftLocation

      public Common.Peer.Builder clearRaftLocation()
      .dingodb.pb.common.Location raft_location = 4;
    • getRaftLocationBuilder

      public Common.Location.Builder getRaftLocationBuilder()
      .dingodb.pb.common.Location raft_location = 4;
    • getRaftLocationOrBuilder

      public Common.LocationOrBuilder getRaftLocationOrBuilder()
      .dingodb.pb.common.Location raft_location = 4;
      Specified by:
      getRaftLocationOrBuilder in interface Common.PeerOrBuilder
    • setUnknownFields

      public final Common.Peer.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.Peer.Builder>
    • mergeUnknownFields

      public final Common.Peer.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.Peer.Builder>