java.lang.Object
io.helidon.webserver.grpc.GrpcServiceDescriptor
Encapsulates all metadata necessary to create and deploy a gRPC service.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Allows users to specify that they would like to have access to aGrpcServiceDescriptor
within theirServerInterceptor
implementation.static final class
AGrpcServiceDescriptor
builder.static interface
An interface implemented by classs that can configure aGrpcServiceDescriptor.Rules
.static interface
Fluent configuration interface for theGrpcServiceDescriptor
. -
Field Summary
Modifier and TypeFieldDescriptionstatic final io.grpc.Context.Key
<GrpcServiceDescriptor> TheContext.Key
to use to obtain theServiceDescriptor
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder
(io.grpc.BindableService service) Create aGrpcServiceDescriptor.Builder
.builder
(GrpcService service) Create aGrpcServiceDescriptor.Builder
.Create aGrpcServiceDescriptor.Builder
.context()
Return context map.boolean
fullName()
Returns the service name prefixed with package directive if one exists.int
hashCode()
WeightedBag
<io.grpc.ServerInterceptor> Return service interceptors.GrpcMethodDescriptor
<?, ?> ReturnGrpcMethodDescriptor
for a specified method name.methods()
Return service methods.name()
Return service name.Returns package name from proto file.com.google.protobuf.Descriptors.FileDescriptor
proto()
Return a proto file descriptor.toString()
-
Field Details
-
SERVICE_DESCRIPTOR_KEY
TheContext.Key
to use to obtain theServiceDescriptor
.
-
-
Method Details
-
name
Return service name.- Returns:
- service name
-
fullName
Returns the service name prefixed with package directive if one exists.- Returns:
- service name prefixed with package directive if one exists.
-
packageName
Returns package name from proto file.- Returns:
- package name from proto file
-
method
ReturnGrpcMethodDescriptor
for a specified method name.- Parameters:
name
- method name- Returns:
- method descriptor for the specified name
-
methods
Return service methods.- Returns:
- service methods
-
interceptors
Return service interceptors.- Returns:
- service interceptors
-
context
Return context map.- Returns:
- context map
-
proto
public com.google.protobuf.Descriptors.FileDescriptor proto()Return a proto file descriptor.- Returns:
- a proto file descriptor
-
toString
-
equals
-
hashCode
public int hashCode() -
builder
Create aGrpcServiceDescriptor.Builder
.- Parameters:
serviceClass
- theClass
representing the servicename
- the name of the service- Returns:
- a
GrpcServiceDescriptor.Builder
-
builder
Create aGrpcServiceDescriptor.Builder
.- Parameters:
service
- theGrpcService
to use to initialise the builder- Returns:
- a
GrpcServiceDescriptor.Builder
-
builder
Create aGrpcServiceDescriptor.Builder
.- Parameters:
service
- theBindableService
to use to initialise the builder- Returns:
- a
GrpcServiceDescriptor.Builder
-