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

com.google.cloud.vpcaccess.v1.VpcAccessServiceGrpc Maven / Gradle / Ivy

There is a newer version: 2.50.0
Show newest version
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.google.cloud.vpcaccess.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 *
 *
 * 
 * Serverless VPC Access API allows users to create and manage connectors for
 * App Engine, Cloud Functions and Cloud Run to have internal connections to
 * Virtual Private Cloud networks.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/vpcaccess/v1/vpc_access.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VpcAccessServiceGrpc { private VpcAccessServiceGrpc() {} public static final java.lang.String SERVICE_NAME = "google.cloud.vpcaccess.v1.VpcAccessService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor< com.google.cloud.vpcaccess.v1.CreateConnectorRequest, com.google.longrunning.Operation> getCreateConnectorMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateConnector", requestType = com.google.cloud.vpcaccess.v1.CreateConnectorRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.vpcaccess.v1.CreateConnectorRequest, com.google.longrunning.Operation> getCreateConnectorMethod() { io.grpc.MethodDescriptor< com.google.cloud.vpcaccess.v1.CreateConnectorRequest, com.google.longrunning.Operation> getCreateConnectorMethod; if ((getCreateConnectorMethod = VpcAccessServiceGrpc.getCreateConnectorMethod) == null) { synchronized (VpcAccessServiceGrpc.class) { if ((getCreateConnectorMethod = VpcAccessServiceGrpc.getCreateConnectorMethod) == null) { VpcAccessServiceGrpc.getCreateConnectorMethod = getCreateConnectorMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnector")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.vpcaccess.v1.CreateConnectorRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new VpcAccessServiceMethodDescriptorSupplier("CreateConnector")) .build(); } } } return getCreateConnectorMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.vpcaccess.v1.GetConnectorRequest, com.google.cloud.vpcaccess.v1.Connector> getGetConnectorMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetConnector", requestType = com.google.cloud.vpcaccess.v1.GetConnectorRequest.class, responseType = com.google.cloud.vpcaccess.v1.Connector.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.vpcaccess.v1.GetConnectorRequest, com.google.cloud.vpcaccess.v1.Connector> getGetConnectorMethod() { io.grpc.MethodDescriptor< com.google.cloud.vpcaccess.v1.GetConnectorRequest, com.google.cloud.vpcaccess.v1.Connector> getGetConnectorMethod; if ((getGetConnectorMethod = VpcAccessServiceGrpc.getGetConnectorMethod) == null) { synchronized (VpcAccessServiceGrpc.class) { if ((getGetConnectorMethod = VpcAccessServiceGrpc.getGetConnectorMethod) == null) { VpcAccessServiceGrpc.getGetConnectorMethod = getGetConnectorMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnector")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.vpcaccess.v1.GetConnectorRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance())) .setSchemaDescriptor( new VpcAccessServiceMethodDescriptorSupplier("GetConnector")) .build(); } } } return getGetConnectorMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.vpcaccess.v1.ListConnectorsRequest, com.google.cloud.vpcaccess.v1.ListConnectorsResponse> getListConnectorsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListConnectors", requestType = com.google.cloud.vpcaccess.v1.ListConnectorsRequest.class, responseType = com.google.cloud.vpcaccess.v1.ListConnectorsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.vpcaccess.v1.ListConnectorsRequest, com.google.cloud.vpcaccess.v1.ListConnectorsResponse> getListConnectorsMethod() { io.grpc.MethodDescriptor< com.google.cloud.vpcaccess.v1.ListConnectorsRequest, com.google.cloud.vpcaccess.v1.ListConnectorsResponse> getListConnectorsMethod; if ((getListConnectorsMethod = VpcAccessServiceGrpc.getListConnectorsMethod) == null) { synchronized (VpcAccessServiceGrpc.class) { if ((getListConnectorsMethod = VpcAccessServiceGrpc.getListConnectorsMethod) == null) { VpcAccessServiceGrpc.getListConnectorsMethod = getListConnectorsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnectors")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.vpcaccess.v1.ListConnectorsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.vpcaccess.v1.ListConnectorsResponse .getDefaultInstance())) .setSchemaDescriptor( new VpcAccessServiceMethodDescriptorSupplier("ListConnectors")) .build(); } } } return getListConnectorsMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.vpcaccess.v1.DeleteConnectorRequest, com.google.longrunning.Operation> getDeleteConnectorMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteConnector", requestType = com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.vpcaccess.v1.DeleteConnectorRequest, com.google.longrunning.Operation> getDeleteConnectorMethod() { io.grpc.MethodDescriptor< com.google.cloud.vpcaccess.v1.DeleteConnectorRequest, com.google.longrunning.Operation> getDeleteConnectorMethod; if ((getDeleteConnectorMethod = VpcAccessServiceGrpc.getDeleteConnectorMethod) == null) { synchronized (VpcAccessServiceGrpc.class) { if ((getDeleteConnectorMethod = VpcAccessServiceGrpc.getDeleteConnectorMethod) == null) { VpcAccessServiceGrpc.getDeleteConnectorMethod = getDeleteConnectorMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnector")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.vpcaccess.v1.DeleteConnectorRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new VpcAccessServiceMethodDescriptorSupplier("DeleteConnector")) .build(); } } } return getDeleteConnectorMethod; } /** Creates a new async stub that supports all call types for the service */ public static VpcAccessServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public VpcAccessServiceStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new VpcAccessServiceStub(channel, callOptions); } }; return VpcAccessServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static VpcAccessServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public VpcAccessServiceBlockingStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new VpcAccessServiceBlockingStub(channel, callOptions); } }; return VpcAccessServiceBlockingStub.newStub(factory, channel); } /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static VpcAccessServiceFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public VpcAccessServiceFutureStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new VpcAccessServiceFutureStub(channel, callOptions); } }; return VpcAccessServiceFutureStub.newStub(factory, channel); } /** * * *
   * Serverless VPC Access API allows users to create and manage connectors for
   * App Engine, Cloud Functions and Cloud Run to have internal connections to
   * Virtual Private Cloud networks.
   * 
*/ public interface AsyncService { /** * * *
     * Creates a Serverless VPC Access connector, returns an operation.
     * 
*/ default void createConnector( com.google.cloud.vpcaccess.v1.CreateConnectorRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateConnectorMethod(), responseObserver); } /** * * *
     * Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource
     * does not exist.
     * 
*/ default void getConnector( com.google.cloud.vpcaccess.v1.GetConnectorRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetConnectorMethod(), responseObserver); } /** * * *
     * Lists Serverless VPC Access connectors.
     * 
*/ default void listConnectors( com.google.cloud.vpcaccess.v1.ListConnectorsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListConnectorsMethod(), responseObserver); } /** * * *
     * Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the
     * resource does not exist.
     * 
*/ default void deleteConnector( com.google.cloud.vpcaccess.v1.DeleteConnectorRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteConnectorMethod(), responseObserver); } } /** * Base class for the server implementation of the service VpcAccessService. * *
   * Serverless VPC Access API allows users to create and manage connectors for
   * App Engine, Cloud Functions and Cloud Run to have internal connections to
   * Virtual Private Cloud networks.
   * 
*/ public abstract static class VpcAccessServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return VpcAccessServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service VpcAccessService. * *
   * Serverless VPC Access API allows users to create and manage connectors for
   * App Engine, Cloud Functions and Cloud Run to have internal connections to
   * Virtual Private Cloud networks.
   * 
*/ public static final class VpcAccessServiceStub extends io.grpc.stub.AbstractAsyncStub { private VpcAccessServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected VpcAccessServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new VpcAccessServiceStub(channel, callOptions); } /** * * *
     * Creates a Serverless VPC Access connector, returns an operation.
     * 
*/ public void createConnector( com.google.cloud.vpcaccess.v1.CreateConnectorRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateConnectorMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource
     * does not exist.
     * 
*/ public void getConnector( com.google.cloud.vpcaccess.v1.GetConnectorRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetConnectorMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Lists Serverless VPC Access connectors.
     * 
*/ public void listConnectors( com.google.cloud.vpcaccess.v1.ListConnectorsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListConnectorsMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the
     * resource does not exist.
     * 
*/ public void deleteConnector( com.google.cloud.vpcaccess.v1.DeleteConnectorRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteConnectorMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service VpcAccessService. * *
   * Serverless VPC Access API allows users to create and manage connectors for
   * App Engine, Cloud Functions and Cloud Run to have internal connections to
   * Virtual Private Cloud networks.
   * 
*/ public static final class VpcAccessServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private VpcAccessServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected VpcAccessServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new VpcAccessServiceBlockingStub(channel, callOptions); } /** * * *
     * Creates a Serverless VPC Access connector, returns an operation.
     * 
*/ public com.google.longrunning.Operation createConnector( com.google.cloud.vpcaccess.v1.CreateConnectorRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateConnectorMethod(), getCallOptions(), request); } /** * * *
     * Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource
     * does not exist.
     * 
*/ public com.google.cloud.vpcaccess.v1.Connector getConnector( com.google.cloud.vpcaccess.v1.GetConnectorRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetConnectorMethod(), getCallOptions(), request); } /** * * *
     * Lists Serverless VPC Access connectors.
     * 
*/ public com.google.cloud.vpcaccess.v1.ListConnectorsResponse listConnectors( com.google.cloud.vpcaccess.v1.ListConnectorsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListConnectorsMethod(), getCallOptions(), request); } /** * * *
     * Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the
     * resource does not exist.
     * 
*/ public com.google.longrunning.Operation deleteConnector( com.google.cloud.vpcaccess.v1.DeleteConnectorRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteConnectorMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service VpcAccessService. * *
   * Serverless VPC Access API allows users to create and manage connectors for
   * App Engine, Cloud Functions and Cloud Run to have internal connections to
   * Virtual Private Cloud networks.
   * 
*/ public static final class VpcAccessServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private VpcAccessServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected VpcAccessServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new VpcAccessServiceFutureStub(channel, callOptions); } /** * * *
     * Creates a Serverless VPC Access connector, returns an operation.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture createConnector(com.google.cloud.vpcaccess.v1.CreateConnectorRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateConnectorMethod(), getCallOptions()), request); } /** * * *
     * Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource
     * does not exist.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.vpcaccess.v1.Connector> getConnector(com.google.cloud.vpcaccess.v1.GetConnectorRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetConnectorMethod(), getCallOptions()), request); } /** * * *
     * Lists Serverless VPC Access connectors.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.vpcaccess.v1.ListConnectorsResponse> listConnectors(com.google.cloud.vpcaccess.v1.ListConnectorsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListConnectorsMethod(), getCallOptions()), request); } /** * * *
     * Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the
     * resource does not exist.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteConnector(com.google.cloud.vpcaccess.v1.DeleteConnectorRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteConnectorMethod(), getCallOptions()), request); } } private static final int METHODID_CREATE_CONNECTOR = 0; private static final int METHODID_GET_CONNECTOR = 1; private static final int METHODID_LIST_CONNECTORS = 2; private static final int METHODID_DELETE_CONNECTOR = 3; 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 AsyncService serviceImpl; private final int methodId; MethodHandlers(AsyncService 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_CREATE_CONNECTOR: serviceImpl.createConnector( (com.google.cloud.vpcaccess.v1.CreateConnectorRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_CONNECTOR: serviceImpl.getConnector( (com.google.cloud.vpcaccess.v1.GetConnectorRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_CONNECTORS: serviceImpl.listConnectors( (com.google.cloud.vpcaccess.v1.ListConnectorsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_CONNECTOR: serviceImpl.deleteConnector( (com.google.cloud.vpcaccess.v1.DeleteConnectorRequest) 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(); } } } public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateConnectorMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.vpcaccess.v1.CreateConnectorRequest, com.google.longrunning.Operation>(service, METHODID_CREATE_CONNECTOR))) .addMethod( getGetConnectorMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.vpcaccess.v1.GetConnectorRequest, com.google.cloud.vpcaccess.v1.Connector>(service, METHODID_GET_CONNECTOR))) .addMethod( getListConnectorsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.vpcaccess.v1.ListConnectorsRequest, com.google.cloud.vpcaccess.v1.ListConnectorsResponse>( service, METHODID_LIST_CONNECTORS))) .addMethod( getDeleteConnectorMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.vpcaccess.v1.DeleteConnectorRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_CONNECTOR))) .build(); } private abstract static class VpcAccessServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { VpcAccessServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.cloud.vpcaccess.v1.VpcAccessProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("VpcAccessService"); } } private static final class VpcAccessServiceFileDescriptorSupplier extends VpcAccessServiceBaseDescriptorSupplier { VpcAccessServiceFileDescriptorSupplier() {} } private static final class VpcAccessServiceMethodDescriptorSupplier extends VpcAccessServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; VpcAccessServiceMethodDescriptorSupplier(java.lang.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 (VpcAccessServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new VpcAccessServiceFileDescriptorSupplier()) .addMethod(getCreateConnectorMethod()) .addMethod(getGetConnectorMethod()) .addMethod(getListConnectorsMethod()) .addMethod(getDeleteConnectorMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy