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

com.zepben.protobuf.mp.MeasurementProducerGrpc Maven / Gradle / Ivy

There is a newer version: 0.32.0-SNAPSHOT2
Show newest version
package com.zepben.protobuf.mp;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.59.1)",
    comments = "Source: zepben/protobuf/mp/mp.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class MeasurementProducerGrpc {

  private MeasurementProducerGrpc() {}

  public static final java.lang.String SERVICE_NAME = "zepben.protobuf.mp.MeasurementProducer";

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

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "CreateAccumulatorValue",
      requestType = com.zepben.protobuf.mp.CreateAccumulatorValueRequest.class,
      responseType = com.zepben.protobuf.mp.CreateAccumulatorValueResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getCreateAccumulatorValueMethod() {
    io.grpc.MethodDescriptor getCreateAccumulatorValueMethod;
    if ((getCreateAccumulatorValueMethod = MeasurementProducerGrpc.getCreateAccumulatorValueMethod) == null) {
      synchronized (MeasurementProducerGrpc.class) {
        if ((getCreateAccumulatorValueMethod = MeasurementProducerGrpc.getCreateAccumulatorValueMethod) == null) {
          MeasurementProducerGrpc.getCreateAccumulatorValueMethod = getCreateAccumulatorValueMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAccumulatorValue"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.mp.CreateAccumulatorValueRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.mp.CreateAccumulatorValueResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MeasurementProducerMethodDescriptorSupplier("CreateAccumulatorValue"))
              .build();
        }
      }
    }
    return getCreateAccumulatorValueMethod;
  }

  private static volatile io.grpc.MethodDescriptor getCreateAnalogValueMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "CreateAnalogValue",
      requestType = com.zepben.protobuf.mp.CreateAnalogValueRequest.class,
      responseType = com.zepben.protobuf.mp.CreateAnalogValueResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getCreateAnalogValueMethod() {
    io.grpc.MethodDescriptor getCreateAnalogValueMethod;
    if ((getCreateAnalogValueMethod = MeasurementProducerGrpc.getCreateAnalogValueMethod) == null) {
      synchronized (MeasurementProducerGrpc.class) {
        if ((getCreateAnalogValueMethod = MeasurementProducerGrpc.getCreateAnalogValueMethod) == null) {
          MeasurementProducerGrpc.getCreateAnalogValueMethod = getCreateAnalogValueMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAnalogValue"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.mp.CreateAnalogValueRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.mp.CreateAnalogValueResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MeasurementProducerMethodDescriptorSupplier("CreateAnalogValue"))
              .build();
        }
      }
    }
    return getCreateAnalogValueMethod;
  }

  private static volatile io.grpc.MethodDescriptor getCreateDiscreteValueMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "CreateDiscreteValue",
      requestType = com.zepben.protobuf.mp.CreateDiscreteValueRequest.class,
      responseType = com.zepben.protobuf.mp.CreateDiscreteValueResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getCreateDiscreteValueMethod() {
    io.grpc.MethodDescriptor getCreateDiscreteValueMethod;
    if ((getCreateDiscreteValueMethod = MeasurementProducerGrpc.getCreateDiscreteValueMethod) == null) {
      synchronized (MeasurementProducerGrpc.class) {
        if ((getCreateDiscreteValueMethod = MeasurementProducerGrpc.getCreateDiscreteValueMethod) == null) {
          MeasurementProducerGrpc.getCreateDiscreteValueMethod = getCreateDiscreteValueMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDiscreteValue"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.mp.CreateDiscreteValueRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.mp.CreateDiscreteValueResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MeasurementProducerMethodDescriptorSupplier("CreateDiscreteValue"))
              .build();
        }
      }
    }
    return getCreateDiscreteValueMethod;
  }

  private static volatile io.grpc.MethodDescriptor getCreateAccumulatorValuesMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "CreateAccumulatorValues",
      requestType = com.zepben.protobuf.mp.CreateAccumulatorValuesRequest.class,
      responseType = com.zepben.protobuf.mp.CreateAccumulatorValuesResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getCreateAccumulatorValuesMethod() {
    io.grpc.MethodDescriptor getCreateAccumulatorValuesMethod;
    if ((getCreateAccumulatorValuesMethod = MeasurementProducerGrpc.getCreateAccumulatorValuesMethod) == null) {
      synchronized (MeasurementProducerGrpc.class) {
        if ((getCreateAccumulatorValuesMethod = MeasurementProducerGrpc.getCreateAccumulatorValuesMethod) == null) {
          MeasurementProducerGrpc.getCreateAccumulatorValuesMethod = getCreateAccumulatorValuesMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAccumulatorValues"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.mp.CreateAccumulatorValuesRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.mp.CreateAccumulatorValuesResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MeasurementProducerMethodDescriptorSupplier("CreateAccumulatorValues"))
              .build();
        }
      }
    }
    return getCreateAccumulatorValuesMethod;
  }

  private static volatile io.grpc.MethodDescriptor getCreateAnalogValuesMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "CreateAnalogValues",
      requestType = com.zepben.protobuf.mp.CreateAnalogValuesRequest.class,
      responseType = com.zepben.protobuf.mp.CreateAnalogValuesResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getCreateAnalogValuesMethod() {
    io.grpc.MethodDescriptor getCreateAnalogValuesMethod;
    if ((getCreateAnalogValuesMethod = MeasurementProducerGrpc.getCreateAnalogValuesMethod) == null) {
      synchronized (MeasurementProducerGrpc.class) {
        if ((getCreateAnalogValuesMethod = MeasurementProducerGrpc.getCreateAnalogValuesMethod) == null) {
          MeasurementProducerGrpc.getCreateAnalogValuesMethod = getCreateAnalogValuesMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAnalogValues"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.mp.CreateAnalogValuesRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.mp.CreateAnalogValuesResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MeasurementProducerMethodDescriptorSupplier("CreateAnalogValues"))
              .build();
        }
      }
    }
    return getCreateAnalogValuesMethod;
  }

  private static volatile io.grpc.MethodDescriptor getCreateDiscreteValuesMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "CreateDiscreteValues",
      requestType = com.zepben.protobuf.mp.CreateDiscreteValuesRequest.class,
      responseType = com.zepben.protobuf.mp.CreateDiscreteValuesResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getCreateDiscreteValuesMethod() {
    io.grpc.MethodDescriptor getCreateDiscreteValuesMethod;
    if ((getCreateDiscreteValuesMethod = MeasurementProducerGrpc.getCreateDiscreteValuesMethod) == null) {
      synchronized (MeasurementProducerGrpc.class) {
        if ((getCreateDiscreteValuesMethod = MeasurementProducerGrpc.getCreateDiscreteValuesMethod) == null) {
          MeasurementProducerGrpc.getCreateDiscreteValuesMethod = getCreateDiscreteValuesMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDiscreteValues"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.mp.CreateDiscreteValuesRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.mp.CreateDiscreteValuesResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MeasurementProducerMethodDescriptorSupplier("CreateDiscreteValues"))
              .build();
        }
      }
    }
    return getCreateDiscreteValuesMethod;
  }

  private static volatile io.grpc.MethodDescriptor getCreateMeasurementValuesMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "CreateMeasurementValues",
      requestType = com.zepben.protobuf.mp.CreateMeasurementValuesRequest.class,
      responseType = com.zepben.protobuf.mp.CreateMeasurementValuesResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
  public static io.grpc.MethodDescriptor getCreateMeasurementValuesMethod() {
    io.grpc.MethodDescriptor getCreateMeasurementValuesMethod;
    if ((getCreateMeasurementValuesMethod = MeasurementProducerGrpc.getCreateMeasurementValuesMethod) == null) {
      synchronized (MeasurementProducerGrpc.class) {
        if ((getCreateMeasurementValuesMethod = MeasurementProducerGrpc.getCreateMeasurementValuesMethod) == null) {
          MeasurementProducerGrpc.getCreateMeasurementValuesMethod = getCreateMeasurementValuesMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMeasurementValues"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.mp.CreateMeasurementValuesRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.mp.CreateMeasurementValuesResponse.getDefaultInstance()))
              .setSchemaDescriptor(new MeasurementProducerMethodDescriptorSupplier("CreateMeasurementValues"))
              .build();
        }
      }
    }
    return getCreateMeasurementValuesMethod;
  }

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

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

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

  /**
   */
  public interface AsyncService {

    /**
     * 
     * Package: IEC-61970 Base/Meas
     * 
*/ default void createAccumulatorValue(com.zepben.protobuf.mp.CreateAccumulatorValueRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAccumulatorValueMethod(), responseObserver); } /** */ default void createAnalogValue(com.zepben.protobuf.mp.CreateAnalogValueRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAnalogValueMethod(), responseObserver); } /** */ default void createDiscreteValue(com.zepben.protobuf.mp.CreateDiscreteValueRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDiscreteValueMethod(), responseObserver); } /** */ default void createAccumulatorValues(com.zepben.protobuf.mp.CreateAccumulatorValuesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAccumulatorValuesMethod(), responseObserver); } /** */ default void createAnalogValues(com.zepben.protobuf.mp.CreateAnalogValuesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAnalogValuesMethod(), responseObserver); } /** */ default void createDiscreteValues(com.zepben.protobuf.mp.CreateDiscreteValuesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDiscreteValuesMethod(), responseObserver); } /** */ default io.grpc.stub.StreamObserver createMeasurementValues( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getCreateMeasurementValuesMethod(), responseObserver); } } /** * Base class for the server implementation of the service MeasurementProducer. */ public static abstract class MeasurementProducerImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return MeasurementProducerGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service MeasurementProducer. */ public static final class MeasurementProducerStub extends io.grpc.stub.AbstractAsyncStub { private MeasurementProducerStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MeasurementProducerStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MeasurementProducerStub(channel, callOptions); } /** *
     * Package: IEC-61970 Base/Meas
     * 
*/ public void createAccumulatorValue(com.zepben.protobuf.mp.CreateAccumulatorValueRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateAccumulatorValueMethod(), getCallOptions()), request, responseObserver); } /** */ public void createAnalogValue(com.zepben.protobuf.mp.CreateAnalogValueRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateAnalogValueMethod(), getCallOptions()), request, responseObserver); } /** */ public void createDiscreteValue(com.zepben.protobuf.mp.CreateDiscreteValueRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateDiscreteValueMethod(), getCallOptions()), request, responseObserver); } /** */ public void createAccumulatorValues(com.zepben.protobuf.mp.CreateAccumulatorValuesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateAccumulatorValuesMethod(), getCallOptions()), request, responseObserver); } /** */ public void createAnalogValues(com.zepben.protobuf.mp.CreateAnalogValuesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateAnalogValuesMethod(), getCallOptions()), request, responseObserver); } /** */ public void createDiscreteValues(com.zepben.protobuf.mp.CreateDiscreteValuesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateDiscreteValuesMethod(), getCallOptions()), request, responseObserver); } /** */ public io.grpc.stub.StreamObserver createMeasurementValues( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getCreateMeasurementValuesMethod(), getCallOptions()), responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service MeasurementProducer. */ public static final class MeasurementProducerBlockingStub extends io.grpc.stub.AbstractBlockingStub { private MeasurementProducerBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MeasurementProducerBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MeasurementProducerBlockingStub(channel, callOptions); } /** *
     * Package: IEC-61970 Base/Meas
     * 
*/ public com.zepben.protobuf.mp.CreateAccumulatorValueResponse createAccumulatorValue(com.zepben.protobuf.mp.CreateAccumulatorValueRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateAccumulatorValueMethod(), getCallOptions(), request); } /** */ public com.zepben.protobuf.mp.CreateAnalogValueResponse createAnalogValue(com.zepben.protobuf.mp.CreateAnalogValueRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateAnalogValueMethod(), getCallOptions(), request); } /** */ public com.zepben.protobuf.mp.CreateDiscreteValueResponse createDiscreteValue(com.zepben.protobuf.mp.CreateDiscreteValueRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateDiscreteValueMethod(), getCallOptions(), request); } /** */ public com.zepben.protobuf.mp.CreateAccumulatorValuesResponse createAccumulatorValues(com.zepben.protobuf.mp.CreateAccumulatorValuesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateAccumulatorValuesMethod(), getCallOptions(), request); } /** */ public com.zepben.protobuf.mp.CreateAnalogValuesResponse createAnalogValues(com.zepben.protobuf.mp.CreateAnalogValuesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateAnalogValuesMethod(), getCallOptions(), request); } /** */ public com.zepben.protobuf.mp.CreateDiscreteValuesResponse createDiscreteValues(com.zepben.protobuf.mp.CreateDiscreteValuesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateDiscreteValuesMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service MeasurementProducer. */ public static final class MeasurementProducerFutureStub extends io.grpc.stub.AbstractFutureStub { private MeasurementProducerFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MeasurementProducerFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MeasurementProducerFutureStub(channel, callOptions); } /** *
     * Package: IEC-61970 Base/Meas
     * 
*/ public com.google.common.util.concurrent.ListenableFuture createAccumulatorValue( com.zepben.protobuf.mp.CreateAccumulatorValueRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateAccumulatorValueMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture createAnalogValue( com.zepben.protobuf.mp.CreateAnalogValueRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateAnalogValueMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture createDiscreteValue( com.zepben.protobuf.mp.CreateDiscreteValueRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateDiscreteValueMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture createAccumulatorValues( com.zepben.protobuf.mp.CreateAccumulatorValuesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateAccumulatorValuesMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture createAnalogValues( com.zepben.protobuf.mp.CreateAnalogValuesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateAnalogValuesMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture createDiscreteValues( com.zepben.protobuf.mp.CreateDiscreteValuesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateDiscreteValuesMethod(), getCallOptions()), request); } } private static final int METHODID_CREATE_ACCUMULATOR_VALUE = 0; private static final int METHODID_CREATE_ANALOG_VALUE = 1; private static final int METHODID_CREATE_DISCRETE_VALUE = 2; private static final int METHODID_CREATE_ACCUMULATOR_VALUES = 3; private static final int METHODID_CREATE_ANALOG_VALUES = 4; private static final int METHODID_CREATE_DISCRETE_VALUES = 5; private static final int METHODID_CREATE_MEASUREMENT_VALUES = 6; 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_CREATE_ACCUMULATOR_VALUE: serviceImpl.createAccumulatorValue((com.zepben.protobuf.mp.CreateAccumulatorValueRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_ANALOG_VALUE: serviceImpl.createAnalogValue((com.zepben.protobuf.mp.CreateAnalogValueRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_DISCRETE_VALUE: serviceImpl.createDiscreteValue((com.zepben.protobuf.mp.CreateDiscreteValueRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_ACCUMULATOR_VALUES: serviceImpl.createAccumulatorValues((com.zepben.protobuf.mp.CreateAccumulatorValuesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_ANALOG_VALUES: serviceImpl.createAnalogValues((com.zepben.protobuf.mp.CreateAnalogValuesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_DISCRETE_VALUES: serviceImpl.createDiscreteValues((com.zepben.protobuf.mp.CreateDiscreteValuesRequest) 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_CREATE_MEASUREMENT_VALUES: return (io.grpc.stub.StreamObserver) serviceImpl.createMeasurementValues( (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( getCreateAccumulatorValueMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.zepben.protobuf.mp.CreateAccumulatorValueRequest, com.zepben.protobuf.mp.CreateAccumulatorValueResponse>( service, METHODID_CREATE_ACCUMULATOR_VALUE))) .addMethod( getCreateAnalogValueMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.zepben.protobuf.mp.CreateAnalogValueRequest, com.zepben.protobuf.mp.CreateAnalogValueResponse>( service, METHODID_CREATE_ANALOG_VALUE))) .addMethod( getCreateDiscreteValueMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.zepben.protobuf.mp.CreateDiscreteValueRequest, com.zepben.protobuf.mp.CreateDiscreteValueResponse>( service, METHODID_CREATE_DISCRETE_VALUE))) .addMethod( getCreateAccumulatorValuesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.zepben.protobuf.mp.CreateAccumulatorValuesRequest, com.zepben.protobuf.mp.CreateAccumulatorValuesResponse>( service, METHODID_CREATE_ACCUMULATOR_VALUES))) .addMethod( getCreateAnalogValuesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.zepben.protobuf.mp.CreateAnalogValuesRequest, com.zepben.protobuf.mp.CreateAnalogValuesResponse>( service, METHODID_CREATE_ANALOG_VALUES))) .addMethod( getCreateDiscreteValuesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.zepben.protobuf.mp.CreateDiscreteValuesRequest, com.zepben.protobuf.mp.CreateDiscreteValuesResponse>( service, METHODID_CREATE_DISCRETE_VALUES))) .addMethod( getCreateMeasurementValuesMethod(), io.grpc.stub.ServerCalls.asyncBidiStreamingCall( new MethodHandlers< com.zepben.protobuf.mp.CreateMeasurementValuesRequest, com.zepben.protobuf.mp.CreateMeasurementValuesResponse>( service, METHODID_CREATE_MEASUREMENT_VALUES))) .build(); } private static abstract class MeasurementProducerBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { MeasurementProducerBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.zepben.protobuf.mp.Mp.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("MeasurementProducer"); } } private static final class MeasurementProducerFileDescriptorSupplier extends MeasurementProducerBaseDescriptorSupplier { MeasurementProducerFileDescriptorSupplier() {} } private static final class MeasurementProducerMethodDescriptorSupplier extends MeasurementProducerBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; MeasurementProducerMethodDescriptorSupplier(java.lang.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 (MeasurementProducerGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new MeasurementProducerFileDescriptorSupplier()) .addMethod(getCreateAccumulatorValueMethod()) .addMethod(getCreateAnalogValueMethod()) .addMethod(getCreateDiscreteValueMethod()) .addMethod(getCreateAccumulatorValuesMethod()) .addMethod(getCreateAnalogValuesMethod()) .addMethod(getCreateDiscreteValuesMethod()) .addMethod(getCreateMeasurementValuesMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy