Class ServiceInfoV2.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ServiceInfoV2.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<ServiceInfoV2.Builder>
org.apache.dubbo.metadata.ServiceInfoV2.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, ServiceInfoV2OrBuilder
Enclosing class:
ServiceInfoV2

public static final class ServiceInfoV2.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ServiceInfoV2.Builder> implements ServiceInfoV2OrBuilder
Protobuf type org.apache.dubbo.metadata.ServiceInfoV2
  • Method Details

    • getDescriptor

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

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

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

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

      public ServiceInfoV2 buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public ServiceInfoV2.Builder mergeFrom(ServiceInfoV2 other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceInfoV2.Builder>
    • mergeFrom

      public ServiceInfoV2.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<ServiceInfoV2.Builder>
      Throws:
      IOException
    • getName

      public String getName()
      string name = 1;
      Specified by:
      getName in interface ServiceInfoV2OrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      string name = 1;
      Specified by:
      getNameBytes in interface ServiceInfoV2OrBuilder
      Returns:
      The bytes for name.
    • setName

      public ServiceInfoV2.Builder setName(String value)
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ServiceInfoV2.Builder clearName()
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ServiceInfoV2.Builder setNameBytes(com.google.protobuf.ByteString value)
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getGroup

      public String getGroup()
      string group = 2;
      Specified by:
      getGroup in interface ServiceInfoV2OrBuilder
      Returns:
      The group.
    • getGroupBytes

      public com.google.protobuf.ByteString getGroupBytes()
      string group = 2;
      Specified by:
      getGroupBytes in interface ServiceInfoV2OrBuilder
      Returns:
      The bytes for group.
    • setGroup

      public ServiceInfoV2.Builder setGroup(String value)
      string group = 2;
      Parameters:
      value - The group to set.
      Returns:
      This builder for chaining.
    • clearGroup

      public ServiceInfoV2.Builder clearGroup()
      string group = 2;
      Returns:
      This builder for chaining.
    • setGroupBytes

      public ServiceInfoV2.Builder setGroupBytes(com.google.protobuf.ByteString value)
      string group = 2;
      Parameters:
      value - The bytes for group to set.
      Returns:
      This builder for chaining.
    • getVersion

      public String getVersion()
      string version = 3;
      Specified by:
      getVersion in interface ServiceInfoV2OrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
      string version = 3;
      Specified by:
      getVersionBytes in interface ServiceInfoV2OrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public ServiceInfoV2.Builder setVersion(String value)
      string version = 3;
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public ServiceInfoV2.Builder clearVersion()
      string version = 3;
      Returns:
      This builder for chaining.
    • setVersionBytes

      public ServiceInfoV2.Builder setVersionBytes(com.google.protobuf.ByteString value)
      string version = 3;
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.
    • getProtocol

      public String getProtocol()
      string protocol = 4;
      Specified by:
      getProtocol in interface ServiceInfoV2OrBuilder
      Returns:
      The protocol.
    • getProtocolBytes

      public com.google.protobuf.ByteString getProtocolBytes()
      string protocol = 4;
      Specified by:
      getProtocolBytes in interface ServiceInfoV2OrBuilder
      Returns:
      The bytes for protocol.
    • setProtocol

      public ServiceInfoV2.Builder setProtocol(String value)
      string protocol = 4;
      Parameters:
      value - The protocol to set.
      Returns:
      This builder for chaining.
    • clearProtocol

      public ServiceInfoV2.Builder clearProtocol()
      string protocol = 4;
      Returns:
      This builder for chaining.
    • setProtocolBytes

      public ServiceInfoV2.Builder setProtocolBytes(com.google.protobuf.ByteString value)
      string protocol = 4;
      Parameters:
      value - The bytes for protocol to set.
      Returns:
      This builder for chaining.
    • getPort

      public int getPort()
      int32 port = 5;
      Specified by:
      getPort in interface ServiceInfoV2OrBuilder
      Returns:
      The port.
    • setPort

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

      public ServiceInfoV2.Builder clearPort()
      int32 port = 5;
      Returns:
      This builder for chaining.
    • getPath

      public String getPath()
      string path = 6;
      Specified by:
      getPath in interface ServiceInfoV2OrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
      string path = 6;
      Specified by:
      getPathBytes in interface ServiceInfoV2OrBuilder
      Returns:
      The bytes for path.
    • setPath

      public ServiceInfoV2.Builder setPath(String value)
      string path = 6;
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • clearPath

      public ServiceInfoV2.Builder clearPath()
      string path = 6;
      Returns:
      This builder for chaining.
    • setPathBytes

      public ServiceInfoV2.Builder setPathBytes(com.google.protobuf.ByteString value)
      string path = 6;
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.
    • getParamsCount

      public int getParamsCount()
      Description copied from interface: ServiceInfoV2OrBuilder
      map<string, string> params = 7;
      Specified by:
      getParamsCount in interface ServiceInfoV2OrBuilder
    • containsParams

      public boolean containsParams(String key)
      map<string, string> params = 7;
      Specified by:
      containsParams in interface ServiceInfoV2OrBuilder
    • getParams

      @Deprecated public Map<String,String> getParams()
      Deprecated.
      Use getParamsMap() instead.
      Specified by:
      getParams in interface ServiceInfoV2OrBuilder
    • getParamsMap

      public Map<String,String> getParamsMap()
      map<string, string> params = 7;
      Specified by:
      getParamsMap in interface ServiceInfoV2OrBuilder
    • getParamsOrDefault

      public String getParamsOrDefault(String key, String defaultValue)
      map<string, string> params = 7;
      Specified by:
      getParamsOrDefault in interface ServiceInfoV2OrBuilder
    • getParamsOrThrow

      public String getParamsOrThrow(String key)
      map<string, string> params = 7;
      Specified by:
      getParamsOrThrow in interface ServiceInfoV2OrBuilder
    • clearParams

      public ServiceInfoV2.Builder clearParams()
    • removeParams

      public ServiceInfoV2.Builder removeParams(String key)
      map<string, string> params = 7;
    • getMutableParams

      @Deprecated public Map<String,String> getMutableParams()
      Deprecated.
      Use alternate mutation accessors instead.
    • putParams

      public ServiceInfoV2.Builder putParams(String key, String value)
      map<string, string> params = 7;
    • putAllParams

      public ServiceInfoV2.Builder putAllParams(Map<String,String> values)
      map<string, string> params = 7;
    • setUnknownFields

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

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