Michael Stapelberg 2f60868a73 proto: add example for GetExtension, SetExtension
(Adding an example to HasExtension as well seemed too much to me.)

The example message uses the same example names as the Generated Code Reference:
https://protobuf.dev/reference/go/go-generated-opaque/#extensions

The definition follows the Language Guide:
https://protobuf.dev/programming-guides/editions/#extensions

For golang/protobuf#1528

Change-Id: I7c5c4a0ac954678a5e0b10015374377b32bd7634
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/641876
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Chressie Himpel <chressie@google.com>
2025-01-13 00:43:16 -08:00
..
2022-05-19 09:32:38 +00:00
2023-09-05 14:55:28 +00:00
2024-12-11 03:16:51 -08:00
2024-12-11 03:16:51 -08:00
2023-09-05 14:55:28 +00:00
2024-12-11 03:16:51 -08:00
2022-01-04 22:57:54 +00:00
2024-12-11 03:16:51 -08:00
2024-12-11 03:16:51 -08:00
2022-01-04 22:57:54 +00:00
2022-01-04 22:57:54 +00:00
2023-09-05 14:55:28 +00:00
2024-12-11 03:16:51 -08:00
2024-12-11 03:16:51 -08:00