File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,22 @@ def GetMessageClassesForFiles(files, pool):
56
56
This will find and resolve dependencies, failing if the descriptor
57
57
pool cannot satisfy them.
58
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
+
59
75
Args:
60
76
files: The file names to extract messages from.
61
77
pool: The descriptor pool to find the files including the dependent files.
You can’t perform that action at this time.
0 commit comments