Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
grpc::ProtoReflectionDescriptorDatabase Class Reference

#include <proto_reflection_descriptor_database.h>

Inheritance diagram for grpc::ProtoReflectionDescriptorDatabase:
Inheritance graph
[legend]

Public Member Functions

bool FindAllExtensionNumbers (const string &extendee_type, std::vector< int > *output) override
 
bool FindFileByName (const string &filename, protobuf::FileDescriptorProto *output) override
 
bool FindFileContainingExtension (const string &containing_type, int field_number, protobuf::FileDescriptorProto *output) override
 
bool FindFileContainingSymbol (const string &symbol_name, protobuf::FileDescriptorProto *output) override
 
bool GetServices (std::vector< std::string > *output)
 
 ProtoReflectionDescriptorDatabase (const std::shared_ptr< grpc::Channel > &channel)
 
 ProtoReflectionDescriptorDatabase (std::unique_ptr< reflection::v1alpha::ServerReflection::Stub > stub)
 
 ~ProtoReflectionDescriptorDatabase () override
 
- Public Member Functions inherited from google::protobuf::DescriptorDatabase
 DescriptorDatabase ()
 
 DescriptorDatabase ()
 
virtual bool FindAllExtensionNumbers (const std::string &, std::vector< int > *)
 
virtual bool FindAllExtensionNumbers (const std::string &, std::vector< int > *)
 
virtual bool FindAllFileNames (std::vector< std::string > *)
 
virtual bool FindAllFileNames (std::vector< std::string > *output)
 
bool FindAllMessageNames (std::vector< std::string > *output)
 
bool FindAllMessageNames (std::vector< std::string > *output)
 
bool FindAllPackageNames (std::vector< std::string > *output)
 
bool FindAllPackageNames (std::vector< std::string > *output)
 
virtual bool FindFileByName (const std::string &filename, FileDescriptorProto *output)=0
 
virtual bool FindFileByName (const std::string &filename, FileDescriptorProto *output)=0
 
virtual bool FindFileContainingExtension (const std::string &containing_type, int field_number, FileDescriptorProto *output)=0
 
virtual bool FindFileContainingExtension (const std::string &containing_type, int field_number, FileDescriptorProto *output)=0
 
virtual bool FindFileContainingSymbol (const std::string &symbol_name, FileDescriptorProto *output)=0
 
virtual bool FindFileContainingSymbol (const std::string &symbol_name, FileDescriptorProto *output)=0
 
virtual ~DescriptorDatabase ()
 
virtual ~DescriptorDatabase ()
 

Private Types

typedef ClientReaderWriter< grpc::reflection::v1alpha::ServerReflectionRequest, grpc::reflection::v1alpha::ServerReflectionResponse > ClientStream
 

Private Member Functions

void AddFileFromResponse (const grpc::reflection::v1alpha::FileDescriptorResponse &response)
 
bool DoOneRequest (const grpc::reflection::v1alpha::ServerReflectionRequest &request, grpc::reflection::v1alpha::ServerReflectionResponse &response)
 
std::shared_ptr< ClientStreamGetStream ()
 
protobuf::FileDescriptorProto ParseFileDescriptorProtoResponse (const std::string &byte_fd_proto)
 

Private Attributes

protobuf::SimpleDescriptorDatabase cached_db_
 
std::unordered_map< string, std::vector< int > > cached_extension_numbers_
 
grpc::ClientContext ctx_
 
std::unordered_set< string > known_files_
 
std::unordered_map< string, std::unordered_set< int > > missing_extensions_
 
std::unordered_set< string > missing_symbols_
 
std::shared_ptr< ClientStreamstream_
 
std::mutex stream_mutex_
 
std::unique_ptr< grpc::reflection::v1alpha::ServerReflection::Stub > stub_
 

Detailed Description

Definition at line 36 of file proto_reflection_descriptor_database.h.

Member Typedef Documentation

◆ ClientStream

typedef ClientReaderWriter< grpc::reflection::v1alpha::ServerReflectionRequest, grpc::reflection::v1alpha::ServerReflectionResponse> grpc::ProtoReflectionDescriptorDatabase::ClientStream
private

Definition at line 84 of file proto_reflection_descriptor_database.h.

Constructor & Destructor Documentation

◆ ProtoReflectionDescriptorDatabase() [1/2]

grpc::ProtoReflectionDescriptorDatabase::ProtoReflectionDescriptorDatabase ( std::unique_ptr< reflection::v1alpha::ServerReflection::Stub >  stub)
explicit

◆ ProtoReflectionDescriptorDatabase() [2/2]

grpc::ProtoReflectionDescriptorDatabase::ProtoReflectionDescriptorDatabase ( const std::shared_ptr< grpc::Channel > &  channel)
explicit

Definition at line 37 of file proto_reflection_descriptor_database.cc.

◆ ~ProtoReflectionDescriptorDatabase()

grpc::ProtoReflectionDescriptorDatabase::~ProtoReflectionDescriptorDatabase ( )
override

Definition at line 41 of file proto_reflection_descriptor_database.cc.

Member Function Documentation

◆ AddFileFromResponse()

void grpc::ProtoReflectionDescriptorDatabase::AddFileFromResponse ( const grpc::reflection::v1alpha::FileDescriptorResponse &  response)
private

Definition at line 301 of file proto_reflection_descriptor_database.cc.

◆ DoOneRequest()

bool grpc::ProtoReflectionDescriptorDatabase::DoOneRequest ( const grpc::reflection::v1alpha::ServerReflectionRequest &  request,
grpc::reflection::v1alpha::ServerReflectionResponse &  response 
)
private

Definition at line 321 of file proto_reflection_descriptor_database.cc.

◆ FindAllExtensionNumbers()

bool grpc::ProtoReflectionDescriptorDatabase::FindAllExtensionNumbers ( const string &  extendee_type,
std::vector< int > *  output 
)
override

Definition at line 219 of file proto_reflection_descriptor_database.cc.

◆ FindFileByName()

bool grpc::ProtoReflectionDescriptorDatabase::FindFileByName ( const string &  filename,
protobuf::FileDescriptorProto output 
)
override

Definition at line 62 of file proto_reflection_descriptor_database.cc.

◆ FindFileContainingExtension()

bool grpc::ProtoReflectionDescriptorDatabase::FindFileContainingExtension ( const string &  containing_type,
int  field_number,
protobuf::FileDescriptorProto output 
)
override

Definition at line 157 of file proto_reflection_descriptor_database.cc.

◆ FindFileContainingSymbol()

bool grpc::ProtoReflectionDescriptorDatabase::FindFileContainingSymbol ( const string &  symbol_name,
protobuf::FileDescriptorProto output 
)
override

Definition at line 109 of file proto_reflection_descriptor_database.cc.

◆ GetServices()

bool grpc::ProtoReflectionDescriptorDatabase::GetServices ( std::vector< std::string > *  output)

Definition at line 259 of file proto_reflection_descriptor_database.cc.

◆ GetStream()

std::shared_ptr< ProtoReflectionDescriptorDatabase::ClientStream > grpc::ProtoReflectionDescriptorDatabase::GetStream ( )
private

Definition at line 314 of file proto_reflection_descriptor_database.cc.

◆ ParseFileDescriptorProtoResponse()

protobuf::FileDescriptorProto grpc::ProtoReflectionDescriptorDatabase::ParseFileDescriptorProtoResponse ( const std::string &  byte_fd_proto)
private

Definition at line 294 of file proto_reflection_descriptor_database.cc.

Member Data Documentation

◆ cached_db_

protobuf::SimpleDescriptorDatabase grpc::ProtoReflectionDescriptorDatabase::cached_db_
private

Definition at line 107 of file proto_reflection_descriptor_database.h.

◆ cached_extension_numbers_

std::unordered_map<string, std::vector<int> > grpc::ProtoReflectionDescriptorDatabase::cached_extension_numbers_
private

Definition at line 104 of file proto_reflection_descriptor_database.h.

◆ ctx_

grpc::ClientContext grpc::ProtoReflectionDescriptorDatabase::ctx_
private

Definition at line 99 of file proto_reflection_descriptor_database.h.

◆ known_files_

std::unordered_set<string> grpc::ProtoReflectionDescriptorDatabase::known_files_
private

Definition at line 101 of file proto_reflection_descriptor_database.h.

◆ missing_extensions_

std::unordered_map<string, std::unordered_set<int> > grpc::ProtoReflectionDescriptorDatabase::missing_extensions_
private

Definition at line 103 of file proto_reflection_descriptor_database.h.

◆ missing_symbols_

std::unordered_set<string> grpc::ProtoReflectionDescriptorDatabase::missing_symbols_
private

Definition at line 102 of file proto_reflection_descriptor_database.h.

◆ stream_

std::shared_ptr<ClientStream> grpc::ProtoReflectionDescriptorDatabase::stream_
private

Definition at line 98 of file proto_reflection_descriptor_database.h.

◆ stream_mutex_

std::mutex grpc::ProtoReflectionDescriptorDatabase::stream_mutex_
private

Definition at line 105 of file proto_reflection_descriptor_database.h.

◆ stub_

std::unique_ptr<grpc::reflection::v1alpha::ServerReflection::Stub> grpc::ProtoReflectionDescriptorDatabase::stub_
private

Definition at line 100 of file proto_reflection_descriptor_database.h.


The documentation for this class was generated from the following files:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:31