examples: remove deprecated stub field references

This commit is contained in:
Carl Mastrangelo 2017-11-01 14:57:24 -07:00 committed by GitHub
parent 80a8c8f3d7
commit 253a01461b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -96,7 +96,7 @@ public final class HelloJsonClient {
static final class HelloJsonStub extends AbstractStub<HelloJsonStub> {
static final MethodDescriptor<HelloRequest, HelloReply> METHOD_SAY_HELLO =
GreeterGrpc.METHOD_SAY_HELLO
GreeterGrpc.getSayHelloMethod()
.toBuilder(
ProtoUtils.jsonMarshaller(HelloRequest.getDefaultInstance()),
ProtoUtils.jsonMarshaller(HelloReply.getDefaultInstance()))

View File

@ -198,7 +198,7 @@ public class DetailErrorSample {
*/
void advancedAsyncCall() {
ClientCall<HelloRequest, HelloReply> call =
channel.newCall(GreeterGrpc.METHOD_SAY_HELLO, CallOptions.DEFAULT);
channel.newCall(GreeterGrpc.getSayHelloMethod(), CallOptions.DEFAULT);
final CountDownLatch latch = new CountDownLatch(1);

View File

@ -177,7 +177,7 @@ public class ErrorHandlingClient {
*/
void advancedAsyncCall() {
ClientCall<HelloRequest, HelloReply> call =
channel.newCall(GreeterGrpc.METHOD_SAY_HELLO, CallOptions.DEFAULT);
channel.newCall(GreeterGrpc.getSayHelloMethod(), CallOptions.DEFAULT);
final CountDownLatch latch = new CountDownLatch(1);