Skip to content

Commit 34a04c1

Browse files
ckennellycopybara-github
authored andcommittedFeb 5, 2024
Remove lazy=true from repeated fields.
This is currently a no-op in protoc. PiperOrigin-RevId: 604457261
1 parent 035d6ec commit 34a04c1

10 files changed

+10
-10
lines changed
 

‎csharp/protos/unittest.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ message TestAllTypes {
125125
repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
126126
repeated string repeated_cord = 55 [ctype = CORD];
127127

128-
repeated NestedMessage repeated_lazy_message = 57 [lazy = true];
128+
repeated NestedMessage repeated_lazy_message = 57 ;
129129

130130
// Singular with defaults
131131
optional int32 default_int32 = 61 [default = 41];

‎java/core/src/test/proto/com/google/protobuf/lazy_fields_lite.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ message LazyMessageLite {
1717
optional int32 num = 1;
1818
optional int32 num_with_default = 2 [default = 421];
1919
optional LazyInnerMessageLite inner = 3 [lazy = true];
20-
repeated LazyInnerMessageLite repeated_inner = 4 [lazy = true];
20+
repeated LazyInnerMessageLite repeated_inner = 4 ;
2121

2222
oneof oneof_field {
2323
int32 oneof_num = 5;

‎objectivec/Tests/unittest.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ message TestAllTypes {
104104
repeated string repeated_string_piece = 54 [ctype=STRING_PIECE];
105105
repeated string repeated_cord = 55 [ctype=CORD];
106106

107-
repeated NestedMessage repeated_lazy_message = 57 [lazy=true];
107+
repeated NestedMessage repeated_lazy_message = 57 ;
108108

109109
// Singular with defaults
110110
optional int32 default_int32 = 61 [default = 41 ];

‎src/google/protobuf/unittest.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ message TestAllTypes {
124124
repeated string repeated_string_piece = 54 [ctype=STRING_PIECE];
125125
repeated string repeated_cord = 55 [ctype=CORD];
126126

127-
repeated NestedMessage repeated_lazy_message = 57 [lazy=true];
127+
repeated NestedMessage repeated_lazy_message = 57 ;
128128

129129
// Singular with defaults
130130
optional int32 default_int32 = 61 [default = 41 ];

‎src/google/protobuf/unittest_lite.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ message TestAllTypesLite {
111111
repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
112112
repeated string repeated_cord = 55 [ctype = CORD];
113113

114-
repeated NestedMessage repeated_lazy_message = 57 [lazy = true];
114+
repeated NestedMessage repeated_lazy_message = 57 ;
115115

116116
// Singular with defaults
117117
optional int32 default_int32 = 61 [default = 41];

‎src/google/protobuf/unittest_no_field_presence.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ message TestAllTypes {
9292
repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
9393
repeated string repeated_cord = 55 [ctype = CORD];
9494

95-
repeated NestedMessage repeated_lazy_message = 57 [lazy = true];
95+
repeated NestedMessage repeated_lazy_message = 57 ;
9696

9797
oneof oneof_field {
9898
uint32 oneof_uint32 = 111;

‎src/google/protobuf/unittest_proto3.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ message TestAllTypes {
114114
repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
115115
repeated string repeated_cord = 55 [ctype = CORD];
116116

117-
repeated NestedMessage repeated_lazy_message = 57 [lazy = true];
117+
repeated NestedMessage repeated_lazy_message = 57 ;
118118

119119
oneof oneof_field {
120120
uint32 oneof_uint32 = 111;

‎src/google/protobuf/unittest_proto3_arena.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ message TestAllTypes {
131131
repeated string repeated_string_piece = 54 [ctype=STRING_PIECE];
132132
repeated string repeated_cord = 55 [ctype=CORD];
133133

134-
repeated NestedMessage repeated_lazy_message = 57 [lazy=true];
134+
repeated NestedMessage repeated_lazy_message = 57 ;
135135

136136
oneof oneof_field {
137137
uint32 oneof_uint32 = 111;

‎src/google/protobuf/unittest_proto3_arena_lite.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ message TestAllTypes {
112112
repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
113113
repeated string repeated_cord = 55 [ctype = CORD];
114114

115-
repeated NestedMessage repeated_lazy_message = 57 [lazy = true];
115+
repeated NestedMessage repeated_lazy_message = 57 ;
116116

117117
oneof oneof_field {
118118
uint32 oneof_uint32 = 111;

‎src/google/protobuf/unittest_proto3_lite.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ message TestAllTypes {
111111
repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
112112
repeated string repeated_cord = 55 [ctype = CORD];
113113

114-
repeated NestedMessage repeated_lazy_message = 57 [lazy = true];
114+
repeated NestedMessage repeated_lazy_message = 57 ;
115115

116116
oneof oneof_field {
117117
uint32 oneof_uint32 = 111;

0 commit comments

Comments
 (0)
Please sign in to comment.