From 09a08d1f7532c28562d9db4e0d063d00c0ca2dd9 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Wed, 30 Nov 2022 14:11:12 -0800 Subject: [PATCH] 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 --- src/google/protobuf/unittest.proto | 1 + 1 file changed, 1 insertion(+) diff --git a/src/google/protobuf/unittest.proto b/src/google/protobuf/unittest.proto index 58f449cf8a..fa95bbdf63 100644 --- a/src/google/protobuf/unittest.proto +++ b/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;