Class GrpcServiceDescriptor.Builder
java.lang.Object
io.helidon.webclient.grpc.GrpcServiceDescriptor.BuilderBase<GrpcServiceDescriptor.Builder, GrpcServiceDescriptor>
io.helidon.webclient.grpc.GrpcServiceDescriptor.Builder
- All Implemented Interfaces:
Prototype.Builder<GrpcServiceDescriptor.Builder, GrpcServiceDescriptor>, Builder<GrpcServiceDescriptor.Builder, GrpcServiceDescriptor>, Supplier<GrpcServiceDescriptor>
- Enclosing interface:
GrpcServiceDescriptor
public static class GrpcServiceDescriptor.Builder
extends GrpcServiceDescriptor.BuilderBase<GrpcServiceDescriptor.Builder, GrpcServiceDescriptor>
implements Builder<GrpcServiceDescriptor.Builder, GrpcServiceDescriptor>
Fluent API builder for
GrpcServiceDescriptor.-
Nested Class Summary
Nested classes/interfaces inherited from class GrpcServiceDescriptor.BuilderBase
GrpcServiceDescriptor.BuilderBase.GrpcServiceDescriptorImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class GrpcServiceDescriptor.BuilderBase
addInterceptor, addInterceptors, addMethods, callCredentials, callCredentials, clearCallCredentials, clearInterceptors, from, from, interceptors, interceptors, methods, methods, preBuildPrototype, putMethod, serviceName, serviceName, toString, validatePrototypeModifier 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<String, ? extends GrpcClientMethodDescriptor> methods) Map of names to gRPC method descriptors.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 callCredentials.Clear all interceptors.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<String, ? extends GrpcClientMethodDescriptor> methods) Map of names to gRPC method descriptors.protected voidHandles providers and decorators.putMethod(String key, GrpcClientMethodDescriptor method) Map of names to gRPC method descriptors.Service name.serviceName(String serviceName) Service name.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault GrpcServiceDescriptorget()default GrpcServiceDescriptor.Builderidentity()Instance of this builder as the correct type.default GrpcServiceDescriptor.Builderupdate(Consumer<GrpcServiceDescriptor.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault GrpcServiceDescriptor.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<GrpcServiceDescriptor.Builder, GrpcServiceDescriptor>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<GrpcServiceDescriptor.Builder, GrpcServiceDescriptor>- Returns:
- instance of the built type
-