@bufbuild/protobuf 0.0.1-alpha.1 → 0.0.2-alpha.2

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.
Files changed (138) hide show
  1. package/dist/cjs/binary-encoding.js +414 -409
  2. package/dist/cjs/binary-format.js +13 -0
  3. package/dist/cjs/descriptor-registry.js +420 -449
  4. package/dist/cjs/descriptor-set.js +429 -513
  5. package/dist/cjs/enum.js +13 -0
  6. package/dist/cjs/field-list.js +13 -0
  7. package/dist/cjs/field.js +43 -30
  8. package/dist/cjs/google/protobuf/any_pb.js +122 -140
  9. package/dist/cjs/google/protobuf/api_pb.js +177 -224
  10. package/dist/cjs/google/protobuf/compiler/plugin_pb.js +125 -227
  11. package/dist/cjs/google/protobuf/descriptor_pb.js +1029 -1888
  12. package/dist/cjs/google/protobuf/duration_pb.js +72 -88
  13. package/dist/cjs/google/protobuf/empty_pb.js +17 -17
  14. package/dist/cjs/google/protobuf/field_mask_pb.js +77 -94
  15. package/dist/cjs/google/protobuf/source_context_pb.js +25 -25
  16. package/dist/cjs/google/protobuf/struct_pb.js +144 -181
  17. package/dist/cjs/google/protobuf/timestamp_pb.js +86 -123
  18. package/dist/cjs/google/protobuf/type_pb.js +406 -462
  19. package/dist/cjs/google/protobuf/wrappers_pb.js +407 -470
  20. package/dist/cjs/google/varint.js +166 -171
  21. package/dist/cjs/index.js +41 -122
  22. package/dist/cjs/json-format.js +13 -0
  23. package/dist/cjs/message-type.js +13 -0
  24. package/dist/cjs/message.js +89 -85
  25. package/dist/cjs/private/assert.js +33 -26
  26. package/dist/cjs/private/base64.js +93 -79
  27. package/dist/cjs/private/binary-format-common.js +208 -208
  28. package/dist/cjs/private/binary-format-proto2.js +88 -109
  29. package/dist/cjs/private/binary-format-proto3.js +70 -90
  30. package/dist/cjs/private/enum.js +77 -44
  31. package/dist/cjs/private/field-list.js +64 -50
  32. package/dist/cjs/private/field-wrapper.js +21 -10
  33. package/dist/cjs/private/field.js +35 -25
  34. package/dist/cjs/private/json-format-common.js +427 -440
  35. package/dist/cjs/private/json-format-proto2.js +91 -89
  36. package/dist/cjs/private/json-format-proto3.js +82 -93
  37. package/dist/cjs/private/message-type.js +39 -27
  38. package/dist/cjs/private/names.js +71 -62
  39. package/dist/cjs/private/options-map.js +13 -0
  40. package/dist/cjs/private/proto-runtime.js +25 -16
  41. package/dist/cjs/private/scalars.js +113 -103
  42. package/dist/cjs/private/util-common.js +193 -210
  43. package/dist/cjs/private/util.js +13 -0
  44. package/dist/cjs/proto-int64.js +123 -111
  45. package/dist/cjs/proto2.js +63 -63
  46. package/dist/cjs/proto3.js +74 -74
  47. package/dist/cjs/service-type.js +27 -17
  48. package/dist/cjs/type-registry.js +46 -31
  49. package/dist/esm/binary-encoding.js +414 -414
  50. package/dist/esm/binary-format.js +13 -0
  51. package/dist/esm/descriptor-registry.js +422 -458
  52. package/dist/esm/descriptor-set.js +430 -478
  53. package/dist/esm/enum.js +13 -0
  54. package/dist/esm/field-list.js +13 -0
  55. package/dist/esm/field.js +42 -29
  56. package/dist/esm/google/protobuf/any_pb.js +122 -140
  57. package/dist/esm/google/protobuf/api_pb.js +177 -197
  58. package/dist/esm/google/protobuf/compiler/plugin_pb.js +123 -216
  59. package/dist/esm/google/protobuf/descriptor_pb.js +1013 -1804
  60. package/dist/esm/google/protobuf/duration_pb.js +72 -88
  61. package/dist/esm/google/protobuf/empty_pb.js +17 -17
  62. package/dist/esm/google/protobuf/field_mask_pb.js +77 -94
  63. package/dist/esm/google/protobuf/source_context_pb.js +25 -25
  64. package/dist/esm/google/protobuf/struct_pb.js +143 -180
  65. package/dist/esm/google/protobuf/timestamp_pb.js +86 -123
  66. package/dist/esm/google/protobuf/type_pb.js +401 -421
  67. package/dist/esm/google/protobuf/wrappers_pb.js +406 -397
  68. package/dist/esm/google/varint.js +165 -164
  69. package/dist/esm/index.js +14 -1
  70. package/dist/esm/json-format.js +13 -0
  71. package/dist/esm/message-type.js +13 -0
  72. package/dist/esm/message.js +89 -85
  73. package/dist/esm/private/assert.js +32 -21
  74. package/dist/esm/private/base64.js +92 -78
  75. package/dist/esm/private/binary-format-common.js +209 -207
  76. package/dist/esm/private/binary-format-proto2.js +89 -81
  77. package/dist/esm/private/binary-format-proto3.js +71 -67
  78. package/dist/esm/private/enum.js +75 -43
  79. package/dist/esm/private/field-list.js +64 -50
  80. package/dist/esm/private/field-wrapper.js +21 -10
  81. package/dist/esm/private/field.js +35 -22
  82. package/dist/esm/private/json-format-common.js +427 -435
  83. package/dist/esm/private/json-format-proto2.js +89 -81
  84. package/dist/esm/private/json-format-proto3.js +79 -80
  85. package/dist/esm/private/message-type.js +40 -28
  86. package/dist/esm/private/names.js +70 -57
  87. package/dist/esm/private/options-map.js +13 -0
  88. package/dist/esm/private/proto-runtime.js +26 -12
  89. package/dist/esm/private/scalars.js +112 -99
  90. package/dist/esm/private/util-common.js +193 -192
  91. package/dist/esm/private/util.js +13 -0
  92. package/dist/esm/proto-int64.js +123 -111
  93. package/dist/esm/proto2.js +63 -57
  94. package/dist/esm/proto3.js +74 -68
  95. package/dist/esm/service-type.js +25 -12
  96. package/dist/esm/type-registry.js +46 -31
  97. package/dist/types/binary-encoding.d.ts +398 -398
  98. package/dist/types/binary-format.d.ts +69 -91
  99. package/dist/types/descriptor-registry.d.ts +23 -29
  100. package/dist/types/descriptor-set.d.ts +107 -128
  101. package/dist/types/enum.d.ts +21 -21
  102. package/dist/types/field-list.d.ts +21 -21
  103. package/dist/types/field.d.ts +191 -231
  104. package/dist/types/google/protobuf/any_pb.d.ts +56 -77
  105. package/dist/types/google/protobuf/api_pb.d.ts +144 -187
  106. package/dist/types/google/protobuf/compiler/plugin_pb.d.ts +195 -257
  107. package/dist/types/google/protobuf/descriptor_pb.d.ts +1360 -1737
  108. package/dist/types/google/protobuf/duration_pb.d.ts +30 -50
  109. package/dist/types/google/protobuf/empty_pb.d.ts +9 -28
  110. package/dist/types/google/protobuf/field_mask_pb.d.ts +17 -37
  111. package/dist/types/google/protobuf/source_context_pb.d.ts +16 -35
  112. package/dist/types/google/protobuf/struct_pb.d.ts +64 -115
  113. package/dist/types/google/protobuf/timestamp_pb.d.ts +31 -51
  114. package/dist/types/google/protobuf/type_pb.d.ts +355 -422
  115. package/dist/types/google/protobuf/wrappers_pb.d.ts +181 -297
  116. package/dist/types/google/varint.d.ts +6 -13
  117. package/dist/types/index.d.ts +4 -27
  118. package/dist/types/json-format.d.ts +70 -89
  119. package/dist/types/message-type.d.ts +37 -45
  120. package/dist/types/message.d.ts +62 -87
  121. package/dist/types/private/assert.d.ts +1 -4
  122. package/dist/types/private/binary-format-common.d.ts +6 -32
  123. package/dist/types/private/enum.d.ts +13 -11
  124. package/dist/types/private/field-list.d.ts +14 -21
  125. package/dist/types/private/field-wrapper.d.ts +4 -10
  126. package/dist/types/private/field.d.ts +12 -12
  127. package/dist/types/private/json-format-common.d.ts +5 -27
  128. package/dist/types/private/message-type.d.ts +12 -7
  129. package/dist/types/private/names.d.ts +1 -4
  130. package/dist/types/private/options-map.d.ts +1 -1
  131. package/dist/types/private/proto-runtime.d.ts +34 -42
  132. package/dist/types/private/scalars.d.ts +5 -12
  133. package/dist/types/private/util-common.d.ts +1 -4
  134. package/dist/types/private/util.d.ts +29 -41
  135. package/dist/types/proto-int64.d.ts +42 -42
  136. package/dist/types/service-type.d.ts +36 -56
  137. package/dist/types/type-registry.d.ts +13 -15
  138. package/package.json +2 -3
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /* eslint-disable */
3
- // @generated by protoc-gen-es v0.0.1-alpha.1 with parameter "bootstrap_wkt=true,ts_nocheck=false"
3
+ // @generated by protoc-gen-es v0.0.2-alpha.2 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
4
4
  // @generated from file google/protobuf/descriptor.proto (package google.protobuf, syntax proto2)
5
5
  //
6
6
  // Protocol Buffers - Google's data interchange format
@@ -40,40 +40,7 @@
40
40
  // A valid .proto file can be translated directly to a FileDescriptorProto
41
41
  // without any other information (e.g. without reading its imports).
42
42
  Object.defineProperty(exports, "__esModule", { value: true });
43
- exports.GeneratedCodeInfo_Annotation =
44
- exports.GeneratedCodeInfo =
45
- exports.SourceCodeInfo_Location =
46
- exports.SourceCodeInfo =
47
- exports.UninterpretedOption_NamePart =
48
- exports.UninterpretedOption =
49
- exports.MethodOptions_IdempotencyLevel =
50
- exports.MethodOptions =
51
- exports.ServiceOptions =
52
- exports.EnumValueOptions =
53
- exports.EnumOptions =
54
- exports.OneofOptions =
55
- exports.FieldOptions_JSType =
56
- exports.FieldOptions_CType =
57
- exports.FieldOptions =
58
- exports.MessageOptions =
59
- exports.FileOptions_OptimizeMode =
60
- exports.FileOptions =
61
- exports.MethodDescriptorProto =
62
- exports.ServiceDescriptorProto =
63
- exports.EnumValueDescriptorProto =
64
- exports.EnumDescriptorProto_EnumReservedRange =
65
- exports.EnumDescriptorProto =
66
- exports.OneofDescriptorProto =
67
- exports.FieldDescriptorProto_Label =
68
- exports.FieldDescriptorProto_Type =
69
- exports.FieldDescriptorProto =
70
- exports.ExtensionRangeOptions =
71
- exports.DescriptorProto_ReservedRange =
72
- exports.DescriptorProto_ExtensionRange =
73
- exports.DescriptorProto =
74
- exports.FileDescriptorProto =
75
- exports.FileDescriptorSet =
76
- void 0;
43
+ 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;
77
44
  const index_js_1 = require("../../index.js");
78
45
  /**
79
46
  * The protocol compiler can output a FileDescriptorSet containing the .proto
@@ -82,38 +49,32 @@ const index_js_1 = require("../../index.js");
82
49
  * @generated from message google.protobuf.FileDescriptorSet
83
50
  */
84
51
  class FileDescriptorSet extends index_js_1.Message {
85
- constructor(data) {
86
- super();
87
- /**
88
- * @generated from field: repeated google.protobuf.FileDescriptorProto file = 1;
89
- */
90
- this.file = [];
91
- index_js_1.proto2.util.initPartial(data, this);
92
- }
93
- static fromBinary(bytes, options) {
94
- return new FileDescriptorSet().fromBinary(bytes, options);
95
- }
96
- static fromJson(jsonValue, options) {
97
- return new FileDescriptorSet().fromJson(jsonValue, options);
98
- }
99
- static fromJsonString(jsonString, options) {
100
- return new FileDescriptorSet().fromJsonString(jsonString, options);
101
- }
102
- static equals(a, b) {
103
- return index_js_1.proto2.util.equals(FileDescriptorSet, a, b);
104
- }
52
+ constructor(data) {
53
+ super();
54
+ /**
55
+ * @generated from field: repeated google.protobuf.FileDescriptorProto file = 1;
56
+ */
57
+ this.file = [];
58
+ index_js_1.proto2.util.initPartial(data, this);
59
+ }
60
+ static fromBinary(bytes, options) {
61
+ return new FileDescriptorSet().fromBinary(bytes, options);
62
+ }
63
+ static fromJson(jsonValue, options) {
64
+ return new FileDescriptorSet().fromJson(jsonValue, options);
65
+ }
66
+ static fromJsonString(jsonString, options) {
67
+ return new FileDescriptorSet().fromJsonString(jsonString, options);
68
+ }
69
+ static equals(a, b) {
70
+ return index_js_1.proto2.util.equals(FileDescriptorSet, a, b);
71
+ }
105
72
  }
106
73
  exports.FileDescriptorSet = FileDescriptorSet;
107
74
  FileDescriptorSet.runtime = index_js_1.proto2;
108
75
  FileDescriptorSet.typeName = "google.protobuf.FileDescriptorSet";
109
76
  FileDescriptorSet.fields = index_js_1.proto2.util.newFieldList(() => [
110
- {
111
- no: 1,
112
- name: "file",
113
- kind: "message",
114
- T: FileDescriptorProto,
115
- repeated: true,
116
- },
77
+ { no: 1, name: "file", kind: "message", T: FileDescriptorProto, repeated: true },
117
78
  ]);
118
79
  /**
119
80
  * Describes a complete .proto file.
@@ -121,142 +82,76 @@ FileDescriptorSet.fields = index_js_1.proto2.util.newFieldList(() => [
121
82
  * @generated from message google.protobuf.FileDescriptorProto
122
83
  */
123
84
  class FileDescriptorProto extends index_js_1.Message {
124
- constructor(data) {
125
- super();
126
- /**
127
- * Names of files imported by this file.
128
- *
129
- * @generated from field: repeated string dependency = 3;
130
- */
131
- this.dependency = [];
132
- /**
133
- * Indexes of the public imported files in the dependency list above.
134
- *
135
- * @generated from field: repeated int32 public_dependency = 10;
136
- */
137
- this.publicDependency = [];
138
- /**
139
- * Indexes of the weak imported files in the dependency list.
140
- * For Google-internal migration only. Do not use.
141
- *
142
- * @generated from field: repeated int32 weak_dependency = 11;
143
- */
144
- this.weakDependency = [];
145
- /**
146
- * All top-level definitions in this file.
147
- *
148
- * @generated from field: repeated google.protobuf.DescriptorProto message_type = 4;
149
- */
150
- this.messageType = [];
151
- /**
152
- * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 5;
153
- */
154
- this.enumType = [];
155
- /**
156
- * @generated from field: repeated google.protobuf.ServiceDescriptorProto service = 6;
157
- */
158
- this.service = [];
159
- /**
160
- * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 7;
161
- */
162
- this.extension = [];
163
- index_js_1.proto2.util.initPartial(data, this);
164
- }
165
- static fromBinary(bytes, options) {
166
- return new FileDescriptorProto().fromBinary(bytes, options);
167
- }
168
- static fromJson(jsonValue, options) {
169
- return new FileDescriptorProto().fromJson(jsonValue, options);
170
- }
171
- static fromJsonString(jsonString, options) {
172
- return new FileDescriptorProto().fromJsonString(jsonString, options);
173
- }
174
- static equals(a, b) {
175
- return index_js_1.proto2.util.equals(FileDescriptorProto, a, b);
176
- }
85
+ constructor(data) {
86
+ super();
87
+ /**
88
+ * Names of files imported by this file.
89
+ *
90
+ * @generated from field: repeated string dependency = 3;
91
+ */
92
+ this.dependency = [];
93
+ /**
94
+ * Indexes of the public imported files in the dependency list above.
95
+ *
96
+ * @generated from field: repeated int32 public_dependency = 10;
97
+ */
98
+ this.publicDependency = [];
99
+ /**
100
+ * Indexes of the weak imported files in the dependency list.
101
+ * For Google-internal migration only. Do not use.
102
+ *
103
+ * @generated from field: repeated int32 weak_dependency = 11;
104
+ */
105
+ this.weakDependency = [];
106
+ /**
107
+ * All top-level definitions in this file.
108
+ *
109
+ * @generated from field: repeated google.protobuf.DescriptorProto message_type = 4;
110
+ */
111
+ this.messageType = [];
112
+ /**
113
+ * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 5;
114
+ */
115
+ this.enumType = [];
116
+ /**
117
+ * @generated from field: repeated google.protobuf.ServiceDescriptorProto service = 6;
118
+ */
119
+ this.service = [];
120
+ /**
121
+ * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 7;
122
+ */
123
+ this.extension = [];
124
+ index_js_1.proto2.util.initPartial(data, this);
125
+ }
126
+ static fromBinary(bytes, options) {
127
+ return new FileDescriptorProto().fromBinary(bytes, options);
128
+ }
129
+ static fromJson(jsonValue, options) {
130
+ return new FileDescriptorProto().fromJson(jsonValue, options);
131
+ }
132
+ static fromJsonString(jsonString, options) {
133
+ return new FileDescriptorProto().fromJsonString(jsonString, options);
134
+ }
135
+ static equals(a, b) {
136
+ return index_js_1.proto2.util.equals(FileDescriptorProto, a, b);
137
+ }
177
138
  }
178
139
  exports.FileDescriptorProto = FileDescriptorProto;
179
140
  FileDescriptorProto.runtime = index_js_1.proto2;
180
141
  FileDescriptorProto.typeName = "google.protobuf.FileDescriptorProto";
181
142
  FileDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
182
- {
183
- no: 1,
184
- name: "name",
185
- kind: "scalar",
186
- T: 9 /* ScalarType.STRING */,
187
- opt: true,
188
- },
189
- {
190
- no: 2,
191
- name: "package",
192
- kind: "scalar",
193
- T: 9 /* ScalarType.STRING */,
194
- opt: true,
195
- },
196
- {
197
- no: 3,
198
- name: "dependency",
199
- kind: "scalar",
200
- T: 9 /* ScalarType.STRING */,
201
- repeated: true,
202
- },
203
- {
204
- no: 10,
205
- name: "public_dependency",
206
- kind: "scalar",
207
- T: 5 /* ScalarType.INT32 */,
208
- repeated: true,
209
- },
210
- {
211
- no: 11,
212
- name: "weak_dependency",
213
- kind: "scalar",
214
- T: 5 /* ScalarType.INT32 */,
215
- repeated: true,
216
- },
217
- {
218
- no: 4,
219
- name: "message_type",
220
- kind: "message",
221
- T: DescriptorProto,
222
- repeated: true,
223
- },
224
- {
225
- no: 5,
226
- name: "enum_type",
227
- kind: "message",
228
- T: EnumDescriptorProto,
229
- repeated: true,
230
- },
231
- {
232
- no: 6,
233
- name: "service",
234
- kind: "message",
235
- T: ServiceDescriptorProto,
236
- repeated: true,
237
- },
238
- {
239
- no: 7,
240
- name: "extension",
241
- kind: "message",
242
- T: FieldDescriptorProto,
243
- repeated: true,
244
- },
245
- { no: 8, name: "options", kind: "message", T: FileOptions, opt: true },
246
- {
247
- no: 9,
248
- name: "source_code_info",
249
- kind: "message",
250
- T: SourceCodeInfo,
251
- opt: true,
252
- },
253
- {
254
- no: 12,
255
- name: "syntax",
256
- kind: "scalar",
257
- T: 9 /* ScalarType.STRING */,
258
- opt: true,
259
- },
143
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
144
+ { no: 2, name: "package", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
145
+ { no: 3, name: "dependency", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
146
+ { no: 10, name: "public_dependency", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
147
+ { no: 11, name: "weak_dependency", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
148
+ { no: 4, name: "message_type", kind: "message", T: DescriptorProto, repeated: true },
149
+ { no: 5, name: "enum_type", kind: "message", T: EnumDescriptorProto, repeated: true },
150
+ { no: 6, name: "service", kind: "message", T: ServiceDescriptorProto, repeated: true },
151
+ { no: 7, name: "extension", kind: "message", T: FieldDescriptorProto, repeated: true },
152
+ { no: 8, name: "options", kind: "message", T: FileOptions, opt: true },
153
+ { no: 9, name: "source_code_info", kind: "message", T: SourceCodeInfo, opt: true },
154
+ { no: 12, name: "syntax", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
260
155
  ]);
261
156
  /**
262
157
  * Describes a message type.
@@ -264,180 +159,102 @@ FileDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
264
159
  * @generated from message google.protobuf.DescriptorProto
265
160
  */
266
161
  class DescriptorProto extends index_js_1.Message {
267
- constructor(data) {
268
- super();
269
- /**
270
- * @generated from field: repeated google.protobuf.FieldDescriptorProto field = 2;
271
- */
272
- this.field = [];
273
- /**
274
- * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 6;
275
- */
276
- this.extension = [];
277
- /**
278
- * @generated from field: repeated google.protobuf.DescriptorProto nested_type = 3;
279
- */
280
- this.nestedType = [];
281
- /**
282
- * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 4;
283
- */
284
- this.enumType = [];
285
- /**
286
- * @generated from field: repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
287
- */
288
- this.extensionRange = [];
289
- /**
290
- * @generated from field: repeated google.protobuf.OneofDescriptorProto oneof_decl = 8;
291
- */
292
- this.oneofDecl = [];
293
- /**
294
- * @generated from field: repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
295
- */
296
- this.reservedRange = [];
297
- /**
298
- * Reserved field names, which may not be used by fields in the same message.
299
- * A given name may only be reserved once.
300
- *
301
- * @generated from field: repeated string reserved_name = 10;
302
- */
303
- this.reservedName = [];
304
- index_js_1.proto2.util.initPartial(data, this);
305
- }
306
- static fromBinary(bytes, options) {
307
- return new DescriptorProto().fromBinary(bytes, options);
308
- }
309
- static fromJson(jsonValue, options) {
310
- return new DescriptorProto().fromJson(jsonValue, options);
311
- }
312
- static fromJsonString(jsonString, options) {
313
- return new DescriptorProto().fromJsonString(jsonString, options);
314
- }
315
- static equals(a, b) {
316
- return index_js_1.proto2.util.equals(DescriptorProto, a, b);
317
- }
162
+ constructor(data) {
163
+ super();
164
+ /**
165
+ * @generated from field: repeated google.protobuf.FieldDescriptorProto field = 2;
166
+ */
167
+ this.field = [];
168
+ /**
169
+ * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 6;
170
+ */
171
+ this.extension = [];
172
+ /**
173
+ * @generated from field: repeated google.protobuf.DescriptorProto nested_type = 3;
174
+ */
175
+ this.nestedType = [];
176
+ /**
177
+ * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 4;
178
+ */
179
+ this.enumType = [];
180
+ /**
181
+ * @generated from field: repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
182
+ */
183
+ this.extensionRange = [];
184
+ /**
185
+ * @generated from field: repeated google.protobuf.OneofDescriptorProto oneof_decl = 8;
186
+ */
187
+ this.oneofDecl = [];
188
+ /**
189
+ * @generated from field: repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
190
+ */
191
+ this.reservedRange = [];
192
+ /**
193
+ * Reserved field names, which may not be used by fields in the same message.
194
+ * A given name may only be reserved once.
195
+ *
196
+ * @generated from field: repeated string reserved_name = 10;
197
+ */
198
+ this.reservedName = [];
199
+ index_js_1.proto2.util.initPartial(data, this);
200
+ }
201
+ static fromBinary(bytes, options) {
202
+ return new DescriptorProto().fromBinary(bytes, options);
203
+ }
204
+ static fromJson(jsonValue, options) {
205
+ return new DescriptorProto().fromJson(jsonValue, options);
206
+ }
207
+ static fromJsonString(jsonString, options) {
208
+ return new DescriptorProto().fromJsonString(jsonString, options);
209
+ }
210
+ static equals(a, b) {
211
+ return index_js_1.proto2.util.equals(DescriptorProto, a, b);
212
+ }
318
213
  }
319
214
  exports.DescriptorProto = DescriptorProto;
320
215
  DescriptorProto.runtime = index_js_1.proto2;
321
216
  DescriptorProto.typeName = "google.protobuf.DescriptorProto";
322
217
  DescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
323
- {
324
- no: 1,
325
- name: "name",
326
- kind: "scalar",
327
- T: 9 /* ScalarType.STRING */,
328
- opt: true,
329
- },
330
- {
331
- no: 2,
332
- name: "field",
333
- kind: "message",
334
- T: FieldDescriptorProto,
335
- repeated: true,
336
- },
337
- {
338
- no: 6,
339
- name: "extension",
340
- kind: "message",
341
- T: FieldDescriptorProto,
342
- repeated: true,
343
- },
344
- {
345
- no: 3,
346
- name: "nested_type",
347
- kind: "message",
348
- T: DescriptorProto,
349
- repeated: true,
350
- },
351
- {
352
- no: 4,
353
- name: "enum_type",
354
- kind: "message",
355
- T: EnumDescriptorProto,
356
- repeated: true,
357
- },
358
- {
359
- no: 5,
360
- name: "extension_range",
361
- kind: "message",
362
- T: DescriptorProto_ExtensionRange,
363
- repeated: true,
364
- },
365
- {
366
- no: 8,
367
- name: "oneof_decl",
368
- kind: "message",
369
- T: OneofDescriptorProto,
370
- repeated: true,
371
- },
372
- { no: 7, name: "options", kind: "message", T: MessageOptions, opt: true },
373
- {
374
- no: 9,
375
- name: "reserved_range",
376
- kind: "message",
377
- T: DescriptorProto_ReservedRange,
378
- repeated: true,
379
- },
380
- {
381
- no: 10,
382
- name: "reserved_name",
383
- kind: "scalar",
384
- T: 9 /* ScalarType.STRING */,
385
- repeated: true,
386
- },
218
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
219
+ { no: 2, name: "field", kind: "message", T: FieldDescriptorProto, repeated: true },
220
+ { no: 6, name: "extension", kind: "message", T: FieldDescriptorProto, repeated: true },
221
+ { no: 3, name: "nested_type", kind: "message", T: DescriptorProto, repeated: true },
222
+ { no: 4, name: "enum_type", kind: "message", T: EnumDescriptorProto, repeated: true },
223
+ { no: 5, name: "extension_range", kind: "message", T: DescriptorProto_ExtensionRange, repeated: true },
224
+ { no: 8, name: "oneof_decl", kind: "message", T: OneofDescriptorProto, repeated: true },
225
+ { no: 7, name: "options", kind: "message", T: MessageOptions, opt: true },
226
+ { no: 9, name: "reserved_range", kind: "message", T: DescriptorProto_ReservedRange, repeated: true },
227
+ { no: 10, name: "reserved_name", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
387
228
  ]);
388
229
  /**
389
230
  * @generated from message google.protobuf.DescriptorProto.ExtensionRange
390
231
  */
391
232
  class DescriptorProto_ExtensionRange extends index_js_1.Message {
392
- constructor(data) {
393
- super();
394
- index_js_1.proto2.util.initPartial(data, this);
395
- }
396
- static fromBinary(bytes, options) {
397
- return new DescriptorProto_ExtensionRange().fromBinary(bytes, options);
398
- }
399
- static fromJson(jsonValue, options) {
400
- return new DescriptorProto_ExtensionRange().fromJson(jsonValue, options);
401
- }
402
- static fromJsonString(jsonString, options) {
403
- return new DescriptorProto_ExtensionRange().fromJsonString(
404
- jsonString,
405
- options
406
- );
407
- }
408
- static equals(a, b) {
409
- return index_js_1.proto2.util.equals(DescriptorProto_ExtensionRange, a, b);
410
- }
233
+ constructor(data) {
234
+ super();
235
+ index_js_1.proto2.util.initPartial(data, this);
236
+ }
237
+ static fromBinary(bytes, options) {
238
+ return new DescriptorProto_ExtensionRange().fromBinary(bytes, options);
239
+ }
240
+ static fromJson(jsonValue, options) {
241
+ return new DescriptorProto_ExtensionRange().fromJson(jsonValue, options);
242
+ }
243
+ static fromJsonString(jsonString, options) {
244
+ return new DescriptorProto_ExtensionRange().fromJsonString(jsonString, options);
245
+ }
246
+ static equals(a, b) {
247
+ return index_js_1.proto2.util.equals(DescriptorProto_ExtensionRange, a, b);
248
+ }
411
249
  }
412
250
  exports.DescriptorProto_ExtensionRange = DescriptorProto_ExtensionRange;
413
251
  DescriptorProto_ExtensionRange.runtime = index_js_1.proto2;
414
- DescriptorProto_ExtensionRange.typeName =
415
- "google.protobuf.DescriptorProto.ExtensionRange";
416
- DescriptorProto_ExtensionRange.fields = index_js_1.proto2.util.newFieldList(
417
- () => [
418
- {
419
- no: 1,
420
- name: "start",
421
- kind: "scalar",
422
- T: 5 /* ScalarType.INT32 */,
423
- opt: true,
424
- },
425
- {
426
- no: 2,
427
- name: "end",
428
- kind: "scalar",
429
- T: 5 /* ScalarType.INT32 */,
430
- opt: true,
431
- },
432
- {
433
- no: 3,
434
- name: "options",
435
- kind: "message",
436
- T: ExtensionRangeOptions,
437
- opt: true,
438
- },
439
- ]
440
- );
252
+ DescriptorProto_ExtensionRange.typeName = "google.protobuf.DescriptorProto.ExtensionRange";
253
+ DescriptorProto_ExtensionRange.fields = index_js_1.proto2.util.newFieldList(() => [
254
+ { no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
255
+ { no: 2, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
256
+ { no: 3, name: "options", kind: "message", T: ExtensionRangeOptions, opt: true },
257
+ ]);
441
258
  /**
442
259
  * Range of reserved tag numbers. Reserved tag numbers may not be used by
443
260
  * fields or extension ranges in the same message. Reserved ranges may
@@ -446,86 +263,62 @@ DescriptorProto_ExtensionRange.fields = index_js_1.proto2.util.newFieldList(
446
263
  * @generated from message google.protobuf.DescriptorProto.ReservedRange
447
264
  */
448
265
  class DescriptorProto_ReservedRange extends index_js_1.Message {
449
- constructor(data) {
450
- super();
451
- index_js_1.proto2.util.initPartial(data, this);
452
- }
453
- static fromBinary(bytes, options) {
454
- return new DescriptorProto_ReservedRange().fromBinary(bytes, options);
455
- }
456
- static fromJson(jsonValue, options) {
457
- return new DescriptorProto_ReservedRange().fromJson(jsonValue, options);
458
- }
459
- static fromJsonString(jsonString, options) {
460
- return new DescriptorProto_ReservedRange().fromJsonString(
461
- jsonString,
462
- options
463
- );
464
- }
465
- static equals(a, b) {
466
- return index_js_1.proto2.util.equals(DescriptorProto_ReservedRange, a, b);
467
- }
266
+ constructor(data) {
267
+ super();
268
+ index_js_1.proto2.util.initPartial(data, this);
269
+ }
270
+ static fromBinary(bytes, options) {
271
+ return new DescriptorProto_ReservedRange().fromBinary(bytes, options);
272
+ }
273
+ static fromJson(jsonValue, options) {
274
+ return new DescriptorProto_ReservedRange().fromJson(jsonValue, options);
275
+ }
276
+ static fromJsonString(jsonString, options) {
277
+ return new DescriptorProto_ReservedRange().fromJsonString(jsonString, options);
278
+ }
279
+ static equals(a, b) {
280
+ return index_js_1.proto2.util.equals(DescriptorProto_ReservedRange, a, b);
281
+ }
468
282
  }
469
283
  exports.DescriptorProto_ReservedRange = DescriptorProto_ReservedRange;
470
284
  DescriptorProto_ReservedRange.runtime = index_js_1.proto2;
471
- DescriptorProto_ReservedRange.typeName =
472
- "google.protobuf.DescriptorProto.ReservedRange";
473
- DescriptorProto_ReservedRange.fields = index_js_1.proto2.util.newFieldList(
474
- () => [
475
- {
476
- no: 1,
477
- name: "start",
478
- kind: "scalar",
479
- T: 5 /* ScalarType.INT32 */,
480
- opt: true,
481
- },
482
- {
483
- no: 2,
484
- name: "end",
485
- kind: "scalar",
486
- T: 5 /* ScalarType.INT32 */,
487
- opt: true,
488
- },
489
- ]
490
- );
285
+ DescriptorProto_ReservedRange.typeName = "google.protobuf.DescriptorProto.ReservedRange";
286
+ DescriptorProto_ReservedRange.fields = index_js_1.proto2.util.newFieldList(() => [
287
+ { no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
288
+ { no: 2, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
289
+ ]);
491
290
  /**
492
291
  * @generated from message google.protobuf.ExtensionRangeOptions
493
292
  */
494
293
  class ExtensionRangeOptions extends index_js_1.Message {
495
- constructor(data) {
496
- super();
497
- /**
498
- * The parser stores options it doesn't recognize here. See above.
499
- *
500
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
501
- */
502
- this.uninterpretedOption = [];
503
- index_js_1.proto2.util.initPartial(data, this);
504
- }
505
- static fromBinary(bytes, options) {
506
- return new ExtensionRangeOptions().fromBinary(bytes, options);
507
- }
508
- static fromJson(jsonValue, options) {
509
- return new ExtensionRangeOptions().fromJson(jsonValue, options);
510
- }
511
- static fromJsonString(jsonString, options) {
512
- return new ExtensionRangeOptions().fromJsonString(jsonString, options);
513
- }
514
- static equals(a, b) {
515
- return index_js_1.proto2.util.equals(ExtensionRangeOptions, a, b);
516
- }
294
+ constructor(data) {
295
+ super();
296
+ /**
297
+ * The parser stores options it doesn't recognize here. See above.
298
+ *
299
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
300
+ */
301
+ this.uninterpretedOption = [];
302
+ index_js_1.proto2.util.initPartial(data, this);
303
+ }
304
+ static fromBinary(bytes, options) {
305
+ return new ExtensionRangeOptions().fromBinary(bytes, options);
306
+ }
307
+ static fromJson(jsonValue, options) {
308
+ return new ExtensionRangeOptions().fromJson(jsonValue, options);
309
+ }
310
+ static fromJsonString(jsonString, options) {
311
+ return new ExtensionRangeOptions().fromJsonString(jsonString, options);
312
+ }
313
+ static equals(a, b) {
314
+ return index_js_1.proto2.util.equals(ExtensionRangeOptions, a, b);
315
+ }
517
316
  }
518
317
  exports.ExtensionRangeOptions = ExtensionRangeOptions;
519
318
  ExtensionRangeOptions.runtime = index_js_1.proto2;
520
319
  ExtensionRangeOptions.typeName = "google.protobuf.ExtensionRangeOptions";
521
320
  ExtensionRangeOptions.fields = index_js_1.proto2.util.newFieldList(() => [
522
- {
523
- no: 999,
524
- name: "uninterpreted_option",
525
- kind: "message",
526
- T: UninterpretedOption,
527
- repeated: true,
528
- },
321
+ { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
529
322
  ]);
530
323
  /**
531
324
  * Describes a field within a message.
@@ -533,221 +326,141 @@ ExtensionRangeOptions.fields = index_js_1.proto2.util.newFieldList(() => [
533
326
  * @generated from message google.protobuf.FieldDescriptorProto
534
327
  */
535
328
  class FieldDescriptorProto extends index_js_1.Message {
536
- constructor(data) {
537
- super();
538
- index_js_1.proto2.util.initPartial(data, this);
539
- }
540
- static fromBinary(bytes, options) {
541
- return new FieldDescriptorProto().fromBinary(bytes, options);
542
- }
543
- static fromJson(jsonValue, options) {
544
- return new FieldDescriptorProto().fromJson(jsonValue, options);
545
- }
546
- static fromJsonString(jsonString, options) {
547
- return new FieldDescriptorProto().fromJsonString(jsonString, options);
548
- }
549
- static equals(a, b) {
550
- return index_js_1.proto2.util.equals(FieldDescriptorProto, a, b);
551
- }
329
+ constructor(data) {
330
+ super();
331
+ index_js_1.proto2.util.initPartial(data, this);
332
+ }
333
+ static fromBinary(bytes, options) {
334
+ return new FieldDescriptorProto().fromBinary(bytes, options);
335
+ }
336
+ static fromJson(jsonValue, options) {
337
+ return new FieldDescriptorProto().fromJson(jsonValue, options);
338
+ }
339
+ static fromJsonString(jsonString, options) {
340
+ return new FieldDescriptorProto().fromJsonString(jsonString, options);
341
+ }
342
+ static equals(a, b) {
343
+ return index_js_1.proto2.util.equals(FieldDescriptorProto, a, b);
344
+ }
552
345
  }
553
346
  exports.FieldDescriptorProto = FieldDescriptorProto;
554
347
  FieldDescriptorProto.runtime = index_js_1.proto2;
555
348
  FieldDescriptorProto.typeName = "google.protobuf.FieldDescriptorProto";
556
349
  FieldDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
557
- {
558
- no: 1,
559
- name: "name",
560
- kind: "scalar",
561
- T: 9 /* ScalarType.STRING */,
562
- opt: true,
563
- },
564
- {
565
- no: 3,
566
- name: "number",
567
- kind: "scalar",
568
- T: 5 /* ScalarType.INT32 */,
569
- opt: true,
570
- },
571
- {
572
- no: 4,
573
- name: "label",
574
- kind: "enum",
575
- T: index_js_1.proto2.getEnumType(FieldDescriptorProto_Label),
576
- opt: true,
577
- },
578
- {
579
- no: 5,
580
- name: "type",
581
- kind: "enum",
582
- T: index_js_1.proto2.getEnumType(FieldDescriptorProto_Type),
583
- opt: true,
584
- },
585
- {
586
- no: 6,
587
- name: "type_name",
588
- kind: "scalar",
589
- T: 9 /* ScalarType.STRING */,
590
- opt: true,
591
- },
592
- {
593
- no: 2,
594
- name: "extendee",
595
- kind: "scalar",
596
- T: 9 /* ScalarType.STRING */,
597
- opt: true,
598
- },
599
- {
600
- no: 7,
601
- name: "default_value",
602
- kind: "scalar",
603
- T: 9 /* ScalarType.STRING */,
604
- opt: true,
605
- },
606
- {
607
- no: 9,
608
- name: "oneof_index",
609
- kind: "scalar",
610
- T: 5 /* ScalarType.INT32 */,
611
- opt: true,
612
- },
613
- {
614
- no: 10,
615
- name: "json_name",
616
- kind: "scalar",
617
- T: 9 /* ScalarType.STRING */,
618
- opt: true,
619
- },
620
- { no: 8, name: "options", kind: "message", T: FieldOptions, opt: true },
621
- {
622
- no: 17,
623
- name: "proto3_optional",
624
- kind: "scalar",
625
- T: 8 /* ScalarType.BOOL */,
626
- opt: true,
627
- },
350
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
351
+ { no: 3, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
352
+ { no: 4, name: "label", kind: "enum", T: index_js_1.proto2.getEnumType(FieldDescriptorProto_Label), opt: true },
353
+ { no: 5, name: "type", kind: "enum", T: index_js_1.proto2.getEnumType(FieldDescriptorProto_Type), opt: true },
354
+ { no: 6, name: "type_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
355
+ { no: 2, name: "extendee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
356
+ { no: 7, name: "default_value", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
357
+ { no: 9, name: "oneof_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
358
+ { no: 10, name: "json_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
359
+ { no: 8, name: "options", kind: "message", T: FieldOptions, opt: true },
360
+ { no: 17, name: "proto3_optional", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
628
361
  ]);
629
362
  /**
630
363
  * @generated from enum google.protobuf.FieldDescriptorProto.Type
631
364
  */
632
365
  var FieldDescriptorProto_Type;
633
366
  (function (FieldDescriptorProto_Type) {
634
- /**
635
- * 0 is reserved for errors.
636
- * Order is weird for historical reasons.
637
- *
638
- * @generated from enum value: TYPE_DOUBLE = 1;
639
- */
640
- FieldDescriptorProto_Type[(FieldDescriptorProto_Type["DOUBLE"] = 1)] =
641
- "DOUBLE";
642
- /**
643
- * @generated from enum value: TYPE_FLOAT = 2;
644
- */
645
- FieldDescriptorProto_Type[(FieldDescriptorProto_Type["FLOAT"] = 2)] = "FLOAT";
646
- /**
647
- * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
648
- * negative values are likely.
649
- *
650
- * @generated from enum value: TYPE_INT64 = 3;
651
- */
652
- FieldDescriptorProto_Type[(FieldDescriptorProto_Type["INT64"] = 3)] = "INT64";
653
- /**
654
- * @generated from enum value: TYPE_UINT64 = 4;
655
- */
656
- FieldDescriptorProto_Type[(FieldDescriptorProto_Type["UINT64"] = 4)] =
657
- "UINT64";
658
- /**
659
- * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
660
- * negative values are likely.
661
- *
662
- * @generated from enum value: TYPE_INT32 = 5;
663
- */
664
- FieldDescriptorProto_Type[(FieldDescriptorProto_Type["INT32"] = 5)] = "INT32";
665
- /**
666
- * @generated from enum value: TYPE_FIXED64 = 6;
667
- */
668
- FieldDescriptorProto_Type[(FieldDescriptorProto_Type["FIXED64"] = 6)] =
669
- "FIXED64";
670
- /**
671
- * @generated from enum value: TYPE_FIXED32 = 7;
672
- */
673
- FieldDescriptorProto_Type[(FieldDescriptorProto_Type["FIXED32"] = 7)] =
674
- "FIXED32";
675
- /**
676
- * @generated from enum value: TYPE_BOOL = 8;
677
- */
678
- FieldDescriptorProto_Type[(FieldDescriptorProto_Type["BOOL"] = 8)] = "BOOL";
679
- /**
680
- * @generated from enum value: TYPE_STRING = 9;
681
- */
682
- FieldDescriptorProto_Type[(FieldDescriptorProto_Type["STRING"] = 9)] =
683
- "STRING";
684
- /**
685
- * Tag-delimited aggregate.
686
- * Group type is deprecated and not supported in proto3. However, Proto3
687
- * implementations should still be able to parse the group wire format and
688
- * treat group fields as unknown fields.
689
- *
690
- * @generated from enum value: TYPE_GROUP = 10;
691
- */
692
- FieldDescriptorProto_Type[(FieldDescriptorProto_Type["GROUP"] = 10)] =
693
- "GROUP";
694
- /**
695
- * Length-delimited aggregate.
696
- *
697
- * @generated from enum value: TYPE_MESSAGE = 11;
698
- */
699
- FieldDescriptorProto_Type[(FieldDescriptorProto_Type["MESSAGE"] = 11)] =
700
- "MESSAGE";
701
- /**
702
- * New in version 2.
703
- *
704
- * @generated from enum value: TYPE_BYTES = 12;
705
- */
706
- FieldDescriptorProto_Type[(FieldDescriptorProto_Type["BYTES"] = 12)] =
707
- "BYTES";
708
- /**
709
- * @generated from enum value: TYPE_UINT32 = 13;
710
- */
711
- FieldDescriptorProto_Type[(FieldDescriptorProto_Type["UINT32"] = 13)] =
712
- "UINT32";
713
- /**
714
- * @generated from enum value: TYPE_ENUM = 14;
715
- */
716
- FieldDescriptorProto_Type[(FieldDescriptorProto_Type["ENUM"] = 14)] = "ENUM";
717
- /**
718
- * @generated from enum value: TYPE_SFIXED32 = 15;
719
- */
720
- FieldDescriptorProto_Type[(FieldDescriptorProto_Type["SFIXED32"] = 15)] =
721
- "SFIXED32";
722
- /**
723
- * @generated from enum value: TYPE_SFIXED64 = 16;
724
- */
725
- FieldDescriptorProto_Type[(FieldDescriptorProto_Type["SFIXED64"] = 16)] =
726
- "SFIXED64";
727
- /**
728
- * Uses ZigZag encoding.
729
- *
730
- * @generated from enum value: TYPE_SINT32 = 17;
731
- */
732
- FieldDescriptorProto_Type[(FieldDescriptorProto_Type["SINT32"] = 17)] =
733
- "SINT32";
734
- /**
735
- * Uses ZigZag encoding.
736
- *
737
- * @generated from enum value: TYPE_SINT64 = 18;
738
- */
739
- FieldDescriptorProto_Type[(FieldDescriptorProto_Type["SINT64"] = 18)] =
740
- "SINT64";
741
- })(
742
- (FieldDescriptorProto_Type =
743
- exports.FieldDescriptorProto_Type ||
744
- (exports.FieldDescriptorProto_Type = {}))
745
- );
367
+ /**
368
+ * 0 is reserved for errors.
369
+ * Order is weird for historical reasons.
370
+ *
371
+ * @generated from enum value: TYPE_DOUBLE = 1;
372
+ */
373
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["DOUBLE"] = 1] = "DOUBLE";
374
+ /**
375
+ * @generated from enum value: TYPE_FLOAT = 2;
376
+ */
377
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["FLOAT"] = 2] = "FLOAT";
378
+ /**
379
+ * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
380
+ * negative values are likely.
381
+ *
382
+ * @generated from enum value: TYPE_INT64 = 3;
383
+ */
384
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["INT64"] = 3] = "INT64";
385
+ /**
386
+ * @generated from enum value: TYPE_UINT64 = 4;
387
+ */
388
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["UINT64"] = 4] = "UINT64";
389
+ /**
390
+ * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
391
+ * negative values are likely.
392
+ *
393
+ * @generated from enum value: TYPE_INT32 = 5;
394
+ */
395
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["INT32"] = 5] = "INT32";
396
+ /**
397
+ * @generated from enum value: TYPE_FIXED64 = 6;
398
+ */
399
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["FIXED64"] = 6] = "FIXED64";
400
+ /**
401
+ * @generated from enum value: TYPE_FIXED32 = 7;
402
+ */
403
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["FIXED32"] = 7] = "FIXED32";
404
+ /**
405
+ * @generated from enum value: TYPE_BOOL = 8;
406
+ */
407
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["BOOL"] = 8] = "BOOL";
408
+ /**
409
+ * @generated from enum value: TYPE_STRING = 9;
410
+ */
411
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["STRING"] = 9] = "STRING";
412
+ /**
413
+ * Tag-delimited aggregate.
414
+ * Group type is deprecated and not supported in proto3. However, Proto3
415
+ * implementations should still be able to parse the group wire format and
416
+ * treat group fields as unknown fields.
417
+ *
418
+ * @generated from enum value: TYPE_GROUP = 10;
419
+ */
420
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["GROUP"] = 10] = "GROUP";
421
+ /**
422
+ * Length-delimited aggregate.
423
+ *
424
+ * @generated from enum value: TYPE_MESSAGE = 11;
425
+ */
426
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["MESSAGE"] = 11] = "MESSAGE";
427
+ /**
428
+ * New in version 2.
429
+ *
430
+ * @generated from enum value: TYPE_BYTES = 12;
431
+ */
432
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["BYTES"] = 12] = "BYTES";
433
+ /**
434
+ * @generated from enum value: TYPE_UINT32 = 13;
435
+ */
436
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["UINT32"] = 13] = "UINT32";
437
+ /**
438
+ * @generated from enum value: TYPE_ENUM = 14;
439
+ */
440
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["ENUM"] = 14] = "ENUM";
441
+ /**
442
+ * @generated from enum value: TYPE_SFIXED32 = 15;
443
+ */
444
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["SFIXED32"] = 15] = "SFIXED32";
445
+ /**
446
+ * @generated from enum value: TYPE_SFIXED64 = 16;
447
+ */
448
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["SFIXED64"] = 16] = "SFIXED64";
449
+ /**
450
+ * Uses ZigZag encoding.
451
+ *
452
+ * @generated from enum value: TYPE_SINT32 = 17;
453
+ */
454
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["SINT32"] = 17] = "SINT32";
455
+ /**
456
+ * Uses ZigZag encoding.
457
+ *
458
+ * @generated from enum value: TYPE_SINT64 = 18;
459
+ */
460
+ FieldDescriptorProto_Type[FieldDescriptorProto_Type["SINT64"] = 18] = "SINT64";
461
+ })(FieldDescriptorProto_Type = exports.FieldDescriptorProto_Type || (exports.FieldDescriptorProto_Type = {}));
746
462
  // Retrieve enum metadata with: proto2.getEnumType(FieldDescriptorProto_Type)
747
- index_js_1.proto2.util.setEnumType(
748
- FieldDescriptorProto_Type,
749
- "google.protobuf.FieldDescriptorProto.Type",
750
- [
463
+ index_js_1.proto2.util.setEnumType(FieldDescriptorProto_Type, "google.protobuf.FieldDescriptorProto.Type", [
751
464
  { no: 1, name: "TYPE_DOUBLE" },
752
465
  { no: 2, name: "TYPE_FLOAT" },
753
466
  { no: 3, name: "TYPE_INT64" },
@@ -766,80 +479,62 @@ index_js_1.proto2.util.setEnumType(
766
479
  { no: 16, name: "TYPE_SFIXED64" },
767
480
  { no: 17, name: "TYPE_SINT32" },
768
481
  { no: 18, name: "TYPE_SINT64" },
769
- ]
770
- );
482
+ ]);
771
483
  /**
772
484
  * @generated from enum google.protobuf.FieldDescriptorProto.Label
773
485
  */
774
486
  var FieldDescriptorProto_Label;
775
487
  (function (FieldDescriptorProto_Label) {
776
- /**
777
- * 0 is reserved for errors
778
- *
779
- * @generated from enum value: LABEL_OPTIONAL = 1;
780
- */
781
- FieldDescriptorProto_Label[(FieldDescriptorProto_Label["OPTIONAL"] = 1)] =
782
- "OPTIONAL";
783
- /**
784
- * @generated from enum value: LABEL_REQUIRED = 2;
785
- */
786
- FieldDescriptorProto_Label[(FieldDescriptorProto_Label["REQUIRED"] = 2)] =
787
- "REQUIRED";
788
- /**
789
- * @generated from enum value: LABEL_REPEATED = 3;
790
- */
791
- FieldDescriptorProto_Label[(FieldDescriptorProto_Label["REPEATED"] = 3)] =
792
- "REPEATED";
793
- })(
794
- (FieldDescriptorProto_Label =
795
- exports.FieldDescriptorProto_Label ||
796
- (exports.FieldDescriptorProto_Label = {}))
797
- );
488
+ /**
489
+ * 0 is reserved for errors
490
+ *
491
+ * @generated from enum value: LABEL_OPTIONAL = 1;
492
+ */
493
+ FieldDescriptorProto_Label[FieldDescriptorProto_Label["OPTIONAL"] = 1] = "OPTIONAL";
494
+ /**
495
+ * @generated from enum value: LABEL_REQUIRED = 2;
496
+ */
497
+ FieldDescriptorProto_Label[FieldDescriptorProto_Label["REQUIRED"] = 2] = "REQUIRED";
498
+ /**
499
+ * @generated from enum value: LABEL_REPEATED = 3;
500
+ */
501
+ FieldDescriptorProto_Label[FieldDescriptorProto_Label["REPEATED"] = 3] = "REPEATED";
502
+ })(FieldDescriptorProto_Label = exports.FieldDescriptorProto_Label || (exports.FieldDescriptorProto_Label = {}));
798
503
  // Retrieve enum metadata with: proto2.getEnumType(FieldDescriptorProto_Label)
799
- index_js_1.proto2.util.setEnumType(
800
- FieldDescriptorProto_Label,
801
- "google.protobuf.FieldDescriptorProto.Label",
802
- [
504
+ index_js_1.proto2.util.setEnumType(FieldDescriptorProto_Label, "google.protobuf.FieldDescriptorProto.Label", [
803
505
  { no: 1, name: "LABEL_OPTIONAL" },
804
506
  { no: 2, name: "LABEL_REQUIRED" },
805
507
  { no: 3, name: "LABEL_REPEATED" },
806
- ]
807
- );
508
+ ]);
808
509
  /**
809
510
  * Describes a oneof.
810
511
  *
811
512
  * @generated from message google.protobuf.OneofDescriptorProto
812
513
  */
813
514
  class OneofDescriptorProto extends index_js_1.Message {
814
- constructor(data) {
815
- super();
816
- index_js_1.proto2.util.initPartial(data, this);
817
- }
818
- static fromBinary(bytes, options) {
819
- return new OneofDescriptorProto().fromBinary(bytes, options);
820
- }
821
- static fromJson(jsonValue, options) {
822
- return new OneofDescriptorProto().fromJson(jsonValue, options);
823
- }
824
- static fromJsonString(jsonString, options) {
825
- return new OneofDescriptorProto().fromJsonString(jsonString, options);
826
- }
827
- static equals(a, b) {
828
- return index_js_1.proto2.util.equals(OneofDescriptorProto, a, b);
829
- }
515
+ constructor(data) {
516
+ super();
517
+ index_js_1.proto2.util.initPartial(data, this);
518
+ }
519
+ static fromBinary(bytes, options) {
520
+ return new OneofDescriptorProto().fromBinary(bytes, options);
521
+ }
522
+ static fromJson(jsonValue, options) {
523
+ return new OneofDescriptorProto().fromJson(jsonValue, options);
524
+ }
525
+ static fromJsonString(jsonString, options) {
526
+ return new OneofDescriptorProto().fromJsonString(jsonString, options);
527
+ }
528
+ static equals(a, b) {
529
+ return index_js_1.proto2.util.equals(OneofDescriptorProto, a, b);
530
+ }
830
531
  }
831
532
  exports.OneofDescriptorProto = OneofDescriptorProto;
832
533
  OneofDescriptorProto.runtime = index_js_1.proto2;
833
534
  OneofDescriptorProto.typeName = "google.protobuf.OneofDescriptorProto";
834
535
  OneofDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
835
- {
836
- no: 1,
837
- name: "name",
838
- kind: "scalar",
839
- T: 9 /* ScalarType.STRING */,
840
- opt: true,
841
- },
842
- { no: 2, name: "options", kind: "message", T: OneofOptions, opt: true },
536
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
537
+ { no: 2, name: "options", kind: "message", T: OneofOptions, opt: true },
843
538
  ]);
844
539
  /**
845
540
  * Describes an enum type.
@@ -847,75 +542,51 @@ OneofDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
847
542
  * @generated from message google.protobuf.EnumDescriptorProto
848
543
  */
849
544
  class EnumDescriptorProto extends index_js_1.Message {
850
- constructor(data) {
851
- super();
852
- /**
853
- * @generated from field: repeated google.protobuf.EnumValueDescriptorProto value = 2;
854
- */
855
- this.value = [];
856
- /**
857
- * Range of reserved numeric values. Reserved numeric values may not be used
858
- * by enum values in the same enum declaration. Reserved ranges may not
859
- * overlap.
860
- *
861
- * @generated from field: repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
862
- */
863
- this.reservedRange = [];
864
- /**
865
- * Reserved enum value names, which may not be reused. A given name may only
866
- * be reserved once.
867
- *
868
- * @generated from field: repeated string reserved_name = 5;
869
- */
870
- this.reservedName = [];
871
- index_js_1.proto2.util.initPartial(data, this);
872
- }
873
- static fromBinary(bytes, options) {
874
- return new EnumDescriptorProto().fromBinary(bytes, options);
875
- }
876
- static fromJson(jsonValue, options) {
877
- return new EnumDescriptorProto().fromJson(jsonValue, options);
878
- }
879
- static fromJsonString(jsonString, options) {
880
- return new EnumDescriptorProto().fromJsonString(jsonString, options);
881
- }
882
- static equals(a, b) {
883
- return index_js_1.proto2.util.equals(EnumDescriptorProto, a, b);
884
- }
545
+ constructor(data) {
546
+ super();
547
+ /**
548
+ * @generated from field: repeated google.protobuf.EnumValueDescriptorProto value = 2;
549
+ */
550
+ this.value = [];
551
+ /**
552
+ * Range of reserved numeric values. Reserved numeric values may not be used
553
+ * by enum values in the same enum declaration. Reserved ranges may not
554
+ * overlap.
555
+ *
556
+ * @generated from field: repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
557
+ */
558
+ this.reservedRange = [];
559
+ /**
560
+ * Reserved enum value names, which may not be reused. A given name may only
561
+ * be reserved once.
562
+ *
563
+ * @generated from field: repeated string reserved_name = 5;
564
+ */
565
+ this.reservedName = [];
566
+ index_js_1.proto2.util.initPartial(data, this);
567
+ }
568
+ static fromBinary(bytes, options) {
569
+ return new EnumDescriptorProto().fromBinary(bytes, options);
570
+ }
571
+ static fromJson(jsonValue, options) {
572
+ return new EnumDescriptorProto().fromJson(jsonValue, options);
573
+ }
574
+ static fromJsonString(jsonString, options) {
575
+ return new EnumDescriptorProto().fromJsonString(jsonString, options);
576
+ }
577
+ static equals(a, b) {
578
+ return index_js_1.proto2.util.equals(EnumDescriptorProto, a, b);
579
+ }
885
580
  }
886
581
  exports.EnumDescriptorProto = EnumDescriptorProto;
887
582
  EnumDescriptorProto.runtime = index_js_1.proto2;
888
583
  EnumDescriptorProto.typeName = "google.protobuf.EnumDescriptorProto";
889
584
  EnumDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
890
- {
891
- no: 1,
892
- name: "name",
893
- kind: "scalar",
894
- T: 9 /* ScalarType.STRING */,
895
- opt: true,
896
- },
897
- {
898
- no: 2,
899
- name: "value",
900
- kind: "message",
901
- T: EnumValueDescriptorProto,
902
- repeated: true,
903
- },
904
- { no: 3, name: "options", kind: "message", T: EnumOptions, opt: true },
905
- {
906
- no: 4,
907
- name: "reserved_range",
908
- kind: "message",
909
- T: EnumDescriptorProto_EnumReservedRange,
910
- repeated: true,
911
- },
912
- {
913
- no: 5,
914
- name: "reserved_name",
915
- kind: "scalar",
916
- T: 9 /* ScalarType.STRING */,
917
- repeated: true,
918
- },
585
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
586
+ { no: 2, name: "value", kind: "message", T: EnumValueDescriptorProto, repeated: true },
587
+ { no: 3, name: "options", kind: "message", T: EnumOptions, opt: true },
588
+ { no: 4, name: "reserved_range", kind: "message", T: EnumDescriptorProto_EnumReservedRange, repeated: true },
589
+ { no: 5, name: "reserved_name", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
919
590
  ]);
920
591
  /**
921
592
  * Range of reserved numeric values. Reserved values may not be used by
@@ -928,100 +599,60 @@ EnumDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
928
599
  * @generated from message google.protobuf.EnumDescriptorProto.EnumReservedRange
929
600
  */
930
601
  class EnumDescriptorProto_EnumReservedRange extends index_js_1.Message {
931
- constructor(data) {
932
- super();
933
- index_js_1.proto2.util.initPartial(data, this);
934
- }
935
- static fromBinary(bytes, options) {
936
- return new EnumDescriptorProto_EnumReservedRange().fromBinary(
937
- bytes,
938
- options
939
- );
940
- }
941
- static fromJson(jsonValue, options) {
942
- return new EnumDescriptorProto_EnumReservedRange().fromJson(
943
- jsonValue,
944
- options
945
- );
946
- }
947
- static fromJsonString(jsonString, options) {
948
- return new EnumDescriptorProto_EnumReservedRange().fromJsonString(
949
- jsonString,
950
- options
951
- );
952
- }
953
- static equals(a, b) {
954
- return index_js_1.proto2.util.equals(
955
- EnumDescriptorProto_EnumReservedRange,
956
- a,
957
- b
958
- );
959
- }
602
+ constructor(data) {
603
+ super();
604
+ index_js_1.proto2.util.initPartial(data, this);
605
+ }
606
+ static fromBinary(bytes, options) {
607
+ return new EnumDescriptorProto_EnumReservedRange().fromBinary(bytes, options);
608
+ }
609
+ static fromJson(jsonValue, options) {
610
+ return new EnumDescriptorProto_EnumReservedRange().fromJson(jsonValue, options);
611
+ }
612
+ static fromJsonString(jsonString, options) {
613
+ return new EnumDescriptorProto_EnumReservedRange().fromJsonString(jsonString, options);
614
+ }
615
+ static equals(a, b) {
616
+ return index_js_1.proto2.util.equals(EnumDescriptorProto_EnumReservedRange, a, b);
617
+ }
960
618
  }
961
- exports.EnumDescriptorProto_EnumReservedRange =
962
- EnumDescriptorProto_EnumReservedRange;
619
+ exports.EnumDescriptorProto_EnumReservedRange = EnumDescriptorProto_EnumReservedRange;
963
620
  EnumDescriptorProto_EnumReservedRange.runtime = index_js_1.proto2;
964
- EnumDescriptorProto_EnumReservedRange.typeName =
965
- "google.protobuf.EnumDescriptorProto.EnumReservedRange";
966
- EnumDescriptorProto_EnumReservedRange.fields =
967
- index_js_1.proto2.util.newFieldList(() => [
968
- {
969
- no: 1,
970
- name: "start",
971
- kind: "scalar",
972
- T: 5 /* ScalarType.INT32 */,
973
- opt: true,
974
- },
975
- {
976
- no: 2,
977
- name: "end",
978
- kind: "scalar",
979
- T: 5 /* ScalarType.INT32 */,
980
- opt: true,
981
- },
982
- ]);
621
+ EnumDescriptorProto_EnumReservedRange.typeName = "google.protobuf.EnumDescriptorProto.EnumReservedRange";
622
+ EnumDescriptorProto_EnumReservedRange.fields = index_js_1.proto2.util.newFieldList(() => [
623
+ { no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
624
+ { no: 2, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
625
+ ]);
983
626
  /**
984
627
  * Describes a value within an enum.
985
628
  *
986
629
  * @generated from message google.protobuf.EnumValueDescriptorProto
987
630
  */
988
631
  class EnumValueDescriptorProto extends index_js_1.Message {
989
- constructor(data) {
990
- super();
991
- index_js_1.proto2.util.initPartial(data, this);
992
- }
993
- static fromBinary(bytes, options) {
994
- return new EnumValueDescriptorProto().fromBinary(bytes, options);
995
- }
996
- static fromJson(jsonValue, options) {
997
- return new EnumValueDescriptorProto().fromJson(jsonValue, options);
998
- }
999
- static fromJsonString(jsonString, options) {
1000
- return new EnumValueDescriptorProto().fromJsonString(jsonString, options);
1001
- }
1002
- static equals(a, b) {
1003
- return index_js_1.proto2.util.equals(EnumValueDescriptorProto, a, b);
1004
- }
632
+ constructor(data) {
633
+ super();
634
+ index_js_1.proto2.util.initPartial(data, this);
635
+ }
636
+ static fromBinary(bytes, options) {
637
+ return new EnumValueDescriptorProto().fromBinary(bytes, options);
638
+ }
639
+ static fromJson(jsonValue, options) {
640
+ return new EnumValueDescriptorProto().fromJson(jsonValue, options);
641
+ }
642
+ static fromJsonString(jsonString, options) {
643
+ return new EnumValueDescriptorProto().fromJsonString(jsonString, options);
644
+ }
645
+ static equals(a, b) {
646
+ return index_js_1.proto2.util.equals(EnumValueDescriptorProto, a, b);
647
+ }
1005
648
  }
1006
649
  exports.EnumValueDescriptorProto = EnumValueDescriptorProto;
1007
650
  EnumValueDescriptorProto.runtime = index_js_1.proto2;
1008
651
  EnumValueDescriptorProto.typeName = "google.protobuf.EnumValueDescriptorProto";
1009
652
  EnumValueDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
1010
- {
1011
- no: 1,
1012
- name: "name",
1013
- kind: "scalar",
1014
- T: 9 /* ScalarType.STRING */,
1015
- opt: true,
1016
- },
1017
- {
1018
- no: 2,
1019
- name: "number",
1020
- kind: "scalar",
1021
- T: 5 /* ScalarType.INT32 */,
1022
- opt: true,
1023
- },
1024
- { no: 3, name: "options", kind: "message", T: EnumValueOptions, opt: true },
653
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
654
+ { no: 2, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
655
+ { no: 3, name: "options", kind: "message", T: EnumValueOptions, opt: true },
1025
656
  ]);
1026
657
  /**
1027
658
  * Describes a service.
@@ -1029,46 +660,34 @@ EnumValueDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
1029
660
  * @generated from message google.protobuf.ServiceDescriptorProto
1030
661
  */
1031
662
  class ServiceDescriptorProto extends index_js_1.Message {
1032
- constructor(data) {
1033
- super();
1034
- /**
1035
- * @generated from field: repeated google.protobuf.MethodDescriptorProto method = 2;
1036
- */
1037
- this.method = [];
1038
- index_js_1.proto2.util.initPartial(data, this);
1039
- }
1040
- static fromBinary(bytes, options) {
1041
- return new ServiceDescriptorProto().fromBinary(bytes, options);
1042
- }
1043
- static fromJson(jsonValue, options) {
1044
- return new ServiceDescriptorProto().fromJson(jsonValue, options);
1045
- }
1046
- static fromJsonString(jsonString, options) {
1047
- return new ServiceDescriptorProto().fromJsonString(jsonString, options);
1048
- }
1049
- static equals(a, b) {
1050
- return index_js_1.proto2.util.equals(ServiceDescriptorProto, a, b);
1051
- }
663
+ constructor(data) {
664
+ super();
665
+ /**
666
+ * @generated from field: repeated google.protobuf.MethodDescriptorProto method = 2;
667
+ */
668
+ this.method = [];
669
+ index_js_1.proto2.util.initPartial(data, this);
670
+ }
671
+ static fromBinary(bytes, options) {
672
+ return new ServiceDescriptorProto().fromBinary(bytes, options);
673
+ }
674
+ static fromJson(jsonValue, options) {
675
+ return new ServiceDescriptorProto().fromJson(jsonValue, options);
676
+ }
677
+ static fromJsonString(jsonString, options) {
678
+ return new ServiceDescriptorProto().fromJsonString(jsonString, options);
679
+ }
680
+ static equals(a, b) {
681
+ return index_js_1.proto2.util.equals(ServiceDescriptorProto, a, b);
682
+ }
1052
683
  }
1053
684
  exports.ServiceDescriptorProto = ServiceDescriptorProto;
1054
685
  ServiceDescriptorProto.runtime = index_js_1.proto2;
1055
686
  ServiceDescriptorProto.typeName = "google.protobuf.ServiceDescriptorProto";
1056
687
  ServiceDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
1057
- {
1058
- no: 1,
1059
- name: "name",
1060
- kind: "scalar",
1061
- T: 9 /* ScalarType.STRING */,
1062
- opt: true,
1063
- },
1064
- {
1065
- no: 2,
1066
- name: "method",
1067
- kind: "message",
1068
- T: MethodDescriptorProto,
1069
- repeated: true,
1070
- },
1071
- { no: 3, name: "options", kind: "message", T: ServiceOptions, opt: true },
688
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
689
+ { no: 2, name: "method", kind: "message", T: MethodDescriptorProto, repeated: true },
690
+ { no: 3, name: "options", kind: "message", T: ServiceOptions, opt: true },
1072
691
  ]);
1073
692
  /**
1074
693
  * Describes a method of a service.
@@ -1076,254 +695,87 @@ ServiceDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
1076
695
  * @generated from message google.protobuf.MethodDescriptorProto
1077
696
  */
1078
697
  class MethodDescriptorProto extends index_js_1.Message {
1079
- constructor(data) {
1080
- super();
1081
- index_js_1.proto2.util.initPartial(data, this);
1082
- }
1083
- static fromBinary(bytes, options) {
1084
- return new MethodDescriptorProto().fromBinary(bytes, options);
1085
- }
1086
- static fromJson(jsonValue, options) {
1087
- return new MethodDescriptorProto().fromJson(jsonValue, options);
1088
- }
1089
- static fromJsonString(jsonString, options) {
1090
- return new MethodDescriptorProto().fromJsonString(jsonString, options);
1091
- }
1092
- static equals(a, b) {
1093
- return index_js_1.proto2.util.equals(MethodDescriptorProto, a, b);
1094
- }
698
+ constructor(data) {
699
+ super();
700
+ index_js_1.proto2.util.initPartial(data, this);
701
+ }
702
+ static fromBinary(bytes, options) {
703
+ return new MethodDescriptorProto().fromBinary(bytes, options);
704
+ }
705
+ static fromJson(jsonValue, options) {
706
+ return new MethodDescriptorProto().fromJson(jsonValue, options);
707
+ }
708
+ static fromJsonString(jsonString, options) {
709
+ return new MethodDescriptorProto().fromJsonString(jsonString, options);
710
+ }
711
+ static equals(a, b) {
712
+ return index_js_1.proto2.util.equals(MethodDescriptorProto, a, b);
713
+ }
1095
714
  }
1096
715
  exports.MethodDescriptorProto = MethodDescriptorProto;
1097
716
  MethodDescriptorProto.runtime = index_js_1.proto2;
1098
717
  MethodDescriptorProto.typeName = "google.protobuf.MethodDescriptorProto";
1099
718
  MethodDescriptorProto.fields = index_js_1.proto2.util.newFieldList(() => [
1100
- {
1101
- no: 1,
1102
- name: "name",
1103
- kind: "scalar",
1104
- T: 9 /* ScalarType.STRING */,
1105
- opt: true,
1106
- },
1107
- {
1108
- no: 2,
1109
- name: "input_type",
1110
- kind: "scalar",
1111
- T: 9 /* ScalarType.STRING */,
1112
- opt: true,
1113
- },
1114
- {
1115
- no: 3,
1116
- name: "output_type",
1117
- kind: "scalar",
1118
- T: 9 /* ScalarType.STRING */,
1119
- opt: true,
1120
- },
1121
- { no: 4, name: "options", kind: "message", T: MethodOptions, opt: true },
1122
- {
1123
- no: 5,
1124
- name: "client_streaming",
1125
- kind: "scalar",
1126
- T: 8 /* ScalarType.BOOL */,
1127
- opt: true,
1128
- default: false,
1129
- },
1130
- {
1131
- no: 6,
1132
- name: "server_streaming",
1133
- kind: "scalar",
1134
- T: 8 /* ScalarType.BOOL */,
1135
- opt: true,
1136
- default: false,
1137
- },
719
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
720
+ { no: 2, name: "input_type", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
721
+ { no: 3, name: "output_type", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
722
+ { no: 4, name: "options", kind: "message", T: MethodOptions, opt: true },
723
+ { no: 5, name: "client_streaming", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
724
+ { no: 6, name: "server_streaming", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
1138
725
  ]);
1139
726
  /**
1140
727
  * @generated from message google.protobuf.FileOptions
1141
728
  */
1142
729
  class FileOptions extends index_js_1.Message {
1143
- constructor(data) {
1144
- super();
1145
- /**
1146
- * The parser stores options it doesn't recognize here.
1147
- * See the documentation for the "Options" section above.
1148
- *
1149
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1150
- */
1151
- this.uninterpretedOption = [];
1152
- index_js_1.proto2.util.initPartial(data, this);
1153
- }
1154
- static fromBinary(bytes, options) {
1155
- return new FileOptions().fromBinary(bytes, options);
1156
- }
1157
- static fromJson(jsonValue, options) {
1158
- return new FileOptions().fromJson(jsonValue, options);
1159
- }
1160
- static fromJsonString(jsonString, options) {
1161
- return new FileOptions().fromJsonString(jsonString, options);
1162
- }
1163
- static equals(a, b) {
1164
- return index_js_1.proto2.util.equals(FileOptions, a, b);
1165
- }
730
+ constructor(data) {
731
+ super();
732
+ /**
733
+ * The parser stores options it doesn't recognize here.
734
+ * See the documentation for the "Options" section above.
735
+ *
736
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
737
+ */
738
+ this.uninterpretedOption = [];
739
+ index_js_1.proto2.util.initPartial(data, this);
740
+ }
741
+ static fromBinary(bytes, options) {
742
+ return new FileOptions().fromBinary(bytes, options);
743
+ }
744
+ static fromJson(jsonValue, options) {
745
+ return new FileOptions().fromJson(jsonValue, options);
746
+ }
747
+ static fromJsonString(jsonString, options) {
748
+ return new FileOptions().fromJsonString(jsonString, options);
749
+ }
750
+ static equals(a, b) {
751
+ return index_js_1.proto2.util.equals(FileOptions, a, b);
752
+ }
1166
753
  }
1167
754
  exports.FileOptions = FileOptions;
1168
755
  FileOptions.runtime = index_js_1.proto2;
1169
756
  FileOptions.typeName = "google.protobuf.FileOptions";
1170
757
  FileOptions.fields = index_js_1.proto2.util.newFieldList(() => [
1171
- {
1172
- no: 1,
1173
- name: "java_package",
1174
- kind: "scalar",
1175
- T: 9 /* ScalarType.STRING */,
1176
- opt: true,
1177
- },
1178
- {
1179
- no: 8,
1180
- name: "java_outer_classname",
1181
- kind: "scalar",
1182
- T: 9 /* ScalarType.STRING */,
1183
- opt: true,
1184
- },
1185
- {
1186
- no: 10,
1187
- name: "java_multiple_files",
1188
- kind: "scalar",
1189
- T: 8 /* ScalarType.BOOL */,
1190
- opt: true,
1191
- default: false,
1192
- },
1193
- {
1194
- no: 20,
1195
- name: "java_generate_equals_and_hash",
1196
- kind: "scalar",
1197
- T: 8 /* ScalarType.BOOL */,
1198
- opt: true,
1199
- },
1200
- {
1201
- no: 27,
1202
- name: "java_string_check_utf8",
1203
- kind: "scalar",
1204
- T: 8 /* ScalarType.BOOL */,
1205
- opt: true,
1206
- default: false,
1207
- },
1208
- {
1209
- no: 9,
1210
- name: "optimize_for",
1211
- kind: "enum",
1212
- T: index_js_1.proto2.getEnumType(FileOptions_OptimizeMode),
1213
- opt: true,
1214
- default: FileOptions_OptimizeMode.SPEED,
1215
- },
1216
- {
1217
- no: 11,
1218
- name: "go_package",
1219
- kind: "scalar",
1220
- T: 9 /* ScalarType.STRING */,
1221
- opt: true,
1222
- },
1223
- {
1224
- no: 16,
1225
- name: "cc_generic_services",
1226
- kind: "scalar",
1227
- T: 8 /* ScalarType.BOOL */,
1228
- opt: true,
1229
- default: false,
1230
- },
1231
- {
1232
- no: 17,
1233
- name: "java_generic_services",
1234
- kind: "scalar",
1235
- T: 8 /* ScalarType.BOOL */,
1236
- opt: true,
1237
- default: false,
1238
- },
1239
- {
1240
- no: 18,
1241
- name: "py_generic_services",
1242
- kind: "scalar",
1243
- T: 8 /* ScalarType.BOOL */,
1244
- opt: true,
1245
- default: false,
1246
- },
1247
- {
1248
- no: 42,
1249
- name: "php_generic_services",
1250
- kind: "scalar",
1251
- T: 8 /* ScalarType.BOOL */,
1252
- opt: true,
1253
- default: false,
1254
- },
1255
- {
1256
- no: 23,
1257
- name: "deprecated",
1258
- kind: "scalar",
1259
- T: 8 /* ScalarType.BOOL */,
1260
- opt: true,
1261
- default: false,
1262
- },
1263
- {
1264
- no: 31,
1265
- name: "cc_enable_arenas",
1266
- kind: "scalar",
1267
- T: 8 /* ScalarType.BOOL */,
1268
- opt: true,
1269
- default: true,
1270
- },
1271
- {
1272
- no: 36,
1273
- name: "objc_class_prefix",
1274
- kind: "scalar",
1275
- T: 9 /* ScalarType.STRING */,
1276
- opt: true,
1277
- },
1278
- {
1279
- no: 37,
1280
- name: "csharp_namespace",
1281
- kind: "scalar",
1282
- T: 9 /* ScalarType.STRING */,
1283
- opt: true,
1284
- },
1285
- {
1286
- no: 39,
1287
- name: "swift_prefix",
1288
- kind: "scalar",
1289
- T: 9 /* ScalarType.STRING */,
1290
- opt: true,
1291
- },
1292
- {
1293
- no: 40,
1294
- name: "php_class_prefix",
1295
- kind: "scalar",
1296
- T: 9 /* ScalarType.STRING */,
1297
- opt: true,
1298
- },
1299
- {
1300
- no: 41,
1301
- name: "php_namespace",
1302
- kind: "scalar",
1303
- T: 9 /* ScalarType.STRING */,
1304
- opt: true,
1305
- },
1306
- {
1307
- no: 44,
1308
- name: "php_metadata_namespace",
1309
- kind: "scalar",
1310
- T: 9 /* ScalarType.STRING */,
1311
- opt: true,
1312
- },
1313
- {
1314
- no: 45,
1315
- name: "ruby_package",
1316
- kind: "scalar",
1317
- T: 9 /* ScalarType.STRING */,
1318
- opt: true,
1319
- },
1320
- {
1321
- no: 999,
1322
- name: "uninterpreted_option",
1323
- kind: "message",
1324
- T: UninterpretedOption,
1325
- repeated: true,
1326
- },
758
+ { no: 1, name: "java_package", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
759
+ { no: 8, name: "java_outer_classname", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
760
+ { no: 10, name: "java_multiple_files", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
761
+ { no: 20, name: "java_generate_equals_and_hash", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
762
+ { no: 27, name: "java_string_check_utf8", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
763
+ { no: 9, name: "optimize_for", kind: "enum", T: index_js_1.proto2.getEnumType(FileOptions_OptimizeMode), opt: true, default: FileOptions_OptimizeMode.SPEED },
764
+ { no: 11, name: "go_package", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
765
+ { no: 16, name: "cc_generic_services", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
766
+ { no: 17, name: "java_generic_services", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
767
+ { no: 18, name: "py_generic_services", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
768
+ { no: 42, name: "php_generic_services", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
769
+ { no: 23, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
770
+ { no: 31, name: "cc_enable_arenas", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: true },
771
+ { no: 36, name: "objc_class_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
772
+ { no: 37, name: "csharp_namespace", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
773
+ { no: 39, name: "swift_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
774
+ { no: 40, name: "php_class_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
775
+ { no: 41, name: "php_namespace", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
776
+ { no: 44, name: "php_metadata_namespace", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
777
+ { no: 45, name: "ruby_package", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
778
+ { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
1327
779
  ]);
1328
780
  /**
1329
781
  * Generated classes can be optimized for speed or code size.
@@ -1332,509 +784,335 @@ FileOptions.fields = index_js_1.proto2.util.newFieldList(() => [
1332
784
  */
1333
785
  var FileOptions_OptimizeMode;
1334
786
  (function (FileOptions_OptimizeMode) {
1335
- /**
1336
- * Generate complete code for parsing, serialization,
1337
- *
1338
- * @generated from enum value: SPEED = 1;
1339
- */
1340
- FileOptions_OptimizeMode[(FileOptions_OptimizeMode["SPEED"] = 1)] = "SPEED";
1341
- /**
1342
- * etc.
1343
- *
1344
- * Use ReflectionOps to implement these methods.
1345
- *
1346
- * @generated from enum value: CODE_SIZE = 2;
1347
- */
1348
- FileOptions_OptimizeMode[(FileOptions_OptimizeMode["CODE_SIZE"] = 2)] =
1349
- "CODE_SIZE";
1350
- /**
1351
- * Generate code using MessageLite and the lite runtime.
1352
- *
1353
- * @generated from enum value: LITE_RUNTIME = 3;
1354
- */
1355
- FileOptions_OptimizeMode[(FileOptions_OptimizeMode["LITE_RUNTIME"] = 3)] =
1356
- "LITE_RUNTIME";
1357
- })(
1358
- (FileOptions_OptimizeMode =
1359
- exports.FileOptions_OptimizeMode || (exports.FileOptions_OptimizeMode = {}))
1360
- );
787
+ /**
788
+ * Generate complete code for parsing, serialization,
789
+ *
790
+ * @generated from enum value: SPEED = 1;
791
+ */
792
+ FileOptions_OptimizeMode[FileOptions_OptimizeMode["SPEED"] = 1] = "SPEED";
793
+ /**
794
+ * etc.
795
+ *
796
+ * Use ReflectionOps to implement these methods.
797
+ *
798
+ * @generated from enum value: CODE_SIZE = 2;
799
+ */
800
+ FileOptions_OptimizeMode[FileOptions_OptimizeMode["CODE_SIZE"] = 2] = "CODE_SIZE";
801
+ /**
802
+ * Generate code using MessageLite and the lite runtime.
803
+ *
804
+ * @generated from enum value: LITE_RUNTIME = 3;
805
+ */
806
+ FileOptions_OptimizeMode[FileOptions_OptimizeMode["LITE_RUNTIME"] = 3] = "LITE_RUNTIME";
807
+ })(FileOptions_OptimizeMode = exports.FileOptions_OptimizeMode || (exports.FileOptions_OptimizeMode = {}));
1361
808
  // Retrieve enum metadata with: proto2.getEnumType(FileOptions_OptimizeMode)
1362
- index_js_1.proto2.util.setEnumType(
1363
- FileOptions_OptimizeMode,
1364
- "google.protobuf.FileOptions.OptimizeMode",
1365
- [
809
+ index_js_1.proto2.util.setEnumType(FileOptions_OptimizeMode, "google.protobuf.FileOptions.OptimizeMode", [
1366
810
  { no: 1, name: "SPEED" },
1367
811
  { no: 2, name: "CODE_SIZE" },
1368
812
  { no: 3, name: "LITE_RUNTIME" },
1369
- ]
1370
- );
813
+ ]);
1371
814
  /**
1372
815
  * @generated from message google.protobuf.MessageOptions
1373
816
  */
1374
817
  class MessageOptions extends index_js_1.Message {
1375
- constructor(data) {
1376
- super();
1377
- /**
1378
- * The parser stores options it doesn't recognize here. See above.
1379
- *
1380
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1381
- */
1382
- this.uninterpretedOption = [];
1383
- index_js_1.proto2.util.initPartial(data, this);
1384
- }
1385
- static fromBinary(bytes, options) {
1386
- return new MessageOptions().fromBinary(bytes, options);
1387
- }
1388
- static fromJson(jsonValue, options) {
1389
- return new MessageOptions().fromJson(jsonValue, options);
1390
- }
1391
- static fromJsonString(jsonString, options) {
1392
- return new MessageOptions().fromJsonString(jsonString, options);
1393
- }
1394
- static equals(a, b) {
1395
- return index_js_1.proto2.util.equals(MessageOptions, a, b);
1396
- }
818
+ constructor(data) {
819
+ super();
820
+ /**
821
+ * The parser stores options it doesn't recognize here. See above.
822
+ *
823
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
824
+ */
825
+ this.uninterpretedOption = [];
826
+ index_js_1.proto2.util.initPartial(data, this);
827
+ }
828
+ static fromBinary(bytes, options) {
829
+ return new MessageOptions().fromBinary(bytes, options);
830
+ }
831
+ static fromJson(jsonValue, options) {
832
+ return new MessageOptions().fromJson(jsonValue, options);
833
+ }
834
+ static fromJsonString(jsonString, options) {
835
+ return new MessageOptions().fromJsonString(jsonString, options);
836
+ }
837
+ static equals(a, b) {
838
+ return index_js_1.proto2.util.equals(MessageOptions, a, b);
839
+ }
1397
840
  }
1398
841
  exports.MessageOptions = MessageOptions;
1399
842
  MessageOptions.runtime = index_js_1.proto2;
1400
843
  MessageOptions.typeName = "google.protobuf.MessageOptions";
1401
844
  MessageOptions.fields = index_js_1.proto2.util.newFieldList(() => [
1402
- {
1403
- no: 1,
1404
- name: "message_set_wire_format",
1405
- kind: "scalar",
1406
- T: 8 /* ScalarType.BOOL */,
1407
- opt: true,
1408
- default: false,
1409
- },
1410
- {
1411
- no: 2,
1412
- name: "no_standard_descriptor_accessor",
1413
- kind: "scalar",
1414
- T: 8 /* ScalarType.BOOL */,
1415
- opt: true,
1416
- default: false,
1417
- },
1418
- {
1419
- no: 3,
1420
- name: "deprecated",
1421
- kind: "scalar",
1422
- T: 8 /* ScalarType.BOOL */,
1423
- opt: true,
1424
- default: false,
1425
- },
1426
- {
1427
- no: 7,
1428
- name: "map_entry",
1429
- kind: "scalar",
1430
- T: 8 /* ScalarType.BOOL */,
1431
- opt: true,
1432
- },
1433
- {
1434
- no: 999,
1435
- name: "uninterpreted_option",
1436
- kind: "message",
1437
- T: UninterpretedOption,
1438
- repeated: true,
1439
- },
845
+ { no: 1, name: "message_set_wire_format", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
846
+ { no: 2, name: "no_standard_descriptor_accessor", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
847
+ { no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
848
+ { no: 7, name: "map_entry", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
849
+ { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
1440
850
  ]);
1441
851
  /**
1442
852
  * @generated from message google.protobuf.FieldOptions
1443
853
  */
1444
854
  class FieldOptions extends index_js_1.Message {
1445
- constructor(data) {
1446
- super();
1447
- /**
1448
- * The parser stores options it doesn't recognize here. See above.
1449
- *
1450
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1451
- */
1452
- this.uninterpretedOption = [];
1453
- index_js_1.proto2.util.initPartial(data, this);
1454
- }
1455
- static fromBinary(bytes, options) {
1456
- return new FieldOptions().fromBinary(bytes, options);
1457
- }
1458
- static fromJson(jsonValue, options) {
1459
- return new FieldOptions().fromJson(jsonValue, options);
1460
- }
1461
- static fromJsonString(jsonString, options) {
1462
- return new FieldOptions().fromJsonString(jsonString, options);
1463
- }
1464
- static equals(a, b) {
1465
- return index_js_1.proto2.util.equals(FieldOptions, a, b);
1466
- }
855
+ constructor(data) {
856
+ super();
857
+ /**
858
+ * The parser stores options it doesn't recognize here. See above.
859
+ *
860
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
861
+ */
862
+ this.uninterpretedOption = [];
863
+ index_js_1.proto2.util.initPartial(data, this);
864
+ }
865
+ static fromBinary(bytes, options) {
866
+ return new FieldOptions().fromBinary(bytes, options);
867
+ }
868
+ static fromJson(jsonValue, options) {
869
+ return new FieldOptions().fromJson(jsonValue, options);
870
+ }
871
+ static fromJsonString(jsonString, options) {
872
+ return new FieldOptions().fromJsonString(jsonString, options);
873
+ }
874
+ static equals(a, b) {
875
+ return index_js_1.proto2.util.equals(FieldOptions, a, b);
876
+ }
1467
877
  }
1468
878
  exports.FieldOptions = FieldOptions;
1469
879
  FieldOptions.runtime = index_js_1.proto2;
1470
880
  FieldOptions.typeName = "google.protobuf.FieldOptions";
1471
881
  FieldOptions.fields = index_js_1.proto2.util.newFieldList(() => [
1472
- {
1473
- no: 1,
1474
- name: "ctype",
1475
- kind: "enum",
1476
- T: index_js_1.proto2.getEnumType(FieldOptions_CType),
1477
- opt: true,
1478
- default: FieldOptions_CType.STRING,
1479
- },
1480
- {
1481
- no: 2,
1482
- name: "packed",
1483
- kind: "scalar",
1484
- T: 8 /* ScalarType.BOOL */,
1485
- opt: true,
1486
- },
1487
- {
1488
- no: 6,
1489
- name: "jstype",
1490
- kind: "enum",
1491
- T: index_js_1.proto2.getEnumType(FieldOptions_JSType),
1492
- opt: true,
1493
- default: FieldOptions_JSType.JS_NORMAL,
1494
- },
1495
- {
1496
- no: 5,
1497
- name: "lazy",
1498
- kind: "scalar",
1499
- T: 8 /* ScalarType.BOOL */,
1500
- opt: true,
1501
- default: false,
1502
- },
1503
- {
1504
- no: 3,
1505
- name: "deprecated",
1506
- kind: "scalar",
1507
- T: 8 /* ScalarType.BOOL */,
1508
- opt: true,
1509
- default: false,
1510
- },
1511
- {
1512
- no: 10,
1513
- name: "weak",
1514
- kind: "scalar",
1515
- T: 8 /* ScalarType.BOOL */,
1516
- opt: true,
1517
- default: false,
1518
- },
1519
- {
1520
- no: 999,
1521
- name: "uninterpreted_option",
1522
- kind: "message",
1523
- T: UninterpretedOption,
1524
- repeated: true,
1525
- },
882
+ { no: 1, name: "ctype", kind: "enum", T: index_js_1.proto2.getEnumType(FieldOptions_CType), opt: true, default: FieldOptions_CType.STRING },
883
+ { no: 2, name: "packed", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
884
+ { no: 6, name: "jstype", kind: "enum", T: index_js_1.proto2.getEnumType(FieldOptions_JSType), opt: true, default: FieldOptions_JSType.JS_NORMAL },
885
+ { no: 5, name: "lazy", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
886
+ { no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
887
+ { no: 10, name: "weak", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
888
+ { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
1526
889
  ]);
1527
890
  /**
1528
891
  * @generated from enum google.protobuf.FieldOptions.CType
1529
892
  */
1530
893
  var FieldOptions_CType;
1531
894
  (function (FieldOptions_CType) {
1532
- /**
1533
- * Default mode.
1534
- *
1535
- * @generated from enum value: STRING = 0;
1536
- */
1537
- FieldOptions_CType[(FieldOptions_CType["STRING"] = 0)] = "STRING";
1538
- /**
1539
- * @generated from enum value: CORD = 1;
1540
- */
1541
- FieldOptions_CType[(FieldOptions_CType["CORD"] = 1)] = "CORD";
1542
- /**
1543
- * @generated from enum value: STRING_PIECE = 2;
1544
- */
1545
- FieldOptions_CType[(FieldOptions_CType["STRING_PIECE"] = 2)] = "STRING_PIECE";
1546
- })(
1547
- (FieldOptions_CType =
1548
- exports.FieldOptions_CType || (exports.FieldOptions_CType = {}))
1549
- );
895
+ /**
896
+ * Default mode.
897
+ *
898
+ * @generated from enum value: STRING = 0;
899
+ */
900
+ FieldOptions_CType[FieldOptions_CType["STRING"] = 0] = "STRING";
901
+ /**
902
+ * @generated from enum value: CORD = 1;
903
+ */
904
+ FieldOptions_CType[FieldOptions_CType["CORD"] = 1] = "CORD";
905
+ /**
906
+ * @generated from enum value: STRING_PIECE = 2;
907
+ */
908
+ FieldOptions_CType[FieldOptions_CType["STRING_PIECE"] = 2] = "STRING_PIECE";
909
+ })(FieldOptions_CType = exports.FieldOptions_CType || (exports.FieldOptions_CType = {}));
1550
910
  // Retrieve enum metadata with: proto2.getEnumType(FieldOptions_CType)
1551
- index_js_1.proto2.util.setEnumType(
1552
- FieldOptions_CType,
1553
- "google.protobuf.FieldOptions.CType",
1554
- [
911
+ index_js_1.proto2.util.setEnumType(FieldOptions_CType, "google.protobuf.FieldOptions.CType", [
1555
912
  { no: 0, name: "STRING" },
1556
913
  { no: 1, name: "CORD" },
1557
914
  { no: 2, name: "STRING_PIECE" },
1558
- ]
1559
- );
915
+ ]);
1560
916
  /**
1561
917
  * @generated from enum google.protobuf.FieldOptions.JSType
1562
918
  */
1563
919
  var FieldOptions_JSType;
1564
920
  (function (FieldOptions_JSType) {
1565
- /**
1566
- * Use the default type.
1567
- *
1568
- * @generated from enum value: JS_NORMAL = 0;
1569
- */
1570
- FieldOptions_JSType[(FieldOptions_JSType["JS_NORMAL"] = 0)] = "JS_NORMAL";
1571
- /**
1572
- * Use JavaScript strings.
1573
- *
1574
- * @generated from enum value: JS_STRING = 1;
1575
- */
1576
- FieldOptions_JSType[(FieldOptions_JSType["JS_STRING"] = 1)] = "JS_STRING";
1577
- /**
1578
- * Use JavaScript numbers.
1579
- *
1580
- * @generated from enum value: JS_NUMBER = 2;
1581
- */
1582
- FieldOptions_JSType[(FieldOptions_JSType["JS_NUMBER"] = 2)] = "JS_NUMBER";
1583
- })(
1584
- (FieldOptions_JSType =
1585
- exports.FieldOptions_JSType || (exports.FieldOptions_JSType = {}))
1586
- );
921
+ /**
922
+ * Use the default type.
923
+ *
924
+ * @generated from enum value: JS_NORMAL = 0;
925
+ */
926
+ FieldOptions_JSType[FieldOptions_JSType["JS_NORMAL"] = 0] = "JS_NORMAL";
927
+ /**
928
+ * Use JavaScript strings.
929
+ *
930
+ * @generated from enum value: JS_STRING = 1;
931
+ */
932
+ FieldOptions_JSType[FieldOptions_JSType["JS_STRING"] = 1] = "JS_STRING";
933
+ /**
934
+ * Use JavaScript numbers.
935
+ *
936
+ * @generated from enum value: JS_NUMBER = 2;
937
+ */
938
+ FieldOptions_JSType[FieldOptions_JSType["JS_NUMBER"] = 2] = "JS_NUMBER";
939
+ })(FieldOptions_JSType = exports.FieldOptions_JSType || (exports.FieldOptions_JSType = {}));
1587
940
  // Retrieve enum metadata with: proto2.getEnumType(FieldOptions_JSType)
1588
- index_js_1.proto2.util.setEnumType(
1589
- FieldOptions_JSType,
1590
- "google.protobuf.FieldOptions.JSType",
1591
- [
941
+ index_js_1.proto2.util.setEnumType(FieldOptions_JSType, "google.protobuf.FieldOptions.JSType", [
1592
942
  { no: 0, name: "JS_NORMAL" },
1593
943
  { no: 1, name: "JS_STRING" },
1594
944
  { no: 2, name: "JS_NUMBER" },
1595
- ]
1596
- );
945
+ ]);
1597
946
  /**
1598
947
  * @generated from message google.protobuf.OneofOptions
1599
948
  */
1600
949
  class OneofOptions extends index_js_1.Message {
1601
- constructor(data) {
1602
- super();
1603
- /**
1604
- * The parser stores options it doesn't recognize here. See above.
1605
- *
1606
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1607
- */
1608
- this.uninterpretedOption = [];
1609
- index_js_1.proto2.util.initPartial(data, this);
1610
- }
1611
- static fromBinary(bytes, options) {
1612
- return new OneofOptions().fromBinary(bytes, options);
1613
- }
1614
- static fromJson(jsonValue, options) {
1615
- return new OneofOptions().fromJson(jsonValue, options);
1616
- }
1617
- static fromJsonString(jsonString, options) {
1618
- return new OneofOptions().fromJsonString(jsonString, options);
1619
- }
1620
- static equals(a, b) {
1621
- return index_js_1.proto2.util.equals(OneofOptions, a, b);
1622
- }
950
+ constructor(data) {
951
+ super();
952
+ /**
953
+ * The parser stores options it doesn't recognize here. See above.
954
+ *
955
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
956
+ */
957
+ this.uninterpretedOption = [];
958
+ index_js_1.proto2.util.initPartial(data, this);
959
+ }
960
+ static fromBinary(bytes, options) {
961
+ return new OneofOptions().fromBinary(bytes, options);
962
+ }
963
+ static fromJson(jsonValue, options) {
964
+ return new OneofOptions().fromJson(jsonValue, options);
965
+ }
966
+ static fromJsonString(jsonString, options) {
967
+ return new OneofOptions().fromJsonString(jsonString, options);
968
+ }
969
+ static equals(a, b) {
970
+ return index_js_1.proto2.util.equals(OneofOptions, a, b);
971
+ }
1623
972
  }
1624
973
  exports.OneofOptions = OneofOptions;
1625
974
  OneofOptions.runtime = index_js_1.proto2;
1626
975
  OneofOptions.typeName = "google.protobuf.OneofOptions";
1627
976
  OneofOptions.fields = index_js_1.proto2.util.newFieldList(() => [
1628
- {
1629
- no: 999,
1630
- name: "uninterpreted_option",
1631
- kind: "message",
1632
- T: UninterpretedOption,
1633
- repeated: true,
1634
- },
977
+ { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
1635
978
  ]);
1636
979
  /**
1637
980
  * @generated from message google.protobuf.EnumOptions
1638
981
  */
1639
982
  class EnumOptions extends index_js_1.Message {
1640
- constructor(data) {
1641
- super();
1642
- /**
1643
- * The parser stores options it doesn't recognize here. See above.
1644
- *
1645
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1646
- */
1647
- this.uninterpretedOption = [];
1648
- index_js_1.proto2.util.initPartial(data, this);
1649
- }
1650
- static fromBinary(bytes, options) {
1651
- return new EnumOptions().fromBinary(bytes, options);
1652
- }
1653
- static fromJson(jsonValue, options) {
1654
- return new EnumOptions().fromJson(jsonValue, options);
1655
- }
1656
- static fromJsonString(jsonString, options) {
1657
- return new EnumOptions().fromJsonString(jsonString, options);
1658
- }
1659
- static equals(a, b) {
1660
- return index_js_1.proto2.util.equals(EnumOptions, a, b);
1661
- }
983
+ constructor(data) {
984
+ super();
985
+ /**
986
+ * The parser stores options it doesn't recognize here. See above.
987
+ *
988
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
989
+ */
990
+ this.uninterpretedOption = [];
991
+ index_js_1.proto2.util.initPartial(data, this);
992
+ }
993
+ static fromBinary(bytes, options) {
994
+ return new EnumOptions().fromBinary(bytes, options);
995
+ }
996
+ static fromJson(jsonValue, options) {
997
+ return new EnumOptions().fromJson(jsonValue, options);
998
+ }
999
+ static fromJsonString(jsonString, options) {
1000
+ return new EnumOptions().fromJsonString(jsonString, options);
1001
+ }
1002
+ static equals(a, b) {
1003
+ return index_js_1.proto2.util.equals(EnumOptions, a, b);
1004
+ }
1662
1005
  }
1663
1006
  exports.EnumOptions = EnumOptions;
1664
1007
  EnumOptions.runtime = index_js_1.proto2;
1665
1008
  EnumOptions.typeName = "google.protobuf.EnumOptions";
1666
1009
  EnumOptions.fields = index_js_1.proto2.util.newFieldList(() => [
1667
- {
1668
- no: 2,
1669
- name: "allow_alias",
1670
- kind: "scalar",
1671
- T: 8 /* ScalarType.BOOL */,
1672
- opt: true,
1673
- },
1674
- {
1675
- no: 3,
1676
- name: "deprecated",
1677
- kind: "scalar",
1678
- T: 8 /* ScalarType.BOOL */,
1679
- opt: true,
1680
- default: false,
1681
- },
1682
- {
1683
- no: 999,
1684
- name: "uninterpreted_option",
1685
- kind: "message",
1686
- T: UninterpretedOption,
1687
- repeated: true,
1688
- },
1010
+ { no: 2, name: "allow_alias", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1011
+ { no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
1012
+ { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
1689
1013
  ]);
1690
1014
  /**
1691
1015
  * @generated from message google.protobuf.EnumValueOptions
1692
1016
  */
1693
1017
  class EnumValueOptions extends index_js_1.Message {
1694
- constructor(data) {
1695
- super();
1696
- /**
1697
- * The parser stores options it doesn't recognize here. See above.
1698
- *
1699
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1700
- */
1701
- this.uninterpretedOption = [];
1702
- index_js_1.proto2.util.initPartial(data, this);
1703
- }
1704
- static fromBinary(bytes, options) {
1705
- return new EnumValueOptions().fromBinary(bytes, options);
1706
- }
1707
- static fromJson(jsonValue, options) {
1708
- return new EnumValueOptions().fromJson(jsonValue, options);
1709
- }
1710
- static fromJsonString(jsonString, options) {
1711
- return new EnumValueOptions().fromJsonString(jsonString, options);
1712
- }
1713
- static equals(a, b) {
1714
- return index_js_1.proto2.util.equals(EnumValueOptions, a, b);
1715
- }
1018
+ constructor(data) {
1019
+ super();
1020
+ /**
1021
+ * The parser stores options it doesn't recognize here. See above.
1022
+ *
1023
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1024
+ */
1025
+ this.uninterpretedOption = [];
1026
+ index_js_1.proto2.util.initPartial(data, this);
1027
+ }
1028
+ static fromBinary(bytes, options) {
1029
+ return new EnumValueOptions().fromBinary(bytes, options);
1030
+ }
1031
+ static fromJson(jsonValue, options) {
1032
+ return new EnumValueOptions().fromJson(jsonValue, options);
1033
+ }
1034
+ static fromJsonString(jsonString, options) {
1035
+ return new EnumValueOptions().fromJsonString(jsonString, options);
1036
+ }
1037
+ static equals(a, b) {
1038
+ return index_js_1.proto2.util.equals(EnumValueOptions, a, b);
1039
+ }
1716
1040
  }
1717
1041
  exports.EnumValueOptions = EnumValueOptions;
1718
1042
  EnumValueOptions.runtime = index_js_1.proto2;
1719
1043
  EnumValueOptions.typeName = "google.protobuf.EnumValueOptions";
1720
1044
  EnumValueOptions.fields = index_js_1.proto2.util.newFieldList(() => [
1721
- {
1722
- no: 1,
1723
- name: "deprecated",
1724
- kind: "scalar",
1725
- T: 8 /* ScalarType.BOOL */,
1726
- opt: true,
1727
- default: false,
1728
- },
1729
- {
1730
- no: 999,
1731
- name: "uninterpreted_option",
1732
- kind: "message",
1733
- T: UninterpretedOption,
1734
- repeated: true,
1735
- },
1045
+ { no: 1, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
1046
+ { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
1736
1047
  ]);
1737
1048
  /**
1738
1049
  * @generated from message google.protobuf.ServiceOptions
1739
1050
  */
1740
1051
  class ServiceOptions extends index_js_1.Message {
1741
- constructor(data) {
1742
- super();
1743
- /**
1744
- * The parser stores options it doesn't recognize here. See above.
1745
- *
1746
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1747
- */
1748
- this.uninterpretedOption = [];
1749
- index_js_1.proto2.util.initPartial(data, this);
1750
- }
1751
- static fromBinary(bytes, options) {
1752
- return new ServiceOptions().fromBinary(bytes, options);
1753
- }
1754
- static fromJson(jsonValue, options) {
1755
- return new ServiceOptions().fromJson(jsonValue, options);
1756
- }
1757
- static fromJsonString(jsonString, options) {
1758
- return new ServiceOptions().fromJsonString(jsonString, options);
1759
- }
1760
- static equals(a, b) {
1761
- return index_js_1.proto2.util.equals(ServiceOptions, a, b);
1762
- }
1052
+ constructor(data) {
1053
+ super();
1054
+ /**
1055
+ * The parser stores options it doesn't recognize here. See above.
1056
+ *
1057
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1058
+ */
1059
+ this.uninterpretedOption = [];
1060
+ index_js_1.proto2.util.initPartial(data, this);
1061
+ }
1062
+ static fromBinary(bytes, options) {
1063
+ return new ServiceOptions().fromBinary(bytes, options);
1064
+ }
1065
+ static fromJson(jsonValue, options) {
1066
+ return new ServiceOptions().fromJson(jsonValue, options);
1067
+ }
1068
+ static fromJsonString(jsonString, options) {
1069
+ return new ServiceOptions().fromJsonString(jsonString, options);
1070
+ }
1071
+ static equals(a, b) {
1072
+ return index_js_1.proto2.util.equals(ServiceOptions, a, b);
1073
+ }
1763
1074
  }
1764
1075
  exports.ServiceOptions = ServiceOptions;
1765
1076
  ServiceOptions.runtime = index_js_1.proto2;
1766
1077
  ServiceOptions.typeName = "google.protobuf.ServiceOptions";
1767
1078
  ServiceOptions.fields = index_js_1.proto2.util.newFieldList(() => [
1768
- {
1769
- no: 33,
1770
- name: "deprecated",
1771
- kind: "scalar",
1772
- T: 8 /* ScalarType.BOOL */,
1773
- opt: true,
1774
- default: false,
1775
- },
1776
- {
1777
- no: 999,
1778
- name: "uninterpreted_option",
1779
- kind: "message",
1780
- T: UninterpretedOption,
1781
- repeated: true,
1782
- },
1079
+ { no: 33, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
1080
+ { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
1783
1081
  ]);
1784
1082
  /**
1785
1083
  * @generated from message google.protobuf.MethodOptions
1786
1084
  */
1787
1085
  class MethodOptions extends index_js_1.Message {
1788
- constructor(data) {
1789
- super();
1790
- /**
1791
- * The parser stores options it doesn't recognize here. See above.
1792
- *
1793
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1794
- */
1795
- this.uninterpretedOption = [];
1796
- index_js_1.proto2.util.initPartial(data, this);
1797
- }
1798
- static fromBinary(bytes, options) {
1799
- return new MethodOptions().fromBinary(bytes, options);
1800
- }
1801
- static fromJson(jsonValue, options) {
1802
- return new MethodOptions().fromJson(jsonValue, options);
1803
- }
1804
- static fromJsonString(jsonString, options) {
1805
- return new MethodOptions().fromJsonString(jsonString, options);
1806
- }
1807
- static equals(a, b) {
1808
- return index_js_1.proto2.util.equals(MethodOptions, a, b);
1809
- }
1086
+ constructor(data) {
1087
+ super();
1088
+ /**
1089
+ * The parser stores options it doesn't recognize here. See above.
1090
+ *
1091
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1092
+ */
1093
+ this.uninterpretedOption = [];
1094
+ index_js_1.proto2.util.initPartial(data, this);
1095
+ }
1096
+ static fromBinary(bytes, options) {
1097
+ return new MethodOptions().fromBinary(bytes, options);
1098
+ }
1099
+ static fromJson(jsonValue, options) {
1100
+ return new MethodOptions().fromJson(jsonValue, options);
1101
+ }
1102
+ static fromJsonString(jsonString, options) {
1103
+ return new MethodOptions().fromJsonString(jsonString, options);
1104
+ }
1105
+ static equals(a, b) {
1106
+ return index_js_1.proto2.util.equals(MethodOptions, a, b);
1107
+ }
1810
1108
  }
1811
1109
  exports.MethodOptions = MethodOptions;
1812
1110
  MethodOptions.runtime = index_js_1.proto2;
1813
1111
  MethodOptions.typeName = "google.protobuf.MethodOptions";
1814
1112
  MethodOptions.fields = index_js_1.proto2.util.newFieldList(() => [
1815
- {
1816
- no: 33,
1817
- name: "deprecated",
1818
- kind: "scalar",
1819
- T: 8 /* ScalarType.BOOL */,
1820
- opt: true,
1821
- default: false,
1822
- },
1823
- {
1824
- no: 34,
1825
- name: "idempotency_level",
1826
- kind: "enum",
1827
- T: index_js_1.proto2.getEnumType(MethodOptions_IdempotencyLevel),
1828
- opt: true,
1829
- default: MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN,
1830
- },
1831
- {
1832
- no: 999,
1833
- name: "uninterpreted_option",
1834
- kind: "message",
1835
- T: UninterpretedOption,
1836
- repeated: true,
1837
- },
1113
+ { no: 33, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
1114
+ { no: 34, name: "idempotency_level", kind: "enum", T: index_js_1.proto2.getEnumType(MethodOptions_IdempotencyLevel), opt: true, default: MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN },
1115
+ { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
1838
1116
  ]);
1839
1117
  /**
1840
1118
  * Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
@@ -1845,43 +1123,29 @@ MethodOptions.fields = index_js_1.proto2.util.newFieldList(() => [
1845
1123
  */
1846
1124
  var MethodOptions_IdempotencyLevel;
1847
1125
  (function (MethodOptions_IdempotencyLevel) {
1848
- /**
1849
- * @generated from enum value: IDEMPOTENCY_UNKNOWN = 0;
1850
- */
1851
- MethodOptions_IdempotencyLevel[
1852
- (MethodOptions_IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = 0)
1853
- ] = "IDEMPOTENCY_UNKNOWN";
1854
- /**
1855
- * implies idempotent
1856
- *
1857
- * @generated from enum value: NO_SIDE_EFFECTS = 1;
1858
- */
1859
- MethodOptions_IdempotencyLevel[
1860
- (MethodOptions_IdempotencyLevel["NO_SIDE_EFFECTS"] = 1)
1861
- ] = "NO_SIDE_EFFECTS";
1862
- /**
1863
- * idempotent, but may have side effects
1864
- *
1865
- * @generated from enum value: IDEMPOTENT = 2;
1866
- */
1867
- MethodOptions_IdempotencyLevel[
1868
- (MethodOptions_IdempotencyLevel["IDEMPOTENT"] = 2)
1869
- ] = "IDEMPOTENT";
1870
- })(
1871
- (MethodOptions_IdempotencyLevel =
1872
- exports.MethodOptions_IdempotencyLevel ||
1873
- (exports.MethodOptions_IdempotencyLevel = {}))
1874
- );
1126
+ /**
1127
+ * @generated from enum value: IDEMPOTENCY_UNKNOWN = 0;
1128
+ */
1129
+ MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = 0] = "IDEMPOTENCY_UNKNOWN";
1130
+ /**
1131
+ * implies idempotent
1132
+ *
1133
+ * @generated from enum value: NO_SIDE_EFFECTS = 1;
1134
+ */
1135
+ MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["NO_SIDE_EFFECTS"] = 1] = "NO_SIDE_EFFECTS";
1136
+ /**
1137
+ * idempotent, but may have side effects
1138
+ *
1139
+ * @generated from enum value: IDEMPOTENT = 2;
1140
+ */
1141
+ MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENT"] = 2] = "IDEMPOTENT";
1142
+ })(MethodOptions_IdempotencyLevel = exports.MethodOptions_IdempotencyLevel || (exports.MethodOptions_IdempotencyLevel = {}));
1875
1143
  // Retrieve enum metadata with: proto2.getEnumType(MethodOptions_IdempotencyLevel)
1876
- index_js_1.proto2.util.setEnumType(
1877
- MethodOptions_IdempotencyLevel,
1878
- "google.protobuf.MethodOptions.IdempotencyLevel",
1879
- [
1144
+ index_js_1.proto2.util.setEnumType(MethodOptions_IdempotencyLevel, "google.protobuf.MethodOptions.IdempotencyLevel", [
1880
1145
  { no: 0, name: "IDEMPOTENCY_UNKNOWN" },
1881
1146
  { no: 1, name: "NO_SIDE_EFFECTS" },
1882
1147
  { no: 2, name: "IDEMPOTENT" },
1883
- ]
1884
- );
1148
+ ]);
1885
1149
  /**
1886
1150
  * A message representing a option the parser does not recognize. This only
1887
1151
  * appears in options protos created by the compiler::Parser class.
@@ -1893,80 +1157,38 @@ index_js_1.proto2.util.setEnumType(
1893
1157
  * @generated from message google.protobuf.UninterpretedOption
1894
1158
  */
1895
1159
  class UninterpretedOption extends index_js_1.Message {
1896
- constructor(data) {
1897
- super();
1898
- /**
1899
- * @generated from field: repeated google.protobuf.UninterpretedOption.NamePart name = 2;
1900
- */
1901
- this.name = [];
1902
- index_js_1.proto2.util.initPartial(data, this);
1903
- }
1904
- static fromBinary(bytes, options) {
1905
- return new UninterpretedOption().fromBinary(bytes, options);
1906
- }
1907
- static fromJson(jsonValue, options) {
1908
- return new UninterpretedOption().fromJson(jsonValue, options);
1909
- }
1910
- static fromJsonString(jsonString, options) {
1911
- return new UninterpretedOption().fromJsonString(jsonString, options);
1912
- }
1913
- static equals(a, b) {
1914
- return index_js_1.proto2.util.equals(UninterpretedOption, a, b);
1915
- }
1160
+ constructor(data) {
1161
+ super();
1162
+ /**
1163
+ * @generated from field: repeated google.protobuf.UninterpretedOption.NamePart name = 2;
1164
+ */
1165
+ this.name = [];
1166
+ index_js_1.proto2.util.initPartial(data, this);
1167
+ }
1168
+ static fromBinary(bytes, options) {
1169
+ return new UninterpretedOption().fromBinary(bytes, options);
1170
+ }
1171
+ static fromJson(jsonValue, options) {
1172
+ return new UninterpretedOption().fromJson(jsonValue, options);
1173
+ }
1174
+ static fromJsonString(jsonString, options) {
1175
+ return new UninterpretedOption().fromJsonString(jsonString, options);
1176
+ }
1177
+ static equals(a, b) {
1178
+ return index_js_1.proto2.util.equals(UninterpretedOption, a, b);
1179
+ }
1916
1180
  }
1917
1181
  exports.UninterpretedOption = UninterpretedOption;
1918
1182
  UninterpretedOption.runtime = index_js_1.proto2;
1919
1183
  UninterpretedOption.typeName = "google.protobuf.UninterpretedOption";
1920
1184
  UninterpretedOption.fields = index_js_1.proto2.util.newFieldList(() => [
1921
- {
1922
- no: 2,
1923
- name: "name",
1924
- kind: "message",
1925
- T: UninterpretedOption_NamePart,
1926
- repeated: true,
1927
- },
1928
- {
1929
- no: 3,
1930
- name: "identifier_value",
1931
- kind: "scalar",
1932
- T: 9 /* ScalarType.STRING */,
1933
- opt: true,
1934
- },
1935
- {
1936
- no: 4,
1937
- name: "positive_int_value",
1938
- kind: "scalar",
1939
- T: 4 /* ScalarType.UINT64 */,
1940
- opt: true,
1941
- },
1942
- {
1943
- no: 5,
1944
- name: "negative_int_value",
1945
- kind: "scalar",
1946
- T: 3 /* ScalarType.INT64 */,
1947
- opt: true,
1948
- },
1949
- {
1950
- no: 6,
1951
- name: "double_value",
1952
- kind: "scalar",
1953
- T: 1 /* ScalarType.DOUBLE */,
1954
- opt: true,
1955
- },
1956
- {
1957
- no: 7,
1958
- name: "string_value",
1959
- kind: "scalar",
1960
- T: 12 /* ScalarType.BYTES */,
1961
- opt: true,
1962
- },
1963
- {
1964
- no: 8,
1965
- name: "aggregate_value",
1966
- kind: "scalar",
1967
- T: 9 /* ScalarType.STRING */,
1968
- opt: true,
1969
- },
1185
+ { no: 2, name: "name", kind: "message", T: UninterpretedOption_NamePart, repeated: true },
1186
+ { no: 3, name: "identifier_value", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1187
+ { no: 4, name: "positive_int_value", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
1188
+ { no: 5, name: "negative_int_value", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
1189
+ { no: 6, name: "double_value", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1190
+ { no: 7, name: "string_value", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
1191
+ { no: 8, name: "aggregate_value", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1970
1192
  ]);
1971
1193
  /**
1972
1194
  * The name of the uninterpreted option. Each string represents a segment in
@@ -1978,36 +1200,30 @@ UninterpretedOption.fields = index_js_1.proto2.util.newFieldList(() => [
1978
1200
  * @generated from message google.protobuf.UninterpretedOption.NamePart
1979
1201
  */
1980
1202
  class UninterpretedOption_NamePart extends index_js_1.Message {
1981
- constructor(data) {
1982
- super();
1983
- index_js_1.proto2.util.initPartial(data, this);
1984
- }
1985
- static fromBinary(bytes, options) {
1986
- return new UninterpretedOption_NamePart().fromBinary(bytes, options);
1987
- }
1988
- static fromJson(jsonValue, options) {
1989
- return new UninterpretedOption_NamePart().fromJson(jsonValue, options);
1990
- }
1991
- static fromJsonString(jsonString, options) {
1992
- return new UninterpretedOption_NamePart().fromJsonString(
1993
- jsonString,
1994
- options
1995
- );
1996
- }
1997
- static equals(a, b) {
1998
- return index_js_1.proto2.util.equals(UninterpretedOption_NamePart, a, b);
1999
- }
1203
+ constructor(data) {
1204
+ super();
1205
+ index_js_1.proto2.util.initPartial(data, this);
1206
+ }
1207
+ static fromBinary(bytes, options) {
1208
+ return new UninterpretedOption_NamePart().fromBinary(bytes, options);
1209
+ }
1210
+ static fromJson(jsonValue, options) {
1211
+ return new UninterpretedOption_NamePart().fromJson(jsonValue, options);
1212
+ }
1213
+ static fromJsonString(jsonString, options) {
1214
+ return new UninterpretedOption_NamePart().fromJsonString(jsonString, options);
1215
+ }
1216
+ static equals(a, b) {
1217
+ return index_js_1.proto2.util.equals(UninterpretedOption_NamePart, a, b);
1218
+ }
2000
1219
  }
2001
1220
  exports.UninterpretedOption_NamePart = UninterpretedOption_NamePart;
2002
1221
  UninterpretedOption_NamePart.runtime = index_js_1.proto2;
2003
- UninterpretedOption_NamePart.typeName =
2004
- "google.protobuf.UninterpretedOption.NamePart";
2005
- UninterpretedOption_NamePart.fields = index_js_1.proto2.util.newFieldList(
2006
- () => [
1222
+ UninterpretedOption_NamePart.typeName = "google.protobuf.UninterpretedOption.NamePart";
1223
+ UninterpretedOption_NamePart.fields = index_js_1.proto2.util.newFieldList(() => [
2007
1224
  { no: 1, name: "name_part", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2008
1225
  { no: 2, name: "is_extension", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2009
- ]
2010
- );
1226
+ ]);
2011
1227
  /**
2012
1228
  * Encapsulates information about the original source file from which a
2013
1229
  * FileDescriptorProto was generated.
@@ -2015,187 +1231,149 @@ UninterpretedOption_NamePart.fields = index_js_1.proto2.util.newFieldList(
2015
1231
  * @generated from message google.protobuf.SourceCodeInfo
2016
1232
  */
2017
1233
  class SourceCodeInfo extends index_js_1.Message {
2018
- constructor(data) {
2019
- super();
2020
- /**
2021
- * A Location identifies a piece of source code in a .proto file which
2022
- * corresponds to a particular definition. This information is intended
2023
- * to be useful to IDEs, code indexers, documentation generators, and similar
2024
- * tools.
2025
- *
2026
- * For example, say we have a file like:
2027
- * message Foo {
2028
- * optional string foo = 1;
2029
- * }
2030
- * Let's look at just the field definition:
2031
- * optional string foo = 1;
2032
- * ^ ^^ ^^ ^ ^^^
2033
- * a bc de f ghi
2034
- * We have the following locations:
2035
- * span path represents
2036
- * [a,i) [ 4, 0, 2, 0 ] The whole field definition.
2037
- * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
2038
- * [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
2039
- * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
2040
- * [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
2041
- *
2042
- * Notes:
2043
- * - A location may refer to a repeated field itself (i.e. not to any
2044
- * particular index within it). This is used whenever a set of elements are
2045
- * logically enclosed in a single code segment. For example, an entire
2046
- * extend block (possibly containing multiple extension definitions) will
2047
- * have an outer location whose path refers to the "extensions" repeated
2048
- * field without an index.
2049
- * - Multiple locations may have the same path. This happens when a single
2050
- * logical declaration is spread out across multiple places. The most
2051
- * obvious example is the "extend" block again -- there may be multiple
2052
- * extend blocks in the same scope, each of which will have the same path.
2053
- * - A location's span is not always a subset of its parent's span. For
2054
- * example, the "extendee" of an extension declaration appears at the
2055
- * beginning of the "extend" block and is shared by all extensions within
2056
- * the block.
2057
- * - Just because a location's span is a subset of some other location's span
2058
- * does not mean that it is a descendant. For example, a "group" defines
2059
- * both a type and a field in a single declaration. Thus, the locations
2060
- * corresponding to the type and field and their components will overlap.
2061
- * - Code which tries to interpret locations should probably be designed to
2062
- * ignore those that it doesn't understand, as more types of locations could
2063
- * be recorded in the future.
2064
- *
2065
- * @generated from field: repeated google.protobuf.SourceCodeInfo.Location location = 1;
2066
- */
2067
- this.location = [];
2068
- index_js_1.proto2.util.initPartial(data, this);
2069
- }
2070
- static fromBinary(bytes, options) {
2071
- return new SourceCodeInfo().fromBinary(bytes, options);
2072
- }
2073
- static fromJson(jsonValue, options) {
2074
- return new SourceCodeInfo().fromJson(jsonValue, options);
2075
- }
2076
- static fromJsonString(jsonString, options) {
2077
- return new SourceCodeInfo().fromJsonString(jsonString, options);
2078
- }
2079
- static equals(a, b) {
2080
- return index_js_1.proto2.util.equals(SourceCodeInfo, a, b);
2081
- }
1234
+ constructor(data) {
1235
+ super();
1236
+ /**
1237
+ * A Location identifies a piece of source code in a .proto file which
1238
+ * corresponds to a particular definition. This information is intended
1239
+ * to be useful to IDEs, code indexers, documentation generators, and similar
1240
+ * tools.
1241
+ *
1242
+ * For example, say we have a file like:
1243
+ * message Foo {
1244
+ * optional string foo = 1;
1245
+ * }
1246
+ * Let's look at just the field definition:
1247
+ * optional string foo = 1;
1248
+ * ^ ^^ ^^ ^ ^^^
1249
+ * a bc de f ghi
1250
+ * We have the following locations:
1251
+ * span path represents
1252
+ * [a,i) [ 4, 0, 2, 0 ] The whole field definition.
1253
+ * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
1254
+ * [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
1255
+ * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
1256
+ * [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
1257
+ *
1258
+ * Notes:
1259
+ * - A location may refer to a repeated field itself (i.e. not to any
1260
+ * particular index within it). This is used whenever a set of elements are
1261
+ * logically enclosed in a single code segment. For example, an entire
1262
+ * extend block (possibly containing multiple extension definitions) will
1263
+ * have an outer location whose path refers to the "extensions" repeated
1264
+ * field without an index.
1265
+ * - Multiple locations may have the same path. This happens when a single
1266
+ * logical declaration is spread out across multiple places. The most
1267
+ * obvious example is the "extend" block again -- there may be multiple
1268
+ * extend blocks in the same scope, each of which will have the same path.
1269
+ * - A location's span is not always a subset of its parent's span. For
1270
+ * example, the "extendee" of an extension declaration appears at the
1271
+ * beginning of the "extend" block and is shared by all extensions within
1272
+ * the block.
1273
+ * - Just because a location's span is a subset of some other location's span
1274
+ * does not mean that it is a descendant. For example, a "group" defines
1275
+ * both a type and a field in a single declaration. Thus, the locations
1276
+ * corresponding to the type and field and their components will overlap.
1277
+ * - Code which tries to interpret locations should probably be designed to
1278
+ * ignore those that it doesn't understand, as more types of locations could
1279
+ * be recorded in the future.
1280
+ *
1281
+ * @generated from field: repeated google.protobuf.SourceCodeInfo.Location location = 1;
1282
+ */
1283
+ this.location = [];
1284
+ index_js_1.proto2.util.initPartial(data, this);
1285
+ }
1286
+ static fromBinary(bytes, options) {
1287
+ return new SourceCodeInfo().fromBinary(bytes, options);
1288
+ }
1289
+ static fromJson(jsonValue, options) {
1290
+ return new SourceCodeInfo().fromJson(jsonValue, options);
1291
+ }
1292
+ static fromJsonString(jsonString, options) {
1293
+ return new SourceCodeInfo().fromJsonString(jsonString, options);
1294
+ }
1295
+ static equals(a, b) {
1296
+ return index_js_1.proto2.util.equals(SourceCodeInfo, a, b);
1297
+ }
2082
1298
  }
2083
1299
  exports.SourceCodeInfo = SourceCodeInfo;
2084
1300
  SourceCodeInfo.runtime = index_js_1.proto2;
2085
1301
  SourceCodeInfo.typeName = "google.protobuf.SourceCodeInfo";
2086
1302
  SourceCodeInfo.fields = index_js_1.proto2.util.newFieldList(() => [
2087
- {
2088
- no: 1,
2089
- name: "location",
2090
- kind: "message",
2091
- T: SourceCodeInfo_Location,
2092
- repeated: true,
2093
- },
1303
+ { no: 1, name: "location", kind: "message", T: SourceCodeInfo_Location, repeated: true },
2094
1304
  ]);
2095
1305
  /**
2096
1306
  * @generated from message google.protobuf.SourceCodeInfo.Location
2097
1307
  */
2098
1308
  class SourceCodeInfo_Location extends index_js_1.Message {
2099
- constructor(data) {
2100
- super();
2101
- /**
2102
- * Identifies which part of the FileDescriptorProto was defined at this
2103
- * location.
2104
- *
2105
- * Each element is a field number or an index. They form a path from
2106
- * the root FileDescriptorProto to the place where the definition. For
2107
- * example, this path:
2108
- * [ 4, 3, 2, 7, 1 ]
2109
- * refers to:
2110
- * file.message_type(3) // 4, 3
2111
- * .field(7) // 2, 7
2112
- * .name() // 1
2113
- * This is because FileDescriptorProto.message_type has field number 4:
2114
- * repeated DescriptorProto message_type = 4;
2115
- * and DescriptorProto.field has field number 2:
2116
- * repeated FieldDescriptorProto field = 2;
2117
- * and FieldDescriptorProto.name has field number 1:
2118
- * optional string name = 1;
2119
- *
2120
- * Thus, the above path gives the location of a field name. If we removed
2121
- * the last element:
2122
- * [ 4, 3, 2, 7 ]
2123
- * this path refers to the whole field declaration (from the beginning
2124
- * of the label to the terminating semicolon).
2125
- *
2126
- * @generated from field: repeated int32 path = 1 [packed = true];
2127
- */
2128
- this.path = [];
2129
- /**
2130
- * Always has exactly three or four elements: start line, start column,
2131
- * end line (optional, otherwise assumed same as start line), end column.
2132
- * These are packed into a single field for efficiency. Note that line
2133
- * and column numbers are zero-based -- typically you will want to add
2134
- * 1 to each before displaying to a user.
2135
- *
2136
- * @generated from field: repeated int32 span = 2 [packed = true];
2137
- */
2138
- this.span = [];
2139
- /**
2140
- * @generated from field: repeated string leading_detached_comments = 6;
2141
- */
2142
- this.leadingDetachedComments = [];
2143
- index_js_1.proto2.util.initPartial(data, this);
2144
- }
2145
- static fromBinary(bytes, options) {
2146
- return new SourceCodeInfo_Location().fromBinary(bytes, options);
2147
- }
2148
- static fromJson(jsonValue, options) {
2149
- return new SourceCodeInfo_Location().fromJson(jsonValue, options);
2150
- }
2151
- static fromJsonString(jsonString, options) {
2152
- return new SourceCodeInfo_Location().fromJsonString(jsonString, options);
2153
- }
2154
- static equals(a, b) {
2155
- return index_js_1.proto2.util.equals(SourceCodeInfo_Location, a, b);
2156
- }
1309
+ constructor(data) {
1310
+ super();
1311
+ /**
1312
+ * Identifies which part of the FileDescriptorProto was defined at this
1313
+ * location.
1314
+ *
1315
+ * Each element is a field number or an index. They form a path from
1316
+ * the root FileDescriptorProto to the place where the definition. For
1317
+ * example, this path:
1318
+ * [ 4, 3, 2, 7, 1 ]
1319
+ * refers to:
1320
+ * file.message_type(3) // 4, 3
1321
+ * .field(7) // 2, 7
1322
+ * .name() // 1
1323
+ * This is because FileDescriptorProto.message_type has field number 4:
1324
+ * repeated DescriptorProto message_type = 4;
1325
+ * and DescriptorProto.field has field number 2:
1326
+ * repeated FieldDescriptorProto field = 2;
1327
+ * and FieldDescriptorProto.name has field number 1:
1328
+ * optional string name = 1;
1329
+ *
1330
+ * Thus, the above path gives the location of a field name. If we removed
1331
+ * the last element:
1332
+ * [ 4, 3, 2, 7 ]
1333
+ * this path refers to the whole field declaration (from the beginning
1334
+ * of the label to the terminating semicolon).
1335
+ *
1336
+ * @generated from field: repeated int32 path = 1 [packed = true];
1337
+ */
1338
+ this.path = [];
1339
+ /**
1340
+ * Always has exactly three or four elements: start line, start column,
1341
+ * end line (optional, otherwise assumed same as start line), end column.
1342
+ * These are packed into a single field for efficiency. Note that line
1343
+ * and column numbers are zero-based -- typically you will want to add
1344
+ * 1 to each before displaying to a user.
1345
+ *
1346
+ * @generated from field: repeated int32 span = 2 [packed = true];
1347
+ */
1348
+ this.span = [];
1349
+ /**
1350
+ * @generated from field: repeated string leading_detached_comments = 6;
1351
+ */
1352
+ this.leadingDetachedComments = [];
1353
+ index_js_1.proto2.util.initPartial(data, this);
1354
+ }
1355
+ static fromBinary(bytes, options) {
1356
+ return new SourceCodeInfo_Location().fromBinary(bytes, options);
1357
+ }
1358
+ static fromJson(jsonValue, options) {
1359
+ return new SourceCodeInfo_Location().fromJson(jsonValue, options);
1360
+ }
1361
+ static fromJsonString(jsonString, options) {
1362
+ return new SourceCodeInfo_Location().fromJsonString(jsonString, options);
1363
+ }
1364
+ static equals(a, b) {
1365
+ return index_js_1.proto2.util.equals(SourceCodeInfo_Location, a, b);
1366
+ }
2157
1367
  }
2158
1368
  exports.SourceCodeInfo_Location = SourceCodeInfo_Location;
2159
1369
  SourceCodeInfo_Location.runtime = index_js_1.proto2;
2160
1370
  SourceCodeInfo_Location.typeName = "google.protobuf.SourceCodeInfo.Location";
2161
1371
  SourceCodeInfo_Location.fields = index_js_1.proto2.util.newFieldList(() => [
2162
- {
2163
- no: 1,
2164
- name: "path",
2165
- kind: "scalar",
2166
- T: 5 /* ScalarType.INT32 */,
2167
- repeated: true,
2168
- packed: true,
2169
- },
2170
- {
2171
- no: 2,
2172
- name: "span",
2173
- kind: "scalar",
2174
- T: 5 /* ScalarType.INT32 */,
2175
- repeated: true,
2176
- packed: true,
2177
- },
2178
- {
2179
- no: 3,
2180
- name: "leading_comments",
2181
- kind: "scalar",
2182
- T: 9 /* ScalarType.STRING */,
2183
- opt: true,
2184
- },
2185
- {
2186
- no: 4,
2187
- name: "trailing_comments",
2188
- kind: "scalar",
2189
- T: 9 /* ScalarType.STRING */,
2190
- opt: true,
2191
- },
2192
- {
2193
- no: 6,
2194
- name: "leading_detached_comments",
2195
- kind: "scalar",
2196
- T: 9 /* ScalarType.STRING */,
2197
- repeated: true,
2198
- },
1372
+ { no: 1, name: "path", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
1373
+ { no: 2, name: "span", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
1374
+ { no: 3, name: "leading_comments", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1375
+ { no: 4, name: "trailing_comments", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1376
+ { no: 6, name: "leading_detached_comments", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
2199
1377
  ]);
2200
1378
  /**
2201
1379
  * Describes the relationship between generated code and its original source
@@ -2205,107 +1383,70 @@ SourceCodeInfo_Location.fields = index_js_1.proto2.util.newFieldList(() => [
2205
1383
  * @generated from message google.protobuf.GeneratedCodeInfo
2206
1384
  */
2207
1385
  class GeneratedCodeInfo extends index_js_1.Message {
2208
- constructor(data) {
2209
- super();
2210
- /**
2211
- * An Annotation connects some span of text in generated code to an element
2212
- * of its generating .proto file.
2213
- *
2214
- * @generated from field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
2215
- */
2216
- this.annotation = [];
2217
- index_js_1.proto2.util.initPartial(data, this);
2218
- }
2219
- static fromBinary(bytes, options) {
2220
- return new GeneratedCodeInfo().fromBinary(bytes, options);
2221
- }
2222
- static fromJson(jsonValue, options) {
2223
- return new GeneratedCodeInfo().fromJson(jsonValue, options);
2224
- }
2225
- static fromJsonString(jsonString, options) {
2226
- return new GeneratedCodeInfo().fromJsonString(jsonString, options);
2227
- }
2228
- static equals(a, b) {
2229
- return index_js_1.proto2.util.equals(GeneratedCodeInfo, a, b);
2230
- }
1386
+ constructor(data) {
1387
+ super();
1388
+ /**
1389
+ * An Annotation connects some span of text in generated code to an element
1390
+ * of its generating .proto file.
1391
+ *
1392
+ * @generated from field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
1393
+ */
1394
+ this.annotation = [];
1395
+ index_js_1.proto2.util.initPartial(data, this);
1396
+ }
1397
+ static fromBinary(bytes, options) {
1398
+ return new GeneratedCodeInfo().fromBinary(bytes, options);
1399
+ }
1400
+ static fromJson(jsonValue, options) {
1401
+ return new GeneratedCodeInfo().fromJson(jsonValue, options);
1402
+ }
1403
+ static fromJsonString(jsonString, options) {
1404
+ return new GeneratedCodeInfo().fromJsonString(jsonString, options);
1405
+ }
1406
+ static equals(a, b) {
1407
+ return index_js_1.proto2.util.equals(GeneratedCodeInfo, a, b);
1408
+ }
2231
1409
  }
2232
1410
  exports.GeneratedCodeInfo = GeneratedCodeInfo;
2233
1411
  GeneratedCodeInfo.runtime = index_js_1.proto2;
2234
1412
  GeneratedCodeInfo.typeName = "google.protobuf.GeneratedCodeInfo";
2235
1413
  GeneratedCodeInfo.fields = index_js_1.proto2.util.newFieldList(() => [
2236
- {
2237
- no: 1,
2238
- name: "annotation",
2239
- kind: "message",
2240
- T: GeneratedCodeInfo_Annotation,
2241
- repeated: true,
2242
- },
1414
+ { no: 1, name: "annotation", kind: "message", T: GeneratedCodeInfo_Annotation, repeated: true },
2243
1415
  ]);
2244
1416
  /**
2245
1417
  * @generated from message google.protobuf.GeneratedCodeInfo.Annotation
2246
1418
  */
2247
1419
  class GeneratedCodeInfo_Annotation extends index_js_1.Message {
2248
- constructor(data) {
2249
- super();
2250
- /**
2251
- * Identifies the element in the original source .proto file. This field
2252
- * is formatted the same as SourceCodeInfo.Location.path.
2253
- *
2254
- * @generated from field: repeated int32 path = 1 [packed = true];
2255
- */
2256
- this.path = [];
2257
- index_js_1.proto2.util.initPartial(data, this);
2258
- }
2259
- static fromBinary(bytes, options) {
2260
- return new GeneratedCodeInfo_Annotation().fromBinary(bytes, options);
2261
- }
2262
- static fromJson(jsonValue, options) {
2263
- return new GeneratedCodeInfo_Annotation().fromJson(jsonValue, options);
2264
- }
2265
- static fromJsonString(jsonString, options) {
2266
- return new GeneratedCodeInfo_Annotation().fromJsonString(
2267
- jsonString,
2268
- options
2269
- );
2270
- }
2271
- static equals(a, b) {
2272
- return index_js_1.proto2.util.equals(GeneratedCodeInfo_Annotation, a, b);
2273
- }
1420
+ constructor(data) {
1421
+ super();
1422
+ /**
1423
+ * Identifies the element in the original source .proto file. This field
1424
+ * is formatted the same as SourceCodeInfo.Location.path.
1425
+ *
1426
+ * @generated from field: repeated int32 path = 1 [packed = true];
1427
+ */
1428
+ this.path = [];
1429
+ index_js_1.proto2.util.initPartial(data, this);
1430
+ }
1431
+ static fromBinary(bytes, options) {
1432
+ return new GeneratedCodeInfo_Annotation().fromBinary(bytes, options);
1433
+ }
1434
+ static fromJson(jsonValue, options) {
1435
+ return new GeneratedCodeInfo_Annotation().fromJson(jsonValue, options);
1436
+ }
1437
+ static fromJsonString(jsonString, options) {
1438
+ return new GeneratedCodeInfo_Annotation().fromJsonString(jsonString, options);
1439
+ }
1440
+ static equals(a, b) {
1441
+ return index_js_1.proto2.util.equals(GeneratedCodeInfo_Annotation, a, b);
1442
+ }
2274
1443
  }
2275
1444
  exports.GeneratedCodeInfo_Annotation = GeneratedCodeInfo_Annotation;
2276
1445
  GeneratedCodeInfo_Annotation.runtime = index_js_1.proto2;
2277
- GeneratedCodeInfo_Annotation.typeName =
2278
- "google.protobuf.GeneratedCodeInfo.Annotation";
2279
- GeneratedCodeInfo_Annotation.fields = index_js_1.proto2.util.newFieldList(
2280
- () => [
2281
- {
2282
- no: 1,
2283
- name: "path",
2284
- kind: "scalar",
2285
- T: 5 /* ScalarType.INT32 */,
2286
- repeated: true,
2287
- packed: true,
2288
- },
2289
- {
2290
- no: 2,
2291
- name: "source_file",
2292
- kind: "scalar",
2293
- T: 9 /* ScalarType.STRING */,
2294
- opt: true,
2295
- },
2296
- {
2297
- no: 3,
2298
- name: "begin",
2299
- kind: "scalar",
2300
- T: 5 /* ScalarType.INT32 */,
2301
- opt: true,
2302
- },
2303
- {
2304
- no: 4,
2305
- name: "end",
2306
- kind: "scalar",
2307
- T: 5 /* ScalarType.INT32 */,
2308
- opt: true,
2309
- },
2310
- ]
2311
- );
1446
+ GeneratedCodeInfo_Annotation.typeName = "google.protobuf.GeneratedCodeInfo.Annotation";
1447
+ GeneratedCodeInfo_Annotation.fields = index_js_1.proto2.util.newFieldList(() => [
1448
+ { no: 1, name: "path", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
1449
+ { no: 2, name: "source_file", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1450
+ { no: 3, name: "begin", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1451
+ { no: 4, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1452
+ ]);