@dxos/protobuf-compiler 2.33.9-dev.a6069cb4 → 2.33.9-dev.bba8fc00
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.
- package/dist/src/generator/declaration-generator.d.ts +2 -2
- package/dist/src/generator/declaration-generator.d.ts.map +1 -1
- package/dist/src/generator/declaration-generator.js +6 -6
- package/dist/src/generator/declaration-generator.js.map +1 -1
- package/dist/src/generator/enum.d.ts +2 -1
- package/dist/src/generator/enum.d.ts.map +1 -1
- package/dist/src/generator/enum.js +13 -1
- package/dist/src/generator/enum.js.map +1 -1
- package/dist/src/generator/file-generator.d.ts.map +1 -1
- package/dist/src/generator/file-generator.js +5 -1
- package/dist/src/generator/file-generator.js.map +1 -1
- package/dist/src/generator/message.d.ts +5 -2
- package/dist/src/generator/message.d.ts.map +1 -1
- package/dist/src/generator/message.js +13 -4
- package/dist/src/generator/message.js.map +1 -1
- package/dist/src/generator/serializer-definition-generator.d.ts +0 -1
- package/dist/src/generator/serializer-definition-generator.d.ts.map +1 -1
- package/dist/src/generator/service.d.ts +2 -2
- package/dist/src/generator/service.d.ts.map +1 -1
- package/dist/src/generator/service.js +11 -3
- package/dist/src/generator/service.js.map +1 -1
- package/dist/test/proto/gen/dxos/test/another.d.ts +4 -0
- package/dist/test/proto/gen/dxos/test/another.d.ts.map +1 -1
- package/dist/test/proto/gen/dxos/test/any.d.ts +5 -1
- package/dist/test/proto/gen/dxos/test/any.d.ts.map +1 -1
- package/dist/test/proto/gen/dxos/test/extensions.d.ts +14 -2
- package/dist/test/proto/gen/dxos/test/extensions.d.ts.map +1 -1
- package/dist/test/proto/gen/dxos/test/testfoo.d.ts +6 -2
- package/dist/test/proto/gen/dxos/test/testfoo.d.ts.map +1 -1
- package/dist/test/proto/gen/dxos/test.d.ts +106 -29
- package/dist/test/proto/gen/dxos/test.d.ts.map +1 -1
- package/dist/test/proto/gen/dxos/test.js +8 -0
- package/dist/test/proto/gen/dxos/test.js.map +1 -1
- package/dist/test/proto/gen/google/protobuf.d.ts +82 -82
- package/dist/test/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/test/proto/gen/index.d.ts.map +1 -1
- package/dist/test/proto/gen/index.js +1 -1
- package/dist/test/proto/gen/index.js.map +1 -1
- package/dist/test/schema.test.js +18 -1
- package/dist/test/schema.test.js.map +1 -1
- package/dist/test/service.test.js +1 -0
- package/dist/test/service.test.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/generator/context.ts +10 -0
- package/src/generator/declaration-generator.ts +7 -7
- package/src/generator/enum.ts +26 -9
- package/src/generator/file-generator.ts +7 -1
- package/src/generator/message.ts +17 -6
- package/src/generator/service.ts +14 -3
|
@@ -3,12 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TaskType = exports.ComplexFields = void 0;
|
|
4
4
|
var ComplexFields;
|
|
5
5
|
(function (ComplexFields) {
|
|
6
|
+
/**
|
|
7
|
+
* Defined in:
|
|
8
|
+
* {@link file://./../../schema.proto}
|
|
9
|
+
*/
|
|
6
10
|
let InnerEnum;
|
|
7
11
|
(function (InnerEnum) {
|
|
8
12
|
InnerEnum[InnerEnum["FOO"] = 1] = "FOO";
|
|
9
13
|
InnerEnum[InnerEnum["BAR"] = 2] = "BAR";
|
|
10
14
|
})(InnerEnum = ComplexFields.InnerEnum || (ComplexFields.InnerEnum = {}));
|
|
11
15
|
})(ComplexFields = exports.ComplexFields || (exports.ComplexFields = {}));
|
|
16
|
+
/**
|
|
17
|
+
* Defined in:
|
|
18
|
+
* {@link file://./../../schema.proto}
|
|
19
|
+
*/
|
|
12
20
|
var TaskType;
|
|
13
21
|
(function (TaskType) {
|
|
14
22
|
TaskType[TaskType["IN_PROGRESS"] = 1] = "IN_PROGRESS";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../../../test/proto/gen/dxos/test.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../../../test/proto/gen/dxos/test.ts"],"names":[],"mappings":";;;AA4DA,IAAiB,aAAa,CAiB7B;AAjBD,WAAiB,aAAa;IAS1B;;;OAGG;IACH,IAAY,SAGX;IAHD,WAAY,SAAS;QACjB,uCAAO,CAAA;QACP,uCAAO,CAAA;IACX,CAAC,EAHW,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAGpB;AACL,CAAC,EAjBgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAiB7B;AAwBD;;;GAGG;AACH,IAAY,QAGX;AAHD,WAAY,QAAQ;IAChB,qDAAe,CAAA;IACf,iDAAa,CAAA;AACjB,CAAC,EAHW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAGnB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as dxos_test_extensions from "../dxos/test/extensions";
|
|
2
2
|
export interface Any {
|
|
3
|
-
type_url
|
|
4
|
-
value
|
|
3
|
+
type_url: string;
|
|
4
|
+
value: Uint8Array;
|
|
5
5
|
}
|
|
6
6
|
export interface Timestamp {
|
|
7
|
-
seconds
|
|
8
|
-
nanos
|
|
7
|
+
seconds: string;
|
|
8
|
+
nanos: number;
|
|
9
9
|
}
|
|
10
10
|
export interface Empty {
|
|
11
11
|
}
|
|
@@ -13,8 +13,8 @@ export interface FileDescriptorSet {
|
|
|
13
13
|
file?: FileDescriptorProto[];
|
|
14
14
|
}
|
|
15
15
|
export interface FileDescriptorProto {
|
|
16
|
-
name
|
|
17
|
-
package
|
|
16
|
+
name: string;
|
|
17
|
+
package: string;
|
|
18
18
|
dependency?: string[];
|
|
19
19
|
/**
|
|
20
20
|
* Options:
|
|
@@ -30,43 +30,43 @@ export interface FileDescriptorProto {
|
|
|
30
30
|
enumType?: EnumDescriptorProto[];
|
|
31
31
|
service?: ServiceDescriptorProto[];
|
|
32
32
|
extension?: FieldDescriptorProto[];
|
|
33
|
-
options
|
|
34
|
-
sourceCodeInfo
|
|
35
|
-
syntax
|
|
33
|
+
options: FileOptions;
|
|
34
|
+
sourceCodeInfo: SourceCodeInfo;
|
|
35
|
+
syntax: string;
|
|
36
36
|
}
|
|
37
37
|
export interface DescriptorProto {
|
|
38
|
-
name
|
|
38
|
+
name: string;
|
|
39
39
|
field?: FieldDescriptorProto[];
|
|
40
40
|
extension?: FieldDescriptorProto[];
|
|
41
41
|
nestedType?: DescriptorProto[];
|
|
42
42
|
enumType?: EnumDescriptorProto[];
|
|
43
43
|
extensionRange?: DescriptorProto.ExtensionRange[];
|
|
44
44
|
oneofDecl?: OneofDescriptorProto[];
|
|
45
|
-
options
|
|
45
|
+
options: MessageOptions;
|
|
46
46
|
reservedRange?: DescriptorProto.ReservedRange[];
|
|
47
47
|
reservedName?: string[];
|
|
48
48
|
}
|
|
49
49
|
export declare namespace DescriptorProto {
|
|
50
50
|
interface ExtensionRange {
|
|
51
|
-
start
|
|
52
|
-
end
|
|
51
|
+
start: number;
|
|
52
|
+
end: number;
|
|
53
53
|
}
|
|
54
54
|
interface ReservedRange {
|
|
55
|
-
start
|
|
56
|
-
end
|
|
55
|
+
start: number;
|
|
56
|
+
end: number;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
export interface FieldDescriptorProto {
|
|
60
|
-
name
|
|
61
|
-
number
|
|
62
|
-
label
|
|
63
|
-
type
|
|
64
|
-
typeName
|
|
65
|
-
extendee
|
|
66
|
-
defaultValue
|
|
67
|
-
oneofIndex
|
|
68
|
-
jsonName
|
|
69
|
-
options
|
|
60
|
+
name: string;
|
|
61
|
+
number: number;
|
|
62
|
+
label: FieldDescriptorProto.Label;
|
|
63
|
+
type: FieldDescriptorProto.Type;
|
|
64
|
+
typeName: string;
|
|
65
|
+
extendee: string;
|
|
66
|
+
defaultValue: string;
|
|
67
|
+
oneofIndex: number;
|
|
68
|
+
jsonName: string;
|
|
69
|
+
options: FieldOptions;
|
|
70
70
|
}
|
|
71
71
|
export declare namespace FieldDescriptorProto {
|
|
72
72
|
enum Type {
|
|
@@ -96,55 +96,55 @@ export declare namespace FieldDescriptorProto {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
export interface OneofDescriptorProto {
|
|
99
|
-
name
|
|
100
|
-
options
|
|
99
|
+
name: string;
|
|
100
|
+
options: OneofOptions;
|
|
101
101
|
}
|
|
102
102
|
export interface EnumDescriptorProto {
|
|
103
|
-
name
|
|
103
|
+
name: string;
|
|
104
104
|
value?: EnumValueDescriptorProto[];
|
|
105
|
-
options
|
|
105
|
+
options: EnumOptions;
|
|
106
106
|
}
|
|
107
107
|
export interface EnumValueDescriptorProto {
|
|
108
|
-
name
|
|
109
|
-
number
|
|
110
|
-
options
|
|
108
|
+
name: string;
|
|
109
|
+
number: number;
|
|
110
|
+
options: EnumValueOptions;
|
|
111
111
|
}
|
|
112
112
|
export interface ServiceDescriptorProto {
|
|
113
|
-
name
|
|
113
|
+
name: string;
|
|
114
114
|
method?: MethodDescriptorProto[];
|
|
115
|
-
options
|
|
115
|
+
options: ServiceOptions;
|
|
116
116
|
}
|
|
117
117
|
export interface MethodDescriptorProto {
|
|
118
|
-
name
|
|
119
|
-
inputType
|
|
120
|
-
outputType
|
|
121
|
-
options
|
|
122
|
-
clientStreaming
|
|
123
|
-
serverStreaming
|
|
118
|
+
name: string;
|
|
119
|
+
inputType: string;
|
|
120
|
+
outputType: string;
|
|
121
|
+
options: MethodOptions;
|
|
122
|
+
clientStreaming: boolean;
|
|
123
|
+
serverStreaming: boolean;
|
|
124
124
|
}
|
|
125
125
|
export interface FileOptions {
|
|
126
|
-
javaPackage
|
|
127
|
-
javaOuterClassname
|
|
128
|
-
javaMultipleFiles
|
|
126
|
+
javaPackage: string;
|
|
127
|
+
javaOuterClassname: string;
|
|
128
|
+
javaMultipleFiles: boolean;
|
|
129
129
|
/**
|
|
130
130
|
* Options:
|
|
131
131
|
* - deprecated = true
|
|
132
132
|
*/
|
|
133
|
-
javaGenerateEqualsAndHash
|
|
134
|
-
javaStringCheckUtf8
|
|
133
|
+
javaGenerateEqualsAndHash: boolean;
|
|
134
|
+
javaStringCheckUtf8: boolean;
|
|
135
135
|
/**
|
|
136
136
|
* Options:
|
|
137
137
|
* - default = "SPEED"
|
|
138
138
|
*/
|
|
139
|
-
optimizeFor
|
|
140
|
-
goPackage
|
|
141
|
-
ccGenericServices
|
|
142
|
-
javaGenericServices
|
|
143
|
-
pyGenericServices
|
|
144
|
-
deprecated
|
|
145
|
-
ccEnableArenas
|
|
146
|
-
objcClassPrefix
|
|
147
|
-
csharpNamespace
|
|
139
|
+
optimizeFor: FileOptions.OptimizeMode;
|
|
140
|
+
goPackage: string;
|
|
141
|
+
ccGenericServices: boolean;
|
|
142
|
+
javaGenericServices: boolean;
|
|
143
|
+
pyGenericServices: boolean;
|
|
144
|
+
deprecated: boolean;
|
|
145
|
+
ccEnableArenas: boolean;
|
|
146
|
+
objcClassPrefix: string;
|
|
147
|
+
csharpNamespace: string;
|
|
148
148
|
uninterpretedOption?: UninterpretedOption[];
|
|
149
149
|
}
|
|
150
150
|
export declare namespace FileOptions {
|
|
@@ -155,10 +155,10 @@ export declare namespace FileOptions {
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
export interface MessageOptions {
|
|
158
|
-
messageSetWireFormat
|
|
159
|
-
noStandardDescriptorAccessor
|
|
160
|
-
deprecated
|
|
161
|
-
mapEntry
|
|
158
|
+
messageSetWireFormat: boolean;
|
|
159
|
+
noStandardDescriptorAccessor: boolean;
|
|
160
|
+
deprecated: boolean;
|
|
161
|
+
mapEntry: boolean;
|
|
162
162
|
uninterpretedOption?: UninterpretedOption[];
|
|
163
163
|
}
|
|
164
164
|
export interface FieldOptions {
|
|
@@ -166,19 +166,19 @@ export interface FieldOptions {
|
|
|
166
166
|
* Options:
|
|
167
167
|
* - default = "STRING"
|
|
168
168
|
*/
|
|
169
|
-
ctype
|
|
170
|
-
packed
|
|
169
|
+
ctype: FieldOptions.CType;
|
|
170
|
+
packed: boolean;
|
|
171
171
|
/**
|
|
172
172
|
* Options:
|
|
173
173
|
* - default = "JS_NORMAL"
|
|
174
174
|
*/
|
|
175
|
-
jstype
|
|
176
|
-
lazy
|
|
177
|
-
deprecated
|
|
178
|
-
weak
|
|
175
|
+
jstype: FieldOptions.JSType;
|
|
176
|
+
lazy: boolean;
|
|
177
|
+
deprecated: boolean;
|
|
178
|
+
weak: boolean;
|
|
179
179
|
uninterpretedOption?: UninterpretedOption[];
|
|
180
|
-
".dxos.test.extensions.defaultValue"
|
|
181
|
-
".dxos.test.extensions.optionsObj"
|
|
180
|
+
".dxos.test.extensions.defaultValue": string;
|
|
181
|
+
".dxos.test.extensions.optionsObj": dxos_test_extensions.OptionsObject;
|
|
182
182
|
}
|
|
183
183
|
export declare namespace FieldOptions {
|
|
184
184
|
enum CType {
|
|
@@ -196,30 +196,30 @@ export interface OneofOptions {
|
|
|
196
196
|
uninterpretedOption?: UninterpretedOption[];
|
|
197
197
|
}
|
|
198
198
|
export interface EnumOptions {
|
|
199
|
-
allowAlias
|
|
200
|
-
deprecated
|
|
199
|
+
allowAlias: boolean;
|
|
200
|
+
deprecated: boolean;
|
|
201
201
|
uninterpretedOption?: UninterpretedOption[];
|
|
202
202
|
}
|
|
203
203
|
export interface EnumValueOptions {
|
|
204
|
-
deprecated
|
|
204
|
+
deprecated: boolean;
|
|
205
205
|
uninterpretedOption?: UninterpretedOption[];
|
|
206
206
|
}
|
|
207
207
|
export interface ServiceOptions {
|
|
208
|
-
deprecated
|
|
208
|
+
deprecated: boolean;
|
|
209
209
|
uninterpretedOption?: UninterpretedOption[];
|
|
210
210
|
}
|
|
211
211
|
export interface MethodOptions {
|
|
212
|
-
deprecated
|
|
212
|
+
deprecated: boolean;
|
|
213
213
|
uninterpretedOption?: UninterpretedOption[];
|
|
214
214
|
}
|
|
215
215
|
export interface UninterpretedOption {
|
|
216
216
|
name?: UninterpretedOption.NamePart[];
|
|
217
|
-
identifierValue
|
|
218
|
-
positiveIntValue
|
|
219
|
-
negativeIntValue
|
|
220
|
-
doubleValue
|
|
221
|
-
stringValue
|
|
222
|
-
aggregateValue
|
|
217
|
+
identifierValue: string;
|
|
218
|
+
positiveIntValue: string;
|
|
219
|
+
negativeIntValue: string;
|
|
220
|
+
doubleValue: number;
|
|
221
|
+
stringValue: Uint8Array;
|
|
222
|
+
aggregateValue: string;
|
|
223
223
|
}
|
|
224
224
|
export declare namespace UninterpretedOption {
|
|
225
225
|
interface NamePart {
|
|
@@ -234,8 +234,8 @@ export declare namespace SourceCodeInfo {
|
|
|
234
234
|
interface Location {
|
|
235
235
|
path?: number[];
|
|
236
236
|
span?: number[];
|
|
237
|
-
leadingComments
|
|
238
|
-
trailingComments
|
|
237
|
+
leadingComments: string;
|
|
238
|
+
trailingComments: string;
|
|
239
239
|
leadingDetachedComments?: string[];
|
|
240
240
|
}
|
|
241
241
|
}
|
|
@@ -245,9 +245,9 @@ export interface GeneratedCodeInfo {
|
|
|
245
245
|
export declare namespace GeneratedCodeInfo {
|
|
246
246
|
interface Annotation {
|
|
247
247
|
path?: number[];
|
|
248
|
-
sourceFile
|
|
249
|
-
begin
|
|
250
|
-
end
|
|
248
|
+
sourceFile: string;
|
|
249
|
+
begin: number;
|
|
250
|
+
end: number;
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
//# sourceMappingURL=protobuf.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protobuf.d.ts","sourceRoot":"","sources":["../../../../../test/proto/gen/google/protobuf.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,oBAAoB,MAAM,yBAAyB,CAAC;AAEhE,MAAM,WAAW,GAAG;IAChB,QAAQ,
|
|
1
|
+
{"version":3,"file":"protobuf.d.ts","sourceRoot":"","sources":["../../../../../test/proto/gen/google/protobuf.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,oBAAoB,MAAM,yBAAyB,CAAC;AAEhE,MAAM,WAAW,GAAG;IAChB,Q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,CAAC,gBAAgB,CAAC;IACzD,uBAAuB,EAAE,SAAS,CAAC,WAAW,CAAC;CAClD;AACD,eAAO,MAAM,UAAU,KAAwsd,CAAC;AAChud,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\":{\"dxos\":{\"nested\":{\"test\":{\"nested\":{\"another\":{\"nested\":{\"AnotherMessage\":{\"fields\":{},\"comment\":null}}},\"any\":{\"nested\":{\"Any\":{\"fields\":{\"bar\":{\"type\":\"int32\",\"id\":1,\"comment\":null}},\"comment\":null}}},\"Any\":{\"fields\":{\"foo\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null},\"ComplexFields\":{\"fields\":{\"repeatedField\":{\"rule\":\"repeated\",\"type\":\"Key\",\"id\":16,\"comment\":null},\"requiredField\":{\"rule\":\"required\",\"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},\"importedAny\":{\"type\":\"dxos.test.any.Any\",\"id\":22,\"comment\":null},\"fooTest\":{\"type\":\"TestFoo\",\"id\":23,\"comment\":null}},\"nested\":{\"Inner\":{\"fields\":{\"foo\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"bar\":{\"type\":\"InnerEnum\",\"id\":2,\"comment\":null}},\"comment\":null},\"InnerEnum\":{\"values\":{\"FOO\":1,\"BAR\":2},\"comment\":null,\"comments\":{\"FOO\":null,\"BAR\":null}}},\"comment\":null},\"extensions\":{\"nested\":{\"ContainingMessageWithExtensions\":{\"oneofs\":{\"kind\":{\"oneof\":[\"str\",\"msg\"],\"comment\":null}},\"fields\":{\"str\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"msg\":{\"type\":\"WithDefaultField\",\"id\":2,\"comment\":null}},\"comment\":null},\"defaultValue\":{\"type\":\"string\",\"id\":5001,\"extend\":\"google.protobuf.FieldOptions\",\"comment\":null},\"optionsObj\":{\"type\":\"OptionsObject\",\"id\":5002,\"extend\":\"google.protobuf.FieldOptions\",\"comment\":null},\"OptionsObject\":{\"fields\":{\"field\":{\"type\":\"int32\",\"id\":1,\"comment\":null}},\"comment\":null},\"WithDefaultField\":{\"fields\":{\"tag\":{\"type\":\"string\",\"id\":1,\"options\":{\"(defaultValue)\":\"latest\",\"(optionsObj).field\":3},\"comment\":\"Tag\"}},\"comment\":null}}},\"Key\":{\"fields\":{\"data\":{\"rule\":\"required\",\"type\":\"bytes\",\"id\":1,\"comment\":null}},\"comment\":null},\"Outer\":{\"fields\":{\"inner\":{\"type\":\"ComplexFields.Inner\",\"id\":1,\"comment\":null}},\"nested\":{\"Inner\":{\"fields\":{\"inner\":{\"type\":\"ComplexFields.InnerEnum\",\"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},\"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},\"SubstitutedByInterface\":{\"fields\":{\"foo\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null},\"Task\":{\"fields\":{\"id\":{\"type\":\"string\",\"id\":1,\"comment\":\"Task id\"},\"title\":{\"type\":\"string\",\"id\":2,\"comment\":\"Task title\"},\"key\":{\"rule\":\"required\",\"type\":\"Key\",\"id\":3,\"comment\":\"Task key.\\nMultiline field comment.\"},\"type\":{\"rule\":\"required\",\"type\":\"TaskType\",\"id\":4,\"comment\":null},\"googleAny\":{\"type\":\"google.protobuf.Any\",\"id\":5,\"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\":1,\"COMPLETED\":2},\"comment\":null,\"comments\":{\"IN_PROGRESS\":null,\"COMPLETED\":null}},\"testfoo\":{\"nested\":{\"TestFoo\":{\"fields\":{\"fizz\":{\"type\":\"uint32\",\"id\":1,\"comment\":null},\"bazz\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null}}},\"TestService\":{\"methods\":{\"CountTasks\":{\"requestType\":\"TaskList\",\"responseType\":\"TaskCount\",\"comment\":\"Count the tasks in the task list.\"},\"SubscribeTasks\":{\"requestType\":\"Key\",\"responseType\":\"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},\"WithTimestamp\":{\"fields\":{\"timestamp\":{\"type\":\"google.protobuf.Timestamp\",\"id\":1,\"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}}}}}}}");
|
|
9
|
+
exports.schemaJson = JSON.parse("{\"nested\":{\"dxos\":{\"nested\":{\"test\":{\"nested\":{\"another\":{\"nested\":{\"AnotherMessage\":{\"fields\":{},\"comment\":null}}},\"any\":{\"nested\":{\"Any\":{\"fields\":{\"bar\":{\"type\":\"int32\",\"id\":1,\"comment\":null}},\"comment\":null}}},\"Any\":{\"fields\":{\"foo\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null},\"ComplexFields\":{\"oneofs\":{\"_fooTest\":{\"oneof\":[\"fooTest\"]}},\"fields\":{\"repeatedField\":{\"rule\":\"repeated\",\"type\":\"Key\",\"id\":16,\"comment\":null},\"requiredField\":{\"rule\":\"required\",\"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},\"importedAny\":{\"type\":\"dxos.test.any.Any\",\"id\":22,\"comment\":null},\"fooTest\":{\"type\":\"TestFoo\",\"id\":23,\"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\":1,\"BAR\":2},\"comment\":null,\"comments\":{\"FOO\":null,\"BAR\":null}}},\"comment\":null},\"extensions\":{\"nested\":{\"ContainingMessageWithExtensions\":{\"oneofs\":{\"kind\":{\"oneof\":[\"str\",\"msg\"],\"comment\":null}},\"fields\":{\"str\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"msg\":{\"type\":\"WithDefaultField\",\"id\":2,\"comment\":null}},\"comment\":null},\"defaultValue\":{\"type\":\"string\",\"id\":5001,\"extend\":\"google.protobuf.FieldOptions\",\"comment\":null},\"optionsObj\":{\"type\":\"OptionsObject\",\"id\":5002,\"extend\":\"google.protobuf.FieldOptions\",\"comment\":null},\"OptionsObject\":{\"fields\":{\"field\":{\"type\":\"int32\",\"id\":1,\"comment\":null}},\"comment\":null},\"WithDefaultField\":{\"fields\":{\"tag\":{\"type\":\"string\",\"id\":1,\"options\":{\"(defaultValue)\":\"latest\",\"(optionsObj).field\":3},\"comment\":\"Tag\"}},\"comment\":null}}},\"Key\":{\"fields\":{\"data\":{\"rule\":\"required\",\"type\":\"bytes\",\"id\":1,\"comment\":null}},\"comment\":null},\"Outer\":{\"fields\":{\"inner\":{\"type\":\"ComplexFields.Inner\",\"id\":1,\"comment\":null}},\"nested\":{\"Inner\":{\"fields\":{\"inner\":{\"type\":\"ComplexFields.InnerEnum\",\"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},\"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},\"SubstitutedByInterface\":{\"fields\":{\"foo\":{\"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\":{\"rule\":\"required\",\"type\":\"Key\",\"id\":3,\"comment\":\"Task key.\\nMultiline field comment.\"},\"type\":{\"rule\":\"required\",\"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\":1,\"COMPLETED\":2},\"comment\":null,\"comments\":{\"IN_PROGRESS\":null,\"COMPLETED\":null}},\"testfoo\":{\"nested\":{\"TestFoo\":{\"fields\":{\"fizz\":{\"type\":\"uint32\",\"id\":1,\"comment\":null},\"bazz\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null}}},\"TestService\":{\"methods\":{\"CountTasks\":{\"requestType\":\"TaskList\",\"responseType\":\"TaskCount\",\"comment\":\"Count the tasks in the task list.\"},\"SubscribeTasks\":{\"requestType\":\"Key\",\"responseType\":\"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},\"WithTimestamp\":{\"fields\":{\"timestamp\":{\"type\":\"google.protobuf.Timestamp\",\"id\":1,\"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;AA6DhC,QAAA,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../test/proto/gen/index.ts"],"names":[],"mappings":";;;;;;AAAA,yDAA8C;AAO9C,qEAA6C;AA6DhC,QAAA,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,yrdAAyrd,CAAC,CAAC;AACntd,QAAA,MAAM,GAAG,uBAAM,CAAC,QAAQ,CAAkB,kBAAU,EAAE,uBAAa,CAAC,CAAC"}
|
package/dist/test/schema.test.js
CHANGED
|
@@ -85,7 +85,24 @@ test('encodes empty repeated fields as empty arrays', () => {
|
|
|
85
85
|
const codec = gen_1.schema.getCodecForType('dxos.test.ComplexFields');
|
|
86
86
|
const initial = {
|
|
87
87
|
repeatedField: [],
|
|
88
|
-
requiredField: new my_key_1.MyKey(Buffer.from('foo'))
|
|
88
|
+
requiredField: new my_key_1.MyKey(Buffer.from('foo')),
|
|
89
|
+
inner: {
|
|
90
|
+
bar: test_1.ComplexFields.InnerEnum.BAR,
|
|
91
|
+
foo: 'foo'
|
|
92
|
+
},
|
|
93
|
+
myAny: {
|
|
94
|
+
foo: 'foo'
|
|
95
|
+
},
|
|
96
|
+
googleAny: {
|
|
97
|
+
'@type': 'dxos.test.Task',
|
|
98
|
+
id: 'baz',
|
|
99
|
+
title: 'Baz',
|
|
100
|
+
key: new my_key_1.MyKey(Buffer.from('foo')),
|
|
101
|
+
type: test_1.TaskType.IN_PROGRESS
|
|
102
|
+
},
|
|
103
|
+
importedAny: {
|
|
104
|
+
bar: 123
|
|
105
|
+
}
|
|
89
106
|
};
|
|
90
107
|
const encoded = codec.encode(initial);
|
|
91
108
|
expect(encoded).toBeInstanceOf(Uint8Array);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.test.js","sourceRoot":"","sources":["../../test/schema.test.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,2BAA0D;AAC1D,+BAA4B;AAE5B,qCAAiC;AACjC,qCAAqC;AACrC,gDAAkG;AAGlG,IAAI,CAAC,mBAAmB,EAAE,KAAK,IAAI,EAAE;IACnC,MAAM,KAAK,GAAG,YAAM,CAAC,eAAe,CAAC,oBAAoB,CAAC,CAAC;IAE3D,MAAM,OAAO,GAAa;QACxB,KAAK,EAAE;YACL;gBACE,EAAE,EAAE,KAAK;gBACT,KAAK,EAAE,KAAK;gBACZ,GAAG,EAAE,IAAI,cAAK,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAClC,IAAI,EAAE,eAAQ,CAAC,SAAS;gBACxB,SAAS,EAAE;oBACT,OAAO,EAAE,kCAAkC;oBAC3C,GAAG,EAAE,KAAK;iBACX;aACF;YACD;gBACE,EAAE,EAAE,KAAK;gBACT,KAAK,EAAE,KAAK;gBACZ,GAAG,EAAE,IAAI,cAAK,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAClC,IAAI,EAAE,eAAQ,CAAC,WAAW;aAC3B;SACF;KACF,CAAC;IAEF,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAEtC,MAAM,CAAC,OAAO,CAAC,CAAC,cAAc,CAAC,UA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