1.
Use CamelCase (with an initial
capital) for message names:
message SongServerRequest {
required string song_name = 1;
}
Using this naming convention for field names gives you
accessors like the following:
public String getSongName() { ... }
public Builder setSongName(String v) { ... }
2.
Use CamelCase (with an initial
capital) for enum type names and CAPITALS_WITH_UNDERSCORES
for value names:
enum Foo {
FIRST_VALUE = 1;
SECOND_VALUE = 2;
}
3.
f your .proto
defines an RPC
service, you should use CamelCase (with an initial capital) for both the
service name and any RPC method names:
service FooService {
rpc GetSomething(FooRequest) returns (FooResponse);
}
分享到:
相关推荐
Google C++ Style Guide (中文版).pdf 指导C++编码规范
C# Coding Style Guide
Google C++ Style Guide中文.pdf
RTL Design Style Guide for Verilog HDL The RTL Design Style Guide, Second Edition RTL Design Style Guide, Second Edition, reflects the advances in design environments that , reflects the advances in ...
Google C++ Style Guide主要是给出了一套比较规范的C++编程习惯,对于变量命名,代码风格方面,给出了明确而细致的建议,具体你可以参见c++的google编程规范.
Google很早以前就发布了自己开源项目的编码风格规范文档,并公开在了GitHub,中文翻译版在 https://zh-google-styleguide.readthedocs.io/en/latest/ 。本文档是英文版的PDF版本,内含扉页目录链接,自己喜欢看PDF...
英文原版:http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml 中文翻译:http://docs.kissyui.com/docs/html/styleguide/google/javascriptguide.xml 排版整理:li3p AT yahoo.cn
Google C++ Style Guide
angularjs-styleguide, AngularJS styleguide用于团队 AngularJS styleguide ( ES2015 ) Up-to-date 1.6最佳实践。 架构,文件结构,组件,单向数据流,生命周期钩子。需要一个示例结构作为参考? 查看我的基于组件...
google c++ style guide。网页的形式可以打开看。
Google C++ Style Guide,学习一下google的C++编程规范把!
Google C++ Style Guide中文PDF
javascript-style-guide, Airbnb JavaScript Style Guide 中文版
Huawei Style Guide (Chinese).pdf
The Economist Style Guide (11th ed.) 经济学人写作指南11版 非扫描版
Google C++ Style Guide.pdf
epub版的Google C++ Style Guide,便于在iOS平台上用iBooks等阅读
Google'S R Style Guide 英文版,详细说明了R语言的代码规范,必备~
google-java-styleguide 下载后解压缩,即可查看相应内容