Class ClientServiceDescriptor.Builder
java.lang.Object
io.helidon.microprofile.grpc.client.ClientServiceDescriptor.Builder
- All Implemented Interfaces:
- Builder<ClientServiceDescriptor.Builder,,- ClientServiceDescriptor> - ClientServiceDescriptor.Rules,- Supplier<ClientServiceDescriptor>
- Enclosing class:
- ClientServiceDescriptor
public static final class ClientServiceDescriptor.Builder
extends Object
implements ClientServiceDescriptor.Rules, Builder<ClientServiceDescriptor.Builder,ClientServiceDescriptor> 
A 
ClientServiceDescriptor builder.- 
Method SummaryModifier and TypeMethodDescriptionbidirectional(String name) Register bi-directional streaming method for the service.bidirectional(String name, Consumer<ClientMethodDescriptor.Rules> configurer) Register bi-directional streaming method for the service.build()Build the instance from this builder.callCredentials(io.grpc.CallCredentials callCredentials) Register theCallCredentialsto be used for this service.callCredentials(String methodName, io.grpc.CallCredentials callCredentials) Register theCallCredentialsto be used for the specified method in this service.clientStreaming(String name) Register client streaming method for the service.clientStreaming(String name, Consumer<ClientMethodDescriptor.Rules> configurer) Register client streaming method for the service.intercept(int priority, io.grpc.ClientInterceptor... interceptors) Add one or moreClientInterceptorinstances that will intercept calls to this service.intercept(io.grpc.ClientInterceptor... interceptors) Register one or moreinterceptorsfor the service.Register one or moreinterceptorsfor a named method of the service.Register one or moreinterceptorsfor a named method of the service.marshallerSupplier(MarshallerSupplier marshallerSupplier) Register theMarshallerSupplierfor the service.name()Obtain the name fo the service this configuration configures.Set the name for the service.proto(com.google.protobuf.Descriptors.FileDescriptor proto) Register the proto file for the service.serverStreaming(String name) Register server streaming method for the service.serverStreaming(String name, Consumer<ClientMethodDescriptor.Rules> configurer) Register server streaming method for the service.Register unary method for the service.unary(String name, Consumer<ClientMethodDescriptor.Rules> configurer) Register unary method for the service.
- 
Method Details- 
nameDescription copied from interface:ClientServiceDescriptor.RulesObtain the name fo the service this configuration configures.- Specified by:
- namein interface- ClientServiceDescriptor.Rules
- Returns:
- the name fo the service this configuration configures
 
- 
nameDescription copied from interface:ClientServiceDescriptor.RulesSet the name for the service.- Specified by:
- namein interface- ClientServiceDescriptor.Rules
- Parameters:
- serviceName- the name of service
- Returns:
- this ClientServiceDescriptor.Rulesinstance for fluent call chaining
 
- 
protoDescription copied from interface:ClientServiceDescriptor.RulesRegister the proto file for the service.- Specified by:
- protoin interface- ClientServiceDescriptor.Rules
- Parameters:
- proto- the service proto
- Returns:
- this ClientServiceDescriptor.Rulesinstance for fluent call chaining
 
- 
marshallerSupplierDescription copied from interface:ClientServiceDescriptor.RulesRegister theMarshallerSupplierfor the service.- Specified by:
- marshallerSupplierin interface- ClientServiceDescriptor.Rules
- Parameters:
- marshallerSupplier- the- MarshallerSupplierfor the service
- Returns:
- this ClientServiceDescriptor.Rulesinstance for fluent call chaining
 
- 
unaryDescription copied from interface:ClientServiceDescriptor.RulesRegister unary method for the service.- Specified by:
- unaryin interface- ClientServiceDescriptor.Rules
- Parameters:
- name- The getName of the method
- Returns:
- this ClientServiceDescriptor.Rulesinstance for fluent call chaining
 
- 
unarypublic ClientServiceDescriptor.Builder unary(String name, Consumer<ClientMethodDescriptor.Rules> configurer) Description copied from interface:ClientServiceDescriptor.RulesRegister unary method for the service.- Specified by:
- unaryin interface- ClientServiceDescriptor.Rules
- Parameters:
- name- the name of the method
- configurer- the method configurer
- Returns:
- this ClientServiceDescriptor.Rulesinstance for fluent call chaining
 
- 
serverStreamingDescription copied from interface:ClientServiceDescriptor.RulesRegister server streaming method for the service.- Specified by:
- serverStreamingin interface- ClientServiceDescriptor.Rules
- Parameters:
- name- The name of the method
- Returns:
- this ClientServiceDescriptor.Rulesinstance for fluent call chaining
 
- 
serverStreamingpublic ClientServiceDescriptor.Builder serverStreaming(String name, Consumer<ClientMethodDescriptor.Rules> configurer) Description copied from interface:ClientServiceDescriptor.RulesRegister server streaming method for the service.- Specified by:
- serverStreamingin interface- ClientServiceDescriptor.Rules
- Parameters:
- name- the name of the method
- configurer- the method configurer
- Returns:
- this ClientServiceDescriptor.Rulesinstance for fluent call chaining
 
- 
clientStreamingDescription copied from interface:ClientServiceDescriptor.RulesRegister client streaming method for the service.- Specified by:
- clientStreamingin interface- ClientServiceDescriptor.Rules
- Parameters:
- name- The name of the method
- Returns:
- this ClientServiceDescriptor.Rulesinstance for fluent call chaining
 
- 
clientStreamingpublic ClientServiceDescriptor.Builder clientStreaming(String name, Consumer<ClientMethodDescriptor.Rules> configurer) Description copied from interface:ClientServiceDescriptor.RulesRegister client streaming method for the service.- Specified by:
- clientStreamingin interface- ClientServiceDescriptor.Rules
- Parameters:
- name- the name of the method
- configurer- the method configurer
- Returns:
- this ClientServiceDescriptor.Rulesinstance for fluent call chaining
 
- 
bidirectionalDescription copied from interface:ClientServiceDescriptor.RulesRegister bi-directional streaming method for the service.- Specified by:
- bidirectionalin interface- ClientServiceDescriptor.Rules
- Parameters:
- name- The name of the method
- Returns:
- this ClientServiceDescriptor.Rulesinstance for fluent call chaining
 
- 
bidirectionalpublic ClientServiceDescriptor.Builder bidirectional(String name, Consumer<ClientMethodDescriptor.Rules> configurer) Description copied from interface:ClientServiceDescriptor.RulesRegister bi-directional streaming method for the service.- Specified by:
- bidirectionalin interface- ClientServiceDescriptor.Rules
- Parameters:
- name- the name of the method
- configurer- the method configurer
- Returns:
- this ClientServiceDescriptor.Rulesinstance for fluent call chaining
 
- 
interceptDescription copied from interface:ClientServiceDescriptor.RulesRegister one or moreinterceptorsfor the service.- Specified by:
- interceptin interface- ClientServiceDescriptor.Rules
- Parameters:
- interceptors- the interceptor(s) to register
- Returns:
- this ClientServiceDescriptor.Rulesinstance for fluent call chaining
 
- 
interceptpublic ClientServiceDescriptor.Rules intercept(int priority, io.grpc.ClientInterceptor... interceptors) Description copied from interface:ClientServiceDescriptor.RulesAdd one or moreClientInterceptorinstances that will intercept calls to this service.The added interceptors will be applied using the specified priority. - Specified by:
- interceptin interface- ClientServiceDescriptor.Rules
- Parameters:
- priority- the priority to assign to the interceptors
- interceptors- one or more- ClientInterceptors to add
- Returns:
- this builder to allow fluent method chaining
 
- 
interceptpublic ClientServiceDescriptor.Builder intercept(String methodName, io.grpc.ClientInterceptor... interceptors) Description copied from interface:ClientServiceDescriptor.RulesRegister one or moreinterceptorsfor a named method of the service.- Specified by:
- interceptin interface- ClientServiceDescriptor.Rules
- Parameters:
- methodName- the name of the method to intercept
- interceptors- the interceptor(s) to register
- Returns:
- this ClientServiceDescriptor.Rulesinstance for fluent call chaining
 
- 
interceptpublic ClientServiceDescriptor.Builder intercept(String methodName, int priority, io.grpc.ClientInterceptor... interceptors) Description copied from interface:ClientServiceDescriptor.RulesRegister one or moreinterceptorsfor a named method of the service.The added interceptors will be applied using the specified priority. - Specified by:
- interceptin interface- ClientServiceDescriptor.Rules
- Parameters:
- methodName- the name of the method to intercept
- priority- the priority to assign to the interceptors
- interceptors- the interceptor(s) to register
- Returns:
- this ClientServiceDescriptor.Rulesinstance for fluent call chaining
 
- 
callCredentialsDescription copied from interface:ClientServiceDescriptor.RulesRegister theCallCredentialsto be used for this service.- Specified by:
- callCredentialsin interface- ClientServiceDescriptor.Rules
- Parameters:
- callCredentials- the- CallCredentialsto set.
- Returns:
- this ClientServiceDescriptor.Rulesinstance for fluent call chaining
 
- 
callCredentialspublic ClientServiceDescriptor.Builder callCredentials(String methodName, io.grpc.CallCredentials callCredentials) Description copied from interface:ClientServiceDescriptor.RulesRegister theCallCredentialsto be used for the specified method in this service. This overrides anyCallCredentialsset on thisClientServiceDescriptor- Specified by:
- callCredentialsin interface- ClientServiceDescriptor.Rules
- Parameters:
- methodName- the method name
- callCredentials- the- CallCredentialsto set.
- Returns:
- this ClientServiceDescriptor.Rulesinstance for fluent call chaining
 
- 
buildDescription copied from interface:BuilderBuild the instance from this builder.- Specified by:
- buildin interface- Builder<ClientServiceDescriptor.Builder,- ClientServiceDescriptor> 
- Returns:
- instance of the built type
 
 
-