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 and configs between one Application
* instrumented with OpenCensus and an agent, or between an agent and a
* central collector or config service (in this case spans and configs are
* sent/received to/from multiple Applications).
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.22.1)",
comments = "Source: opencensus/proto/agent/trace/v1/trace_service.proto")
public final class TraceServiceGrpc {
private TraceServiceGrpc() {}
public static final String SERVICE_NAME = "opencensus.proto.agent.trace.v1.TraceService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getConfigMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Config",
requestType = io.opencensus.proto.agent.trace.v1.CurrentLibraryConfig.class,
responseType = io.opencensus.proto.agent.trace.v1.UpdatedLibraryConfig.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
public static io.grpc.MethodDescriptor getConfigMethod() {
io.grpc.MethodDescriptor getConfigMethod;
if ((getConfigMethod = TraceServiceGrpc.getConfigMethod) == null) {
synchronized (TraceServiceGrpc.class) {
if ((getConfigMethod = TraceServiceGrpc.getConfigMethod) == null) {
TraceServiceGrpc.getConfigMethod = getConfigMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(
"opencensus.proto.agent.trace.v1.TraceService", "Config"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.opencensus.proto.agent.trace.v1.CurrentLibraryConfig.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.opencensus.proto.agent.trace.v1.UpdatedLibraryConfig.getDefaultInstance()))
.setSchemaDescriptor(new TraceServiceMethodDescriptorSupplier("Config"))
.build();
}
}
}
return getConfigMethod;
}
private static volatile io.grpc.MethodDescriptor getExportMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Export",
requestType = io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest.class,
responseType = io.opencensus.proto.agent.trace.v1.ExportTraceServiceResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
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.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(
"opencensus.proto.agent.trace.v1.TraceService", "Export"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.opencensus.proto.agent.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) {
return new TraceServiceStub(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) {
return new TraceServiceBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static TraceServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
return new TraceServiceFutureStub(channel);
}
/**
*
* Service that can be used to push spans and configs between one Application
* instrumented with OpenCensus and an agent, or between an agent and a
* central collector or config service (in this case spans and configs are
* sent/received to/from multiple Applications).
*
*/
public static abstract class TraceServiceImplBase implements io.grpc.BindableService {
/**
*
* After initialization, this RPC must be kept alive for the entire life of
* the application. The agent pushes configs down to applications via a
* stream.
*
* For performance reasons, it is recommended to keep this RPC
* alive for the entire life of the application.
*
*/
public io.grpc.stub.StreamObserver export(
io.grpc.stub.StreamObserver responseObserver) {
return asyncUnimplementedStreamingCall(getExportMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getConfigMethod(),
asyncBidiStreamingCall(
new MethodHandlers<
io.opencensus.proto.agent.trace.v1.CurrentLibraryConfig,
io.opencensus.proto.agent.trace.v1.UpdatedLibraryConfig>(
this, METHODID_CONFIG)))
.addMethod(
getExportMethod(),
asyncBidiStreamingCall(
new MethodHandlers<
io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest,
io.opencensus.proto.agent.trace.v1.ExportTraceServiceResponse>(
this, METHODID_EXPORT)))
.build();
}
}
/**
*
* Service that can be used to push spans and configs between one Application
* instrumented with OpenCensus and an agent, or between an agent and a
* central collector or config service (in this case spans and configs are
* sent/received to/from multiple Applications).
*
*/
public static final class TraceServiceStub extends io.grpc.stub.AbstractStub {
private TraceServiceStub(io.grpc.Channel channel) {
super(channel);
}
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);
}
/**
*
* After initialization, this RPC must be kept alive for the entire life of
* the application. The agent pushes configs down to applications via a
* stream.
*
* Service that can be used to push spans and configs between one Application
* instrumented with OpenCensus and an agent, or between an agent and a
* central collector or config service (in this case spans and configs are
* sent/received to/from multiple Applications).
*
*/
public static final class TraceServiceBlockingStub extends io.grpc.stub.AbstractStub {
private TraceServiceBlockingStub(io.grpc.Channel channel) {
super(channel);
}
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 that can be used to push spans and configs between one Application
* instrumented with OpenCensus and an agent, or between an agent and a
* central collector or config service (in this case spans and configs are
* sent/received to/from multiple Applications).
*
*/
public static final class TraceServiceFutureStub extends io.grpc.stub.AbstractStub {
private TraceServiceFutureStub(io.grpc.Channel channel) {
super(channel);
}
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_CONFIG = 0;
private static final int METHODID_EXPORT = 1;
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_CONFIG:
return (io.grpc.stub.StreamObserver) serviceImpl.config(
(io.grpc.stub.StreamObserver) responseObserver);
case METHODID_EXPORT:
return (io.grpc.stub.StreamObserver) serviceImpl.export(
(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.opencensus.proto.agent.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(getConfigMethod())
.addMethod(getExportMethod())
.build();
}
}
}
return result;
}
}