Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.turbospaces.api.v1.AdminApiGrpc Maven / Gradle / Ivy
package com.turbospaces.api.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.61.0)",
comments = "Source: grpc.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class AdminApiGrpc {
private AdminApiGrpc() {}
public static final java.lang.String SERVICE_NAME = "com.turbospaces.api.v1.AdminApi";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getGetVersionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getVersion",
requestType = com.turbospaces.api.v1.GetApplicationVersionRequest.class,
responseType = com.turbospaces.api.v1.GetApplicationVersionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetVersionMethod() {
io.grpc.MethodDescriptor getGetVersionMethod;
if ((getGetVersionMethod = AdminApiGrpc.getGetVersionMethod) == null) {
synchronized (AdminApiGrpc.class) {
if ((getGetVersionMethod = AdminApiGrpc.getGetVersionMethod) == null) {
AdminApiGrpc.getGetVersionMethod = getGetVersionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getVersion"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.turbospaces.api.v1.GetApplicationVersionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.turbospaces.api.v1.GetApplicationVersionResponse.getDefaultInstance()))
.setSchemaDescriptor(new AdminApiMethodDescriptorSupplier("getVersion"))
.build();
}
}
}
return getGetVersionMethod;
}
private static volatile io.grpc.MethodDescriptor getGetExternalIpMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getExternalIp",
requestType = com.turbospaces.api.v1.GetExternalIpRequest.class,
responseType = com.turbospaces.api.v1.GetExternalIpResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetExternalIpMethod() {
io.grpc.MethodDescriptor getGetExternalIpMethod;
if ((getGetExternalIpMethod = AdminApiGrpc.getGetExternalIpMethod) == null) {
synchronized (AdminApiGrpc.class) {
if ((getGetExternalIpMethod = AdminApiGrpc.getGetExternalIpMethod) == null) {
AdminApiGrpc.getGetExternalIpMethod = getGetExternalIpMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getExternalIp"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.turbospaces.api.v1.GetExternalIpRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.turbospaces.api.v1.GetExternalIpResponse.getDefaultInstance()))
.setSchemaDescriptor(new AdminApiMethodDescriptorSupplier("getExternalIp"))
.build();
}
}
}
return getGetExternalIpMethod;
}
private static volatile io.grpc.MethodDescriptor getHealthCheckMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "healthCheck",
requestType = com.turbospaces.api.v1.HealthCheckRequest.class,
responseType = com.turbospaces.api.v1.HealthCheckResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getHealthCheckMethod() {
io.grpc.MethodDescriptor getHealthCheckMethod;
if ((getHealthCheckMethod = AdminApiGrpc.getHealthCheckMethod) == null) {
synchronized (AdminApiGrpc.class) {
if ((getHealthCheckMethod = AdminApiGrpc.getHealthCheckMethod) == null) {
AdminApiGrpc.getHealthCheckMethod = getHealthCheckMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "healthCheck"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.turbospaces.api.v1.HealthCheckRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.turbospaces.api.v1.HealthCheckResponse.getDefaultInstance()))
.setSchemaDescriptor(new AdminApiMethodDescriptorSupplier("healthCheck"))
.build();
}
}
}
return getHealthCheckMethod;
}
private static volatile io.grpc.MethodDescriptor getGetIntsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getInts",
requestType = com.turbospaces.api.v1.GetIntsRequest.class,
responseType = com.turbospaces.api.v1.GetIntsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
public static io.grpc.MethodDescriptor getGetIntsMethod() {
io.grpc.MethodDescriptor getGetIntsMethod;
if ((getGetIntsMethod = AdminApiGrpc.getGetIntsMethod) == null) {
synchronized (AdminApiGrpc.class) {
if ((getGetIntsMethod = AdminApiGrpc.getGetIntsMethod) == null) {
AdminApiGrpc.getGetIntsMethod = getGetIntsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getInts"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.turbospaces.api.v1.GetIntsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.turbospaces.api.v1.GetIntsResponse.getDefaultInstance()))
.setSchemaDescriptor(new AdminApiMethodDescriptorSupplier("getInts"))
.build();
}
}
}
return getGetIntsMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static AdminApiStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AdminApiStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AdminApiStub(channel, callOptions);
}
};
return AdminApiStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static AdminApiBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AdminApiBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AdminApiBlockingStub(channel, callOptions);
}
};
return AdminApiBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static AdminApiFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AdminApiFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AdminApiFutureStub(channel, callOptions);
}
};
return AdminApiFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
/**
*/
default void getVersion(com.turbospaces.api.v1.GetApplicationVersionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVersionMethod(), responseObserver);
}
/**
*/
default void getExternalIp(com.turbospaces.api.v1.GetExternalIpRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetExternalIpMethod(), responseObserver);
}
/**
*/
default void healthCheck(com.turbospaces.api.v1.HealthCheckRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getHealthCheckMethod(), responseObserver);
}
/**
*/
default void getInts(com.turbospaces.api.v1.GetIntsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIntsMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service AdminApi.
*/
public static abstract class AdminApiImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return AdminApiGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service AdminApi.
*/
public static final class AdminApiStub
extends io.grpc.stub.AbstractAsyncStub {
private AdminApiStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AdminApiStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AdminApiStub(channel, callOptions);
}
/**
*/
public void getVersion(com.turbospaces.api.v1.GetApplicationVersionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetVersionMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getExternalIp(com.turbospaces.api.v1.GetExternalIpRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetExternalIpMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void healthCheck(com.turbospaces.api.v1.HealthCheckRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getHealthCheckMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getInts(com.turbospaces.api.v1.GetIntsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncServerStreamingCall(
getChannel().newCall(getGetIntsMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service AdminApi.
*/
public static final class AdminApiBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private AdminApiBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AdminApiBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AdminApiBlockingStub(channel, callOptions);
}
/**
*/
public com.turbospaces.api.v1.GetApplicationVersionResponse getVersion(com.turbospaces.api.v1.GetApplicationVersionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetVersionMethod(), getCallOptions(), request);
}
/**
*/
public com.turbospaces.api.v1.GetExternalIpResponse getExternalIp(com.turbospaces.api.v1.GetExternalIpRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetExternalIpMethod(), getCallOptions(), request);
}
/**
*/
public com.turbospaces.api.v1.HealthCheckResponse healthCheck(com.turbospaces.api.v1.HealthCheckRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getHealthCheckMethod(), getCallOptions(), request);
}
/**
*/
public java.util.Iterator getInts(
com.turbospaces.api.v1.GetIntsRequest request) {
return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
getChannel(), getGetIntsMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service AdminApi.
*/
public static final class AdminApiFutureStub
extends io.grpc.stub.AbstractFutureStub {
private AdminApiFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AdminApiFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AdminApiFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getVersion(
com.turbospaces.api.v1.GetApplicationVersionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetVersionMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getExternalIp(
com.turbospaces.api.v1.GetExternalIpRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetExternalIpMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture healthCheck(
com.turbospaces.api.v1.HealthCheckRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getHealthCheckMethod(), getCallOptions()), request);
}
}
private static final int METHODID_GET_VERSION = 0;
private static final int METHODID_GET_EXTERNAL_IP = 1;
private static final int METHODID_HEALTH_CHECK = 2;
private static final int METHODID_GET_INTS = 3;
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 AsyncService serviceImpl;
private final int methodId;
MethodHandlers(AsyncService 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_GET_VERSION:
serviceImpl.getVersion((com.turbospaces.api.v1.GetApplicationVersionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_EXTERNAL_IP:
serviceImpl.getExternalIp((com.turbospaces.api.v1.GetExternalIpRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_HEALTH_CHECK:
serviceImpl.healthCheck((com.turbospaces.api.v1.HealthCheckRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_INTS:
serviceImpl.getInts((com.turbospaces.api.v1.GetIntsRequest) 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();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getGetVersionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.turbospaces.api.v1.GetApplicationVersionRequest,
com.turbospaces.api.v1.GetApplicationVersionResponse>(
service, METHODID_GET_VERSION)))
.addMethod(
getGetExternalIpMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.turbospaces.api.v1.GetExternalIpRequest,
com.turbospaces.api.v1.GetExternalIpResponse>(
service, METHODID_GET_EXTERNAL_IP)))
.addMethod(
getHealthCheckMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.turbospaces.api.v1.HealthCheckRequest,
com.turbospaces.api.v1.HealthCheckResponse>(
service, METHODID_HEALTH_CHECK)))
.addMethod(
getGetIntsMethod(),
io.grpc.stub.ServerCalls.asyncServerStreamingCall(
new MethodHandlers<
com.turbospaces.api.v1.GetIntsRequest,
com.turbospaces.api.v1.GetIntsResponse>(
service, METHODID_GET_INTS)))
.build();
}
private static abstract class AdminApiBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
AdminApiBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.turbospaces.api.v1.Grpc.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("AdminApi");
}
}
private static final class AdminApiFileDescriptorSupplier
extends AdminApiBaseDescriptorSupplier {
AdminApiFileDescriptorSupplier() {}
}
private static final class AdminApiMethodDescriptorSupplier
extends AdminApiBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
AdminApiMethodDescriptorSupplier(java.lang.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 (AdminApiGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new AdminApiFileDescriptorSupplier())
.addMethod(getGetVersionMethod())
.addMethod(getGetExternalIpMethod())
.addMethod(getHealthCheckMethod())
.addMethod(getGetIntsMethod())
.build();
}
}
}
return result;
}
}