yandex.cloud.api.billing.v1.CustomerServiceGrpc Maven / Gradle / Ivy
package yandex.cloud.api.billing.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* A set of methods for managing Customer resources.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.43.2)",
comments = "Source: yandex/cloud/billing/v1/customer_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class CustomerServiceGrpc {
private CustomerServiceGrpc() {}
public static final String SERVICE_NAME = "yandex.cloud.billing.v1.CustomerService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getListMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "List",
requestType = yandex.cloud.api.billing.v1.CustomerServiceOuterClass.ListCustomersRequest.class,
responseType = yandex.cloud.api.billing.v1.CustomerServiceOuterClass.ListCustomersResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListMethod() {
io.grpc.MethodDescriptor getListMethod;
if ((getListMethod = CustomerServiceGrpc.getListMethod) == null) {
synchronized (CustomerServiceGrpc.class) {
if ((getListMethod = CustomerServiceGrpc.getListMethod) == null) {
CustomerServiceGrpc.getListMethod = getListMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "List"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.billing.v1.CustomerServiceOuterClass.ListCustomersRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.billing.v1.CustomerServiceOuterClass.ListCustomersResponse.getDefaultInstance()))
.setSchemaDescriptor(new CustomerServiceMethodDescriptorSupplier("List"))
.build();
}
}
}
return getListMethod;
}
private static volatile io.grpc.MethodDescriptor getInviteMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Invite",
requestType = yandex.cloud.api.billing.v1.CustomerServiceOuterClass.InviteCustomerRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getInviteMethod() {
io.grpc.MethodDescriptor getInviteMethod;
if ((getInviteMethod = CustomerServiceGrpc.getInviteMethod) == null) {
synchronized (CustomerServiceGrpc.class) {
if ((getInviteMethod = CustomerServiceGrpc.getInviteMethod) == null) {
CustomerServiceGrpc.getInviteMethod = getInviteMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Invite"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.billing.v1.CustomerServiceOuterClass.InviteCustomerRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new CustomerServiceMethodDescriptorSupplier("Invite"))
.build();
}
}
}
return getInviteMethod;
}
private static volatile io.grpc.MethodDescriptor getCreateResellerServedMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateResellerServed",
requestType = yandex.cloud.api.billing.v1.CustomerServiceOuterClass.CreateResellerServedCustomerRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateResellerServedMethod() {
io.grpc.MethodDescriptor getCreateResellerServedMethod;
if ((getCreateResellerServedMethod = CustomerServiceGrpc.getCreateResellerServedMethod) == null) {
synchronized (CustomerServiceGrpc.class) {
if ((getCreateResellerServedMethod = CustomerServiceGrpc.getCreateResellerServedMethod) == null) {
CustomerServiceGrpc.getCreateResellerServedMethod = getCreateResellerServedMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateResellerServed"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.billing.v1.CustomerServiceOuterClass.CreateResellerServedCustomerRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new CustomerServiceMethodDescriptorSupplier("CreateResellerServed"))
.build();
}
}
}
return getCreateResellerServedMethod;
}
private static volatile io.grpc.MethodDescriptor getActivateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Activate",
requestType = yandex.cloud.api.billing.v1.CustomerServiceOuterClass.ActivateCustomerRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getActivateMethod() {
io.grpc.MethodDescriptor getActivateMethod;
if ((getActivateMethod = CustomerServiceGrpc.getActivateMethod) == null) {
synchronized (CustomerServiceGrpc.class) {
if ((getActivateMethod = CustomerServiceGrpc.getActivateMethod) == null) {
CustomerServiceGrpc.getActivateMethod = getActivateMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Activate"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.billing.v1.CustomerServiceOuterClass.ActivateCustomerRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new CustomerServiceMethodDescriptorSupplier("Activate"))
.build();
}
}
}
return getActivateMethod;
}
private static volatile io.grpc.MethodDescriptor getSuspendMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Suspend",
requestType = yandex.cloud.api.billing.v1.CustomerServiceOuterClass.SuspendCustomerRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSuspendMethod() {
io.grpc.MethodDescriptor getSuspendMethod;
if ((getSuspendMethod = CustomerServiceGrpc.getSuspendMethod) == null) {
synchronized (CustomerServiceGrpc.class) {
if ((getSuspendMethod = CustomerServiceGrpc.getSuspendMethod) == null) {
CustomerServiceGrpc.getSuspendMethod = getSuspendMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Suspend"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.billing.v1.CustomerServiceOuterClass.SuspendCustomerRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new CustomerServiceMethodDescriptorSupplier("Suspend"))
.build();
}
}
}
return getSuspendMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static CustomerServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public CustomerServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CustomerServiceStub(channel, callOptions);
}
};
return CustomerServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static CustomerServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public CustomerServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CustomerServiceBlockingStub(channel, callOptions);
}
};
return CustomerServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static CustomerServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public CustomerServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CustomerServiceFutureStub(channel, callOptions);
}
};
return CustomerServiceFutureStub.newStub(factory, channel);
}
/**
*
* A set of methods for managing Customer resources.
*
*/
public static abstract class CustomerServiceImplBase implements io.grpc.BindableService {
/**
*
* Retrieves the list of customers associated with the specified reseller.
*
*/
public void list(yandex.cloud.api.billing.v1.CustomerServiceOuterClass.ListCustomersRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMethod(), responseObserver);
}
/**
*
* Invites customer to the specified reseller.
*
*/
public void invite(yandex.cloud.api.billing.v1.CustomerServiceOuterClass.InviteCustomerRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getInviteMethod(), responseObserver);
}
/**
*
* Creates new reseller-served customer.
*
*/
public void createResellerServed(yandex.cloud.api.billing.v1.CustomerServiceOuterClass.CreateResellerServedCustomerRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateResellerServedMethod(), responseObserver);
}
/**
*
* Activates specified customer. After customer is activated, he can use resources associated with his billing account.
*
*/
public void activate(yandex.cloud.api.billing.v1.CustomerServiceOuterClass.ActivateCustomerRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getActivateMethod(), responseObserver);
}
/**
*
* Suspend specified customer. After customer is suspended, he can't use resources associated with his billing account.
*
*/
public void suspend(yandex.cloud.api.billing.v1.CustomerServiceOuterClass.SuspendCustomerRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSuspendMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getListMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.billing.v1.CustomerServiceOuterClass.ListCustomersRequest,
yandex.cloud.api.billing.v1.CustomerServiceOuterClass.ListCustomersResponse>(
this, METHODID_LIST)))
.addMethod(
getInviteMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.billing.v1.CustomerServiceOuterClass.InviteCustomerRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_INVITE)))
.addMethod(
getCreateResellerServedMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.billing.v1.CustomerServiceOuterClass.CreateResellerServedCustomerRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_CREATE_RESELLER_SERVED)))
.addMethod(
getActivateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.billing.v1.CustomerServiceOuterClass.ActivateCustomerRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_ACTIVATE)))
.addMethod(
getSuspendMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.billing.v1.CustomerServiceOuterClass.SuspendCustomerRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_SUSPEND)))
.build();
}
}
/**
*
* A set of methods for managing Customer resources.
*
*/
public static final class CustomerServiceStub extends io.grpc.stub.AbstractAsyncStub {
private CustomerServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected CustomerServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CustomerServiceStub(channel, callOptions);
}
/**
*
* Retrieves the list of customers associated with the specified reseller.
*
*/
public void list(yandex.cloud.api.billing.v1.CustomerServiceOuterClass.ListCustomersRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Invites customer to the specified reseller.
*
*/
public void invite(yandex.cloud.api.billing.v1.CustomerServiceOuterClass.InviteCustomerRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getInviteMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Creates new reseller-served customer.
*
*/
public void createResellerServed(yandex.cloud.api.billing.v1.CustomerServiceOuterClass.CreateResellerServedCustomerRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateResellerServedMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Activates specified customer. After customer is activated, he can use resources associated with his billing account.
*
*/
public void activate(yandex.cloud.api.billing.v1.CustomerServiceOuterClass.ActivateCustomerRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getActivateMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Suspend specified customer. After customer is suspended, he can't use resources associated with his billing account.
*
*/
public void suspend(yandex.cloud.api.billing.v1.CustomerServiceOuterClass.SuspendCustomerRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSuspendMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* A set of methods for managing Customer resources.
*
*/
public static final class CustomerServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private CustomerServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected CustomerServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CustomerServiceBlockingStub(channel, callOptions);
}
/**
*
* Retrieves the list of customers associated with the specified reseller.
*
*/
public yandex.cloud.api.billing.v1.CustomerServiceOuterClass.ListCustomersResponse list(yandex.cloud.api.billing.v1.CustomerServiceOuterClass.ListCustomersRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListMethod(), getCallOptions(), request);
}
/**
*
* Invites customer to the specified reseller.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation invite(yandex.cloud.api.billing.v1.CustomerServiceOuterClass.InviteCustomerRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getInviteMethod(), getCallOptions(), request);
}
/**
*
* Creates new reseller-served customer.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation createResellerServed(yandex.cloud.api.billing.v1.CustomerServiceOuterClass.CreateResellerServedCustomerRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateResellerServedMethod(), getCallOptions(), request);
}
/**
*
* Activates specified customer. After customer is activated, he can use resources associated with his billing account.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation activate(yandex.cloud.api.billing.v1.CustomerServiceOuterClass.ActivateCustomerRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getActivateMethod(), getCallOptions(), request);
}
/**
*
* Suspend specified customer. After customer is suspended, he can't use resources associated with his billing account.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation suspend(yandex.cloud.api.billing.v1.CustomerServiceOuterClass.SuspendCustomerRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSuspendMethod(), getCallOptions(), request);
}
}
/**
*
* A set of methods for managing Customer resources.
*
*/
public static final class CustomerServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private CustomerServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected CustomerServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CustomerServiceFutureStub(channel, callOptions);
}
/**
*
* Retrieves the list of customers associated with the specified reseller.
*
*/
public com.google.common.util.concurrent.ListenableFuture list(
yandex.cloud.api.billing.v1.CustomerServiceOuterClass.ListCustomersRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListMethod(), getCallOptions()), request);
}
/**
*
* Invites customer to the specified reseller.
*
*/
public com.google.common.util.concurrent.ListenableFuture invite(
yandex.cloud.api.billing.v1.CustomerServiceOuterClass.InviteCustomerRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getInviteMethod(), getCallOptions()), request);
}
/**
*
* Creates new reseller-served customer.
*
*/
public com.google.common.util.concurrent.ListenableFuture createResellerServed(
yandex.cloud.api.billing.v1.CustomerServiceOuterClass.CreateResellerServedCustomerRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateResellerServedMethod(), getCallOptions()), request);
}
/**
*
* Activates specified customer. After customer is activated, he can use resources associated with his billing account.
*
*/
public com.google.common.util.concurrent.ListenableFuture activate(
yandex.cloud.api.billing.v1.CustomerServiceOuterClass.ActivateCustomerRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getActivateMethod(), getCallOptions()), request);
}
/**
*
* Suspend specified customer. After customer is suspended, he can't use resources associated with his billing account.
*
*/
public com.google.common.util.concurrent.ListenableFuture suspend(
yandex.cloud.api.billing.v1.CustomerServiceOuterClass.SuspendCustomerRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSuspendMethod(), getCallOptions()), request);
}
}
private static final int METHODID_LIST = 0;
private static final int METHODID_INVITE = 1;
private static final int METHODID_CREATE_RESELLER_SERVED = 2;
private static final int METHODID_ACTIVATE = 3;
private static final int METHODID_SUSPEND = 4;
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 CustomerServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(CustomerServiceImplBase 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_LIST:
serviceImpl.list((yandex.cloud.api.billing.v1.CustomerServiceOuterClass.ListCustomersRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_INVITE:
serviceImpl.invite((yandex.cloud.api.billing.v1.CustomerServiceOuterClass.InviteCustomerRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE_RESELLER_SERVED:
serviceImpl.createResellerServed((yandex.cloud.api.billing.v1.CustomerServiceOuterClass.CreateResellerServedCustomerRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ACTIVATE:
serviceImpl.activate((yandex.cloud.api.billing.v1.CustomerServiceOuterClass.ActivateCustomerRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SUSPEND:
serviceImpl.suspend((yandex.cloud.api.billing.v1.CustomerServiceOuterClass.SuspendCustomerRequest) 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 CustomerServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
CustomerServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return yandex.cloud.api.billing.v1.CustomerServiceOuterClass.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("CustomerService");
}
}
private static final class CustomerServiceFileDescriptorSupplier
extends CustomerServiceBaseDescriptorSupplier {
CustomerServiceFileDescriptorSupplier() {}
}
private static final class CustomerServiceMethodDescriptorSupplier
extends CustomerServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
CustomerServiceMethodDescriptorSupplier(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 (CustomerServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new CustomerServiceFileDescriptorSupplier())
.addMethod(getListMethod())
.addMethod(getInviteMethod())
.addMethod(getCreateResellerServedMethod())
.addMethod(getActivateMethod())
.addMethod(getSuspendMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy