LazyField::IsInitialized instead of LazyField::Get for oneof.

Oneof lazy fields can also benefit from prior verification just like
regular lazy fields.

PiperOrigin-RevId: 492014341
pull/11095/head
Protobuf Team Bot 2 years ago committed by Copybara-Service
parent 24743cd6c7
commit 09a08d1f75
  1. 1
      src/google/protobuf/unittest.proto

@ -888,6 +888,7 @@ message TestRequiredOneof {
int32 foo_int = 1;
string foo_string = 2;
NestedMessage foo_message = 3;
NestedMessage foo_lazy_message = 4 [lazy = true];
}
message NestedMessage {
required double required_double = 1;

Loading…
Cancel
Save