|
1 | 1 | import * as $protobuf from "../.."; |
2 | 2 |
|
3 | | -export interface IFileDescriptorSet { |
4 | | - file: IFileDescriptorProto[]; |
5 | | -} |
| 3 | +type FileDescriptorSetProperties = { |
| 4 | + file: FileDescriptorProtoProperties[]; |
| 5 | +}; |
6 | 6 |
|
7 | | -export interface IFileDescriptorProto { |
| 7 | +type FileDescriptorProtoProperties = { |
8 | 8 | name?: string; |
9 | 9 | package?: string; |
10 | 10 | dependency?: any; |
11 | 11 | publicDependency?: any; |
12 | 12 | weakDependency?: any; |
13 | | - messageType?: IDescriptorProto[]; |
14 | | - enumType?: IEnumDescriptorProto[]; |
15 | | - service?: IServiceDescriptorProto[]; |
16 | | - extension?: IFieldDescriptorProto[]; |
| 13 | + messageType?: DescriptorProtoProperties[]; |
| 14 | + enumType?: EnumDescriptorProtoProperties[]; |
| 15 | + service?: ServiceDescriptorProtoProperties[]; |
| 16 | + extension?: FieldDescriptorProtoProperties[]; |
17 | 17 | options?: any; |
18 | 18 | sourceCodeInfo?: any; |
19 | 19 | syntax?: string; |
20 | | -} |
| 20 | +}; |
21 | 21 |
|
22 | | -export interface IDescriptorProto { |
| 22 | +type DescriptorProtoProperties = { |
23 | 23 | name?: string; |
24 | | - field?: IFieldDescriptorProto[]; |
25 | | - extension?: IFieldDescriptorProto[]; |
26 | | - nestedType?: IDescriptorProto[]; |
27 | | - enumType?: IEnumDescriptorProto[]; |
28 | | - extensionRange?: IExtensionRange[]; |
29 | | - oneofDecl?: IOneofDescriptorProto[]; |
30 | | - options?: IMessageOptions; |
31 | | - reservedRange?: IReservedRange[]; |
| 24 | + field?: FieldDescriptorProtoProperties[]; |
| 25 | + extension?: FieldDescriptorProtoProperties[]; |
| 26 | + nestedType?: DescriptorProtoProperties[]; |
| 27 | + enumType?: EnumDescriptorProtoProperties[]; |
| 28 | + extensionRange?: ExtensionRangeProperties[]; |
| 29 | + oneofDecl?: OneofDescriptorProtoProperties[]; |
| 30 | + options?: MessageOptionsProperties; |
| 31 | + reservedRange?: ReservedRangeProperties[]; |
32 | 32 | reservedName?: string[]; |
33 | | -} |
| 33 | +}; |
34 | 34 |
|
35 | | -export interface IMessageOptions { |
| 35 | +type MessageOptionsProperties = { |
36 | 36 | mapEntry?: boolean; |
37 | | -} |
| 37 | +}; |
38 | 38 |
|
39 | | -export interface IExtensionRange { |
| 39 | +type ExtensionRangeProperties = { |
40 | 40 | start?: number; |
41 | 41 | end?: number; |
42 | | -} |
| 42 | +}; |
43 | 43 |
|
44 | | -export interface IReservedRange { |
| 44 | +type ReservedRangeProperties = { |
45 | 45 | start?: number; |
46 | 46 | end?: number; |
47 | | -} |
| 47 | +}; |
48 | 48 |
|
49 | | -export interface IFieldOptions { |
| 49 | +type FieldOptionsProperties = { |
50 | 50 | packed?: boolean; |
51 | | -} |
| 51 | +}; |
52 | 52 |
|
53 | | -export interface IFieldDescriptorProto { |
| 53 | +type FieldDescriptorProtoProperties = { |
54 | 54 | name?: string; |
55 | 55 | number?: number; |
56 | | - label?: IFieldDescriptorProto_Label; |
57 | | - type?: IFieldDescriptorProto_Type; |
| 56 | + label?: FieldDescriptorProtoLabel; |
| 57 | + type?: FieldDescriptorProtoType; |
58 | 58 | typeName?: string; |
59 | 59 | extendee?: string; |
60 | 60 | defaultValue?: any; |
61 | 61 | oneofIndex?: number; |
62 | 62 | jsonName?: any; |
63 | | - options?: IFieldOptions; |
64 | | -} |
| 63 | + options?: FieldOptionsProperties; |
| 64 | +}; |
65 | 65 |
|
66 | | -type IFieldDescriptorProto_Label = number; |
| 66 | +type FieldDescriptorProtoLabel = number; |
67 | 67 |
|
68 | | -type IFieldDescriptorProto_Type = number; |
| 68 | +type FieldDescriptorProtoType = number; |
69 | 69 |
|
70 | | -export interface IEnumDescriptorProto { |
| 70 | +type EnumDescriptorProtoProperties = { |
71 | 71 | name?: string; |
72 | | - value?: IEnumValueDescriptorProto[]; |
73 | | - options?: IEnumOptions; |
74 | | -} |
| 72 | + value?: EnumValueDescriptorProtoProperties[]; |
| 73 | + options?: EnumOptionsProperties; |
| 74 | +}; |
75 | 75 |
|
76 | | -export interface IEnumValueDescriptorProto { |
| 76 | +type EnumValueDescriptorProtoProperties = { |
77 | 77 | name?: string; |
78 | 78 | number?: number; |
79 | 79 | options?: any; |
80 | | -} |
| 80 | +}; |
81 | 81 |
|
82 | | -export interface IEnumOptions { |
| 82 | +type EnumOptionsProperties = { |
83 | 83 | allowAlias?: boolean; |
84 | | -} |
| 84 | +}; |
85 | 85 |
|
86 | | -export interface IOneofDescriptorProto { |
| 86 | +type OneofDescriptorProtoProperties = { |
87 | 87 | name?: string; |
88 | 88 | options?: any; |
89 | | -} |
| 89 | +}; |
90 | 90 |
|
91 | | -export interface IServiceDescriptorProto { |
| 91 | +type ServiceDescriptorProtoProperties = { |
92 | 92 | name?: string; |
93 | | - method?: IMethodDescriptorProto[]; |
| 93 | + method?: MethodDescriptorProtoProperties[]; |
94 | 94 | options?: any; |
95 | | -} |
| 95 | +}; |
96 | 96 |
|
97 | | -export interface IMethodDescriptorProto { |
| 97 | +type MethodDescriptorProtoProperties = { |
98 | 98 | name?: string; |
99 | 99 | inputType?: string; |
100 | 100 | outputType?: string; |
101 | 101 | options?: any; |
102 | 102 | clientStreaming?: boolean; |
103 | 103 | serverStreaming?: boolean; |
104 | | -} |
| 104 | +}; |
105 | 105 | export const FileDescriptorSet: $protobuf.Type; |
106 | 106 | export const FileDescriptorProto: $protobuf.Type; |
107 | 107 | export const DescriptorProto: $protobuf.Type; |
|
0 commit comments