diff options
author | Yash Tibrewal <yashkt@google.com> | 2019-01-03 15:51:43 -0800 |
---|---|---|
committer | Yash Tibrewal <yashkt@google.com> | 2019-01-03 15:51:43 -0800 |
commit | bac79bdabe840d105be23bd97a8ca8e1aa0eae73 (patch) | |
tree | 01af879b5aaf8708afd9b57895093754822bb291 /include/grpcpp/impl/codegen/interceptor.h | |
parent | 5a6183f1bdf3ff0c9e29fe454fde6e187e33fcc3 (diff) | |
parent | 2dda0bb21bbe6e0914cd12fbf3ffa013111cc8a3 (diff) |
Merge branch 'master' into failhijackedsend
Diffstat (limited to 'include/grpcpp/impl/codegen/interceptor.h')
-rw-r--r-- | include/grpcpp/impl/codegen/interceptor.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/grpcpp/impl/codegen/interceptor.h b/include/grpcpp/impl/codegen/interceptor.h index 58b4f36d95..0ad257bcd6 100644 --- a/include/grpcpp/impl/codegen/interceptor.h +++ b/include/grpcpp/impl/codegen/interceptor.h @@ -110,7 +110,13 @@ class InterceptorBatchMethods { /// Returns a modifable ByteBuffer holding the serialized form of the message /// that is going to be sent. Valid for PRE_SEND_MESSAGE interceptions. /// A return value of nullptr indicates that this ByteBuffer is not valid. - virtual ByteBuffer* GetSendMessage() = 0; + virtual ByteBuffer* GetSerializedSendMessage() = 0; + + /// Returns a non-modifiable pointer to the original non-serialized form of + /// the message. Valid for PRE_SEND_MESSAGE interceptions. A return value of + /// nullptr indicates that this field is not valid. Also note that this is + /// only supported for sync and callback APIs at the present moment. + virtual const void* GetSendMessage() = 0; /// Checks whether the SEND MESSAGE op succeeded. Valid for POST_SEND_MESSAGE /// interceptions. |