io.opencensus.proto.agent.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.opencensus.proto.agent.metrics.v1
object MetricsServiceGrpc {
val METHOD_EXPORT: _root_.io.grpc.MethodDescriptor[io.opencensus.proto.agent.metrics.v1.ExportMetricsServiceRequest, io.opencensus.proto.agent.metrics.v1.ExportMetricsServiceResponse] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("opencensus.proto.agent.metrics.v1.MetricsService", "Export"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[io.opencensus.proto.agent.metrics.v1.ExportMetricsServiceRequest])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[io.opencensus.proto.agent.metrics.v1.ExportMetricsServiceResponse])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(io.opencensus.proto.agent.metrics.v1.MetricsServiceProto.javaDescriptor.getServices().get(0).getMethods().get(0)))
.build()
val SERVICE: _root_.io.grpc.ServiceDescriptor =
_root_.io.grpc.ServiceDescriptor.newBuilder("opencensus.proto.agent.metrics.v1.MetricsService")
.setSchemaDescriptor(new _root_.scalapb.grpc.ConcreteProtoFileDescriptorSupplier(io.opencensus.proto.agent.metrics.v1.MetricsServiceProto.javaDescriptor))
.addMethod(METHOD_EXPORT)
.build()
/** Service that can be used to push metrics between one Application
* instrumented with OpenCensus and an agent, or between an agent 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`(responseObserver: _root_.io.grpc.stub.StreamObserver[io.opencensus.proto.agent.metrics.v1.ExportMetricsServiceResponse]): _root_.io.grpc.stub.StreamObserver[io.opencensus.proto.agent.metrics.v1.ExportMetricsServiceRequest]
}
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.opencensus.proto.agent.metrics.v1.MetricsServiceProto.javaDescriptor.getServices().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.ServiceDescriptor = io.opencensus.proto.agent.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.asyncBidiStreamingCall(new _root_.io.grpc.stub.ServerCalls.BidiStreamingMethod[io.opencensus.proto.agent.metrics.v1.ExportMetricsServiceRequest, io.opencensus.proto.agent.metrics.v1.ExportMetricsServiceResponse] {
override def invoke(observer: _root_.io.grpc.stub.StreamObserver[io.opencensus.proto.agent.metrics.v1.ExportMetricsServiceResponse]): _root_.io.grpc.stub.StreamObserver[io.opencensus.proto.agent.metrics.v1.ExportMetricsServiceRequest] =
serviceImpl.`export`(observer)
}))
.build()
}
/** Service that can be used to push metrics between one Application
* instrumented with OpenCensus and an agent, or between an agent and a
* central collector.
*/
trait MetricsServiceBlockingClient {
def serviceCompanion = MetricsService
}
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 {
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`(responseObserver: _root_.io.grpc.stub.StreamObserver[io.opencensus.proto.agent.metrics.v1.ExportMetricsServiceResponse]): _root_.io.grpc.stub.StreamObserver[io.opencensus.proto.agent.metrics.v1.ExportMetricsServiceRequest] = {
_root_.scalapb.grpc.ClientCalls.asyncBidiStreamingCall(channel, METHOD_EXPORT, options, responseObserver)
}
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.opencensus.proto.agent.metrics.v1.MetricsServiceProto.javaDescriptor.getServices().get(0)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy