com.zepben.protobuf.wc.WeatherConsumerGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of evolve-grpc Show documentation
Show all versions of evolve-grpc Show documentation
Protobuf and gRPC definitions for the evolve platform
package com.zepben.protobuf.wc;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.59.1)",
comments = "Source: zepben/protobuf/wc/wc.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class WeatherConsumerGrpc {
private WeatherConsumerGrpc() {}
public static final java.lang.String SERVICE_NAME = "zepben.wc.WeatherConsumer";
// Static method descriptors that strictly reflect the proto.
/**
* Creates a new async stub that supports all call types for the service
*/
public static WeatherConsumerStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public WeatherConsumerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WeatherConsumerStub(channel, callOptions);
}
};
return WeatherConsumerStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static WeatherConsumerBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public WeatherConsumerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WeatherConsumerBlockingStub(channel, callOptions);
}
};
return WeatherConsumerBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static WeatherConsumerFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public WeatherConsumerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WeatherConsumerFutureStub(channel, callOptions);
}
};
return WeatherConsumerFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
}
/**
* Base class for the server implementation of the service WeatherConsumer.
*/
public static abstract class WeatherConsumerImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return WeatherConsumerGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service WeatherConsumer.
*/
public static final class WeatherConsumerStub
extends io.grpc.stub.AbstractAsyncStub {
private WeatherConsumerStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected WeatherConsumerStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WeatherConsumerStub(channel, callOptions);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service WeatherConsumer.
*/
public static final class WeatherConsumerBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private WeatherConsumerBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected WeatherConsumerBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WeatherConsumerBlockingStub(channel, callOptions);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service WeatherConsumer.
*/
public static final class WeatherConsumerFutureStub
extends io.grpc.stub.AbstractFutureStub {
private WeatherConsumerFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected WeatherConsumerFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WeatherConsumerFutureStub(channel, callOptions);
}
}
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) {
default:
throw new AssertionError();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.build();
}
private static abstract class WeatherConsumerBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
WeatherConsumerBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.zepben.protobuf.wc.Wc.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("WeatherConsumer");
}
}
private static final class WeatherConsumerFileDescriptorSupplier
extends WeatherConsumerBaseDescriptorSupplier {
WeatherConsumerFileDescriptorSupplier() {}
}
private static final class WeatherConsumerMethodDescriptorSupplier
extends WeatherConsumerBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
WeatherConsumerMethodDescriptorSupplier(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 (WeatherConsumerGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new WeatherConsumerFileDescriptorSupplier())
.build();
}
}
}
return result;
}
}