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

com.craxiom.networksurvey.messaging.WirelessSurveyGrpc Maven / Gradle / Ivy

The newest version!
package com.craxiom.networksurvey.messaging;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.65.1)",
    comments = "Source: craxiom/wireless_survey.proto")
@io.grpc.stub.annotations.GrpcGenerated
@java.lang.Deprecated
public final class WirelessSurveyGrpc {

  private WirelessSurveyGrpc() {}

  public static final java.lang.String SERVICE_NAME = "WirelessSurvey";

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

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "StreamGsmSurvey",
      requestType = com.craxiom.networksurvey.messaging.GsmRecord.class,
      responseType = com.craxiom.networksurvey.messaging.GsmSurveyResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
  public static io.grpc.MethodDescriptor getStreamGsmSurveyMethod() {
    io.grpc.MethodDescriptor getStreamGsmSurveyMethod;
    if ((getStreamGsmSurveyMethod = WirelessSurveyGrpc.getStreamGsmSurveyMethod) == null) {
      synchronized (WirelessSurveyGrpc.class) {
        if ((getStreamGsmSurveyMethod = WirelessSurveyGrpc.getStreamGsmSurveyMethod) == null) {
          WirelessSurveyGrpc.getStreamGsmSurveyMethod = getStreamGsmSurveyMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamGsmSurvey"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.craxiom.networksurvey.messaging.GsmRecord.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.craxiom.networksurvey.messaging.GsmSurveyResponse.getDefaultInstance()))
              .setSchemaDescriptor(new WirelessSurveyMethodDescriptorSupplier("StreamGsmSurvey"))
              .build();
        }
      }
    }
    return getStreamGsmSurveyMethod;
  }

  private static volatile io.grpc.MethodDescriptor getStreamCdmaSurveyMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "StreamCdmaSurvey",
      requestType = com.craxiom.networksurvey.messaging.CdmaRecord.class,
      responseType = com.craxiom.networksurvey.messaging.CdmaSurveyResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
  public static io.grpc.MethodDescriptor getStreamCdmaSurveyMethod() {
    io.grpc.MethodDescriptor getStreamCdmaSurveyMethod;
    if ((getStreamCdmaSurveyMethod = WirelessSurveyGrpc.getStreamCdmaSurveyMethod) == null) {
      synchronized (WirelessSurveyGrpc.class) {
        if ((getStreamCdmaSurveyMethod = WirelessSurveyGrpc.getStreamCdmaSurveyMethod) == null) {
          WirelessSurveyGrpc.getStreamCdmaSurveyMethod = getStreamCdmaSurveyMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamCdmaSurvey"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.craxiom.networksurvey.messaging.CdmaRecord.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.craxiom.networksurvey.messaging.CdmaSurveyResponse.getDefaultInstance()))
              .setSchemaDescriptor(new WirelessSurveyMethodDescriptorSupplier("StreamCdmaSurvey"))
              .build();
        }
      }
    }
    return getStreamCdmaSurveyMethod;
  }

  private static volatile io.grpc.MethodDescriptor getStreamUmtsSurveyMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "StreamUmtsSurvey",
      requestType = com.craxiom.networksurvey.messaging.UmtsRecord.class,
      responseType = com.craxiom.networksurvey.messaging.UmtsSurveyResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
  public static io.grpc.MethodDescriptor getStreamUmtsSurveyMethod() {
    io.grpc.MethodDescriptor getStreamUmtsSurveyMethod;
    if ((getStreamUmtsSurveyMethod = WirelessSurveyGrpc.getStreamUmtsSurveyMethod) == null) {
      synchronized (WirelessSurveyGrpc.class) {
        if ((getStreamUmtsSurveyMethod = WirelessSurveyGrpc.getStreamUmtsSurveyMethod) == null) {
          WirelessSurveyGrpc.getStreamUmtsSurveyMethod = getStreamUmtsSurveyMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamUmtsSurvey"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.craxiom.networksurvey.messaging.UmtsRecord.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.craxiom.networksurvey.messaging.UmtsSurveyResponse.getDefaultInstance()))
              .setSchemaDescriptor(new WirelessSurveyMethodDescriptorSupplier("StreamUmtsSurvey"))
              .build();
        }
      }
    }
    return getStreamUmtsSurveyMethod;
  }

  private static volatile io.grpc.MethodDescriptor getStreamLteSurveyMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "StreamLteSurvey",
      requestType = com.craxiom.networksurvey.messaging.LteRecord.class,
      responseType = com.craxiom.networksurvey.messaging.LteSurveyResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
  public static io.grpc.MethodDescriptor getStreamLteSurveyMethod() {
    io.grpc.MethodDescriptor getStreamLteSurveyMethod;
    if ((getStreamLteSurveyMethod = WirelessSurveyGrpc.getStreamLteSurveyMethod) == null) {
      synchronized (WirelessSurveyGrpc.class) {
        if ((getStreamLteSurveyMethod = WirelessSurveyGrpc.getStreamLteSurveyMethod) == null) {
          WirelessSurveyGrpc.getStreamLteSurveyMethod = getStreamLteSurveyMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamLteSurvey"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.craxiom.networksurvey.messaging.LteRecord.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.craxiom.networksurvey.messaging.LteSurveyResponse.getDefaultInstance()))
              .setSchemaDescriptor(new WirelessSurveyMethodDescriptorSupplier("StreamLteSurvey"))
              .build();
        }
      }
    }
    return getStreamLteSurveyMethod;
  }

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

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

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

  /**
   */
  @java.lang.Deprecated
  public interface AsyncService {

    /**
     */
    @java.lang.Deprecated
    default io.grpc.stub.StreamObserver streamGsmSurvey(
        io.grpc.stub.StreamObserver responseObserver) {
      return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamGsmSurveyMethod(), responseObserver);
    }

    /**
     */
    @java.lang.Deprecated
    default io.grpc.stub.StreamObserver streamCdmaSurvey(
        io.grpc.stub.StreamObserver responseObserver) {
      return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamCdmaSurveyMethod(), responseObserver);
    }

    /**
     */
    @java.lang.Deprecated
    default io.grpc.stub.StreamObserver streamUmtsSurvey(
        io.grpc.stub.StreamObserver responseObserver) {
      return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamUmtsSurveyMethod(), responseObserver);
    }

    /**
     */
    @java.lang.Deprecated
    default io.grpc.stub.StreamObserver streamLteSurvey(
        io.grpc.stub.StreamObserver responseObserver) {
      return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamLteSurveyMethod(), responseObserver);
    }
  }

  /**
   * Base class for the server implementation of the service WirelessSurvey.
   */
  @java.lang.Deprecated
  public static abstract class WirelessSurveyImplBase
      implements io.grpc.BindableService, AsyncService {

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

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

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

    /**
     */
    @java.lang.Deprecated
    public io.grpc.stub.StreamObserver streamGsmSurvey(
        io.grpc.stub.StreamObserver responseObserver) {
      return io.grpc.stub.ClientCalls.asyncClientStreamingCall(
          getChannel().newCall(getStreamGsmSurveyMethod(), getCallOptions()), responseObserver);
    }

    /**
     */
    @java.lang.Deprecated
    public io.grpc.stub.StreamObserver streamCdmaSurvey(
        io.grpc.stub.StreamObserver responseObserver) {
      return io.grpc.stub.ClientCalls.asyncClientStreamingCall(
          getChannel().newCall(getStreamCdmaSurveyMethod(), getCallOptions()), responseObserver);
    }

    /**
     */
    @java.lang.Deprecated
    public io.grpc.stub.StreamObserver streamUmtsSurvey(
        io.grpc.stub.StreamObserver responseObserver) {
      return io.grpc.stub.ClientCalls.asyncClientStreamingCall(
          getChannel().newCall(getStreamUmtsSurveyMethod(), getCallOptions()), responseObserver);
    }

    /**
     */
    @java.lang.Deprecated
    public io.grpc.stub.StreamObserver streamLteSurvey(
        io.grpc.stub.StreamObserver responseObserver) {
      return io.grpc.stub.ClientCalls.asyncClientStreamingCall(
          getChannel().newCall(getStreamLteSurveyMethod(), getCallOptions()), responseObserver);
    }
  }

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

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

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

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

  private static final int METHODID_STREAM_GSM_SURVEY = 0;
  private static final int METHODID_STREAM_CDMA_SURVEY = 1;
  private static final int METHODID_STREAM_UMTS_SURVEY = 2;
  private static final int METHODID_STREAM_LTE_SURVEY = 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 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) {
        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_STREAM_GSM_SURVEY:
          return (io.grpc.stub.StreamObserver) serviceImpl.streamGsmSurvey(
              (io.grpc.stub.StreamObserver) responseObserver);
        case METHODID_STREAM_CDMA_SURVEY:
          return (io.grpc.stub.StreamObserver) serviceImpl.streamCdmaSurvey(
              (io.grpc.stub.StreamObserver) responseObserver);
        case METHODID_STREAM_UMTS_SURVEY:
          return (io.grpc.stub.StreamObserver) serviceImpl.streamUmtsSurvey(
              (io.grpc.stub.StreamObserver) responseObserver);
        case METHODID_STREAM_LTE_SURVEY:
          return (io.grpc.stub.StreamObserver) serviceImpl.streamLteSurvey(
              (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(
          getStreamGsmSurveyMethod(),
          io.grpc.stub.ServerCalls.asyncClientStreamingCall(
            new MethodHandlers<
              com.craxiom.networksurvey.messaging.GsmRecord,
              com.craxiom.networksurvey.messaging.GsmSurveyResponse>(
                service, METHODID_STREAM_GSM_SURVEY)))
        .addMethod(
          getStreamCdmaSurveyMethod(),
          io.grpc.stub.ServerCalls.asyncClientStreamingCall(
            new MethodHandlers<
              com.craxiom.networksurvey.messaging.CdmaRecord,
              com.craxiom.networksurvey.messaging.CdmaSurveyResponse>(
                service, METHODID_STREAM_CDMA_SURVEY)))
        .addMethod(
          getStreamUmtsSurveyMethod(),
          io.grpc.stub.ServerCalls.asyncClientStreamingCall(
            new MethodHandlers<
              com.craxiom.networksurvey.messaging.UmtsRecord,
              com.craxiom.networksurvey.messaging.UmtsSurveyResponse>(
                service, METHODID_STREAM_UMTS_SURVEY)))
        .addMethod(
          getStreamLteSurveyMethod(),
          io.grpc.stub.ServerCalls.asyncClientStreamingCall(
            new MethodHandlers<
              com.craxiom.networksurvey.messaging.LteRecord,
              com.craxiom.networksurvey.messaging.LteSurveyResponse>(
                service, METHODID_STREAM_LTE_SURVEY)))
        .build();
  }

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

    @java.lang.Override
    public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
      return com.craxiom.networksurvey.messaging.WirelessSurveyOuterClass.getDescriptor();
    }

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

  private static final class WirelessSurveyFileDescriptorSupplier
      extends WirelessSurveyBaseDescriptorSupplier {
    WirelessSurveyFileDescriptorSupplier() {}
  }

  private static final class WirelessSurveyMethodDescriptorSupplier
      extends WirelessSurveyBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final java.lang.String methodName;

    WirelessSurveyMethodDescriptorSupplier(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 (WirelessSurveyGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new WirelessSurveyFileDescriptorSupplier())
              .addMethod(getStreamGsmSurveyMethod())
              .addMethod(getStreamCdmaSurveyMethod())
              .addMethod(getStreamUmtsSurveyMethod())
              .addMethod(getStreamLteSurveyMethod())
              .build();
        }
      }
    }
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy