/** */ public com.google.common.util.concurrent.ListenableFuture<com.salesforce.servicelibs.TimeReply> getTime( com.google.protobuf.Empty request) { return futureUnaryCall( getChannel().newCall(getGetTimeMethodHelper(), getCallOptions()), request); } }
@SuppressWarnings("unchecked") public CompletableFuture<com.salesforce.servicelibs.TimeReply> getTime(com.google.protobuf.Empty request) { return futureAdapter.apply(innerStub.getTime(request)); } }
/** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static TimeServiceFutureStub newFutureStub( io.grpc.Channel channel) { return new TimeServiceFutureStub(channel); }
private TimeServiceCompletableFutureStub(Channel channel, CallOptions callOptions, Function<ListenableFuture, CompletableFuture> futureAdapter) { super(channel, callOptions); this.futureAdapter = futureAdapter; innerStub = TimeServiceGrpc.newFutureStub(channel).build(channel, callOptions); }
@java.lang.Override protected TimeServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TimeServiceFutureStub(channel, callOptions); }
/** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static TimeServiceFutureStub newFutureStub( io.grpc.Channel channel) { return new TimeServiceFutureStub(channel); }
@java.lang.Override protected TimeServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TimeServiceFutureStub(channel, callOptions); }
/** */ public com.google.common.util.concurrent.ListenableFuture<com.salesforce.servicelibs.TimeReply> getTime( com.google.protobuf.Empty request) { return futureUnaryCall( getChannel().newCall(getGetTimeMethodHelper(), getCallOptions()), request); } }