@bufbuild/protobuf 1.9.0 → 2.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +41 -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 +5 -0
- package/dist/cjs/codegenv1/restore-json-names.js +30 -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 +125 -0
- package/dist/cjs/codegenv1/symbols.js +67 -0
- package/dist/cjs/codegenv1/types.d.ts +72 -0
- package/dist/cjs/codegenv1/types.js +21 -0
- package/dist/cjs/create.d.ts +9 -0
- package/dist/cjs/create.js +231 -0
- package/dist/{esm/descriptor-set.d.ts → cjs/desc-types.d.ts} +162 -243
- package/dist/cjs/equals.d.ts +9 -0
- package/dist/cjs/equals.js +133 -0
- package/dist/cjs/extensions.d.ts +59 -0
- package/dist/cjs/extensions.js +169 -0
- package/dist/cjs/fields.d.ts +23 -0
- package/dist/cjs/fields.js +46 -0
- package/dist/cjs/from-binary.d.ts +34 -0
- package/dist/cjs/from-binary.js +211 -0
- package/dist/cjs/from-json.d.ts +48 -0
- package/dist/cjs/from-json.js +610 -0
- package/dist/cjs/index.d.ts +16 -42
- package/dist/cjs/index.js +23 -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 +11 -0
- package/dist/cjs/reflect/names.js +74 -0
- package/dist/cjs/reflect/nested-types.d.ts +12 -0
- package/dist/cjs/reflect/nested-types.js +71 -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 +284 -0
- package/dist/cjs/{extension.js → reflect/reflect-types.js} +1 -0
- package/dist/cjs/reflect/reflect.d.ts +32 -0
- package/dist/cjs/reflect/reflect.js +434 -0
- package/dist/cjs/reflect/registry.d.ts +82 -0
- package/dist/cjs/reflect/registry.js +879 -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 +166 -0
- package/dist/cjs/to-binary.d.ts +24 -0
- package/dist/cjs/to-binary.js +192 -0
- package/dist/cjs/to-json.d.ts +50 -0
- package/dist/cjs/to-json.js +364 -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 +244 -0
- package/dist/cjs/{binary-encoding.js → wire/binary-encoding.js} +27 -20
- 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/{esm → cjs/wkt/gen}/google/protobuf/any_pb.d.ts +13 -27
- package/dist/cjs/wkt/gen/google/protobuf/any_pb.js +27 -0
- package/dist/cjs/{google → wkt/gen/google}/protobuf/api_pb.d.ts +29 -38
- package/dist/cjs/wkt/gen/google/protobuf/api_pb.js +39 -0
- package/dist/cjs/{google → wkt/gen/google}/protobuf/compiler/plugin_pb.d.ts +67 -75
- package/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.js +68 -0
- package/dist/cjs/{google → wkt/gen/google}/protobuf/descriptor_pb.d.ts +564 -527
- package/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.js +794 -0
- package/dist/cjs/{google → wkt/gen/google}/protobuf/duration_pb.d.ts +13 -18
- package/dist/cjs/wkt/gen/google/protobuf/duration_pb.js +27 -0
- package/dist/cjs/wkt/gen/google/protobuf/empty_pb.d.ts +24 -0
- package/dist/cjs/wkt/gen/google/protobuf/empty_pb.js +27 -0
- package/dist/{esm → cjs/wkt/gen}/google/protobuf/field_mask_pb.d.ts +13 -18
- package/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.js +27 -0
- package/dist/cjs/wkt/gen/google/protobuf/source_context_pb.d.ts +26 -0
- package/dist/cjs/wkt/gen/google/protobuf/source_context_pb.js +27 -0
- package/dist/{esm → cjs/wkt/gen}/google/protobuf/struct_pb.d.ts +44 -55
- package/dist/cjs/wkt/gen/google/protobuf/struct_pb.js +59 -0
- package/dist/cjs/{google → wkt/gen/google}/protobuf/timestamp_pb.d.ts +13 -21
- package/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.js +27 -0
- package/dist/{esm → cjs/wkt/gen}/google/protobuf/type_pb.d.ts +77 -80
- package/dist/cjs/wkt/gen/google/protobuf/type_pb.js +242 -0
- package/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.d.ts +186 -0
- package/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.js +67 -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 +36 -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 +5 -0
- package/dist/esm/codegenv1/restore-json-names.js +26 -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 +125 -0
- package/dist/esm/codegenv1/symbols.js +64 -0
- package/dist/esm/codegenv1/types.d.ts +72 -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 +228 -0
- package/dist/{cjs/descriptor-set.d.ts → esm/desc-types.d.ts} +162 -243
- package/dist/esm/equals.d.ts +9 -0
- package/dist/esm/equals.js +129 -0
- package/dist/esm/extensions.d.ts +59 -0
- package/dist/esm/extensions.js +159 -0
- package/dist/esm/fields.d.ts +23 -0
- package/dist/esm/fields.js +41 -0
- package/dist/esm/from-binary.d.ts +34 -0
- package/dist/esm/from-binary.js +205 -0
- package/dist/esm/from-json.d.ts +48 -0
- package/dist/esm/from-json.js +603 -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 +11 -0
- package/dist/esm/reflect/names.js +69 -0
- package/dist/esm/reflect/nested-types.d.ts +12 -0
- package/dist/esm/reflect/nested-types.js +66 -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 +284 -0
- package/dist/esm/reflect/reflect-types.js +15 -0
- package/dist/esm/reflect/reflect.d.ts +32 -0
- package/dist/esm/reflect/reflect.js +428 -0
- package/dist/esm/reflect/registry.d.ts +82 -0
- package/dist/esm/reflect/registry.js +874 -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 +155 -0
- package/dist/esm/to-binary.d.ts +24 -0
- package/dist/esm/to-binary.js +187 -0
- package/dist/esm/to-json.d.ts +50 -0
- package/dist/esm/to-json.js +359 -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 +244 -0
- package/dist/esm/{binary-encoding.js → wire/binary-encoding.js} +27 -20
- 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/{cjs → esm/wkt/gen}/google/protobuf/any_pb.d.ts +13 -27
- package/dist/esm/wkt/gen/google/protobuf/any_pb.js +24 -0
- package/dist/esm/{google → wkt/gen/google}/protobuf/api_pb.d.ts +29 -38
- package/dist/esm/wkt/gen/google/protobuf/api_pb.js +36 -0
- package/dist/esm/{google → wkt/gen/google}/protobuf/compiler/plugin_pb.d.ts +67 -75
- package/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +65 -0
- package/dist/esm/{google → wkt/gen/google}/protobuf/descriptor_pb.d.ts +564 -527
- package/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +790 -0
- package/dist/esm/{google → wkt/gen/google}/protobuf/duration_pb.d.ts +13 -18
- package/dist/esm/wkt/gen/google/protobuf/duration_pb.js +24 -0
- package/dist/esm/wkt/gen/google/protobuf/empty_pb.d.ts +24 -0
- package/dist/esm/wkt/gen/google/protobuf/empty_pb.js +24 -0
- package/dist/{cjs → esm/wkt/gen}/google/protobuf/field_mask_pb.d.ts +13 -18
- package/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +24 -0
- package/dist/esm/wkt/gen/google/protobuf/source_context_pb.d.ts +26 -0
- package/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +24 -0
- package/dist/{cjs → esm/wkt/gen}/google/protobuf/struct_pb.d.ts +44 -55
- package/dist/esm/wkt/gen/google/protobuf/struct_pb.js +56 -0
- package/dist/esm/{google → wkt/gen/google}/protobuf/timestamp_pb.d.ts +13 -21
- package/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +24 -0
- package/dist/{cjs → esm/wkt/gen}/google/protobuf/type_pb.d.ts +77 -80
- package/dist/esm/wkt/gen/google/protobuf/type_pb.js +239 -0
- package/dist/esm/wkt/gen/google/protobuf/wrappers_pb.d.ts +186 -0
- package/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +64 -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.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/proto-double.js +0 -29
- 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.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,316 +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 });
|
|
16
|
-
exports.Mixin = exports.Method = exports.Api = void 0;
|
|
17
|
-
const message_js_1 = require("../../message.js");
|
|
18
|
-
const type_pb_js_1 = require("./type_pb.js");
|
|
19
|
-
const source_context_pb_js_1 = require("./source_context_pb.js");
|
|
20
|
-
const proto3_js_1 = require("../../proto3.js");
|
|
21
|
-
/**
|
|
22
|
-
* Api is a light-weight descriptor for an API Interface.
|
|
23
|
-
*
|
|
24
|
-
* Interfaces are also described as "protocol buffer services" in some contexts,
|
|
25
|
-
* such as by the "service" keyword in a .proto file, but they are different
|
|
26
|
-
* from API Services, which represent a concrete implementation of an interface
|
|
27
|
-
* as opposed to simply a description of methods and bindings. They are also
|
|
28
|
-
* sometimes simply referred to as "APIs" in other contexts, such as the name of
|
|
29
|
-
* this message itself. See https://cloud.google.com/apis/design/glossary for
|
|
30
|
-
* detailed terminology.
|
|
31
|
-
*
|
|
32
|
-
* @generated from message google.protobuf.Api
|
|
33
|
-
*/
|
|
34
|
-
class Api extends message_js_1.Message {
|
|
35
|
-
constructor(data) {
|
|
36
|
-
super();
|
|
37
|
-
/**
|
|
38
|
-
* The fully qualified name of this interface, including package name
|
|
39
|
-
* followed by the interface's simple name.
|
|
40
|
-
*
|
|
41
|
-
* @generated from field: string name = 1;
|
|
42
|
-
*/
|
|
43
|
-
this.name = "";
|
|
44
|
-
/**
|
|
45
|
-
* The methods of this interface, in unspecified order.
|
|
46
|
-
*
|
|
47
|
-
* @generated from field: repeated google.protobuf.Method methods = 2;
|
|
48
|
-
*/
|
|
49
|
-
this.methods = [];
|
|
50
|
-
/**
|
|
51
|
-
* Any metadata attached to the interface.
|
|
52
|
-
*
|
|
53
|
-
* @generated from field: repeated google.protobuf.Option options = 3;
|
|
54
|
-
*/
|
|
55
|
-
this.options = [];
|
|
56
|
-
/**
|
|
57
|
-
* A version string for this interface. If specified, must have the form
|
|
58
|
-
* `major-version.minor-version`, as in `1.10`. If the minor version is
|
|
59
|
-
* omitted, it defaults to zero. If the entire version field is empty, the
|
|
60
|
-
* major version is derived from the package name, as outlined below. If the
|
|
61
|
-
* field is not empty, the version in the package name will be verified to be
|
|
62
|
-
* consistent with what is provided here.
|
|
63
|
-
*
|
|
64
|
-
* The versioning schema uses [semantic
|
|
65
|
-
* versioning](http://semver.org) where the major version number
|
|
66
|
-
* indicates a breaking change and the minor version an additive,
|
|
67
|
-
* non-breaking change. Both version numbers are signals to users
|
|
68
|
-
* what to expect from different versions, and should be carefully
|
|
69
|
-
* chosen based on the product plan.
|
|
70
|
-
*
|
|
71
|
-
* The major version is also reflected in the package name of the
|
|
72
|
-
* interface, which must end in `v<major-version>`, as in
|
|
73
|
-
* `google.feature.v1`. For major versions 0 and 1, the suffix can
|
|
74
|
-
* be omitted. Zero major versions must only be used for
|
|
75
|
-
* experimental, non-GA interfaces.
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* @generated from field: string version = 4;
|
|
79
|
-
*/
|
|
80
|
-
this.version = "";
|
|
81
|
-
/**
|
|
82
|
-
* Included interfaces. See [Mixin][].
|
|
83
|
-
*
|
|
84
|
-
* @generated from field: repeated google.protobuf.Mixin mixins = 6;
|
|
85
|
-
*/
|
|
86
|
-
this.mixins = [];
|
|
87
|
-
/**
|
|
88
|
-
* The source syntax of the service.
|
|
89
|
-
*
|
|
90
|
-
* @generated from field: google.protobuf.Syntax syntax = 7;
|
|
91
|
-
*/
|
|
92
|
-
this.syntax = type_pb_js_1.Syntax.PROTO2;
|
|
93
|
-
proto3_js_1.proto3.util.initPartial(data, this);
|
|
94
|
-
}
|
|
95
|
-
static fromBinary(bytes, options) {
|
|
96
|
-
return new Api().fromBinary(bytes, options);
|
|
97
|
-
}
|
|
98
|
-
static fromJson(jsonValue, options) {
|
|
99
|
-
return new Api().fromJson(jsonValue, options);
|
|
100
|
-
}
|
|
101
|
-
static fromJsonString(jsonString, options) {
|
|
102
|
-
return new Api().fromJsonString(jsonString, options);
|
|
103
|
-
}
|
|
104
|
-
static equals(a, b) {
|
|
105
|
-
return proto3_js_1.proto3.util.equals(Api, a, b);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
exports.Api = Api;
|
|
109
|
-
Api.runtime = proto3_js_1.proto3;
|
|
110
|
-
Api.typeName = "google.protobuf.Api";
|
|
111
|
-
Api.fields = proto3_js_1.proto3.util.newFieldList(() => [
|
|
112
|
-
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
113
|
-
{ no: 2, name: "methods", kind: "message", T: Method, repeated: true },
|
|
114
|
-
{ no: 3, name: "options", kind: "message", T: type_pb_js_1.Option, repeated: true },
|
|
115
|
-
{ no: 4, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
116
|
-
{ no: 5, name: "source_context", kind: "message", T: source_context_pb_js_1.SourceContext },
|
|
117
|
-
{ no: 6, name: "mixins", kind: "message", T: Mixin, repeated: true },
|
|
118
|
-
{ no: 7, name: "syntax", kind: "enum", T: proto3_js_1.proto3.getEnumType(type_pb_js_1.Syntax) },
|
|
119
|
-
]);
|
|
120
|
-
/**
|
|
121
|
-
* Method represents a method of an API interface.
|
|
122
|
-
*
|
|
123
|
-
* @generated from message google.protobuf.Method
|
|
124
|
-
*/
|
|
125
|
-
class Method extends message_js_1.Message {
|
|
126
|
-
constructor(data) {
|
|
127
|
-
super();
|
|
128
|
-
/**
|
|
129
|
-
* The simple name of this method.
|
|
130
|
-
*
|
|
131
|
-
* @generated from field: string name = 1;
|
|
132
|
-
*/
|
|
133
|
-
this.name = "";
|
|
134
|
-
/**
|
|
135
|
-
* A URL of the input message type.
|
|
136
|
-
*
|
|
137
|
-
* @generated from field: string request_type_url = 2;
|
|
138
|
-
*/
|
|
139
|
-
this.requestTypeUrl = "";
|
|
140
|
-
/**
|
|
141
|
-
* If true, the request is streamed.
|
|
142
|
-
*
|
|
143
|
-
* @generated from field: bool request_streaming = 3;
|
|
144
|
-
*/
|
|
145
|
-
this.requestStreaming = false;
|
|
146
|
-
/**
|
|
147
|
-
* The URL of the output message type.
|
|
148
|
-
*
|
|
149
|
-
* @generated from field: string response_type_url = 4;
|
|
150
|
-
*/
|
|
151
|
-
this.responseTypeUrl = "";
|
|
152
|
-
/**
|
|
153
|
-
* If true, the response is streamed.
|
|
154
|
-
*
|
|
155
|
-
* @generated from field: bool response_streaming = 5;
|
|
156
|
-
*/
|
|
157
|
-
this.responseStreaming = false;
|
|
158
|
-
/**
|
|
159
|
-
* Any metadata attached to the method.
|
|
160
|
-
*
|
|
161
|
-
* @generated from field: repeated google.protobuf.Option options = 6;
|
|
162
|
-
*/
|
|
163
|
-
this.options = [];
|
|
164
|
-
/**
|
|
165
|
-
* The source syntax of this method.
|
|
166
|
-
*
|
|
167
|
-
* @generated from field: google.protobuf.Syntax syntax = 7;
|
|
168
|
-
*/
|
|
169
|
-
this.syntax = type_pb_js_1.Syntax.PROTO2;
|
|
170
|
-
proto3_js_1.proto3.util.initPartial(data, this);
|
|
171
|
-
}
|
|
172
|
-
static fromBinary(bytes, options) {
|
|
173
|
-
return new Method().fromBinary(bytes, options);
|
|
174
|
-
}
|
|
175
|
-
static fromJson(jsonValue, options) {
|
|
176
|
-
return new Method().fromJson(jsonValue, options);
|
|
177
|
-
}
|
|
178
|
-
static fromJsonString(jsonString, options) {
|
|
179
|
-
return new Method().fromJsonString(jsonString, options);
|
|
180
|
-
}
|
|
181
|
-
static equals(a, b) {
|
|
182
|
-
return proto3_js_1.proto3.util.equals(Method, a, b);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
exports.Method = Method;
|
|
186
|
-
Method.runtime = proto3_js_1.proto3;
|
|
187
|
-
Method.typeName = "google.protobuf.Method";
|
|
188
|
-
Method.fields = proto3_js_1.proto3.util.newFieldList(() => [
|
|
189
|
-
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
190
|
-
{ no: 2, name: "request_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
191
|
-
{ no: 3, name: "request_streaming", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
192
|
-
{ no: 4, name: "response_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
193
|
-
{ no: 5, name: "response_streaming", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
194
|
-
{ no: 6, name: "options", kind: "message", T: type_pb_js_1.Option, repeated: true },
|
|
195
|
-
{ no: 7, name: "syntax", kind: "enum", T: proto3_js_1.proto3.getEnumType(type_pb_js_1.Syntax) },
|
|
196
|
-
]);
|
|
197
|
-
/**
|
|
198
|
-
* Declares an API Interface to be included in this interface. The including
|
|
199
|
-
* interface must redeclare all the methods from the included interface, but
|
|
200
|
-
* documentation and options are inherited as follows:
|
|
201
|
-
*
|
|
202
|
-
* - If after comment and whitespace stripping, the documentation
|
|
203
|
-
* string of the redeclared method is empty, it will be inherited
|
|
204
|
-
* from the original method.
|
|
205
|
-
*
|
|
206
|
-
* - Each annotation belonging to the service config (http,
|
|
207
|
-
* visibility) which is not set in the redeclared method will be
|
|
208
|
-
* inherited.
|
|
209
|
-
*
|
|
210
|
-
* - If an http annotation is inherited, the path pattern will be
|
|
211
|
-
* modified as follows. Any version prefix will be replaced by the
|
|
212
|
-
* version of the including interface plus the [root][] path if
|
|
213
|
-
* specified.
|
|
214
|
-
*
|
|
215
|
-
* Example of a simple mixin:
|
|
216
|
-
*
|
|
217
|
-
* package google.acl.v1;
|
|
218
|
-
* service AccessControl {
|
|
219
|
-
* // Get the underlying ACL object.
|
|
220
|
-
* rpc GetAcl(GetAclRequest) returns (Acl) {
|
|
221
|
-
* option (google.api.http).get = "/v1/{resource=**}:getAcl";
|
|
222
|
-
* }
|
|
223
|
-
* }
|
|
224
|
-
*
|
|
225
|
-
* package google.storage.v2;
|
|
226
|
-
* service Storage {
|
|
227
|
-
* rpc GetAcl(GetAclRequest) returns (Acl);
|
|
228
|
-
*
|
|
229
|
-
* // Get a data record.
|
|
230
|
-
* rpc GetData(GetDataRequest) returns (Data) {
|
|
231
|
-
* option (google.api.http).get = "/v2/{resource=**}";
|
|
232
|
-
* }
|
|
233
|
-
* }
|
|
234
|
-
*
|
|
235
|
-
* Example of a mixin configuration:
|
|
236
|
-
*
|
|
237
|
-
* apis:
|
|
238
|
-
* - name: google.storage.v2.Storage
|
|
239
|
-
* mixins:
|
|
240
|
-
* - name: google.acl.v1.AccessControl
|
|
241
|
-
*
|
|
242
|
-
* The mixin construct implies that all methods in `AccessControl` are
|
|
243
|
-
* also declared with same name and request/response types in
|
|
244
|
-
* `Storage`. A documentation generator or annotation processor will
|
|
245
|
-
* see the effective `Storage.GetAcl` method after inherting
|
|
246
|
-
* documentation and annotations as follows:
|
|
247
|
-
*
|
|
248
|
-
* service Storage {
|
|
249
|
-
* // Get the underlying ACL object.
|
|
250
|
-
* rpc GetAcl(GetAclRequest) returns (Acl) {
|
|
251
|
-
* option (google.api.http).get = "/v2/{resource=**}:getAcl";
|
|
252
|
-
* }
|
|
253
|
-
* ...
|
|
254
|
-
* }
|
|
255
|
-
*
|
|
256
|
-
* Note how the version in the path pattern changed from `v1` to `v2`.
|
|
257
|
-
*
|
|
258
|
-
* If the `root` field in the mixin is specified, it should be a
|
|
259
|
-
* relative path under which inherited HTTP paths are placed. Example:
|
|
260
|
-
*
|
|
261
|
-
* apis:
|
|
262
|
-
* - name: google.storage.v2.Storage
|
|
263
|
-
* mixins:
|
|
264
|
-
* - name: google.acl.v1.AccessControl
|
|
265
|
-
* root: acls
|
|
266
|
-
*
|
|
267
|
-
* This implies the following inherited HTTP annotation:
|
|
268
|
-
*
|
|
269
|
-
* service Storage {
|
|
270
|
-
* // Get the underlying ACL object.
|
|
271
|
-
* rpc GetAcl(GetAclRequest) returns (Acl) {
|
|
272
|
-
* option (google.api.http).get = "/v2/acls/{resource=**}:getAcl";
|
|
273
|
-
* }
|
|
274
|
-
* ...
|
|
275
|
-
* }
|
|
276
|
-
*
|
|
277
|
-
* @generated from message google.protobuf.Mixin
|
|
278
|
-
*/
|
|
279
|
-
class Mixin extends message_js_1.Message {
|
|
280
|
-
constructor(data) {
|
|
281
|
-
super();
|
|
282
|
-
/**
|
|
283
|
-
* The fully qualified name of the interface which is included.
|
|
284
|
-
*
|
|
285
|
-
* @generated from field: string name = 1;
|
|
286
|
-
*/
|
|
287
|
-
this.name = "";
|
|
288
|
-
/**
|
|
289
|
-
* If non-empty specifies a path under which inherited HTTP paths
|
|
290
|
-
* are rooted.
|
|
291
|
-
*
|
|
292
|
-
* @generated from field: string root = 2;
|
|
293
|
-
*/
|
|
294
|
-
this.root = "";
|
|
295
|
-
proto3_js_1.proto3.util.initPartial(data, this);
|
|
296
|
-
}
|
|
297
|
-
static fromBinary(bytes, options) {
|
|
298
|
-
return new Mixin().fromBinary(bytes, options);
|
|
299
|
-
}
|
|
300
|
-
static fromJson(jsonValue, options) {
|
|
301
|
-
return new Mixin().fromJson(jsonValue, options);
|
|
302
|
-
}
|
|
303
|
-
static fromJsonString(jsonString, options) {
|
|
304
|
-
return new Mixin().fromJsonString(jsonString, options);
|
|
305
|
-
}
|
|
306
|
-
static equals(a, b) {
|
|
307
|
-
return proto3_js_1.proto3.util.equals(Mixin, a, b);
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
exports.Mixin = Mixin;
|
|
311
|
-
Mixin.runtime = proto3_js_1.proto3;
|
|
312
|
-
Mixin.typeName = "google.protobuf.Mixin";
|
|
313
|
-
Mixin.fields = proto3_js_1.proto3.util.newFieldList(() => [
|
|
314
|
-
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
315
|
-
{ no: 2, name: "root", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
316
|
-
]);
|
|
@@ -1,219 +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 });
|
|
16
|
-
exports.CodeGeneratorResponse_File = exports.CodeGeneratorResponse_Feature = exports.CodeGeneratorResponse = exports.CodeGeneratorRequest = exports.Version = void 0;
|
|
17
|
-
const message_js_1 = require("../../../message.js");
|
|
18
|
-
const proto2_js_1 = require("../../../proto2.js");
|
|
19
|
-
const descriptor_pb_js_1 = require("../descriptor_pb.js");
|
|
20
|
-
/**
|
|
21
|
-
* The version number of protocol compiler.
|
|
22
|
-
*
|
|
23
|
-
* @generated from message google.protobuf.compiler.Version
|
|
24
|
-
*/
|
|
25
|
-
class Version extends message_js_1.Message {
|
|
26
|
-
constructor(data) {
|
|
27
|
-
super();
|
|
28
|
-
proto2_js_1.proto2.util.initPartial(data, this);
|
|
29
|
-
}
|
|
30
|
-
static fromBinary(bytes, options) {
|
|
31
|
-
return new Version().fromBinary(bytes, options);
|
|
32
|
-
}
|
|
33
|
-
static fromJson(jsonValue, options) {
|
|
34
|
-
return new Version().fromJson(jsonValue, options);
|
|
35
|
-
}
|
|
36
|
-
static fromJsonString(jsonString, options) {
|
|
37
|
-
return new Version().fromJsonString(jsonString, options);
|
|
38
|
-
}
|
|
39
|
-
static equals(a, b) {
|
|
40
|
-
return proto2_js_1.proto2.util.equals(Version, a, b);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.Version = Version;
|
|
44
|
-
Version.runtime = proto2_js_1.proto2;
|
|
45
|
-
Version.typeName = "google.protobuf.compiler.Version";
|
|
46
|
-
Version.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
47
|
-
{ no: 1, name: "major", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
48
|
-
{ no: 2, name: "minor", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
49
|
-
{ no: 3, name: "patch", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
50
|
-
{ no: 4, name: "suffix", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
51
|
-
]);
|
|
52
|
-
/**
|
|
53
|
-
* An encoded CodeGeneratorRequest is written to the plugin's stdin.
|
|
54
|
-
*
|
|
55
|
-
* @generated from message google.protobuf.compiler.CodeGeneratorRequest
|
|
56
|
-
*/
|
|
57
|
-
class CodeGeneratorRequest extends message_js_1.Message {
|
|
58
|
-
constructor(data) {
|
|
59
|
-
super();
|
|
60
|
-
/**
|
|
61
|
-
* The .proto files that were explicitly listed on the command-line. The
|
|
62
|
-
* code generator should generate code only for these files. Each file's
|
|
63
|
-
* descriptor will be included in proto_file, below.
|
|
64
|
-
*
|
|
65
|
-
* @generated from field: repeated string file_to_generate = 1;
|
|
66
|
-
*/
|
|
67
|
-
this.fileToGenerate = [];
|
|
68
|
-
/**
|
|
69
|
-
* FileDescriptorProtos for all files in files_to_generate and everything
|
|
70
|
-
* they import. The files will appear in topological order, so each file
|
|
71
|
-
* appears before any file that imports it.
|
|
72
|
-
*
|
|
73
|
-
* Note: the files listed in files_to_generate will include runtime-retention
|
|
74
|
-
* options only, but all other files will include source-retention options.
|
|
75
|
-
* The source_file_descriptors field below is available in case you need
|
|
76
|
-
* source-retention options for files_to_generate.
|
|
77
|
-
*
|
|
78
|
-
* protoc guarantees that all proto_files will be written after
|
|
79
|
-
* the fields above, even though this is not technically guaranteed by the
|
|
80
|
-
* protobuf wire format. This theoretically could allow a plugin to stream
|
|
81
|
-
* in the FileDescriptorProtos and handle them one by one rather than read
|
|
82
|
-
* the entire set into memory at once. However, as of this writing, this
|
|
83
|
-
* is not similarly optimized on protoc's end -- it will store all fields in
|
|
84
|
-
* memory at once before sending them to the plugin.
|
|
85
|
-
*
|
|
86
|
-
* Type names of fields and extensions in the FileDescriptorProto are always
|
|
87
|
-
* fully qualified.
|
|
88
|
-
*
|
|
89
|
-
* @generated from field: repeated google.protobuf.FileDescriptorProto proto_file = 15;
|
|
90
|
-
*/
|
|
91
|
-
this.protoFile = [];
|
|
92
|
-
/**
|
|
93
|
-
* File descriptors with all options, including source-retention options.
|
|
94
|
-
* These descriptors are only provided for the files listed in
|
|
95
|
-
* files_to_generate.
|
|
96
|
-
*
|
|
97
|
-
* @generated from field: repeated google.protobuf.FileDescriptorProto source_file_descriptors = 17;
|
|
98
|
-
*/
|
|
99
|
-
this.sourceFileDescriptors = [];
|
|
100
|
-
proto2_js_1.proto2.util.initPartial(data, this);
|
|
101
|
-
}
|
|
102
|
-
static fromBinary(bytes, options) {
|
|
103
|
-
return new CodeGeneratorRequest().fromBinary(bytes, options);
|
|
104
|
-
}
|
|
105
|
-
static fromJson(jsonValue, options) {
|
|
106
|
-
return new CodeGeneratorRequest().fromJson(jsonValue, options);
|
|
107
|
-
}
|
|
108
|
-
static fromJsonString(jsonString, options) {
|
|
109
|
-
return new CodeGeneratorRequest().fromJsonString(jsonString, options);
|
|
110
|
-
}
|
|
111
|
-
static equals(a, b) {
|
|
112
|
-
return proto2_js_1.proto2.util.equals(CodeGeneratorRequest, a, b);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
exports.CodeGeneratorRequest = CodeGeneratorRequest;
|
|
116
|
-
CodeGeneratorRequest.runtime = proto2_js_1.proto2;
|
|
117
|
-
CodeGeneratorRequest.typeName = "google.protobuf.compiler.CodeGeneratorRequest";
|
|
118
|
-
CodeGeneratorRequest.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
119
|
-
{ no: 1, name: "file_to_generate", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
120
|
-
{ no: 2, name: "parameter", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
121
|
-
{ no: 15, name: "proto_file", kind: "message", T: descriptor_pb_js_1.FileDescriptorProto, repeated: true },
|
|
122
|
-
{ no: 17, name: "source_file_descriptors", kind: "message", T: descriptor_pb_js_1.FileDescriptorProto, repeated: true },
|
|
123
|
-
{ no: 3, name: "compiler_version", kind: "message", T: Version, opt: true },
|
|
124
|
-
]);
|
|
125
|
-
/**
|
|
126
|
-
* The plugin writes an encoded CodeGeneratorResponse to stdout.
|
|
127
|
-
*
|
|
128
|
-
* @generated from message google.protobuf.compiler.CodeGeneratorResponse
|
|
129
|
-
*/
|
|
130
|
-
class CodeGeneratorResponse extends message_js_1.Message {
|
|
131
|
-
constructor(data) {
|
|
132
|
-
super();
|
|
133
|
-
/**
|
|
134
|
-
* @generated from field: repeated google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
|
|
135
|
-
*/
|
|
136
|
-
this.file = [];
|
|
137
|
-
proto2_js_1.proto2.util.initPartial(data, this);
|
|
138
|
-
}
|
|
139
|
-
static fromBinary(bytes, options) {
|
|
140
|
-
return new CodeGeneratorResponse().fromBinary(bytes, options);
|
|
141
|
-
}
|
|
142
|
-
static fromJson(jsonValue, options) {
|
|
143
|
-
return new CodeGeneratorResponse().fromJson(jsonValue, options);
|
|
144
|
-
}
|
|
145
|
-
static fromJsonString(jsonString, options) {
|
|
146
|
-
return new CodeGeneratorResponse().fromJsonString(jsonString, options);
|
|
147
|
-
}
|
|
148
|
-
static equals(a, b) {
|
|
149
|
-
return proto2_js_1.proto2.util.equals(CodeGeneratorResponse, a, b);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
exports.CodeGeneratorResponse = CodeGeneratorResponse;
|
|
153
|
-
CodeGeneratorResponse.runtime = proto2_js_1.proto2;
|
|
154
|
-
CodeGeneratorResponse.typeName = "google.protobuf.compiler.CodeGeneratorResponse";
|
|
155
|
-
CodeGeneratorResponse.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
156
|
-
{ no: 1, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
157
|
-
{ no: 2, name: "supported_features", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
158
|
-
{ no: 3, name: "minimum_edition", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
159
|
-
{ no: 4, name: "maximum_edition", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
160
|
-
{ no: 15, name: "file", kind: "message", T: CodeGeneratorResponse_File, repeated: true },
|
|
161
|
-
]);
|
|
162
|
-
/**
|
|
163
|
-
* Sync with code_generator.h.
|
|
164
|
-
*
|
|
165
|
-
* @generated from enum google.protobuf.compiler.CodeGeneratorResponse.Feature
|
|
166
|
-
*/
|
|
167
|
-
var CodeGeneratorResponse_Feature;
|
|
168
|
-
(function (CodeGeneratorResponse_Feature) {
|
|
169
|
-
/**
|
|
170
|
-
* @generated from enum value: FEATURE_NONE = 0;
|
|
171
|
-
*/
|
|
172
|
-
CodeGeneratorResponse_Feature[CodeGeneratorResponse_Feature["NONE"] = 0] = "NONE";
|
|
173
|
-
/**
|
|
174
|
-
* @generated from enum value: FEATURE_PROTO3_OPTIONAL = 1;
|
|
175
|
-
*/
|
|
176
|
-
CodeGeneratorResponse_Feature[CodeGeneratorResponse_Feature["PROTO3_OPTIONAL"] = 1] = "PROTO3_OPTIONAL";
|
|
177
|
-
/**
|
|
178
|
-
* @generated from enum value: FEATURE_SUPPORTS_EDITIONS = 2;
|
|
179
|
-
*/
|
|
180
|
-
CodeGeneratorResponse_Feature[CodeGeneratorResponse_Feature["SUPPORTS_EDITIONS"] = 2] = "SUPPORTS_EDITIONS";
|
|
181
|
-
})(CodeGeneratorResponse_Feature || (exports.CodeGeneratorResponse_Feature = CodeGeneratorResponse_Feature = {}));
|
|
182
|
-
// Retrieve enum metadata with: proto2.getEnumType(CodeGeneratorResponse_Feature)
|
|
183
|
-
proto2_js_1.proto2.util.setEnumType(CodeGeneratorResponse_Feature, "google.protobuf.compiler.CodeGeneratorResponse.Feature", [
|
|
184
|
-
{ no: 0, name: "FEATURE_NONE" },
|
|
185
|
-
{ no: 1, name: "FEATURE_PROTO3_OPTIONAL" },
|
|
186
|
-
{ no: 2, name: "FEATURE_SUPPORTS_EDITIONS" },
|
|
187
|
-
]);
|
|
188
|
-
/**
|
|
189
|
-
* Represents a single generated file.
|
|
190
|
-
*
|
|
191
|
-
* @generated from message google.protobuf.compiler.CodeGeneratorResponse.File
|
|
192
|
-
*/
|
|
193
|
-
class CodeGeneratorResponse_File extends message_js_1.Message {
|
|
194
|
-
constructor(data) {
|
|
195
|
-
super();
|
|
196
|
-
proto2_js_1.proto2.util.initPartial(data, this);
|
|
197
|
-
}
|
|
198
|
-
static fromBinary(bytes, options) {
|
|
199
|
-
return new CodeGeneratorResponse_File().fromBinary(bytes, options);
|
|
200
|
-
}
|
|
201
|
-
static fromJson(jsonValue, options) {
|
|
202
|
-
return new CodeGeneratorResponse_File().fromJson(jsonValue, options);
|
|
203
|
-
}
|
|
204
|
-
static fromJsonString(jsonString, options) {
|
|
205
|
-
return new CodeGeneratorResponse_File().fromJsonString(jsonString, options);
|
|
206
|
-
}
|
|
207
|
-
static equals(a, b) {
|
|
208
|
-
return proto2_js_1.proto2.util.equals(CodeGeneratorResponse_File, a, b);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
exports.CodeGeneratorResponse_File = CodeGeneratorResponse_File;
|
|
212
|
-
CodeGeneratorResponse_File.runtime = proto2_js_1.proto2;
|
|
213
|
-
CodeGeneratorResponse_File.typeName = "google.protobuf.compiler.CodeGeneratorResponse.File";
|
|
214
|
-
CodeGeneratorResponse_File.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
215
|
-
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
216
|
-
{ no: 2, name: "insertion_point", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
217
|
-
{ no: 15, name: "content", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
218
|
-
{ no: 16, name: "generated_code_info", kind: "message", T: descriptor_pb_js_1.GeneratedCodeInfo, opt: true },
|
|
219
|
-
]);
|