@@ -42,11 +42,9 @@ message SearchRequest {
4242* The first line of the file specifies that you're using the proto2 revision
4343 of the protobuf language spec.
4444
45- * The ` edition ` (or ` syntax ` for proto2/proto3) must be the first
46- non-empty, non-comment line of the file.
47- * If no ` edition ` or ` syntax ` is specified, the protocol buffer compiler
48- will assume you are using
49- [ proto2] ( /programming-guides/proto2 ) .
45+ * The ` syntax ` must be the first non-empty, non-comment line of the file.
46+ * If no ` syntax ` is specified, the protocol buffer compiler will assume
47+ you are using proto2.
5048
5149* The ` SearchRequest ` message definition specifies three fields (name/value
5250 pairs), one for each piece of data that you want to include in this type of
@@ -691,21 +689,21 @@ appropriate language).
691689
692690In proto2, you can specify explicit default values for singular non-message
693691fields. For example, let's say you want to provide a default value of 10 for the
694- ` SearchRequest.result_per_page ` field:
692+ ` SearchRequest.results_per_page ` field:
695693
696694``` proto
697- optional int32 result_per_page = 3 [default = 10];
695+ optional int32 results_per_page = 3 [default = 10];
698696```
699697
700- If the sender does not specify ` result_per_page ` , the receiver will observe the
698+ If the sender does not specify ` results_per_page ` , the receiver will observe the
701699following state:
702700
703- * The result_per_page field is not present. That is, the
704- ` has_result_per_page ()` (hazzer method) method would return ` false ` .
705- * The value of ` result_per_page ` (returned from the "getter") is ` 10 ` .
701+ * The ` results_per_page ` field is not present. That is, the
702+ ` has_results_per_page ()` (hazzer method) method would return ` false ` .
703+ * The value of ` results_per_page ` (returned from the "getter") is ` 10 ` .
706704
707- If the sender does send a value for ` result_per_page ` the default value of 10 is
708- ignored and the sender's value is returned from the "getter".
705+ If the sender does send a value for ` results_per_page ` the default value of 10
706+ is ignored and the sender's value is returned from the "getter".
709707
710708See the [ generated code guide] ( /reference/ ) for your
711709chosen language for more details about how defaults work in generated code.
@@ -771,8 +769,8 @@ explicitly overridden like this:
771769You can define aliases by assigning the same value to different enum constants.
772770To do this you need to set the ` allow_alias ` option to ` true ` . Otherwise, the
773771protocol buffer compiler generates a warning message when aliases are
774- found. Though all alias values are valid during deserialization, the first value
775- is always used when serializing .
772+ found. Though all alias values are valid for serialization, only the first value
773+ is used when deserializing .
776774
777775``` proto
778776enum EnumAllowingAlias {
@@ -2371,7 +2369,7 @@ protoc --proto_path=IMPORT_PATH --cpp_out=DST_DIR --java_out=DST_DIR --python_ou
23712369 [ Python generated code reference] ( /reference/python/python-generated )
23722370 for more.
23732371 * ` --go_out ` generates Go code in ` DST_DIR ` . See the
2374- [ Go generated code reference] ( /reference/go/go-generated )
2372+ [ Go generated code reference] ( /reference/go/go-generated-opaque )
23752373 for more.
23762374 * ` --ruby_out ` generates Ruby code in ` DST_DIR ` . See the
23772375 [ Ruby generated code reference] ( /reference/ruby/ruby-generated )
0 commit comments