com.craxiom.networksurvey.messaging.NetworkSurveyStatusGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of network-survey-messaging Show documentation
Show all versions of network-survey-messaging Show documentation
Protobuf and gRPC stubs for sending Wireless Protocol Survey messages'
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/status.proto")
@io.grpc.stub.annotations.GrpcGenerated
@java.lang.Deprecated
public final class NetworkSurveyStatusGrpc {
private NetworkSurveyStatusGrpc() {}
public static final java.lang.String SERVICE_NAME = "NetworkSurveyStatus";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getStartConnectionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "StartConnection",
requestType = com.craxiom.networksurvey.messaging.ConnectionRequest.class,
responseType = com.craxiom.networksurvey.messaging.ConnectionReply.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getStartConnectionMethod() {
io.grpc.MethodDescriptor getStartConnectionMethod;
if ((getStartConnectionMethod = NetworkSurveyStatusGrpc.getStartConnectionMethod) == null) {
synchronized (NetworkSurveyStatusGrpc.class) {
if ((getStartConnectionMethod = NetworkSurveyStatusGrpc.getStartConnectionMethod) == null) {
NetworkSurveyStatusGrpc.getStartConnectionMethod = getStartConnectionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartConnection"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.craxiom.networksurvey.messaging.ConnectionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.craxiom.networksurvey.messaging.ConnectionReply.getDefaultInstance()))
.setSchemaDescriptor(new NetworkSurveyStatusMethodDescriptorSupplier("StartConnection"))
.build();
}
}
}
return getStartConnectionMethod;
}
private static volatile io.grpc.MethodDescriptor getStatusUpdateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "StatusUpdate",
requestType = com.craxiom.networksurvey.messaging.DeviceStatus.class,
responseType = com.craxiom.networksurvey.messaging.StatusUpdateReply.class,
methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
public static io.grpc.MethodDescriptor getStatusUpdateMethod() {
io.grpc.MethodDescriptor getStatusUpdateMethod;
if ((getStatusUpdateMethod = NetworkSurveyStatusGrpc.getStatusUpdateMethod) == null) {
synchronized (NetworkSurveyStatusGrpc.class) {
if ((getStatusUpdateMethod = NetworkSurveyStatusGrpc.getStatusUpdateMethod) == null) {
NetworkSurveyStatusGrpc.getStatusUpdateMethod = getStatusUpdateMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "StatusUpdate"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.craxiom.networksurvey.messaging.DeviceStatus.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.craxiom.networksurvey.messaging.StatusUpdateReply.getDefaultInstance()))
.setSchemaDescriptor(new NetworkSurveyStatusMethodDescriptorSupplier("StatusUpdate"))
.build();
}
}
}
return getStatusUpdateMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static NetworkSurveyStatusStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public NetworkSurveyStatusStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new NetworkSurveyStatusStub(channel, callOptions);
}
};
return NetworkSurveyStatusStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static NetworkSurveyStatusBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public NetworkSurveyStatusBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new NetworkSurveyStatusBlockingStub(channel, callOptions);
}
};
return NetworkSurveyStatusBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static NetworkSurveyStatusFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public NetworkSurveyStatusFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new NetworkSurveyStatusFutureStub(channel, callOptions);
}
};
return NetworkSurveyStatusFutureStub.newStub(factory, channel);
}
/**
*/
@java.lang.Deprecated
public interface AsyncService {
/**
*/
@java.lang.Deprecated
default void startConnection(com.craxiom.networksurvey.messaging.ConnectionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartConnectionMethod(), responseObserver);
}
/**
*/
@java.lang.Deprecated
default io.grpc.stub.StreamObserver statusUpdate(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStatusUpdateMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service NetworkSurveyStatus.
*/
@java.lang.Deprecated
public static abstract class NetworkSurveyStatusImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return NetworkSurveyStatusGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service NetworkSurveyStatus.
*/
@java.lang.Deprecated
public static final class NetworkSurveyStatusStub
extends io.grpc.stub.AbstractAsyncStub {
private NetworkSurveyStatusStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected NetworkSurveyStatusStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new NetworkSurveyStatusStub(channel, callOptions);
}
/**
*/
@java.lang.Deprecated
public void startConnection(com.craxiom.networksurvey.messaging.ConnectionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getStartConnectionMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
@java.lang.Deprecated
public io.grpc.stub.StreamObserver statusUpdate(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ClientCalls.asyncClientStreamingCall(
getChannel().newCall(getStatusUpdateMethod(), getCallOptions()), responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service NetworkSurveyStatus.
*/
@java.lang.Deprecated
public static final class NetworkSurveyStatusBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private NetworkSurveyStatusBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected NetworkSurveyStatusBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new NetworkSurveyStatusBlockingStub(channel, callOptions);
}
/**
*/
@java.lang.Deprecated
public com.craxiom.networksurvey.messaging.ConnectionReply startConnection(com.craxiom.networksurvey.messaging.ConnectionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getStartConnectionMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service NetworkSurveyStatus.
*/
@java.lang.Deprecated
public static final class NetworkSurveyStatusFutureStub
extends io.grpc.stub.AbstractFutureStub {
private NetworkSurveyStatusFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected NetworkSurveyStatusFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new NetworkSurveyStatusFutureStub(channel, callOptions);
}
/**
*/
@java.lang.Deprecated
public com.google.common.util.concurrent.ListenableFuture startConnection(
com.craxiom.networksurvey.messaging.ConnectionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getStartConnectionMethod(), getCallOptions()), request);
}
}
private static final int METHODID_START_CONNECTION = 0;
private static final int METHODID_STATUS_UPDATE = 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_START_CONNECTION:
serviceImpl.startConnection((com.craxiom.networksurvey.messaging.ConnectionRequest) 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_STATUS_UPDATE:
return (io.grpc.stub.StreamObserver) serviceImpl.statusUpdate(
(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(
getStartConnectionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.craxiom.networksurvey.messaging.ConnectionRequest,
com.craxiom.networksurvey.messaging.ConnectionReply>(
service, METHODID_START_CONNECTION)))
.addMethod(
getStatusUpdateMethod(),
io.grpc.stub.ServerCalls.asyncClientStreamingCall(
new MethodHandlers<
com.craxiom.networksurvey.messaging.DeviceStatus,
com.craxiom.networksurvey.messaging.StatusUpdateReply>(
service, METHODID_STATUS_UPDATE)))
.build();
}
private static abstract class NetworkSurveyStatusBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
NetworkSurveyStatusBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.craxiom.networksurvey.messaging.Status.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("NetworkSurveyStatus");
}
}
private static final class NetworkSurveyStatusFileDescriptorSupplier
extends NetworkSurveyStatusBaseDescriptorSupplier {
NetworkSurveyStatusFileDescriptorSupplier() {}
}
private static final class NetworkSurveyStatusMethodDescriptorSupplier
extends NetworkSurveyStatusBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
NetworkSurveyStatusMethodDescriptorSupplier(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 (NetworkSurveyStatusGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new NetworkSurveyStatusFileDescriptorSupplier())
.addMethod(getStartConnectionMethod())
.addMethod(getStatusUpdateMethod())
.build();
}
}
}
return result;
}
}