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

yandex.cloud.api.cdn.v1.OriginServiceGrpc Maven / Gradle / Ivy

package yandex.cloud.api.cdn.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Origin management service.
 * Origin is not a standalone entity. It can live only within origin group.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.43.2)", comments = "Source: yandex/cloud/cdn/v1/origin_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class OriginServiceGrpc { private OriginServiceGrpc() {} public static final String SERVICE_NAME = "yandex.cloud.cdn.v1.OriginService"; // 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.cdn.v1.OriginServiceOuterClass.GetOriginRequest.class, responseType = yandex.cloud.api.cdn.v1.OriginOuterClass.Origin.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetMethod() { io.grpc.MethodDescriptor getGetMethod; if ((getGetMethod = OriginServiceGrpc.getGetMethod) == null) { synchronized (OriginServiceGrpc.class) { if ((getGetMethod = OriginServiceGrpc.getGetMethod) == null) { OriginServiceGrpc.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.cdn.v1.OriginServiceOuterClass.GetOriginRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.cdn.v1.OriginOuterClass.Origin.getDefaultInstance())) .setSchemaDescriptor(new OriginServiceMethodDescriptorSupplier("Get")) .build(); } } } return getGetMethod; } private static volatile io.grpc.MethodDescriptor getListMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "List", requestType = yandex.cloud.api.cdn.v1.OriginServiceOuterClass.ListOriginsRequest.class, responseType = yandex.cloud.api.cdn.v1.OriginServiceOuterClass.ListOriginsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getListMethod() { io.grpc.MethodDescriptor getListMethod; if ((getListMethod = OriginServiceGrpc.getListMethod) == null) { synchronized (OriginServiceGrpc.class) { if ((getListMethod = OriginServiceGrpc.getListMethod) == null) { OriginServiceGrpc.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.cdn.v1.OriginServiceOuterClass.ListOriginsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.cdn.v1.OriginServiceOuterClass.ListOriginsResponse.getDefaultInstance())) .setSchemaDescriptor(new OriginServiceMethodDescriptorSupplier("List")) .build(); } } } return getListMethod; } private static volatile io.grpc.MethodDescriptor getCreateMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Create", requestType = yandex.cloud.api.cdn.v1.OriginServiceOuterClass.CreateOriginRequest.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 = OriginServiceGrpc.getCreateMethod) == null) { synchronized (OriginServiceGrpc.class) { if ((getCreateMethod = OriginServiceGrpc.getCreateMethod) == null) { OriginServiceGrpc.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.cdn.v1.OriginServiceOuterClass.CreateOriginRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance())) .setSchemaDescriptor(new OriginServiceMethodDescriptorSupplier("Create")) .build(); } } } return getCreateMethod; } private static volatile io.grpc.MethodDescriptor getUpdateMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Update", requestType = yandex.cloud.api.cdn.v1.OriginServiceOuterClass.UpdateOriginRequest.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 = OriginServiceGrpc.getUpdateMethod) == null) { synchronized (OriginServiceGrpc.class) { if ((getUpdateMethod = OriginServiceGrpc.getUpdateMethod) == null) { OriginServiceGrpc.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.cdn.v1.OriginServiceOuterClass.UpdateOriginRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance())) .setSchemaDescriptor(new OriginServiceMethodDescriptorSupplier("Update")) .build(); } } } return getUpdateMethod; } private static volatile io.grpc.MethodDescriptor getDeleteMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Delete", requestType = yandex.cloud.api.cdn.v1.OriginServiceOuterClass.DeleteOriginRequest.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 = OriginServiceGrpc.getDeleteMethod) == null) { synchronized (OriginServiceGrpc.class) { if ((getDeleteMethod = OriginServiceGrpc.getDeleteMethod) == null) { OriginServiceGrpc.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.cdn.v1.OriginServiceOuterClass.DeleteOriginRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance())) .setSchemaDescriptor(new OriginServiceMethodDescriptorSupplier("Delete")) .build(); } } } return getDeleteMethod; } /** * Creates a new async stub that supports all call types for the service */ public static OriginServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public OriginServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new OriginServiceStub(channel, callOptions); } }; return OriginServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static OriginServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public OriginServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new OriginServiceBlockingStub(channel, callOptions); } }; return OriginServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static OriginServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public OriginServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new OriginServiceFutureStub(channel, callOptions); } }; return OriginServiceFutureStub.newStub(factory, channel); } /** *
   * Origin management service.
   * Origin is not a standalone entity. It can live only within origin group.
   * 
*/ public static abstract class OriginServiceImplBase implements io.grpc.BindableService { /** *
     * Get origin in origin group.
     * 
*/ public void get(yandex.cloud.api.cdn.v1.OriginServiceOuterClass.GetOriginRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), responseObserver); } /** *
     * Lists origins of origin group.
     * 
*/ public void list(yandex.cloud.api.cdn.v1.OriginServiceOuterClass.ListOriginsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMethod(), responseObserver); } /** *
     * Creates origin inside origin group.
     * 
*/ public void create(yandex.cloud.api.cdn.v1.OriginServiceOuterClass.CreateOriginRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver); } /** *
     * Updates the specified origin from the origin group.
     * Changes may take up to 15 minutes to apply. Afterwards, it is recommended to purge cache of the resources that
     * use the origin via a [CacheService.Purge] request.
     * 
*/ public void update(yandex.cloud.api.cdn.v1.OriginServiceOuterClass.UpdateOriginRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver); } /** *
     * Deletes origin from origin group.
     * 
*/ public void delete(yandex.cloud.api.cdn.v1.OriginServiceOuterClass.DeleteOriginRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMethod(), 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.cdn.v1.OriginServiceOuterClass.GetOriginRequest, yandex.cloud.api.cdn.v1.OriginOuterClass.Origin>( this, METHODID_GET))) .addMethod( getListMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.cdn.v1.OriginServiceOuterClass.ListOriginsRequest, yandex.cloud.api.cdn.v1.OriginServiceOuterClass.ListOriginsResponse>( this, METHODID_LIST))) .addMethod( getCreateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.cdn.v1.OriginServiceOuterClass.CreateOriginRequest, yandex.cloud.api.operation.OperationOuterClass.Operation>( this, METHODID_CREATE))) .addMethod( getUpdateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.cdn.v1.OriginServiceOuterClass.UpdateOriginRequest, yandex.cloud.api.operation.OperationOuterClass.Operation>( this, METHODID_UPDATE))) .addMethod( getDeleteMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< yandex.cloud.api.cdn.v1.OriginServiceOuterClass.DeleteOriginRequest, yandex.cloud.api.operation.OperationOuterClass.Operation>( this, METHODID_DELETE))) .build(); } } /** *
   * Origin management service.
   * Origin is not a standalone entity. It can live only within origin group.
   * 
*/ public static final class OriginServiceStub extends io.grpc.stub.AbstractAsyncStub { private OriginServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected OriginServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new OriginServiceStub(channel, callOptions); } /** *
     * Get origin in origin group.
     * 
*/ public void get(yandex.cloud.api.cdn.v1.OriginServiceOuterClass.GetOriginRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetMethod(), getCallOptions()), request, responseObserver); } /** *
     * Lists origins of origin group.
     * 
*/ public void list(yandex.cloud.api.cdn.v1.OriginServiceOuterClass.ListOriginsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver); } /** *
     * Creates origin inside origin group.
     * 
*/ public void create(yandex.cloud.api.cdn.v1.OriginServiceOuterClass.CreateOriginRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateMethod(), getCallOptions()), request, responseObserver); } /** *
     * Updates the specified origin from the origin group.
     * Changes may take up to 15 minutes to apply. Afterwards, it is recommended to purge cache of the resources that
     * use the origin via a [CacheService.Purge] request.
     * 
*/ public void update(yandex.cloud.api.cdn.v1.OriginServiceOuterClass.UpdateOriginRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver); } /** *
     * Deletes origin from origin group.
     * 
*/ public void delete(yandex.cloud.api.cdn.v1.OriginServiceOuterClass.DeleteOriginRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteMethod(), getCallOptions()), request, responseObserver); } } /** *
   * Origin management service.
   * Origin is not a standalone entity. It can live only within origin group.
   * 
*/ public static final class OriginServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private OriginServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected OriginServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new OriginServiceBlockingStub(channel, callOptions); } /** *
     * Get origin in origin group.
     * 
*/ public yandex.cloud.api.cdn.v1.OriginOuterClass.Origin get(yandex.cloud.api.cdn.v1.OriginServiceOuterClass.GetOriginRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetMethod(), getCallOptions(), request); } /** *
     * Lists origins of origin group.
     * 
*/ public yandex.cloud.api.cdn.v1.OriginServiceOuterClass.ListOriginsResponse list(yandex.cloud.api.cdn.v1.OriginServiceOuterClass.ListOriginsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListMethod(), getCallOptions(), request); } /** *
     * Creates origin inside origin group.
     * 
*/ public yandex.cloud.api.operation.OperationOuterClass.Operation create(yandex.cloud.api.cdn.v1.OriginServiceOuterClass.CreateOriginRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateMethod(), getCallOptions(), request); } /** *
     * Updates the specified origin from the origin group.
     * Changes may take up to 15 minutes to apply. Afterwards, it is recommended to purge cache of the resources that
     * use the origin via a [CacheService.Purge] request.
     * 
*/ public yandex.cloud.api.operation.OperationOuterClass.Operation update(yandex.cloud.api.cdn.v1.OriginServiceOuterClass.UpdateOriginRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateMethod(), getCallOptions(), request); } /** *
     * Deletes origin from origin group.
     * 
*/ public yandex.cloud.api.operation.OperationOuterClass.Operation delete(yandex.cloud.api.cdn.v1.OriginServiceOuterClass.DeleteOriginRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteMethod(), getCallOptions(), request); } } /** *
   * Origin management service.
   * Origin is not a standalone entity. It can live only within origin group.
   * 
*/ public static final class OriginServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private OriginServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected OriginServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new OriginServiceFutureStub(channel, callOptions); } /** *
     * Get origin in origin group.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture get( yandex.cloud.api.cdn.v1.OriginServiceOuterClass.GetOriginRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetMethod(), getCallOptions()), request); } /** *
     * Lists origins of origin group.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture list( yandex.cloud.api.cdn.v1.OriginServiceOuterClass.ListOriginsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListMethod(), getCallOptions()), request); } /** *
     * Creates origin inside origin group.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture create( yandex.cloud.api.cdn.v1.OriginServiceOuterClass.CreateOriginRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateMethod(), getCallOptions()), request); } /** *
     * Updates the specified origin from the origin group.
     * Changes may take up to 15 minutes to apply. Afterwards, it is recommended to purge cache of the resources that
     * use the origin via a [CacheService.Purge] request.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture update( yandex.cloud.api.cdn.v1.OriginServiceOuterClass.UpdateOriginRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateMethod(), getCallOptions()), request); } /** *
     * Deletes origin from origin group.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture delete( yandex.cloud.api.cdn.v1.OriginServiceOuterClass.DeleteOriginRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteMethod(), 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 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 OriginServiceImplBase serviceImpl; private final int methodId; MethodHandlers(OriginServiceImplBase 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.cdn.v1.OriginServiceOuterClass.GetOriginRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST: serviceImpl.list((yandex.cloud.api.cdn.v1.OriginServiceOuterClass.ListOriginsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE: serviceImpl.create((yandex.cloud.api.cdn.v1.OriginServiceOuterClass.CreateOriginRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE: serviceImpl.update((yandex.cloud.api.cdn.v1.OriginServiceOuterClass.UpdateOriginRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE: serviceImpl.delete((yandex.cloud.api.cdn.v1.OriginServiceOuterClass.DeleteOriginRequest) 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 OriginServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { OriginServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return yandex.cloud.api.cdn.v1.OriginServiceOuterClass.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("OriginService"); } } private static final class OriginServiceFileDescriptorSupplier extends OriginServiceBaseDescriptorSupplier { OriginServiceFileDescriptorSupplier() {} } private static final class OriginServiceMethodDescriptorSupplier extends OriginServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; OriginServiceMethodDescriptorSupplier(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 (OriginServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new OriginServiceFileDescriptorSupplier()) .addMethod(getGetMethod()) .addMethod(getListMethod()) .addMethod(getCreateMethod()) .addMethod(getUpdateMethod()) .addMethod(getDeleteMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy