yandex.cloud.api.serverless.functions.v1.FunctionServiceGrpc Maven / Gradle / Ivy
package yandex.cloud.api.serverless.functions.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* A set of methods for managing serverless functions.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.43.2)",
comments = "Source: yandex/cloud/serverless/functions/v1/function_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class FunctionServiceGrpc {
private FunctionServiceGrpc() {}
public static final String SERVICE_NAME = "yandex.cloud.serverless.functions.v1.FunctionService";
// 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.functions.v1.FunctionServiceOuterClass.GetFunctionRequest.class,
responseType = yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetMethod() {
io.grpc.MethodDescriptor getGetMethod;
if ((getGetMethod = FunctionServiceGrpc.getGetMethod) == null) {
synchronized (FunctionServiceGrpc.class) {
if ((getGetMethod = FunctionServiceGrpc.getGetMethod) == null) {
FunctionServiceGrpc.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.functions.v1.FunctionServiceOuterClass.GetFunctionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.getDefaultInstance()))
.setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("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.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest.class,
responseType = yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListMethod() {
io.grpc.MethodDescriptor getListMethod;
if ((getListMethod = FunctionServiceGrpc.getListMethod) == null) {
synchronized (FunctionServiceGrpc.class) {
if ((getListMethod = FunctionServiceGrpc.getListMethod) == null) {
FunctionServiceGrpc.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.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse.getDefaultInstance()))
.setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("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.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest.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 = FunctionServiceGrpc.getCreateMethod) == null) {
synchronized (FunctionServiceGrpc.class) {
if ((getCreateMethod = FunctionServiceGrpc.getCreateMethod) == null) {
FunctionServiceGrpc.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.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("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.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest.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 = FunctionServiceGrpc.getUpdateMethod) == null) {
synchronized (FunctionServiceGrpc.class) {
if ((getUpdateMethod = FunctionServiceGrpc.getUpdateMethod) == null) {
FunctionServiceGrpc.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.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("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.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest.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 = FunctionServiceGrpc.getDeleteMethod) == null) {
synchronized (FunctionServiceGrpc.class) {
if ((getDeleteMethod = FunctionServiceGrpc.getDeleteMethod) == null) {
FunctionServiceGrpc.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.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("Delete"))
.build();
}
}
}
return getDeleteMethod;
}
private static volatile io.grpc.MethodDescriptor getGetVersionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetVersion",
requestType = yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest.class,
responseType = yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetVersionMethod() {
io.grpc.MethodDescriptor getGetVersionMethod;
if ((getGetVersionMethod = FunctionServiceGrpc.getGetVersionMethod) == null) {
synchronized (FunctionServiceGrpc.class) {
if ((getGetVersionMethod = FunctionServiceGrpc.getGetVersionMethod) == null) {
FunctionServiceGrpc.getGetVersionMethod = getGetVersionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVersion"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.getDefaultInstance()))
.setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("GetVersion"))
.build();
}
}
}
return getGetVersionMethod;
}
private static volatile io.grpc.MethodDescriptor getGetVersionByTagMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetVersionByTag",
requestType = yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest.class,
responseType = yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetVersionByTagMethod() {
io.grpc.MethodDescriptor getGetVersionByTagMethod;
if ((getGetVersionByTagMethod = FunctionServiceGrpc.getGetVersionByTagMethod) == null) {
synchronized (FunctionServiceGrpc.class) {
if ((getGetVersionByTagMethod = FunctionServiceGrpc.getGetVersionByTagMethod) == null) {
FunctionServiceGrpc.getGetVersionByTagMethod = getGetVersionByTagMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVersionByTag"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.getDefaultInstance()))
.setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("GetVersionByTag"))
.build();
}
}
}
return getGetVersionByTagMethod;
}
private static volatile io.grpc.MethodDescriptor getListVersionsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListVersions",
requestType = yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest.class,
responseType = yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListVersionsMethod() {
io.grpc.MethodDescriptor getListVersionsMethod;
if ((getListVersionsMethod = FunctionServiceGrpc.getListVersionsMethod) == null) {
synchronized (FunctionServiceGrpc.class) {
if ((getListVersionsMethod = FunctionServiceGrpc.getListVersionsMethod) == null) {
FunctionServiceGrpc.getListVersionsMethod = getListVersionsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVersions"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse.getDefaultInstance()))
.setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("ListVersions"))
.build();
}
}
}
return getListVersionsMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteVersionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeleteVersion",
requestType = yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDeleteVersionMethod() {
io.grpc.MethodDescriptor getDeleteVersionMethod;
if ((getDeleteVersionMethod = FunctionServiceGrpc.getDeleteVersionMethod) == null) {
synchronized (FunctionServiceGrpc.class) {
if ((getDeleteVersionMethod = FunctionServiceGrpc.getDeleteVersionMethod) == null) {
FunctionServiceGrpc.getDeleteVersionMethod = getDeleteVersionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteVersion"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("DeleteVersion"))
.build();
}
}
}
return getDeleteVersionMethod;
}
private static volatile io.grpc.MethodDescriptor getSetTagMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SetTag",
requestType = yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSetTagMethod() {
io.grpc.MethodDescriptor getSetTagMethod;
if ((getSetTagMethod = FunctionServiceGrpc.getSetTagMethod) == null) {
synchronized (FunctionServiceGrpc.class) {
if ((getSetTagMethod = FunctionServiceGrpc.getSetTagMethod) == null) {
FunctionServiceGrpc.getSetTagMethod = getSetTagMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetTag"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("SetTag"))
.build();
}
}
}
return getSetTagMethod;
}
private static volatile io.grpc.MethodDescriptor getRemoveTagMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RemoveTag",
requestType = yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRemoveTagMethod() {
io.grpc.MethodDescriptor getRemoveTagMethod;
if ((getRemoveTagMethod = FunctionServiceGrpc.getRemoveTagMethod) == null) {
synchronized (FunctionServiceGrpc.class) {
if ((getRemoveTagMethod = FunctionServiceGrpc.getRemoveTagMethod) == null) {
FunctionServiceGrpc.getRemoveTagMethod = getRemoveTagMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveTag"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("RemoveTag"))
.build();
}
}
}
return getRemoveTagMethod;
}
private static volatile io.grpc.MethodDescriptor getListTagHistoryMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListTagHistory",
requestType = yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest.class,
responseType = yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListTagHistoryMethod() {
io.grpc.MethodDescriptor getListTagHistoryMethod;
if ((getListTagHistoryMethod = FunctionServiceGrpc.getListTagHistoryMethod) == null) {
synchronized (FunctionServiceGrpc.class) {
if ((getListTagHistoryMethod = FunctionServiceGrpc.getListTagHistoryMethod) == null) {
FunctionServiceGrpc.getListTagHistoryMethod = getListTagHistoryMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTagHistory"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.getDefaultInstance()))
.setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("ListTagHistory"))
.build();
}
}
}
return getListTagHistoryMethod;
}
private static volatile io.grpc.MethodDescriptor getCreateVersionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateVersion",
requestType = yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateVersionMethod() {
io.grpc.MethodDescriptor getCreateVersionMethod;
if ((getCreateVersionMethod = FunctionServiceGrpc.getCreateVersionMethod) == null) {
synchronized (FunctionServiceGrpc.class) {
if ((getCreateVersionMethod = FunctionServiceGrpc.getCreateVersionMethod) == null) {
FunctionServiceGrpc.getCreateVersionMethod = getCreateVersionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateVersion"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("CreateVersion"))
.build();
}
}
}
return getCreateVersionMethod;
}
private static volatile io.grpc.MethodDescriptor getListRuntimesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListRuntimes",
requestType = yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest.class,
responseType = yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListRuntimesMethod() {
io.grpc.MethodDescriptor getListRuntimesMethod;
if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) {
synchronized (FunctionServiceGrpc.class) {
if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) {
FunctionServiceGrpc.getListRuntimesMethod = getListRuntimesMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRuntimes"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse.getDefaultInstance()))
.setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("ListRuntimes"))
.build();
}
}
}
return getListRuntimesMethod;
}
private static volatile io.grpc.MethodDescriptor getListOperationsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListOperations",
requestType = yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest.class,
responseType = yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListOperationsMethod() {
io.grpc.MethodDescriptor getListOperationsMethod;
if ((getListOperationsMethod = FunctionServiceGrpc.getListOperationsMethod) == null) {
synchronized (FunctionServiceGrpc.class) {
if ((getListOperationsMethod = FunctionServiceGrpc.getListOperationsMethod) == null) {
FunctionServiceGrpc.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.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse.getDefaultInstance()))
.setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("ListOperations"))
.build();
}
}
}
return getListOperationsMethod;
}
private static volatile io.grpc.MethodDescriptor getListAccessBindingsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListAccessBindings",
requestType = yandex.cloud.api.access.Access.ListAccessBindingsRequest.class,
responseType = yandex.cloud.api.access.Access.ListAccessBindingsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListAccessBindingsMethod() {
io.grpc.MethodDescriptor getListAccessBindingsMethod;
if ((getListAccessBindingsMethod = FunctionServiceGrpc.getListAccessBindingsMethod) == null) {
synchronized (FunctionServiceGrpc.class) {
if ((getListAccessBindingsMethod = FunctionServiceGrpc.getListAccessBindingsMethod) == null) {
FunctionServiceGrpc.getListAccessBindingsMethod = getListAccessBindingsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAccessBindings"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.access.Access.ListAccessBindingsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.access.Access.ListAccessBindingsResponse.getDefaultInstance()))
.setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("ListAccessBindings"))
.build();
}
}
}
return getListAccessBindingsMethod;
}
private static volatile io.grpc.MethodDescriptor getSetAccessBindingsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SetAccessBindings",
requestType = yandex.cloud.api.access.Access.SetAccessBindingsRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSetAccessBindingsMethod() {
io.grpc.MethodDescriptor getSetAccessBindingsMethod;
if ((getSetAccessBindingsMethod = FunctionServiceGrpc.getSetAccessBindingsMethod) == null) {
synchronized (FunctionServiceGrpc.class) {
if ((getSetAccessBindingsMethod = FunctionServiceGrpc.getSetAccessBindingsMethod) == null) {
FunctionServiceGrpc.getSetAccessBindingsMethod = getSetAccessBindingsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetAccessBindings"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.access.Access.SetAccessBindingsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("SetAccessBindings"))
.build();
}
}
}
return getSetAccessBindingsMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateAccessBindingsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateAccessBindings",
requestType = yandex.cloud.api.access.Access.UpdateAccessBindingsRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateAccessBindingsMethod() {
io.grpc.MethodDescriptor getUpdateAccessBindingsMethod;
if ((getUpdateAccessBindingsMethod = FunctionServiceGrpc.getUpdateAccessBindingsMethod) == null) {
synchronized (FunctionServiceGrpc.class) {
if ((getUpdateAccessBindingsMethod = FunctionServiceGrpc.getUpdateAccessBindingsMethod) == null) {
FunctionServiceGrpc.getUpdateAccessBindingsMethod = getUpdateAccessBindingsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAccessBindings"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.access.Access.UpdateAccessBindingsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("UpdateAccessBindings"))
.build();
}
}
}
return getUpdateAccessBindingsMethod;
}
private static volatile io.grpc.MethodDescriptor getListScalingPoliciesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListScalingPolicies",
requestType = yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest.class,
responseType = yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListScalingPoliciesMethod() {
io.grpc.MethodDescriptor getListScalingPoliciesMethod;
if ((getListScalingPoliciesMethod = FunctionServiceGrpc.getListScalingPoliciesMethod) == null) {
synchronized (FunctionServiceGrpc.class) {
if ((getListScalingPoliciesMethod = FunctionServiceGrpc.getListScalingPoliciesMethod) == null) {
FunctionServiceGrpc.getListScalingPoliciesMethod = getListScalingPoliciesMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScalingPolicies"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse.getDefaultInstance()))
.setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("ListScalingPolicies"))
.build();
}
}
}
return getListScalingPoliciesMethod;
}
private static volatile io.grpc.MethodDescriptor getSetScalingPolicyMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SetScalingPolicy",
requestType = yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSetScalingPolicyMethod() {
io.grpc.MethodDescriptor getSetScalingPolicyMethod;
if ((getSetScalingPolicyMethod = FunctionServiceGrpc.getSetScalingPolicyMethod) == null) {
synchronized (FunctionServiceGrpc.class) {
if ((getSetScalingPolicyMethod = FunctionServiceGrpc.getSetScalingPolicyMethod) == null) {
FunctionServiceGrpc.getSetScalingPolicyMethod = getSetScalingPolicyMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetScalingPolicy"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("SetScalingPolicy"))
.build();
}
}
}
return getSetScalingPolicyMethod;
}
private static volatile io.grpc.MethodDescriptor getRemoveScalingPolicyMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RemoveScalingPolicy",
requestType = yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRemoveScalingPolicyMethod() {
io.grpc.MethodDescriptor getRemoveScalingPolicyMethod;
if ((getRemoveScalingPolicyMethod = FunctionServiceGrpc.getRemoveScalingPolicyMethod) == null) {
synchronized (FunctionServiceGrpc.class) {
if ((getRemoveScalingPolicyMethod = FunctionServiceGrpc.getRemoveScalingPolicyMethod) == null) {
FunctionServiceGrpc.getRemoveScalingPolicyMethod = getRemoveScalingPolicyMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveScalingPolicy"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("RemoveScalingPolicy"))
.build();
}
}
}
return getRemoveScalingPolicyMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static FunctionServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public FunctionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FunctionServiceStub(channel, callOptions);
}
};
return FunctionServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static FunctionServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public FunctionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FunctionServiceBlockingStub(channel, callOptions);
}
};
return FunctionServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static FunctionServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public FunctionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FunctionServiceFutureStub(channel, callOptions);
}
};
return FunctionServiceFutureStub.newStub(factory, channel);
}
/**
*
* A set of methods for managing serverless functions.
*
*/
public static abstract class FunctionServiceImplBase implements io.grpc.BindableService {
/**
*
* Returns the specified function.
* To get the list of all available functions, make a [List] request.
*
*/
public void get(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), responseObserver);
}
/**
*
* Retrieves the list of functions in the specified folder.
*
*/
public void list(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMethod(), responseObserver);
}
/**
*
* Creates a function in the specified folder.
*
*/
public void create(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver);
}
/**
*
* Updates the specified function.
*
*/
public void update(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver);
}
/**
*
* Deletes the specified function.
*
*/
public void delete(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMethod(), responseObserver);
}
/**
*
* Returns the specified version of a function.
* To get the list of available version, make a [ListVersions] request.
*
*/
public void getVersion(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVersionMethod(), responseObserver);
}
/**
*
* Returns all versions with the specified tag.
* To get the list of all available versions, make a [ListVersions] request.
*
*/
public void getVersionByTag(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVersionByTagMethod(), responseObserver);
}
/**
*
* Retrieves the list of versions for the specified function, or of all function versions
* in the specified folder.
*
*/
public void listVersions(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVersionsMethod(), responseObserver);
}
/**
*
* Deletes the specified version of a function.
* NOTE: old untagged function versions are deleted automatically.
*
*/
public void deleteVersion(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteVersionMethod(), responseObserver);
}
/**
*
* Set a tag for the specified version of a function.
*
*/
public void setTag(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetTagMethod(), responseObserver);
}
/**
*
* Remove a tag from the specified version of a function.
*
*/
public void removeTag(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRemoveTagMethod(), responseObserver);
}
/**
*
* Returns the log of tags assigned to versions of the specified function.
*
*/
public void listTagHistory(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTagHistoryMethod(), responseObserver);
}
/**
*
* Creates a version for the specified function.
*
*/
public void createVersion(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateVersionMethod(), responseObserver);
}
/**
*
* Lists available runtime environments for the specified function.
*
*/
public void listRuntimes(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRuntimesMethod(), responseObserver);
}
/**
*
* Lists operations for the specified function.
*
*/
public void listOperations(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOperationsMethod(), responseObserver);
}
/**
*
* Lists existing access bindings for the specified function.
*
*/
public void listAccessBindings(yandex.cloud.api.access.Access.ListAccessBindingsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAccessBindingsMethod(), responseObserver);
}
/**
*
* Sets access bindings for the function.
*
*/
public void setAccessBindings(yandex.cloud.api.access.Access.SetAccessBindingsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetAccessBindingsMethod(), responseObserver);
}
/**
*
* Updates access bindings for the specified function.
*
*/
public void updateAccessBindings(yandex.cloud.api.access.Access.UpdateAccessBindingsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAccessBindingsMethod(), responseObserver);
}
/**
*
* Lists existing scaling policies for specified function
*
*/
public void listScalingPolicies(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListScalingPoliciesMethod(), responseObserver);
}
/**
*
* Set scaling policy for specified function and tag
*
*/
public void setScalingPolicy(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetScalingPolicyMethod(), responseObserver);
}
/**
*
* Remove scaling policy for specified function and tag
*
*/
public void removeScalingPolicy(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRemoveScalingPolicyMethod(), 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.functions.v1.FunctionServiceOuterClass.GetFunctionRequest,
yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function>(
this, METHODID_GET)))
.addMethod(
getListMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest,
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse>(
this, METHODID_LIST)))
.addMethod(
getCreateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_CREATE)))
.addMethod(
getUpdateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_UPDATE)))
.addMethod(
getDeleteMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_DELETE)))
.addMethod(
getGetVersionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest,
yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version>(
this, METHODID_GET_VERSION)))
.addMethod(
getGetVersionByTagMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest,
yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version>(
this, METHODID_GET_VERSION_BY_TAG)))
.addMethod(
getListVersionsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest,
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse>(
this, METHODID_LIST_VERSIONS)))
.addMethod(
getDeleteVersionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_DELETE_VERSION)))
.addMethod(
getSetTagMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_SET_TAG)))
.addMethod(
getRemoveTagMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_REMOVE_TAG)))
.addMethod(
getListTagHistoryMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest,
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse>(
this, METHODID_LIST_TAG_HISTORY)))
.addMethod(
getCreateVersionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_CREATE_VERSION)))
.addMethod(
getListRuntimesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest,
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse>(
this, METHODID_LIST_RUNTIMES)))
.addMethod(
getListOperationsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest,
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse>(
this, METHODID_LIST_OPERATIONS)))
.addMethod(
getListAccessBindingsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.access.Access.ListAccessBindingsRequest,
yandex.cloud.api.access.Access.ListAccessBindingsResponse>(
this, METHODID_LIST_ACCESS_BINDINGS)))
.addMethod(
getSetAccessBindingsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.access.Access.SetAccessBindingsRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_SET_ACCESS_BINDINGS)))
.addMethod(
getUpdateAccessBindingsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.access.Access.UpdateAccessBindingsRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_UPDATE_ACCESS_BINDINGS)))
.addMethod(
getListScalingPoliciesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest,
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse>(
this, METHODID_LIST_SCALING_POLICIES)))
.addMethod(
getSetScalingPolicyMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_SET_SCALING_POLICY)))
.addMethod(
getRemoveScalingPolicyMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_REMOVE_SCALING_POLICY)))
.build();
}
}
/**
*
* A set of methods for managing serverless functions.
*
*/
public static final class FunctionServiceStub extends io.grpc.stub.AbstractAsyncStub {
private FunctionServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected FunctionServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FunctionServiceStub(channel, callOptions);
}
/**
*
* Returns the specified function.
* To get the list of all available functions, make a [List] request.
*
*/
public void get(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Retrieves the list of functions in the specified folder.
*
*/
public void list(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Creates a function in the specified folder.
*
*/
public void create(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Updates the specified function.
*
*/
public void update(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Deletes the specified function.
*
*/
public void delete(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Returns the specified version of a function.
* To get the list of available version, make a [ListVersions] request.
*
*/
public void getVersion(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetVersionMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Returns all versions with the specified tag.
* To get the list of all available versions, make a [ListVersions] request.
*
*/
public void getVersionByTag(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetVersionByTagMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Retrieves the list of versions for the specified function, or of all function versions
* in the specified folder.
*
*/
public void listVersions(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListVersionsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Deletes the specified version of a function.
* NOTE: old untagged function versions are deleted automatically.
*
*/
public void deleteVersion(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteVersionMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Set a tag for the specified version of a function.
*
*/
public void setTag(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSetTagMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Remove a tag from the specified version of a function.
*
*/
public void removeTag(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRemoveTagMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Returns the log of tags assigned to versions of the specified function.
*
*/
public void listTagHistory(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListTagHistoryMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Creates a version for the specified function.
*
*/
public void createVersion(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateVersionMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Lists available runtime environments for the specified function.
*
*/
public void listRuntimes(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Lists operations for the specified function.
*
*/
public void listOperations(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListOperationsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Lists existing access bindings for the specified function.
*
*/
public void listAccessBindings(yandex.cloud.api.access.Access.ListAccessBindingsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListAccessBindingsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Sets access bindings for the function.
*
*/
public void setAccessBindings(yandex.cloud.api.access.Access.SetAccessBindingsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSetAccessBindingsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Updates access bindings for the specified function.
*
*/
public void updateAccessBindings(yandex.cloud.api.access.Access.UpdateAccessBindingsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateAccessBindingsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Lists existing scaling policies for specified function
*
*/
public void listScalingPolicies(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListScalingPoliciesMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Set scaling policy for specified function and tag
*
*/
public void setScalingPolicy(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSetScalingPolicyMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Remove scaling policy for specified function and tag
*
*/
public void removeScalingPolicy(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRemoveScalingPolicyMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* A set of methods for managing serverless functions.
*
*/
public static final class FunctionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private FunctionServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected FunctionServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FunctionServiceBlockingStub(channel, callOptions);
}
/**
*
* Returns the specified function.
* To get the list of all available functions, make a [List] request.
*
*/
public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function get(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetMethod(), getCallOptions(), request);
}
/**
*
* Retrieves the list of functions in the specified folder.
*
*/
public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse list(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListMethod(), getCallOptions(), request);
}
/**
*
* Creates a function in the specified folder.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation create(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateMethod(), getCallOptions(), request);
}
/**
*
* Updates the specified function.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation update(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateMethod(), getCallOptions(), request);
}
/**
*
* Deletes the specified function.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation delete(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteMethod(), getCallOptions(), request);
}
/**
*
* Returns the specified version of a function.
* To get the list of available version, make a [ListVersions] request.
*
*/
public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version getVersion(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetVersionMethod(), getCallOptions(), request);
}
/**
*
* Returns all versions with the specified tag.
* To get the list of all available versions, make a [ListVersions] request.
*
*/
public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version getVersionByTag(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetVersionByTagMethod(), getCallOptions(), request);
}
/**
*
* Retrieves the list of versions for the specified function, or of all function versions
* in the specified folder.
*
*/
public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse listVersions(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListVersionsMethod(), getCallOptions(), request);
}
/**
*
* Deletes the specified version of a function.
* NOTE: old untagged function versions are deleted automatically.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation deleteVersion(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteVersionMethod(), getCallOptions(), request);
}
/**
*
* Set a tag for the specified version of a function.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation setTag(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSetTagMethod(), getCallOptions(), request);
}
/**
*
* Remove a tag from the specified version of a function.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation removeTag(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRemoveTagMethod(), getCallOptions(), request);
}
/**
*
* Returns the log of tags assigned to versions of the specified function.
*
*/
public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse listTagHistory(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListTagHistoryMethod(), getCallOptions(), request);
}
/**
*
* Creates a version for the specified function.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation createVersion(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateVersionMethod(), getCallOptions(), request);
}
/**
*
* Lists available runtime environments for the specified function.
*
*/
public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse listRuntimes(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListRuntimesMethod(), getCallOptions(), request);
}
/**
*
* Lists operations for the specified function.
*
*/
public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse listOperations(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListOperationsMethod(), getCallOptions(), request);
}
/**
*
* Lists existing access bindings for the specified function.
*
*/
public yandex.cloud.api.access.Access.ListAccessBindingsResponse listAccessBindings(yandex.cloud.api.access.Access.ListAccessBindingsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListAccessBindingsMethod(), getCallOptions(), request);
}
/**
*
* Sets access bindings for the function.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation setAccessBindings(yandex.cloud.api.access.Access.SetAccessBindingsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSetAccessBindingsMethod(), getCallOptions(), request);
}
/**
*
* Updates access bindings for the specified function.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation updateAccessBindings(yandex.cloud.api.access.Access.UpdateAccessBindingsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateAccessBindingsMethod(), getCallOptions(), request);
}
/**
*
* Lists existing scaling policies for specified function
*
*/
public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse listScalingPolicies(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListScalingPoliciesMethod(), getCallOptions(), request);
}
/**
*
* Set scaling policy for specified function and tag
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation setScalingPolicy(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSetScalingPolicyMethod(), getCallOptions(), request);
}
/**
*
* Remove scaling policy for specified function and tag
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation removeScalingPolicy(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRemoveScalingPolicyMethod(), getCallOptions(), request);
}
}
/**
*
* A set of methods for managing serverless functions.
*
*/
public static final class FunctionServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private FunctionServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected FunctionServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FunctionServiceFutureStub(channel, callOptions);
}
/**
*
* Returns the specified function.
* To get the list of all available functions, make a [List] request.
*
*/
public com.google.common.util.concurrent.ListenableFuture get(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetMethod(), getCallOptions()), request);
}
/**
*
* Retrieves the list of functions in the specified folder.
*
*/
public com.google.common.util.concurrent.ListenableFuture list(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListMethod(), getCallOptions()), request);
}
/**
*
* Creates a function in the specified folder.
*
*/
public com.google.common.util.concurrent.ListenableFuture create(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request);
}
/**
*
* Updates the specified function.
*
*/
public com.google.common.util.concurrent.ListenableFuture update(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request);
}
/**
*
* Deletes the specified function.
*
*/
public com.google.common.util.concurrent.ListenableFuture delete(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteMethod(), getCallOptions()), request);
}
/**
*
* Returns the specified version of a function.
* To get the list of available version, make a [ListVersions] request.
*
*/
public com.google.common.util.concurrent.ListenableFuture getVersion(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetVersionMethod(), getCallOptions()), request);
}
/**
*
* Returns all versions with the specified tag.
* To get the list of all available versions, make a [ListVersions] request.
*
*/
public com.google.common.util.concurrent.ListenableFuture getVersionByTag(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetVersionByTagMethod(), getCallOptions()), request);
}
/**
*
* Retrieves the list of versions for the specified function, or of all function versions
* in the specified folder.
*
*/
public com.google.common.util.concurrent.ListenableFuture listVersions(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListVersionsMethod(), getCallOptions()), request);
}
/**
*
* Deletes the specified version of a function.
* NOTE: old untagged function versions are deleted automatically.
*
*/
public com.google.common.util.concurrent.ListenableFuture deleteVersion(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteVersionMethod(), getCallOptions()), request);
}
/**
*
* Set a tag for the specified version of a function.
*
*/
public com.google.common.util.concurrent.ListenableFuture setTag(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSetTagMethod(), getCallOptions()), request);
}
/**
*
* Remove a tag from the specified version of a function.
*
*/
public com.google.common.util.concurrent.ListenableFuture removeTag(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRemoveTagMethod(), getCallOptions()), request);
}
/**
*
* Returns the log of tags assigned to versions of the specified function.
*
*/
public com.google.common.util.concurrent.ListenableFuture listTagHistory(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListTagHistoryMethod(), getCallOptions()), request);
}
/**
*
* Creates a version for the specified function.
*
*/
public com.google.common.util.concurrent.ListenableFuture createVersion(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateVersionMethod(), getCallOptions()), request);
}
/**
*
* Lists available runtime environments for the specified function.
*
*/
public com.google.common.util.concurrent.ListenableFuture listRuntimes(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request);
}
/**
*
* Lists operations for the specified function.
*
*/
public com.google.common.util.concurrent.ListenableFuture listOperations(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListOperationsMethod(), getCallOptions()), request);
}
/**
*
* Lists existing access bindings for the specified function.
*
*/
public com.google.common.util.concurrent.ListenableFuture listAccessBindings(
yandex.cloud.api.access.Access.ListAccessBindingsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListAccessBindingsMethod(), getCallOptions()), request);
}
/**
*
* Sets access bindings for the function.
*
*/
public com.google.common.util.concurrent.ListenableFuture setAccessBindings(
yandex.cloud.api.access.Access.SetAccessBindingsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSetAccessBindingsMethod(), getCallOptions()), request);
}
/**
*
* Updates access bindings for the specified function.
*
*/
public com.google.common.util.concurrent.ListenableFuture updateAccessBindings(
yandex.cloud.api.access.Access.UpdateAccessBindingsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateAccessBindingsMethod(), getCallOptions()), request);
}
/**
*
* Lists existing scaling policies for specified function
*
*/
public com.google.common.util.concurrent.ListenableFuture listScalingPolicies(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListScalingPoliciesMethod(), getCallOptions()), request);
}
/**
*
* Set scaling policy for specified function and tag
*
*/
public com.google.common.util.concurrent.ListenableFuture setScalingPolicy(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSetScalingPolicyMethod(), getCallOptions()), request);
}
/**
*
* Remove scaling policy for specified function and tag
*
*/
public com.google.common.util.concurrent.ListenableFuture removeScalingPolicy(
yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRemoveScalingPolicyMethod(), 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_GET_VERSION = 5;
private static final int METHODID_GET_VERSION_BY_TAG = 6;
private static final int METHODID_LIST_VERSIONS = 7;
private static final int METHODID_DELETE_VERSION = 8;
private static final int METHODID_SET_TAG = 9;
private static final int METHODID_REMOVE_TAG = 10;
private static final int METHODID_LIST_TAG_HISTORY = 11;
private static final int METHODID_CREATE_VERSION = 12;
private static final int METHODID_LIST_RUNTIMES = 13;
private static final int METHODID_LIST_OPERATIONS = 14;
private static final int METHODID_LIST_ACCESS_BINDINGS = 15;
private static final int METHODID_SET_ACCESS_BINDINGS = 16;
private static final int METHODID_UPDATE_ACCESS_BINDINGS = 17;
private static final int METHODID_LIST_SCALING_POLICIES = 18;
private static final int METHODID_SET_SCALING_POLICY = 19;
private static final int METHODID_REMOVE_SCALING_POLICY = 20;
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 FunctionServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(FunctionServiceImplBase 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.functions.v1.FunctionServiceOuterClass.GetFunctionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST:
serviceImpl.list((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE:
serviceImpl.create((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE:
serviceImpl.update((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE:
serviceImpl.delete((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_VERSION:
serviceImpl.getVersion((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_VERSION_BY_TAG:
serviceImpl.getVersionByTag((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_VERSIONS:
serviceImpl.listVersions((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_VERSION:
serviceImpl.deleteVersion((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SET_TAG:
serviceImpl.setTag((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REMOVE_TAG:
serviceImpl.removeTag((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_TAG_HISTORY:
serviceImpl.listTagHistory((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE_VERSION:
serviceImpl.createVersion((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_RUNTIMES:
serviceImpl.listRuntimes((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_OPERATIONS:
serviceImpl.listOperations((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_ACCESS_BINDINGS:
serviceImpl.listAccessBindings((yandex.cloud.api.access.Access.ListAccessBindingsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SET_ACCESS_BINDINGS:
serviceImpl.setAccessBindings((yandex.cloud.api.access.Access.SetAccessBindingsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_ACCESS_BINDINGS:
serviceImpl.updateAccessBindings((yandex.cloud.api.access.Access.UpdateAccessBindingsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_SCALING_POLICIES:
serviceImpl.listScalingPolicies((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SET_SCALING_POLICY:
serviceImpl.setScalingPolicy((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REMOVE_SCALING_POLICY:
serviceImpl.removeScalingPolicy((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest) 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 FunctionServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
FunctionServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("FunctionService");
}
}
private static final class FunctionServiceFileDescriptorSupplier
extends FunctionServiceBaseDescriptorSupplier {
FunctionServiceFileDescriptorSupplier() {}
}
private static final class FunctionServiceMethodDescriptorSupplier
extends FunctionServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
FunctionServiceMethodDescriptorSupplier(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 (FunctionServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new FunctionServiceFileDescriptorSupplier())
.addMethod(getGetMethod())
.addMethod(getListMethod())
.addMethod(getCreateMethod())
.addMethod(getUpdateMethod())
.addMethod(getDeleteMethod())
.addMethod(getGetVersionMethod())
.addMethod(getGetVersionByTagMethod())
.addMethod(getListVersionsMethod())
.addMethod(getDeleteVersionMethod())
.addMethod(getSetTagMethod())
.addMethod(getRemoveTagMethod())
.addMethod(getListTagHistoryMethod())
.addMethod(getCreateVersionMethod())
.addMethod(getListRuntimesMethod())
.addMethod(getListOperationsMethod())
.addMethod(getListAccessBindingsMethod())
.addMethod(getSetAccessBindingsMethod())
.addMethod(getUpdateAccessBindingsMethod())
.addMethod(getListScalingPoliciesMethod())
.addMethod(getSetScalingPolicyMethod())
.addMethod(getRemoveScalingPolicyMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy