
org.glowroot.wire.api.model.DownstreamServiceGrpc Maven / Gradle / Ivy
package org.glowroot.wire.api.model;
import static org.glowroot.agent.shaded.grpc.stub.ClientCalls.asyncUnaryCall;
import static org.glowroot.agent.shaded.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static org.glowroot.agent.shaded.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static org.glowroot.agent.shaded.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static org.glowroot.agent.shaded.grpc.stub.ClientCalls.blockingUnaryCall;
import static org.glowroot.agent.shaded.grpc.stub.ClientCalls.blockingServerStreamingCall;
import static org.glowroot.agent.shaded.grpc.stub.ClientCalls.futureUnaryCall;
import static org.glowroot.agent.shaded.grpc.MethodDescriptor.generateFullMethodName;
import static org.glowroot.agent.shaded.grpc.stub.ServerCalls.asyncUnaryCall;
import static org.glowroot.agent.shaded.grpc.stub.ServerCalls.asyncServerStreamingCall;
import static org.glowroot.agent.shaded.grpc.stub.ServerCalls.asyncClientStreamingCall;
import static org.glowroot.agent.shaded.grpc.stub.ServerCalls.asyncBidiStreamingCall;
@javax.annotation.Generated("by gRPC proto compiler")
public class DownstreamServiceGrpc {
private DownstreamServiceGrpc() {}
public static final String SERVICE_NAME = "org_glowroot_wire_api_model.DownstreamService";
// Static method descriptors that strictly reflect the proto.
@org.glowroot.agent.shaded.grpc.ExperimentalApi
public static final org.glowroot.agent.shaded.grpc.MethodDescriptor METHOD_CONNECT =
org.glowroot.agent.shaded.grpc.MethodDescriptor.create(
org.glowroot.agent.shaded.grpc.MethodDescriptor.MethodType.BIDI_STREAMING,
generateFullMethodName(
"org_glowroot_wire_api_model.DownstreamService", "connect"),
org.glowroot.agent.shaded.grpc.protobuf.ProtoUtils.marshaller(org.glowroot.wire.api.model.DownstreamServiceOuterClass.ClientResponse.getDefaultInstance()),
org.glowroot.agent.shaded.grpc.protobuf.ProtoUtils.marshaller(org.glowroot.wire.api.model.DownstreamServiceOuterClass.ServerRequest.getDefaultInstance()));
public static DownstreamServiceStub newStub(org.glowroot.agent.shaded.grpc.Channel channel) {
return new DownstreamServiceStub(channel);
}
public static DownstreamServiceBlockingStub newBlockingStub(
org.glowroot.agent.shaded.grpc.Channel channel) {
return new DownstreamServiceBlockingStub(channel);
}
public static DownstreamServiceFutureStub newFutureStub(
org.glowroot.agent.shaded.grpc.Channel channel) {
return new DownstreamServiceFutureStub(channel);
}
public static interface DownstreamService {
public org.glowroot.agent.shaded.grpc.stub.StreamObserver connect(
org.glowroot.agent.shaded.grpc.stub.StreamObserver responseObserver);
}
public static interface DownstreamServiceBlockingClient {
}
public static interface DownstreamServiceFutureClient {
}
public static class DownstreamServiceStub extends org.glowroot.agent.shaded.grpc.stub.AbstractStub
implements DownstreamService {
private DownstreamServiceStub(org.glowroot.agent.shaded.grpc.Channel channel) {
super(channel);
}
private DownstreamServiceStub(org.glowroot.agent.shaded.grpc.Channel channel,
org.glowroot.agent.shaded.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected DownstreamServiceStub build(org.glowroot.agent.shaded.grpc.Channel channel,
org.glowroot.agent.shaded.grpc.CallOptions callOptions) {
return new DownstreamServiceStub(channel, callOptions);
}
@java.lang.Override
public org.glowroot.agent.shaded.grpc.stub.StreamObserver connect(
org.glowroot.agent.shaded.grpc.stub.StreamObserver responseObserver) {
return asyncBidiStreamingCall(
getChannel().newCall(METHOD_CONNECT, getCallOptions()), responseObserver);
}
}
public static class DownstreamServiceBlockingStub extends org.glowroot.agent.shaded.grpc.stub.AbstractStub
implements DownstreamServiceBlockingClient {
private DownstreamServiceBlockingStub(org.glowroot.agent.shaded.grpc.Channel channel) {
super(channel);
}
private DownstreamServiceBlockingStub(org.glowroot.agent.shaded.grpc.Channel channel,
org.glowroot.agent.shaded.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected DownstreamServiceBlockingStub build(org.glowroot.agent.shaded.grpc.Channel channel,
org.glowroot.agent.shaded.grpc.CallOptions callOptions) {
return new DownstreamServiceBlockingStub(channel, callOptions);
}
}
public static class DownstreamServiceFutureStub extends org.glowroot.agent.shaded.grpc.stub.AbstractStub
implements DownstreamServiceFutureClient {
private DownstreamServiceFutureStub(org.glowroot.agent.shaded.grpc.Channel channel) {
super(channel);
}
private DownstreamServiceFutureStub(org.glowroot.agent.shaded.grpc.Channel channel,
org.glowroot.agent.shaded.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected DownstreamServiceFutureStub build(org.glowroot.agent.shaded.grpc.Channel channel,
org.glowroot.agent.shaded.grpc.CallOptions callOptions) {
return new DownstreamServiceFutureStub(channel, callOptions);
}
}
public static org.glowroot.agent.shaded.grpc.ServerServiceDefinition bindService(
final DownstreamService serviceImpl) {
return org.glowroot.agent.shaded.grpc.ServerServiceDefinition.builder(SERVICE_NAME)
.addMethod(
METHOD_CONNECT,
asyncBidiStreamingCall(
new org.glowroot.agent.shaded.grpc.stub.ServerCalls.BidiStreamingMethod<
org.glowroot.wire.api.model.DownstreamServiceOuterClass.ClientResponse,
org.glowroot.wire.api.model.DownstreamServiceOuterClass.ServerRequest>() {
@java.lang.Override
public org.glowroot.agent.shaded.grpc.stub.StreamObserver invoke(
org.glowroot.agent.shaded.grpc.stub.StreamObserver responseObserver) {
return serviceImpl.connect(responseObserver);
}
})).build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy