All Downloads are FREE. Search and download functionalities are using the official Maven repository.

yandex.cloud.api.cdn.v1.ProviderServiceGrpc Maven / Gradle / Ivy

package yandex.cloud.api.cdn.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * A set of methods for managing Provider Service resources.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.43.2)", comments = "Source: yandex/cloud/cdn/v1/provider_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProviderServiceGrpc { private ProviderServiceGrpc() {} public static final String SERVICE_NAME = "yandex.cloud.cdn.v1.ProviderService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getActivateMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Activate", requestType = yandex.cloud.api.cdn.v1.ProviderServiceOuterClass.ActivateProviderRequest.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 = ProviderServiceGrpc.getActivateMethod) == null) { synchronized (ProviderServiceGrpc.class) { if ((getActivateMethod = ProviderServiceGrpc.getActivateMethod) == null) { ProviderServiceGrpc.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.cdn.v1.ProviderServiceOuterClass.ActivateProviderRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance())) .setSchemaDescriptor(new ProviderServiceMethodDescriptorSupplier("Activate")) .build(); } } } return getActivateMethod; } private static volatile io.grpc.MethodDescriptor getListActivatedMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListActivated", requestType = yandex.cloud.api.cdn.v1.ProviderServiceOuterClass.ListActivatedProvidersRequest.class, responseType = yandex.cloud.api.cdn.v1.ProviderServiceOuterClass.ListActivatedProvidersResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getListActivatedMethod() { io.grpc.MethodDescriptor getListActivatedMethod; if ((getListActivatedMethod = ProviderServiceGrpc.getListActivatedMethod) == null) { synchronized (ProviderServiceGrpc.class) { if ((getListActivatedMethod = ProviderServiceGrpc.getListActivatedMethod) == null) { ProviderServiceGrpc.getListActivatedMethod = getListActivatedMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListActivated")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.cdn.v1.ProviderServiceOuterClass.ListActivatedProvidersRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.cdn.v1.ProviderServiceOuterClass.ListActivatedProvidersResponse.getDefaultInstance())) .setSchemaDescriptor(new ProviderServiceMethodDescriptorSupplier("ListActivated")) .build(); } } } return getListActivatedMethod; } /** * Creates a new async stub that supports all call types for the service */ public static ProviderServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ProviderServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProviderServiceStub(channel, callOptions); } }; return ProviderServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static ProviderServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ProviderServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProviderServiceBlockingStub(channel, callOptions); } }; return ProviderServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static ProviderServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ProviderServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProviderServiceFutureStub(channel, callOptions); } }; return ProviderServiceFutureStub.newStub(factory, channel); } /** *
   * A set of methods for managing Provider Service resources.
   * 
*/ public static abstract class ProviderServiceImplBase implements io.grpc.BindableService { /** *
     * Activate provider for specified client.
     * 
*/ public void activate(yandex.cloud.api.cdn.v1.ProviderServiceOuterClass.ActivateProviderRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getActivateMethod(), responseObserver); } /** *
     * List activated providers for specified client.
     * 
*/ public void listActivated(yandex.cloud.api.cdn.v1.ProviderServiceOuterClass.ListActivatedProvidersRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListActivatedMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getActivateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.cdn.v1.ProviderServiceOuterClass.ActivateProviderRequest, yandex.cloud.api.operation.OperationOuterClass.Operation>( this, METHODID_ACTIVATE))) .addMethod( getListActivatedMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.cdn.v1.ProviderServiceOuterClass.ListActivatedProvidersRequest, yandex.cloud.api.cdn.v1.ProviderServiceOuterClass.ListActivatedProvidersResponse>( this, METHODID_LIST_ACTIVATED))) .build(); } } /** *
   * A set of methods for managing Provider Service resources.
   * 
*/ public static final class ProviderServiceStub extends io.grpc.stub.AbstractAsyncStub { private ProviderServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ProviderServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProviderServiceStub(channel, callOptions); } /** *
     * Activate provider for specified client.
     * 
*/ public void activate(yandex.cloud.api.cdn.v1.ProviderServiceOuterClass.ActivateProviderRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getActivateMethod(), getCallOptions()), request, responseObserver); } /** *
     * List activated providers for specified client.
     * 
*/ public void listActivated(yandex.cloud.api.cdn.v1.ProviderServiceOuterClass.ListActivatedProvidersRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListActivatedMethod(), getCallOptions()), request, responseObserver); } } /** *
   * A set of methods for managing Provider Service resources.
   * 
*/ public static final class ProviderServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private ProviderServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ProviderServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProviderServiceBlockingStub(channel, callOptions); } /** *
     * Activate provider for specified client.
     * 
*/ public yandex.cloud.api.operation.OperationOuterClass.Operation activate(yandex.cloud.api.cdn.v1.ProviderServiceOuterClass.ActivateProviderRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getActivateMethod(), getCallOptions(), request); } /** *
     * List activated providers for specified client.
     * 
*/ public yandex.cloud.api.cdn.v1.ProviderServiceOuterClass.ListActivatedProvidersResponse listActivated(yandex.cloud.api.cdn.v1.ProviderServiceOuterClass.ListActivatedProvidersRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListActivatedMethod(), getCallOptions(), request); } } /** *
   * A set of methods for managing Provider Service resources.
   * 
*/ public static final class ProviderServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private ProviderServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ProviderServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProviderServiceFutureStub(channel, callOptions); } /** *
     * Activate provider for specified client.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture activate( yandex.cloud.api.cdn.v1.ProviderServiceOuterClass.ActivateProviderRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getActivateMethod(), getCallOptions()), request); } /** *
     * List activated providers for specified client.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listActivated( yandex.cloud.api.cdn.v1.ProviderServiceOuterClass.ListActivatedProvidersRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListActivatedMethod(), getCallOptions()), request); } } private static final int METHODID_ACTIVATE = 0; private static final int METHODID_LIST_ACTIVATED = 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 ProviderServiceImplBase serviceImpl; private final int methodId; MethodHandlers(ProviderServiceImplBase 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_ACTIVATE: serviceImpl.activate((yandex.cloud.api.cdn.v1.ProviderServiceOuterClass.ActivateProviderRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_ACTIVATED: serviceImpl.listActivated((yandex.cloud.api.cdn.v1.ProviderServiceOuterClass.ListActivatedProvidersRequest) 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 ProviderServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ProviderServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return yandex.cloud.api.cdn.v1.ProviderServiceOuterClass.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("ProviderService"); } } private static final class ProviderServiceFileDescriptorSupplier extends ProviderServiceBaseDescriptorSupplier { ProviderServiceFileDescriptorSupplier() {} } private static final class ProviderServiceMethodDescriptorSupplier extends ProviderServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; ProviderServiceMethodDescriptorSupplier(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 (ProviderServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new ProviderServiceFileDescriptorSupplier()) .addMethod(getActivateMethod()) .addMethod(getListActivatedMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy