forked from uber/prototool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
google.proto
32 lines (22 loc) · 842 Bytes
/
google.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Protobuf Google Style Guide
//
// This style guide matches https://developers.google.com/protocol-buffers/docs/style.
syntax = "proto2";
package style.google;
// Use CamelCase (with an initial capital) for message names – for example, SongServerRequest.
// Use underscore_separated_names for field names – for example, song_name.
message SongServerRequest {
required string song_name = 1;
}
// Use CamelCase (with an initial capital) for enum type names and CAPITALS_WITH_UNDERSCORES for value names.
enum Foo {
FIRST_VALUE = 0;
SECOND_VALUE = 1;
}
// If your .proto defines an RPC service, you should use CamelCase (with an initial capital)
// for both the service name and any RPC method names.
message FooRequest {}
message FooResponse {}
service FooService {
rpc GetSomething(FooRequest) returns (FooResponse);
}