@bufbuild/protobuf 2.0.0-alpha.1 → 2.0.0-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 -1
- package/dist/cjs/clone.d.ts +1 -1
- package/dist/cjs/clone.js +2 -2
- package/dist/cjs/codegenv1/boot.d.ts +1 -1
- package/dist/cjs/codegenv1/boot.js +3 -5
- package/dist/cjs/codegenv1/embed.d.ts +2 -2
- package/dist/cjs/codegenv1/embed.js +51 -46
- package/dist/cjs/codegenv1/enum.d.ts +1 -1
- package/dist/cjs/codegenv1/enum.js +2 -4
- package/dist/cjs/codegenv1/extension.d.ts +1 -1
- package/dist/cjs/codegenv1/file.d.ts +1 -1
- package/dist/cjs/codegenv1/file.js +5 -7
- package/dist/cjs/codegenv1/index.d.ts +1 -0
- package/dist/cjs/codegenv1/index.js +1 -0
- package/dist/cjs/codegenv1/message.d.ts +1 -1
- package/dist/cjs/codegenv1/restore-json-names.d.ts +3 -0
- package/dist/cjs/codegenv1/restore-json-names.js +3 -0
- package/dist/cjs/codegenv1/scalar.d.ts +5 -0
- package/dist/cjs/codegenv1/scalar.js +39 -0
- package/dist/cjs/codegenv1/service.d.ts +3 -3
- package/dist/cjs/codegenv1/symbols.d.ts +9 -0
- package/dist/cjs/codegenv1/symbols.js +9 -0
- package/dist/cjs/codegenv1/types.d.ts +59 -8
- package/dist/cjs/create.d.ts +1 -1
- package/dist/cjs/create.js +13 -23
- package/dist/cjs/{desc-types.d.ts → descriptors.d.ts} +66 -17
- package/dist/cjs/descriptors.js +53 -0
- package/dist/cjs/equals.d.ts +1 -1
- package/dist/cjs/extensions.d.ts +21 -1
- package/dist/cjs/extensions.js +42 -10
- package/dist/cjs/fields.d.ts +17 -16
- package/dist/cjs/fields.js +17 -10
- package/dist/cjs/from-binary.d.ts +2 -2
- package/dist/cjs/from-binary.js +31 -41
- package/dist/cjs/from-json.d.ts +4 -4
- package/dist/cjs/from-json.js +200 -185
- package/dist/cjs/index.d.ts +3 -2
- package/dist/cjs/index.js +5 -2
- package/dist/cjs/is-message.d.ts +1 -1
- package/dist/cjs/proto-int64.d.ts +4 -1
- package/dist/cjs/proto-int64.js +16 -6
- package/dist/cjs/reflect/error.d.ts +1 -1
- package/dist/cjs/reflect/guard.d.ts +1 -1
- package/dist/cjs/reflect/index.d.ts +0 -1
- package/dist/cjs/reflect/index.js +0 -1
- package/dist/cjs/reflect/names.d.ts +1 -13
- package/dist/cjs/reflect/names.js +2 -40
- package/dist/cjs/reflect/nested-types.d.ts +11 -1
- package/dist/cjs/reflect/nested-types.js +34 -1
- package/dist/cjs/reflect/reflect-check.d.ts +10 -1
- package/dist/cjs/reflect/reflect-check.js +126 -9
- package/dist/cjs/reflect/reflect-types.d.ts +162 -14
- package/dist/cjs/reflect/reflect.d.ts +12 -3
- package/dist/cjs/reflect/reflect.js +316 -290
- package/dist/cjs/reflect/scalar.d.ts +3 -55
- package/dist/cjs/reflect/scalar.js +26 -220
- package/dist/cjs/reflect/unsafe.d.ts +1 -1
- package/dist/cjs/reflect/unsafe.js +38 -43
- package/dist/cjs/{reflect/registry.d.ts → registry.d.ts} +2 -2
- package/dist/cjs/{reflect/registry.js → registry.js} +100 -73
- package/dist/cjs/to-binary.d.ts +1 -1
- package/dist/cjs/to-binary.js +28 -30
- package/dist/cjs/to-json.d.ts +7 -6
- package/dist/cjs/to-json.js +63 -70
- package/dist/cjs/types.d.ts +1 -1
- package/dist/cjs/wire/base64-encoding.js +4 -4
- package/dist/cjs/wire/binary-encoding.d.ts +25 -3
- package/dist/cjs/wire/binary-encoding.js +70 -18
- package/dist/cjs/wire/size-delimited.d.ts +1 -1
- package/dist/cjs/wire/text-format.d.ts +1 -2
- package/dist/cjs/wire/text-format.js +21 -19
- package/dist/cjs/wkt/any.d.ts +3 -3
- package/dist/cjs/wkt/gen/google/protobuf/any_pb.d.ts +7 -0
- package/dist/cjs/wkt/gen/google/protobuf/any_pb.js +7 -2
- package/dist/cjs/wkt/gen/google/protobuf/api_pb.d.ts +15 -0
- package/dist/cjs/wkt/gen/google/protobuf/api_pb.js +15 -6
- package/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts +22 -0
- package/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.js +22 -9
- package/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.d.ts +192 -0
- package/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.js +187 -84
- package/dist/cjs/wkt/gen/google/protobuf/duration_pb.d.ts +7 -0
- package/dist/cjs/wkt/gen/google/protobuf/duration_pb.js +7 -2
- package/dist/cjs/wkt/gen/google/protobuf/empty_pb.d.ts +7 -0
- package/dist/cjs/wkt/gen/google/protobuf/empty_pb.js +7 -2
- package/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.d.ts +7 -0
- package/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.js +7 -2
- package/dist/cjs/wkt/gen/google/protobuf/source_context_pb.d.ts +7 -0
- package/dist/cjs/wkt/gen/google/protobuf/source_context_pb.js +7 -2
- package/dist/cjs/wkt/gen/google/protobuf/struct_pb.d.ts +18 -0
- package/dist/cjs/wkt/gen/google/protobuf/struct_pb.js +18 -7
- package/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.d.ts +7 -0
- package/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.js +7 -2
- package/dist/cjs/wkt/gen/google/protobuf/type_pb.d.ts +32 -0
- package/dist/cjs/wkt/gen/google/protobuf/type_pb.js +32 -13
- package/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.d.ts +39 -0
- package/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.js +39 -18
- package/dist/cjs/wkt/wrappers.d.ts +1 -1
- package/dist/esm/clone.d.ts +1 -1
- package/dist/esm/clone.js +1 -1
- package/dist/esm/codegenv1/boot.d.ts +1 -1
- package/dist/esm/codegenv1/boot.js +3 -5
- package/dist/esm/codegenv1/embed.d.ts +2 -2
- package/dist/esm/codegenv1/embed.js +34 -29
- package/dist/esm/codegenv1/enum.d.ts +1 -1
- package/dist/esm/codegenv1/enum.js +2 -4
- package/dist/esm/codegenv1/extension.d.ts +1 -1
- package/dist/esm/codegenv1/file.d.ts +1 -1
- package/dist/esm/codegenv1/file.js +4 -6
- package/dist/esm/codegenv1/index.d.ts +1 -0
- package/dist/esm/codegenv1/index.js +1 -0
- package/dist/esm/codegenv1/message.d.ts +1 -1
- package/dist/esm/codegenv1/restore-json-names.d.ts +3 -0
- package/dist/esm/codegenv1/restore-json-names.js +3 -0
- package/dist/esm/codegenv1/scalar.d.ts +5 -0
- package/dist/esm/codegenv1/scalar.js +35 -0
- package/dist/esm/codegenv1/service.d.ts +3 -3
- package/dist/esm/codegenv1/symbols.d.ts +9 -0
- package/dist/esm/codegenv1/symbols.js +9 -0
- package/dist/esm/codegenv1/types.d.ts +59 -8
- package/dist/esm/create.d.ts +1 -1
- package/dist/esm/create.js +11 -21
- package/dist/esm/{desc-types.d.ts → descriptors.d.ts} +66 -17
- package/dist/esm/descriptors.js +50 -0
- package/dist/esm/equals.d.ts +1 -1
- package/dist/esm/extensions.d.ts +21 -1
- package/dist/esm/extensions.js +39 -9
- package/dist/esm/fields.d.ts +17 -16
- package/dist/esm/fields.js +17 -10
- package/dist/esm/from-binary.d.ts +2 -2
- package/dist/esm/from-binary.js +13 -23
- package/dist/esm/from-json.d.ts +4 -4
- package/dist/esm/from-json.js +193 -178
- package/dist/esm/index.d.ts +3 -2
- package/dist/esm/index.js +3 -2
- package/dist/esm/is-message.d.ts +1 -1
- package/dist/esm/proto-int64.d.ts +4 -1
- package/dist/esm/proto-int64.js +16 -6
- package/dist/esm/reflect/error.d.ts +1 -1
- package/dist/esm/reflect/guard.d.ts +1 -1
- package/dist/esm/reflect/index.d.ts +0 -1
- package/dist/esm/reflect/index.js +0 -1
- package/dist/esm/reflect/names.d.ts +1 -13
- package/dist/esm/reflect/names.js +1 -38
- package/dist/esm/reflect/nested-types.d.ts +11 -1
- package/dist/esm/reflect/nested-types.js +32 -0
- package/dist/esm/reflect/reflect-check.d.ts +10 -1
- package/dist/esm/reflect/reflect-check.js +119 -2
- package/dist/esm/reflect/reflect-types.d.ts +162 -14
- package/dist/esm/reflect/reflect-types.js +1 -0
- package/dist/esm/reflect/reflect.d.ts +12 -3
- package/dist/esm/reflect/reflect.js +305 -279
- package/dist/esm/reflect/scalar.d.ts +3 -55
- package/dist/esm/reflect/scalar.js +14 -205
- package/dist/esm/reflect/unsafe.d.ts +1 -1
- package/dist/esm/reflect/unsafe.js +38 -43
- package/dist/esm/{reflect/registry.d.ts → registry.d.ts} +2 -2
- package/dist/esm/{reflect/registry.js → registry.js} +90 -63
- package/dist/esm/to-binary.d.ts +1 -1
- package/dist/esm/to-binary.js +2 -4
- package/dist/esm/to-json.d.ts +7 -6
- package/dist/esm/to-json.js +48 -55
- package/dist/esm/types.d.ts +1 -1
- package/dist/esm/wire/base64-encoding.js +4 -4
- package/dist/esm/wire/binary-encoding.d.ts +25 -3
- package/dist/esm/wire/binary-encoding.js +63 -11
- package/dist/esm/wire/size-delimited.d.ts +1 -1
- package/dist/esm/wire/text-format.d.ts +1 -2
- package/dist/esm/wire/text-format.js +5 -3
- package/dist/esm/wkt/any.d.ts +3 -3
- package/dist/esm/wkt/gen/google/protobuf/any_pb.d.ts +7 -0
- package/dist/esm/wkt/gen/google/protobuf/any_pb.js +7 -2
- package/dist/esm/wkt/gen/google/protobuf/api_pb.d.ts +15 -0
- package/dist/esm/wkt/gen/google/protobuf/api_pb.js +15 -6
- package/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts +22 -0
- package/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +22 -9
- package/dist/esm/wkt/gen/google/protobuf/descriptor_pb.d.ts +192 -0
- package/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +187 -84
- package/dist/esm/wkt/gen/google/protobuf/duration_pb.d.ts +7 -0
- package/dist/esm/wkt/gen/google/protobuf/duration_pb.js +7 -2
- package/dist/esm/wkt/gen/google/protobuf/empty_pb.d.ts +7 -0
- package/dist/esm/wkt/gen/google/protobuf/empty_pb.js +7 -2
- package/dist/esm/wkt/gen/google/protobuf/field_mask_pb.d.ts +7 -0
- package/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +7 -2
- package/dist/esm/wkt/gen/google/protobuf/source_context_pb.d.ts +7 -0
- package/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +7 -2
- package/dist/esm/wkt/gen/google/protobuf/struct_pb.d.ts +18 -0
- package/dist/esm/wkt/gen/google/protobuf/struct_pb.js +18 -7
- package/dist/esm/wkt/gen/google/protobuf/timestamp_pb.d.ts +7 -0
- package/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +7 -2
- package/dist/esm/wkt/gen/google/protobuf/type_pb.d.ts +32 -0
- package/dist/esm/wkt/gen/google/protobuf/type_pb.js +32 -13
- package/dist/esm/wkt/gen/google/protobuf/wrappers_pb.d.ts +39 -0
- package/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +39 -18
- package/dist/esm/wkt/wrappers.d.ts +1 -1
- package/package.json +2 -2
- package/dist/cjs/desc-types.js +0 -15
- package/dist/cjs/reflect/assert.d.ts +0 -16
- package/dist/cjs/reflect/assert.js +0 -59
- package/dist/esm/desc-types.js +0 -14
- package/dist/esm/reflect/assert.d.ts +0 -16
- package/dist/esm/reflect/assert.js +0 -52
|
@@ -13,7 +13,12 @@
|
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
import { fileDesc } from "../../../../codegenv1/file.js";
|
|
15
15
|
import { messageDesc } from "../../../../codegenv1/message.js";
|
|
16
|
+
/**
|
|
17
|
+
* Describes the file google/protobuf/duration.proto.
|
|
18
|
+
*/
|
|
16
19
|
export const fileDesc_google_protobuf_duration = /*@__PURE__*/ fileDesc("Ch5nb29nbGUvcHJvdG9idWYvZHVyYXRpb24ucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIqCghEdXJhdGlvbhIPCgdzZWNvbmRzGAEgASgDEg0KBW5hbm9zGAIgASgFQoMBChNjb20uZ29vZ2xlLnByb3RvYnVmQg1EdXJhdGlvblByb3RvUAFaMWdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2R1cmF0aW9ucGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw");
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message google.protobuf.Duration.
|
|
22
|
+
* Use `create(DurationDesc)` to create a new message.
|
|
23
|
+
*/
|
|
19
24
|
export const DurationDesc = /*@__PURE__*/ messageDesc(fileDesc_google_protobuf_duration, 0);
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { GenDescFile, GenDescMessage } from "../../../../codegenv1/types.js";
|
|
2
2
|
import type { Message } from "../../../../types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file google/protobuf/empty.proto.
|
|
5
|
+
*/
|
|
3
6
|
export declare const fileDesc_google_protobuf_empty: GenDescFile;
|
|
4
7
|
/**
|
|
5
8
|
* A generic empty message that you can re-use to avoid defining duplicated
|
|
@@ -14,4 +17,8 @@ export declare const fileDesc_google_protobuf_empty: GenDescFile;
|
|
|
14
17
|
* @generated from message google.protobuf.Empty
|
|
15
18
|
*/
|
|
16
19
|
export type Empty = Message<"google.protobuf.Empty"> & {};
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message google.protobuf.Empty.
|
|
22
|
+
* Use `create(EmptyDesc)` to create a new message.
|
|
23
|
+
*/
|
|
17
24
|
export declare const EmptyDesc: GenDescMessage<Empty>;
|
|
@@ -13,7 +13,12 @@
|
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
import { fileDesc } from "../../../../codegenv1/file.js";
|
|
15
15
|
import { messageDesc } from "../../../../codegenv1/message.js";
|
|
16
|
+
/**
|
|
17
|
+
* Describes the file google/protobuf/empty.proto.
|
|
18
|
+
*/
|
|
16
19
|
export const fileDesc_google_protobuf_empty = /*@__PURE__*/ fileDesc("Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIHCgVFbXB0eUJ9ChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3RvUAFaLmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2VtcHR5cGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw");
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message google.protobuf.Empty.
|
|
22
|
+
* Use `create(EmptyDesc)` to create a new message.
|
|
23
|
+
*/
|
|
19
24
|
export const EmptyDesc = /*@__PURE__*/ messageDesc(fileDesc_google_protobuf_empty, 0);
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { GenDescFile, GenDescMessage } from "../../../../codegenv1/types.js";
|
|
2
2
|
import type { Message } from "../../../../types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file google/protobuf/field_mask.proto.
|
|
5
|
+
*/
|
|
3
6
|
export declare const fileDesc_google_protobuf_field_mask: GenDescFile;
|
|
4
7
|
/**
|
|
5
8
|
* `FieldMask` represents a set of symbolic field paths, for example:
|
|
@@ -212,4 +215,8 @@ export type FieldMask = Message<"google.protobuf.FieldMask"> & {
|
|
|
212
215
|
*/
|
|
213
216
|
paths: string[];
|
|
214
217
|
};
|
|
218
|
+
/**
|
|
219
|
+
* Describes the message google.protobuf.FieldMask.
|
|
220
|
+
* Use `create(FieldMaskDesc)` to create a new message.
|
|
221
|
+
*/
|
|
215
222
|
export declare const FieldMaskDesc: GenDescMessage<FieldMask>;
|
|
@@ -13,7 +13,12 @@
|
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
import { fileDesc } from "../../../../codegenv1/file.js";
|
|
15
15
|
import { messageDesc } from "../../../../codegenv1/message.js";
|
|
16
|
+
/**
|
|
17
|
+
* Describes the file google/protobuf/field_mask.proto.
|
|
18
|
+
*/
|
|
16
19
|
export const fileDesc_google_protobuf_field_mask = /*@__PURE__*/ fileDesc("CiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90bxIPZ29vZ2xlLnByb3RvYnVmIhoKCUZpZWxkTWFzaxINCgVwYXRocxgBIAMoCUKFAQoTY29tLmdvb2dsZS5wcm90b2J1ZkIORmllbGRNYXNrUHJvdG9QAVoyZ29vZ2xlLmdvbGFuZy5vcmcvcHJvdG9idWYvdHlwZXMva25vd24vZmllbGRtYXNrcGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw");
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message google.protobuf.FieldMask.
|
|
22
|
+
* Use `create(FieldMaskDesc)` to create a new message.
|
|
23
|
+
*/
|
|
19
24
|
export const FieldMaskDesc = /*@__PURE__*/ messageDesc(fileDesc_google_protobuf_field_mask, 0);
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { GenDescFile, GenDescMessage } from "../../../../codegenv1/types.js";
|
|
2
2
|
import type { Message } from "../../../../types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file google/protobuf/source_context.proto.
|
|
5
|
+
*/
|
|
3
6
|
export declare const fileDesc_google_protobuf_source_context: GenDescFile;
|
|
4
7
|
/**
|
|
5
8
|
* `SourceContext` represents information about the source of a
|
|
@@ -16,4 +19,8 @@ export type SourceContext = Message<"google.protobuf.SourceContext"> & {
|
|
|
16
19
|
*/
|
|
17
20
|
fileName: string;
|
|
18
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message google.protobuf.SourceContext.
|
|
24
|
+
* Use `create(SourceContextDesc)` to create a new message.
|
|
25
|
+
*/
|
|
19
26
|
export declare const SourceContextDesc: GenDescMessage<SourceContext>;
|
|
@@ -13,7 +13,12 @@
|
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
import { fileDesc } from "../../../../codegenv1/file.js";
|
|
15
15
|
import { messageDesc } from "../../../../codegenv1/message.js";
|
|
16
|
+
/**
|
|
17
|
+
* Describes the file google/protobuf/source_context.proto.
|
|
18
|
+
*/
|
|
16
19
|
export const fileDesc_google_protobuf_source_context = /*@__PURE__*/ fileDesc("CiRnb29nbGUvcHJvdG9idWYvc291cmNlX2NvbnRleHQucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIiCg1Tb3VyY2VDb250ZXh0EhEKCWZpbGVfbmFtZRgBIAEoCUKKAQoTY29tLmdvb2dsZS5wcm90b2J1ZkISU291cmNlQ29udGV4dFByb3RvUAFaNmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3NvdXJjZWNvbnRleHRwYqICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJvdG8z");
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message google.protobuf.SourceContext.
|
|
22
|
+
* Use `create(SourceContextDesc)` to create a new message.
|
|
23
|
+
*/
|
|
19
24
|
export const SourceContextDesc = /*@__PURE__*/ messageDesc(fileDesc_google_protobuf_source_context, 0);
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { GenDescEnum, GenDescFile, GenDescMessage } from "../../../../codegenv1/types.js";
|
|
2
2
|
import type { Message } from "../../../../types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file google/protobuf/struct.proto.
|
|
5
|
+
*/
|
|
3
6
|
export declare const fileDesc_google_protobuf_struct: GenDescFile;
|
|
4
7
|
/**
|
|
5
8
|
* `Struct` represents a structured data value, consisting of fields
|
|
@@ -23,6 +26,10 @@ export type Struct = Message<"google.protobuf.Struct"> & {
|
|
|
23
26
|
[key: string]: Value;
|
|
24
27
|
};
|
|
25
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Describes the message google.protobuf.Struct.
|
|
31
|
+
* Use `create(StructDesc)` to create a new message.
|
|
32
|
+
*/
|
|
26
33
|
export declare const StructDesc: GenDescMessage<Struct>;
|
|
27
34
|
/**
|
|
28
35
|
* `Value` represents a dynamically typed value which can be either
|
|
@@ -93,6 +100,10 @@ export type Value = Message<"google.protobuf.Value"> & {
|
|
|
93
100
|
value?: undefined;
|
|
94
101
|
};
|
|
95
102
|
};
|
|
103
|
+
/**
|
|
104
|
+
* Describes the message google.protobuf.Value.
|
|
105
|
+
* Use `create(ValueDesc)` to create a new message.
|
|
106
|
+
*/
|
|
96
107
|
export declare const ValueDesc: GenDescMessage<Value>;
|
|
97
108
|
/**
|
|
98
109
|
* `ListValue` is a wrapper around a repeated field of values.
|
|
@@ -109,6 +120,10 @@ export type ListValue = Message<"google.protobuf.ListValue"> & {
|
|
|
109
120
|
*/
|
|
110
121
|
values: Value[];
|
|
111
122
|
};
|
|
123
|
+
/**
|
|
124
|
+
* Describes the message google.protobuf.ListValue.
|
|
125
|
+
* Use `create(ListValueDesc)` to create a new message.
|
|
126
|
+
*/
|
|
112
127
|
export declare const ListValueDesc: GenDescMessage<ListValue>;
|
|
113
128
|
/**
|
|
114
129
|
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
@@ -126,4 +141,7 @@ export declare enum NullValue {
|
|
|
126
141
|
*/
|
|
127
142
|
NULL_VALUE = 0
|
|
128
143
|
}
|
|
144
|
+
/**
|
|
145
|
+
* Describes the enum google.protobuf.NullValue.
|
|
146
|
+
*/
|
|
129
147
|
export declare const NullValueDesc: GenDescEnum<NullValue>;
|
|
@@ -14,15 +14,24 @@
|
|
|
14
14
|
import { fileDesc } from "../../../../codegenv1/file.js";
|
|
15
15
|
import { messageDesc } from "../../../../codegenv1/message.js";
|
|
16
16
|
import { enumDesc } from "../../../../codegenv1/enum.js";
|
|
17
|
+
/**
|
|
18
|
+
* Describes the file google/protobuf/struct.proto.
|
|
19
|
+
*/
|
|
17
20
|
export const fileDesc_google_protobuf_struct = /*@__PURE__*/ fileDesc("Chxnb29nbGUvcHJvdG9idWYvc3RydWN0LnByb3RvEg9nb29nbGUucHJvdG9idWYihAEKBlN0cnVjdBIzCgZmaWVsZHMYASADKAsyIy5nb29nbGUucHJvdG9idWYuU3RydWN0LkZpZWxkc0VudHJ5GkUKC0ZpZWxkc0VudHJ5EgsKA2tleRgBIAEoCRIlCgV2YWx1ZRgCIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZToCOAEi6gEKBVZhbHVlEjAKCm51bGxfdmFsdWUYASABKA4yGi5nb29nbGUucHJvdG9idWYuTnVsbFZhbHVlSAASFgoMbnVtYmVyX3ZhbHVlGAIgASgBSAASFgoMc3RyaW5nX3ZhbHVlGAMgASgJSAASFAoKYm9vbF92YWx1ZRgEIAEoCEgAEi8KDHN0cnVjdF92YWx1ZRgFIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RIABIwCgpsaXN0X3ZhbHVlGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLkxpc3RWYWx1ZUgAQgYKBGtpbmQiMwoJTGlzdFZhbHVlEiYKBnZhbHVlcxgBIAMoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZSobCglOdWxsVmFsdWUSDgoKTlVMTF9WQUxVRRAAQn8KE2NvbS5nb29nbGUucHJvdG9idWZCC1N0cnVjdFByb3RvUAFaL2dvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3N0cnVjdHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM");
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Describes the message google.protobuf.Struct.
|
|
23
|
+
* Use `create(StructDesc)` to create a new message.
|
|
24
|
+
*/
|
|
20
25
|
export const StructDesc = /*@__PURE__*/ messageDesc(fileDesc_google_protobuf_struct, 0);
|
|
21
|
-
|
|
22
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Describes the message google.protobuf.Value.
|
|
28
|
+
* Use `create(ValueDesc)` to create a new message.
|
|
29
|
+
*/
|
|
23
30
|
export const ValueDesc = /*@__PURE__*/ messageDesc(fileDesc_google_protobuf_struct, 1);
|
|
24
|
-
|
|
25
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Describes the message google.protobuf.ListValue.
|
|
33
|
+
* Use `create(ListValueDesc)` to create a new message.
|
|
34
|
+
*/
|
|
26
35
|
export const ListValueDesc = /*@__PURE__*/ messageDesc(fileDesc_google_protobuf_struct, 2);
|
|
27
36
|
/**
|
|
28
37
|
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
@@ -41,5 +50,7 @@ export var NullValue;
|
|
|
41
50
|
*/
|
|
42
51
|
NullValue[NullValue["NULL_VALUE"] = 0] = "NULL_VALUE";
|
|
43
52
|
})(NullValue || (NullValue = {}));
|
|
44
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Describes the enum google.protobuf.NullValue.
|
|
55
|
+
*/
|
|
45
56
|
export const NullValueDesc = /*@__PURE__*/ enumDesc(fileDesc_google_protobuf_struct, 0);
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { GenDescFile, GenDescMessage } from "../../../../codegenv1/types.js";
|
|
2
2
|
import type { Message } from "../../../../types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file google/protobuf/timestamp.proto.
|
|
5
|
+
*/
|
|
3
6
|
export declare const fileDesc_google_protobuf_timestamp: GenDescFile;
|
|
4
7
|
/**
|
|
5
8
|
* A Timestamp represents a point in time independent of any time zone or local
|
|
@@ -114,4 +117,8 @@ export type Timestamp = Message<"google.protobuf.Timestamp"> & {
|
|
|
114
117
|
*/
|
|
115
118
|
nanos: number;
|
|
116
119
|
};
|
|
120
|
+
/**
|
|
121
|
+
* Describes the message google.protobuf.Timestamp.
|
|
122
|
+
* Use `create(TimestampDesc)` to create a new message.
|
|
123
|
+
*/
|
|
117
124
|
export declare const TimestampDesc: GenDescMessage<Timestamp>;
|
|
@@ -13,7 +13,12 @@
|
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
import { fileDesc } from "../../../../codegenv1/file.js";
|
|
15
15
|
import { messageDesc } from "../../../../codegenv1/message.js";
|
|
16
|
+
/**
|
|
17
|
+
* Describes the file google/protobuf/timestamp.proto.
|
|
18
|
+
*/
|
|
16
19
|
export const fileDesc_google_protobuf_timestamp = /*@__PURE__*/ fileDesc("Ch9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvEg9nb29nbGUucHJvdG9idWYiKwoJVGltZXN0YW1wEg8KB3NlY29uZHMYASABKAMSDQoFbmFub3MYAiABKAVChQEKE2NvbS5nb29nbGUucHJvdG9idWZCDlRpbWVzdGFtcFByb3RvUAFaMmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3RpbWVzdGFtcHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM");
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message google.protobuf.Timestamp.
|
|
22
|
+
* Use `create(TimestampDesc)` to create a new message.
|
|
23
|
+
*/
|
|
19
24
|
export const TimestampDesc = /*@__PURE__*/ messageDesc(fileDesc_google_protobuf_timestamp, 0);
|
|
@@ -2,6 +2,9 @@ import type { GenDescEnum, GenDescFile, GenDescMessage } from "../../../../codeg
|
|
|
2
2
|
import type { Any } from "./any_pb.js";
|
|
3
3
|
import type { SourceContext } from "./source_context_pb.js";
|
|
4
4
|
import type { Message } from "../../../../types.js";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file google/protobuf/type.proto.
|
|
7
|
+
*/
|
|
5
8
|
export declare const fileDesc_google_protobuf_type: GenDescFile;
|
|
6
9
|
/**
|
|
7
10
|
* A protocol buffer message type.
|
|
@@ -52,6 +55,10 @@ export type Type = Message<"google.protobuf.Type"> & {
|
|
|
52
55
|
*/
|
|
53
56
|
edition: string;
|
|
54
57
|
};
|
|
58
|
+
/**
|
|
59
|
+
* Describes the message google.protobuf.Type.
|
|
60
|
+
* Use `create(TypeDesc)` to create a new message.
|
|
61
|
+
*/
|
|
55
62
|
export declare const TypeDesc: GenDescMessage<Type>;
|
|
56
63
|
/**
|
|
57
64
|
* A single field of a message type.
|
|
@@ -122,6 +129,10 @@ export type Field = Message<"google.protobuf.Field"> & {
|
|
|
122
129
|
*/
|
|
123
130
|
defaultValue: string;
|
|
124
131
|
};
|
|
132
|
+
/**
|
|
133
|
+
* Describes the message google.protobuf.Field.
|
|
134
|
+
* Use `create(FieldDesc)` to create a new message.
|
|
135
|
+
*/
|
|
125
136
|
export declare const FieldDesc: GenDescMessage<Field>;
|
|
126
137
|
/**
|
|
127
138
|
* Basic field types.
|
|
@@ -244,6 +255,9 @@ export declare enum Field_Kind {
|
|
|
244
255
|
*/
|
|
245
256
|
TYPE_SINT64 = 18
|
|
246
257
|
}
|
|
258
|
+
/**
|
|
259
|
+
* Describes the enum google.protobuf.Field.Kind.
|
|
260
|
+
*/
|
|
247
261
|
export declare const Field_KindDesc: GenDescEnum<Field_Kind>;
|
|
248
262
|
/**
|
|
249
263
|
* Whether a field is optional, required, or repeated.
|
|
@@ -276,6 +290,9 @@ export declare enum Field_Cardinality {
|
|
|
276
290
|
*/
|
|
277
291
|
REPEATED = 3
|
|
278
292
|
}
|
|
293
|
+
/**
|
|
294
|
+
* Describes the enum google.protobuf.Field.Cardinality.
|
|
295
|
+
*/
|
|
279
296
|
export declare const Field_CardinalityDesc: GenDescEnum<Field_Cardinality>;
|
|
280
297
|
/**
|
|
281
298
|
* Enum type definition.
|
|
@@ -320,6 +337,10 @@ export type Enum = Message<"google.protobuf.Enum"> & {
|
|
|
320
337
|
*/
|
|
321
338
|
edition: string;
|
|
322
339
|
};
|
|
340
|
+
/**
|
|
341
|
+
* Describes the message google.protobuf.Enum.
|
|
342
|
+
* Use `create(EnumDesc)` to create a new message.
|
|
343
|
+
*/
|
|
323
344
|
export declare const EnumDesc: GenDescMessage<Enum>;
|
|
324
345
|
/**
|
|
325
346
|
* Enum value definition.
|
|
@@ -346,6 +367,10 @@ export type EnumValue = Message<"google.protobuf.EnumValue"> & {
|
|
|
346
367
|
*/
|
|
347
368
|
options: Option[];
|
|
348
369
|
};
|
|
370
|
+
/**
|
|
371
|
+
* Describes the message google.protobuf.EnumValue.
|
|
372
|
+
* Use `create(EnumValueDesc)` to create a new message.
|
|
373
|
+
*/
|
|
349
374
|
export declare const EnumValueDesc: GenDescMessage<EnumValue>;
|
|
350
375
|
/**
|
|
351
376
|
* A protocol buffer option, which can be attached to a message, field,
|
|
@@ -373,6 +398,10 @@ export type Option = Message<"google.protobuf.Option"> & {
|
|
|
373
398
|
*/
|
|
374
399
|
value?: Any;
|
|
375
400
|
};
|
|
401
|
+
/**
|
|
402
|
+
* Describes the message google.protobuf.Option.
|
|
403
|
+
* Use `create(OptionDesc)` to create a new message.
|
|
404
|
+
*/
|
|
376
405
|
export declare const OptionDesc: GenDescMessage<Option>;
|
|
377
406
|
/**
|
|
378
407
|
* The syntax in which a protocol buffer element is defined.
|
|
@@ -399,4 +428,7 @@ export declare enum Syntax {
|
|
|
399
428
|
*/
|
|
400
429
|
EDITIONS = 2
|
|
401
430
|
}
|
|
431
|
+
/**
|
|
432
|
+
* Describes the enum google.protobuf.Syntax.
|
|
433
|
+
*/
|
|
402
434
|
export declare const SyntaxDesc: GenDescEnum<Syntax>;
|
|
@@ -16,12 +16,19 @@ import { fileDesc_google_protobuf_any } from "./any_pb.js";
|
|
|
16
16
|
import { fileDesc_google_protobuf_source_context } from "./source_context_pb.js";
|
|
17
17
|
import { messageDesc } from "../../../../codegenv1/message.js";
|
|
18
18
|
import { enumDesc } from "../../../../codegenv1/enum.js";
|
|
19
|
+
/**
|
|
20
|
+
* Describes the file google/protobuf/type.proto.
|
|
21
|
+
*/
|
|
19
22
|
export const fileDesc_google_protobuf_type = /*@__PURE__*/ fileDesc("Chpnb29nbGUvcHJvdG9idWYvdHlwZS5wcm90bxIPZ29vZ2xlLnByb3RvYnVmIugBCgRUeXBlEgwKBG5hbWUYASABKAkSJgoGZmllbGRzGAIgAygLMhYuZ29vZ2xlLnByb3RvYnVmLkZpZWxkEg4KBm9uZW9mcxgDIAMoCRIoCgdvcHRpb25zGAQgAygLMhcuZ29vZ2xlLnByb3RvYnVmLk9wdGlvbhI2Cg5zb3VyY2VfY29udGV4dBgFIAEoCzIeLmdvb2dsZS5wcm90b2J1Zi5Tb3VyY2VDb250ZXh0EicKBnN5bnRheBgGIAEoDjIXLmdvb2dsZS5wcm90b2J1Zi5TeW50YXgSDwoHZWRpdGlvbhgHIAEoCSLVBQoFRmllbGQSKQoEa2luZBgBIAEoDjIbLmdvb2dsZS5wcm90b2J1Zi5GaWVsZC5LaW5kEjcKC2NhcmRpbmFsaXR5GAIgASgOMiIuZ29vZ2xlLnByb3RvYnVmLkZpZWxkLkNhcmRpbmFsaXR5Eg4KBm51bWJlchgDIAEoBRIMCgRuYW1lGAQgASgJEhAKCHR5cGVfdXJsGAYgASgJEhMKC29uZW9mX2luZGV4GAcgASgFEg4KBnBhY2tlZBgIIAEoCBIoCgdvcHRpb25zGAkgAygLMhcuZ29vZ2xlLnByb3RvYnVmLk9wdGlvbhIRCglqc29uX25hbWUYCiABKAkSFQoNZGVmYXVsdF92YWx1ZRgLIAEoCSLIAgoES2luZBIQCgxUWVBFX1VOS05PV04QABIPCgtUWVBFX0RPVUJMRRABEg4KClRZUEVfRkxPQVQQAhIOCgpUWVBFX0lOVDY0EAMSDwoLVFlQRV9VSU5UNjQQBBIOCgpUWVBFX0lOVDMyEAUSEAoMVFlQRV9GSVhFRDY0EAYSEAoMVFlQRV9GSVhFRDMyEAcSDQoJVFlQRV9CT09MEAgSDwoLVFlQRV9TVFJJTkcQCRIOCgpUWVBFX0dST1VQEAoSEAoMVFlQRV9NRVNTQUdFEAsSDgoKVFlQRV9CWVRFUxAMEg8KC1RZUEVfVUlOVDMyEA0SDQoJVFlQRV9FTlVNEA4SEQoNVFlQRV9TRklYRUQzMhAPEhEKDVRZUEVfU0ZJWEVENjQQEBIPCgtUWVBFX1NJTlQzMhAREg8KC1RZUEVfU0lOVDY0EBIidAoLQ2FyZGluYWxpdHkSFwoTQ0FSRElOQUxJVFlfVU5LTk9XThAAEhgKFENBUkRJTkFMSVRZX09QVElPTkFMEAESGAoUQ0FSRElOQUxJVFlfUkVRVUlSRUQQAhIYChRDQVJESU5BTElUWV9SRVBFQVRFRBADIt8BCgRFbnVtEgwKBG5hbWUYASABKAkSLQoJZW51bXZhbHVlGAIgAygLMhouZ29vZ2xlLnByb3RvYnVmLkVudW1WYWx1ZRIoCgdvcHRpb25zGAMgAygLMhcuZ29vZ2xlLnByb3RvYnVmLk9wdGlvbhI2Cg5zb3VyY2VfY29udGV4dBgEIAEoCzIeLmdvb2dsZS5wcm90b2J1Zi5Tb3VyY2VDb250ZXh0EicKBnN5bnRheBgFIAEoDjIXLmdvb2dsZS5wcm90b2J1Zi5TeW50YXgSDwoHZWRpdGlvbhgGIAEoCSJTCglFbnVtVmFsdWUSDAoEbmFtZRgBIAEoCRIOCgZudW1iZXIYAiABKAUSKAoHb3B0aW9ucxgDIAMoCzIXLmdvb2dsZS5wcm90b2J1Zi5PcHRpb24iOwoGT3B0aW9uEgwKBG5hbWUYASABKAkSIwoFdmFsdWUYAiABKAsyFC5nb29nbGUucHJvdG9idWYuQW55KkMKBlN5bnRheBIRCg1TWU5UQVhfUFJPVE8yEAASEQoNU1lOVEFYX1BST1RPMxABEhMKD1NZTlRBWF9FRElUSU9OUxACQnsKE2NvbS5nb29nbGUucHJvdG9idWZCCVR5cGVQcm90b1ABWi1nb29nbGUuZ29sYW5nLm9yZy9wcm90b2J1Zi90eXBlcy9rbm93bi90eXBlcGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw", [fileDesc_google_protobuf_any, fileDesc_google_protobuf_source_context]);
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Describes the message google.protobuf.Type.
|
|
25
|
+
* Use `create(TypeDesc)` to create a new message.
|
|
26
|
+
*/
|
|
22
27
|
export const TypeDesc = /*@__PURE__*/ messageDesc(fileDesc_google_protobuf_type, 0);
|
|
23
|
-
|
|
24
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Describes the message google.protobuf.Field.
|
|
30
|
+
* Use `create(FieldDesc)` to create a new message.
|
|
31
|
+
*/
|
|
25
32
|
export const FieldDesc = /*@__PURE__*/ messageDesc(fileDesc_google_protobuf_type, 1);
|
|
26
33
|
/**
|
|
27
34
|
* Basic field types.
|
|
@@ -145,7 +152,9 @@ export var Field_Kind;
|
|
|
145
152
|
*/
|
|
146
153
|
Field_Kind[Field_Kind["TYPE_SINT64"] = 18] = "TYPE_SINT64";
|
|
147
154
|
})(Field_Kind || (Field_Kind = {}));
|
|
148
|
-
|
|
155
|
+
/**
|
|
156
|
+
* Describes the enum google.protobuf.Field.Kind.
|
|
157
|
+
*/
|
|
149
158
|
export const Field_KindDesc = /*@__PURE__*/ enumDesc(fileDesc_google_protobuf_type, 1, 0);
|
|
150
159
|
/**
|
|
151
160
|
* Whether a field is optional, required, or repeated.
|
|
@@ -179,16 +188,24 @@ export var Field_Cardinality;
|
|
|
179
188
|
*/
|
|
180
189
|
Field_Cardinality[Field_Cardinality["REPEATED"] = 3] = "REPEATED";
|
|
181
190
|
})(Field_Cardinality || (Field_Cardinality = {}));
|
|
182
|
-
|
|
191
|
+
/**
|
|
192
|
+
* Describes the enum google.protobuf.Field.Cardinality.
|
|
193
|
+
*/
|
|
183
194
|
export const Field_CardinalityDesc = /*@__PURE__*/ enumDesc(fileDesc_google_protobuf_type, 1, 1);
|
|
184
|
-
|
|
185
|
-
|
|
195
|
+
/**
|
|
196
|
+
* Describes the message google.protobuf.Enum.
|
|
197
|
+
* Use `create(EnumDesc)` to create a new message.
|
|
198
|
+
*/
|
|
186
199
|
export const EnumDesc = /*@__PURE__*/ messageDesc(fileDesc_google_protobuf_type, 2);
|
|
187
|
-
|
|
188
|
-
|
|
200
|
+
/**
|
|
201
|
+
* Describes the message google.protobuf.EnumValue.
|
|
202
|
+
* Use `create(EnumValueDesc)` to create a new message.
|
|
203
|
+
*/
|
|
189
204
|
export const EnumValueDesc = /*@__PURE__*/ messageDesc(fileDesc_google_protobuf_type, 3);
|
|
190
|
-
|
|
191
|
-
|
|
205
|
+
/**
|
|
206
|
+
* Describes the message google.protobuf.Option.
|
|
207
|
+
* Use `create(OptionDesc)` to create a new message.
|
|
208
|
+
*/
|
|
192
209
|
export const OptionDesc = /*@__PURE__*/ messageDesc(fileDesc_google_protobuf_type, 4);
|
|
193
210
|
/**
|
|
194
211
|
* The syntax in which a protocol buffer element is defined.
|
|
@@ -216,5 +233,7 @@ export var Syntax;
|
|
|
216
233
|
*/
|
|
217
234
|
Syntax[Syntax["EDITIONS"] = 2] = "EDITIONS";
|
|
218
235
|
})(Syntax || (Syntax = {}));
|
|
219
|
-
|
|
236
|
+
/**
|
|
237
|
+
* Describes the enum google.protobuf.Syntax.
|
|
238
|
+
*/
|
|
220
239
|
export const SyntaxDesc = /*@__PURE__*/ enumDesc(fileDesc_google_protobuf_type, 0);
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { GenDescFile, GenDescMessage } from "../../../../codegenv1/types.js";
|
|
2
2
|
import type { Message } from "../../../../types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file google/protobuf/wrappers.proto.
|
|
5
|
+
*/
|
|
3
6
|
export declare const fileDesc_google_protobuf_wrappers: GenDescFile;
|
|
4
7
|
/**
|
|
5
8
|
* Wrapper message for `double`.
|
|
@@ -16,6 +19,10 @@ export type DoubleValue = Message<"google.protobuf.DoubleValue"> & {
|
|
|
16
19
|
*/
|
|
17
20
|
value: number;
|
|
18
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message google.protobuf.DoubleValue.
|
|
24
|
+
* Use `create(DoubleValueDesc)` to create a new message.
|
|
25
|
+
*/
|
|
19
26
|
export declare const DoubleValueDesc: GenDescMessage<DoubleValue>;
|
|
20
27
|
/**
|
|
21
28
|
* Wrapper message for `float`.
|
|
@@ -32,6 +39,10 @@ export type FloatValue = Message<"google.protobuf.FloatValue"> & {
|
|
|
32
39
|
*/
|
|
33
40
|
value: number;
|
|
34
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* Describes the message google.protobuf.FloatValue.
|
|
44
|
+
* Use `create(FloatValueDesc)` to create a new message.
|
|
45
|
+
*/
|
|
35
46
|
export declare const FloatValueDesc: GenDescMessage<FloatValue>;
|
|
36
47
|
/**
|
|
37
48
|
* Wrapper message for `int64`.
|
|
@@ -48,6 +59,10 @@ export type Int64Value = Message<"google.protobuf.Int64Value"> & {
|
|
|
48
59
|
*/
|
|
49
60
|
value: bigint;
|
|
50
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* Describes the message google.protobuf.Int64Value.
|
|
64
|
+
* Use `create(Int64ValueDesc)` to create a new message.
|
|
65
|
+
*/
|
|
51
66
|
export declare const Int64ValueDesc: GenDescMessage<Int64Value>;
|
|
52
67
|
/**
|
|
53
68
|
* Wrapper message for `uint64`.
|
|
@@ -64,6 +79,10 @@ export type UInt64Value = Message<"google.protobuf.UInt64Value"> & {
|
|
|
64
79
|
*/
|
|
65
80
|
value: bigint;
|
|
66
81
|
};
|
|
82
|
+
/**
|
|
83
|
+
* Describes the message google.protobuf.UInt64Value.
|
|
84
|
+
* Use `create(UInt64ValueDesc)` to create a new message.
|
|
85
|
+
*/
|
|
67
86
|
export declare const UInt64ValueDesc: GenDescMessage<UInt64Value>;
|
|
68
87
|
/**
|
|
69
88
|
* Wrapper message for `int32`.
|
|
@@ -80,6 +99,10 @@ export type Int32Value = Message<"google.protobuf.Int32Value"> & {
|
|
|
80
99
|
*/
|
|
81
100
|
value: number;
|
|
82
101
|
};
|
|
102
|
+
/**
|
|
103
|
+
* Describes the message google.protobuf.Int32Value.
|
|
104
|
+
* Use `create(Int32ValueDesc)` to create a new message.
|
|
105
|
+
*/
|
|
83
106
|
export declare const Int32ValueDesc: GenDescMessage<Int32Value>;
|
|
84
107
|
/**
|
|
85
108
|
* Wrapper message for `uint32`.
|
|
@@ -96,6 +119,10 @@ export type UInt32Value = Message<"google.protobuf.UInt32Value"> & {
|
|
|
96
119
|
*/
|
|
97
120
|
value: number;
|
|
98
121
|
};
|
|
122
|
+
/**
|
|
123
|
+
* Describes the message google.protobuf.UInt32Value.
|
|
124
|
+
* Use `create(UInt32ValueDesc)` to create a new message.
|
|
125
|
+
*/
|
|
99
126
|
export declare const UInt32ValueDesc: GenDescMessage<UInt32Value>;
|
|
100
127
|
/**
|
|
101
128
|
* Wrapper message for `bool`.
|
|
@@ -112,6 +139,10 @@ export type BoolValue = Message<"google.protobuf.BoolValue"> & {
|
|
|
112
139
|
*/
|
|
113
140
|
value: boolean;
|
|
114
141
|
};
|
|
142
|
+
/**
|
|
143
|
+
* Describes the message google.protobuf.BoolValue.
|
|
144
|
+
* Use `create(BoolValueDesc)` to create a new message.
|
|
145
|
+
*/
|
|
115
146
|
export declare const BoolValueDesc: GenDescMessage<BoolValue>;
|
|
116
147
|
/**
|
|
117
148
|
* Wrapper message for `string`.
|
|
@@ -128,6 +159,10 @@ export type StringValue = Message<"google.protobuf.StringValue"> & {
|
|
|
128
159
|
*/
|
|
129
160
|
value: string;
|
|
130
161
|
};
|
|
162
|
+
/**
|
|
163
|
+
* Describes the message google.protobuf.StringValue.
|
|
164
|
+
* Use `create(StringValueDesc)` to create a new message.
|
|
165
|
+
*/
|
|
131
166
|
export declare const StringValueDesc: GenDescMessage<StringValue>;
|
|
132
167
|
/**
|
|
133
168
|
* Wrapper message for `bytes`.
|
|
@@ -144,4 +179,8 @@ export type BytesValue = Message<"google.protobuf.BytesValue"> & {
|
|
|
144
179
|
*/
|
|
145
180
|
value: Uint8Array;
|
|
146
181
|
};
|
|
182
|
+
/**
|
|
183
|
+
* Describes the message google.protobuf.BytesValue.
|
|
184
|
+
* Use `create(BytesValueDesc)` to create a new message.
|
|
185
|
+
*/
|
|
147
186
|
export declare const BytesValueDesc: GenDescMessage<BytesValue>;
|
|
@@ -13,31 +13,52 @@
|
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
import { fileDesc } from "../../../../codegenv1/file.js";
|
|
15
15
|
import { messageDesc } from "../../../../codegenv1/message.js";
|
|
16
|
+
/**
|
|
17
|
+
* Describes the file google/protobuf/wrappers.proto.
|
|
18
|
+
*/
|
|
16
19
|
export const fileDesc_google_protobuf_wrappers = /*@__PURE__*/ fileDesc("Ch5nb29nbGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIcCgtEb3VibGVWYWx1ZRINCgV2YWx1ZRgBIAEoASIbCgpGbG9hdFZhbHVlEg0KBXZhbHVlGAEgASgCIhsKCkludDY0VmFsdWUSDQoFdmFsdWUYASABKAMiHAoLVUludDY0VmFsdWUSDQoFdmFsdWUYASABKAQiGwoKSW50MzJWYWx1ZRINCgV2YWx1ZRgBIAEoBSIcCgtVSW50MzJWYWx1ZRINCgV2YWx1ZRgBIAEoDSIaCglCb29sVmFsdWUSDQoFdmFsdWUYASABKAgiHAoLU3RyaW5nVmFsdWUSDQoFdmFsdWUYASABKAkiGwoKQnl0ZXNWYWx1ZRINCgV2YWx1ZRgBIAEoDEKDAQoTY29tLmdvb2dsZS5wcm90b2J1ZkINV3JhcHBlcnNQcm90b1ABWjFnb29nbGUuZ29sYW5nLm9yZy9wcm90b2J1Zi90eXBlcy9rbm93bi93cmFwcGVyc3Bi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM");
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message google.protobuf.DoubleValue.
|
|
22
|
+
* Use `create(DoubleValueDesc)` to create a new message.
|
|
23
|
+
*/
|
|
19
24
|
export const DoubleValueDesc = /*@__PURE__*/ messageDesc(fileDesc_google_protobuf_wrappers, 0);
|
|
20
|
-
|
|
21
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message google.protobuf.FloatValue.
|
|
27
|
+
* Use `create(FloatValueDesc)` to create a new message.
|
|
28
|
+
*/
|
|
22
29
|
export const FloatValueDesc = /*@__PURE__*/ messageDesc(fileDesc_google_protobuf_wrappers, 1);
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Describes the message google.protobuf.Int64Value.
|
|
32
|
+
* Use `create(Int64ValueDesc)` to create a new message.
|
|
33
|
+
*/
|
|
25
34
|
export const Int64ValueDesc = /*@__PURE__*/ messageDesc(fileDesc_google_protobuf_wrappers, 2);
|
|
26
|
-
|
|
27
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Describes the message google.protobuf.UInt64Value.
|
|
37
|
+
* Use `create(UInt64ValueDesc)` to create a new message.
|
|
38
|
+
*/
|
|
28
39
|
export const UInt64ValueDesc = /*@__PURE__*/ messageDesc(fileDesc_google_protobuf_wrappers, 3);
|
|
29
|
-
|
|
30
|
-
|
|
40
|
+
/**
|
|
41
|
+
* Describes the message google.protobuf.Int32Value.
|
|
42
|
+
* Use `create(Int32ValueDesc)` to create a new message.
|
|
43
|
+
*/
|
|
31
44
|
export const Int32ValueDesc = /*@__PURE__*/ messageDesc(fileDesc_google_protobuf_wrappers, 4);
|
|
32
|
-
|
|
33
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Describes the message google.protobuf.UInt32Value.
|
|
47
|
+
* Use `create(UInt32ValueDesc)` to create a new message.
|
|
48
|
+
*/
|
|
34
49
|
export const UInt32ValueDesc = /*@__PURE__*/ messageDesc(fileDesc_google_protobuf_wrappers, 5);
|
|
35
|
-
|
|
36
|
-
|
|
50
|
+
/**
|
|
51
|
+
* Describes the message google.protobuf.BoolValue.
|
|
52
|
+
* Use `create(BoolValueDesc)` to create a new message.
|
|
53
|
+
*/
|
|
37
54
|
export const BoolValueDesc = /*@__PURE__*/ messageDesc(fileDesc_google_protobuf_wrappers, 6);
|
|
38
|
-
|
|
39
|
-
|
|
55
|
+
/**
|
|
56
|
+
* Describes the message google.protobuf.StringValue.
|
|
57
|
+
* Use `create(StringValueDesc)` to create a new message.
|
|
58
|
+
*/
|
|
40
59
|
export const StringValueDesc = /*@__PURE__*/ messageDesc(fileDesc_google_protobuf_wrappers, 7);
|
|
41
|
-
|
|
42
|
-
|
|
60
|
+
/**
|
|
61
|
+
* Describes the message google.protobuf.BytesValue.
|
|
62
|
+
* Use `create(BytesValueDesc)` to create a new message.
|
|
63
|
+
*/
|
|
43
64
|
export const BytesValueDesc = /*@__PURE__*/ messageDesc(fileDesc_google_protobuf_wrappers, 8);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Message } from "../types.js";
|
|
2
2
|
import type { BoolValue, BytesValue, DoubleValue, FloatValue, Int32Value, Int64Value, StringValue, UInt32Value, UInt64Value } from "./gen/google/protobuf/wrappers_pb.js";
|
|
3
|
-
import type { DescField, DescMessage } from "../
|
|
3
|
+
import type { DescField, DescMessage } from "../descriptors.js";
|
|
4
4
|
export declare function isWrapper(arg: Message): arg is DoubleValue | FloatValue | Int64Value | UInt64Value | Int32Value | UInt32Value | BoolValue | StringValue | BytesValue;
|
|
5
5
|
export type WktWrapperDesc = DescMessage & {
|
|
6
6
|
fields: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bufbuild/protobuf",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.3",
|
|
4
4
|
"license": "(Apache-2.0 AND BSD-3-Clause)",
|
|
5
5
|
"description": "A complete implementation of Protocol Buffers in TypeScript, suitable for web browsers and Node.js.",
|
|
6
6
|
"repository": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"build:esm": "../../node_modules/typescript/bin/tsc --project tsconfig.json --outDir ./dist/esm --declaration --declarationDir ./dist/esm",
|
|
16
16
|
"bootstrap:inject": "node scripts/bootstrap-inject.mjs src",
|
|
17
17
|
"prebootstrap:wkt": "rm -rf .tmp && mkdir -p .tmp && cp -rp src/wkt/gen/* .tmp",
|
|
18
|
-
"bootstrap:wkt": "protoc --es_out=src/wkt/gen --es_opt=bootstrap_wkt=true,target=ts --proto_path $(upstream-include wkt) $(upstream-files wkt) && license-header src/wkt/gen",
|
|
18
|
+
"bootstrap:wkt": "protoc --es_out=src/wkt/gen --es_opt=bootstrap_wkt=true,target=ts,import_extension=.js --proto_path $(upstream-include wkt) $(upstream-files wkt) && license-header src/wkt/gen",
|
|
19
19
|
"postbootstrap:wkt": "diff >/dev/null -r .tmp src/wkt/gen && cp -rp .tmp/* src/wkt/gen || true",
|
|
20
20
|
"attw": "attw --pack"
|
|
21
21
|
},
|
package/dist/cjs/desc-types.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2021-2024 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.
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Assert that condition is truthy or throw error (with message)
|
|
3
|
-
*/
|
|
4
|
-
export declare function assert(condition: unknown, msg?: string): asserts condition;
|
|
5
|
-
/**
|
|
6
|
-
* Assert a valid signed protobuf 32-bit integer.
|
|
7
|
-
*/
|
|
8
|
-
export declare function assertInt32(arg: unknown): asserts arg is number;
|
|
9
|
-
/**
|
|
10
|
-
* Assert a valid unsigned protobuf 32-bit integer.
|
|
11
|
-
*/
|
|
12
|
-
export declare function assertUInt32(arg: unknown): asserts arg is number;
|
|
13
|
-
/**
|
|
14
|
-
* Assert a valid protobuf float value.
|
|
15
|
-
*/
|
|
16
|
-
export declare function assertFloat32(arg: unknown): asserts arg is number;
|