mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
Add repeated and nested message fields to deprecated test proto
PiperOrigin-RevId: 489237987
This commit is contained in:
parent
72977f951c
commit
6e75fa152e
2 changed files with 18 additions and 0 deletions
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue