com.wgtwo.api.v0.webterminal.WebTerminalServiceGrpc Maven / Gradle / Ivy
package com.wgtwo.api.v0.webterminal;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* Gateway for WebTerminalProtocol. Requires user's consent to answer and initiate calls.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.52.1)",
comments = "Source: wgtwo/webterminal/v0/webterminal.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class WebTerminalServiceGrpc {
private WebTerminalServiceGrpc() {}
public static final String SERVICE_NAME = "wgtwo.webterminal.v0.WebTerminalService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getPipeMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Pipe",
requestType = com.wgtwo.api.v0.webterminal.WebTerminalMessage.class,
responseType = com.wgtwo.api.v0.webterminal.WebTerminalMessage.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
public static io.grpc.MethodDescriptor getPipeMethod() {
io.grpc.MethodDescriptor getPipeMethod;
if ((getPipeMethod = WebTerminalServiceGrpc.getPipeMethod) == null) {
synchronized (WebTerminalServiceGrpc.class) {
if ((getPipeMethod = WebTerminalServiceGrpc.getPipeMethod) == null) {
WebTerminalServiceGrpc.getPipeMethod = getPipeMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Pipe"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.wgtwo.api.v0.webterminal.WebTerminalMessage.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.wgtwo.api.v0.webterminal.WebTerminalMessage.getDefaultInstance()))
.setSchemaDescriptor(new WebTerminalServiceMethodDescriptorSupplier("Pipe"))
.build();
}
}
}
return getPipeMethod;
}
private static volatile io.grpc.MethodDescriptor getMultiPipeMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "MultiPipe",
requestType = com.wgtwo.api.v0.webterminal.WebTerminalMessage.class,
responseType = com.wgtwo.api.v0.webterminal.WebTerminalMessage.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
public static io.grpc.MethodDescriptor getMultiPipeMethod() {
io.grpc.MethodDescriptor getMultiPipeMethod;
if ((getMultiPipeMethod = WebTerminalServiceGrpc.getMultiPipeMethod) == null) {
synchronized (WebTerminalServiceGrpc.class) {
if ((getMultiPipeMethod = WebTerminalServiceGrpc.getMultiPipeMethod) == null) {
WebTerminalServiceGrpc.getMultiPipeMethod = getMultiPipeMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "MultiPipe"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.wgtwo.api.v0.webterminal.WebTerminalMessage.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.wgtwo.api.v0.webterminal.WebTerminalMessage.getDefaultInstance()))
.setSchemaDescriptor(new WebTerminalServiceMethodDescriptorSupplier("MultiPipe"))
.build();
}
}
}
return getMultiPipeMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static WebTerminalServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public WebTerminalServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WebTerminalServiceStub(channel, callOptions);
}
};
return WebTerminalServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static WebTerminalServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public WebTerminalServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WebTerminalServiceBlockingStub(channel, callOptions);
}
};
return WebTerminalServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static WebTerminalServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public WebTerminalServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WebTerminalServiceFutureStub(channel, callOptions);
}
};
return WebTerminalServiceFutureStub.newStub(factory, channel);
}
/**
*
* Gateway for WebTerminalProtocol. Requires user's consent to answer and initiate calls.
*
*/
public static abstract class WebTerminalServiceImplBase implements io.grpc.BindableService {
/**
*/
public io.grpc.stub.StreamObserver pipe(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getPipeMethod(), responseObserver);
}
/**
*/
public io.grpc.stub.StreamObserver multiPipe(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getMultiPipeMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getPipeMethod(),
io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
new MethodHandlers<
com.wgtwo.api.v0.webterminal.WebTerminalMessage,
com.wgtwo.api.v0.webterminal.WebTerminalMessage>(
this, METHODID_PIPE)))
.addMethod(
getMultiPipeMethod(),
io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
new MethodHandlers<
com.wgtwo.api.v0.webterminal.WebTerminalMessage,
com.wgtwo.api.v0.webterminal.WebTerminalMessage>(
this, METHODID_MULTI_PIPE)))
.build();
}
}
/**
*
* Gateway for WebTerminalProtocol. Requires user's consent to answer and initiate calls.
*
*/
public static final class WebTerminalServiceStub extends io.grpc.stub.AbstractAsyncStub {
private WebTerminalServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected WebTerminalServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WebTerminalServiceStub(channel, callOptions);
}
/**
*/
public io.grpc.stub.StreamObserver pipe(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ClientCalls.asyncBidiStreamingCall(
getChannel().newCall(getPipeMethod(), getCallOptions()), responseObserver);
}
/**
*/
public io.grpc.stub.StreamObserver multiPipe(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ClientCalls.asyncBidiStreamingCall(
getChannel().newCall(getMultiPipeMethod(), getCallOptions()), responseObserver);
}
}
/**
*
* Gateway for WebTerminalProtocol. Requires user's consent to answer and initiate calls.
*
*/
public static final class WebTerminalServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private WebTerminalServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected WebTerminalServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WebTerminalServiceBlockingStub(channel, callOptions);
}
}
/**
*
* Gateway for WebTerminalProtocol. Requires user's consent to answer and initiate calls.
*
*/
public static final class WebTerminalServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private WebTerminalServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected WebTerminalServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WebTerminalServiceFutureStub(channel, callOptions);
}
}
private static final int METHODID_PIPE = 0;
private static final int METHODID_MULTI_PIPE = 1;
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 WebTerminalServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(WebTerminalServiceImplBase 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) {
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver invoke(
io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_PIPE:
return (io.grpc.stub.StreamObserver) serviceImpl.pipe(
(io.grpc.stub.StreamObserver) responseObserver);
case METHODID_MULTI_PIPE:
return (io.grpc.stub.StreamObserver) serviceImpl.multiPipe(
(io.grpc.stub.StreamObserver) responseObserver);
default:
throw new AssertionError();
}
}
}
private static abstract class WebTerminalServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
WebTerminalServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.wgtwo.api.v0.webterminal.WebTerminalProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("WebTerminalService");
}
}
private static final class WebTerminalServiceFileDescriptorSupplier
extends WebTerminalServiceBaseDescriptorSupplier {
WebTerminalServiceFileDescriptorSupplier() {}
}
private static final class WebTerminalServiceMethodDescriptorSupplier
extends WebTerminalServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
WebTerminalServiceMethodDescriptorSupplier(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 (WebTerminalServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new WebTerminalServiceFileDescriptorSupplier())
.addMethod(getPipeMethod())
.addMethod(getMultiPipeMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy