Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
grpc::Service Class Reference

Desriptor of an RPC service and its various RPC methods. More...

#include <service_type.h>

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

Public Member Functions

bool has_async_methods () const
 
bool has_callback_methods () const
 
bool has_generic_methods () const
 
bool has_synchronous_methods () const
 
 Service ()
 
virtual ~Service ()
 

Protected Member Functions

void AddMethod (internal::RpcServiceMethod *method)
 
internal::MethodHandlerGetHandler (int index)
 
void MarkMethodAsync (int index)
 
void MarkMethodCallback (int index, internal::MethodHandler *handler)
 
void MarkMethodGeneric (int index)
 
void MarkMethodRaw (int index)
 
void MarkMethodRawCallback (int index, internal::MethodHandler *handler)
 
void MarkMethodStreamed (int index, internal::MethodHandler *streamed_method)
 
void RequestAsyncBidiStreaming (int index, grpc::ServerContext *context, internal::ServerAsyncStreamingInterface *stream, grpc::CompletionQueue *call_cq, grpc::ServerCompletionQueue *notification_cq, void *tag)
 
void RequestAsyncClientStreaming (int index, grpc::ServerContext *context, internal::ServerAsyncStreamingInterface *stream, grpc::CompletionQueue *call_cq, grpc::ServerCompletionQueue *notification_cq, void *tag)
 
template<class Message >
void RequestAsyncServerStreaming (int index, grpc::ServerContext *context, Message *request, internal::ServerAsyncStreamingInterface *stream, grpc::CompletionQueue *call_cq, grpc::ServerCompletionQueue *notification_cq, void *tag)
 
template<class Message >
void RequestAsyncUnary (int index, grpc::ServerContext *context, Message *request, internal::ServerAsyncStreamingInterface *stream, grpc::CompletionQueue *call_cq, grpc::ServerCompletionQueue *notification_cq, void *tag)
 

Private Attributes

std::vector< std::unique_ptr< internal::RpcServiceMethod > > methods_
 
ServerInterfaceserver_
 

Friends

class Server
 
class ServerInterface
 

Detailed Description

Desriptor of an RPC service and its various RPC methods.

Definition at line 58 of file grpcpp/impl/codegen/service_type.h.

Constructor & Destructor Documentation

◆ Service()

grpc::Service::Service ( )
inline

Definition at line 60 of file grpcpp/impl/codegen/service_type.h.

◆ ~Service()

virtual grpc::Service::~Service ( )
inlinevirtual

Definition at line 61 of file grpcpp/impl/codegen/service_type.h.

Member Function Documentation

◆ AddMethod()

void grpc::Service::AddMethod ( internal::RpcServiceMethod method)
inlineprotected

Definition at line 147 of file grpcpp/impl/codegen/service_type.h.

◆ GetHandler()

internal::MethodHandler* grpc::Service::GetHandler ( int  index)
inlineprotected

Definition at line 224 of file grpcpp/impl/codegen/service_type.h.

◆ has_async_methods()

bool grpc::Service::has_async_methods ( ) const
inline

Definition at line 63 of file grpcpp/impl/codegen/service_type.h.

◆ has_callback_methods()

bool grpc::Service::has_callback_methods ( ) const
inline

Definition at line 82 of file grpcpp/impl/codegen/service_type.h.

◆ has_generic_methods()

bool grpc::Service::has_generic_methods ( ) const
inline

Definition at line 94 of file grpcpp/impl/codegen/service_type.h.

◆ has_synchronous_methods()

bool grpc::Service::has_synchronous_methods ( ) const
inline

Definition at line 72 of file grpcpp/impl/codegen/service_type.h.

◆ MarkMethodAsync()

void grpc::Service::MarkMethodAsync ( int  index)
inlineprotected

Definition at line 151 of file grpcpp/impl/codegen/service_type.h.

◆ MarkMethodCallback()

void grpc::Service::MarkMethodCallback ( int  index,
internal::MethodHandler handler 
)
inlineprotected

Definition at line 198 of file grpcpp/impl/codegen/service_type.h.

◆ MarkMethodGeneric()

void grpc::Service::MarkMethodGeneric ( int  index)
inlineprotected

Definition at line 172 of file grpcpp/impl/codegen/service_type.h.

◆ MarkMethodRaw()

void grpc::Service::MarkMethodRaw ( int  index)
inlineprotected

Definition at line 162 of file grpcpp/impl/codegen/service_type.h.

◆ MarkMethodRawCallback()

void grpc::Service::MarkMethodRawCallback ( int  index,
internal::MethodHandler handler 
)
inlineprotected

Definition at line 211 of file grpcpp/impl/codegen/service_type.h.

◆ MarkMethodStreamed()

void grpc::Service::MarkMethodStreamed ( int  index,
internal::MethodHandler streamed_method 
)
inlineprotected

Definition at line 183 of file grpcpp/impl/codegen/service_type.h.

◆ RequestAsyncBidiStreaming()

void grpc::Service::RequestAsyncBidiStreaming ( int  index,
grpc::ServerContext context,
internal::ServerAsyncStreamingInterface stream,
grpc::CompletionQueue call_cq,
grpc::ServerCompletionQueue notification_cq,
void *  tag 
)
inlineprotected

Definition at line 137 of file grpcpp/impl/codegen/service_type.h.

◆ RequestAsyncClientStreaming()

void grpc::Service::RequestAsyncClientStreaming ( int  index,
grpc::ServerContext context,
internal::ServerAsyncStreamingInterface stream,
grpc::CompletionQueue call_cq,
grpc::ServerCompletionQueue notification_cq,
void *  tag 
)
inlineprotected

Definition at line 118 of file grpcpp/impl/codegen/service_type.h.

◆ RequestAsyncServerStreaming()

template<class Message >
void grpc::Service::RequestAsyncServerStreaming ( int  index,
grpc::ServerContext context,
Message request,
internal::ServerAsyncStreamingInterface stream,
grpc::CompletionQueue call_cq,
grpc::ServerCompletionQueue notification_cq,
void *  tag 
)
inlineprotected

Definition at line 128 of file grpcpp/impl/codegen/service_type.h.

◆ RequestAsyncUnary()

template<class Message >
void grpc::Service::RequestAsyncUnary ( int  index,
grpc::ServerContext context,
Message request,
internal::ServerAsyncStreamingInterface stream,
grpc::CompletionQueue call_cq,
grpc::ServerCompletionQueue notification_cq,
void *  tag 
)
inlineprotected

Definition at line 105 of file grpcpp/impl/codegen/service_type.h.

Friends And Related Function Documentation

◆ Server

friend class Server
friend

Definition at line 230 of file grpcpp/impl/codegen/service_type.h.

◆ ServerInterface

friend class ServerInterface
friend

Definition at line 231 of file grpcpp/impl/codegen/service_type.h.

Member Data Documentation

◆ methods_

std::vector<std::unique_ptr<internal::RpcServiceMethod> > grpc::Service::methods_
private

Definition at line 233 of file grpcpp/impl/codegen/service_type.h.

◆ server_

ServerInterface* grpc::Service::server_
private

Definition at line 232 of file grpcpp/impl/codegen/service_type.h.


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


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