@bufbuild/protobuf 0.0.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/cjs/binary-encoding.js +434 -0
- package/dist/cjs/binary-format.js +2 -0
- package/dist/cjs/descriptor-registry.js +518 -0
- package/dist/cjs/descriptor-set.js +557 -0
- package/dist/cjs/enum.js +2 -0
- package/dist/cjs/field-list.js +2 -0
- package/dist/cjs/field.js +40 -0
- package/dist/cjs/google/protobuf/any_pb.js +280 -0
- package/dist/cjs/google/protobuf/api_pb.js +383 -0
- package/dist/cjs/google/protobuf/compiler/plugin_pb.js +334 -0
- package/dist/cjs/google/protobuf/descriptor_pb.js +2311 -0
- package/dist/cjs/google/protobuf/duration_pb.js +201 -0
- package/dist/cjs/google/protobuf/empty_pb.js +72 -0
- package/dist/cjs/google/protobuf/field_mask_pb.js +347 -0
- package/dist/cjs/google/protobuf/source_context_pb.js +74 -0
- package/dist/cjs/google/protobuf/struct_pb.js +288 -0
- package/dist/cjs/google/protobuf/timestamp_pb.js +271 -0
- package/dist/cjs/google/protobuf/type_pb.js +613 -0
- package/dist/cjs/google/protobuf/wrappers_pb.js +658 -0
- package/dist/cjs/google/varint.js +280 -0
- package/dist/cjs/index.js +148 -0
- package/dist/cjs/json-format.js +2 -0
- package/dist/cjs/message-type.js +2 -0
- package/dist/cjs/message.js +98 -0
- package/dist/cjs/private/assert.js +52 -0
- package/dist/cjs/private/base64.js +118 -0
- package/dist/cjs/private/binary-format-common.js +253 -0
- package/dist/cjs/private/binary-format-proto2.js +120 -0
- package/dist/cjs/private/binary-format-proto3.js +102 -0
- package/dist/cjs/private/enum.js +70 -0
- package/dist/cjs/private/field-list.js +62 -0
- package/dist/cjs/private/field-wrapper.js +25 -0
- package/dist/cjs/private/field.js +34 -0
- package/dist/cjs/private/json-format-common.js +482 -0
- package/dist/cjs/private/json-format-proto2.js +100 -0
- package/dist/cjs/private/json-format-proto3.js +103 -0
- package/dist/cjs/private/message-type.js +37 -0
- package/dist/cjs/private/names.js +101 -0
- package/dist/cjs/private/options-map.js +2 -0
- package/dist/cjs/private/proto-runtime.js +24 -0
- package/dist/cjs/private/scalars.js +138 -0
- package/dist/cjs/private/util-common.js +229 -0
- package/dist/cjs/private/util.js +2 -0
- package/dist/cjs/proto-int64.js +121 -0
- package/dist/cjs/proto2.js +86 -0
- package/dist/cjs/proto3.js +99 -0
- package/dist/cjs/service-type.js +43 -0
- package/dist/cjs/type-registry.js +42 -0
- package/dist/esm/binary-encoding.js +434 -0
- package/dist/esm/binary-format.js +1 -0
- package/dist/esm/descriptor-registry.js +521 -0
- package/dist/esm/descriptor-set.js +517 -0
- package/dist/esm/enum.js +1 -0
- package/dist/esm/field-list.js +1 -0
- package/dist/esm/field.js +37 -0
- package/dist/esm/google/protobuf/any_pb.js +276 -0
- package/dist/esm/google/protobuf/api_pb.js +350 -0
- package/dist/esm/google/protobuf/compiler/plugin_pb.js +318 -0
- package/dist/esm/google/protobuf/descriptor_pb.js +2213 -0
- package/dist/esm/google/protobuf/duration_pb.js +197 -0
- package/dist/esm/google/protobuf/empty_pb.js +68 -0
- package/dist/esm/google/protobuf/field_mask_pb.js +343 -0
- package/dist/esm/google/protobuf/source_context_pb.js +70 -0
- package/dist/esm/google/protobuf/struct_pb.js +282 -0
- package/dist/esm/google/protobuf/timestamp_pb.js +267 -0
- package/dist/esm/google/protobuf/type_pb.js +569 -0
- package/dist/esm/google/protobuf/wrappers_pb.js +574 -0
- package/dist/esm/google/varint.js +265 -0
- package/dist/esm/index.js +24 -0
- package/dist/esm/json-format.js +1 -0
- package/dist/esm/message-type.js +1 -0
- package/dist/esm/message.js +94 -0
- package/dist/esm/private/assert.js +41 -0
- package/dist/esm/private/base64.js +113 -0
- package/dist/esm/private/binary-format-common.js +243 -0
- package/dist/esm/private/binary-format-proto2.js +87 -0
- package/dist/esm/private/binary-format-proto3.js +74 -0
- package/dist/esm/private/enum.js +64 -0
- package/dist/esm/private/field-list.js +58 -0
- package/dist/esm/private/field-wrapper.js +20 -0
- package/dist/esm/private/field.js +27 -0
- package/dist/esm/private/json-format-common.js +473 -0
- package/dist/esm/private/json-format-proto2.js +90 -0
- package/dist/esm/private/json-format-proto3.js +89 -0
- package/dist/esm/private/message-type.js +33 -0
- package/dist/esm/private/names.js +90 -0
- package/dist/esm/private/options-map.js +1 -0
- package/dist/esm/private/proto-runtime.js +15 -0
- package/dist/esm/private/scalars.js +129 -0
- package/dist/esm/private/util-common.js +207 -0
- package/dist/esm/private/util.js +1 -0
- package/dist/esm/proto-int64.js +118 -0
- package/dist/esm/proto2.js +77 -0
- package/dist/esm/proto3.js +90 -0
- package/dist/esm/service-type.js +37 -0
- package/dist/esm/type-registry.js +38 -0
- package/dist/types/binary-encoding.d.ts +421 -0
- package/dist/types/binary-format.d.ts +109 -0
- package/dist/types/descriptor-registry.d.ts +42 -0
- package/dist/types/descriptor-set.d.ts +171 -0
- package/dist/types/enum.d.ts +31 -0
- package/dist/types/field-list.d.ts +27 -0
- package/dist/types/field.d.ts +295 -0
- package/dist/types/google/protobuf/any_pb.d.ts +167 -0
- package/dist/types/google/protobuf/api_pb.d.ts +296 -0
- package/dist/types/google/protobuf/compiler/plugin_pb.d.ts +294 -0
- package/dist/types/google/protobuf/descriptor_pb.d.ts +1959 -0
- package/dist/types/google/protobuf/duration_pb.d.ts +117 -0
- package/dist/types/google/protobuf/empty_pb.d.ts +44 -0
- package/dist/types/google/protobuf/field_mask_pb.d.ts +243 -0
- package/dist/types/google/protobuf/source_context_pb.d.ts +44 -0
- package/dist/types/google/protobuf/struct_pb.d.ts +205 -0
- package/dist/types/google/protobuf/timestamp_pb.d.ts +151 -0
- package/dist/types/google/protobuf/type_pb.d.ts +482 -0
- package/dist/types/google/protobuf/wrappers_pb.d.ts +379 -0
- package/dist/types/google/varint.d.ts +65 -0
- package/dist/types/index.d.ts +53 -0
- package/dist/types/json-format.d.ts +129 -0
- package/dist/types/message-type.d.ts +58 -0
- package/dist/types/message.d.ts +124 -0
- package/dist/types/private/assert.d.ts +19 -0
- package/dist/types/private/base64.d.ts +18 -0
- package/dist/types/private/binary-format-common.d.ts +38 -0
- package/dist/types/private/binary-format-proto2.d.ts +2 -0
- package/dist/types/private/binary-format-proto3.d.ts +2 -0
- package/dist/types/private/enum.d.ts +29 -0
- package/dist/types/private/field-list.d.ts +25 -0
- package/dist/types/private/field-wrapper.d.ts +27 -0
- package/dist/types/private/field.d.ts +15 -0
- package/dist/types/private/json-format-common.d.ts +30 -0
- package/dist/types/private/json-format-proto2.d.ts +2 -0
- package/dist/types/private/json-format-proto3.d.ts +2 -0
- package/dist/types/private/message-type.d.ts +15 -0
- package/dist/types/private/names.d.ts +19 -0
- package/dist/types/private/options-map.d.ts +7 -0
- package/dist/types/private/proto-runtime.d.ts +55 -0
- package/dist/types/private/scalars.d.ts +33 -0
- package/dist/types/private/util-common.d.ts +5 -0
- package/dist/types/private/util.d.ts +55 -0
- package/dist/types/proto-int64.d.ts +94 -0
- package/dist/types/proto2.d.ts +4 -0
- package/dist/types/proto3.d.ts +4 -0
- package/dist/types/service-type.d.ts +118 -0
- package/dist/types/type-registry.d.ts +37 -0
- package/package.json +31 -0
|
@@ -0,0 +1,2311 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// @generated by protoc-gen-es v0.0.1-alpha.1 with parameter "bootstrap_wkt=true,ts_nocheck=false"
|
|
4
|
+
// @generated from file google/protobuf/descriptor.proto (package google.protobuf, syntax proto2)
|
|
5
|
+
//
|
|
6
|
+
// Protocol Buffers - Google's data interchange format
|
|
7
|
+
// Copyright 2008 Google Inc. All rights reserved.
|
|
8
|
+
// https://developers.google.com/protocol-buffers/
|
|
9
|
+
//
|
|
10
|
+
// Redistribution and use in source and binary forms, with or without
|
|
11
|
+
// modification, are permitted provided that the following conditions are
|
|
12
|
+
// met:
|
|
13
|
+
//
|
|
14
|
+
// * Redistributions of source code must retain the above copyright
|
|
15
|
+
// notice, this list of conditions and the following disclaimer.
|
|
16
|
+
// * Redistributions in binary form must reproduce the above
|
|
17
|
+
// copyright notice, this list of conditions and the following disclaimer
|
|
18
|
+
// in the documentation and/or other materials provided with the
|
|
19
|
+
// distribution.
|
|
20
|
+
// * Neither the name of Google Inc. nor the names of its
|
|
21
|
+
// contributors may be used to endorse or promote products derived from
|
|
22
|
+
// this software without specific prior written permission.
|
|
23
|
+
//
|
|
24
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
25
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
26
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
27
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
28
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
29
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
30
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
31
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
32
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
33
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
34
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
35
|
+
// Author: kenton@google.com (Kenton Varda)
|
|
36
|
+
// Based on original Protocol Buffers design by
|
|
37
|
+
// Sanjay Ghemawat, Jeff Dean, and others.
|
|
38
|
+
//
|
|
39
|
+
// The messages in this file describe the definitions found in .proto files.
|
|
40
|
+
// A valid .proto file can be translated directly to a FileDescriptorProto
|
|
41
|
+
// without any other information (e.g. without reading its imports).
|
|
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;
|
|
77
|
+
const index_js_1 = require("../../index.js");
|
|
78
|
+
/**
|
|
79
|
+
* The protocol compiler can output a FileDescriptorSet containing the .proto
|
|
80
|
+
* files it parses.
|
|
81
|
+
*
|
|
82
|
+
* @generated from message google.protobuf.FileDescriptorSet
|
|
83
|
+
*/
|
|
84
|
+
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
|
+
}
|
|
105
|
+
}
|
|
106
|
+
exports.FileDescriptorSet = FileDescriptorSet;
|
|
107
|
+
FileDescriptorSet.runtime = index_js_1.proto2;
|
|
108
|
+
FileDescriptorSet.typeName = "google.protobuf.FileDescriptorSet";
|
|
109
|
+
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
|
+
},
|
|
117
|
+
]);
|
|
118
|
+
/**
|
|
119
|
+
* Describes a complete .proto file.
|
|
120
|
+
*
|
|
121
|
+
* @generated from message google.protobuf.FileDescriptorProto
|
|
122
|
+
*/
|
|
123
|
+
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
|
+
}
|
|
177
|
+
}
|
|
178
|
+
exports.FileDescriptorProto = FileDescriptorProto;
|
|
179
|
+
FileDescriptorProto.runtime = index_js_1.proto2;
|
|
180
|
+
FileDescriptorProto.typeName = "google.protobuf.FileDescriptorProto";
|
|
181
|
+
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
|
+
},
|
|
260
|
+
]);
|
|
261
|
+
/**
|
|
262
|
+
* Describes a message type.
|
|
263
|
+
*
|
|
264
|
+
* @generated from message google.protobuf.DescriptorProto
|
|
265
|
+
*/
|
|
266
|
+
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
|
+
}
|
|
318
|
+
}
|
|
319
|
+
exports.DescriptorProto = DescriptorProto;
|
|
320
|
+
DescriptorProto.runtime = index_js_1.proto2;
|
|
321
|
+
DescriptorProto.typeName = "google.protobuf.DescriptorProto";
|
|
322
|
+
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
|
+
},
|
|
387
|
+
]);
|
|
388
|
+
/**
|
|
389
|
+
* @generated from message google.protobuf.DescriptorProto.ExtensionRange
|
|
390
|
+
*/
|
|
391
|
+
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
|
+
}
|
|
411
|
+
}
|
|
412
|
+
exports.DescriptorProto_ExtensionRange = DescriptorProto_ExtensionRange;
|
|
413
|
+
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
|
+
);
|
|
441
|
+
/**
|
|
442
|
+
* Range of reserved tag numbers. Reserved tag numbers may not be used by
|
|
443
|
+
* fields or extension ranges in the same message. Reserved ranges may
|
|
444
|
+
* not overlap.
|
|
445
|
+
*
|
|
446
|
+
* @generated from message google.protobuf.DescriptorProto.ReservedRange
|
|
447
|
+
*/
|
|
448
|
+
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
|
+
}
|
|
468
|
+
}
|
|
469
|
+
exports.DescriptorProto_ReservedRange = DescriptorProto_ReservedRange;
|
|
470
|
+
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
|
+
);
|
|
491
|
+
/**
|
|
492
|
+
* @generated from message google.protobuf.ExtensionRangeOptions
|
|
493
|
+
*/
|
|
494
|
+
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
|
+
}
|
|
517
|
+
}
|
|
518
|
+
exports.ExtensionRangeOptions = ExtensionRangeOptions;
|
|
519
|
+
ExtensionRangeOptions.runtime = index_js_1.proto2;
|
|
520
|
+
ExtensionRangeOptions.typeName = "google.protobuf.ExtensionRangeOptions";
|
|
521
|
+
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
|
+
},
|
|
529
|
+
]);
|
|
530
|
+
/**
|
|
531
|
+
* Describes a field within a message.
|
|
532
|
+
*
|
|
533
|
+
* @generated from message google.protobuf.FieldDescriptorProto
|
|
534
|
+
*/
|
|
535
|
+
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
|
+
}
|
|
552
|
+
}
|
|
553
|
+
exports.FieldDescriptorProto = FieldDescriptorProto;
|
|
554
|
+
FieldDescriptorProto.runtime = index_js_1.proto2;
|
|
555
|
+
FieldDescriptorProto.typeName = "google.protobuf.FieldDescriptorProto";
|
|
556
|
+
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
|
+
},
|
|
628
|
+
]);
|
|
629
|
+
/**
|
|
630
|
+
* @generated from enum google.protobuf.FieldDescriptorProto.Type
|
|
631
|
+
*/
|
|
632
|
+
var FieldDescriptorProto_Type;
|
|
633
|
+
(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
|
+
);
|
|
746
|
+
// Retrieve enum metadata with: proto2.getEnumType(FieldDescriptorProto_Type)
|
|
747
|
+
index_js_1.proto2.util.setEnumType(
|
|
748
|
+
FieldDescriptorProto_Type,
|
|
749
|
+
"google.protobuf.FieldDescriptorProto.Type",
|
|
750
|
+
[
|
|
751
|
+
{ no: 1, name: "TYPE_DOUBLE" },
|
|
752
|
+
{ no: 2, name: "TYPE_FLOAT" },
|
|
753
|
+
{ no: 3, name: "TYPE_INT64" },
|
|
754
|
+
{ no: 4, name: "TYPE_UINT64" },
|
|
755
|
+
{ no: 5, name: "TYPE_INT32" },
|
|
756
|
+
{ no: 6, name: "TYPE_FIXED64" },
|
|
757
|
+
{ no: 7, name: "TYPE_FIXED32" },
|
|
758
|
+
{ no: 8, name: "TYPE_BOOL" },
|
|
759
|
+
{ no: 9, name: "TYPE_STRING" },
|
|
760
|
+
{ no: 10, name: "TYPE_GROUP" },
|
|
761
|
+
{ no: 11, name: "TYPE_MESSAGE" },
|
|
762
|
+
{ no: 12, name: "TYPE_BYTES" },
|
|
763
|
+
{ no: 13, name: "TYPE_UINT32" },
|
|
764
|
+
{ no: 14, name: "TYPE_ENUM" },
|
|
765
|
+
{ no: 15, name: "TYPE_SFIXED32" },
|
|
766
|
+
{ no: 16, name: "TYPE_SFIXED64" },
|
|
767
|
+
{ no: 17, name: "TYPE_SINT32" },
|
|
768
|
+
{ no: 18, name: "TYPE_SINT64" },
|
|
769
|
+
]
|
|
770
|
+
);
|
|
771
|
+
/**
|
|
772
|
+
* @generated from enum google.protobuf.FieldDescriptorProto.Label
|
|
773
|
+
*/
|
|
774
|
+
var FieldDescriptorProto_Label;
|
|
775
|
+
(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
|
+
);
|
|
798
|
+
// Retrieve enum metadata with: proto2.getEnumType(FieldDescriptorProto_Label)
|
|
799
|
+
index_js_1.proto2.util.setEnumType(
|
|
800
|
+
FieldDescriptorProto_Label,
|
|
801
|
+
"google.protobuf.FieldDescriptorProto.Label",
|
|
802
|
+
[
|
|
803
|
+
{ no: 1, name: "LABEL_OPTIONAL" },
|
|
804
|
+
{ no: 2, name: "LABEL_REQUIRED" },
|
|
805
|
+
{ no: 3, name: "LABEL_REPEATED" },
|
|
806
|
+
]
|
|
807
|
+
);
|
|
808
|
+
/**
|
|
809
|
+
* Describes a oneof.
|
|
810
|
+
*
|
|
811
|
+
* @generated from message google.protobuf.OneofDescriptorProto
|
|
812
|
+
*/
|
|
813
|
+
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
|
+
}
|
|
830
|
+
}
|
|
831
|
+
exports.OneofDescriptorProto = OneofDescriptorProto;
|
|
832
|
+
OneofDescriptorProto.runtime = index_js_1.proto2;
|
|
833
|
+
OneofDescriptorProto.typeName = "google.protobuf.OneofDescriptorProto";
|
|
834
|
+
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 },
|
|
843
|
+
]);
|
|
844
|
+
/**
|
|
845
|
+
* Describes an enum type.
|
|
846
|
+
*
|
|
847
|
+
* @generated from message google.protobuf.EnumDescriptorProto
|
|
848
|
+
*/
|
|
849
|
+
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
|
+
}
|
|
885
|
+
}
|
|
886
|
+
exports.EnumDescriptorProto = EnumDescriptorProto;
|
|
887
|
+
EnumDescriptorProto.runtime = index_js_1.proto2;
|
|
888
|
+
EnumDescriptorProto.typeName = "google.protobuf.EnumDescriptorProto";
|
|
889
|
+
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
|
+
},
|
|
919
|
+
]);
|
|
920
|
+
/**
|
|
921
|
+
* Range of reserved numeric values. Reserved values may not be used by
|
|
922
|
+
* entries in the same enum. Reserved ranges may not overlap.
|
|
923
|
+
*
|
|
924
|
+
* Note that this is distinct from DescriptorProto.ReservedRange in that it
|
|
925
|
+
* is inclusive such that it can appropriately represent the entire int32
|
|
926
|
+
* domain.
|
|
927
|
+
*
|
|
928
|
+
* @generated from message google.protobuf.EnumDescriptorProto.EnumReservedRange
|
|
929
|
+
*/
|
|
930
|
+
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
|
+
}
|
|
960
|
+
}
|
|
961
|
+
exports.EnumDescriptorProto_EnumReservedRange =
|
|
962
|
+
EnumDescriptorProto_EnumReservedRange;
|
|
963
|
+
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
|
+
]);
|
|
983
|
+
/**
|
|
984
|
+
* Describes a value within an enum.
|
|
985
|
+
*
|
|
986
|
+
* @generated from message google.protobuf.EnumValueDescriptorProto
|
|
987
|
+
*/
|
|
988
|
+
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
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
exports.EnumValueDescriptorProto = EnumValueDescriptorProto;
|
|
1007
|
+
EnumValueDescriptorProto.runtime = index_js_1.proto2;
|
|
1008
|
+
EnumValueDescriptorProto.typeName = "google.protobuf.EnumValueDescriptorProto";
|
|
1009
|
+
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 },
|
|
1025
|
+
]);
|
|
1026
|
+
/**
|
|
1027
|
+
* Describes a service.
|
|
1028
|
+
*
|
|
1029
|
+
* @generated from message google.protobuf.ServiceDescriptorProto
|
|
1030
|
+
*/
|
|
1031
|
+
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
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
exports.ServiceDescriptorProto = ServiceDescriptorProto;
|
|
1054
|
+
ServiceDescriptorProto.runtime = index_js_1.proto2;
|
|
1055
|
+
ServiceDescriptorProto.typeName = "google.protobuf.ServiceDescriptorProto";
|
|
1056
|
+
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 },
|
|
1072
|
+
]);
|
|
1073
|
+
/**
|
|
1074
|
+
* Describes a method of a service.
|
|
1075
|
+
*
|
|
1076
|
+
* @generated from message google.protobuf.MethodDescriptorProto
|
|
1077
|
+
*/
|
|
1078
|
+
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
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
exports.MethodDescriptorProto = MethodDescriptorProto;
|
|
1097
|
+
MethodDescriptorProto.runtime = index_js_1.proto2;
|
|
1098
|
+
MethodDescriptorProto.typeName = "google.protobuf.MethodDescriptorProto";
|
|
1099
|
+
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
|
+
},
|
|
1138
|
+
]);
|
|
1139
|
+
/**
|
|
1140
|
+
* @generated from message google.protobuf.FileOptions
|
|
1141
|
+
*/
|
|
1142
|
+
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
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
exports.FileOptions = FileOptions;
|
|
1168
|
+
FileOptions.runtime = index_js_1.proto2;
|
|
1169
|
+
FileOptions.typeName = "google.protobuf.FileOptions";
|
|
1170
|
+
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
|
+
},
|
|
1327
|
+
]);
|
|
1328
|
+
/**
|
|
1329
|
+
* Generated classes can be optimized for speed or code size.
|
|
1330
|
+
*
|
|
1331
|
+
* @generated from enum google.protobuf.FileOptions.OptimizeMode
|
|
1332
|
+
*/
|
|
1333
|
+
var FileOptions_OptimizeMode;
|
|
1334
|
+
(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
|
+
);
|
|
1361
|
+
// Retrieve enum metadata with: proto2.getEnumType(FileOptions_OptimizeMode)
|
|
1362
|
+
index_js_1.proto2.util.setEnumType(
|
|
1363
|
+
FileOptions_OptimizeMode,
|
|
1364
|
+
"google.protobuf.FileOptions.OptimizeMode",
|
|
1365
|
+
[
|
|
1366
|
+
{ no: 1, name: "SPEED" },
|
|
1367
|
+
{ no: 2, name: "CODE_SIZE" },
|
|
1368
|
+
{ no: 3, name: "LITE_RUNTIME" },
|
|
1369
|
+
]
|
|
1370
|
+
);
|
|
1371
|
+
/**
|
|
1372
|
+
* @generated from message google.protobuf.MessageOptions
|
|
1373
|
+
*/
|
|
1374
|
+
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
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
exports.MessageOptions = MessageOptions;
|
|
1399
|
+
MessageOptions.runtime = index_js_1.proto2;
|
|
1400
|
+
MessageOptions.typeName = "google.protobuf.MessageOptions";
|
|
1401
|
+
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
|
+
},
|
|
1440
|
+
]);
|
|
1441
|
+
/**
|
|
1442
|
+
* @generated from message google.protobuf.FieldOptions
|
|
1443
|
+
*/
|
|
1444
|
+
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
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
exports.FieldOptions = FieldOptions;
|
|
1469
|
+
FieldOptions.runtime = index_js_1.proto2;
|
|
1470
|
+
FieldOptions.typeName = "google.protobuf.FieldOptions";
|
|
1471
|
+
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
|
+
},
|
|
1526
|
+
]);
|
|
1527
|
+
/**
|
|
1528
|
+
* @generated from enum google.protobuf.FieldOptions.CType
|
|
1529
|
+
*/
|
|
1530
|
+
var FieldOptions_CType;
|
|
1531
|
+
(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
|
+
);
|
|
1550
|
+
// Retrieve enum metadata with: proto2.getEnumType(FieldOptions_CType)
|
|
1551
|
+
index_js_1.proto2.util.setEnumType(
|
|
1552
|
+
FieldOptions_CType,
|
|
1553
|
+
"google.protobuf.FieldOptions.CType",
|
|
1554
|
+
[
|
|
1555
|
+
{ no: 0, name: "STRING" },
|
|
1556
|
+
{ no: 1, name: "CORD" },
|
|
1557
|
+
{ no: 2, name: "STRING_PIECE" },
|
|
1558
|
+
]
|
|
1559
|
+
);
|
|
1560
|
+
/**
|
|
1561
|
+
* @generated from enum google.protobuf.FieldOptions.JSType
|
|
1562
|
+
*/
|
|
1563
|
+
var FieldOptions_JSType;
|
|
1564
|
+
(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
|
+
);
|
|
1587
|
+
// Retrieve enum metadata with: proto2.getEnumType(FieldOptions_JSType)
|
|
1588
|
+
index_js_1.proto2.util.setEnumType(
|
|
1589
|
+
FieldOptions_JSType,
|
|
1590
|
+
"google.protobuf.FieldOptions.JSType",
|
|
1591
|
+
[
|
|
1592
|
+
{ no: 0, name: "JS_NORMAL" },
|
|
1593
|
+
{ no: 1, name: "JS_STRING" },
|
|
1594
|
+
{ no: 2, name: "JS_NUMBER" },
|
|
1595
|
+
]
|
|
1596
|
+
);
|
|
1597
|
+
/**
|
|
1598
|
+
* @generated from message google.protobuf.OneofOptions
|
|
1599
|
+
*/
|
|
1600
|
+
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
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
exports.OneofOptions = OneofOptions;
|
|
1625
|
+
OneofOptions.runtime = index_js_1.proto2;
|
|
1626
|
+
OneofOptions.typeName = "google.protobuf.OneofOptions";
|
|
1627
|
+
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
|
+
},
|
|
1635
|
+
]);
|
|
1636
|
+
/**
|
|
1637
|
+
* @generated from message google.protobuf.EnumOptions
|
|
1638
|
+
*/
|
|
1639
|
+
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
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
exports.EnumOptions = EnumOptions;
|
|
1664
|
+
EnumOptions.runtime = index_js_1.proto2;
|
|
1665
|
+
EnumOptions.typeName = "google.protobuf.EnumOptions";
|
|
1666
|
+
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
|
+
},
|
|
1689
|
+
]);
|
|
1690
|
+
/**
|
|
1691
|
+
* @generated from message google.protobuf.EnumValueOptions
|
|
1692
|
+
*/
|
|
1693
|
+
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
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
exports.EnumValueOptions = EnumValueOptions;
|
|
1718
|
+
EnumValueOptions.runtime = index_js_1.proto2;
|
|
1719
|
+
EnumValueOptions.typeName = "google.protobuf.EnumValueOptions";
|
|
1720
|
+
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
|
+
},
|
|
1736
|
+
]);
|
|
1737
|
+
/**
|
|
1738
|
+
* @generated from message google.protobuf.ServiceOptions
|
|
1739
|
+
*/
|
|
1740
|
+
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
|
+
}
|
|
1763
|
+
}
|
|
1764
|
+
exports.ServiceOptions = ServiceOptions;
|
|
1765
|
+
ServiceOptions.runtime = index_js_1.proto2;
|
|
1766
|
+
ServiceOptions.typeName = "google.protobuf.ServiceOptions";
|
|
1767
|
+
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
|
+
},
|
|
1783
|
+
]);
|
|
1784
|
+
/**
|
|
1785
|
+
* @generated from message google.protobuf.MethodOptions
|
|
1786
|
+
*/
|
|
1787
|
+
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
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
exports.MethodOptions = MethodOptions;
|
|
1812
|
+
MethodOptions.runtime = index_js_1.proto2;
|
|
1813
|
+
MethodOptions.typeName = "google.protobuf.MethodOptions";
|
|
1814
|
+
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
|
+
},
|
|
1838
|
+
]);
|
|
1839
|
+
/**
|
|
1840
|
+
* Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
|
|
1841
|
+
* or neither? HTTP based RPC implementation may choose GET verb for safe
|
|
1842
|
+
* methods, and PUT verb for idempotent methods instead of the default POST.
|
|
1843
|
+
*
|
|
1844
|
+
* @generated from enum google.protobuf.MethodOptions.IdempotencyLevel
|
|
1845
|
+
*/
|
|
1846
|
+
var MethodOptions_IdempotencyLevel;
|
|
1847
|
+
(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
|
+
);
|
|
1875
|
+
// Retrieve enum metadata with: proto2.getEnumType(MethodOptions_IdempotencyLevel)
|
|
1876
|
+
index_js_1.proto2.util.setEnumType(
|
|
1877
|
+
MethodOptions_IdempotencyLevel,
|
|
1878
|
+
"google.protobuf.MethodOptions.IdempotencyLevel",
|
|
1879
|
+
[
|
|
1880
|
+
{ no: 0, name: "IDEMPOTENCY_UNKNOWN" },
|
|
1881
|
+
{ no: 1, name: "NO_SIDE_EFFECTS" },
|
|
1882
|
+
{ no: 2, name: "IDEMPOTENT" },
|
|
1883
|
+
]
|
|
1884
|
+
);
|
|
1885
|
+
/**
|
|
1886
|
+
* A message representing a option the parser does not recognize. This only
|
|
1887
|
+
* appears in options protos created by the compiler::Parser class.
|
|
1888
|
+
* DescriptorPool resolves these when building Descriptor objects. Therefore,
|
|
1889
|
+
* options protos in descriptor objects (e.g. returned by Descriptor::options(),
|
|
1890
|
+
* or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
|
|
1891
|
+
* in them.
|
|
1892
|
+
*
|
|
1893
|
+
* @generated from message google.protobuf.UninterpretedOption
|
|
1894
|
+
*/
|
|
1895
|
+
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
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
exports.UninterpretedOption = UninterpretedOption;
|
|
1918
|
+
UninterpretedOption.runtime = index_js_1.proto2;
|
|
1919
|
+
UninterpretedOption.typeName = "google.protobuf.UninterpretedOption";
|
|
1920
|
+
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
|
+
},
|
|
1970
|
+
]);
|
|
1971
|
+
/**
|
|
1972
|
+
* The name of the uninterpreted option. Each string represents a segment in
|
|
1973
|
+
* a dot-separated name. is_extension is true iff a segment represents an
|
|
1974
|
+
* extension (denoted with parentheses in options specs in .proto files).
|
|
1975
|
+
* E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
|
|
1976
|
+
* "foo.(bar.baz).qux".
|
|
1977
|
+
*
|
|
1978
|
+
* @generated from message google.protobuf.UninterpretedOption.NamePart
|
|
1979
|
+
*/
|
|
1980
|
+
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
|
+
}
|
|
2000
|
+
}
|
|
2001
|
+
exports.UninterpretedOption_NamePart = UninterpretedOption_NamePart;
|
|
2002
|
+
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
|
+
() => [
|
|
2007
|
+
{ no: 1, name: "name_part", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2008
|
+
{ no: 2, name: "is_extension", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2009
|
+
]
|
|
2010
|
+
);
|
|
2011
|
+
/**
|
|
2012
|
+
* Encapsulates information about the original source file from which a
|
|
2013
|
+
* FileDescriptorProto was generated.
|
|
2014
|
+
*
|
|
2015
|
+
* @generated from message google.protobuf.SourceCodeInfo
|
|
2016
|
+
*/
|
|
2017
|
+
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
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
exports.SourceCodeInfo = SourceCodeInfo;
|
|
2084
|
+
SourceCodeInfo.runtime = index_js_1.proto2;
|
|
2085
|
+
SourceCodeInfo.typeName = "google.protobuf.SourceCodeInfo";
|
|
2086
|
+
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
|
+
},
|
|
2094
|
+
]);
|
|
2095
|
+
/**
|
|
2096
|
+
* @generated from message google.protobuf.SourceCodeInfo.Location
|
|
2097
|
+
*/
|
|
2098
|
+
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
|
+
}
|
|
2157
|
+
}
|
|
2158
|
+
exports.SourceCodeInfo_Location = SourceCodeInfo_Location;
|
|
2159
|
+
SourceCodeInfo_Location.runtime = index_js_1.proto2;
|
|
2160
|
+
SourceCodeInfo_Location.typeName = "google.protobuf.SourceCodeInfo.Location";
|
|
2161
|
+
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
|
+
},
|
|
2199
|
+
]);
|
|
2200
|
+
/**
|
|
2201
|
+
* Describes the relationship between generated code and its original source
|
|
2202
|
+
* file. A GeneratedCodeInfo message is associated with only one generated
|
|
2203
|
+
* source file, but may contain references to different source .proto files.
|
|
2204
|
+
*
|
|
2205
|
+
* @generated from message google.protobuf.GeneratedCodeInfo
|
|
2206
|
+
*/
|
|
2207
|
+
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
|
+
}
|
|
2231
|
+
}
|
|
2232
|
+
exports.GeneratedCodeInfo = GeneratedCodeInfo;
|
|
2233
|
+
GeneratedCodeInfo.runtime = index_js_1.proto2;
|
|
2234
|
+
GeneratedCodeInfo.typeName = "google.protobuf.GeneratedCodeInfo";
|
|
2235
|
+
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
|
+
},
|
|
2243
|
+
]);
|
|
2244
|
+
/**
|
|
2245
|
+
* @generated from message google.protobuf.GeneratedCodeInfo.Annotation
|
|
2246
|
+
*/
|
|
2247
|
+
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
|
+
}
|
|
2274
|
+
}
|
|
2275
|
+
exports.GeneratedCodeInfo_Annotation = GeneratedCodeInfo_Annotation;
|
|
2276
|
+
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
|
+
);
|