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

io.github.navi_cloud.shared.storage.FolderGrpc Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
package io.github.navi_cloud.shared.storage;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Service Description
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.40.1)", comments = "Source: StorageService/FolderService.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FolderGrpc { private FolderGrpc() {} public static final String SERVICE_NAME = "io.github.navi_cloud.shared.storage.Folder"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getCreateRootFolderMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateRootFolder", requestType = io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest.class, responseType = io.github.navi_cloud.shared.CommonCommunication.Result.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getCreateRootFolderMethod() { io.grpc.MethodDescriptor getCreateRootFolderMethod; if ((getCreateRootFolderMethod = FolderGrpc.getCreateRootFolderMethod) == null) { synchronized (FolderGrpc.class) { if ((getCreateRootFolderMethod = FolderGrpc.getCreateRootFolderMethod) == null) { FolderGrpc.getCreateRootFolderMethod = getCreateRootFolderMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRootFolder")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.github.navi_cloud.shared.CommonCommunication.Result.getDefaultInstance())) .setSchemaDescriptor(new FolderMethodDescriptorSupplier("CreateRootFolder")) .build(); } } } return getCreateRootFolderMethod; } private static volatile io.grpc.MethodDescriptor getFindInsideFilesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "FindInsideFiles", requestType = io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest.class, responseType = io.github.navi_cloud.shared.CommonCommunication.Result.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getFindInsideFilesMethod() { io.grpc.MethodDescriptor getFindInsideFilesMethod; if ((getFindInsideFilesMethod = FolderGrpc.getFindInsideFilesMethod) == null) { synchronized (FolderGrpc.class) { if ((getFindInsideFilesMethod = FolderGrpc.getFindInsideFilesMethod) == null) { FolderGrpc.getFindInsideFilesMethod = getFindInsideFilesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FindInsideFiles")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.github.navi_cloud.shared.CommonCommunication.Result.getDefaultInstance())) .setSchemaDescriptor(new FolderMethodDescriptorSupplier("FindInsideFiles")) .build(); } } } return getFindInsideFilesMethod; } private static volatile io.grpc.MethodDescriptor getCreateNewFolderMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateNewFolder", requestType = io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest.class, responseType = io.github.navi_cloud.shared.CommonCommunication.Result.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getCreateNewFolderMethod() { io.grpc.MethodDescriptor getCreateNewFolderMethod; if ((getCreateNewFolderMethod = FolderGrpc.getCreateNewFolderMethod) == null) { synchronized (FolderGrpc.class) { if ((getCreateNewFolderMethod = FolderGrpc.getCreateNewFolderMethod) == null) { FolderGrpc.getCreateNewFolderMethod = getCreateNewFolderMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNewFolder")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.github.navi_cloud.shared.CommonCommunication.Result.getDefaultInstance())) .setSchemaDescriptor(new FolderMethodDescriptorSupplier("CreateNewFolder")) .build(); } } } return getCreateNewFolderMethod; } private static volatile io.grpc.MethodDescriptor getDeleteFolderMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteFolder", requestType = io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest.class, responseType = io.github.navi_cloud.shared.CommonCommunication.Result.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getDeleteFolderMethod() { io.grpc.MethodDescriptor getDeleteFolderMethod; if ((getDeleteFolderMethod = FolderGrpc.getDeleteFolderMethod) == null) { synchronized (FolderGrpc.class) { if ((getDeleteFolderMethod = FolderGrpc.getDeleteFolderMethod) == null) { FolderGrpc.getDeleteFolderMethod = getDeleteFolderMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFolder")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.github.navi_cloud.shared.CommonCommunication.Result.getDefaultInstance())) .setSchemaDescriptor(new FolderMethodDescriptorSupplier("DeleteFolder")) .build(); } } } return getDeleteFolderMethod; } /** * Creates a new async stub that supports all call types for the service */ public static FolderStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public FolderStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new FolderStub(channel, callOptions); } }; return FolderStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static FolderBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public FolderBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new FolderBlockingStub(channel, callOptions); } }; return FolderBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static FolderFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public FolderFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new FolderFutureStub(channel, callOptions); } }; return FolderFutureStub.newStub(factory, channel); } /** *
   * Service Description
   * 
*/ public static abstract class FolderImplBase implements io.grpc.BindableService { /** */ public void createRootFolder(io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRootFolderMethod(), responseObserver); } /** */ public void findInsideFiles(io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFindInsideFilesMethod(), responseObserver); } /** */ public void createNewFolder(io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNewFolderMethod(), responseObserver); } /** */ public void deleteFolder(io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFolderMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateRootFolderMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest, io.github.navi_cloud.shared.CommonCommunication.Result>( this, METHODID_CREATE_ROOT_FOLDER))) .addMethod( getFindInsideFilesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest, io.github.navi_cloud.shared.CommonCommunication.Result>( this, METHODID_FIND_INSIDE_FILES))) .addMethod( getCreateNewFolderMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest, io.github.navi_cloud.shared.CommonCommunication.Result>( this, METHODID_CREATE_NEW_FOLDER))) .addMethod( getDeleteFolderMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest, io.github.navi_cloud.shared.CommonCommunication.Result>( this, METHODID_DELETE_FOLDER))) .build(); } } /** *
   * Service Description
   * 
*/ public static final class FolderStub extends io.grpc.stub.AbstractAsyncStub { private FolderStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected FolderStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new FolderStub(channel, callOptions); } /** */ public void createRootFolder(io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateRootFolderMethod(), getCallOptions()), request, responseObserver); } /** */ public void findInsideFiles(io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getFindInsideFilesMethod(), getCallOptions()), request, responseObserver); } /** */ public void createNewFolder(io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateNewFolderMethod(), getCallOptions()), request, responseObserver); } /** */ public void deleteFolder(io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteFolderMethod(), getCallOptions()), request, responseObserver); } } /** *
   * Service Description
   * 
*/ public static final class FolderBlockingStub extends io.grpc.stub.AbstractBlockingStub { private FolderBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected FolderBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new FolderBlockingStub(channel, callOptions); } /** */ public io.github.navi_cloud.shared.CommonCommunication.Result createRootFolder(io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateRootFolderMethod(), getCallOptions(), request); } /** */ public io.github.navi_cloud.shared.CommonCommunication.Result findInsideFiles(io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getFindInsideFilesMethod(), getCallOptions(), request); } /** */ public io.github.navi_cloud.shared.CommonCommunication.Result createNewFolder(io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateNewFolderMethod(), getCallOptions(), request); } /** */ public io.github.navi_cloud.shared.CommonCommunication.Result deleteFolder(io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteFolderMethod(), getCallOptions(), request); } } /** *
   * Service Description
   * 
*/ public static final class FolderFutureStub extends io.grpc.stub.AbstractFutureStub { private FolderFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected FolderFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new FolderFutureStub(channel, callOptions); } /** */ public com.google.common.util.concurrent.ListenableFuture createRootFolder( io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateRootFolderMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture findInsideFiles( io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getFindInsideFilesMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture createNewFolder( io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateNewFolderMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture deleteFolder( io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteFolderMethod(), getCallOptions()), request); } } private static final int METHODID_CREATE_ROOT_FOLDER = 0; private static final int METHODID_FIND_INSIDE_FILES = 1; private static final int METHODID_CREATE_NEW_FOLDER = 2; private static final int METHODID_DELETE_FOLDER = 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 FolderImplBase serviceImpl; private final int methodId; MethodHandlers(FolderImplBase 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_ROOT_FOLDER: serviceImpl.createRootFolder((io.github.navi_cloud.shared.storage.StorageMessage.CreateRootFolderRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_FIND_INSIDE_FILES: serviceImpl.findInsideFiles((io.github.navi_cloud.shared.storage.StorageMessage.FindInsideFilesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_NEW_FOLDER: serviceImpl.createNewFolder((io.github.navi_cloud.shared.storage.StorageMessage.CreateNewFolderRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_FOLDER: serviceImpl.deleteFolder((io.github.navi_cloud.shared.storage.StorageMessage.DeleteFolderRequest) 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 FolderBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { FolderBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return io.github.navi_cloud.shared.storage.FolderService.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("Folder"); } } private static final class FolderFileDescriptorSupplier extends FolderBaseDescriptorSupplier { FolderFileDescriptorSupplier() {} } private static final class FolderMethodDescriptorSupplier extends FolderBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; FolderMethodDescriptorSupplier(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 (FolderGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new FolderFileDescriptorSupplier()) .addMethod(getCreateRootFolderMethod()) .addMethod(getFindInsideFilesMethod()) .addMethod(getCreateNewFolderMethod()) .addMethod(getDeleteFolderMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy