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

io.opentelemetry.proto.collector.logs.v1.LogsServiceGrpc Maven / Gradle / Ivy

package io.opentelemetry.proto.collector.logs.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Service that can be used to push logs between one Application instrumented with
 * OpenTelemetry and an collector, or between an collector and a central collector (in this
 * case logs are sent/received to/from multiple Applications).
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.45.1)", comments = "Source: opentelemetry/proto/collector/logs/v1/logs_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LogsServiceGrpc { private LogsServiceGrpc() {} public static final String SERVICE_NAME = "opentelemetry.proto.collector.logs.v1.LogsService"; // 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.logs.v1.ExportLogsServiceRequest.class, responseType = io.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getExportMethod() { io.grpc.MethodDescriptor getExportMethod; if ((getExportMethod = LogsServiceGrpc.getExportMethod) == null) { synchronized (LogsServiceGrpc.class) { if ((getExportMethod = LogsServiceGrpc.getExportMethod) == null) { LogsServiceGrpc.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.logs.v1.ExportLogsServiceRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.getDefaultInstance())) .setSchemaDescriptor(new LogsServiceMethodDescriptorSupplier("Export")) .build(); } } } return getExportMethod; } /** * Creates a new async stub that supports all call types for the service */ public static LogsServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public LogsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LogsServiceStub(channel, callOptions); } }; return LogsServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static LogsServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public LogsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LogsServiceBlockingStub(channel, callOptions); } }; return LogsServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static LogsServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public LogsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LogsServiceFutureStub(channel, callOptions); } }; return LogsServiceFutureStub.newStub(factory, channel); } /** *
   * Service that can be used to push logs between one Application instrumented with
   * OpenTelemetry and an collector, or between an collector and a central collector (in this
   * case logs are sent/received to/from multiple Applications).
   * 
*/ public static abstract class LogsServiceImplBase 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.logs.v1.ExportLogsServiceRequest 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.logs.v1.ExportLogsServiceRequest, io.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse>( this, METHODID_EXPORT))) .build(); } } /** *
   * Service that can be used to push logs between one Application instrumented with
   * OpenTelemetry and an collector, or between an collector and a central collector (in this
   * case logs are sent/received to/from multiple Applications).
   * 
*/ public static final class LogsServiceStub extends io.grpc.stub.AbstractAsyncStub { private LogsServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected LogsServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LogsServiceStub(channel, callOptions); } /** *
     * 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.logs.v1.ExportLogsServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExportMethod(), getCallOptions()), request, responseObserver); } } /** *
   * Service that can be used to push logs between one Application instrumented with
   * OpenTelemetry and an collector, or between an collector and a central collector (in this
   * case logs are sent/received to/from multiple Applications).
   * 
*/ public static final class LogsServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private LogsServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected LogsServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LogsServiceBlockingStub(channel, callOptions); } /** *
     * For performance reasons, it is recommended to keep this RPC
     * alive for the entire life of the application.
     * 
*/ public io.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse export(io.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExportMethod(), getCallOptions(), request); } } /** *
   * Service that can be used to push logs between one Application instrumented with
   * OpenTelemetry and an collector, or between an collector and a central collector (in this
   * case logs are sent/received to/from multiple Applications).
   * 
*/ public static final class LogsServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private LogsServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected LogsServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LogsServiceFutureStub(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.logs.v1.ExportLogsServiceRequest 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 LogsServiceImplBase serviceImpl; private final int methodId; MethodHandlers(LogsServiceImplBase 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.logs.v1.ExportLogsServiceRequest) 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 LogsServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { LogsServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return io.opentelemetry.proto.collector.logs.v1.LogsServiceProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("LogsService"); } } private static final class LogsServiceFileDescriptorSupplier extends LogsServiceBaseDescriptorSupplier { LogsServiceFileDescriptorSupplier() {} } private static final class LogsServiceMethodDescriptorSupplier extends LogsServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; LogsServiceMethodDescriptorSupplier(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 (LogsServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new LogsServiceFileDescriptorSupplier()) .addMethod(getExportMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy