Class ClientServiceDescriptor
java.lang.Object
io.helidon.microprofile.grpc.client.ClientServiceDescriptor
Encapsulates all details about a client side gRPC service.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
AClientServiceDescriptor
builder.static interface
Fluent configuration interface for theClientServiceDescriptor
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder
(io.grpc.BindableService service) Create aClientServiceDescriptor.Builder
from aBindableService
.builder
(io.grpc.ServiceDescriptor service) Create aClientServiceDescriptor.Builder
from aServiceDescriptor
.Create aClientServiceDescriptor.Builder
form a name and type.Create aClientServiceDescriptor.Builder
form a name and type.io.grpc.CallCredentials
Return theCallCredentials
set on this service.static ClientServiceDescriptor
create
(io.grpc.BindableService service) Create aClientServiceDescriptor
from aBindableService
.static ClientServiceDescriptor
create
(io.grpc.ServiceDescriptor descriptor) Create aClientServiceDescriptor
from aServiceDescriptor
.WeightedBag
<io.grpc.ClientInterceptor> Return service interceptors.ReturnClientMethodDescriptor
for a specified method getName.methods()
Return the collections of methods that make up this service.name()
Obtain the service name.toString()
-
Method Details
-
create
Create aClientServiceDescriptor
from aServiceDescriptor
.- Parameters:
descriptor
- theServiceDescriptor
- Returns:
- a
ClientServiceDescriptor
-
create
Create aClientServiceDescriptor
from aBindableService
.- Parameters:
service
- the BindableService- Returns:
- a
ClientServiceDescriptor
-
builder
Create aClientServiceDescriptor.Builder
from aServiceDescriptor
.- Parameters:
service
- theServiceDescriptor
- Returns:
- a
ClientServiceDescriptor.Builder
-
builder
Create aClientServiceDescriptor.Builder
from aBindableService
.- Parameters:
service
- theBindableService
- Returns:
- a
ClientServiceDescriptor.Builder
-
builder
Create aClientServiceDescriptor.Builder
form a name and type.The
class simple name
will be used for the service name.- Parameters:
serviceClass
- the service class- Returns:
- a
ClientServiceDescriptor.Builder
-
builder
Create aClientServiceDescriptor.Builder
form a name and type.- Parameters:
serviceName
- the getName of the service to use to initialise the builderserviceClass
- the service class- Returns:
- a
ClientServiceDescriptor.Builder
-
name
Obtain the service name.- Returns:
- the service name
-
method
ReturnClientMethodDescriptor
for a specified method getName.- Parameters:
name
- method getName- Returns:
- method getDescriptor for the specified getName
-
methods
Return the collections of methods that make up this service.- Returns:
- service methods
-
interceptors
Return service interceptors.- Returns:
- service interceptors
-
callCredentials
public io.grpc.CallCredentials callCredentials()Return theCallCredentials
set on this service.- Returns:
- the
CallCredentials
set on this service
-
toString
-