com.tigrisdata.db.api.v1.grpc.HealthAPIGrpc Maven / Gradle / Ivy
package com.tigrisdata.db.api.v1.grpc;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.45.0)",
comments = "Source: server/v1/health.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class HealthAPIGrpc {
private HealthAPIGrpc() {}
public static final String SERVICE_NAME = "HealthAPI";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getHealthMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Health",
requestType = com.tigrisdata.db.api.v1.grpc.Health.HealthCheckInput.class,
responseType = com.tigrisdata.db.api.v1.grpc.Health.HealthCheckResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getHealthMethod() {
io.grpc.MethodDescriptor getHealthMethod;
if ((getHealthMethod = HealthAPIGrpc.getHealthMethod) == null) {
synchronized (HealthAPIGrpc.class) {
if ((getHealthMethod = HealthAPIGrpc.getHealthMethod) == null) {
HealthAPIGrpc.getHealthMethod = getHealthMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Health"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tigrisdata.db.api.v1.grpc.Health.HealthCheckInput.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tigrisdata.db.api.v1.grpc.Health.HealthCheckResponse.getDefaultInstance()))
.setSchemaDescriptor(new HealthAPIMethodDescriptorSupplier("Health"))
.build();
}
}
}
return getHealthMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static HealthAPIStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public HealthAPIStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new HealthAPIStub(channel, callOptions);
}
};
return HealthAPIStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static HealthAPIBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public HealthAPIBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new HealthAPIBlockingStub(channel, callOptions);
}
};
return HealthAPIBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static HealthAPIFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public HealthAPIFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new HealthAPIFutureStub(channel, callOptions);
}
};
return HealthAPIFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class HealthAPIImplBase implements io.grpc.BindableService {
/**
*/
public void health(com.tigrisdata.db.api.v1.grpc.Health.HealthCheckInput request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getHealthMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getHealthMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.tigrisdata.db.api.v1.grpc.Health.HealthCheckInput,
com.tigrisdata.db.api.v1.grpc.Health.HealthCheckResponse>(
this, METHODID_HEALTH)))
.build();
}
}
/**
*/
public static final class HealthAPIStub extends io.grpc.stub.AbstractAsyncStub {
private HealthAPIStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected HealthAPIStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new HealthAPIStub(channel, callOptions);
}
/**
*/
public void health(com.tigrisdata.db.api.v1.grpc.Health.HealthCheckInput request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getHealthMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class HealthAPIBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private HealthAPIBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected HealthAPIBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new HealthAPIBlockingStub(channel, callOptions);
}
/**
*/
public com.tigrisdata.db.api.v1.grpc.Health.HealthCheckResponse health(com.tigrisdata.db.api.v1.grpc.Health.HealthCheckInput request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getHealthMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class HealthAPIFutureStub extends io.grpc.stub.AbstractFutureStub {
private HealthAPIFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected HealthAPIFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new HealthAPIFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture health(
com.tigrisdata.db.api.v1.grpc.Health.HealthCheckInput request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getHealthMethod(), getCallOptions()), request);
}
}
private static final int METHODID_HEALTH = 0;
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 HealthAPIImplBase serviceImpl;
private final int methodId;
MethodHandlers(HealthAPIImplBase 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_HEALTH:
serviceImpl.health((com.tigrisdata.db.api.v1.grpc.Health.HealthCheckInput) 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 HealthAPIBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
HealthAPIBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.tigrisdata.db.api.v1.grpc.Health.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("HealthAPI");
}
}
private static final class HealthAPIFileDescriptorSupplier
extends HealthAPIBaseDescriptorSupplier {
HealthAPIFileDescriptorSupplier() {}
}
private static final class HealthAPIMethodDescriptorSupplier
extends HealthAPIBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
HealthAPIMethodDescriptorSupplier(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 (HealthAPIGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new HealthAPIFileDescriptorSupplier())
.addMethod(getHealthMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy