Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* Service that can be used to push spans between one Application instrumented with
* OpenTelemetry and a collector, or between a collector and a central collector (in this
* case spans are sent/received to/from multiple Applications).
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.48.1)",
comments = "Source: opentelemetry/proto/collector/trace/v1/trace_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class TraceServiceGrpc {
private TraceServiceGrpc() {}
public static final String SERVICE_NAME = "opentelemetry.proto.collector.trace.v1.TraceService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getExportMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Export",
requestType = io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.class,
responseType = io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getExportMethod() {
io.grpc.MethodDescriptor getExportMethod;
if ((getExportMethod = TraceServiceGrpc.getExportMethod) == null) {
synchronized (TraceServiceGrpc.class) {
if ((getExportMethod = TraceServiceGrpc.getExportMethod) == null) {
TraceServiceGrpc.getExportMethod = getExportMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Export"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.getDefaultInstance()))
.setSchemaDescriptor(new TraceServiceMethodDescriptorSupplier("Export"))
.build();
}
}
}
return getExportMethod;
}
/**
* 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 that can be used to push spans between one Application instrumented with
* OpenTelemetry and a collector, or between a collector and a central collector (in this
* case spans are sent/received to/from multiple Applications).
*
*/
public static abstract class TraceServiceImplBase implements io.grpc.BindableService {
/**
*
* For performance reasons, it is recommended to keep this RPC
* alive for the entire life of the application.
*
*/
public void export(io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getExportMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,
io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse>(
this, METHODID_EXPORT)))
.build();
}
}
/**
*
* Service that can be used to push spans between one Application instrumented with
* OpenTelemetry and a collector, or between a collector and a central collector (in this
* case spans are sent/received to/from multiple Applications).
*
*/
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);
}
/**
*
* For performance reasons, it is recommended to keep this RPC
* alive for the entire life of the application.
*
* Service that can be used to push spans between one Application instrumented with
* OpenTelemetry and a collector, or between a collector and a central collector (in this
* case spans are sent/received to/from multiple Applications).
*
*/
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);
}
/**
*
* For performance reasons, it is recommended to keep this RPC
* alive for the entire life of the application.
*
* Service that can be used to push spans between one Application instrumented with
* OpenTelemetry and a collector, or between a collector and a central collector (in this
* case spans are sent/received to/from multiple Applications).
*
*/
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);
}
/**
*
* For performance reasons, it is recommended to keep this RPC
* alive for the entire life of the application.
*
*/
public com.google.common.util.concurrent.ListenableFuture export(
io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getExportMethod(), getCallOptions()), request);
}
}
private static final int METHODID_EXPORT = 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) {
case METHODID_EXPORT:
serviceImpl.export((io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
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();
}
}
}
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.opentelemetry.proto.collector.trace.v1.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(getExportMethod())
.build();
}
}
}
return result;
}
}