Class Common.Location.Builder

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public String getHost()
      string host = 1;
      Specified by:
      getHost in interface Common.LocationOrBuilder
      Returns:
      The host.
    • getHostBytes

      public com.google.protobuf.ByteString getHostBytes()
      string host = 1;
      Specified by:
      getHostBytes in interface Common.LocationOrBuilder
      Returns:
      The bytes for host.
    • setHost

      public Common.Location.Builder setHost(String value)
      string host = 1;
      Parameters:
      value - The host to set.
      Returns:
      This builder for chaining.
    • clearHost

      public Common.Location.Builder clearHost()
      string host = 1;
      Returns:
      This builder for chaining.
    • setHostBytes

      public Common.Location.Builder setHostBytes(com.google.protobuf.ByteString value)
      string host = 1;
      Parameters:
      value - The bytes for host to set.
      Returns:
      This builder for chaining.
    • getPort

      public int getPort()
      int32 port = 2;
      Specified by:
      getPort in interface Common.LocationOrBuilder
      Returns:
      The port.
    • setPort

      public Common.Location.Builder setPort(int value)
      int32 port = 2;
      Parameters:
      value - The port to set.
      Returns:
      This builder for chaining.
    • clearPort

      public Common.Location.Builder clearPort()
      int32 port = 2;
      Returns:
      This builder for chaining.
    • getIndex

      public int getIndex()
       corresponding braft peerId idx
       
      int32 index = 3;
      Specified by:
      getIndex in interface Common.LocationOrBuilder
      Returns:
      The index.
    • setIndex

      public Common.Location.Builder setIndex(int value)
       corresponding braft peerId idx
       
      int32 index = 3;
      Parameters:
      value - The index to set.
      Returns:
      This builder for chaining.
    • clearIndex

      public Common.Location.Builder clearIndex()
       corresponding braft peerId idx
       
      int32 index = 3;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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