mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-02-23 06:41:09 +00:00
Once the ExtensionFieldV1.Value field is unexported, it forces all read operations to go through GetValue, which can perform some form of lazy retrieval. The SetEagerValue method is equivalent to setting the Value directly. The SetLazyValue method permits setting a lazy equivalent of the Value by simply storing a function closure returning the value. Change-Id: I410f74924f0957f5eadc82eea3669ca335a02701 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/177619 Reviewed-by: Damien Neil <dneil@google.com>