io.opentelemetry.proto.collector.metrics.v1.MetricsServiceGrpc.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.metrics.v1
object MetricsServiceGrpc {
val METHOD_EXPORT: _root_.io.grpc.MethodDescriptor[io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest, io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("opentelemetry.proto.collector.metrics.v1.MetricsService", "Export"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(io.opentelemetry.proto.collector.metrics.v1.MetricsServiceProto.javaDescriptor.getServices().get(0).getMethods().get(0)))
.build()
val SERVICE: _root_.io.grpc.ServiceDescriptor =
_root_.io.grpc.ServiceDescriptor.newBuilder("opentelemetry.proto.collector.metrics.v1.MetricsService")
.setSchemaDescriptor(new _root_.scalapb.grpc.ConcreteProtoFileDescriptorSupplier(io.opentelemetry.proto.collector.metrics.v1.MetricsServiceProto.javaDescriptor))
.addMethod(METHOD_EXPORT)
.build()
/** Service that can be used to push metrics between one Application
* instrumented with OpenTelemetry and a collector, or between a collector and a
* central collector.
*/
trait MetricsService extends _root_.scalapb.grpc.AbstractService {
override def serviceCompanion = MetricsService
/** 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.metrics.v1.ExportMetricsServiceRequest): scala.concurrent.Future[io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse]
}
object MetricsService extends _root_.scalapb.grpc.ServiceCompanion[MetricsService] {
implicit def serviceCompanion: _root_.scalapb.grpc.ServiceCompanion[MetricsService] = this
def javaDescriptor: _root_.com.google.protobuf.Descriptors.ServiceDescriptor = io.opentelemetry.proto.collector.metrics.v1.MetricsServiceProto.javaDescriptor.getServices().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.ServiceDescriptor = io.opentelemetry.proto.collector.metrics.v1.MetricsServiceProto.scalaDescriptor.services(0)
def bindService(serviceImpl: MetricsService, 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.metrics.v1.ExportMetricsServiceRequest, io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse] {
override def invoke(request: io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest, observer: _root_.io.grpc.stub.StreamObserver[io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse]): _root_.scala.Unit =
serviceImpl.`export`(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
executionContext)
}))
.build()
}
/** Service that can be used to push metrics between one Application
* instrumented with OpenTelemetry and a collector, or between a collector and a
* central collector.
*/
trait MetricsServiceBlockingClient {
def serviceCompanion = MetricsService
/** 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.metrics.v1.ExportMetricsServiceRequest): io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse
}
class MetricsServiceBlockingStub(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions = _root_.io.grpc.CallOptions.DEFAULT) extends _root_.io.grpc.stub.AbstractStub[MetricsServiceBlockingStub](channel, options) with MetricsServiceBlockingClient {
/** 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.metrics.v1.ExportMetricsServiceRequest): io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse = {
_root_.scalapb.grpc.ClientCalls.blockingUnaryCall(channel, METHOD_EXPORT, options, request)
}
override def build(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions): MetricsServiceBlockingStub = new MetricsServiceBlockingStub(channel, options)
}
class MetricsServiceStub(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions = _root_.io.grpc.CallOptions.DEFAULT) extends _root_.io.grpc.stub.AbstractStub[MetricsServiceStub](channel, options) with MetricsService {
/** 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.metrics.v1.ExportMetricsServiceRequest): scala.concurrent.Future[io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse] = {
_root_.scalapb.grpc.ClientCalls.asyncUnaryCall(channel, METHOD_EXPORT, options, request)
}
override def build(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions): MetricsServiceStub = new MetricsServiceStub(channel, options)
}
def bindService(serviceImpl: MetricsService, executionContext: scala.concurrent.ExecutionContext): _root_.io.grpc.ServerServiceDefinition = MetricsService.bindService(serviceImpl, executionContext)
def blockingStub(channel: _root_.io.grpc.Channel): MetricsServiceBlockingStub = new MetricsServiceBlockingStub(channel)
def stub(channel: _root_.io.grpc.Channel): MetricsServiceStub = new MetricsServiceStub(channel)
def javaDescriptor: _root_.com.google.protobuf.Descriptors.ServiceDescriptor = io.opentelemetry.proto.collector.metrics.v1.MetricsServiceProto.javaDescriptor.getServices().get(0)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy