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

yandex.cloud.api.serverless.triggers.v1.TriggerServiceGrpc Maven / Gradle / Ivy

package yandex.cloud.api.serverless.triggers.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * A set of methods for managing triggers for serverless functions.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.43.2)", comments = "Source: yandex/cloud/serverless/triggers/v1/trigger_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TriggerServiceGrpc { private TriggerServiceGrpc() {} public static final String SERVICE_NAME = "yandex.cloud.serverless.triggers.v1.TriggerService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getGetMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Get", requestType = yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.GetTriggerRequest.class, responseType = yandex.cloud.api.serverless.triggers.v1.TriggerOuterClass.Trigger.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetMethod() { io.grpc.MethodDescriptor getGetMethod; if ((getGetMethod = TriggerServiceGrpc.getGetMethod) == null) { synchronized (TriggerServiceGrpc.class) { if ((getGetMethod = TriggerServiceGrpc.getGetMethod) == null) { TriggerServiceGrpc.getGetMethod = getGetMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Get")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.GetTriggerRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.serverless.triggers.v1.TriggerOuterClass.Trigger.getDefaultInstance())) .setSchemaDescriptor(new TriggerServiceMethodDescriptorSupplier("Get")) .build(); } } } return getGetMethod; } private static volatile io.grpc.MethodDescriptor getListMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "List", requestType = yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggersRequest.class, responseType = yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggersResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getListMethod() { io.grpc.MethodDescriptor getListMethod; if ((getListMethod = TriggerServiceGrpc.getListMethod) == null) { synchronized (TriggerServiceGrpc.class) { if ((getListMethod = TriggerServiceGrpc.getListMethod) == null) { TriggerServiceGrpc.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.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggersRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggersResponse.getDefaultInstance())) .setSchemaDescriptor(new TriggerServiceMethodDescriptorSupplier("List")) .build(); } } } return getListMethod; } private static volatile io.grpc.MethodDescriptor getCreateMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Create", requestType = yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.CreateTriggerRequest.class, responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getCreateMethod() { io.grpc.MethodDescriptor getCreateMethod; if ((getCreateMethod = TriggerServiceGrpc.getCreateMethod) == null) { synchronized (TriggerServiceGrpc.class) { if ((getCreateMethod = TriggerServiceGrpc.getCreateMethod) == null) { TriggerServiceGrpc.getCreateMethod = getCreateMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Create")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.CreateTriggerRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance())) .setSchemaDescriptor(new TriggerServiceMethodDescriptorSupplier("Create")) .build(); } } } return getCreateMethod; } private static volatile io.grpc.MethodDescriptor getUpdateMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Update", requestType = yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.UpdateTriggerRequest.class, responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getUpdateMethod() { io.grpc.MethodDescriptor getUpdateMethod; if ((getUpdateMethod = TriggerServiceGrpc.getUpdateMethod) == null) { synchronized (TriggerServiceGrpc.class) { if ((getUpdateMethod = TriggerServiceGrpc.getUpdateMethod) == null) { TriggerServiceGrpc.getUpdateMethod = getUpdateMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Update")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.UpdateTriggerRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance())) .setSchemaDescriptor(new TriggerServiceMethodDescriptorSupplier("Update")) .build(); } } } return getUpdateMethod; } private static volatile io.grpc.MethodDescriptor getDeleteMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Delete", requestType = yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.DeleteTriggerRequest.class, responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getDeleteMethod() { io.grpc.MethodDescriptor getDeleteMethod; if ((getDeleteMethod = TriggerServiceGrpc.getDeleteMethod) == null) { synchronized (TriggerServiceGrpc.class) { if ((getDeleteMethod = TriggerServiceGrpc.getDeleteMethod) == null) { TriggerServiceGrpc.getDeleteMethod = getDeleteMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Delete")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.DeleteTriggerRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance())) .setSchemaDescriptor(new TriggerServiceMethodDescriptorSupplier("Delete")) .build(); } } } return getDeleteMethod; } private static volatile io.grpc.MethodDescriptor getPauseMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Pause", requestType = yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.PauseTriggerRequest.class, responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getPauseMethod() { io.grpc.MethodDescriptor getPauseMethod; if ((getPauseMethod = TriggerServiceGrpc.getPauseMethod) == null) { synchronized (TriggerServiceGrpc.class) { if ((getPauseMethod = TriggerServiceGrpc.getPauseMethod) == null) { TriggerServiceGrpc.getPauseMethod = getPauseMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Pause")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.PauseTriggerRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance())) .setSchemaDescriptor(new TriggerServiceMethodDescriptorSupplier("Pause")) .build(); } } } return getPauseMethod; } private static volatile io.grpc.MethodDescriptor getResumeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Resume", requestType = yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ResumeTriggerRequest.class, responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getResumeMethod() { io.grpc.MethodDescriptor getResumeMethod; if ((getResumeMethod = TriggerServiceGrpc.getResumeMethod) == null) { synchronized (TriggerServiceGrpc.class) { if ((getResumeMethod = TriggerServiceGrpc.getResumeMethod) == null) { TriggerServiceGrpc.getResumeMethod = getResumeMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Resume")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ResumeTriggerRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance())) .setSchemaDescriptor(new TriggerServiceMethodDescriptorSupplier("Resume")) .build(); } } } return getResumeMethod; } private static volatile io.grpc.MethodDescriptor getListOperationsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListOperations", requestType = yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggerOperationsRequest.class, responseType = yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggerOperationsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getListOperationsMethod() { io.grpc.MethodDescriptor getListOperationsMethod; if ((getListOperationsMethod = TriggerServiceGrpc.getListOperationsMethod) == null) { synchronized (TriggerServiceGrpc.class) { if ((getListOperationsMethod = TriggerServiceGrpc.getListOperationsMethod) == null) { TriggerServiceGrpc.getListOperationsMethod = getListOperationsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOperations")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggerOperationsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggerOperationsResponse.getDefaultInstance())) .setSchemaDescriptor(new TriggerServiceMethodDescriptorSupplier("ListOperations")) .build(); } } } return getListOperationsMethod; } /** * Creates a new async stub that supports all call types for the service */ public static TriggerServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public TriggerServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TriggerServiceStub(channel, callOptions); } }; return TriggerServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static TriggerServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public TriggerServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TriggerServiceBlockingStub(channel, callOptions); } }; return TriggerServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static TriggerServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public TriggerServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TriggerServiceFutureStub(channel, callOptions); } }; return TriggerServiceFutureStub.newStub(factory, channel); } /** *
   * A set of methods for managing triggers for serverless functions.
   * 
*/ public static abstract class TriggerServiceImplBase implements io.grpc.BindableService { /** *
     * Returns the specified trigger.
     * To get the list of all available triggers, make a [List] request.
     * 
*/ public void get(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.GetTriggerRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), responseObserver); } /** *
     * Retrieves the list of triggers in the specified folder.
     * 
*/ public void list(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggersRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMethod(), responseObserver); } /** *
     * Creates a trigger in the specified folder.
     * 
*/ public void create(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.CreateTriggerRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver); } /** *
     * Updates the specified trigger.
     * 
*/ public void update(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.UpdateTriggerRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver); } /** *
     * Deletes the specified trigger.
     * 
*/ public void delete(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.DeleteTriggerRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMethod(), responseObserver); } /** *
     * Pauses the specified trigger.
     * 
*/ public void pause(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.PauseTriggerRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPauseMethod(), responseObserver); } /** *
     * Restarts the specified trigger.
     * 
*/ public void resume(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ResumeTriggerRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResumeMethod(), responseObserver); } /** *
     * Lists operations for the specified trigger.
     * 
*/ public void listOperations(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggerOperationsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOperationsMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getGetMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.GetTriggerRequest, yandex.cloud.api.serverless.triggers.v1.TriggerOuterClass.Trigger>( this, METHODID_GET))) .addMethod( getListMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggersRequest, yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggersResponse>( this, METHODID_LIST))) .addMethod( getCreateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.CreateTriggerRequest, yandex.cloud.api.operation.OperationOuterClass.Operation>( this, METHODID_CREATE))) .addMethod( getUpdateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.UpdateTriggerRequest, yandex.cloud.api.operation.OperationOuterClass.Operation>( this, METHODID_UPDATE))) .addMethod( getDeleteMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.DeleteTriggerRequest, yandex.cloud.api.operation.OperationOuterClass.Operation>( this, METHODID_DELETE))) .addMethod( getPauseMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.PauseTriggerRequest, yandex.cloud.api.operation.OperationOuterClass.Operation>( this, METHODID_PAUSE))) .addMethod( getResumeMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ResumeTriggerRequest, yandex.cloud.api.operation.OperationOuterClass.Operation>( this, METHODID_RESUME))) .addMethod( getListOperationsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggerOperationsRequest, yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggerOperationsResponse>( this, METHODID_LIST_OPERATIONS))) .build(); } } /** *
   * A set of methods for managing triggers for serverless functions.
   * 
*/ public static final class TriggerServiceStub extends io.grpc.stub.AbstractAsyncStub { private TriggerServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected TriggerServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TriggerServiceStub(channel, callOptions); } /** *
     * Returns the specified trigger.
     * To get the list of all available triggers, make a [List] request.
     * 
*/ public void get(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.GetTriggerRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetMethod(), getCallOptions()), request, responseObserver); } /** *
     * Retrieves the list of triggers in the specified folder.
     * 
*/ public void list(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggersRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver); } /** *
     * Creates a trigger in the specified folder.
     * 
*/ public void create(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.CreateTriggerRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateMethod(), getCallOptions()), request, responseObserver); } /** *
     * Updates the specified trigger.
     * 
*/ public void update(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.UpdateTriggerRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver); } /** *
     * Deletes the specified trigger.
     * 
*/ public void delete(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.DeleteTriggerRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteMethod(), getCallOptions()), request, responseObserver); } /** *
     * Pauses the specified trigger.
     * 
*/ public void pause(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.PauseTriggerRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPauseMethod(), getCallOptions()), request, responseObserver); } /** *
     * Restarts the specified trigger.
     * 
*/ public void resume(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ResumeTriggerRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getResumeMethod(), getCallOptions()), request, responseObserver); } /** *
     * Lists operations for the specified trigger.
     * 
*/ public void listOperations(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggerOperationsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListOperationsMethod(), getCallOptions()), request, responseObserver); } } /** *
   * A set of methods for managing triggers for serverless functions.
   * 
*/ public static final class TriggerServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private TriggerServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected TriggerServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TriggerServiceBlockingStub(channel, callOptions); } /** *
     * Returns the specified trigger.
     * To get the list of all available triggers, make a [List] request.
     * 
*/ public yandex.cloud.api.serverless.triggers.v1.TriggerOuterClass.Trigger get(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.GetTriggerRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetMethod(), getCallOptions(), request); } /** *
     * Retrieves the list of triggers in the specified folder.
     * 
*/ public yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggersResponse list(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggersRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListMethod(), getCallOptions(), request); } /** *
     * Creates a trigger in the specified folder.
     * 
*/ public yandex.cloud.api.operation.OperationOuterClass.Operation create(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.CreateTriggerRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateMethod(), getCallOptions(), request); } /** *
     * Updates the specified trigger.
     * 
*/ public yandex.cloud.api.operation.OperationOuterClass.Operation update(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.UpdateTriggerRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateMethod(), getCallOptions(), request); } /** *
     * Deletes the specified trigger.
     * 
*/ public yandex.cloud.api.operation.OperationOuterClass.Operation delete(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.DeleteTriggerRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteMethod(), getCallOptions(), request); } /** *
     * Pauses the specified trigger.
     * 
*/ public yandex.cloud.api.operation.OperationOuterClass.Operation pause(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.PauseTriggerRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPauseMethod(), getCallOptions(), request); } /** *
     * Restarts the specified trigger.
     * 
*/ public yandex.cloud.api.operation.OperationOuterClass.Operation resume(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ResumeTriggerRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getResumeMethod(), getCallOptions(), request); } /** *
     * Lists operations for the specified trigger.
     * 
*/ public yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggerOperationsResponse listOperations(yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggerOperationsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListOperationsMethod(), getCallOptions(), request); } } /** *
   * A set of methods for managing triggers for serverless functions.
   * 
*/ public static final class TriggerServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private TriggerServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected TriggerServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TriggerServiceFutureStub(channel, callOptions); } /** *
     * Returns the specified trigger.
     * To get the list of all available triggers, make a [List] request.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture get( yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.GetTriggerRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetMethod(), getCallOptions()), request); } /** *
     * Retrieves the list of triggers in the specified folder.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture list( yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggersRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListMethod(), getCallOptions()), request); } /** *
     * Creates a trigger in the specified folder.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture create( yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.CreateTriggerRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateMethod(), getCallOptions()), request); } /** *
     * Updates the specified trigger.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture update( yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.UpdateTriggerRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateMethod(), getCallOptions()), request); } /** *
     * Deletes the specified trigger.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture delete( yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.DeleteTriggerRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteMethod(), getCallOptions()), request); } /** *
     * Pauses the specified trigger.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture pause( yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.PauseTriggerRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPauseMethod(), getCallOptions()), request); } /** *
     * Restarts the specified trigger.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture resume( yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ResumeTriggerRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getResumeMethod(), getCallOptions()), request); } /** *
     * Lists operations for the specified trigger.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listOperations( yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggerOperationsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListOperationsMethod(), getCallOptions()), request); } } private static final int METHODID_GET = 0; private static final int METHODID_LIST = 1; private static final int METHODID_CREATE = 2; private static final int METHODID_UPDATE = 3; private static final int METHODID_DELETE = 4; private static final int METHODID_PAUSE = 5; private static final int METHODID_RESUME = 6; private static final int METHODID_LIST_OPERATIONS = 7; 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 TriggerServiceImplBase serviceImpl; private final int methodId; MethodHandlers(TriggerServiceImplBase 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: serviceImpl.get((yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.GetTriggerRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST: serviceImpl.list((yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggersRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE: serviceImpl.create((yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.CreateTriggerRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE: serviceImpl.update((yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.UpdateTriggerRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE: serviceImpl.delete((yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.DeleteTriggerRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_PAUSE: serviceImpl.pause((yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.PauseTriggerRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RESUME: serviceImpl.resume((yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ResumeTriggerRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_OPERATIONS: serviceImpl.listOperations((yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.ListTriggerOperationsRequest) 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 TriggerServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { TriggerServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return yandex.cloud.api.serverless.triggers.v1.TriggerServiceOuterClass.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("TriggerService"); } } private static final class TriggerServiceFileDescriptorSupplier extends TriggerServiceBaseDescriptorSupplier { TriggerServiceFileDescriptorSupplier() {} } private static final class TriggerServiceMethodDescriptorSupplier extends TriggerServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; TriggerServiceMethodDescriptorSupplier(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 (TriggerServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new TriggerServiceFileDescriptorSupplier()) .addMethod(getGetMethod()) .addMethod(getListMethod()) .addMethod(getCreateMethod()) .addMethod(getUpdateMethod()) .addMethod(getDeleteMethod()) .addMethod(getPauseMethod()) .addMethod(getResumeMethod()) .addMethod(getListOperationsMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy