nl.topicus.jdbc.shaded.com.google.longrunning.OperationsGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spanner-jdbc Show documentation
Show all versions of spanner-jdbc Show documentation
JDBC Driver for Google Cloud Spanner
package nl.topicus.jdbc.shaded.com.google.longrunning;
import static nl.topicus.jdbc.shaded.io.grpc.stub.ClientCalls.asyncUnaryCall;
import static nl.topicus.jdbc.shaded.io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static nl.topicus.jdbc.shaded.io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static nl.topicus.jdbc.shaded.io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static nl.topicus.jdbc.shaded.io.grpc.stub.ClientCalls.blockingUnaryCall;
import static nl.topicus.jdbc.shaded.io.grpc.stub.ClientCalls.blockingServerStreamingCall;
import static nl.topicus.jdbc.shaded.io.grpc.stub.ClientCalls.futureUnaryCall;
import static nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.generateFullMethodName;
import static nl.topicus.jdbc.shaded.io.grpc.stub.ServerCalls.asyncUnaryCall;
import static nl.topicus.jdbc.shaded.io.grpc.stub.ServerCalls.asyncServerStreamingCall;
import static nl.topicus.jdbc.shaded.io.grpc.stub.ServerCalls.asyncClientStreamingCall;
import static nl.topicus.jdbc.shaded.io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
import static nl.topicus.jdbc.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
import static nl.topicus.jdbc.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
/**
*
* Manages long-running operations with an API service.
* When an API method normally takes long time to nl.topicus.jdbc.shaded.com.lete, it can be designed
* to return [Operation][google.longrunning.Operation] to the client, and the client can use this
* interface to receive the real response asynchronously by polling the
* operation resource, or pass the operation resource to another API (such as
* Google Cloud Pub/Sub API) to receive the response. Any API service that
* returns long-running operations should implement the `Operations` interface
* so developers can have a consistent client experience.
*
*/
@nl.topicus.jdbc.shaded.javax.annotation.Generated(
value = "by gRPC proto nl.topicus.jdbc.shaded.com.iler (version 1.2.0)",
nl.topicus.jdbc.shaded.com.ents = "Source: google/longrunning/operations.proto")
public final class OperationsGrpc {
private OperationsGrpc() {}
public static final String SERVICE_NAME = "google.longrunning.Operations";
// Static method descriptors that strictly reflect the proto.
@nl.topicus.jdbc.shaded.io.grpc.ExperimentalApi("https://github.nl.topicus.jdbc.shaded.com.grpc/grpc-java/issues/1901")
public static final nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor METHOD_LIST_OPERATIONS =
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.create(
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.MethodType.UNARY,
generateFullMethodName(
"google.longrunning.Operations", "ListOperations"),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.longrunning.ListOperationsRequest.getDefaultInstance()),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.longrunning.ListOperationsResponse.getDefaultInstance()));
@nl.topicus.jdbc.shaded.io.grpc.ExperimentalApi("https://github.nl.topicus.jdbc.shaded.com.grpc/grpc-java/issues/1901")
public static final nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor METHOD_GET_OPERATION =
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.create(
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.MethodType.UNARY,
generateFullMethodName(
"google.longrunning.Operations", "GetOperation"),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.longrunning.GetOperationRequest.getDefaultInstance()),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.longrunning.Operation.getDefaultInstance()));
@nl.topicus.jdbc.shaded.io.grpc.ExperimentalApi("https://github.nl.topicus.jdbc.shaded.com.grpc/grpc-java/issues/1901")
public static final nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor METHOD_DELETE_OPERATION =
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.create(
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.MethodType.UNARY,
generateFullMethodName(
"google.longrunning.Operations", "DeleteOperation"),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.longrunning.DeleteOperationRequest.getDefaultInstance()),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.protobuf.Empty.getDefaultInstance()));
@nl.topicus.jdbc.shaded.io.grpc.ExperimentalApi("https://github.nl.topicus.jdbc.shaded.com.grpc/grpc-java/issues/1901")
public static final nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor METHOD_CANCEL_OPERATION =
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.create(
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.MethodType.UNARY,
generateFullMethodName(
"google.longrunning.Operations", "CancelOperation"),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.longrunning.CancelOperationRequest.getDefaultInstance()),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.protobuf.Empty.getDefaultInstance()));
/**
* Creates a new async stub that supports all call types for the service
*/
public static OperationsStub newStub(nl.topicus.jdbc.shaded.io.grpc.Channel channel) {
return new OperationsStub(channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static OperationsBlockingStub newBlockingStub(
nl.topicus.jdbc.shaded.io.grpc.Channel channel) {
return new OperationsBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary and streaming output calls on the service
*/
public static OperationsFutureStub newFutureStub(
nl.topicus.jdbc.shaded.io.grpc.Channel channel) {
return new OperationsFutureStub(channel);
}
/**
*
* Manages long-running operations with an API service.
* When an API method normally takes long time to nl.topicus.jdbc.shaded.com.lete, it can be designed
* to return [Operation][google.longrunning.Operation] to the client, and the client can use this
* interface to receive the real response asynchronously by polling the
* operation resource, or pass the operation resource to another API (such as
* Google Cloud Pub/Sub API) to receive the response. Any API service that
* returns long-running operations should implement the `Operations` interface
* so developers can have a consistent client experience.
*
*/
public static abstract class OperationsImplBase implements nl.topicus.jdbc.shaded.io.grpc.BindableService {
/**
*
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* NOTE: the `name` binding below allows API services to override the binding
* to use different resource name schemes, such as `users/*/operations`.
*
*/
public void listOperations(nl.topicus.jdbc.shaded.com.google.longrunning.ListOperationsRequest request,
nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(METHOD_LIST_OPERATIONS, responseObserver);
}
/**
*
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service.
*
*/
public void getOperation(nl.topicus.jdbc.shaded.com.google.longrunning.GetOperationRequest request,
nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(METHOD_GET_OPERATION, responseObserver);
}
/**
*
* Deletes a long-running operation. This method indicates that the client is
* no longer interested in the operation result. It does not cancel the
* operation. If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`.
*
*/
public void deleteOperation(nl.topicus.jdbc.shaded.com.google.longrunning.DeleteOperationRequest request,
nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(METHOD_DELETE_OPERATION, responseObserver);
}
/**
*
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not
* guaranteed. If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use
* [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
* other methods to check whether the cancellation succeeded or whether the
* operation nl.topicus.jdbc.shaded.com.leted despite cancellation. On successful cancellation,
* the operation is not deleted; instead, it becomes an operation with
* an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
* corresponding to `Code.CANCELLED`.
*
*/
public void cancelOperation(nl.topicus.jdbc.shaded.com.google.longrunning.CancelOperationRequest request,
nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(METHOD_CANCEL_OPERATION, responseObserver);
}
@java.lang.Override public final nl.topicus.jdbc.shaded.io.grpc.ServerServiceDefinition bindService() {
return nl.topicus.jdbc.shaded.io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
METHOD_LIST_OPERATIONS,
asyncUnaryCall(
new MethodHandlers<
nl.topicus.jdbc.shaded.com.google.longrunning.ListOperationsRequest,
nl.topicus.jdbc.shaded.com.google.longrunning.ListOperationsResponse>(
this, METHODID_LIST_OPERATIONS)))
.addMethod(
METHOD_GET_OPERATION,
asyncUnaryCall(
new MethodHandlers<
nl.topicus.jdbc.shaded.com.google.longrunning.GetOperationRequest,
nl.topicus.jdbc.shaded.com.google.longrunning.Operation>(
this, METHODID_GET_OPERATION)))
.addMethod(
METHOD_DELETE_OPERATION,
asyncUnaryCall(
new MethodHandlers<
nl.topicus.jdbc.shaded.com.google.longrunning.DeleteOperationRequest,
nl.topicus.jdbc.shaded.com.google.protobuf.Empty>(
this, METHODID_DELETE_OPERATION)))
.addMethod(
METHOD_CANCEL_OPERATION,
asyncUnaryCall(
new MethodHandlers<
nl.topicus.jdbc.shaded.com.google.longrunning.CancelOperationRequest,
nl.topicus.jdbc.shaded.com.google.protobuf.Empty>(
this, METHODID_CANCEL_OPERATION)))
.build();
}
}
/**
*
* Manages long-running operations with an API service.
* When an API method normally takes long time to nl.topicus.jdbc.shaded.com.lete, it can be designed
* to return [Operation][google.longrunning.Operation] to the client, and the client can use this
* interface to receive the real response asynchronously by polling the
* operation resource, or pass the operation resource to another API (such as
* Google Cloud Pub/Sub API) to receive the response. Any API service that
* returns long-running operations should implement the `Operations` interface
* so developers can have a consistent client experience.
*
*/
public static final class OperationsStub extends nl.topicus.jdbc.shaded.io.grpc.stub.AbstractStub {
private OperationsStub(nl.topicus.jdbc.shaded.io.grpc.Channel channel) {
super(channel);
}
private OperationsStub(nl.topicus.jdbc.shaded.io.grpc.Channel channel,
nl.topicus.jdbc.shaded.io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected OperationsStub build(nl.topicus.jdbc.shaded.io.grpc.Channel channel,
nl.topicus.jdbc.shaded.io.grpc.CallOptions callOptions) {
return new OperationsStub(channel, callOptions);
}
/**
*
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* NOTE: the `name` binding below allows API services to override the binding
* to use different resource name schemes, such as `users/*/operations`.
*
*/
public void listOperations(nl.topicus.jdbc.shaded.com.google.longrunning.ListOperationsRequest request,
nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(METHOD_LIST_OPERATIONS, getCallOptions()), request, responseObserver);
}
/**
*
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service.
*
*/
public void getOperation(nl.topicus.jdbc.shaded.com.google.longrunning.GetOperationRequest request,
nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(METHOD_GET_OPERATION, getCallOptions()), request, responseObserver);
}
/**
*
* Deletes a long-running operation. This method indicates that the client is
* no longer interested in the operation result. It does not cancel the
* operation. If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`.
*
*/
public void deleteOperation(nl.topicus.jdbc.shaded.com.google.longrunning.DeleteOperationRequest request,
nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(METHOD_DELETE_OPERATION, getCallOptions()), request, responseObserver);
}
/**
*
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not
* guaranteed. If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use
* [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
* other methods to check whether the cancellation succeeded or whether the
* operation nl.topicus.jdbc.shaded.com.leted despite cancellation. On successful cancellation,
* the operation is not deleted; instead, it becomes an operation with
* an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
* corresponding to `Code.CANCELLED`.
*
*/
public void cancelOperation(nl.topicus.jdbc.shaded.com.google.longrunning.CancelOperationRequest request,
nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(METHOD_CANCEL_OPERATION, getCallOptions()), request, responseObserver);
}
}
/**
*
* Manages long-running operations with an API service.
* When an API method normally takes long time to nl.topicus.jdbc.shaded.com.lete, it can be designed
* to return [Operation][google.longrunning.Operation] to the client, and the client can use this
* interface to receive the real response asynchronously by polling the
* operation resource, or pass the operation resource to another API (such as
* Google Cloud Pub/Sub API) to receive the response. Any API service that
* returns long-running operations should implement the `Operations` interface
* so developers can have a consistent client experience.
*
*/
public static final class OperationsBlockingStub extends nl.topicus.jdbc.shaded.io.grpc.stub.AbstractStub {
private OperationsBlockingStub(nl.topicus.jdbc.shaded.io.grpc.Channel channel) {
super(channel);
}
private OperationsBlockingStub(nl.topicus.jdbc.shaded.io.grpc.Channel channel,
nl.topicus.jdbc.shaded.io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected OperationsBlockingStub build(nl.topicus.jdbc.shaded.io.grpc.Channel channel,
nl.topicus.jdbc.shaded.io.grpc.CallOptions callOptions) {
return new OperationsBlockingStub(channel, callOptions);
}
/**
*
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* NOTE: the `name` binding below allows API services to override the binding
* to use different resource name schemes, such as `users/*/operations`.
*
*/
public nl.topicus.jdbc.shaded.com.google.longrunning.ListOperationsResponse listOperations(nl.topicus.jdbc.shaded.com.google.longrunning.ListOperationsRequest request) {
return blockingUnaryCall(
getChannel(), METHOD_LIST_OPERATIONS, getCallOptions(), request);
}
/**
*
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service.
*
*/
public nl.topicus.jdbc.shaded.com.google.longrunning.Operation getOperation(nl.topicus.jdbc.shaded.com.google.longrunning.GetOperationRequest request) {
return blockingUnaryCall(
getChannel(), METHOD_GET_OPERATION, getCallOptions(), request);
}
/**
*
* Deletes a long-running operation. This method indicates that the client is
* no longer interested in the operation result. It does not cancel the
* operation. If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`.
*
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.Empty deleteOperation(nl.topicus.jdbc.shaded.com.google.longrunning.DeleteOperationRequest request) {
return blockingUnaryCall(
getChannel(), METHOD_DELETE_OPERATION, getCallOptions(), request);
}
/**
*
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not
* guaranteed. If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use
* [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
* other methods to check whether the cancellation succeeded or whether the
* operation nl.topicus.jdbc.shaded.com.leted despite cancellation. On successful cancellation,
* the operation is not deleted; instead, it becomes an operation with
* an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
* corresponding to `Code.CANCELLED`.
*
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.Empty cancelOperation(nl.topicus.jdbc.shaded.com.google.longrunning.CancelOperationRequest request) {
return blockingUnaryCall(
getChannel(), METHOD_CANCEL_OPERATION, getCallOptions(), request);
}
}
/**
*
* Manages long-running operations with an API service.
* When an API method normally takes long time to nl.topicus.jdbc.shaded.com.lete, it can be designed
* to return [Operation][google.longrunning.Operation] to the client, and the client can use this
* interface to receive the real response asynchronously by polling the
* operation resource, or pass the operation resource to another API (such as
* Google Cloud Pub/Sub API) to receive the response. Any API service that
* returns long-running operations should implement the `Operations` interface
* so developers can have a consistent client experience.
*
*/
public static final class OperationsFutureStub extends nl.topicus.jdbc.shaded.io.grpc.stub.AbstractStub {
private OperationsFutureStub(nl.topicus.jdbc.shaded.io.grpc.Channel channel) {
super(channel);
}
private OperationsFutureStub(nl.topicus.jdbc.shaded.io.grpc.Channel channel,
nl.topicus.jdbc.shaded.io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected OperationsFutureStub build(nl.topicus.jdbc.shaded.io.grpc.Channel channel,
nl.topicus.jdbc.shaded.io.grpc.CallOptions callOptions) {
return new OperationsFutureStub(channel, callOptions);
}
/**
*
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* NOTE: the `name` binding below allows API services to override the binding
* to use different resource name schemes, such as `users/*/operations`.
*
*/
public nl.topicus.jdbc.shaded.com.google.nl.topicus.jdbc.shaded.com.on.util.concurrent.ListenableFuture listOperations(
nl.topicus.jdbc.shaded.com.google.longrunning.ListOperationsRequest request) {
return futureUnaryCall(
getChannel().newCall(METHOD_LIST_OPERATIONS, getCallOptions()), request);
}
/**
*
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service.
*
*/
public nl.topicus.jdbc.shaded.com.google.nl.topicus.jdbc.shaded.com.on.util.concurrent.ListenableFuture getOperation(
nl.topicus.jdbc.shaded.com.google.longrunning.GetOperationRequest request) {
return futureUnaryCall(
getChannel().newCall(METHOD_GET_OPERATION, getCallOptions()), request);
}
/**
*
* Deletes a long-running operation. This method indicates that the client is
* no longer interested in the operation result. It does not cancel the
* operation. If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`.
*
*/
public nl.topicus.jdbc.shaded.com.google.nl.topicus.jdbc.shaded.com.on.util.concurrent.ListenableFuture deleteOperation(
nl.topicus.jdbc.shaded.com.google.longrunning.DeleteOperationRequest request) {
return futureUnaryCall(
getChannel().newCall(METHOD_DELETE_OPERATION, getCallOptions()), request);
}
/**
*
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not
* guaranteed. If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use
* [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
* other methods to check whether the cancellation succeeded or whether the
* operation nl.topicus.jdbc.shaded.com.leted despite cancellation. On successful cancellation,
* the operation is not deleted; instead, it becomes an operation with
* an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
* corresponding to `Code.CANCELLED`.
*
*/
public nl.topicus.jdbc.shaded.com.google.nl.topicus.jdbc.shaded.com.on.util.concurrent.ListenableFuture cancelOperation(
nl.topicus.jdbc.shaded.com.google.longrunning.CancelOperationRequest request) {
return futureUnaryCall(
getChannel().newCall(METHOD_CANCEL_OPERATION, getCallOptions()), request);
}
}
private static final int METHODID_LIST_OPERATIONS = 0;
private static final int METHODID_GET_OPERATION = 1;
private static final int METHODID_DELETE_OPERATION = 2;
private static final int METHODID_CANCEL_OPERATION = 3;
private static final class MethodHandlers implements
nl.topicus.jdbc.shaded.io.grpc.stub.ServerCalls.UnaryMethod,
nl.topicus.jdbc.shaded.io.grpc.stub.ServerCalls.ServerStreamingMethod,
nl.topicus.jdbc.shaded.io.grpc.stub.ServerCalls.ClientStreamingMethod,
nl.topicus.jdbc.shaded.io.grpc.stub.ServerCalls.BidiStreamingMethod {
private final OperationsImplBase serviceImpl;
private final int methodId;
MethodHandlers(OperationsImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_LIST_OPERATIONS:
serviceImpl.listOperations((nl.topicus.jdbc.shaded.com.google.longrunning.ListOperationsRequest) request,
(nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_OPERATION:
serviceImpl.getOperation((nl.topicus.jdbc.shaded.com.google.longrunning.GetOperationRequest) request,
(nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_OPERATION:
serviceImpl.deleteOperation((nl.topicus.jdbc.shaded.com.google.longrunning.DeleteOperationRequest) request,
(nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CANCEL_OPERATION:
serviceImpl.cancelOperation((nl.topicus.jdbc.shaded.com.google.longrunning.CancelOperationRequest) request,
(nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver invoke(
nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
private static final class OperationsDescriptorSupplier implements nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoFileDescriptorSupplier {
@java.lang.Override
public nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return nl.topicus.jdbc.shaded.com.google.longrunning.OperationsProto.getDescriptor();
}
}
private static volatile nl.topicus.jdbc.shaded.io.grpc.ServiceDescriptor serviceDescriptor;
public static nl.topicus.jdbc.shaded.io.grpc.ServiceDescriptor getServiceDescriptor() {
nl.topicus.jdbc.shaded.io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (OperationsGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = nl.topicus.jdbc.shaded.io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new OperationsDescriptorSupplier())
.addMethod(METHOD_LIST_OPERATIONS)
.addMethod(METHOD_GET_OPERATION)
.addMethod(METHOD_DELETE_OPERATION)
.addMethod(METHOD_CANCEL_OPERATION)
.build();
}
}
}
return result;
}
}