
tensorflow.contrib.rpc.TestCaseServiceGrpc Maven / Gradle / Ivy
package tensorflow.contrib.rpc;
import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
import static io.grpc.stub.ClientCalls.futureUnaryCall;
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.18.0)",
comments = "Source: tensorflow/contrib/rpc/python/kernel_tests/test_example.proto")
public final class TestCaseServiceGrpc {
private TestCaseServiceGrpc() {}
public static final String SERVICE_NAME = "tensorflow.contrib.rpc.TestCaseService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getIncrementMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Increment",
requestType = tensorflow.contrib.rpc.TestExample.TestCase.class,
responseType = tensorflow.contrib.rpc.TestExample.TestCase.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getIncrementMethod() {
io.grpc.MethodDescriptor getIncrementMethod;
if ((getIncrementMethod = TestCaseServiceGrpc.getIncrementMethod) == null) {
synchronized (TestCaseServiceGrpc.class) {
if ((getIncrementMethod = TestCaseServiceGrpc.getIncrementMethod) == null) {
TestCaseServiceGrpc.getIncrementMethod = getIncrementMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"tensorflow.contrib.rpc.TestCaseService", "Increment"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tensorflow.contrib.rpc.TestExample.TestCase.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tensorflow.contrib.rpc.TestExample.TestCase.getDefaultInstance()))
.setSchemaDescriptor(new TestCaseServiceMethodDescriptorSupplier("Increment"))
.build();
}
}
}
return getIncrementMethod;
}
private static volatile io.grpc.MethodDescriptor getSleepForeverMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SleepForever",
requestType = tensorflow.contrib.rpc.TestExample.TestCase.class,
responseType = tensorflow.contrib.rpc.TestExample.TestCase.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSleepForeverMethod() {
io.grpc.MethodDescriptor getSleepForeverMethod;
if ((getSleepForeverMethod = TestCaseServiceGrpc.getSleepForeverMethod) == null) {
synchronized (TestCaseServiceGrpc.class) {
if ((getSleepForeverMethod = TestCaseServiceGrpc.getSleepForeverMethod) == null) {
TestCaseServiceGrpc.getSleepForeverMethod = getSleepForeverMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"tensorflow.contrib.rpc.TestCaseService", "SleepForever"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tensorflow.contrib.rpc.TestExample.TestCase.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tensorflow.contrib.rpc.TestExample.TestCase.getDefaultInstance()))
.setSchemaDescriptor(new TestCaseServiceMethodDescriptorSupplier("SleepForever"))
.build();
}
}
}
return getSleepForeverMethod;
}
private static volatile io.grpc.MethodDescriptor getSometimesSleepForeverMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SometimesSleepForever",
requestType = tensorflow.contrib.rpc.TestExample.TestCase.class,
responseType = tensorflow.contrib.rpc.TestExample.TestCase.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSometimesSleepForeverMethod() {
io.grpc.MethodDescriptor getSometimesSleepForeverMethod;
if ((getSometimesSleepForeverMethod = TestCaseServiceGrpc.getSometimesSleepForeverMethod) == null) {
synchronized (TestCaseServiceGrpc.class) {
if ((getSometimesSleepForeverMethod = TestCaseServiceGrpc.getSometimesSleepForeverMethod) == null) {
TestCaseServiceGrpc.getSometimesSleepForeverMethod = getSometimesSleepForeverMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"tensorflow.contrib.rpc.TestCaseService", "SometimesSleepForever"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tensorflow.contrib.rpc.TestExample.TestCase.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tensorflow.contrib.rpc.TestExample.TestCase.getDefaultInstance()))
.setSchemaDescriptor(new TestCaseServiceMethodDescriptorSupplier("SometimesSleepForever"))
.build();
}
}
}
return getSometimesSleepForeverMethod;
}
private static volatile io.grpc.MethodDescriptor getAlwaysFailWithInvalidArgumentMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "AlwaysFailWithInvalidArgument",
requestType = tensorflow.contrib.rpc.TestExample.TestCase.class,
responseType = tensorflow.contrib.rpc.TestExample.TestCase.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getAlwaysFailWithInvalidArgumentMethod() {
io.grpc.MethodDescriptor getAlwaysFailWithInvalidArgumentMethod;
if ((getAlwaysFailWithInvalidArgumentMethod = TestCaseServiceGrpc.getAlwaysFailWithInvalidArgumentMethod) == null) {
synchronized (TestCaseServiceGrpc.class) {
if ((getAlwaysFailWithInvalidArgumentMethod = TestCaseServiceGrpc.getAlwaysFailWithInvalidArgumentMethod) == null) {
TestCaseServiceGrpc.getAlwaysFailWithInvalidArgumentMethod = getAlwaysFailWithInvalidArgumentMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"tensorflow.contrib.rpc.TestCaseService", "AlwaysFailWithInvalidArgument"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tensorflow.contrib.rpc.TestExample.TestCase.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tensorflow.contrib.rpc.TestExample.TestCase.getDefaultInstance()))
.setSchemaDescriptor(new TestCaseServiceMethodDescriptorSupplier("AlwaysFailWithInvalidArgument"))
.build();
}
}
}
return getAlwaysFailWithInvalidArgumentMethod;
}
private static volatile io.grpc.MethodDescriptor getSometimesFailWithInvalidArgumentMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SometimesFailWithInvalidArgument",
requestType = tensorflow.contrib.rpc.TestExample.TestCase.class,
responseType = tensorflow.contrib.rpc.TestExample.TestCase.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSometimesFailWithInvalidArgumentMethod() {
io.grpc.MethodDescriptor getSometimesFailWithInvalidArgumentMethod;
if ((getSometimesFailWithInvalidArgumentMethod = TestCaseServiceGrpc.getSometimesFailWithInvalidArgumentMethod) == null) {
synchronized (TestCaseServiceGrpc.class) {
if ((getSometimesFailWithInvalidArgumentMethod = TestCaseServiceGrpc.getSometimesFailWithInvalidArgumentMethod) == null) {
TestCaseServiceGrpc.getSometimesFailWithInvalidArgumentMethod = getSometimesFailWithInvalidArgumentMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"tensorflow.contrib.rpc.TestCaseService", "SometimesFailWithInvalidArgument"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tensorflow.contrib.rpc.TestExample.TestCase.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tensorflow.contrib.rpc.TestExample.TestCase.getDefaultInstance()))
.setSchemaDescriptor(new TestCaseServiceMethodDescriptorSupplier("SometimesFailWithInvalidArgument"))
.build();
}
}
}
return getSometimesFailWithInvalidArgumentMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static TestCaseServiceStub newStub(io.grpc.Channel channel) {
return new TestCaseServiceStub(channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static TestCaseServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
return new TestCaseServiceBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static TestCaseServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
return new TestCaseServiceFutureStub(channel);
}
/**
*/
public static abstract class TestCaseServiceImplBase implements io.grpc.BindableService {
/**
*
* Copy input, and increment each entry in 'values' by 1.
*
*/
public void increment(tensorflow.contrib.rpc.TestExample.TestCase request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getIncrementMethod(), responseObserver);
}
/**
*
* Sleep forever.
*
*/
public void sleepForever(tensorflow.contrib.rpc.TestExample.TestCase request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getSleepForeverMethod(), responseObserver);
}
/**
*
* Sleep forever 50% of the time, return immediately the other 50%.
*
*/
public void sometimesSleepForever(tensorflow.contrib.rpc.TestExample.TestCase request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getSometimesSleepForeverMethod(), responseObserver);
}
/**
*
* Always fails with InvalidArgument.
*
*/
public void alwaysFailWithInvalidArgument(tensorflow.contrib.rpc.TestExample.TestCase request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getAlwaysFailWithInvalidArgumentMethod(), responseObserver);
}
/**
*
* Fails with InvalidArgument 50% of the time.
*
*/
public void sometimesFailWithInvalidArgument(tensorflow.contrib.rpc.TestExample.TestCase request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getSometimesFailWithInvalidArgumentMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getIncrementMethod(),
asyncUnaryCall(
new MethodHandlers<
tensorflow.contrib.rpc.TestExample.TestCase,
tensorflow.contrib.rpc.TestExample.TestCase>(
this, METHODID_INCREMENT)))
.addMethod(
getSleepForeverMethod(),
asyncUnaryCall(
new MethodHandlers<
tensorflow.contrib.rpc.TestExample.TestCase,
tensorflow.contrib.rpc.TestExample.TestCase>(
this, METHODID_SLEEP_FOREVER)))
.addMethod(
getSometimesSleepForeverMethod(),
asyncUnaryCall(
new MethodHandlers<
tensorflow.contrib.rpc.TestExample.TestCase,
tensorflow.contrib.rpc.TestExample.TestCase>(
this, METHODID_SOMETIMES_SLEEP_FOREVER)))
.addMethod(
getAlwaysFailWithInvalidArgumentMethod(),
asyncUnaryCall(
new MethodHandlers<
tensorflow.contrib.rpc.TestExample.TestCase,
tensorflow.contrib.rpc.TestExample.TestCase>(
this, METHODID_ALWAYS_FAIL_WITH_INVALID_ARGUMENT)))
.addMethod(
getSometimesFailWithInvalidArgumentMethod(),
asyncUnaryCall(
new MethodHandlers<
tensorflow.contrib.rpc.TestExample.TestCase,
tensorflow.contrib.rpc.TestExample.TestCase>(
this, METHODID_SOMETIMES_FAIL_WITH_INVALID_ARGUMENT)))
.build();
}
}
/**
*/
public static final class TestCaseServiceStub extends io.grpc.stub.AbstractStub {
private TestCaseServiceStub(io.grpc.Channel channel) {
super(channel);
}
private TestCaseServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TestCaseServiceStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new TestCaseServiceStub(channel, callOptions);
}
/**
*
* Copy input, and increment each entry in 'values' by 1.
*
*/
public void increment(tensorflow.contrib.rpc.TestExample.TestCase request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getIncrementMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Sleep forever.
*
*/
public void sleepForever(tensorflow.contrib.rpc.TestExample.TestCase request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getSleepForeverMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Sleep forever 50% of the time, return immediately the other 50%.
*
*/
public void sometimesSleepForever(tensorflow.contrib.rpc.TestExample.TestCase request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getSometimesSleepForeverMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Always fails with InvalidArgument.
*
*/
public void alwaysFailWithInvalidArgument(tensorflow.contrib.rpc.TestExample.TestCase request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getAlwaysFailWithInvalidArgumentMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Fails with InvalidArgument 50% of the time.
*
*/
public void sometimesFailWithInvalidArgument(tensorflow.contrib.rpc.TestExample.TestCase request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getSometimesFailWithInvalidArgumentMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class TestCaseServiceBlockingStub extends io.grpc.stub.AbstractStub {
private TestCaseServiceBlockingStub(io.grpc.Channel channel) {
super(channel);
}
private TestCaseServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TestCaseServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new TestCaseServiceBlockingStub(channel, callOptions);
}
/**
*
* Copy input, and increment each entry in 'values' by 1.
*
*/
public tensorflow.contrib.rpc.TestExample.TestCase increment(tensorflow.contrib.rpc.TestExample.TestCase request) {
return blockingUnaryCall(
getChannel(), getIncrementMethod(), getCallOptions(), request);
}
/**
*
* Sleep forever.
*
*/
public tensorflow.contrib.rpc.TestExample.TestCase sleepForever(tensorflow.contrib.rpc.TestExample.TestCase request) {
return blockingUnaryCall(
getChannel(), getSleepForeverMethod(), getCallOptions(), request);
}
/**
*
* Sleep forever 50% of the time, return immediately the other 50%.
*
*/
public tensorflow.contrib.rpc.TestExample.TestCase sometimesSleepForever(tensorflow.contrib.rpc.TestExample.TestCase request) {
return blockingUnaryCall(
getChannel(), getSometimesSleepForeverMethod(), getCallOptions(), request);
}
/**
*
* Always fails with InvalidArgument.
*
*/
public tensorflow.contrib.rpc.TestExample.TestCase alwaysFailWithInvalidArgument(tensorflow.contrib.rpc.TestExample.TestCase request) {
return blockingUnaryCall(
getChannel(), getAlwaysFailWithInvalidArgumentMethod(), getCallOptions(), request);
}
/**
*
* Fails with InvalidArgument 50% of the time.
*
*/
public tensorflow.contrib.rpc.TestExample.TestCase sometimesFailWithInvalidArgument(tensorflow.contrib.rpc.TestExample.TestCase request) {
return blockingUnaryCall(
getChannel(), getSometimesFailWithInvalidArgumentMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class TestCaseServiceFutureStub extends io.grpc.stub.AbstractStub {
private TestCaseServiceFutureStub(io.grpc.Channel channel) {
super(channel);
}
private TestCaseServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TestCaseServiceFutureStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new TestCaseServiceFutureStub(channel, callOptions);
}
/**
*
* Copy input, and increment each entry in 'values' by 1.
*
*/
public com.google.common.util.concurrent.ListenableFuture increment(
tensorflow.contrib.rpc.TestExample.TestCase request) {
return futureUnaryCall(
getChannel().newCall(getIncrementMethod(), getCallOptions()), request);
}
/**
*
* Sleep forever.
*
*/
public com.google.common.util.concurrent.ListenableFuture sleepForever(
tensorflow.contrib.rpc.TestExample.TestCase request) {
return futureUnaryCall(
getChannel().newCall(getSleepForeverMethod(), getCallOptions()), request);
}
/**
*
* Sleep forever 50% of the time, return immediately the other 50%.
*
*/
public com.google.common.util.concurrent.ListenableFuture sometimesSleepForever(
tensorflow.contrib.rpc.TestExample.TestCase request) {
return futureUnaryCall(
getChannel().newCall(getSometimesSleepForeverMethod(), getCallOptions()), request);
}
/**
*
* Always fails with InvalidArgument.
*
*/
public com.google.common.util.concurrent.ListenableFuture alwaysFailWithInvalidArgument(
tensorflow.contrib.rpc.TestExample.TestCase request) {
return futureUnaryCall(
getChannel().newCall(getAlwaysFailWithInvalidArgumentMethod(), getCallOptions()), request);
}
/**
*
* Fails with InvalidArgument 50% of the time.
*
*/
public com.google.common.util.concurrent.ListenableFuture sometimesFailWithInvalidArgument(
tensorflow.contrib.rpc.TestExample.TestCase request) {
return futureUnaryCall(
getChannel().newCall(getSometimesFailWithInvalidArgumentMethod(), getCallOptions()), request);
}
}
private static final int METHODID_INCREMENT = 0;
private static final int METHODID_SLEEP_FOREVER = 1;
private static final int METHODID_SOMETIMES_SLEEP_FOREVER = 2;
private static final int METHODID_ALWAYS_FAIL_WITH_INVALID_ARGUMENT = 3;
private static final int METHODID_SOMETIMES_FAIL_WITH_INVALID_ARGUMENT = 4;
private static final class MethodHandlers implements
io.grpc.stub.ServerCalls.UnaryMethod,
io.grpc.stub.ServerCalls.ServerStreamingMethod,
io.grpc.stub.ServerCalls.ClientStreamingMethod,
io.grpc.stub.ServerCalls.BidiStreamingMethod {
private final TestCaseServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(TestCaseServiceImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_INCREMENT:
serviceImpl.increment((tensorflow.contrib.rpc.TestExample.TestCase) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SLEEP_FOREVER:
serviceImpl.sleepForever((tensorflow.contrib.rpc.TestExample.TestCase) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SOMETIMES_SLEEP_FOREVER:
serviceImpl.sometimesSleepForever((tensorflow.contrib.rpc.TestExample.TestCase) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ALWAYS_FAIL_WITH_INVALID_ARGUMENT:
serviceImpl.alwaysFailWithInvalidArgument((tensorflow.contrib.rpc.TestExample.TestCase) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SOMETIMES_FAIL_WITH_INVALID_ARGUMENT:
serviceImpl.sometimesFailWithInvalidArgument((tensorflow.contrib.rpc.TestExample.TestCase) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver invoke(
io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
private static abstract class TestCaseServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
TestCaseServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return tensorflow.contrib.rpc.TestExample.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("TestCaseService");
}
}
private static final class TestCaseServiceFileDescriptorSupplier
extends TestCaseServiceBaseDescriptorSupplier {
TestCaseServiceFileDescriptorSupplier() {}
}
private static final class TestCaseServiceMethodDescriptorSupplier
extends TestCaseServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
TestCaseServiceMethodDescriptorSupplier(String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (TestCaseServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new TestCaseServiceFileDescriptorSupplier())
.addMethod(getIncrementMethod())
.addMethod(getSleepForeverMethod())
.addMethod(getSometimesSleepForeverMethod())
.addMethod(getAlwaysFailWithInvalidArgumentMethod())
.addMethod(getSometimesFailWithInvalidArgumentMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy