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

main.grpc.com.streamlayer.files.FilesGrpc Maven / Gradle / Ivy

There is a newer version: 5.133.1
Show newest version
package com.streamlayer.files;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.65.1)",
    comments = "Source: streamlayer/files/files.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class FilesGrpc {

  private FilesGrpc() {}

  public static final java.lang.String SERVICE_NAME = "streamlayer.files.Files";

  // Static method descriptors that strictly reflect the proto.
  private static volatile io.grpc.MethodDescriptor getUploadMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Upload",
      requestType = com.streamlayer.files.UploadRequest.class,
      responseType = com.streamlayer.files.UploadResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getUploadMethod() {
    io.grpc.MethodDescriptor getUploadMethod;
    if ((getUploadMethod = FilesGrpc.getUploadMethod) == null) {
      synchronized (FilesGrpc.class) {
        if ((getUploadMethod = FilesGrpc.getUploadMethod) == null) {
          FilesGrpc.getUploadMethod = getUploadMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Upload"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.files.UploadRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.files.UploadResponse.getDefaultInstance()))
              .build();
        }
      }
    }
    return getUploadMethod;
  }

  private static volatile io.grpc.MethodDescriptor getAdminUploadMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "AdminUpload",
      requestType = com.streamlayer.files.AdminUploadRequest.class,
      responseType = com.streamlayer.files.AdminUploadResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getAdminUploadMethod() {
    io.grpc.MethodDescriptor getAdminUploadMethod;
    if ((getAdminUploadMethod = FilesGrpc.getAdminUploadMethod) == null) {
      synchronized (FilesGrpc.class) {
        if ((getAdminUploadMethod = FilesGrpc.getAdminUploadMethod) == null) {
          FilesGrpc.getAdminUploadMethod = getAdminUploadMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AdminUpload"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.files.AdminUploadRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.files.AdminUploadResponse.getDefaultInstance()))
              .build();
        }
      }
    }
    return getAdminUploadMethod;
  }

  private static volatile io.grpc.MethodDescriptor getAdminUploadModerationMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "AdminUploadModeration",
      requestType = com.streamlayer.files.AdminUploadModerationRequest.class,
      responseType = com.streamlayer.files.AdminUploadResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getAdminUploadModerationMethod() {
    io.grpc.MethodDescriptor getAdminUploadModerationMethod;
    if ((getAdminUploadModerationMethod = FilesGrpc.getAdminUploadModerationMethod) == null) {
      synchronized (FilesGrpc.class) {
        if ((getAdminUploadModerationMethod = FilesGrpc.getAdminUploadModerationMethod) == null) {
          FilesGrpc.getAdminUploadModerationMethod = getAdminUploadModerationMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AdminUploadModeration"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.files.AdminUploadModerationRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.files.AdminUploadResponse.getDefaultInstance()))
              .build();
        }
      }
    }
    return getAdminUploadModerationMethod;
  }

  private static volatile io.grpc.MethodDescriptor getAdminUploadAdvertisingMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "AdminUploadAdvertising",
      requestType = com.streamlayer.files.AdminUploadAdvertisingRequest.class,
      responseType = com.streamlayer.files.AdminUploadResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getAdminUploadAdvertisingMethod() {
    io.grpc.MethodDescriptor getAdminUploadAdvertisingMethod;
    if ((getAdminUploadAdvertisingMethod = FilesGrpc.getAdminUploadAdvertisingMethod) == null) {
      synchronized (FilesGrpc.class) {
        if ((getAdminUploadAdvertisingMethod = FilesGrpc.getAdminUploadAdvertisingMethod) == null) {
          FilesGrpc.getAdminUploadAdvertisingMethod = getAdminUploadAdvertisingMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AdminUploadAdvertising"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.files.AdminUploadAdvertisingRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.files.AdminUploadResponse.getDefaultInstance()))
              .build();
        }
      }
    }
    return getAdminUploadAdvertisingMethod;
  }

  private static volatile io.grpc.MethodDescriptor getDownloadMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Download",
      requestType = com.streamlayer.files.DownloadRequest.class,
      responseType = com.streamlayer.files.DownloadResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getDownloadMethod() {
    io.grpc.MethodDescriptor getDownloadMethod;
    if ((getDownloadMethod = FilesGrpc.getDownloadMethod) == null) {
      synchronized (FilesGrpc.class) {
        if ((getDownloadMethod = FilesGrpc.getDownloadMethod) == null) {
          FilesGrpc.getDownloadMethod = getDownloadMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Download"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.files.DownloadRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.files.DownloadResponse.getDefaultInstance()))
              .build();
        }
      }
    }
    return getDownloadMethod;
  }

  private static volatile io.grpc.MethodDescriptor getInfoMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Info",
      requestType = com.streamlayer.files.InfoRequest.class,
      responseType = com.streamlayer.files.InfoResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getInfoMethod() {
    io.grpc.MethodDescriptor getInfoMethod;
    if ((getInfoMethod = FilesGrpc.getInfoMethod) == null) {
      synchronized (FilesGrpc.class) {
        if ((getInfoMethod = FilesGrpc.getInfoMethod) == null) {
          FilesGrpc.getInfoMethod = getInfoMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Info"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.files.InfoRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.files.InfoResponse.getDefaultInstance()))
              .build();
        }
      }
    }
    return getInfoMethod;
  }

  private static volatile io.grpc.MethodDescriptor getListMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "List",
      requestType = com.streamlayer.files.ListRequest.class,
      responseType = com.streamlayer.files.ListResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getListMethod() {
    io.grpc.MethodDescriptor getListMethod;
    if ((getListMethod = FilesGrpc.getListMethod) == null) {
      synchronized (FilesGrpc.class) {
        if ((getListMethod = FilesGrpc.getListMethod) == null) {
          FilesGrpc.getListMethod = getListMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "List"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.files.ListRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.files.ListResponse.getDefaultInstance()))
              .build();
        }
      }
    }
    return getListMethod;
  }

  private static volatile io.grpc.MethodDescriptor getListModerationMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "ListModeration",
      requestType = com.streamlayer.files.ListModerationRequest.class,
      responseType = com.streamlayer.files.ListResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getListModerationMethod() {
    io.grpc.MethodDescriptor getListModerationMethod;
    if ((getListModerationMethod = FilesGrpc.getListModerationMethod) == null) {
      synchronized (FilesGrpc.class) {
        if ((getListModerationMethod = FilesGrpc.getListModerationMethod) == null) {
          FilesGrpc.getListModerationMethod = getListModerationMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListModeration"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.files.ListModerationRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.files.ListResponse.getDefaultInstance()))
              .build();
        }
      }
    }
    return getListModerationMethod;
  }

  private static volatile io.grpc.MethodDescriptor getListAdvertisingMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "ListAdvertising",
      requestType = com.streamlayer.files.ListAdvertisingRequest.class,
      responseType = com.streamlayer.files.ListResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getListAdvertisingMethod() {
    io.grpc.MethodDescriptor getListAdvertisingMethod;
    if ((getListAdvertisingMethod = FilesGrpc.getListAdvertisingMethod) == null) {
      synchronized (FilesGrpc.class) {
        if ((getListAdvertisingMethod = FilesGrpc.getListAdvertisingMethod) == null) {
          FilesGrpc.getListAdvertisingMethod = getListAdvertisingMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAdvertising"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.files.ListAdvertisingRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.files.ListResponse.getDefaultInstance()))
              .build();
        }
      }
    }
    return getListAdvertisingMethod;
  }

  private static volatile io.grpc.MethodDescriptor getRemoveMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Remove",
      requestType = com.streamlayer.files.RemoveRequest.class,
      responseType = com.streamlayer.files.RemoveResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getRemoveMethod() {
    io.grpc.MethodDescriptor getRemoveMethod;
    if ((getRemoveMethod = FilesGrpc.getRemoveMethod) == null) {
      synchronized (FilesGrpc.class) {
        if ((getRemoveMethod = FilesGrpc.getRemoveMethod) == null) {
          FilesGrpc.getRemoveMethod = getRemoveMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Remove"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.files.RemoveRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.files.RemoveResponse.getDefaultInstance()))
              .build();
        }
      }
    }
    return getRemoveMethod;
  }

  /**
   * Creates a new async stub that supports all call types for the service
   */
  public static FilesStub newStub(io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public FilesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new FilesStub(channel, callOptions);
        }
      };
    return FilesStub.newStub(factory, channel);
  }

  /**
   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
   */
  public static FilesBlockingStub newBlockingStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public FilesBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new FilesBlockingStub(channel, callOptions);
        }
      };
    return FilesBlockingStub.newStub(factory, channel);
  }

  /**
   * Creates a new ListenableFuture-style stub that supports unary calls on the service
   */
  public static FilesFutureStub newFutureStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public FilesFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new FilesFutureStub(channel, callOptions);
        }
      };
    return FilesFutureStub.newStub(factory, channel);
  }

  /**
   */
  public interface AsyncService {

    /**
     */
    default void upload(com.streamlayer.files.UploadRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUploadMethod(), responseObserver);
    }

    /**
     */
    default void adminUpload(com.streamlayer.files.AdminUploadRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAdminUploadMethod(), responseObserver);
    }

    /**
     */
    default void adminUploadModeration(com.streamlayer.files.AdminUploadModerationRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAdminUploadModerationMethod(), responseObserver);
    }

    /**
     */
    default void adminUploadAdvertising(com.streamlayer.files.AdminUploadAdvertisingRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAdminUploadAdvertisingMethod(), responseObserver);
    }

    /**
     */
    default void download(com.streamlayer.files.DownloadRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDownloadMethod(), responseObserver);
    }

    /**
     */
    default void info(com.streamlayer.files.InfoRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getInfoMethod(), responseObserver);
    }

    /**
     */
    default void list(com.streamlayer.files.ListRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMethod(), responseObserver);
    }

    /**
     */
    default void listModeration(com.streamlayer.files.ListModerationRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListModerationMethod(), responseObserver);
    }

    /**
     */
    default void listAdvertising(com.streamlayer.files.ListAdvertisingRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAdvertisingMethod(), responseObserver);
    }

    /**
     */
    default void remove(com.streamlayer.files.RemoveRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRemoveMethod(), responseObserver);
    }
  }

  /**
   * Base class for the server implementation of the service Files.
   */
  public static abstract class FilesImplBase
      implements io.grpc.BindableService, AsyncService {

    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
      return FilesGrpc.bindService(this);
    }
  }

  /**
   * A stub to allow clients to do asynchronous rpc calls to service Files.
   */
  public static final class FilesStub
      extends io.grpc.stub.AbstractAsyncStub {
    private FilesStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected FilesStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new FilesStub(channel, callOptions);
    }

    /**
     */
    public void upload(com.streamlayer.files.UploadRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getUploadMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void adminUpload(com.streamlayer.files.AdminUploadRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getAdminUploadMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void adminUploadModeration(com.streamlayer.files.AdminUploadModerationRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getAdminUploadModerationMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void adminUploadAdvertising(com.streamlayer.files.AdminUploadAdvertisingRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getAdminUploadAdvertisingMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void download(com.streamlayer.files.DownloadRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getDownloadMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void info(com.streamlayer.files.InfoRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getInfoMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void list(com.streamlayer.files.ListRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void listModeration(com.streamlayer.files.ListModerationRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getListModerationMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void listAdvertising(com.streamlayer.files.ListAdvertisingRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getListAdvertisingMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void remove(com.streamlayer.files.RemoveRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getRemoveMethod(), getCallOptions()), request, responseObserver);
    }
  }

  /**
   * A stub to allow clients to do synchronous rpc calls to service Files.
   */
  public static final class FilesBlockingStub
      extends io.grpc.stub.AbstractBlockingStub {
    private FilesBlockingStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected FilesBlockingStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new FilesBlockingStub(channel, callOptions);
    }

    /**
     */
    public com.streamlayer.files.UploadResponse upload(com.streamlayer.files.UploadRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getUploadMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.streamlayer.files.AdminUploadResponse adminUpload(com.streamlayer.files.AdminUploadRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getAdminUploadMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.streamlayer.files.AdminUploadResponse adminUploadModeration(com.streamlayer.files.AdminUploadModerationRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getAdminUploadModerationMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.streamlayer.files.AdminUploadResponse adminUploadAdvertising(com.streamlayer.files.AdminUploadAdvertisingRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getAdminUploadAdvertisingMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.streamlayer.files.DownloadResponse download(com.streamlayer.files.DownloadRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getDownloadMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.streamlayer.files.InfoResponse info(com.streamlayer.files.InfoRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getInfoMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.streamlayer.files.ListResponse list(com.streamlayer.files.ListRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getListMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.streamlayer.files.ListResponse listModeration(com.streamlayer.files.ListModerationRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getListModerationMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.streamlayer.files.ListResponse listAdvertising(com.streamlayer.files.ListAdvertisingRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getListAdvertisingMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.streamlayer.files.RemoveResponse remove(com.streamlayer.files.RemoveRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getRemoveMethod(), getCallOptions(), request);
    }
  }

  /**
   * A stub to allow clients to do ListenableFuture-style rpc calls to service Files.
   */
  public static final class FilesFutureStub
      extends io.grpc.stub.AbstractFutureStub {
    private FilesFutureStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected FilesFutureStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new FilesFutureStub(channel, callOptions);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture upload(
        com.streamlayer.files.UploadRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getUploadMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture adminUpload(
        com.streamlayer.files.AdminUploadRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getAdminUploadMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture adminUploadModeration(
        com.streamlayer.files.AdminUploadModerationRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getAdminUploadModerationMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture adminUploadAdvertising(
        com.streamlayer.files.AdminUploadAdvertisingRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getAdminUploadAdvertisingMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture download(
        com.streamlayer.files.DownloadRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getDownloadMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture info(
        com.streamlayer.files.InfoRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getInfoMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture list(
        com.streamlayer.files.ListRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getListMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture listModeration(
        com.streamlayer.files.ListModerationRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getListModerationMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture listAdvertising(
        com.streamlayer.files.ListAdvertisingRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getListAdvertisingMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture remove(
        com.streamlayer.files.RemoveRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getRemoveMethod(), getCallOptions()), request);
    }
  }

  private static final int METHODID_UPLOAD = 0;
  private static final int METHODID_ADMIN_UPLOAD = 1;
  private static final int METHODID_ADMIN_UPLOAD_MODERATION = 2;
  private static final int METHODID_ADMIN_UPLOAD_ADVERTISING = 3;
  private static final int METHODID_DOWNLOAD = 4;
  private static final int METHODID_INFO = 5;
  private static final int METHODID_LIST = 6;
  private static final int METHODID_LIST_MODERATION = 7;
  private static final int METHODID_LIST_ADVERTISING = 8;
  private static final int METHODID_REMOVE = 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 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_UPLOAD:
          serviceImpl.upload((com.streamlayer.files.UploadRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_ADMIN_UPLOAD:
          serviceImpl.adminUpload((com.streamlayer.files.AdminUploadRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_ADMIN_UPLOAD_MODERATION:
          serviceImpl.adminUploadModeration((com.streamlayer.files.AdminUploadModerationRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_ADMIN_UPLOAD_ADVERTISING:
          serviceImpl.adminUploadAdvertising((com.streamlayer.files.AdminUploadAdvertisingRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_DOWNLOAD:
          serviceImpl.download((com.streamlayer.files.DownloadRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_INFO:
          serviceImpl.info((com.streamlayer.files.InfoRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_LIST:
          serviceImpl.list((com.streamlayer.files.ListRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_LIST_MODERATION:
          serviceImpl.listModeration((com.streamlayer.files.ListModerationRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_LIST_ADVERTISING:
          serviceImpl.listAdvertising((com.streamlayer.files.ListAdvertisingRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_REMOVE:
          serviceImpl.remove((com.streamlayer.files.RemoveRequest) 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(
          getUploadMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.streamlayer.files.UploadRequest,
              com.streamlayer.files.UploadResponse>(
                service, METHODID_UPLOAD)))
        .addMethod(
          getAdminUploadMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.streamlayer.files.AdminUploadRequest,
              com.streamlayer.files.AdminUploadResponse>(
                service, METHODID_ADMIN_UPLOAD)))
        .addMethod(
          getAdminUploadModerationMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.streamlayer.files.AdminUploadModerationRequest,
              com.streamlayer.files.AdminUploadResponse>(
                service, METHODID_ADMIN_UPLOAD_MODERATION)))
        .addMethod(
          getAdminUploadAdvertisingMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.streamlayer.files.AdminUploadAdvertisingRequest,
              com.streamlayer.files.AdminUploadResponse>(
                service, METHODID_ADMIN_UPLOAD_ADVERTISING)))
        .addMethod(
          getDownloadMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.streamlayer.files.DownloadRequest,
              com.streamlayer.files.DownloadResponse>(
                service, METHODID_DOWNLOAD)))
        .addMethod(
          getInfoMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.streamlayer.files.InfoRequest,
              com.streamlayer.files.InfoResponse>(
                service, METHODID_INFO)))
        .addMethod(
          getListMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.streamlayer.files.ListRequest,
              com.streamlayer.files.ListResponse>(
                service, METHODID_LIST)))
        .addMethod(
          getListModerationMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.streamlayer.files.ListModerationRequest,
              com.streamlayer.files.ListResponse>(
                service, METHODID_LIST_MODERATION)))
        .addMethod(
          getListAdvertisingMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.streamlayer.files.ListAdvertisingRequest,
              com.streamlayer.files.ListResponse>(
                service, METHODID_LIST_ADVERTISING)))
        .addMethod(
          getRemoveMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.streamlayer.files.RemoveRequest,
              com.streamlayer.files.RemoveResponse>(
                service, METHODID_REMOVE)))
        .build();
  }

  private static volatile io.grpc.ServiceDescriptor serviceDescriptor;

  public static io.grpc.ServiceDescriptor getServiceDescriptor() {
    io.grpc.ServiceDescriptor result = serviceDescriptor;
    if (result == null) {
      synchronized (FilesGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .addMethod(getUploadMethod())
              .addMethod(getAdminUploadMethod())
              .addMethod(getAdminUploadModerationMethod())
              .addMethod(getAdminUploadAdvertisingMethod())
              .addMethod(getDownloadMethod())
              .addMethod(getInfoMethod())
              .addMethod(getListMethod())
              .addMethod(getListModerationMethod())
              .addMethod(getListAdvertisingMethod())
              .addMethod(getRemoveMethod())
              .build();
        }
      }
    }
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy