Package io.grpc.testing
Class TestMethodDescriptors
- java.lang.Object
-
- io.grpc.testing.TestMethodDescriptors
-
public final class TestMethodDescriptors extends Object
A collection of method descriptor constructors useful for tests. These are useful if you need a descriptor, but don't really care how it works.- Since:
- 1.1.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MethodDescriptor.Marshaller<Void>
voidMarshaller()
Creates a new marshaller that does nothing.static MethodDescriptor<Void,Void>
voidMethod()
Creates a new method descriptor that always creates zero length messages, and always parses to null objects.
-
-
-
Method Detail
-
voidMethod
public static MethodDescriptor<Void,Void> voidMethod()
Creates a new method descriptor that always creates zero length messages, and always parses to null objects.- Since:
- 1.1.0
-
voidMarshaller
public static MethodDescriptor.Marshaller<Void> voidMarshaller()
Creates a new marshaller that does nothing.- Since:
- 1.1.0
-
-