yandex.cloud.api.resourcemanager.v1.FolderServiceGrpc Maven / Gradle / Ivy
package yandex.cloud.api.resourcemanager.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* A set of methods for managing Folder resources.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.43.2)",
comments = "Source: yandex/cloud/resourcemanager/v1/folder_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class FolderServiceGrpc {
private FolderServiceGrpc() {}
public static final String SERVICE_NAME = "yandex.cloud.resourcemanager.v1.FolderService";
// 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.resourcemanager.v1.FolderServiceOuterClass.GetFolderRequest.class,
responseType = yandex.cloud.api.resourcemanager.v1.FolderOuterClass.Folder.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetMethod() {
io.grpc.MethodDescriptor getGetMethod;
if ((getGetMethod = FolderServiceGrpc.getGetMethod) == null) {
synchronized (FolderServiceGrpc.class) {
if ((getGetMethod = FolderServiceGrpc.getGetMethod) == null) {
FolderServiceGrpc.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.resourcemanager.v1.FolderServiceOuterClass.GetFolderRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.resourcemanager.v1.FolderOuterClass.Folder.getDefaultInstance()))
.setSchemaDescriptor(new FolderServiceMethodDescriptorSupplier("Get"))
.build();
}
}
}
return getGetMethod;
}
private static volatile io.grpc.MethodDescriptor getListMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "List",
requestType = yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.ListFoldersRequest.class,
responseType = yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.ListFoldersResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListMethod() {
io.grpc.MethodDescriptor getListMethod;
if ((getListMethod = FolderServiceGrpc.getListMethod) == null) {
synchronized (FolderServiceGrpc.class) {
if ((getListMethod = FolderServiceGrpc.getListMethod) == null) {
FolderServiceGrpc.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.resourcemanager.v1.FolderServiceOuterClass.ListFoldersRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.ListFoldersResponse.getDefaultInstance()))
.setSchemaDescriptor(new FolderServiceMethodDescriptorSupplier("List"))
.build();
}
}
}
return getListMethod;
}
private static volatile io.grpc.MethodDescriptor getCreateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Create",
requestType = yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.CreateFolderRequest.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 = FolderServiceGrpc.getCreateMethod) == null) {
synchronized (FolderServiceGrpc.class) {
if ((getCreateMethod = FolderServiceGrpc.getCreateMethod) == null) {
FolderServiceGrpc.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.resourcemanager.v1.FolderServiceOuterClass.CreateFolderRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new FolderServiceMethodDescriptorSupplier("Create"))
.build();
}
}
}
return getCreateMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Update",
requestType = yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.UpdateFolderRequest.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 = FolderServiceGrpc.getUpdateMethod) == null) {
synchronized (FolderServiceGrpc.class) {
if ((getUpdateMethod = FolderServiceGrpc.getUpdateMethod) == null) {
FolderServiceGrpc.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.resourcemanager.v1.FolderServiceOuterClass.UpdateFolderRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new FolderServiceMethodDescriptorSupplier("Update"))
.build();
}
}
}
return getUpdateMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Delete",
requestType = yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.DeleteFolderRequest.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 = FolderServiceGrpc.getDeleteMethod) == null) {
synchronized (FolderServiceGrpc.class) {
if ((getDeleteMethod = FolderServiceGrpc.getDeleteMethod) == null) {
FolderServiceGrpc.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.resourcemanager.v1.FolderServiceOuterClass.DeleteFolderRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new FolderServiceMethodDescriptorSupplier("Delete"))
.build();
}
}
}
return getDeleteMethod;
}
private static volatile io.grpc.MethodDescriptor getListOperationsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListOperations",
requestType = yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.ListFolderOperationsRequest.class,
responseType = yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.ListFolderOperationsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListOperationsMethod() {
io.grpc.MethodDescriptor getListOperationsMethod;
if ((getListOperationsMethod = FolderServiceGrpc.getListOperationsMethod) == null) {
synchronized (FolderServiceGrpc.class) {
if ((getListOperationsMethod = FolderServiceGrpc.getListOperationsMethod) == null) {
FolderServiceGrpc.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.resourcemanager.v1.FolderServiceOuterClass.ListFolderOperationsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.ListFolderOperationsResponse.getDefaultInstance()))
.setSchemaDescriptor(new FolderServiceMethodDescriptorSupplier("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 = FolderServiceGrpc.getListAccessBindingsMethod) == null) {
synchronized (FolderServiceGrpc.class) {
if ((getListAccessBindingsMethod = FolderServiceGrpc.getListAccessBindingsMethod) == null) {
FolderServiceGrpc.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 FolderServiceMethodDescriptorSupplier("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 = FolderServiceGrpc.getSetAccessBindingsMethod) == null) {
synchronized (FolderServiceGrpc.class) {
if ((getSetAccessBindingsMethod = FolderServiceGrpc.getSetAccessBindingsMethod) == null) {
FolderServiceGrpc.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 FolderServiceMethodDescriptorSupplier("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 = FolderServiceGrpc.getUpdateAccessBindingsMethod) == null) {
synchronized (FolderServiceGrpc.class) {
if ((getUpdateAccessBindingsMethod = FolderServiceGrpc.getUpdateAccessBindingsMethod) == null) {
FolderServiceGrpc.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 FolderServiceMethodDescriptorSupplier("UpdateAccessBindings"))
.build();
}
}
}
return getUpdateAccessBindingsMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static FolderServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public FolderServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FolderServiceStub(channel, callOptions);
}
};
return FolderServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static FolderServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public FolderServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FolderServiceBlockingStub(channel, callOptions);
}
};
return FolderServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static FolderServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public FolderServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FolderServiceFutureStub(channel, callOptions);
}
};
return FolderServiceFutureStub.newStub(factory, channel);
}
/**
*
* A set of methods for managing Folder resources.
*
*/
public static abstract class FolderServiceImplBase implements io.grpc.BindableService {
/**
*
* Returns the specified Folder resource.
* To get the list of available Folder resources, make a [List] request.
*
*/
public void get(yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.GetFolderRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), responseObserver);
}
/**
*
* Retrieves the list of Folder resources in the specified cloud.
*
*/
public void list(yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.ListFoldersRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMethod(), responseObserver);
}
/**
*
* Creates a folder in the specified cloud.
*
*/
public void create(yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.CreateFolderRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver);
}
/**
*
* Updates the specified folder.
*
*/
public void update(yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.UpdateFolderRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver);
}
/**
*
* Deletes the specified folder.
*
*/
public void delete(yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.DeleteFolderRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMethod(), responseObserver);
}
/**
*
* Lists operations for the specified folder.
*
*/
public void listOperations(yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.ListFolderOperationsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOperationsMethod(), responseObserver);
}
/**
*
* Lists access bindings for the specified folder.
*
*/
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 specified folder.
*
*/
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 folder.
*
*/
public void updateAccessBindings(yandex.cloud.api.access.Access.UpdateAccessBindingsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAccessBindingsMethod(), 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.resourcemanager.v1.FolderServiceOuterClass.GetFolderRequest,
yandex.cloud.api.resourcemanager.v1.FolderOuterClass.Folder>(
this, METHODID_GET)))
.addMethod(
getListMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.ListFoldersRequest,
yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.ListFoldersResponse>(
this, METHODID_LIST)))
.addMethod(
getCreateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.CreateFolderRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_CREATE)))
.addMethod(
getUpdateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.UpdateFolderRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_UPDATE)))
.addMethod(
getDeleteMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.DeleteFolderRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_DELETE)))
.addMethod(
getListOperationsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.ListFolderOperationsRequest,
yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.ListFolderOperationsResponse>(
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)))
.build();
}
}
/**
*
* A set of methods for managing Folder resources.
*
*/
public static final class FolderServiceStub extends io.grpc.stub.AbstractAsyncStub {
private FolderServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected FolderServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FolderServiceStub(channel, callOptions);
}
/**
*
* Returns the specified Folder resource.
* To get the list of available Folder resources, make a [List] request.
*
*/
public void get(yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.GetFolderRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Retrieves the list of Folder resources in the specified cloud.
*
*/
public void list(yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.ListFoldersRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Creates a folder in the specified cloud.
*
*/
public void create(yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.CreateFolderRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Updates the specified folder.
*
*/
public void update(yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.UpdateFolderRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Deletes the specified folder.
*
*/
public void delete(yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.DeleteFolderRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Lists operations for the specified folder.
*
*/
public void listOperations(yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.ListFolderOperationsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListOperationsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Lists access bindings for the specified folder.
*
*/
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 specified folder.
*
*/
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 folder.
*
*/
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);
}
}
/**
*
* A set of methods for managing Folder resources.
*
*/
public static final class FolderServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private FolderServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected FolderServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FolderServiceBlockingStub(channel, callOptions);
}
/**
*
* Returns the specified Folder resource.
* To get the list of available Folder resources, make a [List] request.
*
*/
public yandex.cloud.api.resourcemanager.v1.FolderOuterClass.Folder get(yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.GetFolderRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetMethod(), getCallOptions(), request);
}
/**
*
* Retrieves the list of Folder resources in the specified cloud.
*
*/
public yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.ListFoldersResponse list(yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.ListFoldersRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListMethod(), getCallOptions(), request);
}
/**
*
* Creates a folder in the specified cloud.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation create(yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.CreateFolderRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateMethod(), getCallOptions(), request);
}
/**
*
* Updates the specified folder.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation update(yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.UpdateFolderRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateMethod(), getCallOptions(), request);
}
/**
*
* Deletes the specified folder.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation delete(yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.DeleteFolderRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteMethod(), getCallOptions(), request);
}
/**
*
* Lists operations for the specified folder.
*
*/
public yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.ListFolderOperationsResponse listOperations(yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.ListFolderOperationsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListOperationsMethod(), getCallOptions(), request);
}
/**
*
* Lists access bindings for the specified folder.
*
*/
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 specified folder.
*
*/
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 folder.
*
*/
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);
}
}
/**
*
* A set of methods for managing Folder resources.
*
*/
public static final class FolderServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private FolderServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected FolderServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FolderServiceFutureStub(channel, callOptions);
}
/**
*
* Returns the specified Folder resource.
* To get the list of available Folder resources, make a [List] request.
*
*/
public com.google.common.util.concurrent.ListenableFuture get(
yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.GetFolderRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetMethod(), getCallOptions()), request);
}
/**
*
* Retrieves the list of Folder resources in the specified cloud.
*
*/
public com.google.common.util.concurrent.ListenableFuture list(
yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.ListFoldersRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListMethod(), getCallOptions()), request);
}
/**
*
* Creates a folder in the specified cloud.
*
*/
public com.google.common.util.concurrent.ListenableFuture create(
yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.CreateFolderRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request);
}
/**
*
* Updates the specified folder.
*
*/
public com.google.common.util.concurrent.ListenableFuture update(
yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.UpdateFolderRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request);
}
/**
*
* Deletes the specified folder.
*
*/
public com.google.common.util.concurrent.ListenableFuture delete(
yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.DeleteFolderRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteMethod(), getCallOptions()), request);
}
/**
*
* Lists operations for the specified folder.
*
*/
public com.google.common.util.concurrent.ListenableFuture listOperations(
yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.ListFolderOperationsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListOperationsMethod(), getCallOptions()), request);
}
/**
*
* Lists access bindings for the specified folder.
*
*/
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 specified folder.
*
*/
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 folder.
*
*/
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);
}
}
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_LIST_OPERATIONS = 5;
private static final int METHODID_LIST_ACCESS_BINDINGS = 6;
private static final int METHODID_SET_ACCESS_BINDINGS = 7;
private static final int METHODID_UPDATE_ACCESS_BINDINGS = 8;
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 FolderServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(FolderServiceImplBase 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.resourcemanager.v1.FolderServiceOuterClass.GetFolderRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST:
serviceImpl.list((yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.ListFoldersRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE:
serviceImpl.create((yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.CreateFolderRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE:
serviceImpl.update((yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.UpdateFolderRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE:
serviceImpl.delete((yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.DeleteFolderRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_OPERATIONS:
serviceImpl.listOperations((yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.ListFolderOperationsRequest) 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;
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 FolderServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
FolderServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return yandex.cloud.api.resourcemanager.v1.FolderServiceOuterClass.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("FolderService");
}
}
private static final class FolderServiceFileDescriptorSupplier
extends FolderServiceBaseDescriptorSupplier {
FolderServiceFileDescriptorSupplier() {}
}
private static final class FolderServiceMethodDescriptorSupplier
extends FolderServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
FolderServiceMethodDescriptorSupplier(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 (FolderServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new FolderServiceFileDescriptorSupplier())
.addMethod(getGetMethod())
.addMethod(getListMethod())
.addMethod(getCreateMethod())
.addMethod(getUpdateMethod())
.addMethod(getDeleteMethod())
.addMethod(getListOperationsMethod())
.addMethod(getListAccessBindingsMethod())
.addMethod(getSetAccessBindingsMethod())
.addMethod(getUpdateAccessBindingsMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy