
io.opentelemetry.proto.collector.logs.v1.LogsServiceGrpc.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of envoy-scala-control-plane_2.13 Show documentation
Show all versions of envoy-scala-control-plane_2.13 Show documentation
ScalaPB generated bindings for Envoy
package io.opentelemetry.proto.collector.logs.v1
object LogsServiceGrpc {
val METHOD_EXPORT: _root_.io.grpc.MethodDescriptor[io.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest, io.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("opentelemetry.proto.collector.logs.v1.LogsService", "Export"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[io.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[io.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(io.opentelemetry.proto.collector.logs.v1.LogsServiceProto.javaDescriptor.getServices().get(0).getMethods().get(0)))
.build()
val SERVICE: _root_.io.grpc.ServiceDescriptor =
_root_.io.grpc.ServiceDescriptor.newBuilder("opentelemetry.proto.collector.logs.v1.LogsService")
.setSchemaDescriptor(new _root_.scalapb.grpc.ConcreteProtoFileDescriptorSupplier(io.opentelemetry.proto.collector.logs.v1.LogsServiceProto.javaDescriptor))
.addMethod(METHOD_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).
*/
trait LogsService extends _root_.scalapb.grpc.AbstractService {
override def serviceCompanion = LogsService
/** For performance reasons, it is recommended to keep this RPC
* alive for the entire life of the application.
*/
def `export`(request: io.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest): scala.concurrent.Future[io.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse]
}
object LogsService extends _root_.scalapb.grpc.ServiceCompanion[LogsService] {
implicit def serviceCompanion: _root_.scalapb.grpc.ServiceCompanion[LogsService] = this
def javaDescriptor: _root_.com.google.protobuf.Descriptors.ServiceDescriptor = io.opentelemetry.proto.collector.logs.v1.LogsServiceProto.javaDescriptor.getServices().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.ServiceDescriptor = io.opentelemetry.proto.collector.logs.v1.LogsServiceProto.scalaDescriptor.services(0)
def bindService(serviceImpl: LogsService, executionContext: scala.concurrent.ExecutionContext): _root_.io.grpc.ServerServiceDefinition =
_root_.io.grpc.ServerServiceDefinition.builder(SERVICE)
.addMethod(
METHOD_EXPORT,
_root_.io.grpc.stub.ServerCalls.asyncUnaryCall(new _root_.io.grpc.stub.ServerCalls.UnaryMethod[io.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest, io.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse] {
override def invoke(request: io.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest, observer: _root_.io.grpc.stub.StreamObserver[io.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse]): _root_.scala.Unit =
serviceImpl.`export`(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
executionContext)
}))
.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).
*/
trait LogsServiceBlockingClient {
def serviceCompanion = LogsService
/** For performance reasons, it is recommended to keep this RPC
* alive for the entire life of the application.
*/
def `export`(request: io.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest): io.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse
}
class LogsServiceBlockingStub(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions = _root_.io.grpc.CallOptions.DEFAULT) extends _root_.io.grpc.stub.AbstractStub[LogsServiceBlockingStub](channel, options) with LogsServiceBlockingClient {
/** For performance reasons, it is recommended to keep this RPC
* alive for the entire life of the application.
*/
override def `export`(request: io.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest): io.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse = {
_root_.scalapb.grpc.ClientCalls.blockingUnaryCall(channel, METHOD_EXPORT, options, request)
}
override def build(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions): LogsServiceBlockingStub = new LogsServiceBlockingStub(channel, options)
}
class LogsServiceStub(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions = _root_.io.grpc.CallOptions.DEFAULT) extends _root_.io.grpc.stub.AbstractStub[LogsServiceStub](channel, options) with LogsService {
/** For performance reasons, it is recommended to keep this RPC
* alive for the entire life of the application.
*/
override def `export`(request: io.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest): scala.concurrent.Future[io.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse] = {
_root_.scalapb.grpc.ClientCalls.asyncUnaryCall(channel, METHOD_EXPORT, options, request)
}
override def build(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions): LogsServiceStub = new LogsServiceStub(channel, options)
}
def bindService(serviceImpl: LogsService, executionContext: scala.concurrent.ExecutionContext): _root_.io.grpc.ServerServiceDefinition = LogsService.bindService(serviceImpl, executionContext)
def blockingStub(channel: _root_.io.grpc.Channel): LogsServiceBlockingStub = new LogsServiceBlockingStub(channel)
def stub(channel: _root_.io.grpc.Channel): LogsServiceStub = new LogsServiceStub(channel)
def javaDescriptor: _root_.com.google.protobuf.Descriptors.ServiceDescriptor = io.opentelemetry.proto.collector.logs.v1.LogsServiceProto.javaDescriptor.getServices().get(0)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy