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

cz.o2.proxima.proto.service.IngestServiceGrpc Maven / Gradle / Ivy

There is a newer version: 0.14.0
Show newest version
package cz.o2.proxima.proto.service;

import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
import static io.grpc.stub.ClientCalls.futureUnaryCall;
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;

/**
 * 
 **
 * Ingest service serves as data entry point. All data
 * is sent to the system via this endpoint.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.27.2)", comments = "Source: rpc.proto") public final class IngestServiceGrpc { private IngestServiceGrpc() {} public static final String SERVICE_NAME = "IngestService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getIngestBulkMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ingestBulk", requestType = cz.o2.proxima.proto.service.Rpc.IngestBulk.class, responseType = cz.o2.proxima.proto.service.Rpc.StatusBulk.class, methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) public static io.grpc.MethodDescriptor getIngestBulkMethod() { io.grpc.MethodDescriptor getIngestBulkMethod; if ((getIngestBulkMethod = IngestServiceGrpc.getIngestBulkMethod) == null) { synchronized (IngestServiceGrpc.class) { if ((getIngestBulkMethod = IngestServiceGrpc.getIngestBulkMethod) == null) { IngestServiceGrpc.getIngestBulkMethod = getIngestBulkMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ingestBulk")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cz.o2.proxima.proto.service.Rpc.IngestBulk.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cz.o2.proxima.proto.service.Rpc.StatusBulk.getDefaultInstance())) .setSchemaDescriptor(new IngestServiceMethodDescriptorSupplier("ingestBulk")) .build(); } } } return getIngestBulkMethod; } private static volatile io.grpc.MethodDescriptor getIngestSingleMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ingestSingle", requestType = cz.o2.proxima.proto.service.Rpc.Ingest.class, responseType = cz.o2.proxima.proto.service.Rpc.Status.class, methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) public static io.grpc.MethodDescriptor getIngestSingleMethod() { io.grpc.MethodDescriptor getIngestSingleMethod; if ((getIngestSingleMethod = IngestServiceGrpc.getIngestSingleMethod) == null) { synchronized (IngestServiceGrpc.class) { if ((getIngestSingleMethod = IngestServiceGrpc.getIngestSingleMethod) == null) { IngestServiceGrpc.getIngestSingleMethod = getIngestSingleMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ingestSingle")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cz.o2.proxima.proto.service.Rpc.Ingest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cz.o2.proxima.proto.service.Rpc.Status.getDefaultInstance())) .setSchemaDescriptor(new IngestServiceMethodDescriptorSupplier("ingestSingle")) .build(); } } } return getIngestSingleMethod; } private static volatile io.grpc.MethodDescriptor getIngestMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ingest", requestType = cz.o2.proxima.proto.service.Rpc.Ingest.class, responseType = cz.o2.proxima.proto.service.Rpc.Status.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getIngestMethod() { io.grpc.MethodDescriptor getIngestMethod; if ((getIngestMethod = IngestServiceGrpc.getIngestMethod) == null) { synchronized (IngestServiceGrpc.class) { if ((getIngestMethod = IngestServiceGrpc.getIngestMethod) == null) { IngestServiceGrpc.getIngestMethod = getIngestMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ingest")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cz.o2.proxima.proto.service.Rpc.Ingest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cz.o2.proxima.proto.service.Rpc.Status.getDefaultInstance())) .setSchemaDescriptor(new IngestServiceMethodDescriptorSupplier("ingest")) .build(); } } } return getIngestMethod; } /** * Creates a new async stub that supports all call types for the service */ public static IngestServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public IngestServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IngestServiceStub(channel, callOptions); } }; return IngestServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static IngestServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public IngestServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IngestServiceBlockingStub(channel, callOptions); } }; return IngestServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static IngestServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public IngestServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IngestServiceFutureStub(channel, callOptions); } }; return IngestServiceFutureStub.newStub(factory, channel); } /** *
   **
   * Ingest service serves as data entry point. All data
   * is sent to the system via this endpoint.
   * 
*/ public static abstract class IngestServiceImplBase implements io.grpc.BindableService { /** *
     **
     * The main ingest method. Use this for high performance ingest requests.
     * Note that the returned StatusBulk will not be necesarilly corresponding
     * the the input bulk. So each IngestBulk can result in any number of
     * StatusBulk messages. It is up to the application to handle the
     * StatusBulk as a stream of individual Statuses.
     * 
*/ public io.grpc.stub.StreamObserver ingestBulk( io.grpc.stub.StreamObserver responseObserver) { return asyncUnimplementedStreamingCall(getIngestBulkMethod(), responseObserver); } /** *
     **
     * Stream ingestion with single ingest requests. Use this method when
     * sending small isolated and infrequent ingest requests.
     * 
*/ public io.grpc.stub.StreamObserver ingestSingle( io.grpc.stub.StreamObserver responseObserver) { return asyncUnimplementedStreamingCall(getIngestSingleMethod(), responseObserver); } /** *
     **
     * Synchronous ingest request.
     * 
*/ public void ingest(cz.o2.proxima.proto.service.Rpc.Ingest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getIngestMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getIngestBulkMethod(), asyncBidiStreamingCall( new MethodHandlers< cz.o2.proxima.proto.service.Rpc.IngestBulk, cz.o2.proxima.proto.service.Rpc.StatusBulk>( this, METHODID_INGEST_BULK))) .addMethod( getIngestSingleMethod(), asyncBidiStreamingCall( new MethodHandlers< cz.o2.proxima.proto.service.Rpc.Ingest, cz.o2.proxima.proto.service.Rpc.Status>( this, METHODID_INGEST_SINGLE))) .addMethod( getIngestMethod(), asyncUnaryCall( new MethodHandlers< cz.o2.proxima.proto.service.Rpc.Ingest, cz.o2.proxima.proto.service.Rpc.Status>( this, METHODID_INGEST))) .build(); } } /** *
   **
   * Ingest service serves as data entry point. All data
   * is sent to the system via this endpoint.
   * 
*/ public static final class IngestServiceStub extends io.grpc.stub.AbstractAsyncStub { private IngestServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected IngestServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IngestServiceStub(channel, callOptions); } /** *
     **
     * The main ingest method. Use this for high performance ingest requests.
     * Note that the returned StatusBulk will not be necesarilly corresponding
     * the the input bulk. So each IngestBulk can result in any number of
     * StatusBulk messages. It is up to the application to handle the
     * StatusBulk as a stream of individual Statuses.
     * 
*/ public io.grpc.stub.StreamObserver ingestBulk( io.grpc.stub.StreamObserver responseObserver) { return asyncBidiStreamingCall( getChannel().newCall(getIngestBulkMethod(), getCallOptions()), responseObserver); } /** *
     **
     * Stream ingestion with single ingest requests. Use this method when
     * sending small isolated and infrequent ingest requests.
     * 
*/ public io.grpc.stub.StreamObserver ingestSingle( io.grpc.stub.StreamObserver responseObserver) { return asyncBidiStreamingCall( getChannel().newCall(getIngestSingleMethod(), getCallOptions()), responseObserver); } /** *
     **
     * Synchronous ingest request.
     * 
*/ public void ingest(cz.o2.proxima.proto.service.Rpc.Ingest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getIngestMethod(), getCallOptions()), request, responseObserver); } } /** *
   **
   * Ingest service serves as data entry point. All data
   * is sent to the system via this endpoint.
   * 
*/ public static final class IngestServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private IngestServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected IngestServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IngestServiceBlockingStub(channel, callOptions); } /** *
     **
     * Synchronous ingest request.
     * 
*/ public cz.o2.proxima.proto.service.Rpc.Status ingest(cz.o2.proxima.proto.service.Rpc.Ingest request) { return blockingUnaryCall( getChannel(), getIngestMethod(), getCallOptions(), request); } } /** *
   **
   * Ingest service serves as data entry point. All data
   * is sent to the system via this endpoint.
   * 
*/ public static final class IngestServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private IngestServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected IngestServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IngestServiceFutureStub(channel, callOptions); } /** *
     **
     * Synchronous ingest request.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture ingest( cz.o2.proxima.proto.service.Rpc.Ingest request) { return futureUnaryCall( getChannel().newCall(getIngestMethod(), getCallOptions()), request); } } private static final int METHODID_INGEST = 0; private static final int METHODID_INGEST_BULK = 1; private static final int METHODID_INGEST_SINGLE = 2; 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 IngestServiceImplBase serviceImpl; private final int methodId; MethodHandlers(IngestServiceImplBase 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_INGEST: serviceImpl.ingest((cz.o2.proxima.proto.service.Rpc.Ingest) 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_INGEST_BULK: return (io.grpc.stub.StreamObserver) serviceImpl.ingestBulk( (io.grpc.stub.StreamObserver) responseObserver); case METHODID_INGEST_SINGLE: return (io.grpc.stub.StreamObserver) serviceImpl.ingestSingle( (io.grpc.stub.StreamObserver) responseObserver); default: throw new AssertionError(); } } } private static abstract class IngestServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { IngestServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return cz.o2.proxima.proto.service.Rpc.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("IngestService"); } } private static final class IngestServiceFileDescriptorSupplier extends IngestServiceBaseDescriptorSupplier { IngestServiceFileDescriptorSupplier() {} } private static final class IngestServiceMethodDescriptorSupplier extends IngestServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; IngestServiceMethodDescriptorSupplier(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 (IngestServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new IngestServiceFileDescriptorSupplier()) .addMethod(getIngestBulkMethod()) .addMethod(getIngestSingleMethod()) .addMethod(getIngestMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy