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