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

io.envoyproxy.envoy.service.trace.v2.TraceService Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/service/trace/v2/trace_service.proto

package io.envoyproxy.envoy.service.trace.v2;

/**
 * 
 * Service for streaming traces to server that consumes the trace data. It
 * uses OpenCensus data model as a standard to represent trace information.
 * 
* * Protobuf service {@code envoy.service.trace.v2.TraceService} */ public abstract class TraceService implements com.google.protobuf.Service { protected TraceService() {} public interface Interface { /** *
     * 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.
     * 
* * rpc StreamTraces(stream .envoy.service.trace.v2.StreamTracesMessage) returns (.envoy.service.trace.v2.StreamTracesResponse); */ public abstract void streamTraces( com.google.protobuf.RpcController controller, io.envoyproxy.envoy.service.trace.v2.StreamTracesMessage request, com.google.protobuf.RpcCallback done); } public static com.google.protobuf.Service newReflectiveService( final Interface impl) { return new TraceService() { @java.lang.Override public void streamTraces( com.google.protobuf.RpcController controller, io.envoyproxy.envoy.service.trace.v2.StreamTracesMessage request, com.google.protobuf.RpcCallback done) { impl.streamTraces(controller, request, done); } }; } public static com.google.protobuf.BlockingService newReflectiveBlockingService(final BlockingInterface impl) { return new com.google.protobuf.BlockingService() { public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final com.google.protobuf.Message callBlockingMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request) throws com.google.protobuf.ServiceException { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callBlockingMethod() given method descriptor for " + "wrong service type."); } switch(method.getIndex()) { case 0: return impl.streamTraces(controller, (io.envoyproxy.envoy.service.trace.v2.StreamTracesMessage)request); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return io.envoyproxy.envoy.service.trace.v2.StreamTracesMessage.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return io.envoyproxy.envoy.service.trace.v2.StreamTracesResponse.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } }; } /** *
   * 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.
   * 
* * rpc StreamTraces(stream .envoy.service.trace.v2.StreamTracesMessage) returns (.envoy.service.trace.v2.StreamTracesResponse); */ public abstract void streamTraces( com.google.protobuf.RpcController controller, io.envoyproxy.envoy.service.trace.v2.StreamTracesMessage request, com.google.protobuf.RpcCallback done); public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor() { return io.envoyproxy.envoy.service.trace.v2.TraceServiceProto.getDescriptor().getServices().get(0); } public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final void callMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request, com.google.protobuf.RpcCallback< com.google.protobuf.Message> done) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callMethod() given method descriptor for wrong " + "service type."); } switch(method.getIndex()) { case 0: this.streamTraces(controller, (io.envoyproxy.envoy.service.trace.v2.StreamTracesMessage)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return io.envoyproxy.envoy.service.trace.v2.StreamTracesMessage.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return io.envoyproxy.envoy.service.trace.v2.StreamTracesResponse.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public static Stub newStub( com.google.protobuf.RpcChannel channel) { return new Stub(channel); } public static final class Stub extends io.envoyproxy.envoy.service.trace.v2.TraceService implements Interface { private Stub(com.google.protobuf.RpcChannel channel) { this.channel = channel; } private final com.google.protobuf.RpcChannel channel; public com.google.protobuf.RpcChannel getChannel() { return channel; } public void streamTraces( com.google.protobuf.RpcController controller, io.envoyproxy.envoy.service.trace.v2.StreamTracesMessage request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(0), controller, request, io.envoyproxy.envoy.service.trace.v2.StreamTracesResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, io.envoyproxy.envoy.service.trace.v2.StreamTracesResponse.class, io.envoyproxy.envoy.service.trace.v2.StreamTracesResponse.getDefaultInstance())); } } public static BlockingInterface newBlockingStub( com.google.protobuf.BlockingRpcChannel channel) { return new BlockingStub(channel); } public interface BlockingInterface { public io.envoyproxy.envoy.service.trace.v2.StreamTracesResponse streamTraces( com.google.protobuf.RpcController controller, io.envoyproxy.envoy.service.trace.v2.StreamTracesMessage request) throws com.google.protobuf.ServiceException; } private static final class BlockingStub implements BlockingInterface { private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { this.channel = channel; } private final com.google.protobuf.BlockingRpcChannel channel; public io.envoyproxy.envoy.service.trace.v2.StreamTracesResponse streamTraces( com.google.protobuf.RpcController controller, io.envoyproxy.envoy.service.trace.v2.StreamTracesMessage request) throws com.google.protobuf.ServiceException { return (io.envoyproxy.envoy.service.trace.v2.StreamTracesResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(0), controller, request, io.envoyproxy.envoy.service.trace.v2.StreamTracesResponse.getDefaultInstance()); } } // @@protoc_insertion_point(class_scope:envoy.service.trace.v2.TraceService) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy