yandex.cloud.api.datasphere.v1.AppTokenServiceGrpc Maven / Gradle / Ivy
package yandex.cloud.api.datasphere.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* A set of methods for managing app tokens.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.43.2)",
comments = "Source: yandex/cloud/datasphere/v1/app_token_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class AppTokenServiceGrpc {
private AppTokenServiceGrpc() {}
public static final String SERVICE_NAME = "yandex.cloud.datasphere.v1.AppTokenService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getValidateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Validate",
requestType = yandex.cloud.api.datasphere.v1.AppTokenServiceOuterClass.AppTokenValidateRequest.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getValidateMethod() {
io.grpc.MethodDescriptor getValidateMethod;
if ((getValidateMethod = AppTokenServiceGrpc.getValidateMethod) == null) {
synchronized (AppTokenServiceGrpc.class) {
if ((getValidateMethod = AppTokenServiceGrpc.getValidateMethod) == null) {
AppTokenServiceGrpc.getValidateMethod = getValidateMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Validate"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.datasphere.v1.AppTokenServiceOuterClass.AppTokenValidateRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(new AppTokenServiceMethodDescriptorSupplier("Validate"))
.build();
}
}
}
return getValidateMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static AppTokenServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AppTokenServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AppTokenServiceStub(channel, callOptions);
}
};
return AppTokenServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static AppTokenServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AppTokenServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AppTokenServiceBlockingStub(channel, callOptions);
}
};
return AppTokenServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static AppTokenServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AppTokenServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AppTokenServiceFutureStub(channel, callOptions);
}
};
return AppTokenServiceFutureStub.newStub(factory, channel);
}
/**
*
* A set of methods for managing app tokens.
*
*/
public static abstract class AppTokenServiceImplBase implements io.grpc.BindableService {
/**
*
* Validates app token.
*
*/
public void validate(yandex.cloud.api.datasphere.v1.AppTokenServiceOuterClass.AppTokenValidateRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getValidateMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getValidateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.datasphere.v1.AppTokenServiceOuterClass.AppTokenValidateRequest,
com.google.protobuf.Empty>(
this, METHODID_VALIDATE)))
.build();
}
}
/**
*
* A set of methods for managing app tokens.
*
*/
public static final class AppTokenServiceStub extends io.grpc.stub.AbstractAsyncStub {
private AppTokenServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AppTokenServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AppTokenServiceStub(channel, callOptions);
}
/**
*
* Validates app token.
*
*/
public void validate(yandex.cloud.api.datasphere.v1.AppTokenServiceOuterClass.AppTokenValidateRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getValidateMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* A set of methods for managing app tokens.
*
*/
public static final class AppTokenServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private AppTokenServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AppTokenServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AppTokenServiceBlockingStub(channel, callOptions);
}
/**
*
* Validates app token.
*
*/
public com.google.protobuf.Empty validate(yandex.cloud.api.datasphere.v1.AppTokenServiceOuterClass.AppTokenValidateRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getValidateMethod(), getCallOptions(), request);
}
}
/**
*
* A set of methods for managing app tokens.
*
*/
public static final class AppTokenServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private AppTokenServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AppTokenServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AppTokenServiceFutureStub(channel, callOptions);
}
/**
*
* Validates app token.
*
*/
public com.google.common.util.concurrent.ListenableFuture validate(
yandex.cloud.api.datasphere.v1.AppTokenServiceOuterClass.AppTokenValidateRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getValidateMethod(), getCallOptions()), request);
}
}
private static final int METHODID_VALIDATE = 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 AppTokenServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(AppTokenServiceImplBase 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_VALIDATE:
serviceImpl.validate((yandex.cloud.api.datasphere.v1.AppTokenServiceOuterClass.AppTokenValidateRequest) 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 AppTokenServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
AppTokenServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return yandex.cloud.api.datasphere.v1.AppTokenServiceOuterClass.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("AppTokenService");
}
}
private static final class AppTokenServiceFileDescriptorSupplier
extends AppTokenServiceBaseDescriptorSupplier {
AppTokenServiceFileDescriptorSupplier() {}
}
private static final class AppTokenServiceMethodDescriptorSupplier
extends AppTokenServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
AppTokenServiceMethodDescriptorSupplier(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 (AppTokenServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new AppTokenServiceFileDescriptorSupplier())
.addMethod(getValidateMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy