Public Member Functions | Private Member Functions | Private Attributes | List of all members
grpc::ProtoServerReflection Class Referencefinal

#include <proto_server_reflection.h>

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

Public Member Functions

 ProtoServerReflection ()
 
Status ServerReflectionInfo (ServerContext *context, ServerReaderWriter< reflection::v1alpha::ServerReflectionResponse, reflection::v1alpha::ServerReflectionRequest > *stream) override
 
void SetServiceList (const std::vector< std::string > *services)
 

Private Member Functions

void FillErrorResponse (const Status &status, reflection::v1alpha::ErrorResponse *error_response)
 
void FillFileDescriptorResponse (const protobuf::FileDescriptor *file_desc, reflection::v1alpha::ServerReflectionResponse *response, std::unordered_set< std::string > *seen_files)
 
Status GetAllExtensionNumbers (ServerContext *context, const std::string &type, reflection::v1alpha::ExtensionNumberResponse *response)
 
Status GetFileByName (ServerContext *context, const std::string &file_name, reflection::v1alpha::ServerReflectionResponse *response)
 
Status GetFileContainingExtension (ServerContext *context, const reflection::v1alpha::ExtensionRequest *request, reflection::v1alpha::ServerReflectionResponse *response)
 
Status GetFileContainingSymbol (ServerContext *context, const std::string &symbol, reflection::v1alpha::ServerReflectionResponse *response)
 
Status ListService (ServerContext *context, reflection::v1alpha::ListServiceResponse *response)
 

Private Attributes

const protobuf::DescriptorPooldescriptor_pool_
 
const std::vector< string > * services_
 

Detailed Description

Definition at line 37 of file proto_server_reflection.h.

Constructor & Destructor Documentation

◆ ProtoServerReflection()

grpc::ProtoServerReflection::ProtoServerReflection ( )

Definition at line 41 of file proto_server_reflection.cc.

Member Function Documentation

◆ FillErrorResponse()

void grpc::ProtoServerReflection::FillErrorResponse ( const Status status,
reflection::v1alpha::ErrorResponse *  error_response 
)
private

Definition at line 96 of file proto_server_reflection.cc.

◆ FillFileDescriptorResponse()

void grpc::ProtoServerReflection::FillFileDescriptorResponse ( const protobuf::FileDescriptor file_desc,
reflection::v1alpha::ServerReflectionResponse *  response,
std::unordered_set< std::string > *  seen_files 
)
private

Definition at line 194 of file proto_server_reflection.cc.

◆ GetAllExtensionNumbers()

Status grpc::ProtoServerReflection::GetAllExtensionNumbers ( ServerContext context,
const std::string &  type,
reflection::v1alpha::ExtensionNumberResponse *  response 
)
private

Definition at line 172 of file proto_server_reflection.cc.

◆ GetFileByName()

Status grpc::ProtoServerReflection::GetFileByName ( ServerContext context,
const std::string &  file_name,
reflection::v1alpha::ServerReflectionResponse *  response 
)
private

Definition at line 114 of file proto_server_reflection.cc.

◆ GetFileContainingExtension()

Status grpc::ProtoServerReflection::GetFileContainingExtension ( ServerContext context,
const reflection::v1alpha::ExtensionRequest *  request,
reflection::v1alpha::ServerReflectionResponse *  response 
)
private

Definition at line 148 of file proto_server_reflection.cc.

◆ GetFileContainingSymbol()

Status grpc::ProtoServerReflection::GetFileContainingSymbol ( ServerContext context,
const std::string &  symbol,
reflection::v1alpha::ServerReflectionResponse *  response 
)
private

Definition at line 131 of file proto_server_reflection.cc.

◆ ListService()

Status grpc::ProtoServerReflection::ListService ( ServerContext context,
reflection::v1alpha::ListServiceResponse *  response 
)
private

Definition at line 102 of file proto_server_reflection.cc.

◆ ServerReflectionInfo()

Status grpc::ProtoServerReflection::ServerReflectionInfo ( ServerContext context,
ServerReaderWriter< reflection::v1alpha::ServerReflectionResponse, reflection::v1alpha::ServerReflectionRequest > *  stream 
)
override

Definition at line 49 of file proto_server_reflection.cc.

◆ SetServiceList()

void grpc::ProtoServerReflection::SetServiceList ( const std::vector< std::string > *  services)

Definition at line 44 of file proto_server_reflection.cc.

Member Data Documentation

◆ descriptor_pool_

const protobuf::DescriptorPool* grpc::ProtoServerReflection::descriptor_pool_
private

Definition at line 81 of file proto_server_reflection.h.

◆ services_

const std::vector<string>* grpc::ProtoServerReflection::services_
private

Definition at line 82 of file proto_server_reflection.h.


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


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