diff options
author | Tim Emiola <temiola@google.com> | 2015-01-21 16:26:34 -0800 |
---|---|---|
committer | Tim Emiola <temiola@google.com> | 2015-01-21 16:26:34 -0800 |
commit | ec12a7d972f1b9a64961efde535f466db9226d78 (patch) | |
tree | 183d04da35fe09f1d8d199c29746119cada11adb /src/node/interop/empty.proto | |
parent | 8a3ca244b789a36edfcfaa7cf1c5f4a5ece1427a (diff) | |
parent | 2021d031687418fe4fe09d2e2efcdc4b3e833ffc (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/node/interop/empty.proto')
-rw-r--r-- | src/node/interop/empty.proto | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/node/interop/empty.proto b/src/node/interop/empty.proto new file mode 100644 index 0000000000..c9920a22ee --- /dev/null +++ b/src/node/interop/empty.proto @@ -0,0 +1,19 @@ +syntax = "proto2"; + +package grpc.testing; + +// An empty message that you can re-use to avoid defining duplicated empty +// messages in your project. A typical example is to use it as argument or the +// return value of a service API. For instance: +// +// service Foo { +// rpc Bar (grpc.testing.Empty) returns (grpc.testing.Empty) { }; +// }; +// +// MOE:begin_strip +// The difference between this one and net/rpc/empty-message.proto is that +// 1) The generated message here is in proto2 C++ API. +// 2) The proto2.Empty has minimum dependencies +// (no message_set or net/rpc dependencies) +// MOE:end_strip +message Empty {} |