![JAR search and dependency download from the Maven repository](/logo.png)
net.spals.appbuilder.app.examples.grpc.rest.UserServiceV2Grpc Maven / Gradle / Ivy
package net.spals.appbuilder.app.examples.grpc.rest;
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.11.0)",
comments = "Source: rest_routes_v2.proto")
public final class UserServiceV2Grpc {
private UserServiceV2Grpc() {}
public static final String SERVICE_NAME = "UserServiceV2";
// Static method descriptors that strictly reflect the proto.
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getDeleteUserV2Method()} instead.
public static final io.grpc.MethodDescriptor METHOD_DELETE_USER_V2 = getDeleteUserV2MethodHelper();
private static volatile io.grpc.MethodDescriptor getDeleteUserV2Method;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor getDeleteUserV2Method() {
return getDeleteUserV2MethodHelper();
}
private static io.grpc.MethodDescriptor getDeleteUserV2MethodHelper() {
io.grpc.MethodDescriptor getDeleteUserV2Method;
if ((getDeleteUserV2Method = UserServiceV2Grpc.getDeleteUserV2Method) == null) {
synchronized (UserServiceV2Grpc.class) {
if ((getDeleteUserV2Method = UserServiceV2Grpc.getDeleteUserV2Method) == null) {
UserServiceV2Grpc.getDeleteUserV2Method = getDeleteUserV2Method =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"UserServiceV2", "DeleteUserV2"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
net.spals.appbuilder.app.examples.grpc.rest.DeleteUserRequestV2.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
net.spals.appbuilder.app.examples.grpc.rest.DeleteUserResponseV2.getDefaultInstance()))
.setSchemaDescriptor(new UserServiceV2MethodDescriptorSupplier("DeleteUserV2"))
.build();
}
}
}
return getDeleteUserV2Method;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getGetUserV2Method()} instead.
public static final io.grpc.MethodDescriptor METHOD_GET_USER_V2 = getGetUserV2MethodHelper();
private static volatile io.grpc.MethodDescriptor getGetUserV2Method;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor getGetUserV2Method() {
return getGetUserV2MethodHelper();
}
private static io.grpc.MethodDescriptor getGetUserV2MethodHelper() {
io.grpc.MethodDescriptor getGetUserV2Method;
if ((getGetUserV2Method = UserServiceV2Grpc.getGetUserV2Method) == null) {
synchronized (UserServiceV2Grpc.class) {
if ((getGetUserV2Method = UserServiceV2Grpc.getGetUserV2Method) == null) {
UserServiceV2Grpc.getGetUserV2Method = getGetUserV2Method =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"UserServiceV2", "GetUserV2"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
net.spals.appbuilder.app.examples.grpc.rest.GetUserRequestV2.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
net.spals.appbuilder.app.examples.grpc.rest.GetUserResponseV2.getDefaultInstance()))
.setSchemaDescriptor(new UserServiceV2MethodDescriptorSupplier("GetUserV2"))
.build();
}
}
}
return getGetUserV2Method;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getPostUserV2Method()} instead.
public static final io.grpc.MethodDescriptor METHOD_POST_USER_V2 = getPostUserV2MethodHelper();
private static volatile io.grpc.MethodDescriptor getPostUserV2Method;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor getPostUserV2Method() {
return getPostUserV2MethodHelper();
}
private static io.grpc.MethodDescriptor getPostUserV2MethodHelper() {
io.grpc.MethodDescriptor getPostUserV2Method;
if ((getPostUserV2Method = UserServiceV2Grpc.getPostUserV2Method) == null) {
synchronized (UserServiceV2Grpc.class) {
if ((getPostUserV2Method = UserServiceV2Grpc.getPostUserV2Method) == null) {
UserServiceV2Grpc.getPostUserV2Method = getPostUserV2Method =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"UserServiceV2", "PostUserV2"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
net.spals.appbuilder.app.examples.grpc.rest.PostUserRequestV2.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
net.spals.appbuilder.app.examples.grpc.rest.PostUserResponseV2.getDefaultInstance()))
.setSchemaDescriptor(new UserServiceV2MethodDescriptorSupplier("PostUserV2"))
.build();
}
}
}
return getPostUserV2Method;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static UserServiceV2Stub newStub(io.grpc.Channel channel) {
return new UserServiceV2Stub(channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static UserServiceV2BlockingStub newBlockingStub(
io.grpc.Channel channel) {
return new UserServiceV2BlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static UserServiceV2FutureStub newFutureStub(
io.grpc.Channel channel) {
return new UserServiceV2FutureStub(channel);
}
/**
*/
public static abstract class UserServiceV2ImplBase implements io.grpc.BindableService {
/**
*/
public void deleteUserV2(net.spals.appbuilder.app.examples.grpc.rest.DeleteUserRequestV2 request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getDeleteUserV2MethodHelper(), responseObserver);
}
/**
*/
public void getUserV2(net.spals.appbuilder.app.examples.grpc.rest.GetUserRequestV2 request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getGetUserV2MethodHelper(), responseObserver);
}
/**
*/
public void postUserV2(net.spals.appbuilder.app.examples.grpc.rest.PostUserRequestV2 request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getPostUserV2MethodHelper(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getDeleteUserV2MethodHelper(),
asyncUnaryCall(
new MethodHandlers<
net.spals.appbuilder.app.examples.grpc.rest.DeleteUserRequestV2,
net.spals.appbuilder.app.examples.grpc.rest.DeleteUserResponseV2>(
this, METHODID_DELETE_USER_V2)))
.addMethod(
getGetUserV2MethodHelper(),
asyncUnaryCall(
new MethodHandlers<
net.spals.appbuilder.app.examples.grpc.rest.GetUserRequestV2,
net.spals.appbuilder.app.examples.grpc.rest.GetUserResponseV2>(
this, METHODID_GET_USER_V2)))
.addMethod(
getPostUserV2MethodHelper(),
asyncUnaryCall(
new MethodHandlers<
net.spals.appbuilder.app.examples.grpc.rest.PostUserRequestV2,
net.spals.appbuilder.app.examples.grpc.rest.PostUserResponseV2>(
this, METHODID_POST_USER_V2)))
.build();
}
}
/**
*/
public static final class UserServiceV2Stub extends io.grpc.stub.AbstractStub {
private UserServiceV2Stub(io.grpc.Channel channel) {
super(channel);
}
private UserServiceV2Stub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected UserServiceV2Stub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new UserServiceV2Stub(channel, callOptions);
}
/**
*/
public void deleteUserV2(net.spals.appbuilder.app.examples.grpc.rest.DeleteUserRequestV2 request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getDeleteUserV2MethodHelper(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getUserV2(net.spals.appbuilder.app.examples.grpc.rest.GetUserRequestV2 request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetUserV2MethodHelper(), getCallOptions()), request, responseObserver);
}
/**
*/
public void postUserV2(net.spals.appbuilder.app.examples.grpc.rest.PostUserRequestV2 request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getPostUserV2MethodHelper(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class UserServiceV2BlockingStub extends io.grpc.stub.AbstractStub {
private UserServiceV2BlockingStub(io.grpc.Channel channel) {
super(channel);
}
private UserServiceV2BlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected UserServiceV2BlockingStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new UserServiceV2BlockingStub(channel, callOptions);
}
/**
*/
public net.spals.appbuilder.app.examples.grpc.rest.DeleteUserResponseV2 deleteUserV2(net.spals.appbuilder.app.examples.grpc.rest.DeleteUserRequestV2 request) {
return blockingUnaryCall(
getChannel(), getDeleteUserV2MethodHelper(), getCallOptions(), request);
}
/**
*/
public net.spals.appbuilder.app.examples.grpc.rest.GetUserResponseV2 getUserV2(net.spals.appbuilder.app.examples.grpc.rest.GetUserRequestV2 request) {
return blockingUnaryCall(
getChannel(), getGetUserV2MethodHelper(), getCallOptions(), request);
}
/**
*/
public net.spals.appbuilder.app.examples.grpc.rest.PostUserResponseV2 postUserV2(net.spals.appbuilder.app.examples.grpc.rest.PostUserRequestV2 request) {
return blockingUnaryCall(
getChannel(), getPostUserV2MethodHelper(), getCallOptions(), request);
}
}
/**
*/
public static final class UserServiceV2FutureStub extends io.grpc.stub.AbstractStub {
private UserServiceV2FutureStub(io.grpc.Channel channel) {
super(channel);
}
private UserServiceV2FutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected UserServiceV2FutureStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new UserServiceV2FutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture deleteUserV2(
net.spals.appbuilder.app.examples.grpc.rest.DeleteUserRequestV2 request) {
return futureUnaryCall(
getChannel().newCall(getDeleteUserV2MethodHelper(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getUserV2(
net.spals.appbuilder.app.examples.grpc.rest.GetUserRequestV2 request) {
return futureUnaryCall(
getChannel().newCall(getGetUserV2MethodHelper(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture postUserV2(
net.spals.appbuilder.app.examples.grpc.rest.PostUserRequestV2 request) {
return futureUnaryCall(
getChannel().newCall(getPostUserV2MethodHelper(), getCallOptions()), request);
}
}
private static final int METHODID_DELETE_USER_V2 = 0;
private static final int METHODID_GET_USER_V2 = 1;
private static final int METHODID_POST_USER_V2 = 2;
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 UserServiceV2ImplBase serviceImpl;
private final int methodId;
MethodHandlers(UserServiceV2ImplBase 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_DELETE_USER_V2:
serviceImpl.deleteUserV2((net.spals.appbuilder.app.examples.grpc.rest.DeleteUserRequestV2) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_USER_V2:
serviceImpl.getUserV2((net.spals.appbuilder.app.examples.grpc.rest.GetUserRequestV2) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_POST_USER_V2:
serviceImpl.postUserV2((net.spals.appbuilder.app.examples.grpc.rest.PostUserRequestV2) 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 UserServiceV2BaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
UserServiceV2BaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return net.spals.appbuilder.app.examples.grpc.rest.RestServerV2Proto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("UserServiceV2");
}
}
private static final class UserServiceV2FileDescriptorSupplier
extends UserServiceV2BaseDescriptorSupplier {
UserServiceV2FileDescriptorSupplier() {}
}
private static final class UserServiceV2MethodDescriptorSupplier
extends UserServiceV2BaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
UserServiceV2MethodDescriptorSupplier(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 (UserServiceV2Grpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new UserServiceV2FileDescriptorSupplier())
.addMethod(getDeleteUserV2MethodHelper())
.addMethod(getGetUserV2MethodHelper())
.addMethod(getPostUserV2MethodHelper())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy