aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compiler/protobuf_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/protobuf_plugin.h')
-rw-r--r--src/compiler/protobuf_plugin.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/compiler/protobuf_plugin.h b/src/compiler/protobuf_plugin.h
index 789e4cd834..bb77063796 100644
--- a/src/compiler/protobuf_plugin.h
+++ b/src/compiler/protobuf_plugin.h
@@ -92,10 +92,14 @@ class ProtoBufMethod : public grpc_generator::Method {
return method_->client_streaming() && !method_->server_streaming();
}
+ bool python_ClientStreaming() const { return method_->client_streaming(); }
+
bool ServerStreaming() const {
return !method_->client_streaming() && method_->server_streaming();
}
+ bool python_ServerStreaming() const { return method_->server_streaming(); }
+
bool BidiStreaming() const {
return method_->client_streaming() && method_->server_streaming();
}
@@ -207,4 +211,4 @@ class ProtoBufFile : public grpc_generator::File {
const grpc::protobuf::FileDescriptor *file_;
};
-#endif // GRPC_INTERNAL_COMPILER_PROTOBUF_PLUGIN_H \ No newline at end of file
+#endif // GRPC_INTERNAL_COMPILER_PROTOBUF_PLUGIN_H