Interface GrpcServiceDescriptor

All Superinterfaces:
Prototype.Api
All Known Implementing Classes:
GrpcServiceDescriptor.BuilderBase.GrpcServiceDescriptorImpl

public interface GrpcServiceDescriptor extends Prototype.Api
Interface generated from definition. Please add javadoc to the definition interface.
See Also:
  • Method Details

    • builder

      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static GrpcServiceDescriptor create()
      Create a new instance with default values.
      Returns:
      a new instance
    • serviceName

      String serviceName()
      Service name.
      Returns:
      the server name
    • methods

      Map of names to gRPC method descriptors.
      Returns:
      method map
    • method

      default GrpcClientMethodDescriptor method(String name)
      Descriptor for a given method.
      Parameters:
      name - method name
      Returns:
      method descriptor
      Throws:
      NoSuchElementException - if not found
    • interceptors

      List<io.grpc.ClientInterceptor> interceptors()
      Ordered list of method interceptors.
      Returns:
      list of interceptors
    • callCredentials

      Optional<io.grpc.CallCredentials> callCredentials()
      Credentials for this call, if any.
      Returns:
      optional credentials