grpc
third_party
envoy-api
test
build
envoy-api/test/build/build_test.cc
Go to the documentation of this file.
1
// NOLINT(namespace-envoy)
2
#include <cstdlib>
3
#include <iostream>
4
5
#include "google/protobuf/descriptor.h"
6
7
// Basic C++ build/link validation for the v2 xDS APIs.
8
int
main
(
int
argc,
char
* argv[]) {
9
const
auto
methods = {
10
"envoy.api.v2.ClusterDiscoveryService.FetchClusters"
,
11
"envoy.api.v2.ClusterDiscoveryService.StreamClusters"
,
12
"envoy.api.v2.EndpointDiscoveryService.FetchEndpoints"
,
13
"envoy.api.v2.EndpointDiscoveryService.StreamEndpoints"
,
14
"envoy.api.v2.ListenerDiscoveryService.FetchListeners"
,
15
"envoy.api.v2.ListenerDiscoveryService.StreamListeners"
,
16
"envoy.api.v2.RouteDiscoveryService.FetchRoutes"
,
17
"envoy.api.v2.RouteDiscoveryService.StreamRoutes"
,
18
"envoy.service.discovery.v2.AggregatedDiscoveryService.StreamAggregatedResources"
,
19
"envoy.service.discovery.v2.HealthDiscoveryService.FetchHealthCheck"
,
20
"envoy.service.discovery.v2.HealthDiscoveryService.StreamHealthCheck"
,
21
"envoy.service.discovery.v2.RuntimeDiscoveryService.FetchRuntime"
,
22
"envoy.service.discovery.v2.RuntimeDiscoveryService.StreamRuntime"
,
23
"envoy.service.accesslog.v2.AccessLogService.StreamAccessLogs"
,
24
"envoy.service.metrics.v2.MetricsService.StreamMetrics"
,
25
"envoy.service.ratelimit.v2.RateLimitService.ShouldRateLimit"
,
26
"udpa.service.orca.v1.OpenRcaService.StreamCoreMetrics"
,
27
};
28
29
for
(
const
auto
&
method
: methods) {
30
if
(
google::protobuf::DescriptorPool::generated_pool
()->
FindMethodByName
(
method
) ==
nullptr
) {
31
std::cout <<
"Unable to find method descriptor for "
<<
method
<< std::endl;
32
exit(EXIT_FAILURE);
33
}
34
}
35
36
exit(EXIT_SUCCESS);
37
}
main
int main(int argc, char *argv[])
Definition:
envoy-api/test/build/build_test.cc:8
google::protobuf::python::service_descriptor::FindMethodByName
static PyObject * FindMethodByName(PyBaseDescriptor *self, PyObject *arg)
Definition:
bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor.cc:1685
google::protobuf::DescriptorPool::generated_pool
static const DescriptorPool * generated_pool()
Definition:
bloaty/third_party/protobuf/src/google/protobuf/descriptor.cc:1326
method
NSString * method
Definition:
ProtoMethod.h:28
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:51