xref: /aosp_15_r20/external/grpc-grpc-java/xds/third_party/envoy/src/main/proto/envoy/api/v2/cds.proto (revision e07d83d3ffcef9ecfc9f7f475418ec639ff0e5fe)
1syntax = "proto3";
2
3package envoy.api.v2;
4
5import "envoy/api/v2/discovery.proto";
6
7import "google/api/annotations.proto";
8
9import "envoy/annotations/resource.proto";
10import "udpa/annotations/migrate.proto";
11import "udpa/annotations/status.proto";
12
13import public "envoy/api/v2/cluster.proto";
14
15option java_package = "io.envoyproxy.envoy.api.v2";
16option java_outer_classname = "CdsProto";
17option java_multiple_files = true;
18option go_package = "github.com/envoyproxy/go-control-plane/envoy/api/v2;apiv2";
19option (udpa.annotations.file_migrate).move_to_package = "envoy.service.cluster.v3";
20option (udpa.annotations.file_status).package_version_status = FROZEN;
21
22// [#protodoc-title: CDS]
23
24// Return list of all clusters this proxy will load balance to.
25service ClusterDiscoveryService {
26  option (envoy.annotations.resource).type = "envoy.api.v2.Cluster";
27
28  rpc StreamClusters(stream DiscoveryRequest) returns (stream DiscoveryResponse) {
29  }
30
31  rpc DeltaClusters(stream DeltaDiscoveryRequest) returns (stream DeltaDiscoveryResponse) {
32  }
33
34  rpc FetchClusters(DiscoveryRequest) returns (DiscoveryResponse) {
35    option (google.api.http).post = "/v2/discovery:clusters";
36    option (google.api.http).body = "*";
37  }
38}
39
40// [#not-implemented-hide:] Not configuration. Workaround c++ protobuf issue with importing
41// services: https://github.com/google/protobuf/issues/4221 and protoxform to upgrade the file.
42message CdsDummy {
43}
44