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

yandex.cloud.api.vpc.v1.NetworkServiceGrpc Maven / Gradle / Ivy

package yandex.cloud.api.vpc.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * A set of methods for managing Network resources.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.43.2)", comments = "Source: yandex/cloud/vpc/v1/network_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class NetworkServiceGrpc { private NetworkServiceGrpc() {} public static final String SERVICE_NAME = "yandex.cloud.vpc.v1.NetworkService"; // 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.vpc.v1.NetworkServiceOuterClass.GetNetworkRequest.class, responseType = yandex.cloud.api.vpc.v1.NetworkOuterClass.Network.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetMethod() { io.grpc.MethodDescriptor getGetMethod; if ((getGetMethod = NetworkServiceGrpc.getGetMethod) == null) { synchronized (NetworkServiceGrpc.class) { if ((getGetMethod = NetworkServiceGrpc.getGetMethod) == null) { NetworkServiceGrpc.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.vpc.v1.NetworkServiceOuterClass.GetNetworkRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.vpc.v1.NetworkOuterClass.Network.getDefaultInstance())) .setSchemaDescriptor(new NetworkServiceMethodDescriptorSupplier("Get")) .build(); } } } return getGetMethod; } private static volatile io.grpc.MethodDescriptor getListMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "List", requestType = yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworksRequest.class, responseType = yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworksResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getListMethod() { io.grpc.MethodDescriptor getListMethod; if ((getListMethod = NetworkServiceGrpc.getListMethod) == null) { synchronized (NetworkServiceGrpc.class) { if ((getListMethod = NetworkServiceGrpc.getListMethod) == null) { NetworkServiceGrpc.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.vpc.v1.NetworkServiceOuterClass.ListNetworksRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworksResponse.getDefaultInstance())) .setSchemaDescriptor(new NetworkServiceMethodDescriptorSupplier("List")) .build(); } } } return getListMethod; } private static volatile io.grpc.MethodDescriptor getCreateMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Create", requestType = yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.CreateNetworkRequest.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 = NetworkServiceGrpc.getCreateMethod) == null) { synchronized (NetworkServiceGrpc.class) { if ((getCreateMethod = NetworkServiceGrpc.getCreateMethod) == null) { NetworkServiceGrpc.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.vpc.v1.NetworkServiceOuterClass.CreateNetworkRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance())) .setSchemaDescriptor(new NetworkServiceMethodDescriptorSupplier("Create")) .build(); } } } return getCreateMethod; } private static volatile io.grpc.MethodDescriptor getUpdateMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Update", requestType = yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.UpdateNetworkRequest.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 = NetworkServiceGrpc.getUpdateMethod) == null) { synchronized (NetworkServiceGrpc.class) { if ((getUpdateMethod = NetworkServiceGrpc.getUpdateMethod) == null) { NetworkServiceGrpc.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.vpc.v1.NetworkServiceOuterClass.UpdateNetworkRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance())) .setSchemaDescriptor(new NetworkServiceMethodDescriptorSupplier("Update")) .build(); } } } return getUpdateMethod; } private static volatile io.grpc.MethodDescriptor getDeleteMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Delete", requestType = yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.DeleteNetworkRequest.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 = NetworkServiceGrpc.getDeleteMethod) == null) { synchronized (NetworkServiceGrpc.class) { if ((getDeleteMethod = NetworkServiceGrpc.getDeleteMethod) == null) { NetworkServiceGrpc.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.vpc.v1.NetworkServiceOuterClass.DeleteNetworkRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance())) .setSchemaDescriptor(new NetworkServiceMethodDescriptorSupplier("Delete")) .build(); } } } return getDeleteMethod; } private static volatile io.grpc.MethodDescriptor getListSubnetsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListSubnets", requestType = yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSubnetsRequest.class, responseType = yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSubnetsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getListSubnetsMethod() { io.grpc.MethodDescriptor getListSubnetsMethod; if ((getListSubnetsMethod = NetworkServiceGrpc.getListSubnetsMethod) == null) { synchronized (NetworkServiceGrpc.class) { if ((getListSubnetsMethod = NetworkServiceGrpc.getListSubnetsMethod) == null) { NetworkServiceGrpc.getListSubnetsMethod = getListSubnetsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSubnets")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSubnetsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSubnetsResponse.getDefaultInstance())) .setSchemaDescriptor(new NetworkServiceMethodDescriptorSupplier("ListSubnets")) .build(); } } } return getListSubnetsMethod; } private static volatile io.grpc.MethodDescriptor getListSecurityGroupsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListSecurityGroups", requestType = yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSecurityGroupsRequest.class, responseType = yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSecurityGroupsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getListSecurityGroupsMethod() { io.grpc.MethodDescriptor getListSecurityGroupsMethod; if ((getListSecurityGroupsMethod = NetworkServiceGrpc.getListSecurityGroupsMethod) == null) { synchronized (NetworkServiceGrpc.class) { if ((getListSecurityGroupsMethod = NetworkServiceGrpc.getListSecurityGroupsMethod) == null) { NetworkServiceGrpc.getListSecurityGroupsMethod = getListSecurityGroupsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSecurityGroups")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSecurityGroupsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSecurityGroupsResponse.getDefaultInstance())) .setSchemaDescriptor(new NetworkServiceMethodDescriptorSupplier("ListSecurityGroups")) .build(); } } } return getListSecurityGroupsMethod; } private static volatile io.grpc.MethodDescriptor getListRouteTablesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListRouteTables", requestType = yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkRouteTablesRequest.class, responseType = yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkRouteTablesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getListRouteTablesMethod() { io.grpc.MethodDescriptor getListRouteTablesMethod; if ((getListRouteTablesMethod = NetworkServiceGrpc.getListRouteTablesMethod) == null) { synchronized (NetworkServiceGrpc.class) { if ((getListRouteTablesMethod = NetworkServiceGrpc.getListRouteTablesMethod) == null) { NetworkServiceGrpc.getListRouteTablesMethod = getListRouteTablesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRouteTables")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkRouteTablesRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkRouteTablesResponse.getDefaultInstance())) .setSchemaDescriptor(new NetworkServiceMethodDescriptorSupplier("ListRouteTables")) .build(); } } } return getListRouteTablesMethod; } private static volatile io.grpc.MethodDescriptor getListOperationsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListOperations", requestType = yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkOperationsRequest.class, responseType = yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkOperationsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getListOperationsMethod() { io.grpc.MethodDescriptor getListOperationsMethod; if ((getListOperationsMethod = NetworkServiceGrpc.getListOperationsMethod) == null) { synchronized (NetworkServiceGrpc.class) { if ((getListOperationsMethod = NetworkServiceGrpc.getListOperationsMethod) == null) { NetworkServiceGrpc.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.vpc.v1.NetworkServiceOuterClass.ListNetworkOperationsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkOperationsResponse.getDefaultInstance())) .setSchemaDescriptor(new NetworkServiceMethodDescriptorSupplier("ListOperations")) .build(); } } } return getListOperationsMethod; } private static volatile io.grpc.MethodDescriptor getMoveMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Move", requestType = yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.MoveNetworkRequest.class, responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getMoveMethod() { io.grpc.MethodDescriptor getMoveMethod; if ((getMoveMethod = NetworkServiceGrpc.getMoveMethod) == null) { synchronized (NetworkServiceGrpc.class) { if ((getMoveMethod = NetworkServiceGrpc.getMoveMethod) == null) { NetworkServiceGrpc.getMoveMethod = getMoveMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Move")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.MoveNetworkRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance())) .setSchemaDescriptor(new NetworkServiceMethodDescriptorSupplier("Move")) .build(); } } } return getMoveMethod; } /** * Creates a new async stub that supports all call types for the service */ public static NetworkServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public NetworkServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new NetworkServiceStub(channel, callOptions); } }; return NetworkServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static NetworkServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public NetworkServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new NetworkServiceBlockingStub(channel, callOptions); } }; return NetworkServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static NetworkServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public NetworkServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new NetworkServiceFutureStub(channel, callOptions); } }; return NetworkServiceFutureStub.newStub(factory, channel); } /** *
   * A set of methods for managing Network resources.
   * 
*/ public static abstract class NetworkServiceImplBase implements io.grpc.BindableService { /** *
     * Returns the specified Network resource.
     * Get the list of available Network resources by making a [List] request.
     * 
*/ public void get(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.GetNetworkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), responseObserver); } /** *
     * Retrieves the list of Network resources in the specified folder.
     * 
*/ public void list(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworksRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMethod(), responseObserver); } /** *
     * Creates a network in the specified folder using the data specified in the request.
     * Method starts an asynchronous operation that can be cancelled while it is in progress.
     * 
*/ public void create(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.CreateNetworkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver); } /** *
     * Updates the specified network.
     * Method starts an asynchronous operation that can be cancelled while it is in progress.
     * 
*/ public void update(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.UpdateNetworkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver); } /** *
     * Deletes the specified network.
     * 
*/ public void delete(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.DeleteNetworkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMethod(), responseObserver); } /** *
     * Lists subnets from the specified network.
     * 
*/ public void listSubnets(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSubnetsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSubnetsMethod(), responseObserver); } /** *
     * Lists security groups from the specified network.
     * 
*/ public void listSecurityGroups(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSecurityGroupsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSecurityGroupsMethod(), responseObserver); } /** *
     * Lists route tables from the specified network.
     * 
*/ public void listRouteTables(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkRouteTablesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRouteTablesMethod(), responseObserver); } /** *
     * Lists operations for the specified network.
     * 
*/ public void listOperations(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkOperationsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOperationsMethod(), responseObserver); } /** *
     * Move network to another folder.
     * 
*/ public void move(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.MoveNetworkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMoveMethod(), 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.vpc.v1.NetworkServiceOuterClass.GetNetworkRequest, yandex.cloud.api.vpc.v1.NetworkOuterClass.Network>( this, METHODID_GET))) .addMethod( getListMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworksRequest, yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworksResponse>( this, METHODID_LIST))) .addMethod( getCreateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.CreateNetworkRequest, yandex.cloud.api.operation.OperationOuterClass.Operation>( this, METHODID_CREATE))) .addMethod( getUpdateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.UpdateNetworkRequest, yandex.cloud.api.operation.OperationOuterClass.Operation>( this, METHODID_UPDATE))) .addMethod( getDeleteMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.DeleteNetworkRequest, yandex.cloud.api.operation.OperationOuterClass.Operation>( this, METHODID_DELETE))) .addMethod( getListSubnetsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSubnetsRequest, yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSubnetsResponse>( this, METHODID_LIST_SUBNETS))) .addMethod( getListSecurityGroupsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSecurityGroupsRequest, yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSecurityGroupsResponse>( this, METHODID_LIST_SECURITY_GROUPS))) .addMethod( getListRouteTablesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkRouteTablesRequest, yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkRouteTablesResponse>( this, METHODID_LIST_ROUTE_TABLES))) .addMethod( getListOperationsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkOperationsRequest, yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkOperationsResponse>( this, METHODID_LIST_OPERATIONS))) .addMethod( getMoveMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.MoveNetworkRequest, yandex.cloud.api.operation.OperationOuterClass.Operation>( this, METHODID_MOVE))) .build(); } } /** *
   * A set of methods for managing Network resources.
   * 
*/ public static final class NetworkServiceStub extends io.grpc.stub.AbstractAsyncStub { private NetworkServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected NetworkServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new NetworkServiceStub(channel, callOptions); } /** *
     * Returns the specified Network resource.
     * Get the list of available Network resources by making a [List] request.
     * 
*/ public void get(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.GetNetworkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetMethod(), getCallOptions()), request, responseObserver); } /** *
     * Retrieves the list of Network resources in the specified folder.
     * 
*/ public void list(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworksRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver); } /** *
     * Creates a network in the specified folder using the data specified in the request.
     * Method starts an asynchronous operation that can be cancelled while it is in progress.
     * 
*/ public void create(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.CreateNetworkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateMethod(), getCallOptions()), request, responseObserver); } /** *
     * Updates the specified network.
     * Method starts an asynchronous operation that can be cancelled while it is in progress.
     * 
*/ public void update(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.UpdateNetworkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver); } /** *
     * Deletes the specified network.
     * 
*/ public void delete(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.DeleteNetworkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteMethod(), getCallOptions()), request, responseObserver); } /** *
     * Lists subnets from the specified network.
     * 
*/ public void listSubnets(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSubnetsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListSubnetsMethod(), getCallOptions()), request, responseObserver); } /** *
     * Lists security groups from the specified network.
     * 
*/ public void listSecurityGroups(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSecurityGroupsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListSecurityGroupsMethod(), getCallOptions()), request, responseObserver); } /** *
     * Lists route tables from the specified network.
     * 
*/ public void listRouteTables(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkRouteTablesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListRouteTablesMethod(), getCallOptions()), request, responseObserver); } /** *
     * Lists operations for the specified network.
     * 
*/ public void listOperations(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkOperationsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListOperationsMethod(), getCallOptions()), request, responseObserver); } /** *
     * Move network to another folder.
     * 
*/ public void move(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.MoveNetworkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getMoveMethod(), getCallOptions()), request, responseObserver); } } /** *
   * A set of methods for managing Network resources.
   * 
*/ public static final class NetworkServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private NetworkServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected NetworkServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new NetworkServiceBlockingStub(channel, callOptions); } /** *
     * Returns the specified Network resource.
     * Get the list of available Network resources by making a [List] request.
     * 
*/ public yandex.cloud.api.vpc.v1.NetworkOuterClass.Network get(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.GetNetworkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetMethod(), getCallOptions(), request); } /** *
     * Retrieves the list of Network resources in the specified folder.
     * 
*/ public yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworksResponse list(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworksRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListMethod(), getCallOptions(), request); } /** *
     * Creates a network in the specified folder using the data specified in the request.
     * Method starts an asynchronous operation that can be cancelled while it is in progress.
     * 
*/ public yandex.cloud.api.operation.OperationOuterClass.Operation create(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.CreateNetworkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateMethod(), getCallOptions(), request); } /** *
     * Updates the specified network.
     * Method starts an asynchronous operation that can be cancelled while it is in progress.
     * 
*/ public yandex.cloud.api.operation.OperationOuterClass.Operation update(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.UpdateNetworkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateMethod(), getCallOptions(), request); } /** *
     * Deletes the specified network.
     * 
*/ public yandex.cloud.api.operation.OperationOuterClass.Operation delete(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.DeleteNetworkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteMethod(), getCallOptions(), request); } /** *
     * Lists subnets from the specified network.
     * 
*/ public yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSubnetsResponse listSubnets(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSubnetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListSubnetsMethod(), getCallOptions(), request); } /** *
     * Lists security groups from the specified network.
     * 
*/ public yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSecurityGroupsResponse listSecurityGroups(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSecurityGroupsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListSecurityGroupsMethod(), getCallOptions(), request); } /** *
     * Lists route tables from the specified network.
     * 
*/ public yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkRouteTablesResponse listRouteTables(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkRouteTablesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListRouteTablesMethod(), getCallOptions(), request); } /** *
     * Lists operations for the specified network.
     * 
*/ public yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkOperationsResponse listOperations(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkOperationsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListOperationsMethod(), getCallOptions(), request); } /** *
     * Move network to another folder.
     * 
*/ public yandex.cloud.api.operation.OperationOuterClass.Operation move(yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.MoveNetworkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getMoveMethod(), getCallOptions(), request); } } /** *
   * A set of methods for managing Network resources.
   * 
*/ public static final class NetworkServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private NetworkServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected NetworkServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new NetworkServiceFutureStub(channel, callOptions); } /** *
     * Returns the specified Network resource.
     * Get the list of available Network resources by making a [List] request.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture get( yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.GetNetworkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetMethod(), getCallOptions()), request); } /** *
     * Retrieves the list of Network resources in the specified folder.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture list( yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworksRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListMethod(), getCallOptions()), request); } /** *
     * Creates a network in the specified folder using the data specified in the request.
     * Method starts an asynchronous operation that can be cancelled while it is in progress.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture create( yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.CreateNetworkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateMethod(), getCallOptions()), request); } /** *
     * Updates the specified network.
     * Method starts an asynchronous operation that can be cancelled while it is in progress.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture update( yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.UpdateNetworkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateMethod(), getCallOptions()), request); } /** *
     * Deletes the specified network.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture delete( yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.DeleteNetworkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteMethod(), getCallOptions()), request); } /** *
     * Lists subnets from the specified network.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listSubnets( yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSubnetsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSubnetsMethod(), getCallOptions()), request); } /** *
     * Lists security groups from the specified network.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listSecurityGroups( yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSecurityGroupsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSecurityGroupsMethod(), getCallOptions()), request); } /** *
     * Lists route tables from the specified network.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listRouteTables( yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkRouteTablesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListRouteTablesMethod(), getCallOptions()), request); } /** *
     * Lists operations for the specified network.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listOperations( yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkOperationsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListOperationsMethod(), getCallOptions()), request); } /** *
     * Move network to another folder.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture move( yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.MoveNetworkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getMoveMethod(), 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_SUBNETS = 5; private static final int METHODID_LIST_SECURITY_GROUPS = 6; private static final int METHODID_LIST_ROUTE_TABLES = 7; private static final int METHODID_LIST_OPERATIONS = 8; private static final int METHODID_MOVE = 9; 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 NetworkServiceImplBase serviceImpl; private final int methodId; MethodHandlers(NetworkServiceImplBase 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.vpc.v1.NetworkServiceOuterClass.GetNetworkRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST: serviceImpl.list((yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworksRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE: serviceImpl.create((yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.CreateNetworkRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE: serviceImpl.update((yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.UpdateNetworkRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE: serviceImpl.delete((yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.DeleteNetworkRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_SUBNETS: serviceImpl.listSubnets((yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSubnetsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_SECURITY_GROUPS: serviceImpl.listSecurityGroups((yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkSecurityGroupsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_ROUTE_TABLES: serviceImpl.listRouteTables((yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkRouteTablesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_OPERATIONS: serviceImpl.listOperations((yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.ListNetworkOperationsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_MOVE: serviceImpl.move((yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.MoveNetworkRequest) 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 NetworkServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { NetworkServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return yandex.cloud.api.vpc.v1.NetworkServiceOuterClass.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("NetworkService"); } } private static final class NetworkServiceFileDescriptorSupplier extends NetworkServiceBaseDescriptorSupplier { NetworkServiceFileDescriptorSupplier() {} } private static final class NetworkServiceMethodDescriptorSupplier extends NetworkServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; NetworkServiceMethodDescriptorSupplier(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 (NetworkServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new NetworkServiceFileDescriptorSupplier()) .addMethod(getGetMethod()) .addMethod(getListMethod()) .addMethod(getCreateMethod()) .addMethod(getUpdateMethod()) .addMethod(getDeleteMethod()) .addMethod(getListSubnetsMethod()) .addMethod(getListSecurityGroupsMethod()) .addMethod(getListRouteTablesMethod()) .addMethod(getListOperationsMethod()) .addMethod(getMoveMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy