Module io.helidon.webclient.grpc
Package io.helidon.webclient.grpc
Class GrpcServiceDescriptor.BuilderBase<BUILDER extends GrpcServiceDescriptor.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends GrpcServiceDescriptor>
java.lang.Object
io.helidon.webclient.grpc.GrpcServiceDescriptor.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER
- type of the builder extending this abstract builderPROTOTYPE
- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,
PROTOTYPE>
- Direct Known Subclasses:
GrpcServiceDescriptor.Builder
- Enclosing interface:
GrpcServiceDescriptor
public abstract static class GrpcServiceDescriptor.BuilderBase<BUILDER extends GrpcServiceDescriptor.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends GrpcServiceDescriptor>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
GrpcServiceDescriptor
.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddInterceptor
(io.grpc.ClientInterceptor interceptor) Ordered list of method interceptors.addInterceptors
(List<? extends io.grpc.ClientInterceptor> interceptors) Ordered list of method interceptors.addMethods
(Map<? extends String, ? extends GrpcClientMethodDescriptor> methods) This method keeps existing values, then puts all new values into the map.Optional
<io.grpc.CallCredentials> Credentials for this call, if any.callCredentials
(io.grpc.CallCredentials callCredentials) Credentials for this call, if any.Clear existing value of this property.from
(GrpcServiceDescriptor prototype) Update this builder from an existing prototype instance.from
(GrpcServiceDescriptor.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.List
<io.grpc.ClientInterceptor> Ordered list of method interceptors.interceptors
(List<? extends io.grpc.ClientInterceptor> interceptors) Ordered list of method interceptors.methods()
Map of names to gRPC method descriptors.methods
(Map<? extends String, ? extends GrpcClientMethodDescriptor> methods) This method replaces all values with the new ones.protected void
Handles providers and decorators.putMethod
(String key, GrpcClientMethodDescriptor method) This method adds a new value to the map, or replaces it if the key already exists.Service name.serviceName
(String serviceName) Service name.toString()
protected void
Validates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype
- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder
- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
serviceName
Service name.- Parameters:
serviceName
- the server name- Returns:
- updated builder instance
- See Also:
-
methods
This method replaces all values with the new ones.- Parameters:
methods
- method map- Returns:
- updated builder instance
- See Also:
-
addMethods
This method keeps existing values, then puts all new values into the map.- Parameters:
methods
- method map- Returns:
- updated builder instance
- See Also:
-
putMethod
This method adds a new value to the map, or replaces it if the key already exists.- Parameters:
key
- key to add or replacemethod
- new value for the key- Returns:
- updated builder instance
- See Also:
-
interceptors
Ordered list of method interceptors.- Parameters:
interceptors
- list of interceptors- Returns:
- updated builder instance
- See Also:
-
addInterceptors
Ordered list of method interceptors.- Parameters:
interceptors
- list of interceptors- Returns:
- updated builder instance
- See Also:
-
addInterceptor
Ordered list of method interceptors.- Parameters:
interceptor
- list of interceptors- Returns:
- updated builder instance
- See Also:
-
clearCallCredentials
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
callCredentials
Credentials for this call, if any.- Parameters:
callCredentials
- optional credentials- Returns:
- updated builder instance
- See Also:
-
serviceName
Service name.- Returns:
- the service name
-
methods
Map of names to gRPC method descriptors.- Returns:
- the methods
-
interceptors
Ordered list of method interceptors.- Returns:
- the interceptors
-
callCredentials
Credentials for this call, if any.- Returns:
- the call credentials
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-