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

cz.proto.ingestion.IGSWorkerServiceGrpc Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package cz.proto.ingestion;

import static io.grpc.MethodDescriptor.generateFullMethodName;

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

  private IGSWorkerServiceGrpc() {}

  public static final String SERVICE_NAME = "cz.proto.ingestion.IGSWorkerService";

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

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "CommitTablet",
      requestType = cz.proto.ingestion.Ingestion.CommitTabletRequest.class,
      responseType = cz.proto.ingestion.Ingestion.CommitTabletResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getCommitTabletMethod() {
    io.grpc.MethodDescriptor getCommitTabletMethod;
    if ((getCommitTabletMethod = IGSWorkerServiceGrpc.getCommitTabletMethod) == null) {
      synchronized (IGSWorkerServiceGrpc.class) {
        if ((getCommitTabletMethod = IGSWorkerServiceGrpc.getCommitTabletMethod) == null) {
          IGSWorkerServiceGrpc.getCommitTabletMethod = getCommitTabletMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CommitTablet"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.ingestion.Ingestion.CommitTabletRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.ingestion.Ingestion.CommitTabletResponse.getDefaultInstance()))
              .setSchemaDescriptor(new IGSWorkerServiceMethodDescriptorSupplier("CommitTablet"))
              .build();
        }
      }
    }
    return getCommitTabletMethod;
  }

  private static volatile io.grpc.MethodDescriptor getMutateMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Mutate",
      requestType = cz.proto.ingestion.Ingestion.DataMutateRequest.class,
      responseType = cz.proto.ingestion.Ingestion.DataMutateResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
  public static io.grpc.MethodDescriptor getMutateMethod() {
    io.grpc.MethodDescriptor getMutateMethod;
    if ((getMutateMethod = IGSWorkerServiceGrpc.getMutateMethod) == null) {
      synchronized (IGSWorkerServiceGrpc.class) {
        if ((getMutateMethod = IGSWorkerServiceGrpc.getMutateMethod) == null) {
          IGSWorkerServiceGrpc.getMutateMethod = getMutateMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Mutate"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.ingestion.Ingestion.DataMutateRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.ingestion.Ingestion.DataMutateResponse.getDefaultInstance()))
              .setSchemaDescriptor(new IGSWorkerServiceMethodDescriptorSupplier("Mutate"))
              .build();
        }
      }
    }
    return getMutateMethod;
  }

  private static volatile io.grpc.MethodDescriptor getBroadcastMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Broadcast",
      requestType = cz.proto.ingestion.Ingestion.BroadcastRequest.class,
      responseType = cz.proto.ingestion.Ingestion.BroadcastResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getBroadcastMethod() {
    io.grpc.MethodDescriptor getBroadcastMethod;
    if ((getBroadcastMethod = IGSWorkerServiceGrpc.getBroadcastMethod) == null) {
      synchronized (IGSWorkerServiceGrpc.class) {
        if ((getBroadcastMethod = IGSWorkerServiceGrpc.getBroadcastMethod) == null) {
          IGSWorkerServiceGrpc.getBroadcastMethod = getBroadcastMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Broadcast"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.ingestion.Ingestion.BroadcastRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.ingestion.Ingestion.BroadcastResponse.getDefaultInstance()))
              .setSchemaDescriptor(new IGSWorkerServiceMethodDescriptorSupplier("Broadcast"))
              .build();
        }
      }
    }
    return getBroadcastMethod;
  }

  private static volatile io.grpc.MethodDescriptor getMutateInternalMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "MutateInternal",
      requestType = cz.proto.ingestion.Ingestion.DataMutateRequestInternal.class,
      responseType = cz.proto.ingestion.Ingestion.DataMutateResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getMutateInternalMethod() {
    io.grpc.MethodDescriptor getMutateInternalMethod;
    if ((getMutateInternalMethod = IGSWorkerServiceGrpc.getMutateInternalMethod) == null) {
      synchronized (IGSWorkerServiceGrpc.class) {
        if ((getMutateInternalMethod = IGSWorkerServiceGrpc.getMutateInternalMethod) == null) {
          IGSWorkerServiceGrpc.getMutateInternalMethod = getMutateInternalMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MutateInternal"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.ingestion.Ingestion.DataMutateRequestInternal.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  cz.proto.ingestion.Ingestion.DataMutateResponse.getDefaultInstance()))
              .setSchemaDescriptor(new IGSWorkerServiceMethodDescriptorSupplier("MutateInternal"))
              .build();
        }
      }
    }
    return getMutateInternalMethod;
  }

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

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

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

  /**
   */
  public static abstract class IGSWorkerServiceImplBase implements io.grpc.BindableService {

    /**
     */
    public void commitTablet(cz.proto.ingestion.Ingestion.CommitTabletRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCommitTabletMethod(), responseObserver);
    }

    /**
     */
    public io.grpc.stub.StreamObserver mutate(
        io.grpc.stub.StreamObserver responseObserver) {
      return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getMutateMethod(), responseObserver);
    }

    /**
     */
    public void broadcast(cz.proto.ingestion.Ingestion.BroadcastRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBroadcastMethod(), responseObserver);
    }

    /**
     */
    public void mutateInternal(cz.proto.ingestion.Ingestion.DataMutateRequestInternal request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMutateInternalMethod(), responseObserver);
    }

    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
          .addMethod(
            getCommitTabletMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                cz.proto.ingestion.Ingestion.CommitTabletRequest,
                cz.proto.ingestion.Ingestion.CommitTabletResponse>(
                  this, METHODID_COMMIT_TABLET)))
          .addMethod(
            getMutateMethod(),
            io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
              new MethodHandlers<
                cz.proto.ingestion.Ingestion.DataMutateRequest,
                cz.proto.ingestion.Ingestion.DataMutateResponse>(
                  this, METHODID_MUTATE)))
          .addMethod(
            getBroadcastMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                cz.proto.ingestion.Ingestion.BroadcastRequest,
                cz.proto.ingestion.Ingestion.BroadcastResponse>(
                  this, METHODID_BROADCAST)))
          .addMethod(
            getMutateInternalMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                cz.proto.ingestion.Ingestion.DataMutateRequestInternal,
                cz.proto.ingestion.Ingestion.DataMutateResponse>(
                  this, METHODID_MUTATE_INTERNAL)))
          .build();
    }
  }

  /**
   */
  public static final class IGSWorkerServiceStub extends io.grpc.stub.AbstractAsyncStub {
    private IGSWorkerServiceStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

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

    /**
     */
    public void commitTablet(cz.proto.ingestion.Ingestion.CommitTabletRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getCommitTabletMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public io.grpc.stub.StreamObserver mutate(
        io.grpc.stub.StreamObserver responseObserver) {
      return io.grpc.stub.ClientCalls.asyncBidiStreamingCall(
          getChannel().newCall(getMutateMethod(), getCallOptions()), responseObserver);
    }

    /**
     */
    public void broadcast(cz.proto.ingestion.Ingestion.BroadcastRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getBroadcastMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void mutateInternal(cz.proto.ingestion.Ingestion.DataMutateRequestInternal request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getMutateInternalMethod(), getCallOptions()), request, responseObserver);
    }
  }

  /**
   */
  public static final class IGSWorkerServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
    private IGSWorkerServiceBlockingStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

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

    /**
     */
    public cz.proto.ingestion.Ingestion.CommitTabletResponse commitTablet(cz.proto.ingestion.Ingestion.CommitTabletRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getCommitTabletMethod(), getCallOptions(), request);
    }

    /**
     */
    public cz.proto.ingestion.Ingestion.BroadcastResponse broadcast(cz.proto.ingestion.Ingestion.BroadcastRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getBroadcastMethod(), getCallOptions(), request);
    }

    /**
     */
    public cz.proto.ingestion.Ingestion.DataMutateResponse mutateInternal(cz.proto.ingestion.Ingestion.DataMutateRequestInternal request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getMutateInternalMethod(), getCallOptions(), request);
    }
  }

  /**
   */
  public static final class IGSWorkerServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
    private IGSWorkerServiceFutureStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

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

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture commitTablet(
        cz.proto.ingestion.Ingestion.CommitTabletRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getCommitTabletMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture broadcast(
        cz.proto.ingestion.Ingestion.BroadcastRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getBroadcastMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture mutateInternal(
        cz.proto.ingestion.Ingestion.DataMutateRequestInternal request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getMutateInternalMethod(), getCallOptions()), request);
    }
  }

  private static final int METHODID_COMMIT_TABLET = 0;
  private static final int METHODID_BROADCAST = 1;
  private static final int METHODID_MUTATE_INTERNAL = 2;
  private static final int METHODID_MUTATE = 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 IGSWorkerServiceImplBase serviceImpl;
    private final int methodId;

    MethodHandlers(IGSWorkerServiceImplBase 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_COMMIT_TABLET:
          serviceImpl.commitTablet((cz.proto.ingestion.Ingestion.CommitTabletRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_BROADCAST:
          serviceImpl.broadcast((cz.proto.ingestion.Ingestion.BroadcastRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_MUTATE_INTERNAL:
          serviceImpl.mutateInternal((cz.proto.ingestion.Ingestion.DataMutateRequestInternal) 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_MUTATE:
          return (io.grpc.stub.StreamObserver) serviceImpl.mutate(
              (io.grpc.stub.StreamObserver) responseObserver);
        default:
          throw new AssertionError();
      }
    }
  }

  private static abstract class IGSWorkerServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    IGSWorkerServiceBaseDescriptorSupplier() {}

    @java.lang.Override
    public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
      return cz.proto.ingestion.Ingestion.getDescriptor();
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
      return getFileDescriptor().findServiceByName("IGSWorkerService");
    }
  }

  private static final class IGSWorkerServiceFileDescriptorSupplier
      extends IGSWorkerServiceBaseDescriptorSupplier {
    IGSWorkerServiceFileDescriptorSupplier() {}
  }

  private static final class IGSWorkerServiceMethodDescriptorSupplier
      extends IGSWorkerServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final String methodName;

    IGSWorkerServiceMethodDescriptorSupplier(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 (IGSWorkerServiceGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new IGSWorkerServiceFileDescriptorSupplier())
              .addMethod(getCommitTabletMethod())
              .addMethod(getMutateMethod())
              .addMethod(getBroadcastMethod())
              .addMethod(getMutateInternalMethod())
              .build();
        }
      }
    }
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy