We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06bb281 commit 9befb58Copy full SHA for 9befb58
python/google/protobuf/message_factory.py
@@ -56,6 +56,22 @@ def GetMessageClassesForFiles(files, pool):
56
This will find and resolve dependencies, failing if the descriptor
57
pool cannot satisfy them.
58
59
+ This will not return the classes for nested types within those classes, for
60
+ those, use GetMessageClass() on the nested types within their containing
61
+ messages.
62
+
63
+ For example, for the message:
64
65
+ message NestedTypeMessage {
66
+ message NestedType {
67
+ string data = 1;
68
+ }
69
+ NestedType nested = 1;
70
71
72
+ NestedTypeMessage will be in the result, but not
73
+ NestedTypeMessage.NestedType.
74
75
Args:
76
files: The file names to extract messages from.
77
pool: The descriptor pool to find the files including the dependent files.
0 commit comments