You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: ext/descriptor/README.md
+33-33
Original file line number
Diff line number
Diff line change
@@ -34,39 +34,39 @@ API
34
34
35
35
The extension adds `.fromDescriptor(descriptor[, syntax])` and `#toDescriptor([syntax])` methods to reflection objects and exports the `.google.protobuf` namespace of the internally used `Root` instance containing the following types present in descriptor.proto:
| FileDescriptorProto | | dependencies are not supported
41
+
| FileOptions ||
42
+
|FileOptionsOptimizeMode||
43
+
| SourceCodeInfo | | not supported
44
+
|SourceCodeInfoLocation||
45
+
| GeneratedCodeInfo | | not supported
46
+
|GeneratedCodeInfoAnnotation||
47
+
|**DescriptorProto**| Type |
48
+
| MessageOptions ||
49
+
|DescriptorProtoExtensionRange||
50
+
|DescriptorProtoReservedRange||
51
+
|**FieldDescriptorProto**| Field |
52
+
|FieldDescriptorProtoLabel||
53
+
|FieldDescriptorProtoType||
54
+
| FieldOptions ||
55
+
|FieldOptionsCType||
56
+
|FieldOptionsJSType||
57
+
|**OneofDescriptorProto**| OneOf |
58
+
| OneofOptions ||
59
+
|**EnumDescriptorProto**| Enum |
60
+
| EnumOptions ||
61
+
| EnumValueDescriptorProto ||
62
+
| EnumValueOptions | | not supported
63
+
|**ServiceDescriptorProto**| Service |
64
+
| ServiceOptions ||
65
+
|**MethodDescriptorProto**| Method |
66
+
| MethodOptions ||
67
+
| UninterpretedOption | | not supported
68
+
|UninterpretedOptionNamePart||
69
69
70
70
Note that not all features of descriptor.proto translate perfectly to a protobuf.js root instance. A root instance has only limited knowlege of packages or individual files for example, which is then compensated by guessing and generating fictional file names.
71
71
72
-
When using TypeScript, the respective `...$Properties` types can be used to reference specific message types (i.e. `protobuf.Message<DescriptorProto$Properties>`).
72
+
When using TypeScript, the respective interface types can be used to reference specific message instances (i.e. `protobuf.Message<IDescriptorProto>`).
0 commit comments