Skip to content

Commit 33338d9

Browse files
Add example for ABSL_FLAG with proto messages.
The example shows how to declare an ABSL_FLAG using a proto message type. PiperOrigin-RevId: 872933272
1 parent 68d29c9 commit 33338d9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

content/reference/cpp/cpp-generated.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,13 @@ The valid options are:
174174
Note that flag support for message types is not provided for `LITE_RUNTIME`
175175
configurations.
176176

177+
Example:
178+
179+
```cpp
180+
ABSL_FLAG(MyProtoType, my_proto_config, {},
181+
"This is a proto config description.");
182+
```
183+
177184
### Nested Types {#nested-types}
178185
179186
A message can be declared inside another message. For example:

0 commit comments

Comments
 (0)