Public Member Functions | Protected Member Functions | Private Attributes | List of all members
grpc::internal::CallOpSendMessage Class Reference

#include <call_op_set.h>

Public Member Functions

 CallOpSendMessage ()
 
template<class M >
Status SendMessage (const M &message) GRPC_MUST_USE_RESULT
 
template<class M >
Status SendMessage (const M &message, WriteOptions options) GRPC_MUST_USE_RESULT
 
template<class M >
Status SendMessagePtr (const M *message) GRPC_MUST_USE_RESULT
 
template<class M >
Status SendMessagePtr (const M *message, WriteOptions options) GRPC_MUST_USE_RESULT
 

Protected Member Functions

void AddOp (grpc_op *ops, size_t *nops)
 
void FinishOp (bool *status)
 
void SetFinishInterceptionHookPoint (InterceptorBatchMethodsImpl *interceptor_methods)
 
void SetHijackingState (InterceptorBatchMethodsImpl *)
 
void SetInterceptionHookPoint (InterceptorBatchMethodsImpl *interceptor_methods)
 

Private Attributes

bool failed_send_ = false
 
bool hijacked_ = false
 
const void * msg_ = nullptr
 
ByteBuffer send_buf_
 
std::function< Status(const void *)> serializer_
 
WriteOptions write_options_
 

Detailed Description

Definition at line 289 of file call_op_set.h.

Constructor & Destructor Documentation

◆ CallOpSendMessage()

grpc::internal::CallOpSendMessage::CallOpSendMessage ( )
inline

Definition at line 291 of file call_op_set.h.

Member Function Documentation

◆ AddOp()

void grpc::internal::CallOpSendMessage::AddOp ( grpc_op ops,
size_t *  nops 
)
inlineprotected

Definition at line 315 of file call_op_set.h.

◆ FinishOp()

void grpc::internal::CallOpSendMessage::FinishOp ( bool status)
inlineprotected

Definition at line 333 of file call_op_set.h.

◆ SendMessage() [1/2]

template<class M >
Status grpc::internal::CallOpSendMessage::SendMessage ( const M &  message)

Definition at line 399 of file call_op_set.h.

◆ SendMessage() [2/2]

template<class M >
Status grpc::internal::CallOpSendMessage::SendMessage ( const M &  message,
WriteOptions  options 
)

Send message using options for the write. The options are cleared after use.

Definition at line 382 of file call_op_set.h.

◆ SendMessagePtr() [1/2]

template<class M >
Status grpc::internal::CallOpSendMessage::SendMessagePtr ( const M *  message)

This form of SendMessage allows gRPC to reference message beyond the lifetime of SendMessage.

Definition at line 426 of file call_op_set.h.

◆ SendMessagePtr() [2/2]

template<class M >
Status grpc::internal::CallOpSendMessage::SendMessagePtr ( const M *  message,
WriteOptions  options 
)

Send message using options for the write. The options are cleared after use. This form of SendMessage allows gRPC to reference message beyond the lifetime of SendMessage.

Definition at line 404 of file call_op_set.h.

◆ SetFinishInterceptionHookPoint()

void grpc::internal::CallOpSendMessage::SetFinishInterceptionHookPoint ( InterceptorBatchMethodsImpl interceptor_methods)
inlineprotected

Definition at line 354 of file call_op_set.h.

◆ SetHijackingState()

void grpc::internal::CallOpSendMessage::SetHijackingState ( InterceptorBatchMethodsImpl )
inlineprotected

Definition at line 368 of file call_op_set.h.

◆ SetInterceptionHookPoint()

void grpc::internal::CallOpSendMessage::SetInterceptionHookPoint ( InterceptorBatchMethodsImpl interceptor_methods)
inlineprotected

Definition at line 345 of file call_op_set.h.

Member Data Documentation

◆ failed_send_

bool grpc::internal::CallOpSendMessage::failed_send_ = false
private

Definition at line 375 of file call_op_set.h.

◆ hijacked_

bool grpc::internal::CallOpSendMessage::hijacked_ = false
private

Definition at line 374 of file call_op_set.h.

◆ msg_

const void* grpc::internal::CallOpSendMessage::msg_ = nullptr
private

Definition at line 373 of file call_op_set.h.

◆ send_buf_

ByteBuffer grpc::internal::CallOpSendMessage::send_buf_
private

Definition at line 376 of file call_op_set.h.

◆ serializer_

std::function<Status(const void*)> grpc::internal::CallOpSendMessage::serializer_
private

Definition at line 378 of file call_op_set.h.

◆ write_options_

WriteOptions grpc::internal::CallOpSendMessage::write_options_
private

Definition at line 377 of file call_op_set.h.


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


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