diff options
author | Feso <gabor.fecher@gmail.com> | 2018-10-03 00:50:57 +0100 |
---|---|---|
committer | Feso <gabor.fecher@gmail.com> | 2018-10-03 00:50:57 +0100 |
commit | 44cecbb2f73d1aaf65fd67d2e413c891210f54f1 (patch) | |
tree | cc3cf0452b9a49e482303f6ae81c0c552fb8b857 /test/cpp/util/proto_file_parser.h | |
parent | 95dc4f1b8dfe30c7b983147690f483e0894687fd (diff) |
grpc_cli json support
Diffstat (limited to 'test/cpp/util/proto_file_parser.h')
-rw-r--r-- | test/cpp/util/proto_file_parser.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/test/cpp/util/proto_file_parser.h b/test/cpp/util/proto_file_parser.h index eb1d793c2b..d2b2bd753e 100644 --- a/test/cpp/util/proto_file_parser.h +++ b/test/cpp/util/proto_file_parser.h @@ -53,22 +53,38 @@ class ProtoFileParser { // used as the argument of Stub::Call() grpc::string GetFormattedMethodName(const grpc::string& method); - grpc::string GetSerializedProtoFromMethod( + grpc::string GetSerializedProtoFromMethodTextFormat( const grpc::string& method, const grpc::string& text_format_proto, bool is_request); + grpc::string GetSerializedProtoFromMethodJsonFormat( + const grpc::string& method, const grpc::string& json_format_proto, + bool is_request); + grpc::string GetTextFormatFromMethod(const grpc::string& method, const grpc::string& serialized_proto, bool is_request); - grpc::string GetSerializedProtoFromMessageType( + grpc::string GetJsonFormatFromMethod(const grpc::string& method, + const grpc::string& serialized_proto, + bool is_request); + + grpc::string GetSerializedProtoFromMessageTypeTextFormat( const grpc::string& message_type_name, const grpc::string& text_format_proto); + grpc::string GetSerializedProtoFromMessageTypeJsonFormat( + const grpc::string& message_type_name, + const grpc::string& json_format_proto); + grpc::string GetTextFormatFromMessageType( const grpc::string& message_type_name, const grpc::string& serialized_proto); + grpc::string GetJsonFormatFromMessageType( + const grpc::string& message_type_name, + const grpc::string& serialized_proto); + bool IsStreaming(const grpc::string& method, bool is_request); bool HasError() const { return has_error_; } |