Skip to content

Commit 24363ac

Browse files
authored
doc: added info about filling nested message usecases
1 parent 0eaeea7 commit 24363ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ message SomeMessage {
208208
}
209209
```
210210

211+
Depending on your use case, you may find different approaches useful. For instance, if you can have multiple objects of the same type, you may specify values in the options of the nested message definition itself rather than in the parent message. On the other hand, defining an exact value in the parent message is useful if you want to get different values for the nested message in different fields.
212+
211213
#### enums
212214

213215
For enums, the value should be set as a string name of the enum value:

0 commit comments

Comments
 (0)