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

yandex.cloud.api.datasphere.v1.ProjectDataServiceGrpc Maven / Gradle / Ivy

package yandex.cloud.api.datasphere.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * A set of methods for managing data of the Project resource.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.43.2)", comments = "Source: yandex/cloud/datasphere/v1/project_data_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProjectDataServiceGrpc { private ProjectDataServiceGrpc() {} public static final String SERVICE_NAME = "yandex.cloud.datasphere.v1.ProjectDataService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getUploadFileMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UploadFile", requestType = yandex.cloud.api.datasphere.v1.ProjectDataServiceOuterClass.UploadFileRequest.class, responseType = yandex.cloud.api.datasphere.v1.ProjectDataServiceOuterClass.UploadFileResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) public static io.grpc.MethodDescriptor getUploadFileMethod() { io.grpc.MethodDescriptor getUploadFileMethod; if ((getUploadFileMethod = ProjectDataServiceGrpc.getUploadFileMethod) == null) { synchronized (ProjectDataServiceGrpc.class) { if ((getUploadFileMethod = ProjectDataServiceGrpc.getUploadFileMethod) == null) { ProjectDataServiceGrpc.getUploadFileMethod = getUploadFileMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UploadFile")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.datasphere.v1.ProjectDataServiceOuterClass.UploadFileRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.datasphere.v1.ProjectDataServiceOuterClass.UploadFileResponse.getDefaultInstance())) .setSchemaDescriptor(new ProjectDataServiceMethodDescriptorSupplier("UploadFile")) .build(); } } } return getUploadFileMethod; } private static volatile io.grpc.MethodDescriptor getDownloadFileMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DownloadFile", requestType = yandex.cloud.api.datasphere.v1.ProjectDataServiceOuterClass.DownloadFileRequest.class, responseType = yandex.cloud.api.datasphere.v1.ProjectDataServiceOuterClass.DownloadFileResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) public static io.grpc.MethodDescriptor getDownloadFileMethod() { io.grpc.MethodDescriptor getDownloadFileMethod; if ((getDownloadFileMethod = ProjectDataServiceGrpc.getDownloadFileMethod) == null) { synchronized (ProjectDataServiceGrpc.class) { if ((getDownloadFileMethod = ProjectDataServiceGrpc.getDownloadFileMethod) == null) { ProjectDataServiceGrpc.getDownloadFileMethod = getDownloadFileMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DownloadFile")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.datasphere.v1.ProjectDataServiceOuterClass.DownloadFileRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( yandex.cloud.api.datasphere.v1.ProjectDataServiceOuterClass.DownloadFileResponse.getDefaultInstance())) .setSchemaDescriptor(new ProjectDataServiceMethodDescriptorSupplier("DownloadFile")) .build(); } } } return getDownloadFileMethod; } /** * Creates a new async stub that supports all call types for the service */ public static ProjectDataServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ProjectDataServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProjectDataServiceStub(channel, callOptions); } }; return ProjectDataServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static ProjectDataServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ProjectDataServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProjectDataServiceBlockingStub(channel, callOptions); } }; return ProjectDataServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static ProjectDataServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ProjectDataServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProjectDataServiceFutureStub(channel, callOptions); } }; return ProjectDataServiceFutureStub.newStub(factory, channel); } /** *
   * A set of methods for managing data of the Project resource.
   * 
*/ public static abstract class ProjectDataServiceImplBase implements io.grpc.BindableService { /** *
     * Uploads a file to the specified project.
     * 
*/ public io.grpc.stub.StreamObserver uploadFile( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getUploadFileMethod(), responseObserver); } /** *
     * Downloads the specified file from the specified project.
     * 
*/ public void downloadFile(yandex.cloud.api.datasphere.v1.ProjectDataServiceOuterClass.DownloadFileRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDownloadFileMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getUploadFileMethod(), io.grpc.stub.ServerCalls.asyncClientStreamingCall( new MethodHandlers< yandex.cloud.api.datasphere.v1.ProjectDataServiceOuterClass.UploadFileRequest, yandex.cloud.api.datasphere.v1.ProjectDataServiceOuterClass.UploadFileResponse>( this, METHODID_UPLOAD_FILE))) .addMethod( getDownloadFileMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall( new MethodHandlers< yandex.cloud.api.datasphere.v1.ProjectDataServiceOuterClass.DownloadFileRequest, yandex.cloud.api.datasphere.v1.ProjectDataServiceOuterClass.DownloadFileResponse>( this, METHODID_DOWNLOAD_FILE))) .build(); } } /** *
   * A set of methods for managing data of the Project resource.
   * 
*/ public static final class ProjectDataServiceStub extends io.grpc.stub.AbstractAsyncStub { private ProjectDataServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ProjectDataServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProjectDataServiceStub(channel, callOptions); } /** *
     * Uploads a file to the specified project.
     * 
*/ public io.grpc.stub.StreamObserver uploadFile( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ClientCalls.asyncClientStreamingCall( getChannel().newCall(getUploadFileMethod(), getCallOptions()), responseObserver); } /** *
     * Downloads the specified file from the specified project.
     * 
*/ public void downloadFile(yandex.cloud.api.datasphere.v1.ProjectDataServiceOuterClass.DownloadFileRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( getChannel().newCall(getDownloadFileMethod(), getCallOptions()), request, responseObserver); } } /** *
   * A set of methods for managing data of the Project resource.
   * 
*/ public static final class ProjectDataServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private ProjectDataServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ProjectDataServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProjectDataServiceBlockingStub(channel, callOptions); } /** *
     * Downloads the specified file from the specified project.
     * 
*/ public java.util.Iterator downloadFile( yandex.cloud.api.datasphere.v1.ProjectDataServiceOuterClass.DownloadFileRequest request) { return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getDownloadFileMethod(), getCallOptions(), request); } } /** *
   * A set of methods for managing data of the Project resource.
   * 
*/ public static final class ProjectDataServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private ProjectDataServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ProjectDataServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProjectDataServiceFutureStub(channel, callOptions); } } private static final int METHODID_DOWNLOAD_FILE = 0; private static final int METHODID_UPLOAD_FILE = 1; 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 ProjectDataServiceImplBase serviceImpl; private final int methodId; MethodHandlers(ProjectDataServiceImplBase 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_DOWNLOAD_FILE: serviceImpl.downloadFile((yandex.cloud.api.datasphere.v1.ProjectDataServiceOuterClass.DownloadFileRequest) 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) { case METHODID_UPLOAD_FILE: return (io.grpc.stub.StreamObserver) serviceImpl.uploadFile( (io.grpc.stub.StreamObserver) responseObserver); default: throw new AssertionError(); } } } private static abstract class ProjectDataServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ProjectDataServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return yandex.cloud.api.datasphere.v1.ProjectDataServiceOuterClass.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("ProjectDataService"); } } private static final class ProjectDataServiceFileDescriptorSupplier extends ProjectDataServiceBaseDescriptorSupplier { ProjectDataServiceFileDescriptorSupplier() {} } private static final class ProjectDataServiceMethodDescriptorSupplier extends ProjectDataServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; ProjectDataServiceMethodDescriptorSupplier(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 (ProjectDataServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new ProjectDataServiceFileDescriptorSupplier()) .addMethod(getUploadFileMethod()) .addMethod(getDownloadFileMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy