aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/tips/empty.proto
blob: adf66b5e614dc51bf180205a4374a79271ad0235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
syntax = "proto2";

package proto2;

// 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 (proto2.Empty) returns (proto2.Empty) { };
//   };
//
message Empty {}