Skip to content

Commit a999a80

Browse files
committed
use legacy way to check for is_repeated to be compatible w/ older protos
1 parent c2d3eb9 commit a999a80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/gen_payload_visitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def walk(self, desc: Descriptor) -> bool:
203203
# Process regular fields first
204204
for field in regular_fields:
205205
# Repeated fields (including maps which are represented as repeated messages)
206-
if field.is_repeated:
206+
if field.label == FieldDescriptor.LABEL_REPEATED:
207207
if (
208208
field.message_type is not None
209209
and field.message_type.GetOptions().map_entry

0 commit comments

Comments
 (0)