grpc
third_party
xds
test
build
xds/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
char
* methods[] = {
10
"xds.service.orca.v3.OpenRcaService.StreamCoreMetrics"
,
11
// Old name for backward compatibility.
12
// TODO(roth): Remove once all callers are updated to use the new name.
13
"udpa.service.orca.v1.OpenRcaService.StreamCoreMetrics"
,
14
};
15
16
for
(
const
char
*
method
: methods) {
17
if
(
google::protobuf::DescriptorPool::generated_pool
()->
FindMethodByName
(
method
) ==
nullptr
) {
18
std::cout <<
"Unable to find method descriptor for "
<<
method
<< std::endl;
19
exit(EXIT_FAILURE);
20
}
21
}
22
23
exit(EXIT_SUCCESS);
24
}
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
main
int main(int argc, char *argv[])
Definition:
xds/test/build/build_test.cc:8
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