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

main.grpc.com.streamlayer.analytics.streaming.v1.AnalyticsServiceGrpc Maven / Gradle / Ivy

There is a newer version: 5.133.1
Show newest version
package com.streamlayer.analytics.streaming.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

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

  private AnalyticsServiceGrpc() {}

  public static final java.lang.String SERVICE_NAME = "streamlayer.analytics.v2.streaming.AnalyticsService";

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

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Send",
      requestType = com.streamlayer.analytics.streaming.v1.SendRequest.class,
      responseType = com.streamlayer.analytics.streaming.v1.SendResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
  public static io.grpc.MethodDescriptor getSendMethod() {
    io.grpc.MethodDescriptor getSendMethod;
    if ((getSendMethod = AnalyticsServiceGrpc.getSendMethod) == null) {
      synchronized (AnalyticsServiceGrpc.class) {
        if ((getSendMethod = AnalyticsServiceGrpc.getSendMethod) == null) {
          AnalyticsServiceGrpc.getSendMethod = getSendMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Send"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.analytics.streaming.v1.SendRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.analytics.streaming.v1.SendResponse.getDefaultInstance()))
              .build();
        }
      }
    }
    return getSendMethod;
  }

  private static volatile io.grpc.MethodDescriptor getUnaryMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Unary",
      requestType = com.streamlayer.analytics.streaming.v1.SendRequest.class,
      responseType = com.streamlayer.analytics.streaming.v1.SendResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getUnaryMethod() {
    io.grpc.MethodDescriptor getUnaryMethod;
    if ((getUnaryMethod = AnalyticsServiceGrpc.getUnaryMethod) == null) {
      synchronized (AnalyticsServiceGrpc.class) {
        if ((getUnaryMethod = AnalyticsServiceGrpc.getUnaryMethod) == null) {
          AnalyticsServiceGrpc.getUnaryMethod = getUnaryMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Unary"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.analytics.streaming.v1.SendRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.analytics.streaming.v1.SendResponse.getDefaultInstance()))
              .build();
        }
      }
    }
    return getUnaryMethod;
  }

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

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

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

  /**
   */
  public interface AsyncService {

    /**
     * 
     * client stream analytics
     * 
*/ default io.grpc.stub.StreamObserver send( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getSendMethod(), responseObserver); } /** *
     * client unary analytics
     * 
*/ default void unary(com.streamlayer.analytics.streaming.v1.SendRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUnaryMethod(), responseObserver); } } /** * Base class for the server implementation of the service AnalyticsService. */ public static abstract class AnalyticsServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return AnalyticsServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service AnalyticsService. */ public static final class AnalyticsServiceStub extends io.grpc.stub.AbstractAsyncStub { private AnalyticsServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AnalyticsServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AnalyticsServiceStub(channel, callOptions); } /** *
     * client stream analytics
     * 
*/ public io.grpc.stub.StreamObserver send( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ClientCalls.asyncClientStreamingCall( getChannel().newCall(getSendMethod(), getCallOptions()), responseObserver); } /** *
     * client unary analytics
     * 
*/ public void unary(com.streamlayer.analytics.streaming.v1.SendRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUnaryMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service AnalyticsService. */ public static final class AnalyticsServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private AnalyticsServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AnalyticsServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AnalyticsServiceBlockingStub(channel, callOptions); } /** *
     * client unary analytics
     * 
*/ public com.streamlayer.analytics.streaming.v1.SendResponse unary(com.streamlayer.analytics.streaming.v1.SendRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUnaryMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service AnalyticsService. */ public static final class AnalyticsServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private AnalyticsServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AnalyticsServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AnalyticsServiceFutureStub(channel, callOptions); } /** *
     * client unary analytics
     * 
*/ public com.google.common.util.concurrent.ListenableFuture unary( com.streamlayer.analytics.streaming.v1.SendRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUnaryMethod(), getCallOptions()), request); } } private static final int METHODID_UNARY = 0; private static final int METHODID_SEND = 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 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_UNARY: serviceImpl.unary((com.streamlayer.analytics.streaming.v1.SendRequest) 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_SEND: return (io.grpc.stub.StreamObserver) serviceImpl.send( (io.grpc.stub.StreamObserver) responseObserver); default: throw new AssertionError(); } } } public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getSendMethod(), io.grpc.stub.ServerCalls.asyncClientStreamingCall( new MethodHandlers< com.streamlayer.analytics.streaming.v1.SendRequest, com.streamlayer.analytics.streaming.v1.SendResponse>( service, METHODID_SEND))) .addMethod( getUnaryMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.streamlayer.analytics.streaming.v1.SendRequest, com.streamlayer.analytics.streaming.v1.SendResponse>( service, METHODID_UNARY))) .build(); } private static volatile io.grpc.ServiceDescriptor serviceDescriptor; public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (AnalyticsServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .addMethod(getSendMethod()) .addMethod(getUnaryMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy