@bufbuild/protobuf 1.9.0 → 2.0.0-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/dist/cjs/clone.d.ts +6 -0
- package/dist/cjs/clone.js +77 -0
- package/dist/cjs/codegenv1/boot.d.ts +63 -0
- package/dist/cjs/codegenv1/boot.js +102 -0
- package/dist/cjs/codegenv1/embed.d.ts +43 -0
- package/dist/cjs/codegenv1/embed.js +238 -0
- package/dist/cjs/codegenv1/enum.d.ts +17 -0
- package/dist/cjs/codegenv1/enum.js +43 -0
- package/dist/cjs/codegenv1/extension.d.ts +9 -0
- package/dist/cjs/codegenv1/extension.js +29 -0
- package/dist/cjs/codegenv1/file.d.ts +7 -0
- package/dist/cjs/codegenv1/file.js +38 -0
- package/dist/cjs/codegenv1/index.d.ts +9 -0
- package/dist/cjs/codegenv1/index.js +38 -0
- package/dist/cjs/codegenv1/message.d.ts +9 -0
- package/dist/cjs/codegenv1/message.js +25 -0
- package/dist/cjs/codegenv1/restore-json-names.d.ts +2 -0
- package/dist/cjs/codegenv1/restore-json-names.js +27 -0
- package/dist/cjs/codegenv1/service.d.ts +8 -0
- package/dist/cjs/codegenv1/service.js +28 -0
- package/dist/cjs/codegenv1/symbols.d.ts +116 -0
- package/dist/cjs/codegenv1/symbols.js +58 -0
- package/dist/cjs/codegenv1/types.d.ts +19 -0
- package/dist/cjs/codegenv1/types.js +21 -0
- package/dist/cjs/create.d.ts +9 -0
- package/dist/cjs/create.js +242 -0
- package/dist/{esm/descriptor-set.d.ts → cjs/desc-types.d.ts} +144 -242
- package/dist/cjs/equals.d.ts +9 -0
- package/dist/cjs/equals.js +133 -0
- package/dist/cjs/{extension-accessor.d.ts → extensions.d.ts} +11 -7
- package/dist/cjs/extensions.js +138 -0
- package/dist/cjs/fields.d.ts +22 -0
- package/dist/cjs/fields.js +39 -0
- package/dist/cjs/from-binary.d.ts +34 -0
- package/dist/cjs/from-binary.js +221 -0
- package/dist/cjs/from-json.d.ts +48 -0
- package/dist/cjs/from-json.js +614 -0
- package/dist/cjs/index.d.ts +16 -42
- package/dist/cjs/index.js +21 -55
- package/dist/cjs/is-message.d.ts +5 -20
- package/dist/cjs/is-message.js +11 -29
- package/dist/cjs/json-value.d.ts +16 -0
- package/dist/cjs/proto-int64.js +2 -2
- package/dist/cjs/reflect/error.d.ts +9 -0
- package/dist/cjs/reflect/error.js +36 -0
- package/dist/cjs/reflect/guard.d.ts +20 -0
- package/dist/cjs/reflect/guard.js +78 -0
- package/dist/cjs/reflect/index.d.ts +8 -0
- package/dist/cjs/reflect/index.js +41 -0
- package/dist/cjs/reflect/names.d.ts +23 -0
- package/dist/cjs/reflect/names.js +112 -0
- package/dist/cjs/reflect/nested-types.d.ts +2 -0
- package/dist/cjs/reflect/nested-types.js +38 -0
- package/dist/cjs/reflect/reflect-check.d.ts +10 -0
- package/dist/cjs/reflect/reflect-check.js +150 -0
- package/dist/cjs/reflect/reflect-types.d.ts +136 -0
- package/dist/cjs/{extension.js → reflect/reflect-types.js} +1 -0
- package/dist/cjs/reflect/reflect.d.ts +23 -0
- package/dist/cjs/reflect/reflect.js +409 -0
- package/dist/cjs/reflect/registry.d.ts +82 -0
- package/dist/cjs/reflect/registry.js +870 -0
- package/dist/{esm → cjs/reflect}/scalar.d.ts +21 -1
- package/dist/cjs/reflect/scalar.js +298 -0
- package/dist/cjs/reflect/unsafe.d.ts +58 -0
- package/dist/cjs/reflect/unsafe.js +171 -0
- package/dist/cjs/to-binary.d.ts +24 -0
- package/dist/cjs/to-binary.js +194 -0
- package/dist/cjs/to-json.d.ts +50 -0
- package/dist/cjs/to-json.js +384 -0
- package/dist/cjs/types.d.ts +68 -0
- package/dist/cjs/wire/base64-encoding.d.ts +23 -0
- package/dist/cjs/wire/base64-encoding.js +156 -0
- package/dist/cjs/wire/binary-encoding.d.ts +242 -0
- package/dist/cjs/{binary-encoding.js → wire/binary-encoding.js} +11 -10
- package/dist/cjs/wire/index.d.ts +5 -0
- package/dist/cjs/wire/index.js +34 -0
- package/dist/cjs/wire/size-delimited.d.ts +51 -0
- package/dist/cjs/wire/size-delimited.js +154 -0
- package/dist/cjs/wire/text-encoding.d.ts +26 -0
- package/dist/cjs/wire/text-encoding.js +55 -0
- package/dist/cjs/wire/text-format.d.ts +14 -0
- package/dist/cjs/{private → wire}/text-format.js +12 -2
- package/dist/{esm/google → cjs/wire}/varint.d.ts +2 -2
- package/dist/cjs/{google → wire}/varint.js +11 -10
- package/dist/cjs/wkt/any.d.ts +38 -0
- package/dist/cjs/wkt/any.js +76 -0
- package/dist/cjs/{google → wkt/gen/google}/protobuf/any_pb.d.ts +6 -27
- package/dist/cjs/wkt/gen/google/protobuf/any_pb.js +22 -0
- package/dist/cjs/{google → wkt/gen/google}/protobuf/api_pb.d.ts +14 -38
- package/dist/cjs/wkt/gen/google/protobuf/api_pb.js +30 -0
- package/dist/cjs/{google → wkt/gen/google}/protobuf/compiler/plugin_pb.d.ts +47 -77
- package/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.js +55 -0
- package/dist/cjs/{google → wkt/gen/google}/protobuf/descriptor_pb.d.ts +384 -533
- package/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.js +691 -0
- package/dist/{esm → cjs/wkt/gen}/google/protobuf/duration_pb.d.ts +6 -18
- package/dist/cjs/wkt/gen/google/protobuf/duration_pb.js +22 -0
- package/dist/cjs/wkt/gen/google/protobuf/empty_pb.d.ts +17 -0
- package/dist/cjs/wkt/gen/google/protobuf/empty_pb.js +22 -0
- package/dist/{esm → cjs/wkt/gen}/google/protobuf/field_mask_pb.d.ts +6 -18
- package/dist/cjs/{proto-double.js → wkt/gen/google/protobuf/field_mask_pb.js} +7 -14
- package/dist/cjs/wkt/gen/google/protobuf/source_context_pb.d.ts +19 -0
- package/dist/cjs/wkt/gen/google/protobuf/source_context_pb.js +22 -0
- package/dist/{esm → cjs/wkt/gen}/google/protobuf/struct_pb.d.ts +28 -57
- package/dist/cjs/wkt/gen/google/protobuf/struct_pb.js +48 -0
- package/dist/{esm → cjs/wkt/gen}/google/protobuf/timestamp_pb.d.ts +6 -21
- package/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.js +22 -0
- package/dist/{esm → cjs/wkt/gen}/google/protobuf/type_pb.d.ts +47 -82
- package/dist/cjs/wkt/gen/google/protobuf/type_pb.js +223 -0
- package/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.d.ts +147 -0
- package/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.js +46 -0
- package/dist/cjs/wkt/index.d.ts +15 -0
- package/dist/cjs/wkt/index.js +44 -0
- package/dist/cjs/wkt/timestamp.d.ts +21 -0
- package/dist/cjs/wkt/timestamp.js +58 -0
- package/dist/cjs/wkt/wrappers.d.ts +15 -0
- package/dist/cjs/wkt/wrappers.js +43 -0
- package/dist/esm/clone.d.ts +6 -0
- package/dist/esm/clone.js +73 -0
- package/dist/esm/codegenv1/boot.d.ts +63 -0
- package/dist/esm/codegenv1/boot.js +97 -0
- package/dist/esm/codegenv1/embed.d.ts +43 -0
- package/dist/esm/codegenv1/embed.js +232 -0
- package/dist/esm/codegenv1/enum.d.ts +17 -0
- package/dist/esm/codegenv1/enum.js +38 -0
- package/dist/esm/codegenv1/extension.d.ts +9 -0
- package/dist/esm/codegenv1/extension.js +25 -0
- package/dist/esm/codegenv1/file.d.ts +7 -0
- package/dist/esm/codegenv1/file.js +34 -0
- package/dist/esm/codegenv1/index.d.ts +9 -0
- package/dist/esm/codegenv1/index.js +22 -0
- package/dist/esm/codegenv1/message.d.ts +9 -0
- package/dist/esm/codegenv1/message.js +21 -0
- package/dist/esm/codegenv1/restore-json-names.d.ts +2 -0
- package/dist/esm/codegenv1/restore-json-names.js +23 -0
- package/dist/esm/codegenv1/service.d.ts +8 -0
- package/dist/esm/codegenv1/service.js +24 -0
- package/dist/esm/codegenv1/symbols.d.ts +116 -0
- package/dist/esm/codegenv1/symbols.js +55 -0
- package/dist/esm/codegenv1/types.d.ts +19 -0
- package/dist/esm/{field-list.js → codegenv1/types.js} +6 -0
- package/dist/esm/create.d.ts +9 -0
- package/dist/esm/create.js +239 -0
- package/dist/{cjs/descriptor-set.d.ts → esm/desc-types.d.ts} +144 -242
- package/dist/esm/equals.d.ts +9 -0
- package/dist/esm/equals.js +129 -0
- package/dist/esm/{extension-accessor.d.ts → extensions.d.ts} +11 -7
- package/dist/esm/extensions.js +130 -0
- package/dist/esm/fields.d.ts +22 -0
- package/dist/esm/fields.js +34 -0
- package/dist/esm/from-binary.d.ts +34 -0
- package/dist/esm/from-binary.js +215 -0
- package/dist/esm/from-json.d.ts +48 -0
- package/dist/esm/from-json.js +607 -0
- package/dist/esm/index.d.ts +16 -42
- package/dist/esm/index.js +13 -30
- package/dist/esm/is-message.d.ts +5 -20
- package/dist/esm/is-message.js +11 -29
- package/dist/esm/json-value.d.ts +16 -0
- package/dist/esm/proto-int64.js +2 -2
- package/dist/esm/reflect/error.d.ts +9 -0
- package/dist/esm/reflect/error.js +31 -0
- package/dist/esm/reflect/guard.d.ts +20 -0
- package/dist/esm/reflect/guard.js +70 -0
- package/dist/esm/reflect/index.d.ts +8 -0
- package/dist/esm/reflect/index.js +21 -0
- package/dist/esm/reflect/names.d.ts +23 -0
- package/dist/esm/reflect/names.js +106 -0
- package/dist/esm/reflect/nested-types.d.ts +2 -0
- package/dist/esm/reflect/nested-types.js +34 -0
- package/dist/esm/reflect/reflect-check.d.ts +10 -0
- package/dist/esm/reflect/reflect-check.js +143 -0
- package/dist/esm/reflect/reflect-types.d.ts +136 -0
- package/dist/esm/reflect/reflect-types.js +15 -0
- package/dist/esm/reflect/reflect.d.ts +23 -0
- package/dist/esm/reflect/reflect.js +403 -0
- package/dist/esm/reflect/registry.d.ts +82 -0
- package/dist/esm/reflect/registry.js +865 -0
- package/dist/{cjs → esm/reflect}/scalar.d.ts +21 -1
- package/dist/esm/reflect/scalar.js +289 -0
- package/dist/esm/reflect/unsafe.d.ts +58 -0
- package/dist/esm/reflect/unsafe.js +160 -0
- package/dist/esm/to-binary.d.ts +24 -0
- package/dist/esm/to-binary.js +189 -0
- package/dist/esm/to-json.d.ts +50 -0
- package/dist/esm/to-json.js +379 -0
- package/dist/esm/types.d.ts +68 -0
- package/dist/esm/wire/base64-encoding.d.ts +23 -0
- package/dist/esm/wire/base64-encoding.js +151 -0
- package/dist/esm/wire/binary-encoding.d.ts +242 -0
- package/dist/esm/{binary-encoding.js → wire/binary-encoding.js} +11 -10
- package/dist/esm/wire/index.d.ts +5 -0
- package/dist/esm/wire/index.js +18 -0
- package/dist/esm/wire/size-delimited.d.ts +51 -0
- package/dist/esm/wire/size-delimited.js +148 -0
- package/dist/esm/wire/text-encoding.d.ts +26 -0
- package/dist/esm/wire/text-encoding.js +50 -0
- package/dist/esm/wire/text-format.d.ts +14 -0
- package/dist/esm/{private → wire}/text-format.js +12 -2
- package/dist/{cjs/google → esm/wire}/varint.d.ts +2 -2
- package/dist/esm/{google → wire}/varint.js +11 -10
- package/dist/esm/wkt/any.d.ts +38 -0
- package/dist/esm/wkt/any.js +69 -0
- package/dist/esm/{google → wkt/gen/google}/protobuf/any_pb.d.ts +6 -27
- package/dist/esm/wkt/gen/google/protobuf/any_pb.js +19 -0
- package/dist/esm/{google → wkt/gen/google}/protobuf/api_pb.d.ts +14 -38
- package/dist/esm/wkt/gen/google/protobuf/api_pb.js +27 -0
- package/dist/esm/{google → wkt/gen/google}/protobuf/compiler/plugin_pb.d.ts +47 -77
- package/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +52 -0
- package/dist/esm/{google → wkt/gen/google}/protobuf/descriptor_pb.d.ts +384 -533
- package/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +687 -0
- package/dist/{cjs → esm/wkt/gen}/google/protobuf/duration_pb.d.ts +6 -18
- package/dist/esm/wkt/gen/google/protobuf/duration_pb.js +19 -0
- package/dist/esm/wkt/gen/google/protobuf/empty_pb.d.ts +17 -0
- package/dist/esm/wkt/gen/google/protobuf/empty_pb.js +19 -0
- package/dist/{cjs → esm/wkt/gen}/google/protobuf/field_mask_pb.d.ts +6 -18
- package/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +19 -0
- package/dist/esm/wkt/gen/google/protobuf/source_context_pb.d.ts +19 -0
- package/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +19 -0
- package/dist/{cjs → esm/wkt/gen}/google/protobuf/struct_pb.d.ts +28 -57
- package/dist/esm/wkt/gen/google/protobuf/struct_pb.js +45 -0
- package/dist/{cjs → esm/wkt/gen}/google/protobuf/timestamp_pb.d.ts +6 -21
- package/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +19 -0
- package/dist/{cjs → esm/wkt/gen}/google/protobuf/type_pb.d.ts +47 -82
- package/dist/esm/wkt/gen/google/protobuf/type_pb.js +220 -0
- package/dist/esm/wkt/gen/google/protobuf/wrappers_pb.d.ts +147 -0
- package/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +43 -0
- package/dist/esm/wkt/index.d.ts +15 -0
- package/dist/esm/wkt/index.js +28 -0
- package/dist/esm/wkt/timestamp.d.ts +21 -0
- package/dist/esm/wkt/timestamp.js +50 -0
- package/dist/esm/wkt/wrappers.d.ts +15 -0
- package/dist/esm/wkt/wrappers.js +38 -0
- package/package.json +37 -5
- package/dist/cjs/binary-encoding.d.ts +0 -420
- package/dist/cjs/binary-format.d.ts +0 -113
- package/dist/cjs/codegen-info.d.ts +0 -33
- package/dist/cjs/codegen-info.js +0 -69
- package/dist/cjs/create-descriptor-set.d.ts +0 -36
- package/dist/cjs/create-descriptor-set.js +0 -910
- package/dist/cjs/create-registry-from-desc.d.ts +0 -15
- package/dist/cjs/create-registry-from-desc.js +0 -264
- package/dist/cjs/create-registry.d.ts +0 -9
- package/dist/cjs/create-registry.js +0 -94
- package/dist/cjs/enum.d.ts +0 -35
- package/dist/cjs/extension-accessor.js +0 -114
- package/dist/cjs/extension.d.ts +0 -24
- package/dist/cjs/field-list.d.ts +0 -27
- package/dist/cjs/field-list.js +0 -15
- package/dist/cjs/field.d.ts +0 -314
- package/dist/cjs/field.js +0 -15
- package/dist/cjs/google/protobuf/any_pb.js +0 -273
- package/dist/cjs/google/protobuf/api_pb.js +0 -316
- package/dist/cjs/google/protobuf/compiler/plugin_pb.js +0 -219
- package/dist/cjs/google/protobuf/descriptor_pb.js +0 -2034
- package/dist/cjs/google/protobuf/duration_pb.js +0 -169
- package/dist/cjs/google/protobuf/empty_pb.d.ts +0 -28
- package/dist/cjs/google/protobuf/empty_pb.js +0 -52
- package/dist/cjs/google/protobuf/field_mask_pb.js +0 -311
- package/dist/cjs/google/protobuf/source_context_pb.d.ts +0 -29
- package/dist/cjs/google/protobuf/source_context_pb.js +0 -55
- package/dist/cjs/google/protobuf/struct_pb.js +0 -240
- package/dist/cjs/google/protobuf/timestamp_pb.js +0 -213
- package/dist/cjs/google/protobuf/type_pb.js +0 -562
- package/dist/cjs/google/protobuf/wrappers_pb.d.ts +0 -267
- package/dist/cjs/google/protobuf/wrappers_pb.js +0 -569
- package/dist/cjs/json-format.d.ts +0 -111
- package/dist/cjs/json-format.js +0 -15
- package/dist/cjs/message-type.d.ts +0 -51
- package/dist/cjs/message-type.js +0 -15
- package/dist/cjs/message.d.ts +0 -131
- package/dist/cjs/message.js +0 -129
- package/dist/cjs/private/binary-format.d.ts +0 -7
- package/dist/cjs/private/binary-format.js +0 -430
- package/dist/cjs/private/enum.d.ts +0 -27
- package/dist/cjs/private/enum.js +0 -94
- package/dist/cjs/private/extensions.d.ts +0 -34
- package/dist/cjs/private/extensions.js +0 -86
- package/dist/cjs/private/feature-set.d.ts +0 -19
- package/dist/cjs/private/feature-set.js +0 -106
- package/dist/cjs/private/field-list.d.ts +0 -18
- package/dist/cjs/private/field-list.js +0 -76
- package/dist/cjs/private/field-normalize.d.ts +0 -9
- package/dist/cjs/private/field-normalize.js +0 -69
- package/dist/cjs/private/field-wrapper.d.ts +0 -25
- package/dist/cjs/private/field-wrapper.js +0 -57
- package/dist/cjs/private/field.d.ts +0 -16
- package/dist/cjs/private/field.js +0 -45
- package/dist/cjs/private/json-format.d.ts +0 -2
- package/dist/cjs/private/json-format.js +0 -626
- package/dist/cjs/private/message-type.d.ts +0 -18
- package/dist/cjs/private/message-type.js +0 -50
- package/dist/cjs/private/names.d.ts +0 -43
- package/dist/cjs/private/names.js +0 -278
- package/dist/cjs/private/options-map.d.ts +0 -7
- package/dist/cjs/private/options-map.js +0 -15
- package/dist/cjs/private/proto-runtime.d.ts +0 -53
- package/dist/cjs/private/proto-runtime.js +0 -41
- package/dist/cjs/private/reflect.d.ts +0 -9
- package/dist/cjs/private/reflect.js +0 -79
- package/dist/cjs/private/reify-wkt.d.ts +0 -102
- package/dist/cjs/private/reify-wkt.js +0 -172
- package/dist/cjs/private/scalars.d.ts +0 -18
- package/dist/cjs/private/scalars.js +0 -105
- package/dist/cjs/private/text-format.d.ts +0 -4
- package/dist/cjs/private/util-common.d.ts +0 -2
- package/dist/cjs/private/util-common.js +0 -237
- package/dist/cjs/private/util.d.ts +0 -38
- package/dist/cjs/private/util.js +0 -15
- package/dist/cjs/proto-base64.d.ts +0 -18
- package/dist/cjs/proto-base64.js +0 -128
- package/dist/cjs/proto-delimited.d.ts +0 -54
- package/dist/cjs/proto-delimited.js +0 -155
- package/dist/cjs/proto-double.d.ts +0 -5
- package/dist/cjs/proto2.d.ts +0 -4
- package/dist/cjs/proto2.js +0 -53
- package/dist/cjs/proto3.d.ts +0 -4
- package/dist/cjs/proto3.js +0 -56
- package/dist/cjs/scalar.js +0 -81
- package/dist/cjs/service-type.d.ts +0 -96
- package/dist/cjs/service-type.js +0 -53
- package/dist/cjs/to-plain-message.d.ts +0 -12
- package/dist/cjs/to-plain-message.js +0 -72
- package/dist/cjs/type-registry.d.ts +0 -57
- package/dist/cjs/type-registry.js +0 -15
- package/dist/esm/binary-encoding.d.ts +0 -420
- package/dist/esm/binary-format.d.ts +0 -113
- package/dist/esm/codegen-info.d.ts +0 -33
- package/dist/esm/codegen-info.js +0 -67
- package/dist/esm/create-descriptor-set.d.ts +0 -36
- package/dist/esm/create-descriptor-set.js +0 -906
- package/dist/esm/create-registry-from-desc.d.ts +0 -15
- package/dist/esm/create-registry-from-desc.js +0 -261
- package/dist/esm/create-registry.d.ts +0 -9
- package/dist/esm/create-registry.js +0 -90
- package/dist/esm/descriptor-set.js +0 -14
- package/dist/esm/enum.d.ts +0 -35
- package/dist/esm/extension-accessor.js +0 -107
- package/dist/esm/extension.d.ts +0 -24
- package/dist/esm/field-list.d.ts +0 -27
- package/dist/esm/field.d.ts +0 -314
- package/dist/esm/field.js +0 -14
- package/dist/esm/google/protobuf/any_pb.js +0 -269
- package/dist/esm/google/protobuf/api_pb.js +0 -310
- package/dist/esm/google/protobuf/compiler/plugin_pb.js +0 -212
- package/dist/esm/google/protobuf/descriptor_pb.js +0 -1999
- package/dist/esm/google/protobuf/duration_pb.js +0 -165
- package/dist/esm/google/protobuf/empty_pb.d.ts +0 -28
- package/dist/esm/google/protobuf/empty_pb.js +0 -48
- package/dist/esm/google/protobuf/field_mask_pb.js +0 -307
- package/dist/esm/google/protobuf/source_context_pb.d.ts +0 -29
- package/dist/esm/google/protobuf/source_context_pb.js +0 -51
- package/dist/esm/google/protobuf/struct_pb.js +0 -234
- package/dist/esm/google/protobuf/timestamp_pb.js +0 -209
- package/dist/esm/google/protobuf/type_pb.js +0 -554
- package/dist/esm/google/protobuf/wrappers_pb.d.ts +0 -267
- package/dist/esm/google/protobuf/wrappers_pb.js +0 -557
- package/dist/esm/json-format.d.ts +0 -111
- package/dist/esm/json-format.js +0 -14
- package/dist/esm/message-type.d.ts +0 -51
- package/dist/esm/message-type.js +0 -14
- package/dist/esm/message.d.ts +0 -131
- package/dist/esm/message.js +0 -125
- package/dist/esm/private/binary-format.d.ts +0 -7
- package/dist/esm/private/binary-format.js +0 -426
- package/dist/esm/private/enum.d.ts +0 -27
- package/dist/esm/private/enum.js +0 -87
- package/dist/esm/private/extensions.d.ts +0 -34
- package/dist/esm/private/extensions.js +0 -81
- package/dist/esm/private/feature-set.d.ts +0 -19
- package/dist/esm/private/feature-set.js +0 -102
- package/dist/esm/private/field-list.d.ts +0 -18
- package/dist/esm/private/field-list.js +0 -72
- package/dist/esm/private/field-normalize.d.ts +0 -9
- package/dist/esm/private/field-normalize.js +0 -65
- package/dist/esm/private/field-wrapper.d.ts +0 -25
- package/dist/esm/private/field-wrapper.js +0 -53
- package/dist/esm/private/field.d.ts +0 -16
- package/dist/esm/private/field.js +0 -41
- package/dist/esm/private/json-format.d.ts +0 -2
- package/dist/esm/private/json-format.js +0 -623
- package/dist/esm/private/message-type.d.ts +0 -18
- package/dist/esm/private/message-type.js +0 -46
- package/dist/esm/private/names.d.ts +0 -43
- package/dist/esm/private/names.js +0 -269
- package/dist/esm/private/options-map.d.ts +0 -7
- package/dist/esm/private/options-map.js +0 -14
- package/dist/esm/private/proto-runtime.d.ts +0 -53
- package/dist/esm/private/proto-runtime.js +0 -37
- package/dist/esm/private/reflect.d.ts +0 -9
- package/dist/esm/private/reflect.js +0 -74
- package/dist/esm/private/reify-wkt.d.ts +0 -102
- package/dist/esm/private/reify-wkt.js +0 -168
- package/dist/esm/private/scalars.d.ts +0 -18
- package/dist/esm/private/scalars.js +0 -99
- package/dist/esm/private/text-format.d.ts +0 -4
- package/dist/esm/private/util-common.d.ts +0 -2
- package/dist/esm/private/util-common.js +0 -234
- package/dist/esm/private/util.d.ts +0 -38
- package/dist/esm/private/util.js +0 -14
- package/dist/esm/proto-base64.d.ts +0 -18
- package/dist/esm/proto-base64.js +0 -125
- package/dist/esm/proto-delimited.d.ts +0 -54
- package/dist/esm/proto-delimited.js +0 -152
- package/dist/esm/proto-double.d.ts +0 -5
- package/dist/esm/proto-double.js +0 -26
- package/dist/esm/proto2.d.ts +0 -4
- package/dist/esm/proto2.js +0 -50
- package/dist/esm/proto3.d.ts +0 -4
- package/dist/esm/proto3.js +0 -53
- package/dist/esm/scalar.js +0 -78
- package/dist/esm/service-type.d.ts +0 -96
- package/dist/esm/service-type.js +0 -50
- package/dist/esm/to-plain-message.d.ts +0 -12
- package/dist/esm/to-plain-message.js +0 -70
- package/dist/esm/type-registry.d.ts +0 -57
- package/dist/esm/type-registry.js +0 -14
- /package/dist/cjs/{binary-format.js → desc-types.js} +0 -0
- /package/dist/cjs/{descriptor-set.js → json-value.js} +0 -0
- /package/dist/cjs/{private → reflect}/assert.d.ts +0 -0
- /package/dist/cjs/{private → reflect}/assert.js +0 -0
- /package/dist/cjs/{enum.js → types.js} +0 -0
- /package/dist/esm/{binary-format.js → desc-types.js} +0 -0
- /package/dist/esm/{enum.js → json-value.js} +0 -0
- /package/dist/esm/{private → reflect}/assert.d.ts +0 -0
- /package/dist/esm/{private → reflect}/assert.js +0 -0
- /package/dist/esm/{extension.js → types.js} +0 -0
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { Message } from "
|
|
3
|
-
|
|
4
|
-
import type { JsonReadOptions, JsonValue, JsonWriteOptions } from "../../json-format.js";
|
|
5
|
-
import type { FieldList } from "../../field-list.js";
|
|
6
|
-
import type { BinaryReadOptions } from "../../binary-format.js";
|
|
1
|
+
import type { GenDescFile, GenDescMessage } from "../../../../codegenv1/types.js";
|
|
2
|
+
import type { Message } from "../../../../types.js";
|
|
3
|
+
export declare const fileDesc_google_protobuf_duration: GenDescFile;
|
|
7
4
|
/**
|
|
8
5
|
* A Duration represents a signed, fixed-length span of time represented
|
|
9
6
|
* as a count of seconds and fractions of seconds at nanosecond
|
|
@@ -67,7 +64,7 @@ import type { BinaryReadOptions } from "../../binary-format.js";
|
|
|
67
64
|
*
|
|
68
65
|
* @generated from message google.protobuf.Duration
|
|
69
66
|
*/
|
|
70
|
-
export
|
|
67
|
+
export type Duration = Message<"google.protobuf.Duration"> & {
|
|
71
68
|
/**
|
|
72
69
|
* Signed seconds of the span of time. Must be from -315,576,000,000
|
|
73
70
|
* to +315,576,000,000 inclusive. Note: these bounds are computed from:
|
|
@@ -87,14 +84,5 @@ export declare class Duration extends Message<Duration> {
|
|
|
87
84
|
* @generated from field: int32 nanos = 2;
|
|
88
85
|
*/
|
|
89
86
|
nanos: number;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
toJson(options?: Partial<JsonWriteOptions>): JsonValue;
|
|
93
|
-
static readonly runtime: typeof proto3;
|
|
94
|
-
static readonly typeName = "google.protobuf.Duration";
|
|
95
|
-
static readonly fields: FieldList;
|
|
96
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Duration;
|
|
97
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Duration;
|
|
98
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Duration;
|
|
99
|
-
static equals(a: Duration | PlainMessage<Duration> | undefined, b: Duration | PlainMessage<Duration> | undefined): boolean;
|
|
100
|
-
}
|
|
87
|
+
};
|
|
88
|
+
export declare const DurationDesc: GenDescMessage<Duration>;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 });
|
|
16
|
+
exports.DurationDesc = exports.fileDesc_google_protobuf_duration = void 0;
|
|
17
|
+
const file_js_1 = require("../../../../codegenv1/file.js");
|
|
18
|
+
const message_js_1 = require("../../../../codegenv1/message.js");
|
|
19
|
+
exports.fileDesc_google_protobuf_duration = (0, file_js_1.fileDesc)("Ch5nb29nbGUvcHJvdG9idWYvZHVyYXRpb24ucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIqCghEdXJhdGlvbhIPCgdzZWNvbmRzGAEgASgDEg0KBW5hbm9zGAIgASgFQoMBChNjb20uZ29vZ2xlLnByb3RvYnVmQg1EdXJhdGlvblByb3RvUAFaMWdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2R1cmF0aW9ucGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw");
|
|
20
|
+
// Describes the message google.protobuf.Duration.
|
|
21
|
+
// Use `create(DurationDesc)` to create a new Duration.
|
|
22
|
+
exports.DurationDesc = (0, message_js_1.messageDesc)(exports.fileDesc_google_protobuf_duration, 0);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { GenDescFile, GenDescMessage } from "../../../../codegenv1/types.js";
|
|
2
|
+
import type { Message } from "../../../../types.js";
|
|
3
|
+
export declare const fileDesc_google_protobuf_empty: GenDescFile;
|
|
4
|
+
/**
|
|
5
|
+
* A generic empty message that you can re-use to avoid defining duplicated
|
|
6
|
+
* empty messages in your APIs. A typical example is to use it as the request
|
|
7
|
+
* or the response type of an API method. For instance:
|
|
8
|
+
*
|
|
9
|
+
* service Foo {
|
|
10
|
+
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
11
|
+
* }
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* @generated from message google.protobuf.Empty
|
|
15
|
+
*/
|
|
16
|
+
export type Empty = Message<"google.protobuf.Empty"> & {};
|
|
17
|
+
export declare const EmptyDesc: GenDescMessage<Empty>;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 });
|
|
16
|
+
exports.EmptyDesc = exports.fileDesc_google_protobuf_empty = void 0;
|
|
17
|
+
const file_js_1 = require("../../../../codegenv1/file.js");
|
|
18
|
+
const message_js_1 = require("../../../../codegenv1/message.js");
|
|
19
|
+
exports.fileDesc_google_protobuf_empty = (0, file_js_1.fileDesc)("Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIHCgVFbXB0eUJ9ChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3RvUAFaLmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2VtcHR5cGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw");
|
|
20
|
+
// Describes the message google.protobuf.Empty.
|
|
21
|
+
// Use `create(EmptyDesc)` to create a new Empty.
|
|
22
|
+
exports.EmptyDesc = (0, message_js_1.messageDesc)(exports.fileDesc_google_protobuf_empty, 0);
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { Message } from "
|
|
3
|
-
|
|
4
|
-
import type { JsonReadOptions, JsonValue, JsonWriteOptions } from "../../json-format.js";
|
|
5
|
-
import type { FieldList } from "../../field-list.js";
|
|
6
|
-
import type { BinaryReadOptions } from "../../binary-format.js";
|
|
1
|
+
import type { GenDescFile, GenDescMessage } from "../../../../codegenv1/types.js";
|
|
2
|
+
import type { Message } from "../../../../types.js";
|
|
3
|
+
export declare const fileDesc_google_protobuf_field_mask: GenDescFile;
|
|
7
4
|
/**
|
|
8
5
|
* `FieldMask` represents a set of symbolic field paths, for example:
|
|
9
6
|
*
|
|
@@ -207,21 +204,12 @@ import type { BinaryReadOptions } from "../../binary-format.js";
|
|
|
207
204
|
*
|
|
208
205
|
* @generated from message google.protobuf.FieldMask
|
|
209
206
|
*/
|
|
210
|
-
export
|
|
207
|
+
export type FieldMask = Message<"google.protobuf.FieldMask"> & {
|
|
211
208
|
/**
|
|
212
209
|
* The set of field mask paths.
|
|
213
210
|
*
|
|
214
211
|
* @generated from field: repeated string paths = 1;
|
|
215
212
|
*/
|
|
216
213
|
paths: string[];
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
|
|
220
|
-
static readonly runtime: typeof proto3;
|
|
221
|
-
static readonly typeName = "google.protobuf.FieldMask";
|
|
222
|
-
static readonly fields: FieldList;
|
|
223
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FieldMask;
|
|
224
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FieldMask;
|
|
225
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FieldMask;
|
|
226
|
-
static equals(a: FieldMask | PlainMessage<FieldMask> | undefined, b: FieldMask | PlainMessage<FieldMask> | undefined): boolean;
|
|
227
|
-
}
|
|
214
|
+
};
|
|
215
|
+
export declare const FieldMaskDesc: GenDescMessage<FieldMask>;
|
|
@@ -13,17 +13,10 @@
|
|
|
13
13
|
// See the License for the specific language governing permissions and
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
//
|
|
21
|
-
//
|
|
22
|
-
|
|
23
|
-
// be in a different scope as the generated code and we are guaranteed to use
|
|
24
|
-
// the intended global values.
|
|
25
|
-
exports.protoDouble = {
|
|
26
|
-
NaN: Number.NaN,
|
|
27
|
-
POSITIVE_INFINITY: Number.POSITIVE_INFINITY,
|
|
28
|
-
NEGATIVE_INFINITY: Number.NEGATIVE_INFINITY,
|
|
29
|
-
};
|
|
16
|
+
exports.FieldMaskDesc = exports.fileDesc_google_protobuf_field_mask = void 0;
|
|
17
|
+
const file_js_1 = require("../../../../codegenv1/file.js");
|
|
18
|
+
const message_js_1 = require("../../../../codegenv1/message.js");
|
|
19
|
+
exports.fileDesc_google_protobuf_field_mask = (0, file_js_1.fileDesc)("CiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90bxIPZ29vZ2xlLnByb3RvYnVmIhoKCUZpZWxkTWFzaxINCgVwYXRocxgBIAMoCUKFAQoTY29tLmdvb2dsZS5wcm90b2J1ZkIORmllbGRNYXNrUHJvdG9QAVoyZ29vZ2xlLmdvbGFuZy5vcmcvcHJvdG9idWYvdHlwZXMva25vd24vZmllbGRtYXNrcGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw");
|
|
20
|
+
// Describes the message google.protobuf.FieldMask.
|
|
21
|
+
// Use `create(FieldMaskDesc)` to create a new FieldMask.
|
|
22
|
+
exports.FieldMaskDesc = (0, message_js_1.messageDesc)(exports.fileDesc_google_protobuf_field_mask, 0);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { GenDescFile, GenDescMessage } from "../../../../codegenv1/types.js";
|
|
2
|
+
import type { Message } from "../../../../types.js";
|
|
3
|
+
export declare const fileDesc_google_protobuf_source_context: GenDescFile;
|
|
4
|
+
/**
|
|
5
|
+
* `SourceContext` represents information about the source of a
|
|
6
|
+
* protobuf element, like the file in which it is defined.
|
|
7
|
+
*
|
|
8
|
+
* @generated from message google.protobuf.SourceContext
|
|
9
|
+
*/
|
|
10
|
+
export type SourceContext = Message<"google.protobuf.SourceContext"> & {
|
|
11
|
+
/**
|
|
12
|
+
* The path-qualified name of the .proto file that contained the associated
|
|
13
|
+
* protobuf element. For example: `"google/protobuf/source_context.proto"`.
|
|
14
|
+
*
|
|
15
|
+
* @generated from field: string file_name = 1;
|
|
16
|
+
*/
|
|
17
|
+
fileName: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const SourceContextDesc: GenDescMessage<SourceContext>;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 });
|
|
16
|
+
exports.SourceContextDesc = exports.fileDesc_google_protobuf_source_context = void 0;
|
|
17
|
+
const file_js_1 = require("../../../../codegenv1/file.js");
|
|
18
|
+
const message_js_1 = require("../../../../codegenv1/message.js");
|
|
19
|
+
exports.fileDesc_google_protobuf_source_context = (0, file_js_1.fileDesc)("CiRnb29nbGUvcHJvdG9idWYvc291cmNlX2NvbnRleHQucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIiCg1Tb3VyY2VDb250ZXh0EhEKCWZpbGVfbmFtZRgBIAEoCUKKAQoTY29tLmdvb2dsZS5wcm90b2J1ZkISU291cmNlQ29udGV4dFByb3RvUAFaNmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3NvdXJjZWNvbnRleHRwYqICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJvdG8z");
|
|
20
|
+
// Describes the message google.protobuf.SourceContext.
|
|
21
|
+
// Use `create(SourceContextDesc)` to create a new SourceContext.
|
|
22
|
+
exports.SourceContextDesc = (0, message_js_1.messageDesc)(exports.fileDesc_google_protobuf_source_context, 0);
|
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
import type { JsonReadOptions, JsonValue, JsonWriteOptions } from "../../json-format.js";
|
|
5
|
-
import type { FieldList } from "../../field-list.js";
|
|
6
|
-
import type { BinaryReadOptions } from "../../binary-format.js";
|
|
7
|
-
/**
|
|
8
|
-
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
9
|
-
* `Value` type union.
|
|
10
|
-
*
|
|
11
|
-
* The JSON representation for `NullValue` is JSON `null`.
|
|
12
|
-
*
|
|
13
|
-
* @generated from enum google.protobuf.NullValue
|
|
14
|
-
*/
|
|
15
|
-
export declare enum NullValue {
|
|
16
|
-
/**
|
|
17
|
-
* Null value.
|
|
18
|
-
*
|
|
19
|
-
* @generated from enum value: NULL_VALUE = 0;
|
|
20
|
-
*/
|
|
21
|
-
NULL_VALUE = 0
|
|
22
|
-
}
|
|
1
|
+
import type { GenDescEnum, GenDescFile, GenDescMessage } from "../../../../codegenv1/types.js";
|
|
2
|
+
import type { Message } from "../../../../types.js";
|
|
3
|
+
export declare const fileDesc_google_protobuf_struct: GenDescFile;
|
|
23
4
|
/**
|
|
24
5
|
* `Struct` represents a structured data value, consisting of fields
|
|
25
6
|
* which map to dynamically typed values. In some languages, `Struct`
|
|
@@ -32,7 +13,7 @@ export declare enum NullValue {
|
|
|
32
13
|
*
|
|
33
14
|
* @generated from message google.protobuf.Struct
|
|
34
15
|
*/
|
|
35
|
-
export
|
|
16
|
+
export type Struct = Message<"google.protobuf.Struct"> & {
|
|
36
17
|
/**
|
|
37
18
|
* Unordered map of dynamically typed values.
|
|
38
19
|
*
|
|
@@ -41,17 +22,8 @@ export declare class Struct extends Message<Struct> {
|
|
|
41
22
|
fields: {
|
|
42
23
|
[key: string]: Value;
|
|
43
24
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
|
|
47
|
-
static readonly runtime: typeof proto3;
|
|
48
|
-
static readonly typeName = "google.protobuf.Struct";
|
|
49
|
-
static readonly fields: FieldList;
|
|
50
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Struct;
|
|
51
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Struct;
|
|
52
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Struct;
|
|
53
|
-
static equals(a: Struct | PlainMessage<Struct> | undefined, b: Struct | PlainMessage<Struct> | undefined): boolean;
|
|
54
|
-
}
|
|
25
|
+
};
|
|
26
|
+
export declare const StructDesc: GenDescMessage<Struct>;
|
|
55
27
|
/**
|
|
56
28
|
* `Value` represents a dynamically typed value which can be either
|
|
57
29
|
* null, a number, a string, a boolean, a recursive struct value, or a
|
|
@@ -62,7 +34,7 @@ export declare class Struct extends Message<Struct> {
|
|
|
62
34
|
*
|
|
63
35
|
* @generated from message google.protobuf.Value
|
|
64
36
|
*/
|
|
65
|
-
export
|
|
37
|
+
export type Value = Message<"google.protobuf.Value"> & {
|
|
66
38
|
/**
|
|
67
39
|
* The kind of value.
|
|
68
40
|
*
|
|
@@ -120,17 +92,8 @@ export declare class Value extends Message<Value> {
|
|
|
120
92
|
case: undefined;
|
|
121
93
|
value?: undefined;
|
|
122
94
|
};
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
|
|
126
|
-
static readonly runtime: typeof proto3;
|
|
127
|
-
static readonly typeName = "google.protobuf.Value";
|
|
128
|
-
static readonly fields: FieldList;
|
|
129
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Value;
|
|
130
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Value;
|
|
131
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Value;
|
|
132
|
-
static equals(a: Value | PlainMessage<Value> | undefined, b: Value | PlainMessage<Value> | undefined): boolean;
|
|
133
|
-
}
|
|
95
|
+
};
|
|
96
|
+
export declare const ValueDesc: GenDescMessage<Value>;
|
|
134
97
|
/**
|
|
135
98
|
* `ListValue` is a wrapper around a repeated field of values.
|
|
136
99
|
*
|
|
@@ -138,21 +101,29 @@ export declare class Value extends Message<Value> {
|
|
|
138
101
|
*
|
|
139
102
|
* @generated from message google.protobuf.ListValue
|
|
140
103
|
*/
|
|
141
|
-
export
|
|
104
|
+
export type ListValue = Message<"google.protobuf.ListValue"> & {
|
|
142
105
|
/**
|
|
143
106
|
* Repeated field of dynamically typed values.
|
|
144
107
|
*
|
|
145
108
|
* @generated from field: repeated google.protobuf.Value values = 1;
|
|
146
109
|
*/
|
|
147
110
|
values: Value[];
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
111
|
+
};
|
|
112
|
+
export declare const ListValueDesc: GenDescMessage<ListValue>;
|
|
113
|
+
/**
|
|
114
|
+
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
115
|
+
* `Value` type union.
|
|
116
|
+
*
|
|
117
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
118
|
+
*
|
|
119
|
+
* @generated from enum google.protobuf.NullValue
|
|
120
|
+
*/
|
|
121
|
+
export declare enum NullValue {
|
|
122
|
+
/**
|
|
123
|
+
* Null value.
|
|
124
|
+
*
|
|
125
|
+
* @generated from enum value: NULL_VALUE = 0;
|
|
126
|
+
*/
|
|
127
|
+
NULL_VALUE = 0
|
|
158
128
|
}
|
|
129
|
+
export declare const NullValueDesc: GenDescEnum<NullValue>;
|
|
@@ -0,0 +1,48 @@
|
|
|
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 });
|
|
16
|
+
exports.NullValueDesc = exports.NullValue = exports.ListValueDesc = exports.ValueDesc = exports.StructDesc = exports.fileDesc_google_protobuf_struct = void 0;
|
|
17
|
+
const file_js_1 = require("../../../../codegenv1/file.js");
|
|
18
|
+
const message_js_1 = require("../../../../codegenv1/message.js");
|
|
19
|
+
const enum_js_1 = require("../../../../codegenv1/enum.js");
|
|
20
|
+
exports.fileDesc_google_protobuf_struct = (0, file_js_1.fileDesc)("Chxnb29nbGUvcHJvdG9idWYvc3RydWN0LnByb3RvEg9nb29nbGUucHJvdG9idWYihAEKBlN0cnVjdBIzCgZmaWVsZHMYASADKAsyIy5nb29nbGUucHJvdG9idWYuU3RydWN0LkZpZWxkc0VudHJ5GkUKC0ZpZWxkc0VudHJ5EgsKA2tleRgBIAEoCRIlCgV2YWx1ZRgCIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZToCOAEi6gEKBVZhbHVlEjAKCm51bGxfdmFsdWUYASABKA4yGi5nb29nbGUucHJvdG9idWYuTnVsbFZhbHVlSAASFgoMbnVtYmVyX3ZhbHVlGAIgASgBSAASFgoMc3RyaW5nX3ZhbHVlGAMgASgJSAASFAoKYm9vbF92YWx1ZRgEIAEoCEgAEi8KDHN0cnVjdF92YWx1ZRgFIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RIABIwCgpsaXN0X3ZhbHVlGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLkxpc3RWYWx1ZUgAQgYKBGtpbmQiMwoJTGlzdFZhbHVlEiYKBnZhbHVlcxgBIAMoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZSobCglOdWxsVmFsdWUSDgoKTlVMTF9WQUxVRRAAQn8KE2NvbS5nb29nbGUucHJvdG9idWZCC1N0cnVjdFByb3RvUAFaL2dvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3N0cnVjdHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM");
|
|
21
|
+
// Describes the message google.protobuf.Struct.
|
|
22
|
+
// Use `create(StructDesc)` to create a new Struct.
|
|
23
|
+
exports.StructDesc = (0, message_js_1.messageDesc)(exports.fileDesc_google_protobuf_struct, 0);
|
|
24
|
+
// Describes the message google.protobuf.Value.
|
|
25
|
+
// Use `create(ValueDesc)` to create a new Value.
|
|
26
|
+
exports.ValueDesc = (0, message_js_1.messageDesc)(exports.fileDesc_google_protobuf_struct, 1);
|
|
27
|
+
// Describes the message google.protobuf.ListValue.
|
|
28
|
+
// Use `create(ListValueDesc)` to create a new ListValue.
|
|
29
|
+
exports.ListValueDesc = (0, message_js_1.messageDesc)(exports.fileDesc_google_protobuf_struct, 2);
|
|
30
|
+
/**
|
|
31
|
+
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
32
|
+
* `Value` type union.
|
|
33
|
+
*
|
|
34
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
35
|
+
*
|
|
36
|
+
* @generated from enum google.protobuf.NullValue
|
|
37
|
+
*/
|
|
38
|
+
var NullValue;
|
|
39
|
+
(function (NullValue) {
|
|
40
|
+
/**
|
|
41
|
+
* Null value.
|
|
42
|
+
*
|
|
43
|
+
* @generated from enum value: NULL_VALUE = 0;
|
|
44
|
+
*/
|
|
45
|
+
NullValue[NullValue["NULL_VALUE"] = 0] = "NULL_VALUE";
|
|
46
|
+
})(NullValue || (exports.NullValue = NullValue = {}));
|
|
47
|
+
// Describes the enum google.protobuf.NullValue.
|
|
48
|
+
exports.NullValueDesc = (0, enum_js_1.enumDesc)(exports.fileDesc_google_protobuf_struct, 0);
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { Message } from "
|
|
3
|
-
|
|
4
|
-
import type { JsonReadOptions, JsonValue, JsonWriteOptions } from "../../json-format.js";
|
|
5
|
-
import type { FieldList } from "../../field-list.js";
|
|
6
|
-
import type { BinaryReadOptions } from "../../binary-format.js";
|
|
1
|
+
import type { GenDescFile, GenDescMessage } from "../../../../codegenv1/types.js";
|
|
2
|
+
import type { Message } from "../../../../types.js";
|
|
3
|
+
export declare const fileDesc_google_protobuf_timestamp: GenDescFile;
|
|
7
4
|
/**
|
|
8
5
|
* A Timestamp represents a point in time independent of any time zone or local
|
|
9
6
|
* calendar, encoded as a count of seconds and fractions of seconds at
|
|
@@ -98,7 +95,7 @@ import type { BinaryReadOptions } from "../../binary-format.js";
|
|
|
98
95
|
*
|
|
99
96
|
* @generated from message google.protobuf.Timestamp
|
|
100
97
|
*/
|
|
101
|
-
export
|
|
98
|
+
export type Timestamp = Message<"google.protobuf.Timestamp"> & {
|
|
102
99
|
/**
|
|
103
100
|
* Represents seconds of UTC time since Unix epoch
|
|
104
101
|
* 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
|
@@ -116,17 +113,5 @@ export declare class Timestamp extends Message<Timestamp> {
|
|
|
116
113
|
* @generated from field: int32 nanos = 2;
|
|
117
114
|
*/
|
|
118
115
|
nanos: number;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
toJson(options?: Partial<JsonWriteOptions>): JsonValue;
|
|
122
|
-
toDate(): Date;
|
|
123
|
-
static readonly runtime: typeof proto3;
|
|
124
|
-
static readonly typeName = "google.protobuf.Timestamp";
|
|
125
|
-
static readonly fields: FieldList;
|
|
126
|
-
static now(): Timestamp;
|
|
127
|
-
static fromDate(date: Date): Timestamp;
|
|
128
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Timestamp;
|
|
129
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Timestamp;
|
|
130
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Timestamp;
|
|
131
|
-
static equals(a: Timestamp | PlainMessage<Timestamp> | undefined, b: Timestamp | PlainMessage<Timestamp> | undefined): boolean;
|
|
132
|
-
}
|
|
116
|
+
};
|
|
117
|
+
export declare const TimestampDesc: GenDescMessage<Timestamp>;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 });
|
|
16
|
+
exports.TimestampDesc = exports.fileDesc_google_protobuf_timestamp = void 0;
|
|
17
|
+
const file_js_1 = require("../../../../codegenv1/file.js");
|
|
18
|
+
const message_js_1 = require("../../../../codegenv1/message.js");
|
|
19
|
+
exports.fileDesc_google_protobuf_timestamp = (0, file_js_1.fileDesc)("Ch9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvEg9nb29nbGUucHJvdG9idWYiKwoJVGltZXN0YW1wEg8KB3NlY29uZHMYASABKAMSDQoFbmFub3MYAiABKAVChQEKE2NvbS5nb29nbGUucHJvdG9idWZCDlRpbWVzdGFtcFByb3RvUAFaMmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3RpbWVzdGFtcHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM");
|
|
20
|
+
// Describes the message google.protobuf.Timestamp.
|
|
21
|
+
// Use `create(TimestampDesc)` to create a new Timestamp.
|
|
22
|
+
exports.TimestampDesc = (0, message_js_1.messageDesc)(exports.fileDesc_google_protobuf_timestamp, 0);
|