mirror of https://github.com/grpc/grpc-java.git
examples: don't use deprecated MethodDescriptor API
This commit is contained in:
parent
d34260a814
commit
e6ad90e43e
|
@ -96,11 +96,11 @@ public final class HelloJsonClient {
|
|||
static final class HelloJsonStub extends AbstractStub<HelloJsonStub> {
|
||||
|
||||
static final MethodDescriptor<HelloRequest, HelloReply> METHOD_SAY_HELLO =
|
||||
MethodDescriptor.create(
|
||||
GreeterGrpc.METHOD_SAY_HELLO.getType(),
|
||||
GreeterGrpc.METHOD_SAY_HELLO.getFullMethodName(),
|
||||
ProtoUtils.jsonMarshaller(HelloRequest.getDefaultInstance()),
|
||||
ProtoUtils.jsonMarshaller(HelloReply.getDefaultInstance()));
|
||||
GreeterGrpc.METHOD_SAY_HELLO
|
||||
.toBuilder(
|
||||
ProtoUtils.jsonMarshaller(HelloRequest.getDefaultInstance()),
|
||||
ProtoUtils.jsonMarshaller(HelloReply.getDefaultInstance()))
|
||||
.build();
|
||||
|
||||
protected HelloJsonStub(Channel channel) {
|
||||
super(channel);
|
||||
|
|
Loading…
Reference in New Issue