io.deephaven.proto.backplane.grpc.ConfigServiceGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-proto-backplane-grpc Show documentation
Show all versions of deephaven-proto-backplane-grpc Show documentation
The Deephaven proto-backplane-grpc
package io.deephaven.proto.backplane.grpc;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
**
* Provides simple configuration data to users. Unauthenticated users may call GetAuthenticationConstants
* to discover hints on how they should proceed with providing their identity, while already-authenticated
* clients may call GetConfigurationConstants for details on using the platform.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.50.2)",
comments = "Source: deephaven/proto/config.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class ConfigServiceGrpc {
private ConfigServiceGrpc() {}
public static final String SERVICE_NAME = "io.deephaven.proto.backplane.grpc.ConfigService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getGetAuthenticationConstantsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetAuthenticationConstants",
requestType = io.deephaven.proto.backplane.grpc.AuthenticationConstantsRequest.class,
responseType = io.deephaven.proto.backplane.grpc.AuthenticationConstantsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetAuthenticationConstantsMethod() {
io.grpc.MethodDescriptor getGetAuthenticationConstantsMethod;
if ((getGetAuthenticationConstantsMethod = ConfigServiceGrpc.getGetAuthenticationConstantsMethod) == null) {
synchronized (ConfigServiceGrpc.class) {
if ((getGetAuthenticationConstantsMethod = ConfigServiceGrpc.getGetAuthenticationConstantsMethod) == null) {
ConfigServiceGrpc.getGetAuthenticationConstantsMethod = getGetAuthenticationConstantsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAuthenticationConstants"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.deephaven.proto.backplane.grpc.AuthenticationConstantsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.deephaven.proto.backplane.grpc.AuthenticationConstantsResponse.getDefaultInstance()))
.setSchemaDescriptor(new ConfigServiceMethodDescriptorSupplier("GetAuthenticationConstants"))
.build();
}
}
}
return getGetAuthenticationConstantsMethod;
}
private static volatile io.grpc.MethodDescriptor getGetConfigurationConstantsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetConfigurationConstants",
requestType = io.deephaven.proto.backplane.grpc.ConfigurationConstantsRequest.class,
responseType = io.deephaven.proto.backplane.grpc.ConfigurationConstantsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetConfigurationConstantsMethod() {
io.grpc.MethodDescriptor getGetConfigurationConstantsMethod;
if ((getGetConfigurationConstantsMethod = ConfigServiceGrpc.getGetConfigurationConstantsMethod) == null) {
synchronized (ConfigServiceGrpc.class) {
if ((getGetConfigurationConstantsMethod = ConfigServiceGrpc.getGetConfigurationConstantsMethod) == null) {
ConfigServiceGrpc.getGetConfigurationConstantsMethod = getGetConfigurationConstantsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConfigurationConstants"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.deephaven.proto.backplane.grpc.ConfigurationConstantsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.deephaven.proto.backplane.grpc.ConfigurationConstantsResponse.getDefaultInstance()))
.setSchemaDescriptor(new ConfigServiceMethodDescriptorSupplier("GetConfigurationConstants"))
.build();
}
}
}
return getGetConfigurationConstantsMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static ConfigServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ConfigServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConfigServiceStub(channel, callOptions);
}
};
return ConfigServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static ConfigServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ConfigServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConfigServiceBlockingStub(channel, callOptions);
}
};
return ConfigServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static ConfigServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ConfigServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConfigServiceFutureStub(channel, callOptions);
}
};
return ConfigServiceFutureStub.newStub(factory, channel);
}
/**
*
**
* Provides simple configuration data to users. Unauthenticated users may call GetAuthenticationConstants
* to discover hints on how they should proceed with providing their identity, while already-authenticated
* clients may call GetConfigurationConstants for details on using the platform.
*
*/
public static abstract class ConfigServiceImplBase implements io.grpc.BindableService {
/**
*/
public void getAuthenticationConstants(io.deephaven.proto.backplane.grpc.AuthenticationConstantsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAuthenticationConstantsMethod(), responseObserver);
}
/**
*/
public void getConfigurationConstants(io.deephaven.proto.backplane.grpc.ConfigurationConstantsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConfigurationConstantsMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getGetAuthenticationConstantsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.deephaven.proto.backplane.grpc.AuthenticationConstantsRequest,
io.deephaven.proto.backplane.grpc.AuthenticationConstantsResponse>(
this, METHODID_GET_AUTHENTICATION_CONSTANTS)))
.addMethod(
getGetConfigurationConstantsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.deephaven.proto.backplane.grpc.ConfigurationConstantsRequest,
io.deephaven.proto.backplane.grpc.ConfigurationConstantsResponse>(
this, METHODID_GET_CONFIGURATION_CONSTANTS)))
.build();
}
}
/**
*
**
* Provides simple configuration data to users. Unauthenticated users may call GetAuthenticationConstants
* to discover hints on how they should proceed with providing their identity, while already-authenticated
* clients may call GetConfigurationConstants for details on using the platform.
*
*/
public static final class ConfigServiceStub extends io.grpc.stub.AbstractAsyncStub {
private ConfigServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ConfigServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConfigServiceStub(channel, callOptions);
}
/**
*/
public void getAuthenticationConstants(io.deephaven.proto.backplane.grpc.AuthenticationConstantsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetAuthenticationConstantsMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getConfigurationConstants(io.deephaven.proto.backplane.grpc.ConfigurationConstantsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetConfigurationConstantsMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
**
* Provides simple configuration data to users. Unauthenticated users may call GetAuthenticationConstants
* to discover hints on how they should proceed with providing their identity, while already-authenticated
* clients may call GetConfigurationConstants for details on using the platform.
*
*/
public static final class ConfigServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private ConfigServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ConfigServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConfigServiceBlockingStub(channel, callOptions);
}
/**
*/
public io.deephaven.proto.backplane.grpc.AuthenticationConstantsResponse getAuthenticationConstants(io.deephaven.proto.backplane.grpc.AuthenticationConstantsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetAuthenticationConstantsMethod(), getCallOptions(), request);
}
/**
*/
public io.deephaven.proto.backplane.grpc.ConfigurationConstantsResponse getConfigurationConstants(io.deephaven.proto.backplane.grpc.ConfigurationConstantsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetConfigurationConstantsMethod(), getCallOptions(), request);
}
}
/**
*
**
* Provides simple configuration data to users. Unauthenticated users may call GetAuthenticationConstants
* to discover hints on how they should proceed with providing their identity, while already-authenticated
* clients may call GetConfigurationConstants for details on using the platform.
*
*/
public static final class ConfigServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private ConfigServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ConfigServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConfigServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getAuthenticationConstants(
io.deephaven.proto.backplane.grpc.AuthenticationConstantsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetAuthenticationConstantsMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getConfigurationConstants(
io.deephaven.proto.backplane.grpc.ConfigurationConstantsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetConfigurationConstantsMethod(), getCallOptions()), request);
}
}
private static final int METHODID_GET_AUTHENTICATION_CONSTANTS = 0;
private static final int METHODID_GET_CONFIGURATION_CONSTANTS = 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 ConfigServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(ConfigServiceImplBase 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_AUTHENTICATION_CONSTANTS:
serviceImpl.getAuthenticationConstants((io.deephaven.proto.backplane.grpc.AuthenticationConstantsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_CONFIGURATION_CONSTANTS:
serviceImpl.getConfigurationConstants((io.deephaven.proto.backplane.grpc.ConfigurationConstantsRequest) 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 ConfigServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
ConfigServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return io.deephaven.proto.backplane.grpc.Config.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("ConfigService");
}
}
private static final class ConfigServiceFileDescriptorSupplier
extends ConfigServiceBaseDescriptorSupplier {
ConfigServiceFileDescriptorSupplier() {}
}
private static final class ConfigServiceMethodDescriptorSupplier
extends ConfigServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
ConfigServiceMethodDescriptorSupplier(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 (ConfigServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new ConfigServiceFileDescriptorSupplier())
.addMethod(getGetAuthenticationConstantsMethod())
.addMethod(getGetConfigurationConstantsMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy