Skip to content

Commit 8cccec2

Browse files
authored
Improve description of Kotlin generated code
I'm not sure what the best wording is for this paragraph, but it's at least worth mentioning the generated `...OrNull` property.
1 parent 2400816 commit 8cccec2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

content/programming-guides/proto3.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,9 @@ from an input stream.
226226
message type, as well as a special `Builder` class for creating message
227227
class instances.
228228
* For **Kotlin**, in addition to the Java generated code, the compiler
229-
generates a `.kt` file for each message type, containing a DSL which can be
230-
used to simplify creating message instances.
229+
generates a `.kt` file for each message type with an improved Kotlin API.
230+
This includes a DSL which simplies creating message instances, a nullable
231+
field accessor, and a copy function.
231232
* **Python** is a little different — the Python compiler generates a module
232233
with a static descriptor of each message type in your `.proto`, which is
233234
then used with a *metaclass* to create the necessary Python data access

0 commit comments

Comments
 (0)