- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
GrpcServiceDescriptor.BuilderBase.GrpcServiceDescriptorImpl
Interface generated from definition. Please add javadoc to the definition interface.
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Fluent API builder forGrpcServiceDescriptor
.static class
GrpcServiceDescriptor.BuilderBase<BUILDER extends GrpcServiceDescriptor.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends GrpcServiceDescriptor> Fluent API builder base forGrpcServiceDescriptor
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a new fluent API builder to customize configuration.builder
(GrpcServiceDescriptor instance) Create a new fluent API builder from an existing instance.Optional
<io.grpc.CallCredentials> Credentials for this call, if any.static GrpcServiceDescriptor
create()
Create a new instance with default values.List
<io.grpc.ClientInterceptor> Ordered list of method interceptors.default GrpcClientMethodDescriptor
Descriptor for a given method.methods()
Map of names to gRPC method descriptors.Service name.
-
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
Create a new instance with default values.- Returns:
- a new instance
-
serviceName
String serviceName()Service name.- Returns:
- the server name
-
methods
Map<String,GrpcClientMethodDescriptor> methods()Map of names to gRPC method descriptors.- Returns:
- method map
-
method
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
-