@bufbuild/protobuf 0.0.1 → 0.0.2-alpha.3
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 +1 -21
- package/dist/cjs/binary-encoding.js +21 -8
- package/dist/cjs/binary-format.js +13 -0
- package/dist/cjs/descriptor-registry.js +13 -0
- package/dist/cjs/descriptor-set.js +13 -0
- package/dist/cjs/enum.js +13 -0
- package/dist/cjs/field-list.js +13 -0
- package/dist/cjs/field.js +13 -0
- package/dist/cjs/google/protobuf/any_pb.js +13 -33
- package/dist/cjs/google/protobuf/api_pb.js +10 -30
- package/dist/cjs/google/protobuf/compiler/plugin_pb.js +10 -45
- package/dist/cjs/google/protobuf/descriptor_pb.js +13 -39
- package/dist/cjs/google/protobuf/duration_pb.js +10 -30
- package/dist/cjs/google/protobuf/empty_pb.js +10 -30
- package/dist/cjs/google/protobuf/field_mask_pb.js +10 -30
- package/dist/cjs/google/protobuf/source_context_pb.js +10 -30
- package/dist/cjs/google/protobuf/struct_pb.js +10 -30
- package/dist/cjs/google/protobuf/timestamp_pb.js +10 -30
- package/dist/cjs/google/protobuf/type_pb.js +10 -30
- package/dist/cjs/google/protobuf/wrappers_pb.js +10 -39
- package/dist/cjs/{private/goog-varint.js → google/varint.js} +0 -0
- package/dist/cjs/index.js +21 -2
- package/dist/cjs/json-format.js +13 -0
- package/dist/cjs/message-type.js +13 -0
- package/dist/cjs/message.js +18 -6
- package/dist/cjs/private/assert.js +13 -0
- package/dist/cjs/private/binary-format-common.js +13 -0
- package/dist/cjs/private/binary-format-proto2.js +13 -0
- package/dist/cjs/private/binary-format-proto3.js +13 -0
- package/dist/cjs/private/enum.js +39 -1
- package/dist/cjs/private/field-list.js +13 -0
- package/dist/cjs/private/field-wrapper.js +13 -0
- package/dist/cjs/private/field.js +13 -0
- package/dist/cjs/private/json-format-common.js +16 -3
- package/dist/cjs/private/json-format-proto2.js +13 -0
- package/dist/cjs/private/json-format-proto3.js +13 -0
- package/dist/cjs/private/message-type.js +13 -0
- package/dist/cjs/private/names.js +13 -0
- package/dist/cjs/private/options-map.js +13 -0
- package/dist/cjs/private/proto-runtime.js +14 -0
- package/dist/cjs/private/scalars.js +13 -0
- package/dist/cjs/private/util-common.js +16 -3
- package/dist/cjs/private/util.js +13 -0
- package/dist/cjs/proto-base64.js +138 -0
- package/dist/cjs/proto-int64.js +19 -6
- package/dist/cjs/proto2.js +13 -0
- package/dist/cjs/proto3.js +13 -0
- package/dist/cjs/service-type.js +13 -0
- package/dist/cjs/type-registry.js +13 -0
- package/dist/esm/binary-encoding.js +14 -1
- package/dist/esm/binary-format.js +13 -0
- package/dist/esm/descriptor-registry.js +13 -0
- package/dist/esm/descriptor-set.js +13 -0
- package/dist/esm/enum.js +13 -0
- package/dist/esm/field-list.js +13 -0
- package/dist/esm/field.js +13 -0
- package/dist/esm/google/protobuf/any_pb.js +13 -33
- package/dist/esm/google/protobuf/api_pb.js +10 -30
- package/dist/esm/google/protobuf/compiler/plugin_pb.js +10 -45
- package/dist/esm/google/protobuf/descriptor_pb.js +13 -39
- package/dist/esm/google/protobuf/duration_pb.js +10 -30
- package/dist/esm/google/protobuf/empty_pb.js +10 -30
- package/dist/esm/google/protobuf/field_mask_pb.js +10 -30
- package/dist/esm/google/protobuf/source_context_pb.js +10 -30
- package/dist/esm/google/protobuf/struct_pb.js +10 -30
- package/dist/esm/google/protobuf/timestamp_pb.js +10 -30
- package/dist/esm/google/protobuf/type_pb.js +10 -30
- package/dist/esm/google/protobuf/wrappers_pb.js +10 -39
- package/dist/esm/{private/goog-varint.js → google/varint.js} +0 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/json-format.js +13 -0
- package/dist/esm/message-type.js +13 -0
- package/dist/esm/message.js +18 -6
- package/dist/esm/private/assert.js +13 -0
- package/dist/esm/private/binary-format-common.js +13 -0
- package/dist/esm/private/binary-format-proto2.js +13 -0
- package/dist/esm/private/binary-format-proto3.js +13 -0
- package/dist/esm/private/enum.js +37 -0
- package/dist/esm/private/field-list.js +13 -0
- package/dist/esm/private/field-wrapper.js +13 -0
- package/dist/esm/private/field.js +13 -0
- package/dist/esm/private/json-format-common.js +16 -3
- package/dist/esm/private/json-format-proto2.js +13 -0
- package/dist/esm/private/json-format-proto3.js +13 -0
- package/dist/esm/private/message-type.js +13 -0
- package/dist/esm/private/names.js +13 -0
- package/dist/esm/private/options-map.js +13 -0
- package/dist/esm/private/proto-runtime.js +15 -1
- package/dist/esm/private/scalars.js +13 -0
- package/dist/esm/private/util-common.js +16 -3
- package/dist/esm/private/util.js +13 -0
- package/dist/esm/proto-base64.js +135 -0
- package/dist/esm/proto-int64.js +14 -1
- package/dist/esm/proto2.js +13 -0
- package/dist/esm/proto3.js +13 -0
- package/dist/esm/service-type.js +13 -0
- package/dist/esm/type-registry.js +13 -0
- package/dist/types/google/protobuf/any_pb.d.ts +3 -3
- package/dist/types/google/protobuf/descriptor_pb.d.ts +16 -3
- package/dist/types/{private/goog-varint.d.ts → google/varint.d.ts} +0 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/json-format.d.ts +1 -1
- package/dist/types/message-type.d.ts +4 -3
- package/dist/types/message.d.ts +16 -15
- package/dist/types/private/enum.d.ts +9 -0
- package/dist/types/private/field-wrapper.d.ts +3 -3
- package/dist/types/private/message-type.d.ts +12 -2
- package/dist/types/private/proto-runtime.d.ts +18 -13
- package/dist/types/private/util.d.ts +4 -4
- package/dist/types/proto-base64.d.ts +26 -0
- package/dist/types/service-type.d.ts +7 -7
- package/package.json +3 -4
- package/dist/cjs/private/base64.js +0 -119
- package/dist/esm/private/base64.js +0 -114
- package/dist/types/private/base64.d.ts +0 -18
package/README.md
CHANGED
|
@@ -3,24 +3,4 @@
|
|
|
3
3
|
A complete implementation of protocol buffers in TypeScript,
|
|
4
4
|
suitable for web browsers and Node.js.
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
- small code size
|
|
8
|
-
- no dependencies
|
|
9
|
-
- implements all proto3 features, including the canonical JSON format
|
|
10
|
-
- implements all proto2 features, except for extensions and the text format
|
|
11
|
-
- passes the protocol buffers conformance tests
|
|
12
|
-
- provides all well-known types with their specialized JSON representation
|
|
13
|
-
- uses and algebraic data type to represent `oneof` groups
|
|
14
|
-
- unboxes fields using google/protobuf/wrappers.proto to optional primitives
|
|
15
|
-
- represents 64-bit integers with BigInt, and falls back to `string` if unavailable
|
|
16
|
-
- uses standard TypeScript enums for protocol buffer `enum`
|
|
17
|
-
- provides `equals()` and `clone()` on each message for convenience
|
|
18
|
-
- fields are plain properties, and support the object spread operator
|
|
19
|
-
- messages can be constructed from partial plain objects
|
|
20
|
-
- can dynamically create types at run time, for example from a set of `google.protobuf.FileDescriptorProto`
|
|
21
|
-
- provides field information to traverse types programmatically
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
### Copyright
|
|
25
|
-
|
|
26
|
-
The [code to encode and decode varint](./src/private/goog-varint.ts) is Copyright 2008 Google Inc., licensed under BSD-3-Clause.
|
|
6
|
+
Learn more at [github.com/bufbuild/protobuf-es](github.com/bufbuild/protobuf-es).
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// Copyright 2021-2022 Buf Technologies, Inc.
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
2
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
16
|
exports.BinaryReader = exports.BinaryWriter = exports.WireType = void 0;
|
|
4
|
-
const
|
|
17
|
+
const varint_js_1 = require("./google/varint.js");
|
|
5
18
|
const assert_js_1 = require("./private/assert.js");
|
|
6
19
|
const proto_int64_js_1 = require("./proto-int64.js");
|
|
7
20
|
/* eslint-disable prefer-const,no-case-declarations,@typescript-eslint/restrict-plus-operands */
|
|
@@ -143,7 +156,7 @@ class BinaryWriter {
|
|
|
143
156
|
*/
|
|
144
157
|
int32(value) {
|
|
145
158
|
(0, assert_js_1.assertInt32)(value);
|
|
146
|
-
(0,
|
|
159
|
+
(0, varint_js_1.varint32write)(value, this.buf);
|
|
147
160
|
return this;
|
|
148
161
|
}
|
|
149
162
|
/**
|
|
@@ -210,7 +223,7 @@ class BinaryWriter {
|
|
|
210
223
|
(0, assert_js_1.assertInt32)(value);
|
|
211
224
|
// zigzag encode
|
|
212
225
|
value = ((value << 1) ^ (value >> 31)) >>> 0;
|
|
213
|
-
(0,
|
|
226
|
+
(0, varint_js_1.varint32write)(value, this.buf);
|
|
214
227
|
return this;
|
|
215
228
|
}
|
|
216
229
|
/**
|
|
@@ -236,7 +249,7 @@ class BinaryWriter {
|
|
|
236
249
|
*/
|
|
237
250
|
int64(value) {
|
|
238
251
|
let tc = proto_int64_js_1.protoInt64.enc(value);
|
|
239
|
-
(0,
|
|
252
|
+
(0, varint_js_1.varint64write)(tc.lo, tc.hi, this.buf);
|
|
240
253
|
return this;
|
|
241
254
|
}
|
|
242
255
|
/**
|
|
@@ -246,7 +259,7 @@ class BinaryWriter {
|
|
|
246
259
|
let tc = proto_int64_js_1.protoInt64.enc(value),
|
|
247
260
|
// zigzag encode
|
|
248
261
|
sign = tc.hi >> 31, lo = (tc.lo << 1) ^ sign, hi = ((tc.hi << 1) | (tc.lo >>> 31)) ^ sign;
|
|
249
|
-
(0,
|
|
262
|
+
(0, varint_js_1.varint64write)(lo, hi, this.buf);
|
|
250
263
|
return this;
|
|
251
264
|
}
|
|
252
265
|
/**
|
|
@@ -254,18 +267,18 @@ class BinaryWriter {
|
|
|
254
267
|
*/
|
|
255
268
|
uint64(value) {
|
|
256
269
|
let tc = proto_int64_js_1.protoInt64.uEnc(value);
|
|
257
|
-
(0,
|
|
270
|
+
(0, varint_js_1.varint64write)(tc.lo, tc.hi, this.buf);
|
|
258
271
|
return this;
|
|
259
272
|
}
|
|
260
273
|
}
|
|
261
274
|
exports.BinaryWriter = BinaryWriter;
|
|
262
275
|
class BinaryReader {
|
|
263
276
|
constructor(buf, textDecoder) {
|
|
264
|
-
this.varint64 =
|
|
277
|
+
this.varint64 = varint_js_1.varint64read; // dirty cast for `this`
|
|
265
278
|
/**
|
|
266
279
|
* Read a `uint32` field, an unsigned 32 bit varint.
|
|
267
280
|
*/
|
|
268
|
-
this.uint32 =
|
|
281
|
+
this.uint32 = varint_js_1.varint32read; // dirty cast for `this` and access to protected `buf`
|
|
269
282
|
this.buf = buf;
|
|
270
283
|
this.len = buf.length;
|
|
271
284
|
this.pos = 0;
|
|
@@ -1,2 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// Copyright 2021-2022 Buf Technologies, Inc.
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
2
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// Copyright 2021-2022 Buf Technologies, Inc.
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
2
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
16
|
exports.DescriptorRegistry = void 0;
|
|
4
17
|
const assert_js_1 = require("./private/assert.js");
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// Copyright 2021-2022 Buf Technologies, Inc.
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
2
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
16
|
exports.DescriptorSet = void 0;
|
|
4
17
|
const descriptor_pb_js_1 = require("./google/protobuf/descriptor_pb.js");
|
package/dist/cjs/enum.js
CHANGED
|
@@ -1,2 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// Copyright 2021-2022 Buf Technologies, Inc.
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
2
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/cjs/field-list.js
CHANGED
|
@@ -1,2 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// Copyright 2021-2022 Buf Technologies, Inc.
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
2
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/cjs/field.js
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// Copyright 2021-2022 Buf Technologies, Inc.
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
2
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
16
|
exports.ScalarType = void 0;
|
|
4
17
|
/**
|
|
@@ -1,37 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
// @generated by protoc-gen-es v0.0.1 with parameter "bootstrap_wkt=true,ts_nocheck=false"
|
|
4
|
-
// @generated from file google/protobuf/any.proto (package google.protobuf, syntax proto3)
|
|
2
|
+
// Copyright 2021-2022 Buf Technologies, Inc.
|
|
5
3
|
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
9
7
|
//
|
|
10
|
-
//
|
|
11
|
-
// modification, are permitted provided that the following conditions are
|
|
12
|
-
// met:
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
13
9
|
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
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.
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
35
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
16
|
exports.Any = void 0;
|
|
37
17
|
const index_js_1 = require("../../index.js");
|
|
@@ -61,7 +41,7 @@ const index_js_1 = require("../../index.js");
|
|
|
61
41
|
* foo = any.unpack(Foo.class);
|
|
62
42
|
* }
|
|
63
43
|
*
|
|
64
|
-
*
|
|
44
|
+
* Example 3: Pack and unpack a message in Python.
|
|
65
45
|
*
|
|
66
46
|
* foo = Foo(...)
|
|
67
47
|
* any = Any()
|
|
@@ -71,7 +51,7 @@ const index_js_1 = require("../../index.js");
|
|
|
71
51
|
* any.Unpack(foo)
|
|
72
52
|
* ...
|
|
73
53
|
*
|
|
74
|
-
*
|
|
54
|
+
* Example 4: Pack and unpack a message in Go
|
|
75
55
|
*
|
|
76
56
|
* foo := &pb.Foo{...}
|
|
77
57
|
* any, err := anypb.New(foo)
|
|
@@ -92,7 +72,7 @@ const index_js_1 = require("../../index.js");
|
|
|
92
72
|
*
|
|
93
73
|
*
|
|
94
74
|
* JSON
|
|
95
|
-
*
|
|
75
|
+
*
|
|
96
76
|
* The JSON representation of an `Any` value uses the regular
|
|
97
77
|
* representation of the deserialized, embedded message, with an
|
|
98
78
|
* additional field `@type` which contains the type URL. Example:
|
|
@@ -1,37 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
// @generated by protoc-gen-es v0.0.1 with parameter "bootstrap_wkt=true,ts_nocheck=false"
|
|
4
|
-
// @generated from file google/protobuf/api.proto (package google.protobuf, syntax proto3)
|
|
2
|
+
// Copyright 2021-2022 Buf Technologies, Inc.
|
|
5
3
|
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
9
7
|
//
|
|
10
|
-
//
|
|
11
|
-
// modification, are permitted provided that the following conditions are
|
|
12
|
-
// met:
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
13
9
|
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
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.
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
35
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
16
|
exports.Mixin = exports.Method = exports.Api = void 0;
|
|
37
17
|
const index_js_1 = require("../../index.js");
|
|
@@ -1,52 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
// @generated by protoc-gen-es v0.0.1 with parameter "bootstrap_wkt=true,ts_nocheck=false"
|
|
4
|
-
// @generated from file google/protobuf/compiler/plugin.proto (package google.protobuf.compiler, syntax proto2)
|
|
2
|
+
// Copyright 2021-2022 Buf Technologies, Inc.
|
|
5
3
|
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
9
7
|
//
|
|
10
|
-
//
|
|
11
|
-
// modification, are permitted provided that the following conditions are
|
|
12
|
-
// met:
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
13
9
|
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
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
|
-
//
|
|
37
|
-
// WARNING: The plugin interface is currently EXPERIMENTAL and is subject to
|
|
38
|
-
// change.
|
|
39
|
-
//
|
|
40
|
-
// protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is
|
|
41
|
-
// just a program that reads a CodeGeneratorRequest from stdin and writes a
|
|
42
|
-
// CodeGeneratorResponse to stdout.
|
|
43
|
-
//
|
|
44
|
-
// Plugins written using C++ can use google/protobuf/compiler/plugin.h instead
|
|
45
|
-
// of dealing with the raw protocol defined here.
|
|
46
|
-
//
|
|
47
|
-
// A plugin executable needs only to be placed somewhere in the path. The
|
|
48
|
-
// plugin should be named "protoc-gen-$NAME", and will then be used when the
|
|
49
|
-
// flag "--${NAME}_out" is passed to protoc.
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
50
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
16
|
exports.CodeGeneratorResponse_File = exports.CodeGeneratorResponse_Feature = exports.CodeGeneratorResponse = exports.CodeGeneratorRequest = exports.Version = void 0;
|
|
52
17
|
const index_js_1 = require("../../../index.js");
|
|
@@ -1,44 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
// @generated by protoc-gen-es v0.0.1 with parameter "bootstrap_wkt=true,ts_nocheck=false"
|
|
4
|
-
// @generated from file google/protobuf/descriptor.proto (package google.protobuf, syntax proto2)
|
|
2
|
+
// Copyright 2021-2022 Buf Technologies, Inc.
|
|
5
3
|
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
9
7
|
//
|
|
10
|
-
//
|
|
11
|
-
// modification, are permitted provided that the following conditions are
|
|
12
|
-
// met:
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
13
9
|
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
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).
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
42
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
16
|
exports.GeneratedCodeInfo_Annotation = exports.GeneratedCodeInfo = exports.SourceCodeInfo_Location = exports.SourceCodeInfo = exports.UninterpretedOption_NamePart = exports.UninterpretedOption = exports.MethodOptions_IdempotencyLevel = exports.MethodOptions = exports.ServiceOptions = exports.EnumValueOptions = exports.EnumOptions = exports.OneofOptions = exports.FieldOptions_JSType = exports.FieldOptions_CType = exports.FieldOptions = exports.MessageOptions = exports.FileOptions_OptimizeMode = exports.FileOptions = exports.MethodDescriptorProto = exports.ServiceDescriptorProto = exports.EnumValueDescriptorProto = exports.EnumDescriptorProto_EnumReservedRange = exports.EnumDescriptorProto = exports.OneofDescriptorProto = exports.FieldDescriptorProto_Label = exports.FieldDescriptorProto_Type = exports.FieldDescriptorProto = exports.ExtensionRangeOptions = exports.DescriptorProto_ReservedRange = exports.DescriptorProto_ExtensionRange = exports.DescriptorProto = exports.FileDescriptorProto = exports.FileDescriptorSet = void 0;
|
|
44
17
|
const index_js_1 = require("../../index.js");
|
|
@@ -883,6 +856,7 @@ FieldOptions.fields = index_js_1.proto2.util.newFieldList(() => [
|
|
|
883
856
|
{ no: 2, name: "packed", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
884
857
|
{ no: 6, name: "jstype", kind: "enum", T: index_js_1.proto2.getEnumType(FieldOptions_JSType), opt: true, default: FieldOptions_JSType.JS_NORMAL },
|
|
885
858
|
{ no: 5, name: "lazy", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
859
|
+
{ no: 15, name: "unverified_lazy", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
886
860
|
{ no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
887
861
|
{ no: 10, name: "weak", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
888
862
|
{ no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
|
|
@@ -1313,8 +1287,8 @@ class SourceCodeInfo_Location extends index_js_1.Message {
|
|
|
1313
1287
|
* location.
|
|
1314
1288
|
*
|
|
1315
1289
|
* Each element is a field number or an index. They form a path from
|
|
1316
|
-
* the root FileDescriptorProto to the place where the definition.
|
|
1317
|
-
* example, this path:
|
|
1290
|
+
* the root FileDescriptorProto to the place where the definition occurs.
|
|
1291
|
+
* For example, this path:
|
|
1318
1292
|
* [ 4, 3, 2, 7, 1 ]
|
|
1319
1293
|
* refers to:
|
|
1320
1294
|
* file.message_type(3) // 4, 3
|
|
@@ -1,37 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
// @generated by protoc-gen-es v0.0.1 with parameter "bootstrap_wkt=true,ts_nocheck=false"
|
|
4
|
-
// @generated from file google/protobuf/duration.proto (package google.protobuf, syntax proto3)
|
|
2
|
+
// Copyright 2021-2022 Buf Technologies, Inc.
|
|
5
3
|
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
9
7
|
//
|
|
10
|
-
//
|
|
11
|
-
// modification, are permitted provided that the following conditions are
|
|
12
|
-
// met:
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
13
9
|
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
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.
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
35
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
16
|
exports.Duration = void 0;
|
|
37
17
|
const index_js_1 = require("../../index.js");
|
|
@@ -1,37 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
// @generated by protoc-gen-es v0.0.1 with parameter "bootstrap_wkt=true,ts_nocheck=false"
|
|
4
|
-
// @generated from file google/protobuf/empty.proto (package google.protobuf, syntax proto3)
|
|
2
|
+
// Copyright 2021-2022 Buf Technologies, Inc.
|
|
5
3
|
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
9
7
|
//
|
|
10
|
-
//
|
|
11
|
-
// modification, are permitted provided that the following conditions are
|
|
12
|
-
// met:
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
13
9
|
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
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.
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
35
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
16
|
exports.Empty = void 0;
|
|
37
17
|
const index_js_1 = require("../../index.js");
|