
org.glowroot.wire.api.model.DownstreamServiceGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glowroot-agent-it-harness Show documentation
Show all versions of glowroot-agent-it-harness Show documentation
Glowroot Agent Integration Test Harness
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);
}
}
private static final int METHODID_CONNECT = 0;
private static class MethodHandlers implements
org.glowroot.agent.shaded.grpc.stub.ServerCalls.UnaryMethod,
org.glowroot.agent.shaded.grpc.stub.ServerCalls.ServerStreamingMethod,
org.glowroot.agent.shaded.grpc.stub.ServerCalls.ClientStreamingMethod,
org.glowroot.agent.shaded.grpc.stub.ServerCalls.BidiStreamingMethod {
private final DownstreamService serviceImpl;
private final int methodId;
public MethodHandlers(DownstreamService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, org.glowroot.agent.shaded.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
@java.lang.SuppressWarnings("unchecked")
public org.glowroot.agent.shaded.grpc.stub.StreamObserver invoke(
org.glowroot.agent.shaded.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_CONNECT:
return (org.glowroot.agent.shaded.grpc.stub.StreamObserver) serviceImpl.connect(
(org.glowroot.agent.shaded.grpc.stub.StreamObserver) responseObserver);
default:
throw new AssertionError();
}
}
}
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 MethodHandlers<
org.glowroot.wire.api.model.DownstreamServiceOuterClass.ClientResponse,
org.glowroot.wire.api.model.DownstreamServiceOuterClass.ServerRequest>(
serviceImpl, METHODID_CONNECT)))
.build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy