@dxos/protobuf-compiler 0.6.3-main.cc41ccb → 0.6.3-main.d76104f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -134,7 +134,7 @@ export interface ComplexFields {
134
134
  googleAny: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
135
135
  /**
136
136
  * Options:
137
- * - preserve_any = true
137
+ * - (preserve_any) = true
138
138
  */
139
139
  undecodedAny: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
140
140
  importedAny: example_testing_any.Any;
@@ -1,11 +1,255 @@
1
- export interface Empty {
2
- }
3
1
  export interface Any {
4
2
  type_url: string;
5
3
  value: Uint8Array;
6
4
  }
5
+ export interface FileDescriptorSet {
6
+ file?: FileDescriptorProto[];
7
+ }
8
+ export interface FileDescriptorProto {
9
+ name: string;
10
+ package: string;
11
+ dependency?: string[];
12
+ /**
13
+ * Options:
14
+ * - packed = false
15
+ */
16
+ publicDependency?: number[];
17
+ /**
18
+ * Options:
19
+ * - packed = false
20
+ */
21
+ weakDependency?: number[];
22
+ messageType?: DescriptorProto[];
23
+ enumType?: EnumDescriptorProto[];
24
+ service?: ServiceDescriptorProto[];
25
+ extension?: FieldDescriptorProto[];
26
+ options: FileOptions;
27
+ sourceCodeInfo: SourceCodeInfo;
28
+ syntax: string;
29
+ }
30
+ export interface DescriptorProto {
31
+ name: string;
32
+ field?: FieldDescriptorProto[];
33
+ extension?: FieldDescriptorProto[];
34
+ nestedType?: DescriptorProto[];
35
+ enumType?: EnumDescriptorProto[];
36
+ extensionRange?: DescriptorProto.ExtensionRange[];
37
+ oneofDecl?: OneofDescriptorProto[];
38
+ options: MessageOptions;
39
+ reservedRange?: DescriptorProto.ReservedRange[];
40
+ reservedName?: string[];
41
+ }
42
+ export declare namespace DescriptorProto {
43
+ interface ExtensionRange {
44
+ start: number;
45
+ end: number;
46
+ }
47
+ interface ReservedRange {
48
+ start: number;
49
+ end: number;
50
+ }
51
+ }
52
+ export interface FieldDescriptorProto {
53
+ name: string;
54
+ number: number;
55
+ label: FieldDescriptorProto.Label;
56
+ type: FieldDescriptorProto.Type;
57
+ typeName: string;
58
+ extendee: string;
59
+ defaultValue: string;
60
+ oneofIndex: number;
61
+ jsonName: string;
62
+ options: FieldOptions;
63
+ }
64
+ export declare namespace FieldDescriptorProto {
65
+ enum Type {
66
+ TYPE_DOUBLE = 1,
67
+ TYPE_FLOAT = 2,
68
+ TYPE_INT64 = 3,
69
+ TYPE_UINT64 = 4,
70
+ TYPE_INT32 = 5,
71
+ TYPE_FIXED64 = 6,
72
+ TYPE_FIXED32 = 7,
73
+ TYPE_BOOL = 8,
74
+ TYPE_STRING = 9,
75
+ TYPE_GROUP = 10,
76
+ TYPE_MESSAGE = 11,
77
+ TYPE_BYTES = 12,
78
+ TYPE_UINT32 = 13,
79
+ TYPE_ENUM = 14,
80
+ TYPE_SFIXED32 = 15,
81
+ TYPE_SFIXED64 = 16,
82
+ TYPE_SINT32 = 17,
83
+ TYPE_SINT64 = 18
84
+ }
85
+ enum Label {
86
+ LABEL_OPTIONAL = 1,
87
+ LABEL_REQUIRED = 2,
88
+ LABEL_REPEATED = 3
89
+ }
90
+ }
91
+ export interface OneofDescriptorProto {
92
+ name: string;
93
+ options: OneofOptions;
94
+ }
95
+ export interface EnumDescriptorProto {
96
+ name: string;
97
+ value?: EnumValueDescriptorProto[];
98
+ options: EnumOptions;
99
+ }
100
+ export interface EnumValueDescriptorProto {
101
+ name: string;
102
+ number: number;
103
+ options: EnumValueOptions;
104
+ }
105
+ export interface ServiceDescriptorProto {
106
+ name: string;
107
+ method?: MethodDescriptorProto[];
108
+ options: ServiceOptions;
109
+ }
110
+ export interface MethodDescriptorProto {
111
+ name: string;
112
+ inputType: string;
113
+ outputType: string;
114
+ options: MethodOptions;
115
+ clientStreaming: boolean;
116
+ serverStreaming: boolean;
117
+ }
118
+ export interface FileOptions {
119
+ javaPackage: string;
120
+ javaOuterClassname: string;
121
+ javaMultipleFiles: boolean;
122
+ /**
123
+ * Options:
124
+ * - deprecated = true
125
+ */
126
+ javaGenerateEqualsAndHash: boolean;
127
+ javaStringCheckUtf8: boolean;
128
+ /**
129
+ * Options:
130
+ * - default = "SPEED"
131
+ */
132
+ optimizeFor: FileOptions.OptimizeMode;
133
+ goPackage: string;
134
+ ccGenericServices: boolean;
135
+ javaGenericServices: boolean;
136
+ pyGenericServices: boolean;
137
+ deprecated: boolean;
138
+ ccEnableArenas: boolean;
139
+ objcClassPrefix: string;
140
+ csharpNamespace: string;
141
+ uninterpretedOption?: UninterpretedOption[];
142
+ }
143
+ export declare namespace FileOptions {
144
+ enum OptimizeMode {
145
+ SPEED = 1,
146
+ CODE_SIZE = 2,
147
+ LITE_RUNTIME = 3
148
+ }
149
+ }
150
+ export interface MessageOptions {
151
+ messageSetWireFormat: boolean;
152
+ noStandardDescriptorAccessor: boolean;
153
+ deprecated: boolean;
154
+ mapEntry: boolean;
155
+ uninterpretedOption?: UninterpretedOption[];
156
+ }
157
+ export interface FieldOptions {
158
+ /**
159
+ * Options:
160
+ * - default = "STRING"
161
+ */
162
+ ctype: FieldOptions.CType;
163
+ packed: boolean;
164
+ /**
165
+ * Options:
166
+ * - default = "JS_NORMAL"
167
+ */
168
+ jstype: FieldOptions.JSType;
169
+ lazy: boolean;
170
+ deprecated: boolean;
171
+ weak: boolean;
172
+ uninterpretedOption?: UninterpretedOption[];
173
+ /**
174
+ * Options:
175
+ * - proto3_optional = true
176
+ */
177
+ ".example.testing.types.preserveAny"?: boolean;
178
+ }
179
+ export declare namespace FieldOptions {
180
+ enum CType {
181
+ STRING = 0,
182
+ CORD = 1,
183
+ STRING_PIECE = 2
184
+ }
185
+ enum JSType {
186
+ JS_NORMAL = 0,
187
+ JS_STRING = 1,
188
+ JS_NUMBER = 2
189
+ }
190
+ }
191
+ export interface OneofOptions {
192
+ uninterpretedOption?: UninterpretedOption[];
193
+ }
194
+ export interface EnumOptions {
195
+ allowAlias: boolean;
196
+ deprecated: boolean;
197
+ uninterpretedOption?: UninterpretedOption[];
198
+ }
199
+ export interface EnumValueOptions {
200
+ deprecated: boolean;
201
+ uninterpretedOption?: UninterpretedOption[];
202
+ }
203
+ export interface ServiceOptions {
204
+ deprecated: boolean;
205
+ uninterpretedOption?: UninterpretedOption[];
206
+ }
207
+ export interface MethodOptions {
208
+ deprecated: boolean;
209
+ uninterpretedOption?: UninterpretedOption[];
210
+ }
211
+ export interface UninterpretedOption {
212
+ name?: UninterpretedOption.NamePart[];
213
+ identifierValue: string;
214
+ positiveIntValue: string;
215
+ negativeIntValue: string;
216
+ doubleValue: number;
217
+ stringValue: Uint8Array;
218
+ aggregateValue: string;
219
+ }
220
+ export declare namespace UninterpretedOption {
221
+ interface NamePart {
222
+ namePart: string;
223
+ isExtension: boolean;
224
+ }
225
+ }
226
+ export interface SourceCodeInfo {
227
+ location?: SourceCodeInfo.Location[];
228
+ }
229
+ export declare namespace SourceCodeInfo {
230
+ interface Location {
231
+ path?: number[];
232
+ span?: number[];
233
+ leadingComments: string;
234
+ trailingComments: string;
235
+ leadingDetachedComments?: string[];
236
+ }
237
+ }
238
+ export interface GeneratedCodeInfo {
239
+ annotation?: GeneratedCodeInfo.Annotation[];
240
+ }
241
+ export declare namespace GeneratedCodeInfo {
242
+ interface Annotation {
243
+ path?: number[];
244
+ sourceFile: string;
245
+ begin: number;
246
+ end: number;
247
+ }
248
+ }
7
249
  export interface Timestamp {
8
250
  seconds: string;
9
251
  nanos: number;
10
252
  }
253
+ export interface Empty {
254
+ }
11
255
  //# sourceMappingURL=protobuf.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"protobuf.d.ts","sourceRoot":"","sources":["../../../../../test/proto/gen/google/protobuf.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,KAAK;CACrB;AACD,MAAM,WAAW,GAAG;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,UAAU,CAAC;CACrB;AACD,MAAM,WAAW,SA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", { value: true });
3
+ exports.FieldOptions = exports.FileOptions = exports.FieldDescriptorProto = void 0;
4
+ var FieldDescriptorProto;
5
+ (function (FieldDescriptorProto) {
6
+ let Type;
7
+ (function (Type) {
8
+ Type[Type["TYPE_DOUBLE"] = 1] = "TYPE_DOUBLE";
9
+ Type[Type["TYPE_FLOAT"] = 2] = "TYPE_FLOAT";
10
+ Type[Type["TYPE_INT64"] = 3] = "TYPE_INT64";
11
+ Type[Type["TYPE_UINT64"] = 4] = "TYPE_UINT64";
12
+ Type[Type["TYPE_INT32"] = 5] = "TYPE_INT32";
13
+ Type[Type["TYPE_FIXED64"] = 6] = "TYPE_FIXED64";
14
+ Type[Type["TYPE_FIXED32"] = 7] = "TYPE_FIXED32";
15
+ Type[Type["TYPE_BOOL"] = 8] = "TYPE_BOOL";
16
+ Type[Type["TYPE_STRING"] = 9] = "TYPE_STRING";
17
+ Type[Type["TYPE_GROUP"] = 10] = "TYPE_GROUP";
18
+ Type[Type["TYPE_MESSAGE"] = 11] = "TYPE_MESSAGE";
19
+ Type[Type["TYPE_BYTES"] = 12] = "TYPE_BYTES";
20
+ Type[Type["TYPE_UINT32"] = 13] = "TYPE_UINT32";
21
+ Type[Type["TYPE_ENUM"] = 14] = "TYPE_ENUM";
22
+ Type[Type["TYPE_SFIXED32"] = 15] = "TYPE_SFIXED32";
23
+ Type[Type["TYPE_SFIXED64"] = 16] = "TYPE_SFIXED64";
24
+ Type[Type["TYPE_SINT32"] = 17] = "TYPE_SINT32";
25
+ Type[Type["TYPE_SINT64"] = 18] = "TYPE_SINT64";
26
+ })(Type = FieldDescriptorProto.Type || (FieldDescriptorProto.Type = {}));
27
+ let Label;
28
+ (function (Label) {
29
+ Label[Label["LABEL_OPTIONAL"] = 1] = "LABEL_OPTIONAL";
30
+ Label[Label["LABEL_REQUIRED"] = 2] = "LABEL_REQUIRED";
31
+ Label[Label["LABEL_REPEATED"] = 3] = "LABEL_REPEATED";
32
+ })(Label = FieldDescriptorProto.Label || (FieldDescriptorProto.Label = {}));
33
+ })(FieldDescriptorProto || (exports.FieldDescriptorProto = FieldDescriptorProto = {}));
34
+ var FileOptions;
35
+ (function (FileOptions) {
36
+ let OptimizeMode;
37
+ (function (OptimizeMode) {
38
+ OptimizeMode[OptimizeMode["SPEED"] = 1] = "SPEED";
39
+ OptimizeMode[OptimizeMode["CODE_SIZE"] = 2] = "CODE_SIZE";
40
+ OptimizeMode[OptimizeMode["LITE_RUNTIME"] = 3] = "LITE_RUNTIME";
41
+ })(OptimizeMode = FileOptions.OptimizeMode || (FileOptions.OptimizeMode = {}));
42
+ })(FileOptions || (exports.FileOptions = FileOptions = {}));
43
+ var FieldOptions;
44
+ (function (FieldOptions) {
45
+ let CType;
46
+ (function (CType) {
47
+ CType[CType["STRING"] = 0] = "STRING";
48
+ CType[CType["CORD"] = 1] = "CORD";
49
+ CType[CType["STRING_PIECE"] = 2] = "STRING_PIECE";
50
+ })(CType = FieldOptions.CType || (FieldOptions.CType = {}));
51
+ let JSType;
52
+ (function (JSType) {
53
+ JSType[JSType["JS_NORMAL"] = 0] = "JS_NORMAL";
54
+ JSType[JSType["JS_STRING"] = 1] = "JS_STRING";
55
+ JSType[JSType["JS_NUMBER"] = 2] = "JS_NUMBER";
56
+ })(JSType = FieldOptions.JSType || (FieldOptions.JSType = {}));
57
+ })(FieldOptions || (exports.FieldOptions = FieldOptions = {}));
3
58
  //# sourceMappingURL=protobuf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"protobuf.js","sourceRoot":"","sources":["../../../../../test/proto/gen/google/protobuf.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"protobuf.js","sourceRoot":"","sources":["../../../../../test/proto/gen/google/protobuf.ts"],"names":[],"mappings":";;;AAsEA,IAAiB,oBAAoB,CA0BpC;AA1BD,WAAiB,oBAAoB;IACjC,IAAY,IAmBX;IAnBD,WAAY,IAAI;QACZ,6CAAe,CAAA;QACf,2CAAc,CAAA;QACd,2CAAc,CAAA;QACd,6CAAe,CAAA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_types.WithTimestamp;
27
27
  "example.testing.util.Test": example_testing_util.Test;
28
28
  "google.protobuf.Any": google_protobuf.Any;
29
+ "google.protobuf.DescriptorProto": google_protobuf.DescriptorProto;
30
+ "google.protobuf.DescriptorProto.ExtensionRange": google_protobuf.DescriptorProto.ExtensionRange;
31
+ "google.protobuf.DescriptorProto.ReservedRange": google_protobuf.DescriptorProto.ReservedRange;
29
32
  "google.protobuf.Empty": google_protobuf.Empty;
33
+ "google.protobuf.EnumDescriptorProto": google_protobuf.EnumDescriptorProto;
34
+ "google.protobuf.EnumOptions": google_protobuf.EnumOptions;
35
+ "google.protobuf.EnumValueDescriptorProto": google_protobuf.EnumValueDescriptorProto;
36
+ "google.protobuf.EnumValueOptions": google_protobuf.EnumValueOptions;
37
+ "google.protobuf.FieldDescriptorProto": google_protobuf.FieldDescriptorProto;
38
+ "google.protobuf.FieldDescriptorProto.Label": google_protobuf.FieldDescriptorProto.Label;
39
+ "google.protobuf.FieldDescriptorProto.Type": google_protobuf.FieldDescriptorProto.Type;
40
+ "google.protobuf.FieldOptions": google_protobuf.FieldOptions;
41
+ "google.protobuf.FieldOptions.CType": google_protobuf.FieldOptions.CType;
42
+ "google.protobuf.FieldOptions.JSType": google_protobuf.FieldOptions.JSType;
43
+ "google.protobuf.FileDescriptorProto": google_protobuf.FileDescriptorProto;
44
+ "google.protobuf.FileDescriptorSet": google_protobuf.FileDescriptorSet;
45
+ "google.protobuf.FileOptions": google_protobuf.FileOptions;
46
+ "google.protobuf.FileOptions.OptimizeMode": google_protobuf.FileOptions.OptimizeMode;
47
+ "google.protobuf.GeneratedCodeInfo": google_protobuf.GeneratedCodeInfo;
48
+ "google.protobuf.GeneratedCodeInfo.Annotation": google_protobuf.GeneratedCodeInfo.Annotation;
49
+ "google.protobuf.MessageOptions": google_protobuf.MessageOptions;
50
+ "google.protobuf.MethodDescriptorProto": google_protobuf.MethodDescriptorProto;
51
+ "google.protobuf.MethodOptions": google_protobuf.MethodOptions;
52
+ "google.protobuf.OneofDescriptorProto": google_protobuf.OneofDescriptorProto;
53
+ "google.protobuf.OneofOptions": google_protobuf.OneofOptions;
54
+ "google.protobuf.ServiceDescriptorProto": google_protobuf.ServiceDescriptorProto;
55
+ "google.protobuf.ServiceOptions": google_protobuf.ServiceOptions;
56
+ "google.protobuf.SourceCodeInfo": google_protobuf.SourceCodeInfo;
57
+ "google.protobuf.SourceCodeInfo.Location": google_protobuf.SourceCodeInfo.Location;
30
58
  "google.protobuf.Timestamp": google_protobuf.Timestamp;
59
+ "google.protobuf.UninterpretedOption": google_protobuf.UninterpretedOption;
60
+ "google.protobuf.UninterpretedOption.NamePart": google_protobuf.UninterpretedOption.NamePart;
31
61
  }
32
62
  export interface SERVICES {
33
63
  "example.testing.service.ServiceWithEmpty": example_testing_service.ServiceWithEmpty;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../test/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,KAAK,uBAAuB,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,mBAAmB,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,uBAAuB,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,qBAAqB,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,oBAAoB,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AAErD,MAAM,WAAW,KAAK;IAClB,wCAAwC,EAAE,uBAAuB,CAAC,cAAc,CAAC;IACjF,yBAAyB,EAAE,mBAAmB,CAAC,GAAG,CAAC;IACnD,wCAAwC,EAAE,uBAAuB,CAAC,cAAc,CAAC;IACjF,2BAA2B,EAAE,qBAAqB,CAAC,GAAG,CAAC;IACvD,qCAAqC,EAAE,qBAAqB,CAAC,aAAa,CAAC;IAC3E,2CAA2C,EAAE,qBAAqB,CAAC,aAAa,CAAC,K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,EAAE,eAAe,CAAC,sBAAsB,CAAC;IACjF,gCAAgC,EAAE,eAAe,CAAC,cAAc,CAAC;IACjE,gCAAgC,EAAE,eAAe,CAAC,cAAc,CAAC;IACjE,yCAAyC,EAAE,eAAe,CAAC,cAAc,CAAC,QAAQ,CAAC;IACnF,2BAA2B,EAAE,eAAe,CAAC,SAAS,CAAC;IACvD,qCAAqC,EAAE,eAAe,CAAC,mBAAmB,CAAC;IAC3E,8CAA8C,EAAE,eAAe,CAAC,mBAAmB,CAAC,QAAQ,CAAC;CAChG;AACD,MAAM,WAAW,QAAQ;IACrB,0CAA0C,EAAE,uBAAuB,CAAC,gBAAgB,CAAC;IACrF,qCAAqC,EAAE,uBAAuB,CAAC,WAAW,CAAC;CAC9E;AACD,eAAO,MAAM,UAAU,KAAqohB,CAAC;AAC7phB,eAAO,MAAM,MAAM,yBAA8D,CAAC"}
@@ -6,6 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.schema = exports.schemaJson = void 0;
7
7
  const codec_protobuf_1 = require("@dxos/codec-protobuf");
8
8
  const substitutions_1 = __importDefault(require("../substitutions"));
9
- exports.schemaJson = JSON.parse("{\"nested\":{\"example\":{\"nested\":{\"testing\":{\"nested\":{\"another\":{\"nested\":{\"AnotherMessage\":{\"fields\":{},\"comment\":\"Defined to test multiple file references in tool.\"}}},\"any\":{\"nested\":{\"Any\":{\"fields\":{\"bar\":{\"type\":\"int32\",\"id\":1,\"comment\":null}},\"comment\":null}}},\"service\":{\"nested\":{\"ServiceWithEmpty\":{\"methods\":{\"EmptyRpc\":{\"requestType\":\"google.protobuf.Empty\",\"responseType\":\"google.protobuf.Empty\",\"comment\":null},\"EmptyStreamRpc\":{\"requestType\":\"google.protobuf.Empty\",\"responseType\":\"google.protobuf.Empty\",\"responseStream\":true,\"comment\":null}},\"comment\":null},\"TestService\":{\"methods\":{\"CountTasks\":{\"requestType\":\"example.testing.types.TaskList\",\"responseType\":\"example.testing.types.TaskCount\",\"comment\":\"Count the tasks in the task list.\"},\"SubscribeTasks\":{\"requestType\":\"example.testing.types.Key\",\"responseType\":\"example.testing.types.Task\",\"responseStream\":true,\"comment\":\"Subscribe to task list updates.\"}},\"comment\":\"Test service definition.\"},\"WithEmptyField\":{\"fields\":{\"emptyField\":{\"type\":\"google.protobuf.Empty\",\"id\":1,\"comment\":null}},\"comment\":null}}},\"types\":{\"nested\":{\"Any\":{\"fields\":{\"foo\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":\"NOTE: Clashes with any.proto (requires FQ name below).\"},\"ComplexFields\":{\"oneofs\":{\"_test\":{\"oneof\":[\"test\"]}},\"fields\":{\"repeatedField\":{\"rule\":\"repeated\",\"type\":\"Key\",\"id\":16,\"comment\":null},\"requiredField\":{\"type\":\"Key\",\"id\":17,\"comment\":null},\"mappedField\":{\"keyType\":\"string\",\"type\":\"Key\",\"id\":18,\"comment\":null},\"inner\":{\"type\":\"Inner\",\"id\":19,\"comment\":null},\"myAny\":{\"type\":\"Any\",\"id\":20,\"comment\":null},\"googleAny\":{\"type\":\"google.protobuf.Any\",\"id\":21,\"comment\":null},\"undecodedAny\":{\"type\":\"google.protobuf.Any\",\"id\":22,\"options\":{\"preserve_any\":true},\"comment\":null},\"importedAny\":{\"type\":\"example.testing.any.Any\",\"id\":23,\"comment\":null},\"test\":{\"type\":\"example.testing.util.Test\",\"id\":24,\"options\":{\"proto3_optional\":true},\"comment\":null}},\"nested\":{\"Inner\":{\"fields\":{\"foo\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"bar\":{\"type\":\"InnerEnum\",\"id\":2,\"comment\":null}},\"comment\":null},\"InnerEnum\":{\"values\":{\"FOO\":0,\"BAR\":1},\"comment\":null,\"comments\":{\"FOO\":null,\"BAR\":null}}},\"comment\":null},\"Key\":{\"fields\":{\"data\":{\"type\":\"bytes\",\"id\":1,\"comment\":null}},\"comment\":\"NOTE: Substitution.\"},\"OptionalScalars\":{\"oneofs\":{\"_doubleField\":{\"oneof\":[\"doubleField\"]},\"_floatField\":{\"oneof\":[\"floatField\"]},\"_int32Field\":{\"oneof\":[\"int32Field\"]},\"_int64Field\":{\"oneof\":[\"int64Field\"]},\"_uint32Field\":{\"oneof\":[\"uint32Field\"]},\"_uint64Field\":{\"oneof\":[\"uint64Field\"]},\"_sint32Field\":{\"oneof\":[\"sint32Field\"]},\"_sint64Field\":{\"oneof\":[\"sint64Field\"]},\"_fixed32Field\":{\"oneof\":[\"fixed32Field\"]},\"_fixed64Field\":{\"oneof\":[\"fixed64Field\"]},\"_sfixed32Field\":{\"oneof\":[\"sfixed32Field\"]},\"_sfixed64Field\":{\"oneof\":[\"sfixed64Field\"]},\"_boolField\":{\"oneof\":[\"boolField\"]},\"_stringField\":{\"oneof\":[\"stringField\"]},\"_bytesField\":{\"oneof\":[\"bytesField\"]}},\"fields\":{\"doubleField\":{\"type\":\"double\",\"id\":1,\"options\":{\"proto3_optional\":true},\"comment\":null},\"floatField\":{\"type\":\"float\",\"id\":2,\"options\":{\"proto3_optional\":true},\"comment\":null},\"int32Field\":{\"type\":\"int32\",\"id\":3,\"options\":{\"proto3_optional\":true},\"comment\":null},\"int64Field\":{\"type\":\"int64\",\"id\":4,\"options\":{\"proto3_optional\":true},\"comment\":null},\"uint32Field\":{\"type\":\"uint32\",\"id\":5,\"options\":{\"proto3_optional\":true},\"comment\":null},\"uint64Field\":{\"type\":\"uint64\",\"id\":6,\"options\":{\"proto3_optional\":true},\"comment\":null},\"sint32Field\":{\"type\":\"sint32\",\"id\":7,\"options\":{\"proto3_optional\":true},\"comment\":null},\"sint64Field\":{\"type\":\"sint64\",\"id\":8,\"options\":{\"proto3_optional\":true},\"comment\":null},\"fixed32Field\":{\"type\":\"fixed32\",\"id\":9,\"options\":{\"proto3_optional\":true},\"comment\":null},\"fixed64Field\":{\"type\":\"fixed64\",\"id\":10,\"options\":{\"proto3_optional\":true},\"comment\":null},\"sfixed32Field\":{\"type\":\"sfixed32\",\"id\":11,\"options\":{\"proto3_optional\":true},\"comment\":null},\"sfixed64Field\":{\"type\":\"sfixed64\",\"id\":12,\"options\":{\"proto3_optional\":true},\"comment\":null},\"boolField\":{\"type\":\"bool\",\"id\":13,\"options\":{\"proto3_optional\":true},\"comment\":null},\"stringField\":{\"type\":\"string\",\"id\":14,\"options\":{\"proto3_optional\":true},\"comment\":null},\"bytesField\":{\"type\":\"bytes\",\"id\":15,\"options\":{\"proto3_optional\":true},\"comment\":null}},\"comment\":null},\"Outer\":{\"fields\":{\"inner\":{\"type\":\"Inner\",\"id\":1,\"comment\":null}},\"nested\":{\"Inner\":{\"fields\":{\"num\":{\"type\":\"int32\",\"id\":1,\"comment\":null}},\"comment\":null}},\"comment\":null},\"Scalars\":{\"fields\":{\"doubleField\":{\"type\":\"double\",\"id\":1,\"comment\":null},\"floatField\":{\"type\":\"float\",\"id\":2,\"comment\":null},\"int32Field\":{\"type\":\"int32\",\"id\":3,\"comment\":null},\"int64Field\":{\"type\":\"int64\",\"id\":4,\"comment\":null},\"uint32Field\":{\"type\":\"uint32\",\"id\":5,\"comment\":null},\"uint64Field\":{\"type\":\"uint64\",\"id\":6,\"comment\":null},\"sint32Field\":{\"type\":\"sint32\",\"id\":7,\"comment\":null},\"sint64Field\":{\"type\":\"sint64\",\"id\":8,\"comment\":null},\"fixed32Field\":{\"type\":\"fixed32\",\"id\":9,\"comment\":null},\"fixed64Field\":{\"type\":\"fixed64\",\"id\":10,\"comment\":null},\"sfixed32Field\":{\"type\":\"sfixed32\",\"id\":11,\"comment\":null},\"sfixed64Field\":{\"type\":\"sfixed64\",\"id\":12,\"comment\":null},\"boolField\":{\"type\":\"bool\",\"id\":13,\"comment\":null},\"stringField\":{\"type\":\"string\",\"id\":14,\"comment\":null},\"bytesField\":{\"type\":\"bytes\",\"id\":15,\"comment\":null}},\"comment\":null},\"SubstitutedByInterface\":{\"fields\":{\"data\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null},\"Task\":{\"oneofs\":{\"_title\":{\"oneof\":[\"title\"]},\"_googleAny\":{\"oneof\":[\"googleAny\"]}},\"fields\":{\"id\":{\"type\":\"string\",\"id\":1,\"comment\":\"Task id\"},\"title\":{\"type\":\"string\",\"id\":2,\"options\":{\"proto3_optional\":true},\"comment\":\"Task title\"},\"key\":{\"type\":\"Key\",\"id\":3,\"comment\":\"Task key.\\nMultiline field comment.\"},\"type\":{\"type\":\"TaskType\",\"id\":4,\"comment\":null},\"googleAny\":{\"type\":\"google.protobuf.Any\",\"id\":5,\"options\":{\"proto3_optional\":true},\"comment\":null}},\"comment\":\"Task.\\nComments can be multiline.\"},\"TaskCount\":{\"fields\":{\"count\":{\"type\":\"int32\",\"id\":1,\"comment\":null}},\"comment\":null},\"TaskList\":{\"fields\":{\"tasks\":{\"rule\":\"repeated\",\"type\":\"Task\",\"id\":1,\"comment\":null}},\"comment\":null},\"TaskType\":{\"values\":{\"IN_PROGRESS\":0,\"COMPLETED\":1},\"comment\":null,\"comments\":{\"IN_PROGRESS\":null,\"COMPLETED\":null}},\"WithTimestamp\":{\"fields\":{\"timestamp\":{\"type\":\"google.protobuf.Timestamp\",\"id\":1,\"comment\":null}},\"comment\":null}}},\"util\":{\"nested\":{\"Test\":{\"fields\":{\"foo\":{\"type\":\"uint32\",\"id\":1,\"comment\":null},\"bar\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null}}}}}}},\"google\":{\"nested\":{\"protobuf\":{\"nested\":{\"Any\":{\"fields\":{\"type_url\":{\"type\":\"string\",\"id\":1},\"value\":{\"type\":\"bytes\",\"id\":2}},\"comment\":null},\"Empty\":{\"fields\":{},\"comment\":null},\"Timestamp\":{\"fields\":{\"seconds\":{\"type\":\"int64\",\"id\":1},\"nanos\":{\"type\":\"int32\",\"id\":2}},\"comment\":null}}}}}}}");
9
+ exports.schemaJson = JSON.parse("{\"nested\":{\"example\":{\"nested\":{\"testing\":{\"nested\":{\"another\":{\"nested\":{\"AnotherMessage\":{\"fields\":{},\"comment\":\"Defined to test multiple file references in tool.\"}}},\"any\":{\"nested\":{\"Any\":{\"fields\":{\"bar\":{\"type\":\"int32\",\"id\":1,\"comment\":null}},\"comment\":null}}},\"service\":{\"nested\":{\"ServiceWithEmpty\":{\"methods\":{\"EmptyRpc\":{\"requestType\":\"google.protobuf.Empty\",\"responseType\":\"google.protobuf.Empty\",\"comment\":null},\"EmptyStreamRpc\":{\"requestType\":\"google.protobuf.Empty\",\"responseType\":\"google.protobuf.Empty\",\"responseStream\":true,\"comment\":null}},\"comment\":null},\"TestService\":{\"methods\":{\"CountTasks\":{\"requestType\":\"example.testing.types.TaskList\",\"responseType\":\"example.testing.types.TaskCount\",\"comment\":\"Count the tasks in the task list.\"},\"SubscribeTasks\":{\"requestType\":\"example.testing.types.Key\",\"responseType\":\"example.testing.types.Task\",\"responseStream\":true,\"comment\":\"Subscribe to task list updates.\"}},\"comment\":\"Test service definition.\"},\"WithEmptyField\":{\"fields\":{\"emptyField\":{\"type\":\"google.protobuf.Empty\",\"id\":1,\"comment\":null}},\"comment\":null}}},\"types\":{\"nested\":{\"_preserveAny\":{\"oneof\":[\"preserveAny\"]},\"Any\":{\"fields\":{\"foo\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":\"NOTE: Clashes with any.proto (requires FQ name below).\"},\"ComplexFields\":{\"oneofs\":{\"_test\":{\"oneof\":[\"test\"]}},\"fields\":{\"repeatedField\":{\"rule\":\"repeated\",\"type\":\"Key\",\"id\":16,\"comment\":null},\"requiredField\":{\"type\":\"Key\",\"id\":17,\"comment\":null},\"mappedField\":{\"keyType\":\"string\",\"type\":\"Key\",\"id\":18,\"comment\":null},\"inner\":{\"type\":\"Inner\",\"id\":19,\"comment\":null},\"myAny\":{\"type\":\"Any\",\"id\":20,\"comment\":null},\"googleAny\":{\"type\":\"google.protobuf.Any\",\"id\":21,\"comment\":null},\"undecodedAny\":{\"type\":\"google.protobuf.Any\",\"id\":22,\"options\":{\"(preserve_any)\":true},\"comment\":null},\"importedAny\":{\"type\":\"example.testing.any.Any\",\"id\":23,\"comment\":null},\"test\":{\"type\":\"example.testing.util.Test\",\"id\":24,\"options\":{\"proto3_optional\":true},\"comment\":null}},\"nested\":{\"Inner\":{\"fields\":{\"foo\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"bar\":{\"type\":\"InnerEnum\",\"id\":2,\"comment\":null}},\"comment\":null},\"InnerEnum\":{\"values\":{\"FOO\":0,\"BAR\":1},\"comment\":null,\"comments\":{\"FOO\":null,\"BAR\":null}}},\"comment\":null},\"Key\":{\"fields\":{\"data\":{\"type\":\"bytes\",\"id\":1,\"comment\":null}},\"comment\":\"NOTE: Substitution.\"},\"OptionalScalars\":{\"oneofs\":{\"_doubleField\":{\"oneof\":[\"doubleField\"]},\"_floatField\":{\"oneof\":[\"floatField\"]},\"_int32Field\":{\"oneof\":[\"int32Field\"]},\"_int64Field\":{\"oneof\":[\"int64Field\"]},\"_uint32Field\":{\"oneof\":[\"uint32Field\"]},\"_uint64Field\":{\"oneof\":[\"uint64Field\"]},\"_sint32Field\":{\"oneof\":[\"sint32Field\"]},\"_sint64Field\":{\"oneof\":[\"sint64Field\"]},\"_fixed32Field\":{\"oneof\":[\"fixed32Field\"]},\"_fixed64Field\":{\"oneof\":[\"fixed64Field\"]},\"_sfixed32Field\":{\"oneof\":[\"sfixed32Field\"]},\"_sfixed64Field\":{\"oneof\":[\"sfixed64Field\"]},\"_boolField\":{\"oneof\":[\"boolField\"]},\"_stringField\":{\"oneof\":[\"stringField\"]},\"_bytesField\":{\"oneof\":[\"bytesField\"]}},\"fields\":{\"doubleField\":{\"type\":\"double\",\"id\":1,\"options\":{\"proto3_optional\":true},\"comment\":null},\"floatField\":{\"type\":\"float\",\"id\":2,\"options\":{\"proto3_optional\":true},\"comment\":null},\"int32Field\":{\"type\":\"int32\",\"id\":3,\"options\":{\"proto3_optional\":true},\"comment\":null},\"int64Field\":{\"type\":\"int64\",\"id\":4,\"options\":{\"proto3_optional\":true},\"comment\":null},\"uint32Field\":{\"type\":\"uint32\",\"id\":5,\"options\":{\"proto3_optional\":true},\"comment\":null},\"uint64Field\":{\"type\":\"uint64\",\"id\":6,\"options\":{\"proto3_optional\":true},\"comment\":null},\"sint32Field\":{\"type\":\"sint32\",\"id\":7,\"options\":{\"proto3_optional\":true},\"comment\":null},\"sint64Field\":{\"type\":\"sint64\",\"id\":8,\"options\":{\"proto3_optional\":true},\"comment\":null},\"fixed32Field\":{\"type\":\"fixed32\",\"id\":9,\"options\":{\"proto3_optional\":true},\"comment\":null},\"fixed64Field\":{\"type\":\"fixed64\",\"id\":10,\"options\":{\"proto3_optional\":true},\"comment\":null},\"sfixed32Field\":{\"type\":\"sfixed32\",\"id\":11,\"options\":{\"proto3_optional\":true},\"comment\":null},\"sfixed64Field\":{\"type\":\"sfixed64\",\"id\":12,\"options\":{\"proto3_optional\":true},\"comment\":null},\"boolField\":{\"type\":\"bool\",\"id\":13,\"options\":{\"proto3_optional\":true},\"comment\":null},\"stringField\":{\"type\":\"string\",\"id\":14,\"options\":{\"proto3_optional\":true},\"comment\":null},\"bytesField\":{\"type\":\"bytes\",\"id\":15,\"options\":{\"proto3_optional\":true},\"comment\":null}},\"comment\":null},\"Outer\":{\"fields\":{\"inner\":{\"type\":\"Inner\",\"id\":1,\"comment\":null}},\"nested\":{\"Inner\":{\"fields\":{\"num\":{\"type\":\"int32\",\"id\":1,\"comment\":null}},\"comment\":null}},\"comment\":null},\"preserveAny\":{\"type\":\"bool\",\"id\":8000,\"extend\":\"google.protobuf.FieldOptions\",\"options\":{\"proto3_optional\":true},\"comment\":null},\"Scalars\":{\"fields\":{\"doubleField\":{\"type\":\"double\",\"id\":1,\"comment\":null},\"floatField\":{\"type\":\"float\",\"id\":2,\"comment\":null},\"int32Field\":{\"type\":\"int32\",\"id\":3,\"comment\":null},\"int64Field\":{\"type\":\"int64\",\"id\":4,\"comment\":null},\"uint32Field\":{\"type\":\"uint32\",\"id\":5,\"comment\":null},\"uint64Field\":{\"type\":\"uint64\",\"id\":6,\"comment\":null},\"sint32Field\":{\"type\":\"sint32\",\"id\":7,\"comment\":null},\"sint64Field\":{\"type\":\"sint64\",\"id\":8,\"comment\":null},\"fixed32Field\":{\"type\":\"fixed32\",\"id\":9,\"comment\":null},\"fixed64Field\":{\"type\":\"fixed64\",\"id\":10,\"comment\":null},\"sfixed32Field\":{\"type\":\"sfixed32\",\"id\":11,\"comment\":null},\"sfixed64Field\":{\"type\":\"sfixed64\",\"id\":12,\"comment\":null},\"boolField\":{\"type\":\"bool\",\"id\":13,\"comment\":null},\"stringField\":{\"type\":\"string\",\"id\":14,\"comment\":null},\"bytesField\":{\"type\":\"bytes\",\"id\":15,\"comment\":null}},\"comment\":null},\"SubstitutedByInterface\":{\"fields\":{\"data\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null},\"Task\":{\"oneofs\":{\"_title\":{\"oneof\":[\"title\"]},\"_googleAny\":{\"oneof\":[\"googleAny\"]}},\"fields\":{\"id\":{\"type\":\"string\",\"id\":1,\"comment\":\"Task id\"},\"title\":{\"type\":\"string\",\"id\":2,\"options\":{\"proto3_optional\":true},\"comment\":\"Task title\"},\"key\":{\"type\":\"Key\",\"id\":3,\"comment\":\"Task key.\\nMultiline field comment.\"},\"type\":{\"type\":\"TaskType\",\"id\":4,\"comment\":null},\"googleAny\":{\"type\":\"google.protobuf.Any\",\"id\":5,\"options\":{\"proto3_optional\":true},\"comment\":null}},\"comment\":\"Task.\\nComments can be multiline.\"},\"TaskCount\":{\"fields\":{\"count\":{\"type\":\"int32\",\"id\":1,\"comment\":null}},\"comment\":null},\"TaskList\":{\"fields\":{\"tasks\":{\"rule\":\"repeated\",\"type\":\"Task\",\"id\":1,\"comment\":null}},\"comment\":null},\"TaskType\":{\"values\":{\"IN_PROGRESS\":0,\"COMPLETED\":1},\"comment\":null,\"comments\":{\"IN_PROGRESS\":null,\"COMPLETED\":null}},\"WithTimestamp\":{\"fields\":{\"timestamp\":{\"type\":\"google.protobuf.Timestamp\",\"id\":1,\"comment\":null}},\"comment\":null}}},\"util\":{\"nested\":{\"Test\":{\"fields\":{\"foo\":{\"type\":\"uint32\",\"id\":1,\"comment\":null},\"bar\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null}}}}}}},\"google\":{\"nested\":{\"protobuf\":{\"nested\":{\"Any\":{\"fields\":{\"type_url\":{\"type\":\"string\",\"id\":1},\"value\":{\"type\":\"bytes\",\"id\":2}},\"comment\":null},\"DescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"field\":{\"rule\":\"repeated\",\"type\":\"FieldDescriptorProto\",\"id\":2},\"extension\":{\"rule\":\"repeated\",\"type\":\"FieldDescriptorProto\",\"id\":6},\"nestedType\":{\"rule\":\"repeated\",\"type\":\"DescriptorProto\",\"id\":3},\"enumType\":{\"rule\":\"repeated\",\"type\":\"EnumDescriptorProto\",\"id\":4},\"extensionRange\":{\"rule\":\"repeated\",\"type\":\"ExtensionRange\",\"id\":5},\"oneofDecl\":{\"rule\":\"repeated\",\"type\":\"OneofDescriptorProto\",\"id\":8},\"options\":{\"type\":\"MessageOptions\",\"id\":7},\"reservedRange\":{\"rule\":\"repeated\",\"type\":\"ReservedRange\",\"id\":9},\"reservedName\":{\"rule\":\"repeated\",\"type\":\"string\",\"id\":10}},\"nested\":{\"ExtensionRange\":{\"fields\":{\"start\":{\"type\":\"int32\",\"id\":1},\"end\":{\"type\":\"int32\",\"id\":2}},\"comment\":null},\"ReservedRange\":{\"fields\":{\"start\":{\"type\":\"int32\",\"id\":1},\"end\":{\"type\":\"int32\",\"id\":2}},\"comment\":null}},\"comment\":null},\"Empty\":{\"fields\":{},\"comment\":null},\"EnumDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"value\":{\"rule\":\"repeated\",\"type\":\"EnumValueDescriptorProto\",\"id\":2},\"options\":{\"type\":\"EnumOptions\",\"id\":3}},\"comment\":null},\"EnumOptions\":{\"fields\":{\"allowAlias\":{\"type\":\"bool\",\"id\":2},\"deprecated\":{\"type\":\"bool\",\"id\":3},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"comment\":null},\"EnumValueDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"number\":{\"type\":\"int32\",\"id\":2},\"options\":{\"type\":\"EnumValueOptions\",\"id\":3}},\"comment\":null},\"EnumValueOptions\":{\"fields\":{\"deprecated\":{\"type\":\"bool\",\"id\":1},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"comment\":null},\"FieldDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"number\":{\"type\":\"int32\",\"id\":3},\"label\":{\"type\":\"Label\",\"id\":4},\"type\":{\"type\":\"Type\",\"id\":5},\"typeName\":{\"type\":\"string\",\"id\":6},\"extendee\":{\"type\":\"string\",\"id\":2},\"defaultValue\":{\"type\":\"string\",\"id\":7},\"oneofIndex\":{\"type\":\"int32\",\"id\":9},\"jsonName\":{\"type\":\"string\",\"id\":10},\"options\":{\"type\":\"FieldOptions\",\"id\":8}},\"nested\":{\"Label\":{\"values\":{\"LABEL_OPTIONAL\":1,\"LABEL_REQUIRED\":2,\"LABEL_REPEATED\":3},\"comments\":{}},\"Type\":{\"values\":{\"TYPE_DOUBLE\":1,\"TYPE_FLOAT\":2,\"TYPE_INT64\":3,\"TYPE_UINT64\":4,\"TYPE_INT32\":5,\"TYPE_FIXED64\":6,\"TYPE_FIXED32\":7,\"TYPE_BOOL\":8,\"TYPE_STRING\":9,\"TYPE_GROUP\":10,\"TYPE_MESSAGE\":11,\"TYPE_BYTES\":12,\"TYPE_UINT32\":13,\"TYPE_ENUM\":14,\"TYPE_SFIXED32\":15,\"TYPE_SFIXED64\":16,\"TYPE_SINT32\":17,\"TYPE_SINT64\":18},\"comments\":{}}},\"comment\":null},\"FieldOptions\":{\"fields\":{\"ctype\":{\"type\":\"CType\",\"id\":1,\"options\":{\"default\":\"STRING\"}},\"packed\":{\"type\":\"bool\",\"id\":2},\"jstype\":{\"type\":\"JSType\",\"id\":6,\"options\":{\"default\":\"JS_NORMAL\"}},\"lazy\":{\"type\":\"bool\",\"id\":5},\"deprecated\":{\"type\":\"bool\",\"id\":3},\"weak\":{\"type\":\"bool\",\"id\":10},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"reserved\":[[4,4]],\"nested\":{\"CType\":{\"values\":{\"STRING\":0,\"CORD\":1,\"STRING_PIECE\":2},\"comments\":{}},\"JSType\":{\"values\":{\"JS_NORMAL\":0,\"JS_STRING\":1,\"JS_NUMBER\":2},\"comments\":{}}},\"comment\":null},\"FileDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"package\":{\"type\":\"string\",\"id\":2},\"dependency\":{\"rule\":\"repeated\",\"type\":\"string\",\"id\":3},\"publicDependency\":{\"rule\":\"repeated\",\"type\":\"int32\",\"id\":10,\"options\":{\"packed\":false}},\"weakDependency\":{\"rule\":\"repeated\",\"type\":\"int32\",\"id\":11,\"options\":{\"packed\":false}},\"messageType\":{\"rule\":\"repeated\",\"type\":\"DescriptorProto\",\"id\":4},\"enumType\":{\"rule\":\"repeated\",\"type\":\"EnumDescriptorProto\",\"id\":5},\"service\":{\"rule\":\"repeated\",\"type\":\"ServiceDescriptorProto\",\"id\":6},\"extension\":{\"rule\":\"repeated\",\"type\":\"FieldDescriptorProto\",\"id\":7},\"options\":{\"type\":\"FileOptions\",\"id\":8},\"sourceCodeInfo\":{\"type\":\"SourceCodeInfo\",\"id\":9},\"syntax\":{\"type\":\"string\",\"id\":12}},\"comment\":null},\"FileDescriptorSet\":{\"fields\":{\"file\":{\"rule\":\"repeated\",\"type\":\"FileDescriptorProto\",\"id\":1}},\"comment\":null},\"FileOptions\":{\"fields\":{\"javaPackage\":{\"type\":\"string\",\"id\":1},\"javaOuterClassname\":{\"type\":\"string\",\"id\":8},\"javaMultipleFiles\":{\"type\":\"bool\",\"id\":10},\"javaGenerateEqualsAndHash\":{\"type\":\"bool\",\"id\":20,\"options\":{\"deprecated\":true}},\"javaStringCheckUtf8\":{\"type\":\"bool\",\"id\":27},\"optimizeFor\":{\"type\":\"OptimizeMode\",\"id\":9,\"options\":{\"default\":\"SPEED\"}},\"goPackage\":{\"type\":\"string\",\"id\":11},\"ccGenericServices\":{\"type\":\"bool\",\"id\":16},\"javaGenericServices\":{\"type\":\"bool\",\"id\":17},\"pyGenericServices\":{\"type\":\"bool\",\"id\":18},\"deprecated\":{\"type\":\"bool\",\"id\":23},\"ccEnableArenas\":{\"type\":\"bool\",\"id\":31},\"objcClassPrefix\":{\"type\":\"string\",\"id\":36},\"csharpNamespace\":{\"type\":\"string\",\"id\":37},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"reserved\":[[38,38]],\"nested\":{\"OptimizeMode\":{\"values\":{\"SPEED\":1,\"CODE_SIZE\":2,\"LITE_RUNTIME\":3},\"comments\":{}}},\"comment\":null},\"GeneratedCodeInfo\":{\"fields\":{\"annotation\":{\"rule\":\"repeated\",\"type\":\"Annotation\",\"id\":1}},\"nested\":{\"Annotation\":{\"fields\":{\"path\":{\"rule\":\"repeated\",\"type\":\"int32\",\"id\":1},\"sourceFile\":{\"type\":\"string\",\"id\":2},\"begin\":{\"type\":\"int32\",\"id\":3},\"end\":{\"type\":\"int32\",\"id\":4}},\"comment\":null}},\"comment\":null},\"MessageOptions\":{\"fields\":{\"messageSetWireFormat\":{\"type\":\"bool\",\"id\":1},\"noStandardDescriptorAccessor\":{\"type\":\"bool\",\"id\":2},\"deprecated\":{\"type\":\"bool\",\"id\":3},\"mapEntry\":{\"type\":\"bool\",\"id\":7},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"reserved\":[[8,8]],\"comment\":null},\"MethodDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"inputType\":{\"type\":\"string\",\"id\":2},\"outputType\":{\"type\":\"string\",\"id\":3},\"options\":{\"type\":\"MethodOptions\",\"id\":4},\"clientStreaming\":{\"type\":\"bool\",\"id\":5},\"serverStreaming\":{\"type\":\"bool\",\"id\":6}},\"comment\":null},\"MethodOptions\":{\"fields\":{\"deprecated\":{\"type\":\"bool\",\"id\":33},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"comment\":null},\"OneofDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"options\":{\"type\":\"OneofOptions\",\"id\":2}},\"comment\":null},\"OneofOptions\":{\"fields\":{\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"comment\":null},\"ServiceDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"method\":{\"rule\":\"repeated\",\"type\":\"MethodDescriptorProto\",\"id\":2},\"options\":{\"type\":\"ServiceOptions\",\"id\":3}},\"comment\":null},\"ServiceOptions\":{\"fields\":{\"deprecated\":{\"type\":\"bool\",\"id\":33},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"comment\":null},\"SourceCodeInfo\":{\"fields\":{\"location\":{\"rule\":\"repeated\",\"type\":\"Location\",\"id\":1}},\"nested\":{\"Location\":{\"fields\":{\"path\":{\"rule\":\"repeated\",\"type\":\"int32\",\"id\":1},\"span\":{\"rule\":\"repeated\",\"type\":\"int32\",\"id\":2},\"leadingComments\":{\"type\":\"string\",\"id\":3},\"trailingComments\":{\"type\":\"string\",\"id\":4},\"leadingDetachedComments\":{\"rule\":\"repeated\",\"type\":\"string\",\"id\":6}},\"comment\":null}},\"comment\":null},\"Timestamp\":{\"fields\":{\"seconds\":{\"type\":\"int64\",\"id\":1},\"nanos\":{\"type\":\"int32\",\"id\":2}},\"comment\":null},\"UninterpretedOption\":{\"fields\":{\"name\":{\"rule\":\"repeated\",\"type\":\"NamePart\",\"id\":2},\"identifierValue\":{\"type\":\"string\",\"id\":3},\"positiveIntValue\":{\"type\":\"uint64\",\"id\":4},\"negativeIntValue\":{\"type\":\"int64\",\"id\":5},\"doubleValue\":{\"type\":\"double\",\"id\":6},\"stringValue\":{\"type\":\"bytes\",\"id\":7},\"aggregateValue\":{\"type\":\"string\",\"id\":8}},\"nested\":{\"NamePart\":{\"fields\":{\"namePart\":{\"rule\":\"required\",\"type\":\"string\",\"id\":1},\"isExtension\":{\"rule\":\"required\",\"type\":\"bool\",\"id\":2}},\"comment\":null}},\"comment\":null}}}}}}}");
10
10
  exports.schema = codec_protobuf_1.Schema.fromJson(exports.schemaJson, substitutions_1.default);
11
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../test/proto/gen/index.ts"],"names":[],"mappings":";;;;;;AAAA,yDAA8C;AAO9C,qEAA6C;AA6BhC,QAAA,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,otPAAotP,CAAC,CAAC;AAC9uP,QAAA,MAAM,GAAG,uBAAM,CAAC,QAAQ,CAAkB,kBAAU,EAAE,uBAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../test/proto/gen/index.ts"],"names":[],"mappings":";;;;;;AAAA,yDAA8C;AAO9C,qEAA6C;AA2DhC,QAAA,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,snhBAAsnhB,CAAC,CAAC;AAChphB,QAAA,MAAM,GAAG,uBAAM,CAAC,QAAQ,CAAkB,kBAAU,EAAE,uBAAa,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/protobuf-compiler",
3
- "version": "0.6.3-main.cc41ccb",
3
+ "version": "0.6.3-main.d76104f",
4
4
  "homepage": "https://dxos.org",
5
5
  "bugs": "https://github.com/dxos/dxos/issues",
6
6
  "license": "MIT",
@@ -21,9 +21,9 @@
21
21
  "protobufjs": "^7.2.5",
22
22
  "read-pkg": "^5.2.0",
23
23
  "ts-morph": "^16.0.0",
24
- "@dxos/log": "0.6.3-main.cc41ccb",
25
- "@dxos/node-std": "0.6.3-main.cc41ccb",
26
- "@dxos/invariant": "0.6.3-main.cc41ccb"
24
+ "@dxos/invariant": "0.6.3-main.d76104f",
25
+ "@dxos/log": "0.6.3-main.d76104f",
26
+ "@dxos/node-std": "0.6.3-main.d76104f"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@swc-node/register": "1.9.1",
@@ -32,8 +32,8 @@
32
32
  "@types/node": "^18.11.9",
33
33
  "ts-node": "10.9.1",
34
34
  "typescript": "^5.4.5",
35
- "@dxos/codec-protobuf": "0.6.3-main.cc41ccb",
36
- "@dxos/protobuf-test": "0.6.3-main.cc41ccb"
35
+ "@dxos/codec-protobuf": "0.6.3-main.d76104f",
36
+ "@dxos/protobuf-test": "0.6.3-main.d76104f"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "typescript": "^5.2.2"