Package org.hertsstack.core.descriptor
Class CustomGrpcUnaryDescriptor
- java.lang.Object
-
- org.hertsstack.core.descriptor.CustomGrpcUnaryDescriptor
-
public class CustomGrpcUnaryDescriptor extends java.lang.Object
Herts gRPC unary descriptor.
-
-
Constructor Summary
Constructors Constructor Description CustomGrpcUnaryDescriptor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CustomGrpcUnaryDescriptor
createGrpcDescriptor(io.grpc.ServiceDescriptor serviceDescriptor, java.util.List<io.grpc.MethodDescriptor<byte[],byte[]>> methodDescriptors)
Factory method.java.util.List<io.grpc.MethodDescriptor<byte[],byte[]>>
getMethodDescriptors()
io.grpc.ServiceDescriptor
getServiceDescriptor()
void
setMethodDescriptors(java.util.List<io.grpc.MethodDescriptor<byte[],byte[]>> methodDescriptors)
void
setServiceDescriptor(io.grpc.ServiceDescriptor serviceDescriptor)
-
-
-
Method Detail
-
createGrpcDescriptor
public static CustomGrpcUnaryDescriptor createGrpcDescriptor(io.grpc.ServiceDescriptor serviceDescriptor, java.util.List<io.grpc.MethodDescriptor<byte[],byte[]>> methodDescriptors)
Factory method.- Parameters:
serviceDescriptor
- HertsService descriptormethodDescriptors
- HertsService method descriptor- Returns:
- HertsUnaryDescriptor
-
getServiceDescriptor
public io.grpc.ServiceDescriptor getServiceDescriptor()
-
setServiceDescriptor
public void setServiceDescriptor(io.grpc.ServiceDescriptor serviceDescriptor)
-
getMethodDescriptors
public java.util.List<io.grpc.MethodDescriptor<byte[],byte[]>> getMethodDescriptors()
-
setMethodDescriptors
public void setMethodDescriptors(java.util.List<io.grpc.MethodDescriptor<byte[],byte[]>> methodDescriptors)
-
-