@@ -13,8 +13,8 @@ This page describes exactly what Objective-C code the protocol buffer compiler
1313generates for any given protocol definition. Any differences between proto2 and
1414proto3 generated code are highlighted. You should read the
1515[ proto2 language guide] ( /programming-guides/proto ) and/or
16- [ proto3 language guide] ( /programming-guides/proto3 ) before reading this
17- document.
16+ [ proto3 language guide] ( /programming-guides/proto3 )
17+ before reading this document.
1818
1919## Compiler invocation {#invocation}
2020
@@ -171,11 +171,11 @@ The behaviors for this interface are as follows:
171171### Unknown fields (proto2 only)
172172
173173If a message created with an
174- [ older version] ( /programming-guides/proto#updating ) of your .proto
175- definition is parsed with code generated from a newer version (or vice versa),
176- the message may contain optional or repeated fields that the \" new \" code does
177- not recognize. In proto2 generated code, these fields are not discarded and are
178- stored in the message's ` unknownFields ` property.
174+ [ older version] ( /programming-guides/proto#updating ) of
175+ your .proto definition is parsed with code generated from a newer version (or
176+ vice versa), the message may contain optional or repeated fields that the
177+ \" new \" code does not recognize. In proto2 generated code, these fields are not
178+ discarded and are stored in the message's ` unknownFields ` property.
179179
180180``` objc
181181@property(nonatomic, copy, nullable) GPBUnknownFieldSet *unknownFields;
@@ -289,8 +289,8 @@ typedef GPB_ENUM(Foo_FieldNumber) {
289289
290290#### Default values {#default}
291291
292- The [default value](/programming-guides/proto3#default) for
293- numeric types is `0`.
292+ The [default value](/programming-guides/proto3#default)
293+ for numeric types is `0`.
294294
295295The default value for strings is `@""`, and the default value for bytes is
296296`[NSData data]`.
@@ -443,8 +443,8 @@ typedef GPB_ENUM(Foo_FieldNumber) {
443443
444444#### Default values (optional fields only) {#default}
445445
446- The [default value](/programming-guides/proto#optional) for
447- numeric types, if no explicit default was specified by the user, is `0`.
446+ The [default value](/programming-guides/proto#optional)
447+ for numeric types, if no explicit default was specified by the user, is `0`.
448448
449449The default value for strings is `@""`, and the default value for bytes is
450450`[NSData data]`.
@@ -542,10 +542,10 @@ For string, bytes and message fields, elements of the array are `NSString*`,
542542
543543#### Default values {#repeateddefault}
544544
545- The [default value](/programming-guides/proto3#default) for a
546- repeated field is to be empty. In Objective-C generated code, this is an empty
547- `GPB<VALUE>Array`. If you access an empty repeated field, you'll get back an
548- empty array that you can update like any other repeated field array.
545+ The [default value](/programming-guides/proto3#default)
546+ for a repeated field is to be empty. In Objective-C generated code, this is an
547+ empty `GPB<VALUE>Array`. If you access an empty repeated field, you'll get back
548+ an empty array that you can update like any other repeated field array.
549549
550550```objc
551551Foo *myFoo = [[Foo alloc] init];
@@ -677,8 +677,9 @@ function and to access raw values.
677677
678678### Oneof fields {#oneof}
679679
680- Given a message with [ oneof] ( /programming-guides/proto3#oneof )
681- field definitions:
680+ Given a message with
681+ [ oneof] ( /programming-guides/proto3#oneof ) field
682+ definitions:
682683
683684``` proto
684685message Order {
@@ -769,8 +770,8 @@ where:
769770
770771#### Default values {#repeateddefault}
771772
772- The [ default value] ( /programming-guides/proto3#default ) for a map
773- field is empty. In Objective-C generated code, this is an empty
773+ The [ default value] ( /programming-guides/proto3#default )
774+ for a map field is empty. In Objective-C generated code, this is an empty
774775` GBP<KEY><VALUE>Dictionary ` . If you access an empty map field, you'll get back
775776an empty dictionary that you can update like any other map field.
776777
@@ -1100,9 +1101,9 @@ If you use any of the message types provided with proto3, they will in general
11001101just use their proto definitions in generated Objective-C code, though we supply
11011102some basic conversion methods in categories to make using them simpler. Note
11021103that we do not have special APIs for all well-known types yet, including
1103- [ ` Any ` ] ( /programming-guides/proto3#any ) (there is currently no
1104- helper method to convert an ` Any ` 's message value into a message of the
1105- appropriate type).
1104+ [ ` Any ` ] ( /programming-guides/proto3#any ) (there is
1105+ currently no helper method to convert an ` Any ` 's message value into a message of
1106+ the appropriate type).
11061107
11071108### Time Stamps
11081109
0 commit comments