java.lang.Object
io.helidon.webserver.grpc.GrpcServiceDescriptor
Encapsulates all metadata necessary to create and deploy a gRPC service.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAllows users to specify that they would like to have access to aGrpcServiceDescriptorwithin theirServerInterceptorimplementation.static final classAGrpcServiceDescriptorbuilder.static interfaceAn interface implemented by classs that can configure aGrpcServiceDescriptor.Rules.static interfaceFluent configuration interface for theGrpcServiceDescriptor. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.grpc.Context.Key<GrpcServiceDescriptor> TheContext.Keyto 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.booleanfullName()Returns the service name prefixed with package directive if one exists.inthashCode()WeightedBag<io.grpc.ServerInterceptor> Return service interceptors.GrpcMethodDescriptor<?, ?> ReturnGrpcMethodDescriptorfor a specified method name.methods()Return service methods.name()Return service name.Returns package name from proto file.com.google.protobuf.Descriptors.FileDescriptorproto()Return a proto file descriptor.toString()
-
Field Details
-
SERVICE_DESCRIPTOR_KEY
TheContext.Keyto 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
ReturnGrpcMethodDescriptorfor 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- theClassrepresenting the servicename- the name of the service- Returns:
- a
GrpcServiceDescriptor.Builder
-
builder
Create aGrpcServiceDescriptor.Builder.- Parameters:
service- theGrpcServiceto use to initialise the builder- Returns:
- a
GrpcServiceDescriptor.Builder
-
builder
Create aGrpcServiceDescriptor.Builder.- Parameters:
service- theBindableServiceto use to initialise the builder- Returns:
- a
GrpcServiceDescriptor.Builder
-