ads.proto 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. syntax = "proto3";
  2. package envoy.service.discovery.v2;
  3. import "envoy/api/v2/discovery.proto";
  4. import "udpa/annotations/status.proto";
  5. option java_package = "io.envoyproxy.envoy.service.discovery.v2";
  6. option java_outer_classname = "AdsProto";
  7. option java_multiple_files = true;
  8. option go_package = "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v2;discoveryv2";
  9. option java_generic_services = true;
  10. option (udpa.annotations.file_status).package_version_status = FROZEN;
  11. // [#protodoc-title: Aggregated Discovery Service (ADS)]
  12. // Discovery services for endpoints, clusters, routes,
  13. // and listeners are retained in the package `envoy.api.v2` for backwards
  14. // compatibility with existing management servers. New development in discovery
  15. // services should proceed in the package `envoy.service.discovery.v2`.
  16. // See https://github.com/envoyproxy/envoy-api#apis for a description of the role of
  17. // ADS and how it is intended to be used by a management server. ADS requests
  18. // have the same structure as their singleton xDS counterparts, but can
  19. // multiplex many resource types on a single stream. The type_url in the
  20. // DiscoveryRequest/DiscoveryResponse provides sufficient information to recover
  21. // the multiplexed singleton APIs at the Envoy instance and management server.
  22. service AggregatedDiscoveryService {
  23. // This is a gRPC-only API.
  24. rpc StreamAggregatedResources(stream api.v2.DiscoveryRequest)
  25. returns (stream api.v2.DiscoveryResponse) {
  26. }
  27. rpc DeltaAggregatedResources(stream api.v2.DeltaDiscoveryRequest)
  28. returns (stream api.v2.DeltaDiscoveryResponse) {
  29. }
  30. }
  31. // [#not-implemented-hide:] Not configuration. Workaround c++ protobuf issue with importing
  32. // services: https://github.com/google/protobuf/issues/4221
  33. message AdsDummy {
  34. }