Go to the documentation of this file.
18 #ifndef GRPC_TEST_CPP_PROTO_SERVER_REFLECTION_DATABSE_H
19 #define GRPC_TEST_CPP_PROTO_SERVER_REFLECTION_DATABSE_H
22 #include <unordered_map>
23 #include <unordered_set>
29 #include "src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h"
39 std::unique_ptr<reflection::v1alpha::ServerReflection::Stub>
stub);
42 const std::shared_ptr<grpc::Channel>&
channel);
75 std::vector<int>*
output)
override;
82 grpc::reflection::v1alpha::ServerReflectionRequest,
83 grpc::reflection::v1alpha::ServerReflectionResponse>
90 const grpc::reflection::v1alpha::FileDescriptorResponse&
response);
92 std::shared_ptr<ClientStream>
GetStream();
95 const grpc::reflection::v1alpha::ServerReflectionRequest&
request,
96 grpc::reflection::v1alpha::ServerReflectionResponse&
response);
100 std::unique_ptr<grpc::reflection::v1alpha::ServerReflection::Stub>
stub_;
112 #endif // GRPC_TEST_CPP_METRICS_SERVER_H
bool FindFileContainingExtension(const string &containing_type, int field_number, protobuf::FileDescriptorProto *output) override
std::unique_ptr< grpc::reflection::v1alpha::ServerReflection::Stub > stub_
~ProtoReflectionDescriptorDatabase() override
ClientReaderWriter< grpc::reflection::v1alpha::ServerReflectionRequest, grpc::reflection::v1alpha::ServerReflectionResponse > ClientStream
ProtoReflectionDescriptorDatabase(std::unique_ptr< reflection::v1alpha::ServerReflection::Stub > stub)
bool DoOneRequest(const grpc::reflection::v1alpha::ServerReflectionRequest &request, grpc::reflection::v1alpha::ServerReflectionResponse &response)
wrapped_grpc_channel * channel
std::unordered_map< string, std::unordered_set< int > > missing_extensions_
std::shared_ptr< ClientStream > stream_
bool FindFileContainingSymbol(const string &symbol_name, protobuf::FileDescriptorProto *output) override
void AddFileFromResponse(const grpc::reflection::v1alpha::FileDescriptorResponse &response)
std::unordered_map< string, std::vector< int > > cached_extension_numbers_
bool FindAllExtensionNumbers(const string &extendee_type, std::vector< int > *output) override
bool GetServices(std::vector< std::string > *output)
std::unordered_set< string > known_files_
GRPC_CUSTOM_FILEDESCRIPTORPROTO FileDescriptorProto
protobuf::FileDescriptorProto ParseFileDescriptorProtoResponse(const std::string &byte_fd_proto)
std::unordered_set< string > missing_symbols_
protobuf::SimpleDescriptorDatabase cached_db_
std::shared_ptr< ClientStream > GetStream()
bool FindFileByName(const string &filename, protobuf::FileDescriptorProto *output) override
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:47