Add repeated and nested message fields to deprecated test proto

PiperOrigin-RevId: 489237987
This commit is contained in:
Karol M. Langner 2022-11-17 09:59:15 -08:00 committed by Copybara-Service
parent 72977f951c
commit 6e75fa152e
2 changed files with 18 additions and 0 deletions

View file

@ -822,6 +822,15 @@ class DescriptorCopyToProtoTest(unittest.TestCase):
deprecated: true
>
>
field: {
name: 'deprecated_repeated_string'
number: 4
label: LABEL_REPEATED
type: TYPE_STRING
options: {
deprecated: true
}
}
field {
name: "deprecated_message"
number: 3
@ -842,6 +851,13 @@ class DescriptorCopyToProtoTest(unittest.TestCase):
}
oneof_index: 0
}
field {
name: "nested"
number: 5
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".protobuf_unittest.TestDeprecatedFields"
}
oneof_decl {
name: "oneof_fields"
}