Go to the documentation of this file.
19 #ifndef GRPCPP_IMPL_CALL_OP_SET_H
20 #define GRPCPP_IMPL_CALL_OP_SET_H
46 #include "absl/log/absl_check.h"
47 #include "absl/log/absl_log.h"
58 const std::multimap<std::string, std::string>& metadata,
59 size_t* metadata_count,
const std::string& optional_error_details) {
60 *metadata_count = metadata.size() + (optional_error_details.empty() ? 0 : 1);
61 if (*metadata_count == 0) {
67 for (
auto iter = metadata.cbegin(); iter != metadata.cend(); ++iter, ++i) {
71 if (!optional_error_details.empty()) {
76 return metadata_array;
86 inline void Clear() { flags_ = 0; }
89 inline uint32_t
flags()
const {
return flags_; }
159 last_message_ =
true;
166 last_message_ =
false;
191 void SetBit(
const uint32_t mask) { flags_ |= mask; }
193 void ClearBit(
const uint32_t mask) { flags_ &= ~mask; }
195 bool GetBit(
const uint32_t mask)
const {
return (flags_ & mask) != 0; }
206 template <
int Unused>
326 if (msg_ ==
nullptr && !send_buf_.
Valid())
return;
328 serializer_ =
nullptr;
331 if (msg_ !=
nullptr) {
332 ABSL_CHECK(serializer_(msg_).ok());
334 serializer_ =
nullptr;
341 write_options_.
Clear();
344 if (msg_ ==
nullptr && !send_buf_.
Valid())
return;
346 if (hijacked_ && failed_send_) {
349 }
else if (!*status) {
357 if (msg_ ==
nullptr && !send_buf_.
Valid())
return;
360 interceptor_methods->
SetSendMessage(&send_buf_, &msg_, &failed_send_,
366 if (msg_ !=
nullptr || send_buf_.
Valid()) {
374 interceptor_methods->
SetSendMessage(
nullptr,
nullptr, &failed_send_,
383 const void* msg_ =
nullptr;
384 bool hijacked_ =
false;
385 bool failed_send_ =
false;
388 std::function<
Status(
const void*)> serializer_;
395 write_options_ = options;
398 Status result =
Serialize(allocator, message, send_buf_.bbuf_ptr(), &own_buf);
410 write_options_ = options;
412 serializer_ = [
this, allocator](
const void* message) {
419 send_buf_.bbuf_ptr(), &own_buf);
440 if (message_ ==
nullptr || hijacked_)
return;
449 if (message_ ==
nullptr)
return;
450 if (recv_buf_.
Valid()) {
459 }
else if (hijacked_) {
460 if (hijacked_recv_message_failed_) {
461 FinishOpRecvMessageFailureHandler(status);
468 FinishOpRecvMessageFailureHandler(status);
474 if (message_ ==
nullptr)
return;
476 &hijacked_recv_message_failed_);
481 if (message_ ==
nullptr)
return;
488 if (message_ ==
nullptr)
return;
496 void FinishOpRecvMessageFailureHandler(
bool* status) {
498 if (!allow_not_getting_message_) {
503 R* message_ =
nullptr;
504 ByteBuffer recv_buf_;
505 bool allow_not_getting_message_ =
false;
506 bool hijacked_ =
false;
507 bool hijacked_recv_message_failed_ =
false;
537 deserialize_.reset(func);
548 if (!deserialize_ || hijacked_)
return;
557 if (!deserialize_)
return;
558 if (recv_buf_.
Valid()) {
561 *status = deserialize_->Deserialize(&recv_buf_).ok();
567 }
else if (hijacked_) {
568 if (hijacked_recv_message_failed_) {
569 FinishOpRecvMessageFailureHandler(status);
577 if (!allow_not_getting_message_) {
585 if (!deserialize_)
return;
587 &hijacked_recv_message_failed_);
592 if (!deserialize_)
return;
596 deserialize_.reset();
600 if (!deserialize_)
return;
608 void FinishOpRecvMessageFailureHandler(
bool* status) {
610 if (!allow_not_getting_message_) {
615 void* message_ =
nullptr;
616 std::unique_ptr<DeserializeFunc> deserialize_;
617 ByteBuffer recv_buf_;
618 bool allow_not_getting_message_ =
false;
619 bool hijacked_ =
false;
620 bool hijacked_recv_message_failed_ =
false;
631 if (!send_ || hijacked_)
return;
654 bool hijacked_ =
false;
663 std::multimap<std::string, std::string>* trailing_metadata,
666 metadata_map_ = trailing_metadata;
667 send_status_available_ =
true;
674 if (!send_status_available_ || hijacked_)
return;
676 *metadata_map_, &trailing_metadata_count_, send_error_details_);
680 trailing_metadata_count_;
685 send_error_message_.empty() ? nullptr : &error_message_slice_;
691 if (!send_status_available_ || hijacked_)
return;
693 send_status_available_ =
false;
698 if (!send_status_available_)
return;
702 interceptor_methods->
SetSendStatus(&send_status_code_, &send_error_details_,
703 &send_error_message_);
714 bool hijacked_ =
false;
715 bool send_status_available_;
717 std::string send_error_details_;
718 std::string send_error_message_;
719 size_t trailing_metadata_count_;
720 std::multimap<std::string, std::string>* metadata_map_;
730 context->initial_metadata_received_ =
true;
731 metadata_map_ = &context->recv_initial_metadata_;
736 if (metadata_map_ ==
nullptr || hijacked_)
return;
745 if (metadata_map_ ==
nullptr || hijacked_)
return;
755 if (metadata_map_ ==
nullptr)
return;
758 metadata_map_ =
nullptr;
763 if (metadata_map_ ==
nullptr)
return;
769 bool hijacked_ =
false;
776 : metadata_map_(nullptr),
777 recv_status_(nullptr),
778 debug_error_string_(nullptr) {}
781 client_context_ = context;
782 metadata_map_ = &client_context_->trailing_metadata_;
783 recv_status_ = status;
789 if (recv_status_ ==
nullptr || hijacked_)
return;
801 if (recv_status_ ==
nullptr || hijacked_)
return;
804 ABSL_DCHECK_EQ(debug_error_string_,
nullptr);
813 if (debug_error_string_ !=
nullptr) {
814 client_context_->set_debug_error_string(debug_error_string_);
815 gpr_free(
const_cast<char*
>(debug_error_string_));
831 if (recv_status_ ==
nullptr)
return;
834 recv_status_ =
nullptr;
839 if (recv_status_ ==
nullptr)
return;
845 bool hijacked_ =
false;
849 const char* debug_error_string_;
854 template <
class Op1 = CallNoOp<1>,
class Op2 = CallNoOp<2>,
855 class Op3 = CallNoOp<3>,
class Op4 = CallNoOp<4>,
856 class Op5 = CallNoOp<5>,
class Op6 = CallNoOp<6>>
865 template <
class Op1,
class Op2,
class Op3,
class Op4,
class Op5,
class Op6>
866 class CallOpSet :
public CallOpSetInterface,
879 : core_cq_tag_(this),
882 done_intercepting_(false),
886 if (&other ==
this) {
892 done_intercepting_ =
false;
898 done_intercepting_ =
false;
903 if (RunInterceptors()) {
912 if (done_intercepting_) {
914 call_.
cq()->CompleteAvalanching();
919 *status = saved_status_;
924 this->Op1::FinishOp(status);
925 this->Op2::FinishOp(status);
926 this->Op3::FinishOp(status);
927 this->Op4::FinishOp(status);
928 this->Op5::FinishOp(status);
929 this->Op6::FinishOp(status);
930 saved_status_ = *status;
931 if (RunInterceptorsPostRecv()) {
954 this->Op1::SetHijackingState(&interceptor_methods_);
955 this->Op2::SetHijackingState(&interceptor_methods_);
956 this->Op3::SetHijackingState(&interceptor_methods_);
957 this->Op4::SetHijackingState(&interceptor_methods_);
958 this->Op5::SetHijackingState(&interceptor_methods_);
959 this->Op6::SetHijackingState(&interceptor_methods_);
964 static const size_t MAX_OPS = 6;
967 this->Op1::AddOp(ops, &nops);
968 this->Op2::AddOp(ops, &nops);
969 this->Op3::AddOp(ops, &nops);
970 this->Op4::AddOp(ops, &nops);
971 this->Op5::AddOp(ops, &nops);
972 this->Op6::AddOp(ops, &nops);
990 done_intercepting_ =
true;
999 bool RunInterceptors() {
1002 interceptor_methods_.
SetCall(&call_);
1003 this->Op1::SetInterceptionHookPoint(&interceptor_methods_);
1004 this->Op2::SetInterceptionHookPoint(&interceptor_methods_);
1005 this->Op3::SetInterceptionHookPoint(&interceptor_methods_);
1006 this->Op4::SetInterceptionHookPoint(&interceptor_methods_);
1007 this->Op5::SetInterceptionHookPoint(&interceptor_methods_);
1008 this->Op6::SetInterceptionHookPoint(&interceptor_methods_);
1014 call_.
cq()->RegisterAvalanching();
1018 bool RunInterceptorsPostRecv() {
1022 this->Op1::SetFinishInterceptionHookPoint(&interceptor_methods_);
1023 this->Op2::SetFinishInterceptionHookPoint(&interceptor_methods_);
1024 this->Op3::SetFinishInterceptionHookPoint(&interceptor_methods_);
1025 this->Op4::SetFinishInterceptionHookPoint(&interceptor_methods_);
1026 this->Op5::SetFinishInterceptionHookPoint(&interceptor_methods_);
1027 this->Op6::SetFinishInterceptionHookPoint(&interceptor_methods_);
1034 bool done_intercepting_ =
false;
1035 InterceptorBatchMethodsImpl interceptor_methods_;
1042 #endif // GRPCPP_IMPL_CALL_OP_SET_H
void SetHijackingState(InterceptorBatchMethodsImpl *)
Definition: call_op_set.h:378
GPRAPI void * gpr_malloc(size_t size)
malloc.
grpc::CompletionQueue * cq() const
Definition: call.h:71
struct grpc_byte_buffer * send_message
This op takes ownership of the slices in send_message.
Definition: grpc_types.h:338
uint32_t flags
Write flags bitset for grpc_begin_messages.
Definition: grpc_types.h:314
void SetFinishInterceptionHookPoint(InterceptorBatchMethodsImpl *interceptor_methods)
Definition: call_op_set.h:479
GPRAPI grpc_slice grpc_empty_slice(void)
grpc_call_error
Result of a grpc call.
Definition: grpc_types.h:139
WriteOptions & clear_last_message()
Clears flag indicating that this is the last message in a stream, disabling coalescing.
Definition: call_op_set.h:165
WriteOptions & set_corked()
corked bit: aliases set_buffer_hint currently, with the intent that set_buffer_hint will be removed i...
Definition: call_op_set.h:141
bool get_buffer_hint() const
Get value for the flag indicating that the write may be buffered and need not go out on the wire imme...
Definition: call_op_set.h:137
void AddOp(grpc_op *ops, size_t *nops)
Definition: call_op_set.h:788
grpc_metadata_array * trailing_metadata
ownership of the array is with the caller, but ownership of the elements stays with the call object (...
Definition: grpc_types.h:371
Definition: call_op_set.h:623
grpc_status_code * status
Definition: grpc_types.h:372
void SetHijackingState(InterceptorBatchMethodsImpl *interceptor_methods)
Definition: call_op_set.h:486
void SetHijackingState(InterceptorBatchMethodsImpl *)
Definition: call_op_set.h:649
CallOpSet()
Definition: call_op_set.h:874
Definition: call_op_set.h:530
Definition: call_op_set.h:658
#define GRPC_SLICE_START_PTR(slice)
Definition: slice_type.h:98
void Duplicate()
Make a duplicate copy of the internals of this byte buffer so that we have our own owned version of i...
Definition: byte_buffer.h:139
@ PRE_SEND_INITIAL_METADATA
The first three in this list are for clients and servers.
void AddOp(grpc_op *ops, size_t *nops)
Definition: call_op_set.h:547
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm.h:33
Primary implementation of CallOpSetInterface.
Definition: completion_queue.h:97
GRPC_MUST_USE_RESULT Status SendMessagePtr(const M *message, WriteOptions options, grpc_event_engine::experimental::MemoryAllocator *allocator)
Send message using options for the write.
auto Deserialize(BufferPtr buffer, Message *msg)
Definition: serialization_traits.h:120
Definition: call_op_set.h:289
#define GRPC_SLICE_END_PTR(slice)
Definition: slice_type.h:107
struct grpc_op::grpc_op_data::grpc_op_send_initial_metadata send_initial_metadata
bool get_no_compression() const
Get value for the flag indicating whether compression for the next message write is forcefully disabl...
Definition: call_op_set.h:111
grpc_status_code
Definition: status.h:28
void SetRecvInitialMetadata(MetadataMap *map)
Definition: interceptor_common.h:174
WriteOptions & set_last_message()
last-message bit: indicates this is the last message in a stream client-side: makes Write the equival...
Definition: call_op_set.h:158
@ POST_RECV_INITIAL_METADATA
The following two are for all clients and servers.
void FinishOp(bool *status)
Definition: call_op_set.h:343
void * reserved
Reserved for future usage.
Definition: grpc_types.h:316
void SetCallOpSetInterface(CallOpSetInterface *ops)
Definition: interceptor_common.h:220
void RecvMessage(R *message)
Definition: call_op_set.h:533
bool is_write_through() const
Definition: call_op_set.h:188
void FillOps(Call *call) override
Definition: call_op_set.h:897
void SetCall(Call *call)
Definition: interceptor_common.h:216
bool InterceptorsListEmpty()
Definition: interceptor_common.h:224
void SetHijackingState(InterceptorBatchMethodsImpl *interceptor_methods)
Definition: call_op_set.h:837
void ClearState()
Definition: interceptor_common.h:202
CallOpSendMessage()
Definition: call_op_set.h:291
Straightforward wrapping of the C call object.
Definition: call.h:36
@ GRPC_CALL_OK
everything went ok
Definition: grpc_types.h:141
WriteOptions()
Definition: call_op_set.h:83
WriteOptions & set_write_through()
Guarantee that all bytes have been written to the socket before completing this write (usually writes...
Definition: call_op_set.h:178
void SetFinishInterceptionHookPoint(InterceptorBatchMethodsImpl *interceptor_methods)
Definition: call_op_set.h:829
void FinishOp(bool *)
Definition: call_op_set.h:637
void ServerSendStatus(std::multimap< std::string, std::string > *trailing_metadata, const Status &status)
Definition: call_op_set.h:662
CallOpClientRecvStatus()
Definition: call_op_set.h:775
void SetInterceptionHookPoint(InterceptorBatchMethodsImpl *)
Definition: call_op_set.h:211
GRPCAPI void grpc_call_ref(grpc_call *call)
Ref a call.
#define GRPC_WRITE_NO_COMPRESS
Force compression to be disabled for a particular write (start_write/add_metadata).
Definition: grpc_types.h:188
void SetHijackingState(InterceptorBatchMethodsImpl *)
Definition: call_op_set.h:215
void SetInterceptionHookPoint(InterceptorBatchMethodsImpl *interceptor_methods)
Definition: call_op_set.h:472
struct grpc_op::grpc_op_data::grpc_op_recv_message recv_message
void AddOp(grpc_op *ops, size_t *nops)
Definition: call_op_set.h:673
union grpc_op::grpc_op_data data
void FinishOp(bool *)
Definition: call_op_set.h:210
void FinishOp(bool *status)
Definition: call_op_set.h:448
CallOpSet(const CallOpSet &other)
Definition: call_op_set.h:878
uint32_t flags() const
Returns raw flags bitset.
Definition: call_op_set.h:89
GPRAPI void gpr_free(void *ptr)
free
void AddOp(grpc_op *, size_t *)
Definition: call_op_set.h:209
CallOpServerSendStatus()
Definition: call_op_set.h:660
void ContinueFillOpsAfterInterception() override
Definition: call_op_set.h:963
struct grpc_byte_buffer ** recv_message
Definition: grpc_types.h:363
Did it work? If it didn't, why?
Definition: status.h:34
Definition: call_op_set.h:510
void AddOp(grpc_op *ops, size_t *nops)
Definition: call_op_set.h:325
auto Serialize(grpc_event_engine::experimental::MemoryAllocator *allocator, const Message &msg, BufferPtr buffer, bool *own_buffer)
Definition: serialization_traits.h:113
void SetSendStatus(grpc_status_code *code, std::string *error_details, std::string *error_message)
Definition: interceptor_common.h:157
void * core_cq_tag() override
Definition: call_op_set.h:943
void SetHijackingState(InterceptorBatchMethodsImpl *interceptor_methods)
Definition: call_op_set.h:598
@ GRPC_OP_RECV_INITIAL_METADATA
Receive initial metadata: one and only one MUST be made on the client, must not be made on the server...
Definition: grpc_types.h:287
bool got_message
Definition: call_op_set.h:436
@ GRPC_OP_SEND_STATUS_FROM_SERVER
Send status from the server: one and only one instance MUST be sent from the server unless the call w...
Definition: grpc_types.h:282
void ClientRecvStatus(grpc::ClientContext *context, Status *status)
Definition: call_op_set.h:780
#define GRPC_SLICE_IS_EMPTY(slice)
Definition: slice_type.h:109
GRPC_MUST_USE_RESULT Status SendMessage(const M &message, grpc_event_engine::experimental::MemoryAllocator *allocator)
Definition: call_op_set.h:302
@ OK
Not an error; returned on success.
Definition: status_code_enum.h:28
const char kBinaryErrorDetailsKey[]
Definition: metadata_map.h:31
GRPCAPI void grpc_call_unref(grpc_call *call)
Unref a call.
grpc_status_code status
Definition: grpc_types.h:343
const char ** error_string
If this is not nullptr, it will be populated with the full fidelity error string for debugging purpos...
Definition: grpc_types.h:377
WriteOptions & clear_write_through()
Definition: call_op_set.h:183
A ClientContext allows the person implementing a service client to:
Definition: client_context.h:194
void SetFinishInterceptionHookPoint(InterceptorBatchMethodsImpl *interceptor_methods)
Definition: call_op_set.h:590
bool is_corked() const
Definition: call_op_set.h:151
GRPC_MUST_USE_RESULT Status SendMessage(const M &message, WriteOptions options, grpc_event_engine::experimental::MemoryAllocator *allocator)
Send message using options for the write.
void Clear()
Remove all data.
Definition: byte_buffer.h:127
Definition: call_op_set.h:517
A sequence of bytes.
Definition: byte_buffer.h:59
#define GRPC_WRITE_BUFFER_HINT
Write Flags:
Definition: grpc_types.h:185
void SetInterceptionHookPoint(InterceptorBatchMethodsImpl *interceptor_methods)
Definition: call_op_set.h:823
virtual ~DeserializeFunc()
Definition: call_op_set.h:513
Operation data: one field for each op type (except SEND_CLOSE_FROM_CLIENT which has no arguments)
Definition: grpc_types.h:310
void SetReverse()
Definition: interceptor_common.h:209
@ GRPC_OP_SEND_MESSAGE
Send a message: 0 or more of these operations can occur for each call.
Definition: grpc_types.h:272
void SetRecvStatus(Status *status)
Definition: interceptor_common.h:178
void SetInterceptionHookPoint(InterceptorBatchMethodsImpl *interceptor_methods)
Definition: call_op_set.h:639
void SetHijackingState() override
Definition: call_op_set.h:953
#define GRPC_WRITE_THROUGH
Force this message to be written to the socket before completing it.
Definition: grpc_types.h:190
grpc_metadata * trailing_metadata
Definition: grpc_types.h:342
void FinishOp(bool *)
Definition: call_op_set.h:800
A grpc_slice s, if initialized, represents the byte range s.bytes[0..s.length-1].
Definition: slice_type.h:62
std::string error_message() const
Return the instance's error message.
Definition: status.h:119
StatusCode
Definition: status_code_enum.h:26
void FinishOp(bool *status)
Definition: call_op_set.h:556
void AddOp(grpc_op *ops, size_t *nops)
Definition: call_op_set.h:439
grpc_op_type op
Operation type, as defined by grpc_op_type.
Definition: grpc_types.h:312
grpc_slice * status_details
Definition: grpc_types.h:373
DeserializeFuncType(R *message)
Definition: call_op_set.h:519
void SetRecvMessage(void *message, bool *hijacked_recv_message_failed)
Definition: interceptor_common.h:169
StatusCode error_code() const
Return the instance's error code.
Definition: status.h:117
Status Deserialize(ByteBuffer *buf) override
Definition: call_op_set.h:520
void set_output_tag(void *return_tag)
Definition: call_op_set.h:941
@ GRPC_OP_RECV_MESSAGE
Receive a message: 0 or more of these operations can occur for each call.
Definition: grpc_types.h:291
void AddOp(grpc_op *ops, size_t *nops)
Definition: call_op_set.h:630
Per-message write options.
Definition: call_op_set.h:81
void SetFinishInterceptionHookPoint(InterceptorBatchMethodsImpl *)
Definition: call_op_set.h:646
void SetFinishInterceptionHookPoint(InterceptorBatchMethodsImpl *)
Definition: call_op_set.h:213
struct grpc_op::grpc_op_data::grpc_op_send_status_from_server send_status_from_server
void SetInterceptionHookPoint(InterceptorBatchMethodsImpl *interceptor_methods)
Definition: call_op_set.h:696
void SetFinishInterceptionHookPoint(InterceptorBatchMethodsImpl *)
Definition: call_op_set.h:706
~DeserializeFuncType() override
Definition: call_op_set.h:524
GPRAPI grpc_slice grpc_slice_from_static_buffer(const void *source, size_t len)
Create a slice pointing to constant memory.
@ GRPC_OP_SEND_INITIAL_METADATA
Send initial metadata: one and only one instance MUST be sent for each call, unless the call was canc...
Definition: grpc_types.h:268
WriteOptions & clear_corked()
Definition: call_op_set.h:146
struct grpc_op::grpc_op_data::grpc_op_send_message send_message
void SetSendMessage(ByteBuffer *buf, const void **msg, bool *fail_send_message, std::function< Status(const void *)> serializer)
Definition: interceptor_common.h:143
GRPC_MUST_USE_RESULT Status SendMessagePtr(const M *message, grpc_event_engine::experimental::MemoryAllocator *allocator)
This form of SendMessage allows gRPC to reference message beyond the lifetime of SendMessage.
Definition: call_op_set.h:319
grpc_call * call() const
Definition: call.h:70
CallOpSet & operator=(const CallOpSet &other)
Definition: call_op_set.h:885
struct grpc_op::grpc_op_data::grpc_op_recv_status_on_client recv_status_on_client
grpc_compression_level
Compression levels allow a party with knowledge of its peer's accepted encodings to request compressi...
Definition: compression_types.h:73
size_t trailing_metadata_count
Definition: grpc_types.h:341
bool FinalizeResult(void **tag, bool *status) override
Definition: call_op_set.h:911
Definition: call_op_set.h:773
WriteOptions & set_buffer_hint()
Sets flag indicating that the write may be buffered and need not go out on the wire immediately.
Definition: call_op_set.h:119
const GRPCAPI char * grpc_call_error_to_string(grpc_call_error error)
Convert grpc_call_error values to a string.
bool got_message
Definition: call_op_set.h:544
CallOpClientSendClose()
Definition: call_op_set.h:625
WriteOptions & clear_no_compression()
Clears flag for the disabling of compression for the next message write.
Definition: call_op_set.h:102
Definition: memory_allocator.h:33
GPRAPI void grpc_slice_unref(grpc_slice s)
Decrement the ref count of s.
bool Valid() const
Is this ByteBuffer valid?
Definition: byte_buffer.h:158
void SetInterceptionHookPoint(InterceptorBatchMethodsImpl *interceptor_methods)
Definition: call_op_set.h:583
bool RunInterceptors()
Definition: interceptor_common.h:239
void Clear()
Clear all flags.
Definition: call_op_set.h:86
bool is_last_message() const
Get value for the flag indicating that this is the last message, and should be coalesced with trailin...
Definition: call_op_set.h:174
virtual Status Deserialize(ByteBuffer *buf)=0
Definition: call_op_set.h:429
void Release()
Forget underlying byte buffer without destroying Use this only for un-owned byte buffers.
Definition: byte_buffer.h:143
grpc_metadata * FillMetadataArray(const std::multimap< std::string, std::string > &metadata, size_t *metadata_count, const std::string &optional_error_details)
Definition: call_op_set.h:57
struct grpc_op::grpc_op_data::grpc_op_recv_initial_metadata recv_initial_metadata
grpc_slice * status_details
optional: set to NULL if no details need sending, non-NULL if they do pointer will not be retained pa...
Definition: grpc_types.h:347
void ClientSendClose()
Definition: call_op_set.h:627
@ GRPC_OP_RECV_STATUS_ON_CLIENT
Receive status on the client: one and only one must be made on the client.
Definition: grpc_types.h:297
void SetRecvTrailingMetadata(MetadataMap *map)
Definition: interceptor_common.h:180
void AllowNoMessage()
Definition: call_op_set.h:542
void SetSendInitialMetadata(std::multimap< std::string, std::string > *metadata)
Definition: interceptor_common.h:152
void FinishOp(bool *)
Definition: call_op_set.h:690
::absl::Status Status
Definition: config_protobuf.h:107
WriteOptions & set_no_compression()
Sets flag for the disabling of compression for the next message write.
Definition: call_op_set.h:94
void set_core_cq_tag(void *core_cq_tag)
set_core_cq_tag is used to provide a different core CQ tag than "this".
Definition: call_op_set.h:949
GRPCAPI grpc_call_error grpc_call_start_batch(grpc_call *call, const grpc_op *ops, size_t nops, void *tag, void *reserved)
Start a batch of operations defined in the array ops; when complete, post a completion of type 'tag' ...
void SetFinishInterceptionHookPoint(InterceptorBatchMethodsImpl *interceptor_methods)
Definition: call_op_set.h:364
Definition: interceptor_common.h:37
std::string error_details() const
Return the (binary) error details.
Definition: status.h:122
void SetSendTrailingMetadata(std::multimap< std::string, std::string > *metadata)
Definition: interceptor_common.h:164
void RecvMessage(R *message)
Definition: call_op_set.h:431
@ GRPC_OP_SEND_CLOSE_FROM_CLIENT
Send a close from the client: one and only one instance MUST be sent from the client,...
Definition: grpc_types.h:277
WriteOptions & clear_buffer_hint()
Clears flag indicating that the write may be buffered and need not go out on the wire immediately.
Definition: call_op_set.h:128
void AddInterceptionHookPoint(experimental::InterceptionHookPoints type)
Definition: interceptor_common.h:79
Default argument for CallOpSet.
Definition: call_op_set.h:207
void SetHijackingState(InterceptorBatchMethodsImpl *)
Definition: call_op_set.h:709
void AllowNoMessage()
Definition: call_op_set.h:434
grpc_slice SliceReferencingString(const std::string &str)
Definition: slice.h:132
void ContinueFinalizeResultAfterInterception() override
Definition: call_op_set.h:989
void SetInterceptionHookPoint(InterceptorBatchMethodsImpl *interceptor_methods)
Definition: call_op_set.h:355
@ PRE_RECV_INITIAL_METADATA
The following three are for hijacked clients only.