examples: don't use deprecated MethodDescriptor API

This commit is contained in:
Carl Mastrangelo 2017-07-14 12:36:18 -07:00 committed by GitHub
parent d34260a814
commit e6ad90e43e
1 changed files with 5 additions and 5 deletions

View File

@ -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);