@bufbuild/protobuf 0.0.4 → 0.0.7
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/cjs/binary-encoding.js +2 -2
- package/dist/cjs/descriptor-registry.js +18 -60
- package/dist/cjs/descriptor-set.js +15 -37
- package/dist/cjs/google/protobuf/any_pb.js +11 -8
- package/dist/cjs/google/protobuf/api_pb.js +19 -18
- package/dist/cjs/google/protobuf/compiler/plugin_pb.js +23 -22
- package/dist/cjs/google/protobuf/descriptor_pb.js +149 -148
- package/dist/cjs/google/protobuf/duration_pb.js +14 -12
- package/dist/cjs/google/protobuf/empty_pb.js +7 -6
- package/dist/cjs/google/protobuf/field_mask_pb.js +8 -7
- package/dist/cjs/google/protobuf/source_context_pb.js +7 -6
- package/dist/cjs/google/protobuf/struct_pb.js +26 -22
- package/dist/cjs/google/protobuf/timestamp_pb.js +12 -10
- package/dist/cjs/google/protobuf/type_pb.js +37 -33
- package/dist/cjs/google/protobuf/wrappers_pb.js +69 -66
- package/dist/cjs/index.js +40 -4
- package/dist/cjs/message.js +2 -1
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/private/binary-format-common.js +4 -3
- package/dist/cjs/private/binary-format-proto2.js +3 -6
- package/dist/cjs/private/binary-format-proto3.js +2 -5
- package/dist/cjs/private/enum.js +1 -1
- package/dist/cjs/private/json-format-common.js +6 -5
- package/dist/cjs/private/message-type.js +2 -1
- package/dist/cjs/proto-int64.js +1 -1
- package/dist/cjs/proto2.js +6 -8
- package/dist/cjs/proto3.js +9 -12
- package/dist/cjs/type-registry.js +58 -13
- package/dist/esm/binary-encoding.js +2 -2
- package/dist/esm/descriptor-registry.js +18 -60
- package/dist/esm/descriptor-set.js +15 -37
- package/dist/esm/google/protobuf/any_pb.js +6 -3
- package/dist/esm/google/protobuf/api_pb.js +2 -1
- package/dist/esm/google/protobuf/compiler/plugin_pb.js +2 -1
- package/dist/esm/google/protobuf/descriptor_pb.js +2 -1
- package/dist/esm/google/protobuf/duration_pb.js +4 -2
- package/dist/esm/google/protobuf/empty_pb.js +2 -1
- package/dist/esm/google/protobuf/field_mask_pb.js +2 -1
- package/dist/esm/google/protobuf/source_context_pb.js +2 -1
- package/dist/esm/google/protobuf/struct_pb.js +6 -2
- package/dist/esm/google/protobuf/timestamp_pb.js +3 -1
- package/dist/esm/google/protobuf/type_pb.js +5 -1
- package/dist/esm/google/protobuf/wrappers_pb.js +4 -1
- package/dist/esm/index.js +25 -4
- package/dist/esm/message.js +2 -1
- package/dist/esm/private/binary-format-common.js +4 -3
- package/dist/esm/private/binary-format-proto2.js +3 -6
- package/dist/esm/private/binary-format-proto3.js +2 -5
- package/dist/esm/private/enum.js +1 -1
- package/dist/esm/private/json-format-common.js +6 -5
- package/dist/esm/private/message-type.js +2 -1
- package/dist/esm/proto-int64.js +1 -1
- package/dist/esm/proto2.js +6 -8
- package/dist/esm/proto3.js +9 -12
- package/dist/esm/type-registry.js +58 -13
- package/dist/types/google/protobuf/any_pb.d.ts +6 -2
- package/dist/types/google/protobuf/api_pb.d.ts +5 -2
- package/dist/types/google/protobuf/compiler/plugin_pb.d.ts +5 -2
- package/dist/types/google/protobuf/descriptor_pb.d.ts +5 -2
- package/dist/types/google/protobuf/duration_pb.d.ts +5 -2
- package/dist/types/google/protobuf/empty_pb.d.ts +5 -2
- package/dist/types/google/protobuf/field_mask_pb.d.ts +5 -2
- package/dist/types/google/protobuf/source_context_pb.d.ts +5 -2
- package/dist/types/google/protobuf/struct_pb.d.ts +5 -2
- package/dist/types/google/protobuf/timestamp_pb.d.ts +5 -2
- package/dist/types/google/protobuf/type_pb.d.ts +5 -2
- package/dist/types/google/protobuf/wrappers_pb.d.ts +5 -2
- package/dist/types/index.d.ts +31 -2
- package/dist/types/type-registry.d.ts +35 -2
- package/package.json +3 -3
- package/dist/cjs/index-runtime.js +0 -42
- package/dist/cjs/index-wkt.js +0 -42
- package/dist/esm/index-runtime.js +0 -25
- package/dist/esm/index-wkt.js +0 -26
- package/dist/types/index-runtime.d.ts +0 -19
- package/dist/types/index-wkt.d.ts +0 -12
|
@@ -14,21 +14,22 @@
|
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.GeneratedCodeInfo_Annotation = exports.GeneratedCodeInfo = exports.SourceCodeInfo_Location = exports.SourceCodeInfo = exports.UninterpretedOption_NamePart = exports.UninterpretedOption = exports.MethodOptions_IdempotencyLevel = exports.MethodOptions = exports.ServiceOptions = exports.EnumValueOptions = exports.EnumOptions = exports.OneofOptions = exports.FieldOptions_JSType = exports.FieldOptions_CType = exports.FieldOptions = exports.MessageOptions = exports.FileOptions_OptimizeMode = exports.FileOptions = exports.MethodDescriptorProto = exports.ServiceDescriptorProto = exports.EnumValueDescriptorProto = exports.EnumDescriptorProto_EnumReservedRange = exports.EnumDescriptorProto = exports.OneofDescriptorProto = exports.FieldDescriptorProto_Label = exports.FieldDescriptorProto_Type = exports.FieldDescriptorProto = exports.ExtensionRangeOptions = exports.DescriptorProto_ReservedRange = exports.DescriptorProto_ExtensionRange = exports.DescriptorProto = exports.FileDescriptorProto = exports.FileDescriptorSet = void 0;
|
|
17
|
-
const
|
|
17
|
+
const message_js_1 = require("../../message.js");
|
|
18
|
+
const proto2_js_1 = require("../../proto2.js");
|
|
18
19
|
/**
|
|
19
20
|
* The protocol compiler can output a FileDescriptorSet containing the .proto
|
|
20
21
|
* files it parses.
|
|
21
22
|
*
|
|
22
23
|
* @generated from message google.protobuf.FileDescriptorSet
|
|
23
24
|
*/
|
|
24
|
-
class FileDescriptorSet extends
|
|
25
|
+
class FileDescriptorSet extends message_js_1.Message {
|
|
25
26
|
constructor(data) {
|
|
26
27
|
super();
|
|
27
28
|
/**
|
|
28
29
|
* @generated from field: repeated google.protobuf.FileDescriptorProto file = 1;
|
|
29
30
|
*/
|
|
30
31
|
this.file = [];
|
|
31
|
-
|
|
32
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
32
33
|
}
|
|
33
34
|
static fromBinary(bytes, options) {
|
|
34
35
|
return new FileDescriptorSet().fromBinary(bytes, options);
|
|
@@ -40,13 +41,13 @@ class FileDescriptorSet extends index_runtime_js_1.Message {
|
|
|
40
41
|
return new FileDescriptorSet().fromJsonString(jsonString, options);
|
|
41
42
|
}
|
|
42
43
|
static equals(a, b) {
|
|
43
|
-
return
|
|
44
|
+
return proto2_js_1.proto2.util.equals(FileDescriptorSet, a, b);
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
exports.FileDescriptorSet = FileDescriptorSet;
|
|
47
|
-
FileDescriptorSet.runtime =
|
|
48
|
+
FileDescriptorSet.runtime = proto2_js_1.proto2;
|
|
48
49
|
FileDescriptorSet.typeName = "google.protobuf.FileDescriptorSet";
|
|
49
|
-
FileDescriptorSet.fields =
|
|
50
|
+
FileDescriptorSet.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
50
51
|
{ no: 1, name: "file", kind: "message", T: FileDescriptorProto, repeated: true },
|
|
51
52
|
]);
|
|
52
53
|
/**
|
|
@@ -54,7 +55,7 @@ FileDescriptorSet.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
|
54
55
|
*
|
|
55
56
|
* @generated from message google.protobuf.FileDescriptorProto
|
|
56
57
|
*/
|
|
57
|
-
class FileDescriptorProto extends
|
|
58
|
+
class FileDescriptorProto extends message_js_1.Message {
|
|
58
59
|
constructor(data) {
|
|
59
60
|
super();
|
|
60
61
|
/**
|
|
@@ -94,7 +95,7 @@ class FileDescriptorProto extends index_runtime_js_1.Message {
|
|
|
94
95
|
* @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 7;
|
|
95
96
|
*/
|
|
96
97
|
this.extension = [];
|
|
97
|
-
|
|
98
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
98
99
|
}
|
|
99
100
|
static fromBinary(bytes, options) {
|
|
100
101
|
return new FileDescriptorProto().fromBinary(bytes, options);
|
|
@@ -106,13 +107,13 @@ class FileDescriptorProto extends index_runtime_js_1.Message {
|
|
|
106
107
|
return new FileDescriptorProto().fromJsonString(jsonString, options);
|
|
107
108
|
}
|
|
108
109
|
static equals(a, b) {
|
|
109
|
-
return
|
|
110
|
+
return proto2_js_1.proto2.util.equals(FileDescriptorProto, a, b);
|
|
110
111
|
}
|
|
111
112
|
}
|
|
112
113
|
exports.FileDescriptorProto = FileDescriptorProto;
|
|
113
|
-
FileDescriptorProto.runtime =
|
|
114
|
+
FileDescriptorProto.runtime = proto2_js_1.proto2;
|
|
114
115
|
FileDescriptorProto.typeName = "google.protobuf.FileDescriptorProto";
|
|
115
|
-
FileDescriptorProto.fields =
|
|
116
|
+
FileDescriptorProto.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
116
117
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
117
118
|
{ no: 2, name: "package", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
118
119
|
{ no: 3, name: "dependency", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
@@ -131,7 +132,7 @@ FileDescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
|
131
132
|
*
|
|
132
133
|
* @generated from message google.protobuf.DescriptorProto
|
|
133
134
|
*/
|
|
134
|
-
class DescriptorProto extends
|
|
135
|
+
class DescriptorProto extends message_js_1.Message {
|
|
135
136
|
constructor(data) {
|
|
136
137
|
super();
|
|
137
138
|
/**
|
|
@@ -169,7 +170,7 @@ class DescriptorProto extends index_runtime_js_1.Message {
|
|
|
169
170
|
* @generated from field: repeated string reserved_name = 10;
|
|
170
171
|
*/
|
|
171
172
|
this.reservedName = [];
|
|
172
|
-
|
|
173
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
173
174
|
}
|
|
174
175
|
static fromBinary(bytes, options) {
|
|
175
176
|
return new DescriptorProto().fromBinary(bytes, options);
|
|
@@ -181,13 +182,13 @@ class DescriptorProto extends index_runtime_js_1.Message {
|
|
|
181
182
|
return new DescriptorProto().fromJsonString(jsonString, options);
|
|
182
183
|
}
|
|
183
184
|
static equals(a, b) {
|
|
184
|
-
return
|
|
185
|
+
return proto2_js_1.proto2.util.equals(DescriptorProto, a, b);
|
|
185
186
|
}
|
|
186
187
|
}
|
|
187
188
|
exports.DescriptorProto = DescriptorProto;
|
|
188
|
-
DescriptorProto.runtime =
|
|
189
|
+
DescriptorProto.runtime = proto2_js_1.proto2;
|
|
189
190
|
DescriptorProto.typeName = "google.protobuf.DescriptorProto";
|
|
190
|
-
DescriptorProto.fields =
|
|
191
|
+
DescriptorProto.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
191
192
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
192
193
|
{ no: 2, name: "field", kind: "message", T: FieldDescriptorProto, repeated: true },
|
|
193
194
|
{ no: 6, name: "extension", kind: "message", T: FieldDescriptorProto, repeated: true },
|
|
@@ -202,10 +203,10 @@ DescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
|
202
203
|
/**
|
|
203
204
|
* @generated from message google.protobuf.DescriptorProto.ExtensionRange
|
|
204
205
|
*/
|
|
205
|
-
class DescriptorProto_ExtensionRange extends
|
|
206
|
+
class DescriptorProto_ExtensionRange extends message_js_1.Message {
|
|
206
207
|
constructor(data) {
|
|
207
208
|
super();
|
|
208
|
-
|
|
209
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
209
210
|
}
|
|
210
211
|
static fromBinary(bytes, options) {
|
|
211
212
|
return new DescriptorProto_ExtensionRange().fromBinary(bytes, options);
|
|
@@ -217,13 +218,13 @@ class DescriptorProto_ExtensionRange extends index_runtime_js_1.Message {
|
|
|
217
218
|
return new DescriptorProto_ExtensionRange().fromJsonString(jsonString, options);
|
|
218
219
|
}
|
|
219
220
|
static equals(a, b) {
|
|
220
|
-
return
|
|
221
|
+
return proto2_js_1.proto2.util.equals(DescriptorProto_ExtensionRange, a, b);
|
|
221
222
|
}
|
|
222
223
|
}
|
|
223
224
|
exports.DescriptorProto_ExtensionRange = DescriptorProto_ExtensionRange;
|
|
224
|
-
DescriptorProto_ExtensionRange.runtime =
|
|
225
|
+
DescriptorProto_ExtensionRange.runtime = proto2_js_1.proto2;
|
|
225
226
|
DescriptorProto_ExtensionRange.typeName = "google.protobuf.DescriptorProto.ExtensionRange";
|
|
226
|
-
DescriptorProto_ExtensionRange.fields =
|
|
227
|
+
DescriptorProto_ExtensionRange.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
227
228
|
{ no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
228
229
|
{ no: 2, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
229
230
|
{ no: 3, name: "options", kind: "message", T: ExtensionRangeOptions, opt: true },
|
|
@@ -235,10 +236,10 @@ DescriptorProto_ExtensionRange.fields = index_runtime_js_1.proto2.util.newFieldL
|
|
|
235
236
|
*
|
|
236
237
|
* @generated from message google.protobuf.DescriptorProto.ReservedRange
|
|
237
238
|
*/
|
|
238
|
-
class DescriptorProto_ReservedRange extends
|
|
239
|
+
class DescriptorProto_ReservedRange extends message_js_1.Message {
|
|
239
240
|
constructor(data) {
|
|
240
241
|
super();
|
|
241
|
-
|
|
242
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
242
243
|
}
|
|
243
244
|
static fromBinary(bytes, options) {
|
|
244
245
|
return new DescriptorProto_ReservedRange().fromBinary(bytes, options);
|
|
@@ -250,20 +251,20 @@ class DescriptorProto_ReservedRange extends index_runtime_js_1.Message {
|
|
|
250
251
|
return new DescriptorProto_ReservedRange().fromJsonString(jsonString, options);
|
|
251
252
|
}
|
|
252
253
|
static equals(a, b) {
|
|
253
|
-
return
|
|
254
|
+
return proto2_js_1.proto2.util.equals(DescriptorProto_ReservedRange, a, b);
|
|
254
255
|
}
|
|
255
256
|
}
|
|
256
257
|
exports.DescriptorProto_ReservedRange = DescriptorProto_ReservedRange;
|
|
257
|
-
DescriptorProto_ReservedRange.runtime =
|
|
258
|
+
DescriptorProto_ReservedRange.runtime = proto2_js_1.proto2;
|
|
258
259
|
DescriptorProto_ReservedRange.typeName = "google.protobuf.DescriptorProto.ReservedRange";
|
|
259
|
-
DescriptorProto_ReservedRange.fields =
|
|
260
|
+
DescriptorProto_ReservedRange.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
260
261
|
{ no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
261
262
|
{ no: 2, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
262
263
|
]);
|
|
263
264
|
/**
|
|
264
265
|
* @generated from message google.protobuf.ExtensionRangeOptions
|
|
265
266
|
*/
|
|
266
|
-
class ExtensionRangeOptions extends
|
|
267
|
+
class ExtensionRangeOptions extends message_js_1.Message {
|
|
267
268
|
constructor(data) {
|
|
268
269
|
super();
|
|
269
270
|
/**
|
|
@@ -272,7 +273,7 @@ class ExtensionRangeOptions extends index_runtime_js_1.Message {
|
|
|
272
273
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
273
274
|
*/
|
|
274
275
|
this.uninterpretedOption = [];
|
|
275
|
-
|
|
276
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
276
277
|
}
|
|
277
278
|
static fromBinary(bytes, options) {
|
|
278
279
|
return new ExtensionRangeOptions().fromBinary(bytes, options);
|
|
@@ -284,13 +285,13 @@ class ExtensionRangeOptions extends index_runtime_js_1.Message {
|
|
|
284
285
|
return new ExtensionRangeOptions().fromJsonString(jsonString, options);
|
|
285
286
|
}
|
|
286
287
|
static equals(a, b) {
|
|
287
|
-
return
|
|
288
|
+
return proto2_js_1.proto2.util.equals(ExtensionRangeOptions, a, b);
|
|
288
289
|
}
|
|
289
290
|
}
|
|
290
291
|
exports.ExtensionRangeOptions = ExtensionRangeOptions;
|
|
291
|
-
ExtensionRangeOptions.runtime =
|
|
292
|
+
ExtensionRangeOptions.runtime = proto2_js_1.proto2;
|
|
292
293
|
ExtensionRangeOptions.typeName = "google.protobuf.ExtensionRangeOptions";
|
|
293
|
-
ExtensionRangeOptions.fields =
|
|
294
|
+
ExtensionRangeOptions.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
294
295
|
{ no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
|
|
295
296
|
]);
|
|
296
297
|
/**
|
|
@@ -298,10 +299,10 @@ ExtensionRangeOptions.fields = index_runtime_js_1.proto2.util.newFieldList(() =>
|
|
|
298
299
|
*
|
|
299
300
|
* @generated from message google.protobuf.FieldDescriptorProto
|
|
300
301
|
*/
|
|
301
|
-
class FieldDescriptorProto extends
|
|
302
|
+
class FieldDescriptorProto extends message_js_1.Message {
|
|
302
303
|
constructor(data) {
|
|
303
304
|
super();
|
|
304
|
-
|
|
305
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
305
306
|
}
|
|
306
307
|
static fromBinary(bytes, options) {
|
|
307
308
|
return new FieldDescriptorProto().fromBinary(bytes, options);
|
|
@@ -313,17 +314,17 @@ class FieldDescriptorProto extends index_runtime_js_1.Message {
|
|
|
313
314
|
return new FieldDescriptorProto().fromJsonString(jsonString, options);
|
|
314
315
|
}
|
|
315
316
|
static equals(a, b) {
|
|
316
|
-
return
|
|
317
|
+
return proto2_js_1.proto2.util.equals(FieldDescriptorProto, a, b);
|
|
317
318
|
}
|
|
318
319
|
}
|
|
319
320
|
exports.FieldDescriptorProto = FieldDescriptorProto;
|
|
320
|
-
FieldDescriptorProto.runtime =
|
|
321
|
+
FieldDescriptorProto.runtime = proto2_js_1.proto2;
|
|
321
322
|
FieldDescriptorProto.typeName = "google.protobuf.FieldDescriptorProto";
|
|
322
|
-
FieldDescriptorProto.fields =
|
|
323
|
+
FieldDescriptorProto.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
323
324
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
324
325
|
{ no: 3, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
325
|
-
{ no: 4, name: "label", kind: "enum", T:
|
|
326
|
-
{ no: 5, name: "type", kind: "enum", T:
|
|
326
|
+
{ no: 4, name: "label", kind: "enum", T: proto2_js_1.proto2.getEnumType(FieldDescriptorProto_Label), opt: true },
|
|
327
|
+
{ no: 5, name: "type", kind: "enum", T: proto2_js_1.proto2.getEnumType(FieldDescriptorProto_Type), opt: true },
|
|
327
328
|
{ no: 6, name: "type_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
328
329
|
{ no: 2, name: "extendee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
329
330
|
{ no: 7, name: "default_value", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
@@ -433,7 +434,7 @@ var FieldDescriptorProto_Type;
|
|
|
433
434
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["SINT64"] = 18] = "SINT64";
|
|
434
435
|
})(FieldDescriptorProto_Type = exports.FieldDescriptorProto_Type || (exports.FieldDescriptorProto_Type = {}));
|
|
435
436
|
// Retrieve enum metadata with: proto2.getEnumType(FieldDescriptorProto_Type)
|
|
436
|
-
|
|
437
|
+
proto2_js_1.proto2.util.setEnumType(FieldDescriptorProto_Type, "google.protobuf.FieldDescriptorProto.Type", [
|
|
437
438
|
{ no: 1, name: "TYPE_DOUBLE" },
|
|
438
439
|
{ no: 2, name: "TYPE_FLOAT" },
|
|
439
440
|
{ no: 3, name: "TYPE_INT64" },
|
|
@@ -474,7 +475,7 @@ var FieldDescriptorProto_Label;
|
|
|
474
475
|
FieldDescriptorProto_Label[FieldDescriptorProto_Label["REPEATED"] = 3] = "REPEATED";
|
|
475
476
|
})(FieldDescriptorProto_Label = exports.FieldDescriptorProto_Label || (exports.FieldDescriptorProto_Label = {}));
|
|
476
477
|
// Retrieve enum metadata with: proto2.getEnumType(FieldDescriptorProto_Label)
|
|
477
|
-
|
|
478
|
+
proto2_js_1.proto2.util.setEnumType(FieldDescriptorProto_Label, "google.protobuf.FieldDescriptorProto.Label", [
|
|
478
479
|
{ no: 1, name: "LABEL_OPTIONAL" },
|
|
479
480
|
{ no: 2, name: "LABEL_REQUIRED" },
|
|
480
481
|
{ no: 3, name: "LABEL_REPEATED" },
|
|
@@ -484,10 +485,10 @@ index_runtime_js_1.proto2.util.setEnumType(FieldDescriptorProto_Label, "google.p
|
|
|
484
485
|
*
|
|
485
486
|
* @generated from message google.protobuf.OneofDescriptorProto
|
|
486
487
|
*/
|
|
487
|
-
class OneofDescriptorProto extends
|
|
488
|
+
class OneofDescriptorProto extends message_js_1.Message {
|
|
488
489
|
constructor(data) {
|
|
489
490
|
super();
|
|
490
|
-
|
|
491
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
491
492
|
}
|
|
492
493
|
static fromBinary(bytes, options) {
|
|
493
494
|
return new OneofDescriptorProto().fromBinary(bytes, options);
|
|
@@ -499,13 +500,13 @@ class OneofDescriptorProto extends index_runtime_js_1.Message {
|
|
|
499
500
|
return new OneofDescriptorProto().fromJsonString(jsonString, options);
|
|
500
501
|
}
|
|
501
502
|
static equals(a, b) {
|
|
502
|
-
return
|
|
503
|
+
return proto2_js_1.proto2.util.equals(OneofDescriptorProto, a, b);
|
|
503
504
|
}
|
|
504
505
|
}
|
|
505
506
|
exports.OneofDescriptorProto = OneofDescriptorProto;
|
|
506
|
-
OneofDescriptorProto.runtime =
|
|
507
|
+
OneofDescriptorProto.runtime = proto2_js_1.proto2;
|
|
507
508
|
OneofDescriptorProto.typeName = "google.protobuf.OneofDescriptorProto";
|
|
508
|
-
OneofDescriptorProto.fields =
|
|
509
|
+
OneofDescriptorProto.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
509
510
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
510
511
|
{ no: 2, name: "options", kind: "message", T: OneofOptions, opt: true },
|
|
511
512
|
]);
|
|
@@ -514,7 +515,7 @@ OneofDescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(() =>
|
|
|
514
515
|
*
|
|
515
516
|
* @generated from message google.protobuf.EnumDescriptorProto
|
|
516
517
|
*/
|
|
517
|
-
class EnumDescriptorProto extends
|
|
518
|
+
class EnumDescriptorProto extends message_js_1.Message {
|
|
518
519
|
constructor(data) {
|
|
519
520
|
super();
|
|
520
521
|
/**
|
|
@@ -536,7 +537,7 @@ class EnumDescriptorProto extends index_runtime_js_1.Message {
|
|
|
536
537
|
* @generated from field: repeated string reserved_name = 5;
|
|
537
538
|
*/
|
|
538
539
|
this.reservedName = [];
|
|
539
|
-
|
|
540
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
540
541
|
}
|
|
541
542
|
static fromBinary(bytes, options) {
|
|
542
543
|
return new EnumDescriptorProto().fromBinary(bytes, options);
|
|
@@ -548,13 +549,13 @@ class EnumDescriptorProto extends index_runtime_js_1.Message {
|
|
|
548
549
|
return new EnumDescriptorProto().fromJsonString(jsonString, options);
|
|
549
550
|
}
|
|
550
551
|
static equals(a, b) {
|
|
551
|
-
return
|
|
552
|
+
return proto2_js_1.proto2.util.equals(EnumDescriptorProto, a, b);
|
|
552
553
|
}
|
|
553
554
|
}
|
|
554
555
|
exports.EnumDescriptorProto = EnumDescriptorProto;
|
|
555
|
-
EnumDescriptorProto.runtime =
|
|
556
|
+
EnumDescriptorProto.runtime = proto2_js_1.proto2;
|
|
556
557
|
EnumDescriptorProto.typeName = "google.protobuf.EnumDescriptorProto";
|
|
557
|
-
EnumDescriptorProto.fields =
|
|
558
|
+
EnumDescriptorProto.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
558
559
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
559
560
|
{ no: 2, name: "value", kind: "message", T: EnumValueDescriptorProto, repeated: true },
|
|
560
561
|
{ no: 3, name: "options", kind: "message", T: EnumOptions, opt: true },
|
|
@@ -571,10 +572,10 @@ EnumDescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
|
571
572
|
*
|
|
572
573
|
* @generated from message google.protobuf.EnumDescriptorProto.EnumReservedRange
|
|
573
574
|
*/
|
|
574
|
-
class EnumDescriptorProto_EnumReservedRange extends
|
|
575
|
+
class EnumDescriptorProto_EnumReservedRange extends message_js_1.Message {
|
|
575
576
|
constructor(data) {
|
|
576
577
|
super();
|
|
577
|
-
|
|
578
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
578
579
|
}
|
|
579
580
|
static fromBinary(bytes, options) {
|
|
580
581
|
return new EnumDescriptorProto_EnumReservedRange().fromBinary(bytes, options);
|
|
@@ -586,13 +587,13 @@ class EnumDescriptorProto_EnumReservedRange extends index_runtime_js_1.Message {
|
|
|
586
587
|
return new EnumDescriptorProto_EnumReservedRange().fromJsonString(jsonString, options);
|
|
587
588
|
}
|
|
588
589
|
static equals(a, b) {
|
|
589
|
-
return
|
|
590
|
+
return proto2_js_1.proto2.util.equals(EnumDescriptorProto_EnumReservedRange, a, b);
|
|
590
591
|
}
|
|
591
592
|
}
|
|
592
593
|
exports.EnumDescriptorProto_EnumReservedRange = EnumDescriptorProto_EnumReservedRange;
|
|
593
|
-
EnumDescriptorProto_EnumReservedRange.runtime =
|
|
594
|
+
EnumDescriptorProto_EnumReservedRange.runtime = proto2_js_1.proto2;
|
|
594
595
|
EnumDescriptorProto_EnumReservedRange.typeName = "google.protobuf.EnumDescriptorProto.EnumReservedRange";
|
|
595
|
-
EnumDescriptorProto_EnumReservedRange.fields =
|
|
596
|
+
EnumDescriptorProto_EnumReservedRange.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
596
597
|
{ no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
597
598
|
{ no: 2, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
598
599
|
]);
|
|
@@ -601,10 +602,10 @@ EnumDescriptorProto_EnumReservedRange.fields = index_runtime_js_1.proto2.util.ne
|
|
|
601
602
|
*
|
|
602
603
|
* @generated from message google.protobuf.EnumValueDescriptorProto
|
|
603
604
|
*/
|
|
604
|
-
class EnumValueDescriptorProto extends
|
|
605
|
+
class EnumValueDescriptorProto extends message_js_1.Message {
|
|
605
606
|
constructor(data) {
|
|
606
607
|
super();
|
|
607
|
-
|
|
608
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
608
609
|
}
|
|
609
610
|
static fromBinary(bytes, options) {
|
|
610
611
|
return new EnumValueDescriptorProto().fromBinary(bytes, options);
|
|
@@ -616,13 +617,13 @@ class EnumValueDescriptorProto extends index_runtime_js_1.Message {
|
|
|
616
617
|
return new EnumValueDescriptorProto().fromJsonString(jsonString, options);
|
|
617
618
|
}
|
|
618
619
|
static equals(a, b) {
|
|
619
|
-
return
|
|
620
|
+
return proto2_js_1.proto2.util.equals(EnumValueDescriptorProto, a, b);
|
|
620
621
|
}
|
|
621
622
|
}
|
|
622
623
|
exports.EnumValueDescriptorProto = EnumValueDescriptorProto;
|
|
623
|
-
EnumValueDescriptorProto.runtime =
|
|
624
|
+
EnumValueDescriptorProto.runtime = proto2_js_1.proto2;
|
|
624
625
|
EnumValueDescriptorProto.typeName = "google.protobuf.EnumValueDescriptorProto";
|
|
625
|
-
EnumValueDescriptorProto.fields =
|
|
626
|
+
EnumValueDescriptorProto.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
626
627
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
627
628
|
{ no: 2, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
628
629
|
{ no: 3, name: "options", kind: "message", T: EnumValueOptions, opt: true },
|
|
@@ -632,14 +633,14 @@ EnumValueDescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(()
|
|
|
632
633
|
*
|
|
633
634
|
* @generated from message google.protobuf.ServiceDescriptorProto
|
|
634
635
|
*/
|
|
635
|
-
class ServiceDescriptorProto extends
|
|
636
|
+
class ServiceDescriptorProto extends message_js_1.Message {
|
|
636
637
|
constructor(data) {
|
|
637
638
|
super();
|
|
638
639
|
/**
|
|
639
640
|
* @generated from field: repeated google.protobuf.MethodDescriptorProto method = 2;
|
|
640
641
|
*/
|
|
641
642
|
this.method = [];
|
|
642
|
-
|
|
643
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
643
644
|
}
|
|
644
645
|
static fromBinary(bytes, options) {
|
|
645
646
|
return new ServiceDescriptorProto().fromBinary(bytes, options);
|
|
@@ -651,13 +652,13 @@ class ServiceDescriptorProto extends index_runtime_js_1.Message {
|
|
|
651
652
|
return new ServiceDescriptorProto().fromJsonString(jsonString, options);
|
|
652
653
|
}
|
|
653
654
|
static equals(a, b) {
|
|
654
|
-
return
|
|
655
|
+
return proto2_js_1.proto2.util.equals(ServiceDescriptorProto, a, b);
|
|
655
656
|
}
|
|
656
657
|
}
|
|
657
658
|
exports.ServiceDescriptorProto = ServiceDescriptorProto;
|
|
658
|
-
ServiceDescriptorProto.runtime =
|
|
659
|
+
ServiceDescriptorProto.runtime = proto2_js_1.proto2;
|
|
659
660
|
ServiceDescriptorProto.typeName = "google.protobuf.ServiceDescriptorProto";
|
|
660
|
-
ServiceDescriptorProto.fields =
|
|
661
|
+
ServiceDescriptorProto.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
661
662
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
662
663
|
{ no: 2, name: "method", kind: "message", T: MethodDescriptorProto, repeated: true },
|
|
663
664
|
{ no: 3, name: "options", kind: "message", T: ServiceOptions, opt: true },
|
|
@@ -667,10 +668,10 @@ ServiceDescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(() =
|
|
|
667
668
|
*
|
|
668
669
|
* @generated from message google.protobuf.MethodDescriptorProto
|
|
669
670
|
*/
|
|
670
|
-
class MethodDescriptorProto extends
|
|
671
|
+
class MethodDescriptorProto extends message_js_1.Message {
|
|
671
672
|
constructor(data) {
|
|
672
673
|
super();
|
|
673
|
-
|
|
674
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
674
675
|
}
|
|
675
676
|
static fromBinary(bytes, options) {
|
|
676
677
|
return new MethodDescriptorProto().fromBinary(bytes, options);
|
|
@@ -682,13 +683,13 @@ class MethodDescriptorProto extends index_runtime_js_1.Message {
|
|
|
682
683
|
return new MethodDescriptorProto().fromJsonString(jsonString, options);
|
|
683
684
|
}
|
|
684
685
|
static equals(a, b) {
|
|
685
|
-
return
|
|
686
|
+
return proto2_js_1.proto2.util.equals(MethodDescriptorProto, a, b);
|
|
686
687
|
}
|
|
687
688
|
}
|
|
688
689
|
exports.MethodDescriptorProto = MethodDescriptorProto;
|
|
689
|
-
MethodDescriptorProto.runtime =
|
|
690
|
+
MethodDescriptorProto.runtime = proto2_js_1.proto2;
|
|
690
691
|
MethodDescriptorProto.typeName = "google.protobuf.MethodDescriptorProto";
|
|
691
|
-
MethodDescriptorProto.fields =
|
|
692
|
+
MethodDescriptorProto.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
692
693
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
693
694
|
{ no: 2, name: "input_type", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
694
695
|
{ no: 3, name: "output_type", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
@@ -699,7 +700,7 @@ MethodDescriptorProto.fields = index_runtime_js_1.proto2.util.newFieldList(() =>
|
|
|
699
700
|
/**
|
|
700
701
|
* @generated from message google.protobuf.FileOptions
|
|
701
702
|
*/
|
|
702
|
-
class FileOptions extends
|
|
703
|
+
class FileOptions extends message_js_1.Message {
|
|
703
704
|
constructor(data) {
|
|
704
705
|
super();
|
|
705
706
|
/**
|
|
@@ -709,7 +710,7 @@ class FileOptions extends index_runtime_js_1.Message {
|
|
|
709
710
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
710
711
|
*/
|
|
711
712
|
this.uninterpretedOption = [];
|
|
712
|
-
|
|
713
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
713
714
|
}
|
|
714
715
|
static fromBinary(bytes, options) {
|
|
715
716
|
return new FileOptions().fromBinary(bytes, options);
|
|
@@ -721,19 +722,19 @@ class FileOptions extends index_runtime_js_1.Message {
|
|
|
721
722
|
return new FileOptions().fromJsonString(jsonString, options);
|
|
722
723
|
}
|
|
723
724
|
static equals(a, b) {
|
|
724
|
-
return
|
|
725
|
+
return proto2_js_1.proto2.util.equals(FileOptions, a, b);
|
|
725
726
|
}
|
|
726
727
|
}
|
|
727
728
|
exports.FileOptions = FileOptions;
|
|
728
|
-
FileOptions.runtime =
|
|
729
|
+
FileOptions.runtime = proto2_js_1.proto2;
|
|
729
730
|
FileOptions.typeName = "google.protobuf.FileOptions";
|
|
730
|
-
FileOptions.fields =
|
|
731
|
+
FileOptions.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
731
732
|
{ no: 1, name: "java_package", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
732
733
|
{ no: 8, name: "java_outer_classname", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
733
734
|
{ no: 10, name: "java_multiple_files", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
734
735
|
{ no: 20, name: "java_generate_equals_and_hash", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
735
736
|
{ no: 27, name: "java_string_check_utf8", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
736
|
-
{ no: 9, name: "optimize_for", kind: "enum", T:
|
|
737
|
+
{ no: 9, name: "optimize_for", kind: "enum", T: proto2_js_1.proto2.getEnumType(FileOptions_OptimizeMode), opt: true, default: FileOptions_OptimizeMode.SPEED },
|
|
737
738
|
{ no: 11, name: "go_package", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
738
739
|
{ no: 16, name: "cc_generic_services", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
739
740
|
{ no: 17, name: "java_generic_services", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
@@ -779,7 +780,7 @@ var FileOptions_OptimizeMode;
|
|
|
779
780
|
FileOptions_OptimizeMode[FileOptions_OptimizeMode["LITE_RUNTIME"] = 3] = "LITE_RUNTIME";
|
|
780
781
|
})(FileOptions_OptimizeMode = exports.FileOptions_OptimizeMode || (exports.FileOptions_OptimizeMode = {}));
|
|
781
782
|
// Retrieve enum metadata with: proto2.getEnumType(FileOptions_OptimizeMode)
|
|
782
|
-
|
|
783
|
+
proto2_js_1.proto2.util.setEnumType(FileOptions_OptimizeMode, "google.protobuf.FileOptions.OptimizeMode", [
|
|
783
784
|
{ no: 1, name: "SPEED" },
|
|
784
785
|
{ no: 2, name: "CODE_SIZE" },
|
|
785
786
|
{ no: 3, name: "LITE_RUNTIME" },
|
|
@@ -787,7 +788,7 @@ index_runtime_js_1.proto2.util.setEnumType(FileOptions_OptimizeMode, "google.pro
|
|
|
787
788
|
/**
|
|
788
789
|
* @generated from message google.protobuf.MessageOptions
|
|
789
790
|
*/
|
|
790
|
-
class MessageOptions extends
|
|
791
|
+
class MessageOptions extends message_js_1.Message {
|
|
791
792
|
constructor(data) {
|
|
792
793
|
super();
|
|
793
794
|
/**
|
|
@@ -796,7 +797,7 @@ class MessageOptions extends index_runtime_js_1.Message {
|
|
|
796
797
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
797
798
|
*/
|
|
798
799
|
this.uninterpretedOption = [];
|
|
799
|
-
|
|
800
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
800
801
|
}
|
|
801
802
|
static fromBinary(bytes, options) {
|
|
802
803
|
return new MessageOptions().fromBinary(bytes, options);
|
|
@@ -808,13 +809,13 @@ class MessageOptions extends index_runtime_js_1.Message {
|
|
|
808
809
|
return new MessageOptions().fromJsonString(jsonString, options);
|
|
809
810
|
}
|
|
810
811
|
static equals(a, b) {
|
|
811
|
-
return
|
|
812
|
+
return proto2_js_1.proto2.util.equals(MessageOptions, a, b);
|
|
812
813
|
}
|
|
813
814
|
}
|
|
814
815
|
exports.MessageOptions = MessageOptions;
|
|
815
|
-
MessageOptions.runtime =
|
|
816
|
+
MessageOptions.runtime = proto2_js_1.proto2;
|
|
816
817
|
MessageOptions.typeName = "google.protobuf.MessageOptions";
|
|
817
|
-
MessageOptions.fields =
|
|
818
|
+
MessageOptions.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
818
819
|
{ no: 1, name: "message_set_wire_format", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
819
820
|
{ no: 2, name: "no_standard_descriptor_accessor", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
820
821
|
{ no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
@@ -824,7 +825,7 @@ MessageOptions.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
|
824
825
|
/**
|
|
825
826
|
* @generated from message google.protobuf.FieldOptions
|
|
826
827
|
*/
|
|
827
|
-
class FieldOptions extends
|
|
828
|
+
class FieldOptions extends message_js_1.Message {
|
|
828
829
|
constructor(data) {
|
|
829
830
|
super();
|
|
830
831
|
/**
|
|
@@ -833,7 +834,7 @@ class FieldOptions extends index_runtime_js_1.Message {
|
|
|
833
834
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
834
835
|
*/
|
|
835
836
|
this.uninterpretedOption = [];
|
|
836
|
-
|
|
837
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
837
838
|
}
|
|
838
839
|
static fromBinary(bytes, options) {
|
|
839
840
|
return new FieldOptions().fromBinary(bytes, options);
|
|
@@ -845,16 +846,16 @@ class FieldOptions extends index_runtime_js_1.Message {
|
|
|
845
846
|
return new FieldOptions().fromJsonString(jsonString, options);
|
|
846
847
|
}
|
|
847
848
|
static equals(a, b) {
|
|
848
|
-
return
|
|
849
|
+
return proto2_js_1.proto2.util.equals(FieldOptions, a, b);
|
|
849
850
|
}
|
|
850
851
|
}
|
|
851
852
|
exports.FieldOptions = FieldOptions;
|
|
852
|
-
FieldOptions.runtime =
|
|
853
|
+
FieldOptions.runtime = proto2_js_1.proto2;
|
|
853
854
|
FieldOptions.typeName = "google.protobuf.FieldOptions";
|
|
854
|
-
FieldOptions.fields =
|
|
855
|
-
{ no: 1, name: "ctype", kind: "enum", T:
|
|
855
|
+
FieldOptions.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
856
|
+
{ no: 1, name: "ctype", kind: "enum", T: proto2_js_1.proto2.getEnumType(FieldOptions_CType), opt: true, default: FieldOptions_CType.STRING },
|
|
856
857
|
{ no: 2, name: "packed", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
857
|
-
{ no: 6, name: "jstype", kind: "enum", T:
|
|
858
|
+
{ no: 6, name: "jstype", kind: "enum", T: proto2_js_1.proto2.getEnumType(FieldOptions_JSType), opt: true, default: FieldOptions_JSType.JS_NORMAL },
|
|
858
859
|
{ no: 5, name: "lazy", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
859
860
|
{ no: 15, name: "unverified_lazy", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
860
861
|
{ no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
@@ -882,7 +883,7 @@ var FieldOptions_CType;
|
|
|
882
883
|
FieldOptions_CType[FieldOptions_CType["STRING_PIECE"] = 2] = "STRING_PIECE";
|
|
883
884
|
})(FieldOptions_CType = exports.FieldOptions_CType || (exports.FieldOptions_CType = {}));
|
|
884
885
|
// Retrieve enum metadata with: proto2.getEnumType(FieldOptions_CType)
|
|
885
|
-
|
|
886
|
+
proto2_js_1.proto2.util.setEnumType(FieldOptions_CType, "google.protobuf.FieldOptions.CType", [
|
|
886
887
|
{ no: 0, name: "STRING" },
|
|
887
888
|
{ no: 1, name: "CORD" },
|
|
888
889
|
{ no: 2, name: "STRING_PIECE" },
|
|
@@ -912,7 +913,7 @@ var FieldOptions_JSType;
|
|
|
912
913
|
FieldOptions_JSType[FieldOptions_JSType["JS_NUMBER"] = 2] = "JS_NUMBER";
|
|
913
914
|
})(FieldOptions_JSType = exports.FieldOptions_JSType || (exports.FieldOptions_JSType = {}));
|
|
914
915
|
// Retrieve enum metadata with: proto2.getEnumType(FieldOptions_JSType)
|
|
915
|
-
|
|
916
|
+
proto2_js_1.proto2.util.setEnumType(FieldOptions_JSType, "google.protobuf.FieldOptions.JSType", [
|
|
916
917
|
{ no: 0, name: "JS_NORMAL" },
|
|
917
918
|
{ no: 1, name: "JS_STRING" },
|
|
918
919
|
{ no: 2, name: "JS_NUMBER" },
|
|
@@ -920,7 +921,7 @@ index_runtime_js_1.proto2.util.setEnumType(FieldOptions_JSType, "google.protobuf
|
|
|
920
921
|
/**
|
|
921
922
|
* @generated from message google.protobuf.OneofOptions
|
|
922
923
|
*/
|
|
923
|
-
class OneofOptions extends
|
|
924
|
+
class OneofOptions extends message_js_1.Message {
|
|
924
925
|
constructor(data) {
|
|
925
926
|
super();
|
|
926
927
|
/**
|
|
@@ -929,7 +930,7 @@ class OneofOptions extends index_runtime_js_1.Message {
|
|
|
929
930
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
930
931
|
*/
|
|
931
932
|
this.uninterpretedOption = [];
|
|
932
|
-
|
|
933
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
933
934
|
}
|
|
934
935
|
static fromBinary(bytes, options) {
|
|
935
936
|
return new OneofOptions().fromBinary(bytes, options);
|
|
@@ -941,19 +942,19 @@ class OneofOptions extends index_runtime_js_1.Message {
|
|
|
941
942
|
return new OneofOptions().fromJsonString(jsonString, options);
|
|
942
943
|
}
|
|
943
944
|
static equals(a, b) {
|
|
944
|
-
return
|
|
945
|
+
return proto2_js_1.proto2.util.equals(OneofOptions, a, b);
|
|
945
946
|
}
|
|
946
947
|
}
|
|
947
948
|
exports.OneofOptions = OneofOptions;
|
|
948
|
-
OneofOptions.runtime =
|
|
949
|
+
OneofOptions.runtime = proto2_js_1.proto2;
|
|
949
950
|
OneofOptions.typeName = "google.protobuf.OneofOptions";
|
|
950
|
-
OneofOptions.fields =
|
|
951
|
+
OneofOptions.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
951
952
|
{ no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
|
|
952
953
|
]);
|
|
953
954
|
/**
|
|
954
955
|
* @generated from message google.protobuf.EnumOptions
|
|
955
956
|
*/
|
|
956
|
-
class EnumOptions extends
|
|
957
|
+
class EnumOptions extends message_js_1.Message {
|
|
957
958
|
constructor(data) {
|
|
958
959
|
super();
|
|
959
960
|
/**
|
|
@@ -962,7 +963,7 @@ class EnumOptions extends index_runtime_js_1.Message {
|
|
|
962
963
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
963
964
|
*/
|
|
964
965
|
this.uninterpretedOption = [];
|
|
965
|
-
|
|
966
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
966
967
|
}
|
|
967
968
|
static fromBinary(bytes, options) {
|
|
968
969
|
return new EnumOptions().fromBinary(bytes, options);
|
|
@@ -974,13 +975,13 @@ class EnumOptions extends index_runtime_js_1.Message {
|
|
|
974
975
|
return new EnumOptions().fromJsonString(jsonString, options);
|
|
975
976
|
}
|
|
976
977
|
static equals(a, b) {
|
|
977
|
-
return
|
|
978
|
+
return proto2_js_1.proto2.util.equals(EnumOptions, a, b);
|
|
978
979
|
}
|
|
979
980
|
}
|
|
980
981
|
exports.EnumOptions = EnumOptions;
|
|
981
|
-
EnumOptions.runtime =
|
|
982
|
+
EnumOptions.runtime = proto2_js_1.proto2;
|
|
982
983
|
EnumOptions.typeName = "google.protobuf.EnumOptions";
|
|
983
|
-
EnumOptions.fields =
|
|
984
|
+
EnumOptions.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
984
985
|
{ no: 2, name: "allow_alias", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
985
986
|
{ no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
986
987
|
{ no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
|
|
@@ -988,7 +989,7 @@ EnumOptions.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
|
988
989
|
/**
|
|
989
990
|
* @generated from message google.protobuf.EnumValueOptions
|
|
990
991
|
*/
|
|
991
|
-
class EnumValueOptions extends
|
|
992
|
+
class EnumValueOptions extends message_js_1.Message {
|
|
992
993
|
constructor(data) {
|
|
993
994
|
super();
|
|
994
995
|
/**
|
|
@@ -997,7 +998,7 @@ class EnumValueOptions extends index_runtime_js_1.Message {
|
|
|
997
998
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
998
999
|
*/
|
|
999
1000
|
this.uninterpretedOption = [];
|
|
1000
|
-
|
|
1001
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
1001
1002
|
}
|
|
1002
1003
|
static fromBinary(bytes, options) {
|
|
1003
1004
|
return new EnumValueOptions().fromBinary(bytes, options);
|
|
@@ -1009,20 +1010,20 @@ class EnumValueOptions extends index_runtime_js_1.Message {
|
|
|
1009
1010
|
return new EnumValueOptions().fromJsonString(jsonString, options);
|
|
1010
1011
|
}
|
|
1011
1012
|
static equals(a, b) {
|
|
1012
|
-
return
|
|
1013
|
+
return proto2_js_1.proto2.util.equals(EnumValueOptions, a, b);
|
|
1013
1014
|
}
|
|
1014
1015
|
}
|
|
1015
1016
|
exports.EnumValueOptions = EnumValueOptions;
|
|
1016
|
-
EnumValueOptions.runtime =
|
|
1017
|
+
EnumValueOptions.runtime = proto2_js_1.proto2;
|
|
1017
1018
|
EnumValueOptions.typeName = "google.protobuf.EnumValueOptions";
|
|
1018
|
-
EnumValueOptions.fields =
|
|
1019
|
+
EnumValueOptions.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
1019
1020
|
{ no: 1, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
1020
1021
|
{ no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
|
|
1021
1022
|
]);
|
|
1022
1023
|
/**
|
|
1023
1024
|
* @generated from message google.protobuf.ServiceOptions
|
|
1024
1025
|
*/
|
|
1025
|
-
class ServiceOptions extends
|
|
1026
|
+
class ServiceOptions extends message_js_1.Message {
|
|
1026
1027
|
constructor(data) {
|
|
1027
1028
|
super();
|
|
1028
1029
|
/**
|
|
@@ -1031,7 +1032,7 @@ class ServiceOptions extends index_runtime_js_1.Message {
|
|
|
1031
1032
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
1032
1033
|
*/
|
|
1033
1034
|
this.uninterpretedOption = [];
|
|
1034
|
-
|
|
1035
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
1035
1036
|
}
|
|
1036
1037
|
static fromBinary(bytes, options) {
|
|
1037
1038
|
return new ServiceOptions().fromBinary(bytes, options);
|
|
@@ -1043,20 +1044,20 @@ class ServiceOptions extends index_runtime_js_1.Message {
|
|
|
1043
1044
|
return new ServiceOptions().fromJsonString(jsonString, options);
|
|
1044
1045
|
}
|
|
1045
1046
|
static equals(a, b) {
|
|
1046
|
-
return
|
|
1047
|
+
return proto2_js_1.proto2.util.equals(ServiceOptions, a, b);
|
|
1047
1048
|
}
|
|
1048
1049
|
}
|
|
1049
1050
|
exports.ServiceOptions = ServiceOptions;
|
|
1050
|
-
ServiceOptions.runtime =
|
|
1051
|
+
ServiceOptions.runtime = proto2_js_1.proto2;
|
|
1051
1052
|
ServiceOptions.typeName = "google.protobuf.ServiceOptions";
|
|
1052
|
-
ServiceOptions.fields =
|
|
1053
|
+
ServiceOptions.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
1053
1054
|
{ no: 33, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
1054
1055
|
{ no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
|
|
1055
1056
|
]);
|
|
1056
1057
|
/**
|
|
1057
1058
|
* @generated from message google.protobuf.MethodOptions
|
|
1058
1059
|
*/
|
|
1059
|
-
class MethodOptions extends
|
|
1060
|
+
class MethodOptions extends message_js_1.Message {
|
|
1060
1061
|
constructor(data) {
|
|
1061
1062
|
super();
|
|
1062
1063
|
/**
|
|
@@ -1065,7 +1066,7 @@ class MethodOptions extends index_runtime_js_1.Message {
|
|
|
1065
1066
|
* @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
|
1066
1067
|
*/
|
|
1067
1068
|
this.uninterpretedOption = [];
|
|
1068
|
-
|
|
1069
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
1069
1070
|
}
|
|
1070
1071
|
static fromBinary(bytes, options) {
|
|
1071
1072
|
return new MethodOptions().fromBinary(bytes, options);
|
|
@@ -1077,15 +1078,15 @@ class MethodOptions extends index_runtime_js_1.Message {
|
|
|
1077
1078
|
return new MethodOptions().fromJsonString(jsonString, options);
|
|
1078
1079
|
}
|
|
1079
1080
|
static equals(a, b) {
|
|
1080
|
-
return
|
|
1081
|
+
return proto2_js_1.proto2.util.equals(MethodOptions, a, b);
|
|
1081
1082
|
}
|
|
1082
1083
|
}
|
|
1083
1084
|
exports.MethodOptions = MethodOptions;
|
|
1084
|
-
MethodOptions.runtime =
|
|
1085
|
+
MethodOptions.runtime = proto2_js_1.proto2;
|
|
1085
1086
|
MethodOptions.typeName = "google.protobuf.MethodOptions";
|
|
1086
|
-
MethodOptions.fields =
|
|
1087
|
+
MethodOptions.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
1087
1088
|
{ no: 33, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
1088
|
-
{ no: 34, name: "idempotency_level", kind: "enum", T:
|
|
1089
|
+
{ no: 34, name: "idempotency_level", kind: "enum", T: proto2_js_1.proto2.getEnumType(MethodOptions_IdempotencyLevel), opt: true, default: MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN },
|
|
1089
1090
|
{ no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
|
|
1090
1091
|
]);
|
|
1091
1092
|
/**
|
|
@@ -1115,7 +1116,7 @@ var MethodOptions_IdempotencyLevel;
|
|
|
1115
1116
|
MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENT"] = 2] = "IDEMPOTENT";
|
|
1116
1117
|
})(MethodOptions_IdempotencyLevel = exports.MethodOptions_IdempotencyLevel || (exports.MethodOptions_IdempotencyLevel = {}));
|
|
1117
1118
|
// Retrieve enum metadata with: proto2.getEnumType(MethodOptions_IdempotencyLevel)
|
|
1118
|
-
|
|
1119
|
+
proto2_js_1.proto2.util.setEnumType(MethodOptions_IdempotencyLevel, "google.protobuf.MethodOptions.IdempotencyLevel", [
|
|
1119
1120
|
{ no: 0, name: "IDEMPOTENCY_UNKNOWN" },
|
|
1120
1121
|
{ no: 1, name: "NO_SIDE_EFFECTS" },
|
|
1121
1122
|
{ no: 2, name: "IDEMPOTENT" },
|
|
@@ -1130,14 +1131,14 @@ index_runtime_js_1.proto2.util.setEnumType(MethodOptions_IdempotencyLevel, "goog
|
|
|
1130
1131
|
*
|
|
1131
1132
|
* @generated from message google.protobuf.UninterpretedOption
|
|
1132
1133
|
*/
|
|
1133
|
-
class UninterpretedOption extends
|
|
1134
|
+
class UninterpretedOption extends message_js_1.Message {
|
|
1134
1135
|
constructor(data) {
|
|
1135
1136
|
super();
|
|
1136
1137
|
/**
|
|
1137
1138
|
* @generated from field: repeated google.protobuf.UninterpretedOption.NamePart name = 2;
|
|
1138
1139
|
*/
|
|
1139
1140
|
this.name = [];
|
|
1140
|
-
|
|
1141
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
1141
1142
|
}
|
|
1142
1143
|
static fromBinary(bytes, options) {
|
|
1143
1144
|
return new UninterpretedOption().fromBinary(bytes, options);
|
|
@@ -1149,13 +1150,13 @@ class UninterpretedOption extends index_runtime_js_1.Message {
|
|
|
1149
1150
|
return new UninterpretedOption().fromJsonString(jsonString, options);
|
|
1150
1151
|
}
|
|
1151
1152
|
static equals(a, b) {
|
|
1152
|
-
return
|
|
1153
|
+
return proto2_js_1.proto2.util.equals(UninterpretedOption, a, b);
|
|
1153
1154
|
}
|
|
1154
1155
|
}
|
|
1155
1156
|
exports.UninterpretedOption = UninterpretedOption;
|
|
1156
|
-
UninterpretedOption.runtime =
|
|
1157
|
+
UninterpretedOption.runtime = proto2_js_1.proto2;
|
|
1157
1158
|
UninterpretedOption.typeName = "google.protobuf.UninterpretedOption";
|
|
1158
|
-
UninterpretedOption.fields =
|
|
1159
|
+
UninterpretedOption.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
1159
1160
|
{ no: 2, name: "name", kind: "message", T: UninterpretedOption_NamePart, repeated: true },
|
|
1160
1161
|
{ no: 3, name: "identifier_value", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1161
1162
|
{ no: 4, name: "positive_int_value", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
@@ -1173,10 +1174,10 @@ UninterpretedOption.fields = index_runtime_js_1.proto2.util.newFieldList(() => [
|
|
|
1173
1174
|
*
|
|
1174
1175
|
* @generated from message google.protobuf.UninterpretedOption.NamePart
|
|
1175
1176
|
*/
|
|
1176
|
-
class UninterpretedOption_NamePart extends
|
|
1177
|
+
class UninterpretedOption_NamePart extends message_js_1.Message {
|
|
1177
1178
|
constructor(data) {
|
|
1178
1179
|
super();
|
|
1179
|
-
|
|
1180
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
1180
1181
|
}
|
|
1181
1182
|
static fromBinary(bytes, options) {
|
|
1182
1183
|
return new UninterpretedOption_NamePart().fromBinary(bytes, options);
|
|
@@ -1188,13 +1189,13 @@ class UninterpretedOption_NamePart extends index_runtime_js_1.Message {
|
|
|
1188
1189
|
return new UninterpretedOption_NamePart().fromJsonString(jsonString, options);
|
|
1189
1190
|
}
|
|
1190
1191
|
static equals(a, b) {
|
|
1191
|
-
return
|
|
1192
|
+
return proto2_js_1.proto2.util.equals(UninterpretedOption_NamePart, a, b);
|
|
1192
1193
|
}
|
|
1193
1194
|
}
|
|
1194
1195
|
exports.UninterpretedOption_NamePart = UninterpretedOption_NamePart;
|
|
1195
|
-
UninterpretedOption_NamePart.runtime =
|
|
1196
|
+
UninterpretedOption_NamePart.runtime = proto2_js_1.proto2;
|
|
1196
1197
|
UninterpretedOption_NamePart.typeName = "google.protobuf.UninterpretedOption.NamePart";
|
|
1197
|
-
UninterpretedOption_NamePart.fields =
|
|
1198
|
+
UninterpretedOption_NamePart.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
1198
1199
|
{ no: 1, name: "name_part", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1199
1200
|
{ no: 2, name: "is_extension", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1200
1201
|
]);
|
|
@@ -1204,7 +1205,7 @@ UninterpretedOption_NamePart.fields = index_runtime_js_1.proto2.util.newFieldLis
|
|
|
1204
1205
|
*
|
|
1205
1206
|
* @generated from message google.protobuf.SourceCodeInfo
|
|
1206
1207
|
*/
|
|
1207
|
-
class SourceCodeInfo extends
|
|
1208
|
+
class SourceCodeInfo extends message_js_1.Message {
|
|
1208
1209
|
constructor(data) {
|
|
1209
1210
|
super();
|
|
1210
1211
|
/**
|
|
@@ -1255,7 +1256,7 @@ class SourceCodeInfo extends index_runtime_js_1.Message {
|
|
|
1255
1256
|
* @generated from field: repeated google.protobuf.SourceCodeInfo.Location location = 1;
|
|
1256
1257
|
*/
|
|
1257
1258
|
this.location = [];
|
|
1258
|
-
|
|
1259
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
1259
1260
|
}
|
|
1260
1261
|
static fromBinary(bytes, options) {
|
|
1261
1262
|
return new SourceCodeInfo().fromBinary(bytes, options);
|
|
@@ -1267,19 +1268,19 @@ class SourceCodeInfo extends index_runtime_js_1.Message {
|
|
|
1267
1268
|
return new SourceCodeInfo().fromJsonString(jsonString, options);
|
|
1268
1269
|
}
|
|
1269
1270
|
static equals(a, b) {
|
|
1270
|
-
return
|
|
1271
|
+
return proto2_js_1.proto2.util.equals(SourceCodeInfo, a, b);
|
|
1271
1272
|
}
|
|
1272
1273
|
}
|
|
1273
1274
|
exports.SourceCodeInfo = SourceCodeInfo;
|
|
1274
|
-
SourceCodeInfo.runtime =
|
|
1275
|
+
SourceCodeInfo.runtime = proto2_js_1.proto2;
|
|
1275
1276
|
SourceCodeInfo.typeName = "google.protobuf.SourceCodeInfo";
|
|
1276
|
-
SourceCodeInfo.fields =
|
|
1277
|
+
SourceCodeInfo.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
1277
1278
|
{ no: 1, name: "location", kind: "message", T: SourceCodeInfo_Location, repeated: true },
|
|
1278
1279
|
]);
|
|
1279
1280
|
/**
|
|
1280
1281
|
* @generated from message google.protobuf.SourceCodeInfo.Location
|
|
1281
1282
|
*/
|
|
1282
|
-
class SourceCodeInfo_Location extends
|
|
1283
|
+
class SourceCodeInfo_Location extends message_js_1.Message {
|
|
1283
1284
|
constructor(data) {
|
|
1284
1285
|
super();
|
|
1285
1286
|
/**
|
|
@@ -1324,7 +1325,7 @@ class SourceCodeInfo_Location extends index_runtime_js_1.Message {
|
|
|
1324
1325
|
* @generated from field: repeated string leading_detached_comments = 6;
|
|
1325
1326
|
*/
|
|
1326
1327
|
this.leadingDetachedComments = [];
|
|
1327
|
-
|
|
1328
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
1328
1329
|
}
|
|
1329
1330
|
static fromBinary(bytes, options) {
|
|
1330
1331
|
return new SourceCodeInfo_Location().fromBinary(bytes, options);
|
|
@@ -1336,13 +1337,13 @@ class SourceCodeInfo_Location extends index_runtime_js_1.Message {
|
|
|
1336
1337
|
return new SourceCodeInfo_Location().fromJsonString(jsonString, options);
|
|
1337
1338
|
}
|
|
1338
1339
|
static equals(a, b) {
|
|
1339
|
-
return
|
|
1340
|
+
return proto2_js_1.proto2.util.equals(SourceCodeInfo_Location, a, b);
|
|
1340
1341
|
}
|
|
1341
1342
|
}
|
|
1342
1343
|
exports.SourceCodeInfo_Location = SourceCodeInfo_Location;
|
|
1343
|
-
SourceCodeInfo_Location.runtime =
|
|
1344
|
+
SourceCodeInfo_Location.runtime = proto2_js_1.proto2;
|
|
1344
1345
|
SourceCodeInfo_Location.typeName = "google.protobuf.SourceCodeInfo.Location";
|
|
1345
|
-
SourceCodeInfo_Location.fields =
|
|
1346
|
+
SourceCodeInfo_Location.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
1346
1347
|
{ no: 1, name: "path", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
|
|
1347
1348
|
{ no: 2, name: "span", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
|
|
1348
1349
|
{ no: 3, name: "leading_comments", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
@@ -1356,7 +1357,7 @@ SourceCodeInfo_Location.fields = index_runtime_js_1.proto2.util.newFieldList(()
|
|
|
1356
1357
|
*
|
|
1357
1358
|
* @generated from message google.protobuf.GeneratedCodeInfo
|
|
1358
1359
|
*/
|
|
1359
|
-
class GeneratedCodeInfo extends
|
|
1360
|
+
class GeneratedCodeInfo extends message_js_1.Message {
|
|
1360
1361
|
constructor(data) {
|
|
1361
1362
|
super();
|
|
1362
1363
|
/**
|
|
@@ -1366,7 +1367,7 @@ class GeneratedCodeInfo extends index_runtime_js_1.Message {
|
|
|
1366
1367
|
* @generated from field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
|
|
1367
1368
|
*/
|
|
1368
1369
|
this.annotation = [];
|
|
1369
|
-
|
|
1370
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
1370
1371
|
}
|
|
1371
1372
|
static fromBinary(bytes, options) {
|
|
1372
1373
|
return new GeneratedCodeInfo().fromBinary(bytes, options);
|
|
@@ -1378,19 +1379,19 @@ class GeneratedCodeInfo extends index_runtime_js_1.Message {
|
|
|
1378
1379
|
return new GeneratedCodeInfo().fromJsonString(jsonString, options);
|
|
1379
1380
|
}
|
|
1380
1381
|
static equals(a, b) {
|
|
1381
|
-
return
|
|
1382
|
+
return proto2_js_1.proto2.util.equals(GeneratedCodeInfo, a, b);
|
|
1382
1383
|
}
|
|
1383
1384
|
}
|
|
1384
1385
|
exports.GeneratedCodeInfo = GeneratedCodeInfo;
|
|
1385
|
-
GeneratedCodeInfo.runtime =
|
|
1386
|
+
GeneratedCodeInfo.runtime = proto2_js_1.proto2;
|
|
1386
1387
|
GeneratedCodeInfo.typeName = "google.protobuf.GeneratedCodeInfo";
|
|
1387
|
-
GeneratedCodeInfo.fields =
|
|
1388
|
+
GeneratedCodeInfo.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
1388
1389
|
{ no: 1, name: "annotation", kind: "message", T: GeneratedCodeInfo_Annotation, repeated: true },
|
|
1389
1390
|
]);
|
|
1390
1391
|
/**
|
|
1391
1392
|
* @generated from message google.protobuf.GeneratedCodeInfo.Annotation
|
|
1392
1393
|
*/
|
|
1393
|
-
class GeneratedCodeInfo_Annotation extends
|
|
1394
|
+
class GeneratedCodeInfo_Annotation extends message_js_1.Message {
|
|
1394
1395
|
constructor(data) {
|
|
1395
1396
|
super();
|
|
1396
1397
|
/**
|
|
@@ -1400,7 +1401,7 @@ class GeneratedCodeInfo_Annotation extends index_runtime_js_1.Message {
|
|
|
1400
1401
|
* @generated from field: repeated int32 path = 1 [packed = true];
|
|
1401
1402
|
*/
|
|
1402
1403
|
this.path = [];
|
|
1403
|
-
|
|
1404
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
1404
1405
|
}
|
|
1405
1406
|
static fromBinary(bytes, options) {
|
|
1406
1407
|
return new GeneratedCodeInfo_Annotation().fromBinary(bytes, options);
|
|
@@ -1412,13 +1413,13 @@ class GeneratedCodeInfo_Annotation extends index_runtime_js_1.Message {
|
|
|
1412
1413
|
return new GeneratedCodeInfo_Annotation().fromJsonString(jsonString, options);
|
|
1413
1414
|
}
|
|
1414
1415
|
static equals(a, b) {
|
|
1415
|
-
return
|
|
1416
|
+
return proto2_js_1.proto2.util.equals(GeneratedCodeInfo_Annotation, a, b);
|
|
1416
1417
|
}
|
|
1417
1418
|
}
|
|
1418
1419
|
exports.GeneratedCodeInfo_Annotation = GeneratedCodeInfo_Annotation;
|
|
1419
|
-
GeneratedCodeInfo_Annotation.runtime =
|
|
1420
|
+
GeneratedCodeInfo_Annotation.runtime = proto2_js_1.proto2;
|
|
1420
1421
|
GeneratedCodeInfo_Annotation.typeName = "google.protobuf.GeneratedCodeInfo.Annotation";
|
|
1421
|
-
GeneratedCodeInfo_Annotation.fields =
|
|
1422
|
+
GeneratedCodeInfo_Annotation.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
1422
1423
|
{ no: 1, name: "path", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
|
|
1423
1424
|
{ no: 2, name: "source_file", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1424
1425
|
{ no: 3, name: "begin", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|