Class MethodConfig.Name.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MethodConfig.Name.Builder>
io.grpc.serviceconfig.MethodConfig.Name.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, MethodConfig.NameOrBuilder, Cloneable
Enclosing class:
MethodConfig.Name

public static final class MethodConfig.Name.Builder extends com.google.protobuf.GeneratedMessage.Builder<MethodConfig.Name.Builder> implements MethodConfig.NameOrBuilder
 The names of the methods to which this configuration applies.
 - MethodConfig without names (empty list) will be skipped.
 - Each name entry must be unique across the entire ServiceConfig.
 - If the 'method' field is empty, this MethodConfig specifies the defaults
 for all methods for the specified service.
 - If the 'service' field is empty, the 'method' field must be empty, and
 this MethodConfig specifies the default for all methods (it's the default
 config).

 When determining which MethodConfig to use for a given RPC, the most
 specific match wins. For example, let's say that the service config
 contains the following MethodConfig entries:

 method_config { name { } ... }
 method_config { name { service: "MyService" } ... }
 method_config { name { service: "MyService" method: "Foo" } ... }

 MyService/Foo will use the third entry, because it exactly matches the
 service and method name. MyService/Bar will use the second entry, because
 it provides the default for all methods of MyService. AnotherService/Baz
 will use the first entry, because it doesn't match the other two.

 In JSON representation, value "", value `null`, and not present are the
 same. The following are the same Name:
 - { "service": "s" }
 - { "service": "s", "method": null }
 - { "service": "s", "method": "" }
 
Protobuf type grpc.service_config.MethodConfig.Name
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<MethodConfig.Name.Builder>
    • clear

      public MethodConfig.Name.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.GeneratedMessage.Builder<MethodConfig.Name.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.GeneratedMessage.Builder<MethodConfig.Name.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public MethodConfig.Name.Builder mergeFrom(MethodConfig.Name other)
    • isInitialized

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

      public MethodConfig.Name.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<MethodConfig.Name.Builder>
      Throws:
      IOException
    • getService

      public String getService()
       Required. Includes proto package name.
       
      string service = 1;
      Specified by:
      getService in interface MethodConfig.NameOrBuilder
      Returns:
      The service.
    • getServiceBytes

      public com.google.protobuf.ByteString getServiceBytes()
       Required. Includes proto package name.
       
      string service = 1;
      Specified by:
      getServiceBytes in interface MethodConfig.NameOrBuilder
      Returns:
      The bytes for service.
    • setService

      public MethodConfig.Name.Builder setService(String value)
       Required. Includes proto package name.
       
      string service = 1;
      Parameters:
      value - The service to set.
      Returns:
      This builder for chaining.
    • clearService

      public MethodConfig.Name.Builder clearService()
       Required. Includes proto package name.
       
      string service = 1;
      Returns:
      This builder for chaining.
    • setServiceBytes

      public MethodConfig.Name.Builder setServiceBytes(com.google.protobuf.ByteString value)
       Required. Includes proto package name.
       
      string service = 1;
      Parameters:
      value - The bytes for service to set.
      Returns:
      This builder for chaining.
    • getMethod

      public String getMethod()
      string method = 2;
      Specified by:
      getMethod in interface MethodConfig.NameOrBuilder
      Returns:
      The method.
    • getMethodBytes

      public com.google.protobuf.ByteString getMethodBytes()
      string method = 2;
      Specified by:
      getMethodBytes in interface MethodConfig.NameOrBuilder
      Returns:
      The bytes for method.
    • setMethod

      public MethodConfig.Name.Builder setMethod(String value)
      string method = 2;
      Parameters:
      value - The method to set.
      Returns:
      This builder for chaining.
    • clearMethod

      public MethodConfig.Name.Builder clearMethod()
      string method = 2;
      Returns:
      This builder for chaining.
    • setMethodBytes

      public MethodConfig.Name.Builder setMethodBytes(com.google.protobuf.ByteString value)
      string method = 2;
      Parameters:
      value - The bytes for method to set.
      Returns:
      This builder for chaining.