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

io.envoyproxy.envoy.service.route.v3.VirtualHostDiscoveryServiceGrpc.scala Maven / Gradle / Ivy

There is a newer version: 1.23.0-dev-f04150-1
Show newest version
package io.envoyproxy.envoy.service.route.v3

object VirtualHostDiscoveryServiceGrpc {
  val METHOD_DELTA_VIRTUAL_HOSTS: _root_.io.grpc.MethodDescriptor[io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryRequest, io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse] =
    _root_.io.grpc.MethodDescriptor.newBuilder()
      .setType(_root_.io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
      .setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("envoy.service.route.v3.VirtualHostDiscoveryService", "DeltaVirtualHosts"))
      .setSampledToLocalTracing(true)
      .setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryRequest])
      .setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse])
      .setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(io.envoyproxy.envoy.service.route.v3.RdsProto.javaDescriptor.getServices().get(1).getMethods().get(0)))
      .build()
  
  val SERVICE: _root_.io.grpc.ServiceDescriptor =
    _root_.io.grpc.ServiceDescriptor.newBuilder("envoy.service.route.v3.VirtualHostDiscoveryService")
      .setSchemaDescriptor(new _root_.scalapb.grpc.ConcreteProtoFileDescriptorSupplier(io.envoyproxy.envoy.service.route.v3.RdsProto.javaDescriptor))
      .addMethod(METHOD_DELTA_VIRTUAL_HOSTS)
      .build()
  
  /** Virtual Host Discovery Service (VHDS) is used to dynamically update the list of virtual hosts for
    * a given RouteConfiguration. If VHDS is configured a virtual host list update will be triggered
    * during the processing of an HTTP request if a route for the request cannot be resolved. The
    * :ref:`resource_names_subscribe <envoy_v3_api_field_service.discovery.v3.DeltaDiscoveryRequest.resource_names_subscribe>`
    * field contains a list of virtual host names or aliases to track. The contents of an alias would
    * be the contents of a *host* or *authority* header used to make an http request. An xDS server
    * will match an alias to a virtual host based on the content of :ref:`domains'
    * <envoy_v3_api_field_config.route.v3.VirtualHost.domains>` field. The *resource_names_unsubscribe* field
    * contains a list of virtual host names that have been :ref:`unsubscribed
    * <xds_protocol_unsubscribe>` from the routing table associated with the RouteConfiguration.
    */
  trait VirtualHostDiscoveryService extends _root_.scalapb.grpc.AbstractService {
    override def serviceCompanion = VirtualHostDiscoveryService
    def deltaVirtualHosts(responseObserver: _root_.io.grpc.stub.StreamObserver[io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse]): _root_.io.grpc.stub.StreamObserver[io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryRequest]
  }
  
  object VirtualHostDiscoveryService extends _root_.scalapb.grpc.ServiceCompanion[VirtualHostDiscoveryService] {
    implicit def serviceCompanion: _root_.scalapb.grpc.ServiceCompanion[VirtualHostDiscoveryService] = this
    def javaDescriptor: _root_.com.google.protobuf.Descriptors.ServiceDescriptor = io.envoyproxy.envoy.service.route.v3.RdsProto.javaDescriptor.getServices().get(1)
    def scalaDescriptor: _root_.scalapb.descriptors.ServiceDescriptor = io.envoyproxy.envoy.service.route.v3.RdsProto.scalaDescriptor.services(1)
    def bindService(serviceImpl: VirtualHostDiscoveryService, executionContext: scala.concurrent.ExecutionContext): _root_.io.grpc.ServerServiceDefinition =
      _root_.io.grpc.ServerServiceDefinition.builder(SERVICE)
      .addMethod(
        METHOD_DELTA_VIRTUAL_HOSTS,
        _root_.io.grpc.stub.ServerCalls.asyncBidiStreamingCall(new _root_.io.grpc.stub.ServerCalls.BidiStreamingMethod[io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryRequest, io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse] {
          override def invoke(observer: _root_.io.grpc.stub.StreamObserver[io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse]): _root_.io.grpc.stub.StreamObserver[io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryRequest] =
            serviceImpl.deltaVirtualHosts(observer)
        }))
      .build()
  }
  
  /** Virtual Host Discovery Service (VHDS) is used to dynamically update the list of virtual hosts for
    * a given RouteConfiguration. If VHDS is configured a virtual host list update will be triggered
    * during the processing of an HTTP request if a route for the request cannot be resolved. The
    * :ref:`resource_names_subscribe <envoy_v3_api_field_service.discovery.v3.DeltaDiscoveryRequest.resource_names_subscribe>`
    * field contains a list of virtual host names or aliases to track. The contents of an alias would
    * be the contents of a *host* or *authority* header used to make an http request. An xDS server
    * will match an alias to a virtual host based on the content of :ref:`domains'
    * <envoy_v3_api_field_config.route.v3.VirtualHost.domains>` field. The *resource_names_unsubscribe* field
    * contains a list of virtual host names that have been :ref:`unsubscribed
    * <xds_protocol_unsubscribe>` from the routing table associated with the RouteConfiguration.
    */
  trait VirtualHostDiscoveryServiceBlockingClient {
    def serviceCompanion = VirtualHostDiscoveryService
  }
  
  class VirtualHostDiscoveryServiceBlockingStub(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions = _root_.io.grpc.CallOptions.DEFAULT) extends _root_.io.grpc.stub.AbstractStub[VirtualHostDiscoveryServiceBlockingStub](channel, options) with VirtualHostDiscoveryServiceBlockingClient {
    override def build(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions): VirtualHostDiscoveryServiceBlockingStub = new VirtualHostDiscoveryServiceBlockingStub(channel, options)
  }
  
  class VirtualHostDiscoveryServiceStub(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions = _root_.io.grpc.CallOptions.DEFAULT) extends _root_.io.grpc.stub.AbstractStub[VirtualHostDiscoveryServiceStub](channel, options) with VirtualHostDiscoveryService {
    override def deltaVirtualHosts(responseObserver: _root_.io.grpc.stub.StreamObserver[io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse]): _root_.io.grpc.stub.StreamObserver[io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryRequest] = {
      _root_.scalapb.grpc.ClientCalls.asyncBidiStreamingCall(channel, METHOD_DELTA_VIRTUAL_HOSTS, options, responseObserver)
    }
    
    override def build(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions): VirtualHostDiscoveryServiceStub = new VirtualHostDiscoveryServiceStub(channel, options)
  }
  
  def bindService(serviceImpl: VirtualHostDiscoveryService, executionContext: scala.concurrent.ExecutionContext): _root_.io.grpc.ServerServiceDefinition = VirtualHostDiscoveryService.bindService(serviceImpl, executionContext)
  
  def blockingStub(channel: _root_.io.grpc.Channel): VirtualHostDiscoveryServiceBlockingStub = new VirtualHostDiscoveryServiceBlockingStub(channel)
  
  def stub(channel: _root_.io.grpc.Channel): VirtualHostDiscoveryServiceStub = new VirtualHostDiscoveryServiceStub(channel)
  
  def javaDescriptor: _root_.com.google.protobuf.Descriptors.ServiceDescriptor = io.envoyproxy.envoy.service.route.v3.RdsProto.javaDescriptor.getServices().get(1)
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy