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

io.envoyproxy.envoy.service.trace.v3.TraceServiceGrpc Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
package io.envoyproxy.envoy.service.trace.v3;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Service for streaming traces to server that consumes the trace data. It
 * uses OpenCensus data model as a standard to represent trace information.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.48.1)", comments = "Source: envoy/service/trace/v3/trace_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TraceServiceGrpc { private TraceServiceGrpc() {} public static final String SERVICE_NAME = "envoy.service.trace.v3.TraceService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getStreamTracesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "StreamTraces", requestType = io.envoyproxy.envoy.service.trace.v3.StreamTracesMessage.class, responseType = io.envoyproxy.envoy.service.trace.v3.StreamTracesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) public static io.grpc.MethodDescriptor getStreamTracesMethod() { io.grpc.MethodDescriptor getStreamTracesMethod; if ((getStreamTracesMethod = TraceServiceGrpc.getStreamTracesMethod) == null) { synchronized (TraceServiceGrpc.class) { if ((getStreamTracesMethod = TraceServiceGrpc.getStreamTracesMethod) == null) { TraceServiceGrpc.getStreamTracesMethod = getStreamTracesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamTraces")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.envoyproxy.envoy.service.trace.v3.StreamTracesMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.envoyproxy.envoy.service.trace.v3.StreamTracesResponse.getDefaultInstance())) .setSchemaDescriptor(new TraceServiceMethodDescriptorSupplier("StreamTraces")) .build(); } } } return getStreamTracesMethod; } /** * Creates a new async stub that supports all call types for the service */ public static TraceServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public TraceServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TraceServiceStub(channel, callOptions); } }; return TraceServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static TraceServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public TraceServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TraceServiceBlockingStub(channel, callOptions); } }; return TraceServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static TraceServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public TraceServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TraceServiceFutureStub(channel, callOptions); } }; return TraceServiceFutureStub.newStub(factory, channel); } /** *
   * Service for streaming traces to server that consumes the trace data. It
   * uses OpenCensus data model as a standard to represent trace information.
   * 
*/ public static abstract class TraceServiceImplBase implements io.grpc.BindableService { /** *
     * Envoy will connect and send StreamTracesMessage messages forever. It does
     * not expect any response to be sent as nothing would be done in the case
     * of failure.
     * 
*/ public io.grpc.stub.StreamObserver streamTraces( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamTracesMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getStreamTracesMethod(), io.grpc.stub.ServerCalls.asyncClientStreamingCall( new MethodHandlers< io.envoyproxy.envoy.service.trace.v3.StreamTracesMessage, io.envoyproxy.envoy.service.trace.v3.StreamTracesResponse>( this, METHODID_STREAM_TRACES))) .build(); } } /** *
   * Service for streaming traces to server that consumes the trace data. It
   * uses OpenCensus data model as a standard to represent trace information.
   * 
*/ public static final class TraceServiceStub extends io.grpc.stub.AbstractAsyncStub { private TraceServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected TraceServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TraceServiceStub(channel, callOptions); } /** *
     * Envoy will connect and send StreamTracesMessage messages forever. It does
     * not expect any response to be sent as nothing would be done in the case
     * of failure.
     * 
*/ public io.grpc.stub.StreamObserver streamTraces( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ClientCalls.asyncClientStreamingCall( getChannel().newCall(getStreamTracesMethod(), getCallOptions()), responseObserver); } } /** *
   * Service for streaming traces to server that consumes the trace data. It
   * uses OpenCensus data model as a standard to represent trace information.
   * 
*/ public static final class TraceServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private TraceServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected TraceServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TraceServiceBlockingStub(channel, callOptions); } } /** *
   * Service for streaming traces to server that consumes the trace data. It
   * uses OpenCensus data model as a standard to represent trace information.
   * 
*/ public static final class TraceServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private TraceServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected TraceServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TraceServiceFutureStub(channel, callOptions); } } private static final int METHODID_STREAM_TRACES = 0; 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 TraceServiceImplBase serviceImpl; private final int methodId; MethodHandlers(TraceServiceImplBase 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_TRACES: return (io.grpc.stub.StreamObserver) serviceImpl.streamTraces( (io.grpc.stub.StreamObserver) responseObserver); default: throw new AssertionError(); } } } private static abstract class TraceServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { TraceServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return io.envoyproxy.envoy.service.trace.v3.TraceServiceProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("TraceService"); } } private static final class TraceServiceFileDescriptorSupplier extends TraceServiceBaseDescriptorSupplier { TraceServiceFileDescriptorSupplier() {} } private static final class TraceServiceMethodDescriptorSupplier extends TraceServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; TraceServiceMethodDescriptorSupplier(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 (TraceServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new TraceServiceFileDescriptorSupplier()) .addMethod(getStreamTracesMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy