@canton-network/core-ledger-proto 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts +58 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.js +34 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts +232 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.js +560 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts +144 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.js +85 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts +291 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.js +663 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts +76 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.js +96 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts +106 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.js +62 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts +199 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.js +427 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts +56 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.js +35 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts +81 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.js +135 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts +196 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.js +113 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts +413 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.js +867 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts +210 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.js +126 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts +758 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.js +1580 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts +66 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.js +38 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts +90 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.js +178 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts +99 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.client.js +61 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts +210 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.js +436 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts +80 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.js +47 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts +91 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.js +200 -0
- package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts +491 -0
- package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/commands.js +828 -0
- package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts +149 -0
- package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/completion.js +196 -0
- package/dist/_proto/com/daml/ledger/api/v2/event.d.ts +495 -0
- package/dist/_proto/com/daml/ledger/api/v2/event.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/event.js +723 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts +52 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.js +31 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts +150 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.js +291 -0
- package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts +96 -0
- package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/experimental_features.js +225 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts +43 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.js +85 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts +100 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.js +59 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts +877 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.js +1768 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts +259 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.js +667 -0
- package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts +69 -0
- package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.js +133 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts +41 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_reference.js +84 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts +68 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.client.js +43 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts +181 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.js +395 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts +308 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment.js +521 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts +193 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.js +350 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts +91 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.client.js +56 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts +448 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.js +874 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts +54 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.js +34 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts +78 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.js +168 -0
- package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts +211 -0
- package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.js +447 -0
- package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts +33 -0
- package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/trace_context.js +69 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts +252 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction.js +410 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts +453 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.js +815 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts +199 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.client.js +121 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts +424 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.js +853 -0
- package/dist/_proto/com/daml/ledger/api/v2/value.d.ts +500 -0
- package/dist/_proto/com/daml/ledger/api/v2/value.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/value.js +937 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts +40 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.client.js +25 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts +190 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.js +400 -0
- package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts +1028 -0
- package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.js +2110 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts +30 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.js +62 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts +168 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.js +395 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts +1105 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.js +2294 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts +278 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.js +654 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts +166 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.js +379 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts +199 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.js +136 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts +1195 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.js +3342 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts +119 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.js +76 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts +607 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.js +1292 -0
- package/dist/_proto/google/protobuf/any.d.ts +177 -0
- package/dist/_proto/google/protobuf/any.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/any.js +175 -0
- package/dist/_proto/google/protobuf/descriptor.d.ts +1638 -0
- package/dist/_proto/google/protobuf/descriptor.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/descriptor.js +2999 -0
- package/dist/_proto/google/protobuf/duration.d.ts +114 -0
- package/dist/_proto/google/protobuf/duration.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/duration.js +113 -0
- package/dist/_proto/google/protobuf/empty.d.ts +33 -0
- package/dist/_proto/google/protobuf/empty.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/empty.js +41 -0
- package/dist/_proto/google/protobuf/field_mask.d.ts +240 -0
- package/dist/_proto/google/protobuf/field_mask.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/field_mask.js +95 -0
- package/dist/_proto/google/protobuf/struct.d.ts +187 -0
- package/dist/_proto/google/protobuf/struct.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/struct.js +417 -0
- package/dist/_proto/google/protobuf/timestamp.d.ts +159 -0
- package/dist/_proto/google/protobuf/timestamp.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/timestamp.js +157 -0
- package/dist/_proto/google/rpc/code.d.ts +219 -0
- package/dist/_proto/google/rpc/code.d.ts.map +1 -0
- package/dist/_proto/google/rpc/code.js +237 -0
- package/dist/_proto/google/rpc/context/attribute_context.d.ts +594 -0
- package/dist/_proto/google/rpc/context/attribute_context.d.ts.map +1 -0
- package/dist/_proto/google/rpc/context/attribute_context.js +1007 -0
- package/dist/_proto/google/rpc/context/audit_context.d.ts +62 -0
- package/dist/_proto/google/rpc/context/audit_context.d.ts.map +1 -0
- package/dist/_proto/google/rpc/context/audit_context.js +111 -0
- package/dist/_proto/google/rpc/error_details.d.ts +549 -0
- package/dist/_proto/google/rpc/error_details.d.ts.map +1 -0
- package/dist/_proto/google/rpc/error_details.js +918 -0
- package/dist/_proto/google/rpc/status.d.ts +55 -0
- package/dist/_proto/google/rpc/status.d.ts.map +1 -0
- package/dist/_proto/google/rpc/status.js +79 -0
- package/dist/_proto/scalapb/scalapb.d.ts +779 -0
- package/dist/_proto/scalapb/scalapb.d.ts.map +1 -0
- package/dist/_proto/scalapb/scalapb.js +1658 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/package.json +29 -0
|
@@ -0,0 +1,1658 @@
|
|
|
1
|
+
import { WireType } from '@protobuf-ts/runtime';
|
|
2
|
+
import { UnknownFieldHandler } from '@protobuf-ts/runtime';
|
|
3
|
+
import { reflectionMergePartial } from '@protobuf-ts/runtime';
|
|
4
|
+
import { MessageType } from '@protobuf-ts/runtime';
|
|
5
|
+
import { FieldOptions as FieldOptions$ } from '../google/protobuf/descriptor.js';
|
|
6
|
+
import { FieldDescriptorProto } from '../google/protobuf/descriptor.js';
|
|
7
|
+
/**
|
|
8
|
+
* Whether to apply the options only to this file, or for the entire package (and its subpackages)
|
|
9
|
+
*
|
|
10
|
+
* @generated from protobuf enum scalapb.ScalaPbOptions.OptionsScope
|
|
11
|
+
*/
|
|
12
|
+
export var ScalaPbOptions_OptionsScope;
|
|
13
|
+
(function (ScalaPbOptions_OptionsScope) {
|
|
14
|
+
/**
|
|
15
|
+
* Apply the options for this file only (default)
|
|
16
|
+
*
|
|
17
|
+
* @generated from protobuf enum value: FILE = 0;
|
|
18
|
+
*/
|
|
19
|
+
ScalaPbOptions_OptionsScope[ScalaPbOptions_OptionsScope["FILE"] = 0] = "FILE";
|
|
20
|
+
/**
|
|
21
|
+
* Apply the options for the entire package and its subpackages.
|
|
22
|
+
*
|
|
23
|
+
* @generated from protobuf enum value: PACKAGE = 1;
|
|
24
|
+
*/
|
|
25
|
+
ScalaPbOptions_OptionsScope[ScalaPbOptions_OptionsScope["PACKAGE"] = 1] = "PACKAGE";
|
|
26
|
+
})(ScalaPbOptions_OptionsScope || (ScalaPbOptions_OptionsScope = {}));
|
|
27
|
+
/**
|
|
28
|
+
* Naming convention for generated enum values
|
|
29
|
+
*
|
|
30
|
+
* @generated from protobuf enum scalapb.ScalaPbOptions.EnumValueNaming
|
|
31
|
+
*/
|
|
32
|
+
export var ScalaPbOptions_EnumValueNaming;
|
|
33
|
+
(function (ScalaPbOptions_EnumValueNaming) {
|
|
34
|
+
/**
|
|
35
|
+
* Enum value names in Scala use the same name as in the proto
|
|
36
|
+
*
|
|
37
|
+
* @generated from protobuf enum value: AS_IN_PROTO = 0;
|
|
38
|
+
*/
|
|
39
|
+
ScalaPbOptions_EnumValueNaming[ScalaPbOptions_EnumValueNaming["AS_IN_PROTO"] = 0] = "AS_IN_PROTO";
|
|
40
|
+
/**
|
|
41
|
+
* Convert enum values to CamelCase in Scala.
|
|
42
|
+
*
|
|
43
|
+
* @generated from protobuf enum value: CAMEL_CASE = 1;
|
|
44
|
+
*/
|
|
45
|
+
ScalaPbOptions_EnumValueNaming[ScalaPbOptions_EnumValueNaming["CAMEL_CASE"] = 1] = "CAMEL_CASE";
|
|
46
|
+
})(ScalaPbOptions_EnumValueNaming || (ScalaPbOptions_EnumValueNaming = {}));
|
|
47
|
+
/**
|
|
48
|
+
* @generated from protobuf enum scalapb.MatchType
|
|
49
|
+
*/
|
|
50
|
+
export var MatchType;
|
|
51
|
+
(function (MatchType) {
|
|
52
|
+
/**
|
|
53
|
+
* @generated from protobuf enum value: CONTAINS = 0;
|
|
54
|
+
*/
|
|
55
|
+
MatchType[MatchType["CONTAINS"] = 0] = "CONTAINS";
|
|
56
|
+
/**
|
|
57
|
+
* @generated from protobuf enum value: EXACT = 1;
|
|
58
|
+
*/
|
|
59
|
+
MatchType[MatchType["EXACT"] = 1] = "EXACT";
|
|
60
|
+
/**
|
|
61
|
+
* @generated from protobuf enum value: PRESENCE = 2;
|
|
62
|
+
*/
|
|
63
|
+
MatchType[MatchType["PRESENCE"] = 2] = "PRESENCE";
|
|
64
|
+
})(MatchType || (MatchType = {}));
|
|
65
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
66
|
+
class ScalaPbOptions$Type extends MessageType {
|
|
67
|
+
constructor() {
|
|
68
|
+
super('scalapb.ScalaPbOptions', [
|
|
69
|
+
{
|
|
70
|
+
no: 1,
|
|
71
|
+
name: 'package_name',
|
|
72
|
+
kind: 'scalar',
|
|
73
|
+
opt: true,
|
|
74
|
+
T: 9 /*ScalarType.STRING*/,
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
no: 2,
|
|
78
|
+
name: 'flat_package',
|
|
79
|
+
kind: 'scalar',
|
|
80
|
+
opt: true,
|
|
81
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
no: 3,
|
|
85
|
+
name: 'import',
|
|
86
|
+
kind: 'scalar',
|
|
87
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
88
|
+
T: 9 /*ScalarType.STRING*/,
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
no: 4,
|
|
92
|
+
name: 'preamble',
|
|
93
|
+
kind: 'scalar',
|
|
94
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
95
|
+
T: 9 /*ScalarType.STRING*/,
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
no: 5,
|
|
99
|
+
name: 'single_file',
|
|
100
|
+
kind: 'scalar',
|
|
101
|
+
opt: true,
|
|
102
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
no: 7,
|
|
106
|
+
name: 'no_primitive_wrappers',
|
|
107
|
+
kind: 'scalar',
|
|
108
|
+
opt: true,
|
|
109
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
no: 6,
|
|
113
|
+
name: 'primitive_wrappers',
|
|
114
|
+
kind: 'scalar',
|
|
115
|
+
opt: true,
|
|
116
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
no: 8,
|
|
120
|
+
name: 'collection_type',
|
|
121
|
+
kind: 'scalar',
|
|
122
|
+
opt: true,
|
|
123
|
+
T: 9 /*ScalarType.STRING*/,
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
no: 9,
|
|
127
|
+
name: 'preserve_unknown_fields',
|
|
128
|
+
kind: 'scalar',
|
|
129
|
+
opt: true,
|
|
130
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
no: 10,
|
|
134
|
+
name: 'object_name',
|
|
135
|
+
kind: 'scalar',
|
|
136
|
+
opt: true,
|
|
137
|
+
T: 9 /*ScalarType.STRING*/,
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
no: 11,
|
|
141
|
+
name: 'scope',
|
|
142
|
+
kind: 'enum',
|
|
143
|
+
opt: true,
|
|
144
|
+
T: () => [
|
|
145
|
+
'scalapb.ScalaPbOptions.OptionsScope',
|
|
146
|
+
ScalaPbOptions_OptionsScope,
|
|
147
|
+
],
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
no: 12,
|
|
151
|
+
name: 'lenses',
|
|
152
|
+
kind: 'scalar',
|
|
153
|
+
opt: true,
|
|
154
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
no: 13,
|
|
158
|
+
name: 'retain_source_code_info',
|
|
159
|
+
kind: 'scalar',
|
|
160
|
+
opt: true,
|
|
161
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
no: 14,
|
|
165
|
+
name: 'map_type',
|
|
166
|
+
kind: 'scalar',
|
|
167
|
+
opt: true,
|
|
168
|
+
T: 9 /*ScalarType.STRING*/,
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
no: 15,
|
|
172
|
+
name: 'no_default_values_in_constructor',
|
|
173
|
+
kind: 'scalar',
|
|
174
|
+
opt: true,
|
|
175
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
no: 16,
|
|
179
|
+
name: 'enum_value_naming',
|
|
180
|
+
kind: 'enum',
|
|
181
|
+
opt: true,
|
|
182
|
+
T: () => [
|
|
183
|
+
'scalapb.ScalaPbOptions.EnumValueNaming',
|
|
184
|
+
ScalaPbOptions_EnumValueNaming,
|
|
185
|
+
],
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
no: 17,
|
|
189
|
+
name: 'enum_strip_prefix',
|
|
190
|
+
kind: 'scalar',
|
|
191
|
+
opt: true,
|
|
192
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
no: 21,
|
|
196
|
+
name: 'bytes_type',
|
|
197
|
+
kind: 'scalar',
|
|
198
|
+
opt: true,
|
|
199
|
+
T: 9 /*ScalarType.STRING*/,
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
no: 23,
|
|
203
|
+
name: 'java_conversions',
|
|
204
|
+
kind: 'scalar',
|
|
205
|
+
opt: true,
|
|
206
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
no: 18,
|
|
210
|
+
name: 'aux_message_options',
|
|
211
|
+
kind: 'message',
|
|
212
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
213
|
+
T: () => ScalaPbOptions_AuxMessageOptions,
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
no: 19,
|
|
217
|
+
name: 'aux_field_options',
|
|
218
|
+
kind: 'message',
|
|
219
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
220
|
+
T: () => ScalaPbOptions_AuxFieldOptions,
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
no: 20,
|
|
224
|
+
name: 'aux_enum_options',
|
|
225
|
+
kind: 'message',
|
|
226
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
227
|
+
T: () => ScalaPbOptions_AuxEnumOptions,
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
no: 22,
|
|
231
|
+
name: 'aux_enum_value_options',
|
|
232
|
+
kind: 'message',
|
|
233
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
234
|
+
T: () => ScalaPbOptions_AuxEnumValueOptions,
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
no: 24,
|
|
238
|
+
name: 'preprocessors',
|
|
239
|
+
kind: 'scalar',
|
|
240
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
241
|
+
T: 9 /*ScalarType.STRING*/,
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
no: 25,
|
|
245
|
+
name: 'field_transformations',
|
|
246
|
+
kind: 'message',
|
|
247
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
248
|
+
T: () => FieldTransformation,
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
no: 26,
|
|
252
|
+
name: 'ignore_all_transformations',
|
|
253
|
+
kind: 'scalar',
|
|
254
|
+
opt: true,
|
|
255
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
no: 27,
|
|
259
|
+
name: 'getters',
|
|
260
|
+
kind: 'scalar',
|
|
261
|
+
opt: true,
|
|
262
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
no: 28,
|
|
266
|
+
name: 'scala3_sources',
|
|
267
|
+
kind: 'scalar',
|
|
268
|
+
opt: true,
|
|
269
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
no: 999,
|
|
273
|
+
name: 'test_only_no_java_conversions',
|
|
274
|
+
kind: 'scalar',
|
|
275
|
+
opt: true,
|
|
276
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
277
|
+
},
|
|
278
|
+
]);
|
|
279
|
+
}
|
|
280
|
+
create(value) {
|
|
281
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
282
|
+
message.import = [];
|
|
283
|
+
message.preamble = [];
|
|
284
|
+
message.auxMessageOptions = [];
|
|
285
|
+
message.auxFieldOptions = [];
|
|
286
|
+
message.auxEnumOptions = [];
|
|
287
|
+
message.auxEnumValueOptions = [];
|
|
288
|
+
message.preprocessors = [];
|
|
289
|
+
message.fieldTransformations = [];
|
|
290
|
+
if (value !== undefined)
|
|
291
|
+
reflectionMergePartial(this, message, value);
|
|
292
|
+
return message;
|
|
293
|
+
}
|
|
294
|
+
internalBinaryRead(reader, length, options, target) {
|
|
295
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
296
|
+
while (reader.pos < end) {
|
|
297
|
+
let [fieldNo, wireType] = reader.tag();
|
|
298
|
+
switch (fieldNo) {
|
|
299
|
+
case /* optional string package_name */ 1:
|
|
300
|
+
message.packageName = reader.string();
|
|
301
|
+
break;
|
|
302
|
+
case /* optional bool flat_package */ 2:
|
|
303
|
+
message.flatPackage = reader.bool();
|
|
304
|
+
break;
|
|
305
|
+
case /* repeated string import */ 3:
|
|
306
|
+
message.import.push(reader.string());
|
|
307
|
+
break;
|
|
308
|
+
case /* repeated string preamble */ 4:
|
|
309
|
+
message.preamble.push(reader.string());
|
|
310
|
+
break;
|
|
311
|
+
case /* optional bool single_file */ 5:
|
|
312
|
+
message.singleFile = reader.bool();
|
|
313
|
+
break;
|
|
314
|
+
case /* optional bool no_primitive_wrappers */ 7:
|
|
315
|
+
message.noPrimitiveWrappers = reader.bool();
|
|
316
|
+
break;
|
|
317
|
+
case /* optional bool primitive_wrappers */ 6:
|
|
318
|
+
message.primitiveWrappers = reader.bool();
|
|
319
|
+
break;
|
|
320
|
+
case /* optional string collection_type */ 8:
|
|
321
|
+
message.collectionType = reader.string();
|
|
322
|
+
break;
|
|
323
|
+
case /* optional bool preserve_unknown_fields = 9 [default = true] */ 9:
|
|
324
|
+
message.preserveUnknownFields = reader.bool();
|
|
325
|
+
break;
|
|
326
|
+
case /* optional string object_name */ 10:
|
|
327
|
+
message.objectName = reader.string();
|
|
328
|
+
break;
|
|
329
|
+
case /* optional scalapb.ScalaPbOptions.OptionsScope scope */ 11:
|
|
330
|
+
message.scope = reader.int32();
|
|
331
|
+
break;
|
|
332
|
+
case /* optional bool lenses = 12 [default = true] */ 12:
|
|
333
|
+
message.lenses = reader.bool();
|
|
334
|
+
break;
|
|
335
|
+
case /* optional bool retain_source_code_info */ 13:
|
|
336
|
+
message.retainSourceCodeInfo = reader.bool();
|
|
337
|
+
break;
|
|
338
|
+
case /* optional string map_type */ 14:
|
|
339
|
+
message.mapType = reader.string();
|
|
340
|
+
break;
|
|
341
|
+
case /* optional bool no_default_values_in_constructor */ 15:
|
|
342
|
+
message.noDefaultValuesInConstructor = reader.bool();
|
|
343
|
+
break;
|
|
344
|
+
case /* optional scalapb.ScalaPbOptions.EnumValueNaming enum_value_naming */ 16:
|
|
345
|
+
message.enumValueNaming = reader.int32();
|
|
346
|
+
break;
|
|
347
|
+
case /* optional bool enum_strip_prefix = 17 [default = false] */ 17:
|
|
348
|
+
message.enumStripPrefix = reader.bool();
|
|
349
|
+
break;
|
|
350
|
+
case /* optional string bytes_type */ 21:
|
|
351
|
+
message.bytesType = reader.string();
|
|
352
|
+
break;
|
|
353
|
+
case /* optional bool java_conversions */ 23:
|
|
354
|
+
message.javaConversions = reader.bool();
|
|
355
|
+
break;
|
|
356
|
+
case /* repeated scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options */ 18:
|
|
357
|
+
message.auxMessageOptions.push(ScalaPbOptions_AuxMessageOptions.internalBinaryRead(reader, reader.uint32(), options));
|
|
358
|
+
break;
|
|
359
|
+
case /* repeated scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options */ 19:
|
|
360
|
+
message.auxFieldOptions.push(ScalaPbOptions_AuxFieldOptions.internalBinaryRead(reader, reader.uint32(), options));
|
|
361
|
+
break;
|
|
362
|
+
case /* repeated scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options */ 20:
|
|
363
|
+
message.auxEnumOptions.push(ScalaPbOptions_AuxEnumOptions.internalBinaryRead(reader, reader.uint32(), options));
|
|
364
|
+
break;
|
|
365
|
+
case /* repeated scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options */ 22:
|
|
366
|
+
message.auxEnumValueOptions.push(ScalaPbOptions_AuxEnumValueOptions.internalBinaryRead(reader, reader.uint32(), options));
|
|
367
|
+
break;
|
|
368
|
+
case /* repeated string preprocessors */ 24:
|
|
369
|
+
message.preprocessors.push(reader.string());
|
|
370
|
+
break;
|
|
371
|
+
case /* repeated scalapb.FieldTransformation field_transformations */ 25:
|
|
372
|
+
message.fieldTransformations.push(FieldTransformation.internalBinaryRead(reader, reader.uint32(), options));
|
|
373
|
+
break;
|
|
374
|
+
case /* optional bool ignore_all_transformations */ 26:
|
|
375
|
+
message.ignoreAllTransformations = reader.bool();
|
|
376
|
+
break;
|
|
377
|
+
case /* optional bool getters = 27 [default = true] */ 27:
|
|
378
|
+
message.getters = reader.bool();
|
|
379
|
+
break;
|
|
380
|
+
case /* optional bool scala3_sources */ 28:
|
|
381
|
+
message.scala3Sources = reader.bool();
|
|
382
|
+
break;
|
|
383
|
+
case /* optional bool test_only_no_java_conversions */ 999:
|
|
384
|
+
message.testOnlyNoJavaConversions = reader.bool();
|
|
385
|
+
break;
|
|
386
|
+
default:
|
|
387
|
+
let u = options.readUnknownField;
|
|
388
|
+
if (u === 'throw')
|
|
389
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
390
|
+
let d = reader.skip(wireType);
|
|
391
|
+
if (u !== false)
|
|
392
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
return message;
|
|
396
|
+
}
|
|
397
|
+
internalBinaryWrite(message, writer, options) {
|
|
398
|
+
/* optional string package_name = 1; */
|
|
399
|
+
if (message.packageName !== undefined)
|
|
400
|
+
writer.tag(1, WireType.LengthDelimited).string(message.packageName);
|
|
401
|
+
/* optional bool flat_package = 2; */
|
|
402
|
+
if (message.flatPackage !== undefined)
|
|
403
|
+
writer.tag(2, WireType.Varint).bool(message.flatPackage);
|
|
404
|
+
/* repeated string import = 3; */
|
|
405
|
+
for (let i = 0; i < message.import.length; i++)
|
|
406
|
+
writer.tag(3, WireType.LengthDelimited).string(message.import[i]);
|
|
407
|
+
/* repeated string preamble = 4; */
|
|
408
|
+
for (let i = 0; i < message.preamble.length; i++)
|
|
409
|
+
writer.tag(4, WireType.LengthDelimited).string(message.preamble[i]);
|
|
410
|
+
/* optional bool single_file = 5; */
|
|
411
|
+
if (message.singleFile !== undefined)
|
|
412
|
+
writer.tag(5, WireType.Varint).bool(message.singleFile);
|
|
413
|
+
/* optional bool primitive_wrappers = 6; */
|
|
414
|
+
if (message.primitiveWrappers !== undefined)
|
|
415
|
+
writer.tag(6, WireType.Varint).bool(message.primitiveWrappers);
|
|
416
|
+
/* optional bool no_primitive_wrappers = 7; */
|
|
417
|
+
if (message.noPrimitiveWrappers !== undefined)
|
|
418
|
+
writer.tag(7, WireType.Varint).bool(message.noPrimitiveWrappers);
|
|
419
|
+
/* optional string collection_type = 8; */
|
|
420
|
+
if (message.collectionType !== undefined)
|
|
421
|
+
writer
|
|
422
|
+
.tag(8, WireType.LengthDelimited)
|
|
423
|
+
.string(message.collectionType);
|
|
424
|
+
/* optional bool preserve_unknown_fields = 9 [default = true]; */
|
|
425
|
+
if (message.preserveUnknownFields !== undefined)
|
|
426
|
+
writer.tag(9, WireType.Varint).bool(message.preserveUnknownFields);
|
|
427
|
+
/* optional string object_name = 10; */
|
|
428
|
+
if (message.objectName !== undefined)
|
|
429
|
+
writer.tag(10, WireType.LengthDelimited).string(message.objectName);
|
|
430
|
+
/* optional scalapb.ScalaPbOptions.OptionsScope scope = 11; */
|
|
431
|
+
if (message.scope !== undefined)
|
|
432
|
+
writer.tag(11, WireType.Varint).int32(message.scope);
|
|
433
|
+
/* optional bool lenses = 12 [default = true]; */
|
|
434
|
+
if (message.lenses !== undefined)
|
|
435
|
+
writer.tag(12, WireType.Varint).bool(message.lenses);
|
|
436
|
+
/* optional bool retain_source_code_info = 13; */
|
|
437
|
+
if (message.retainSourceCodeInfo !== undefined)
|
|
438
|
+
writer.tag(13, WireType.Varint).bool(message.retainSourceCodeInfo);
|
|
439
|
+
/* optional string map_type = 14; */
|
|
440
|
+
if (message.mapType !== undefined)
|
|
441
|
+
writer.tag(14, WireType.LengthDelimited).string(message.mapType);
|
|
442
|
+
/* optional bool no_default_values_in_constructor = 15; */
|
|
443
|
+
if (message.noDefaultValuesInConstructor !== undefined)
|
|
444
|
+
writer
|
|
445
|
+
.tag(15, WireType.Varint)
|
|
446
|
+
.bool(message.noDefaultValuesInConstructor);
|
|
447
|
+
/* optional scalapb.ScalaPbOptions.EnumValueNaming enum_value_naming = 16; */
|
|
448
|
+
if (message.enumValueNaming !== undefined)
|
|
449
|
+
writer.tag(16, WireType.Varint).int32(message.enumValueNaming);
|
|
450
|
+
/* optional bool enum_strip_prefix = 17 [default = false]; */
|
|
451
|
+
if (message.enumStripPrefix !== undefined)
|
|
452
|
+
writer.tag(17, WireType.Varint).bool(message.enumStripPrefix);
|
|
453
|
+
/* repeated scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18; */
|
|
454
|
+
for (let i = 0; i < message.auxMessageOptions.length; i++)
|
|
455
|
+
ScalaPbOptions_AuxMessageOptions.internalBinaryWrite(message.auxMessageOptions[i], writer.tag(18, WireType.LengthDelimited).fork(), options).join();
|
|
456
|
+
/* repeated scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19; */
|
|
457
|
+
for (let i = 0; i < message.auxFieldOptions.length; i++)
|
|
458
|
+
ScalaPbOptions_AuxFieldOptions.internalBinaryWrite(message.auxFieldOptions[i], writer.tag(19, WireType.LengthDelimited).fork(), options).join();
|
|
459
|
+
/* repeated scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20; */
|
|
460
|
+
for (let i = 0; i < message.auxEnumOptions.length; i++)
|
|
461
|
+
ScalaPbOptions_AuxEnumOptions.internalBinaryWrite(message.auxEnumOptions[i], writer.tag(20, WireType.LengthDelimited).fork(), options).join();
|
|
462
|
+
/* optional string bytes_type = 21; */
|
|
463
|
+
if (message.bytesType !== undefined)
|
|
464
|
+
writer.tag(21, WireType.LengthDelimited).string(message.bytesType);
|
|
465
|
+
/* repeated scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22; */
|
|
466
|
+
for (let i = 0; i < message.auxEnumValueOptions.length; i++)
|
|
467
|
+
ScalaPbOptions_AuxEnumValueOptions.internalBinaryWrite(message.auxEnumValueOptions[i], writer.tag(22, WireType.LengthDelimited).fork(), options).join();
|
|
468
|
+
/* optional bool java_conversions = 23; */
|
|
469
|
+
if (message.javaConversions !== undefined)
|
|
470
|
+
writer.tag(23, WireType.Varint).bool(message.javaConversions);
|
|
471
|
+
/* repeated string preprocessors = 24; */
|
|
472
|
+
for (let i = 0; i < message.preprocessors.length; i++)
|
|
473
|
+
writer
|
|
474
|
+
.tag(24, WireType.LengthDelimited)
|
|
475
|
+
.string(message.preprocessors[i]);
|
|
476
|
+
/* repeated scalapb.FieldTransformation field_transformations = 25; */
|
|
477
|
+
for (let i = 0; i < message.fieldTransformations.length; i++)
|
|
478
|
+
FieldTransformation.internalBinaryWrite(message.fieldTransformations[i], writer.tag(25, WireType.LengthDelimited).fork(), options).join();
|
|
479
|
+
/* optional bool ignore_all_transformations = 26; */
|
|
480
|
+
if (message.ignoreAllTransformations !== undefined)
|
|
481
|
+
writer
|
|
482
|
+
.tag(26, WireType.Varint)
|
|
483
|
+
.bool(message.ignoreAllTransformations);
|
|
484
|
+
/* optional bool getters = 27 [default = true]; */
|
|
485
|
+
if (message.getters !== undefined)
|
|
486
|
+
writer.tag(27, WireType.Varint).bool(message.getters);
|
|
487
|
+
/* optional bool scala3_sources = 28; */
|
|
488
|
+
if (message.scala3Sources !== undefined)
|
|
489
|
+
writer.tag(28, WireType.Varint).bool(message.scala3Sources);
|
|
490
|
+
/* optional bool test_only_no_java_conversions = 999; */
|
|
491
|
+
if (message.testOnlyNoJavaConversions !== undefined)
|
|
492
|
+
writer
|
|
493
|
+
.tag(999, WireType.Varint)
|
|
494
|
+
.bool(message.testOnlyNoJavaConversions);
|
|
495
|
+
let u = options.writeUnknownFields;
|
|
496
|
+
if (u !== false)
|
|
497
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
498
|
+
return writer;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* @generated MessageType for protobuf message scalapb.ScalaPbOptions
|
|
503
|
+
*/
|
|
504
|
+
export const ScalaPbOptions = new ScalaPbOptions$Type();
|
|
505
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
506
|
+
class ScalaPbOptions_AuxMessageOptions$Type extends MessageType {
|
|
507
|
+
constructor() {
|
|
508
|
+
super('scalapb.ScalaPbOptions.AuxMessageOptions', [
|
|
509
|
+
{
|
|
510
|
+
no: 1,
|
|
511
|
+
name: 'target',
|
|
512
|
+
kind: 'scalar',
|
|
513
|
+
opt: true,
|
|
514
|
+
T: 9 /*ScalarType.STRING*/,
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
no: 2,
|
|
518
|
+
name: 'options',
|
|
519
|
+
kind: 'message',
|
|
520
|
+
T: () => MessageOptions,
|
|
521
|
+
},
|
|
522
|
+
]);
|
|
523
|
+
}
|
|
524
|
+
create(value) {
|
|
525
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
526
|
+
if (value !== undefined)
|
|
527
|
+
reflectionMergePartial(this, message, value);
|
|
528
|
+
return message;
|
|
529
|
+
}
|
|
530
|
+
internalBinaryRead(reader, length, options, target) {
|
|
531
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
532
|
+
while (reader.pos < end) {
|
|
533
|
+
let [fieldNo, wireType] = reader.tag();
|
|
534
|
+
switch (fieldNo) {
|
|
535
|
+
case /* optional string target */ 1:
|
|
536
|
+
message.target = reader.string();
|
|
537
|
+
break;
|
|
538
|
+
case /* optional scalapb.MessageOptions options */ 2:
|
|
539
|
+
message.options = MessageOptions.internalBinaryRead(reader, reader.uint32(), options, message.options);
|
|
540
|
+
break;
|
|
541
|
+
default:
|
|
542
|
+
let u = options.readUnknownField;
|
|
543
|
+
if (u === 'throw')
|
|
544
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
545
|
+
let d = reader.skip(wireType);
|
|
546
|
+
if (u !== false)
|
|
547
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
return message;
|
|
551
|
+
}
|
|
552
|
+
internalBinaryWrite(message, writer, options) {
|
|
553
|
+
/* optional string target = 1; */
|
|
554
|
+
if (message.target !== undefined)
|
|
555
|
+
writer.tag(1, WireType.LengthDelimited).string(message.target);
|
|
556
|
+
/* optional scalapb.MessageOptions options = 2; */
|
|
557
|
+
if (message.options)
|
|
558
|
+
MessageOptions.internalBinaryWrite(message.options, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
559
|
+
let u = options.writeUnknownFields;
|
|
560
|
+
if (u !== false)
|
|
561
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
562
|
+
return writer;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* @generated MessageType for protobuf message scalapb.ScalaPbOptions.AuxMessageOptions
|
|
567
|
+
*/
|
|
568
|
+
export const ScalaPbOptions_AuxMessageOptions = new ScalaPbOptions_AuxMessageOptions$Type();
|
|
569
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
570
|
+
class ScalaPbOptions_AuxFieldOptions$Type extends MessageType {
|
|
571
|
+
constructor() {
|
|
572
|
+
super('scalapb.ScalaPbOptions.AuxFieldOptions', [
|
|
573
|
+
{
|
|
574
|
+
no: 1,
|
|
575
|
+
name: 'target',
|
|
576
|
+
kind: 'scalar',
|
|
577
|
+
opt: true,
|
|
578
|
+
T: 9 /*ScalarType.STRING*/,
|
|
579
|
+
},
|
|
580
|
+
{ no: 2, name: 'options', kind: 'message', T: () => FieldOptions },
|
|
581
|
+
]);
|
|
582
|
+
}
|
|
583
|
+
create(value) {
|
|
584
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
585
|
+
if (value !== undefined)
|
|
586
|
+
reflectionMergePartial(this, message, value);
|
|
587
|
+
return message;
|
|
588
|
+
}
|
|
589
|
+
internalBinaryRead(reader, length, options, target) {
|
|
590
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
591
|
+
while (reader.pos < end) {
|
|
592
|
+
let [fieldNo, wireType] = reader.tag();
|
|
593
|
+
switch (fieldNo) {
|
|
594
|
+
case /* optional string target */ 1:
|
|
595
|
+
message.target = reader.string();
|
|
596
|
+
break;
|
|
597
|
+
case /* optional scalapb.FieldOptions options */ 2:
|
|
598
|
+
message.options = FieldOptions.internalBinaryRead(reader, reader.uint32(), options, message.options);
|
|
599
|
+
break;
|
|
600
|
+
default:
|
|
601
|
+
let u = options.readUnknownField;
|
|
602
|
+
if (u === 'throw')
|
|
603
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
604
|
+
let d = reader.skip(wireType);
|
|
605
|
+
if (u !== false)
|
|
606
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
return message;
|
|
610
|
+
}
|
|
611
|
+
internalBinaryWrite(message, writer, options) {
|
|
612
|
+
/* optional string target = 1; */
|
|
613
|
+
if (message.target !== undefined)
|
|
614
|
+
writer.tag(1, WireType.LengthDelimited).string(message.target);
|
|
615
|
+
/* optional scalapb.FieldOptions options = 2; */
|
|
616
|
+
if (message.options)
|
|
617
|
+
FieldOptions.internalBinaryWrite(message.options, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
618
|
+
let u = options.writeUnknownFields;
|
|
619
|
+
if (u !== false)
|
|
620
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
621
|
+
return writer;
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
/**
|
|
625
|
+
* @generated MessageType for protobuf message scalapb.ScalaPbOptions.AuxFieldOptions
|
|
626
|
+
*/
|
|
627
|
+
export const ScalaPbOptions_AuxFieldOptions = new ScalaPbOptions_AuxFieldOptions$Type();
|
|
628
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
629
|
+
class ScalaPbOptions_AuxEnumOptions$Type extends MessageType {
|
|
630
|
+
constructor() {
|
|
631
|
+
super('scalapb.ScalaPbOptions.AuxEnumOptions', [
|
|
632
|
+
{
|
|
633
|
+
no: 1,
|
|
634
|
+
name: 'target',
|
|
635
|
+
kind: 'scalar',
|
|
636
|
+
opt: true,
|
|
637
|
+
T: 9 /*ScalarType.STRING*/,
|
|
638
|
+
},
|
|
639
|
+
{ no: 2, name: 'options', kind: 'message', T: () => EnumOptions },
|
|
640
|
+
]);
|
|
641
|
+
}
|
|
642
|
+
create(value) {
|
|
643
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
644
|
+
if (value !== undefined)
|
|
645
|
+
reflectionMergePartial(this, message, value);
|
|
646
|
+
return message;
|
|
647
|
+
}
|
|
648
|
+
internalBinaryRead(reader, length, options, target) {
|
|
649
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
650
|
+
while (reader.pos < end) {
|
|
651
|
+
let [fieldNo, wireType] = reader.tag();
|
|
652
|
+
switch (fieldNo) {
|
|
653
|
+
case /* optional string target */ 1:
|
|
654
|
+
message.target = reader.string();
|
|
655
|
+
break;
|
|
656
|
+
case /* optional scalapb.EnumOptions options */ 2:
|
|
657
|
+
message.options = EnumOptions.internalBinaryRead(reader, reader.uint32(), options, message.options);
|
|
658
|
+
break;
|
|
659
|
+
default:
|
|
660
|
+
let u = options.readUnknownField;
|
|
661
|
+
if (u === 'throw')
|
|
662
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
663
|
+
let d = reader.skip(wireType);
|
|
664
|
+
if (u !== false)
|
|
665
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
return message;
|
|
669
|
+
}
|
|
670
|
+
internalBinaryWrite(message, writer, options) {
|
|
671
|
+
/* optional string target = 1; */
|
|
672
|
+
if (message.target !== undefined)
|
|
673
|
+
writer.tag(1, WireType.LengthDelimited).string(message.target);
|
|
674
|
+
/* optional scalapb.EnumOptions options = 2; */
|
|
675
|
+
if (message.options)
|
|
676
|
+
EnumOptions.internalBinaryWrite(message.options, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
677
|
+
let u = options.writeUnknownFields;
|
|
678
|
+
if (u !== false)
|
|
679
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
680
|
+
return writer;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
/**
|
|
684
|
+
* @generated MessageType for protobuf message scalapb.ScalaPbOptions.AuxEnumOptions
|
|
685
|
+
*/
|
|
686
|
+
export const ScalaPbOptions_AuxEnumOptions = new ScalaPbOptions_AuxEnumOptions$Type();
|
|
687
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
688
|
+
class ScalaPbOptions_AuxEnumValueOptions$Type extends MessageType {
|
|
689
|
+
constructor() {
|
|
690
|
+
super('scalapb.ScalaPbOptions.AuxEnumValueOptions', [
|
|
691
|
+
{
|
|
692
|
+
no: 1,
|
|
693
|
+
name: 'target',
|
|
694
|
+
kind: 'scalar',
|
|
695
|
+
opt: true,
|
|
696
|
+
T: 9 /*ScalarType.STRING*/,
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
no: 2,
|
|
700
|
+
name: 'options',
|
|
701
|
+
kind: 'message',
|
|
702
|
+
T: () => EnumValueOptions,
|
|
703
|
+
},
|
|
704
|
+
]);
|
|
705
|
+
}
|
|
706
|
+
create(value) {
|
|
707
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
708
|
+
if (value !== undefined)
|
|
709
|
+
reflectionMergePartial(this, message, value);
|
|
710
|
+
return message;
|
|
711
|
+
}
|
|
712
|
+
internalBinaryRead(reader, length, options, target) {
|
|
713
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
714
|
+
while (reader.pos < end) {
|
|
715
|
+
let [fieldNo, wireType] = reader.tag();
|
|
716
|
+
switch (fieldNo) {
|
|
717
|
+
case /* optional string target */ 1:
|
|
718
|
+
message.target = reader.string();
|
|
719
|
+
break;
|
|
720
|
+
case /* optional scalapb.EnumValueOptions options */ 2:
|
|
721
|
+
message.options = EnumValueOptions.internalBinaryRead(reader, reader.uint32(), options, message.options);
|
|
722
|
+
break;
|
|
723
|
+
default:
|
|
724
|
+
let u = options.readUnknownField;
|
|
725
|
+
if (u === 'throw')
|
|
726
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
727
|
+
let d = reader.skip(wireType);
|
|
728
|
+
if (u !== false)
|
|
729
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
return message;
|
|
733
|
+
}
|
|
734
|
+
internalBinaryWrite(message, writer, options) {
|
|
735
|
+
/* optional string target = 1; */
|
|
736
|
+
if (message.target !== undefined)
|
|
737
|
+
writer.tag(1, WireType.LengthDelimited).string(message.target);
|
|
738
|
+
/* optional scalapb.EnumValueOptions options = 2; */
|
|
739
|
+
if (message.options)
|
|
740
|
+
EnumValueOptions.internalBinaryWrite(message.options, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
741
|
+
let u = options.writeUnknownFields;
|
|
742
|
+
if (u !== false)
|
|
743
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
744
|
+
return writer;
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
/**
|
|
748
|
+
* @generated MessageType for protobuf message scalapb.ScalaPbOptions.AuxEnumValueOptions
|
|
749
|
+
*/
|
|
750
|
+
export const ScalaPbOptions_AuxEnumValueOptions = new ScalaPbOptions_AuxEnumValueOptions$Type();
|
|
751
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
752
|
+
class MessageOptions$Type extends MessageType {
|
|
753
|
+
constructor() {
|
|
754
|
+
super('scalapb.MessageOptions', [
|
|
755
|
+
{
|
|
756
|
+
no: 1,
|
|
757
|
+
name: 'extends',
|
|
758
|
+
kind: 'scalar',
|
|
759
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
760
|
+
T: 9 /*ScalarType.STRING*/,
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
no: 2,
|
|
764
|
+
name: 'companion_extends',
|
|
765
|
+
kind: 'scalar',
|
|
766
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
767
|
+
T: 9 /*ScalarType.STRING*/,
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
no: 3,
|
|
771
|
+
name: 'annotations',
|
|
772
|
+
kind: 'scalar',
|
|
773
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
774
|
+
T: 9 /*ScalarType.STRING*/,
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
no: 4,
|
|
778
|
+
name: 'type',
|
|
779
|
+
kind: 'scalar',
|
|
780
|
+
opt: true,
|
|
781
|
+
T: 9 /*ScalarType.STRING*/,
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
no: 5,
|
|
785
|
+
name: 'companion_annotations',
|
|
786
|
+
kind: 'scalar',
|
|
787
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
788
|
+
T: 9 /*ScalarType.STRING*/,
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
no: 6,
|
|
792
|
+
name: 'sealed_oneof_extends',
|
|
793
|
+
kind: 'scalar',
|
|
794
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
795
|
+
T: 9 /*ScalarType.STRING*/,
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
no: 7,
|
|
799
|
+
name: 'no_box',
|
|
800
|
+
kind: 'scalar',
|
|
801
|
+
opt: true,
|
|
802
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
no: 8,
|
|
806
|
+
name: 'unknown_fields_annotations',
|
|
807
|
+
kind: 'scalar',
|
|
808
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
809
|
+
T: 9 /*ScalarType.STRING*/,
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
no: 9,
|
|
813
|
+
name: 'no_default_values_in_constructor',
|
|
814
|
+
kind: 'scalar',
|
|
815
|
+
opt: true,
|
|
816
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
no: 10,
|
|
820
|
+
name: 'sealed_oneof_companion_extends',
|
|
821
|
+
kind: 'scalar',
|
|
822
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
823
|
+
T: 9 /*ScalarType.STRING*/,
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
no: 11,
|
|
827
|
+
name: 'derives',
|
|
828
|
+
kind: 'scalar',
|
|
829
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
830
|
+
T: 9 /*ScalarType.STRING*/,
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
no: 12,
|
|
834
|
+
name: 'sealed_oneof_derives',
|
|
835
|
+
kind: 'scalar',
|
|
836
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
837
|
+
T: 9 /*ScalarType.STRING*/,
|
|
838
|
+
},
|
|
839
|
+
]);
|
|
840
|
+
}
|
|
841
|
+
create(value) {
|
|
842
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
843
|
+
message.extends = [];
|
|
844
|
+
message.companionExtends = [];
|
|
845
|
+
message.annotations = [];
|
|
846
|
+
message.companionAnnotations = [];
|
|
847
|
+
message.sealedOneofExtends = [];
|
|
848
|
+
message.unknownFieldsAnnotations = [];
|
|
849
|
+
message.sealedOneofCompanionExtends = [];
|
|
850
|
+
message.derives = [];
|
|
851
|
+
message.sealedOneofDerives = [];
|
|
852
|
+
if (value !== undefined)
|
|
853
|
+
reflectionMergePartial(this, message, value);
|
|
854
|
+
return message;
|
|
855
|
+
}
|
|
856
|
+
internalBinaryRead(reader, length, options, target) {
|
|
857
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
858
|
+
while (reader.pos < end) {
|
|
859
|
+
let [fieldNo, wireType] = reader.tag();
|
|
860
|
+
switch (fieldNo) {
|
|
861
|
+
case /* repeated string extends */ 1:
|
|
862
|
+
message.extends.push(reader.string());
|
|
863
|
+
break;
|
|
864
|
+
case /* repeated string companion_extends */ 2:
|
|
865
|
+
message.companionExtends.push(reader.string());
|
|
866
|
+
break;
|
|
867
|
+
case /* repeated string annotations */ 3:
|
|
868
|
+
message.annotations.push(reader.string());
|
|
869
|
+
break;
|
|
870
|
+
case /* optional string type */ 4:
|
|
871
|
+
message.type = reader.string();
|
|
872
|
+
break;
|
|
873
|
+
case /* repeated string companion_annotations */ 5:
|
|
874
|
+
message.companionAnnotations.push(reader.string());
|
|
875
|
+
break;
|
|
876
|
+
case /* repeated string sealed_oneof_extends */ 6:
|
|
877
|
+
message.sealedOneofExtends.push(reader.string());
|
|
878
|
+
break;
|
|
879
|
+
case /* optional bool no_box */ 7:
|
|
880
|
+
message.noBox = reader.bool();
|
|
881
|
+
break;
|
|
882
|
+
case /* repeated string unknown_fields_annotations */ 8:
|
|
883
|
+
message.unknownFieldsAnnotations.push(reader.string());
|
|
884
|
+
break;
|
|
885
|
+
case /* optional bool no_default_values_in_constructor */ 9:
|
|
886
|
+
message.noDefaultValuesInConstructor = reader.bool();
|
|
887
|
+
break;
|
|
888
|
+
case /* repeated string sealed_oneof_companion_extends */ 10:
|
|
889
|
+
message.sealedOneofCompanionExtends.push(reader.string());
|
|
890
|
+
break;
|
|
891
|
+
case /* repeated string derives */ 11:
|
|
892
|
+
message.derives.push(reader.string());
|
|
893
|
+
break;
|
|
894
|
+
case /* repeated string sealed_oneof_derives */ 12:
|
|
895
|
+
message.sealedOneofDerives.push(reader.string());
|
|
896
|
+
break;
|
|
897
|
+
default:
|
|
898
|
+
let u = options.readUnknownField;
|
|
899
|
+
if (u === 'throw')
|
|
900
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
901
|
+
let d = reader.skip(wireType);
|
|
902
|
+
if (u !== false)
|
|
903
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
return message;
|
|
907
|
+
}
|
|
908
|
+
internalBinaryWrite(message, writer, options) {
|
|
909
|
+
/* repeated string extends = 1; */
|
|
910
|
+
for (let i = 0; i < message.extends.length; i++)
|
|
911
|
+
writer.tag(1, WireType.LengthDelimited).string(message.extends[i]);
|
|
912
|
+
/* repeated string companion_extends = 2; */
|
|
913
|
+
for (let i = 0; i < message.companionExtends.length; i++)
|
|
914
|
+
writer
|
|
915
|
+
.tag(2, WireType.LengthDelimited)
|
|
916
|
+
.string(message.companionExtends[i]);
|
|
917
|
+
/* repeated string annotations = 3; */
|
|
918
|
+
for (let i = 0; i < message.annotations.length; i++)
|
|
919
|
+
writer
|
|
920
|
+
.tag(3, WireType.LengthDelimited)
|
|
921
|
+
.string(message.annotations[i]);
|
|
922
|
+
/* optional string type = 4; */
|
|
923
|
+
if (message.type !== undefined)
|
|
924
|
+
writer.tag(4, WireType.LengthDelimited).string(message.type);
|
|
925
|
+
/* repeated string companion_annotations = 5; */
|
|
926
|
+
for (let i = 0; i < message.companionAnnotations.length; i++)
|
|
927
|
+
writer
|
|
928
|
+
.tag(5, WireType.LengthDelimited)
|
|
929
|
+
.string(message.companionAnnotations[i]);
|
|
930
|
+
/* repeated string sealed_oneof_extends = 6; */
|
|
931
|
+
for (let i = 0; i < message.sealedOneofExtends.length; i++)
|
|
932
|
+
writer
|
|
933
|
+
.tag(6, WireType.LengthDelimited)
|
|
934
|
+
.string(message.sealedOneofExtends[i]);
|
|
935
|
+
/* optional bool no_box = 7; */
|
|
936
|
+
if (message.noBox !== undefined)
|
|
937
|
+
writer.tag(7, WireType.Varint).bool(message.noBox);
|
|
938
|
+
/* repeated string unknown_fields_annotations = 8; */
|
|
939
|
+
for (let i = 0; i < message.unknownFieldsAnnotations.length; i++)
|
|
940
|
+
writer
|
|
941
|
+
.tag(8, WireType.LengthDelimited)
|
|
942
|
+
.string(message.unknownFieldsAnnotations[i]);
|
|
943
|
+
/* optional bool no_default_values_in_constructor = 9; */
|
|
944
|
+
if (message.noDefaultValuesInConstructor !== undefined)
|
|
945
|
+
writer
|
|
946
|
+
.tag(9, WireType.Varint)
|
|
947
|
+
.bool(message.noDefaultValuesInConstructor);
|
|
948
|
+
/* repeated string sealed_oneof_companion_extends = 10; */
|
|
949
|
+
for (let i = 0; i < message.sealedOneofCompanionExtends.length; i++)
|
|
950
|
+
writer
|
|
951
|
+
.tag(10, WireType.LengthDelimited)
|
|
952
|
+
.string(message.sealedOneofCompanionExtends[i]);
|
|
953
|
+
/* repeated string derives = 11; */
|
|
954
|
+
for (let i = 0; i < message.derives.length; i++)
|
|
955
|
+
writer.tag(11, WireType.LengthDelimited).string(message.derives[i]);
|
|
956
|
+
/* repeated string sealed_oneof_derives = 12; */
|
|
957
|
+
for (let i = 0; i < message.sealedOneofDerives.length; i++)
|
|
958
|
+
writer
|
|
959
|
+
.tag(12, WireType.LengthDelimited)
|
|
960
|
+
.string(message.sealedOneofDerives[i]);
|
|
961
|
+
let u = options.writeUnknownFields;
|
|
962
|
+
if (u !== false)
|
|
963
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
964
|
+
return writer;
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
/**
|
|
968
|
+
* @generated MessageType for protobuf message scalapb.MessageOptions
|
|
969
|
+
*/
|
|
970
|
+
export const MessageOptions = new MessageOptions$Type();
|
|
971
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
972
|
+
class Collection$Type extends MessageType {
|
|
973
|
+
constructor() {
|
|
974
|
+
super('scalapb.Collection', [
|
|
975
|
+
{
|
|
976
|
+
no: 1,
|
|
977
|
+
name: 'type',
|
|
978
|
+
kind: 'scalar',
|
|
979
|
+
opt: true,
|
|
980
|
+
T: 9 /*ScalarType.STRING*/,
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
no: 2,
|
|
984
|
+
name: 'non_empty',
|
|
985
|
+
kind: 'scalar',
|
|
986
|
+
opt: true,
|
|
987
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
no: 3,
|
|
991
|
+
name: 'adapter',
|
|
992
|
+
kind: 'scalar',
|
|
993
|
+
opt: true,
|
|
994
|
+
T: 9 /*ScalarType.STRING*/,
|
|
995
|
+
},
|
|
996
|
+
]);
|
|
997
|
+
}
|
|
998
|
+
create(value) {
|
|
999
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1000
|
+
if (value !== undefined)
|
|
1001
|
+
reflectionMergePartial(this, message, value);
|
|
1002
|
+
return message;
|
|
1003
|
+
}
|
|
1004
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1005
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1006
|
+
while (reader.pos < end) {
|
|
1007
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1008
|
+
switch (fieldNo) {
|
|
1009
|
+
case /* optional string type */ 1:
|
|
1010
|
+
message.type = reader.string();
|
|
1011
|
+
break;
|
|
1012
|
+
case /* optional bool non_empty */ 2:
|
|
1013
|
+
message.nonEmpty = reader.bool();
|
|
1014
|
+
break;
|
|
1015
|
+
case /* optional string adapter */ 3:
|
|
1016
|
+
message.adapter = reader.string();
|
|
1017
|
+
break;
|
|
1018
|
+
default:
|
|
1019
|
+
let u = options.readUnknownField;
|
|
1020
|
+
if (u === 'throw')
|
|
1021
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1022
|
+
let d = reader.skip(wireType);
|
|
1023
|
+
if (u !== false)
|
|
1024
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
return message;
|
|
1028
|
+
}
|
|
1029
|
+
internalBinaryWrite(message, writer, options) {
|
|
1030
|
+
/* optional string type = 1; */
|
|
1031
|
+
if (message.type !== undefined)
|
|
1032
|
+
writer.tag(1, WireType.LengthDelimited).string(message.type);
|
|
1033
|
+
/* optional bool non_empty = 2; */
|
|
1034
|
+
if (message.nonEmpty !== undefined)
|
|
1035
|
+
writer.tag(2, WireType.Varint).bool(message.nonEmpty);
|
|
1036
|
+
/* optional string adapter = 3; */
|
|
1037
|
+
if (message.adapter !== undefined)
|
|
1038
|
+
writer.tag(3, WireType.LengthDelimited).string(message.adapter);
|
|
1039
|
+
let u = options.writeUnknownFields;
|
|
1040
|
+
if (u !== false)
|
|
1041
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1042
|
+
return writer;
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
/**
|
|
1046
|
+
* @generated MessageType for protobuf message scalapb.Collection
|
|
1047
|
+
*/
|
|
1048
|
+
export const Collection = new Collection$Type();
|
|
1049
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1050
|
+
class FieldOptions$Type extends MessageType {
|
|
1051
|
+
constructor() {
|
|
1052
|
+
super('scalapb.FieldOptions', [
|
|
1053
|
+
{
|
|
1054
|
+
no: 1,
|
|
1055
|
+
name: 'type',
|
|
1056
|
+
kind: 'scalar',
|
|
1057
|
+
opt: true,
|
|
1058
|
+
T: 9 /*ScalarType.STRING*/,
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
no: 2,
|
|
1062
|
+
name: 'scala_name',
|
|
1063
|
+
kind: 'scalar',
|
|
1064
|
+
opt: true,
|
|
1065
|
+
T: 9 /*ScalarType.STRING*/,
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
no: 3,
|
|
1069
|
+
name: 'collection_type',
|
|
1070
|
+
kind: 'scalar',
|
|
1071
|
+
opt: true,
|
|
1072
|
+
T: 9 /*ScalarType.STRING*/,
|
|
1073
|
+
},
|
|
1074
|
+
{ no: 8, name: 'collection', kind: 'message', T: () => Collection },
|
|
1075
|
+
{
|
|
1076
|
+
no: 4,
|
|
1077
|
+
name: 'key_type',
|
|
1078
|
+
kind: 'scalar',
|
|
1079
|
+
opt: true,
|
|
1080
|
+
T: 9 /*ScalarType.STRING*/,
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
no: 5,
|
|
1084
|
+
name: 'value_type',
|
|
1085
|
+
kind: 'scalar',
|
|
1086
|
+
opt: true,
|
|
1087
|
+
T: 9 /*ScalarType.STRING*/,
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
no: 6,
|
|
1091
|
+
name: 'annotations',
|
|
1092
|
+
kind: 'scalar',
|
|
1093
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1094
|
+
T: 9 /*ScalarType.STRING*/,
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
no: 7,
|
|
1098
|
+
name: 'map_type',
|
|
1099
|
+
kind: 'scalar',
|
|
1100
|
+
opt: true,
|
|
1101
|
+
T: 9 /*ScalarType.STRING*/,
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
no: 9,
|
|
1105
|
+
name: 'no_default_value_in_constructor',
|
|
1106
|
+
kind: 'scalar',
|
|
1107
|
+
opt: true,
|
|
1108
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
no: 30,
|
|
1112
|
+
name: 'no_box',
|
|
1113
|
+
kind: 'scalar',
|
|
1114
|
+
opt: true,
|
|
1115
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
no: 31,
|
|
1119
|
+
name: 'required',
|
|
1120
|
+
kind: 'scalar',
|
|
1121
|
+
opt: true,
|
|
1122
|
+
T: 8 /*ScalarType.BOOL*/,
|
|
1123
|
+
},
|
|
1124
|
+
]);
|
|
1125
|
+
}
|
|
1126
|
+
create(value) {
|
|
1127
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1128
|
+
message.annotations = [];
|
|
1129
|
+
if (value !== undefined)
|
|
1130
|
+
reflectionMergePartial(this, message, value);
|
|
1131
|
+
return message;
|
|
1132
|
+
}
|
|
1133
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1134
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1135
|
+
while (reader.pos < end) {
|
|
1136
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1137
|
+
switch (fieldNo) {
|
|
1138
|
+
case /* optional string type */ 1:
|
|
1139
|
+
message.type = reader.string();
|
|
1140
|
+
break;
|
|
1141
|
+
case /* optional string scala_name */ 2:
|
|
1142
|
+
message.scalaName = reader.string();
|
|
1143
|
+
break;
|
|
1144
|
+
case /* optional string collection_type */ 3:
|
|
1145
|
+
message.collectionType = reader.string();
|
|
1146
|
+
break;
|
|
1147
|
+
case /* optional scalapb.Collection collection */ 8:
|
|
1148
|
+
message.collection = Collection.internalBinaryRead(reader, reader.uint32(), options, message.collection);
|
|
1149
|
+
break;
|
|
1150
|
+
case /* optional string key_type */ 4:
|
|
1151
|
+
message.keyType = reader.string();
|
|
1152
|
+
break;
|
|
1153
|
+
case /* optional string value_type */ 5:
|
|
1154
|
+
message.valueType = reader.string();
|
|
1155
|
+
break;
|
|
1156
|
+
case /* repeated string annotations */ 6:
|
|
1157
|
+
message.annotations.push(reader.string());
|
|
1158
|
+
break;
|
|
1159
|
+
case /* optional string map_type */ 7:
|
|
1160
|
+
message.mapType = reader.string();
|
|
1161
|
+
break;
|
|
1162
|
+
case /* optional bool no_default_value_in_constructor */ 9:
|
|
1163
|
+
message.noDefaultValueInConstructor = reader.bool();
|
|
1164
|
+
break;
|
|
1165
|
+
case /* optional bool no_box */ 30:
|
|
1166
|
+
message.noBox = reader.bool();
|
|
1167
|
+
break;
|
|
1168
|
+
case /* optional bool required */ 31:
|
|
1169
|
+
message.required = reader.bool();
|
|
1170
|
+
break;
|
|
1171
|
+
default:
|
|
1172
|
+
let u = options.readUnknownField;
|
|
1173
|
+
if (u === 'throw')
|
|
1174
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1175
|
+
let d = reader.skip(wireType);
|
|
1176
|
+
if (u !== false)
|
|
1177
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
return message;
|
|
1181
|
+
}
|
|
1182
|
+
internalBinaryWrite(message, writer, options) {
|
|
1183
|
+
/* optional string type = 1; */
|
|
1184
|
+
if (message.type !== undefined)
|
|
1185
|
+
writer.tag(1, WireType.LengthDelimited).string(message.type);
|
|
1186
|
+
/* optional string scala_name = 2; */
|
|
1187
|
+
if (message.scalaName !== undefined)
|
|
1188
|
+
writer.tag(2, WireType.LengthDelimited).string(message.scalaName);
|
|
1189
|
+
/* optional string collection_type = 3; */
|
|
1190
|
+
if (message.collectionType !== undefined)
|
|
1191
|
+
writer
|
|
1192
|
+
.tag(3, WireType.LengthDelimited)
|
|
1193
|
+
.string(message.collectionType);
|
|
1194
|
+
/* optional string key_type = 4; */
|
|
1195
|
+
if (message.keyType !== undefined)
|
|
1196
|
+
writer.tag(4, WireType.LengthDelimited).string(message.keyType);
|
|
1197
|
+
/* optional string value_type = 5; */
|
|
1198
|
+
if (message.valueType !== undefined)
|
|
1199
|
+
writer.tag(5, WireType.LengthDelimited).string(message.valueType);
|
|
1200
|
+
/* repeated string annotations = 6; */
|
|
1201
|
+
for (let i = 0; i < message.annotations.length; i++)
|
|
1202
|
+
writer
|
|
1203
|
+
.tag(6, WireType.LengthDelimited)
|
|
1204
|
+
.string(message.annotations[i]);
|
|
1205
|
+
/* optional string map_type = 7; */
|
|
1206
|
+
if (message.mapType !== undefined)
|
|
1207
|
+
writer.tag(7, WireType.LengthDelimited).string(message.mapType);
|
|
1208
|
+
/* optional scalapb.Collection collection = 8; */
|
|
1209
|
+
if (message.collection)
|
|
1210
|
+
Collection.internalBinaryWrite(message.collection, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
1211
|
+
/* optional bool no_default_value_in_constructor = 9; */
|
|
1212
|
+
if (message.noDefaultValueInConstructor !== undefined)
|
|
1213
|
+
writer
|
|
1214
|
+
.tag(9, WireType.Varint)
|
|
1215
|
+
.bool(message.noDefaultValueInConstructor);
|
|
1216
|
+
/* optional bool no_box = 30; */
|
|
1217
|
+
if (message.noBox !== undefined)
|
|
1218
|
+
writer.tag(30, WireType.Varint).bool(message.noBox);
|
|
1219
|
+
/* optional bool required = 31; */
|
|
1220
|
+
if (message.required !== undefined)
|
|
1221
|
+
writer.tag(31, WireType.Varint).bool(message.required);
|
|
1222
|
+
let u = options.writeUnknownFields;
|
|
1223
|
+
if (u !== false)
|
|
1224
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1225
|
+
return writer;
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
/**
|
|
1229
|
+
* @generated MessageType for protobuf message scalapb.FieldOptions
|
|
1230
|
+
*/
|
|
1231
|
+
export const FieldOptions = new FieldOptions$Type();
|
|
1232
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1233
|
+
class EnumOptions$Type extends MessageType {
|
|
1234
|
+
constructor() {
|
|
1235
|
+
super('scalapb.EnumOptions', [
|
|
1236
|
+
{
|
|
1237
|
+
no: 1,
|
|
1238
|
+
name: 'extends',
|
|
1239
|
+
kind: 'scalar',
|
|
1240
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1241
|
+
T: 9 /*ScalarType.STRING*/,
|
|
1242
|
+
},
|
|
1243
|
+
{
|
|
1244
|
+
no: 2,
|
|
1245
|
+
name: 'companion_extends',
|
|
1246
|
+
kind: 'scalar',
|
|
1247
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1248
|
+
T: 9 /*ScalarType.STRING*/,
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
no: 3,
|
|
1252
|
+
name: 'type',
|
|
1253
|
+
kind: 'scalar',
|
|
1254
|
+
opt: true,
|
|
1255
|
+
T: 9 /*ScalarType.STRING*/,
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
no: 4,
|
|
1259
|
+
name: 'base_annotations',
|
|
1260
|
+
kind: 'scalar',
|
|
1261
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1262
|
+
T: 9 /*ScalarType.STRING*/,
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
no: 5,
|
|
1266
|
+
name: 'recognized_annotations',
|
|
1267
|
+
kind: 'scalar',
|
|
1268
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1269
|
+
T: 9 /*ScalarType.STRING*/,
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
no: 6,
|
|
1273
|
+
name: 'unrecognized_annotations',
|
|
1274
|
+
kind: 'scalar',
|
|
1275
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1276
|
+
T: 9 /*ScalarType.STRING*/,
|
|
1277
|
+
},
|
|
1278
|
+
]);
|
|
1279
|
+
}
|
|
1280
|
+
create(value) {
|
|
1281
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1282
|
+
message.extends = [];
|
|
1283
|
+
message.companionExtends = [];
|
|
1284
|
+
message.baseAnnotations = [];
|
|
1285
|
+
message.recognizedAnnotations = [];
|
|
1286
|
+
message.unrecognizedAnnotations = [];
|
|
1287
|
+
if (value !== undefined)
|
|
1288
|
+
reflectionMergePartial(this, message, value);
|
|
1289
|
+
return message;
|
|
1290
|
+
}
|
|
1291
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1292
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1293
|
+
while (reader.pos < end) {
|
|
1294
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1295
|
+
switch (fieldNo) {
|
|
1296
|
+
case /* repeated string extends */ 1:
|
|
1297
|
+
message.extends.push(reader.string());
|
|
1298
|
+
break;
|
|
1299
|
+
case /* repeated string companion_extends */ 2:
|
|
1300
|
+
message.companionExtends.push(reader.string());
|
|
1301
|
+
break;
|
|
1302
|
+
case /* optional string type */ 3:
|
|
1303
|
+
message.type = reader.string();
|
|
1304
|
+
break;
|
|
1305
|
+
case /* repeated string base_annotations */ 4:
|
|
1306
|
+
message.baseAnnotations.push(reader.string());
|
|
1307
|
+
break;
|
|
1308
|
+
case /* repeated string recognized_annotations */ 5:
|
|
1309
|
+
message.recognizedAnnotations.push(reader.string());
|
|
1310
|
+
break;
|
|
1311
|
+
case /* repeated string unrecognized_annotations */ 6:
|
|
1312
|
+
message.unrecognizedAnnotations.push(reader.string());
|
|
1313
|
+
break;
|
|
1314
|
+
default:
|
|
1315
|
+
let u = options.readUnknownField;
|
|
1316
|
+
if (u === 'throw')
|
|
1317
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1318
|
+
let d = reader.skip(wireType);
|
|
1319
|
+
if (u !== false)
|
|
1320
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
return message;
|
|
1324
|
+
}
|
|
1325
|
+
internalBinaryWrite(message, writer, options) {
|
|
1326
|
+
/* repeated string extends = 1; */
|
|
1327
|
+
for (let i = 0; i < message.extends.length; i++)
|
|
1328
|
+
writer.tag(1, WireType.LengthDelimited).string(message.extends[i]);
|
|
1329
|
+
/* repeated string companion_extends = 2; */
|
|
1330
|
+
for (let i = 0; i < message.companionExtends.length; i++)
|
|
1331
|
+
writer
|
|
1332
|
+
.tag(2, WireType.LengthDelimited)
|
|
1333
|
+
.string(message.companionExtends[i]);
|
|
1334
|
+
/* optional string type = 3; */
|
|
1335
|
+
if (message.type !== undefined)
|
|
1336
|
+
writer.tag(3, WireType.LengthDelimited).string(message.type);
|
|
1337
|
+
/* repeated string base_annotations = 4; */
|
|
1338
|
+
for (let i = 0; i < message.baseAnnotations.length; i++)
|
|
1339
|
+
writer
|
|
1340
|
+
.tag(4, WireType.LengthDelimited)
|
|
1341
|
+
.string(message.baseAnnotations[i]);
|
|
1342
|
+
/* repeated string recognized_annotations = 5; */
|
|
1343
|
+
for (let i = 0; i < message.recognizedAnnotations.length; i++)
|
|
1344
|
+
writer
|
|
1345
|
+
.tag(5, WireType.LengthDelimited)
|
|
1346
|
+
.string(message.recognizedAnnotations[i]);
|
|
1347
|
+
/* repeated string unrecognized_annotations = 6; */
|
|
1348
|
+
for (let i = 0; i < message.unrecognizedAnnotations.length; i++)
|
|
1349
|
+
writer
|
|
1350
|
+
.tag(6, WireType.LengthDelimited)
|
|
1351
|
+
.string(message.unrecognizedAnnotations[i]);
|
|
1352
|
+
let u = options.writeUnknownFields;
|
|
1353
|
+
if (u !== false)
|
|
1354
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1355
|
+
return writer;
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
/**
|
|
1359
|
+
* @generated MessageType for protobuf message scalapb.EnumOptions
|
|
1360
|
+
*/
|
|
1361
|
+
export const EnumOptions = new EnumOptions$Type();
|
|
1362
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1363
|
+
class EnumValueOptions$Type extends MessageType {
|
|
1364
|
+
constructor() {
|
|
1365
|
+
super('scalapb.EnumValueOptions', [
|
|
1366
|
+
{
|
|
1367
|
+
no: 1,
|
|
1368
|
+
name: 'extends',
|
|
1369
|
+
kind: 'scalar',
|
|
1370
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1371
|
+
T: 9 /*ScalarType.STRING*/,
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
no: 2,
|
|
1375
|
+
name: 'scala_name',
|
|
1376
|
+
kind: 'scalar',
|
|
1377
|
+
opt: true,
|
|
1378
|
+
T: 9 /*ScalarType.STRING*/,
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
no: 3,
|
|
1382
|
+
name: 'annotations',
|
|
1383
|
+
kind: 'scalar',
|
|
1384
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1385
|
+
T: 9 /*ScalarType.STRING*/,
|
|
1386
|
+
},
|
|
1387
|
+
]);
|
|
1388
|
+
}
|
|
1389
|
+
create(value) {
|
|
1390
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1391
|
+
message.extends = [];
|
|
1392
|
+
message.annotations = [];
|
|
1393
|
+
if (value !== undefined)
|
|
1394
|
+
reflectionMergePartial(this, message, value);
|
|
1395
|
+
return message;
|
|
1396
|
+
}
|
|
1397
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1398
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1399
|
+
while (reader.pos < end) {
|
|
1400
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1401
|
+
switch (fieldNo) {
|
|
1402
|
+
case /* repeated string extends */ 1:
|
|
1403
|
+
message.extends.push(reader.string());
|
|
1404
|
+
break;
|
|
1405
|
+
case /* optional string scala_name */ 2:
|
|
1406
|
+
message.scalaName = reader.string();
|
|
1407
|
+
break;
|
|
1408
|
+
case /* repeated string annotations */ 3:
|
|
1409
|
+
message.annotations.push(reader.string());
|
|
1410
|
+
break;
|
|
1411
|
+
default:
|
|
1412
|
+
let u = options.readUnknownField;
|
|
1413
|
+
if (u === 'throw')
|
|
1414
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1415
|
+
let d = reader.skip(wireType);
|
|
1416
|
+
if (u !== false)
|
|
1417
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
return message;
|
|
1421
|
+
}
|
|
1422
|
+
internalBinaryWrite(message, writer, options) {
|
|
1423
|
+
/* repeated string extends = 1; */
|
|
1424
|
+
for (let i = 0; i < message.extends.length; i++)
|
|
1425
|
+
writer.tag(1, WireType.LengthDelimited).string(message.extends[i]);
|
|
1426
|
+
/* optional string scala_name = 2; */
|
|
1427
|
+
if (message.scalaName !== undefined)
|
|
1428
|
+
writer.tag(2, WireType.LengthDelimited).string(message.scalaName);
|
|
1429
|
+
/* repeated string annotations = 3; */
|
|
1430
|
+
for (let i = 0; i < message.annotations.length; i++)
|
|
1431
|
+
writer
|
|
1432
|
+
.tag(3, WireType.LengthDelimited)
|
|
1433
|
+
.string(message.annotations[i]);
|
|
1434
|
+
let u = options.writeUnknownFields;
|
|
1435
|
+
if (u !== false)
|
|
1436
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1437
|
+
return writer;
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
/**
|
|
1441
|
+
* @generated MessageType for protobuf message scalapb.EnumValueOptions
|
|
1442
|
+
*/
|
|
1443
|
+
export const EnumValueOptions = new EnumValueOptions$Type();
|
|
1444
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1445
|
+
class OneofOptions$Type extends MessageType {
|
|
1446
|
+
constructor() {
|
|
1447
|
+
super('scalapb.OneofOptions', [
|
|
1448
|
+
{
|
|
1449
|
+
no: 1,
|
|
1450
|
+
name: 'extends',
|
|
1451
|
+
kind: 'scalar',
|
|
1452
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
1453
|
+
T: 9 /*ScalarType.STRING*/,
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
no: 2,
|
|
1457
|
+
name: 'scala_name',
|
|
1458
|
+
kind: 'scalar',
|
|
1459
|
+
opt: true,
|
|
1460
|
+
T: 9 /*ScalarType.STRING*/,
|
|
1461
|
+
},
|
|
1462
|
+
]);
|
|
1463
|
+
}
|
|
1464
|
+
create(value) {
|
|
1465
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1466
|
+
message.extends = [];
|
|
1467
|
+
if (value !== undefined)
|
|
1468
|
+
reflectionMergePartial(this, message, value);
|
|
1469
|
+
return message;
|
|
1470
|
+
}
|
|
1471
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1472
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1473
|
+
while (reader.pos < end) {
|
|
1474
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1475
|
+
switch (fieldNo) {
|
|
1476
|
+
case /* repeated string extends */ 1:
|
|
1477
|
+
message.extends.push(reader.string());
|
|
1478
|
+
break;
|
|
1479
|
+
case /* optional string scala_name */ 2:
|
|
1480
|
+
message.scalaName = reader.string();
|
|
1481
|
+
break;
|
|
1482
|
+
default:
|
|
1483
|
+
let u = options.readUnknownField;
|
|
1484
|
+
if (u === 'throw')
|
|
1485
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1486
|
+
let d = reader.skip(wireType);
|
|
1487
|
+
if (u !== false)
|
|
1488
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
return message;
|
|
1492
|
+
}
|
|
1493
|
+
internalBinaryWrite(message, writer, options) {
|
|
1494
|
+
/* repeated string extends = 1; */
|
|
1495
|
+
for (let i = 0; i < message.extends.length; i++)
|
|
1496
|
+
writer.tag(1, WireType.LengthDelimited).string(message.extends[i]);
|
|
1497
|
+
/* optional string scala_name = 2; */
|
|
1498
|
+
if (message.scalaName !== undefined)
|
|
1499
|
+
writer.tag(2, WireType.LengthDelimited).string(message.scalaName);
|
|
1500
|
+
let u = options.writeUnknownFields;
|
|
1501
|
+
if (u !== false)
|
|
1502
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1503
|
+
return writer;
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
/**
|
|
1507
|
+
* @generated MessageType for protobuf message scalapb.OneofOptions
|
|
1508
|
+
*/
|
|
1509
|
+
export const OneofOptions = new OneofOptions$Type();
|
|
1510
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1511
|
+
class FieldTransformation$Type extends MessageType {
|
|
1512
|
+
constructor() {
|
|
1513
|
+
super('scalapb.FieldTransformation', [
|
|
1514
|
+
{
|
|
1515
|
+
no: 1,
|
|
1516
|
+
name: 'when',
|
|
1517
|
+
kind: 'message',
|
|
1518
|
+
T: () => FieldDescriptorProto,
|
|
1519
|
+
},
|
|
1520
|
+
{
|
|
1521
|
+
no: 2,
|
|
1522
|
+
name: 'match_type',
|
|
1523
|
+
kind: 'enum',
|
|
1524
|
+
opt: true,
|
|
1525
|
+
T: () => ['scalapb.MatchType', MatchType],
|
|
1526
|
+
},
|
|
1527
|
+
{ no: 3, name: 'set', kind: 'message', T: () => FieldOptions$ },
|
|
1528
|
+
]);
|
|
1529
|
+
}
|
|
1530
|
+
create(value) {
|
|
1531
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1532
|
+
if (value !== undefined)
|
|
1533
|
+
reflectionMergePartial(this, message, value);
|
|
1534
|
+
return message;
|
|
1535
|
+
}
|
|
1536
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1537
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1538
|
+
while (reader.pos < end) {
|
|
1539
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1540
|
+
switch (fieldNo) {
|
|
1541
|
+
case /* optional google.protobuf.FieldDescriptorProto when */ 1:
|
|
1542
|
+
message.when = FieldDescriptorProto.internalBinaryRead(reader, reader.uint32(), options, message.when);
|
|
1543
|
+
break;
|
|
1544
|
+
case /* optional scalapb.MatchType match_type = 2 [default = CONTAINS] */ 2:
|
|
1545
|
+
message.matchType = reader.int32();
|
|
1546
|
+
break;
|
|
1547
|
+
case /* optional google.protobuf.FieldOptions set */ 3:
|
|
1548
|
+
message.set = FieldOptions$.internalBinaryRead(reader, reader.uint32(), options, message.set);
|
|
1549
|
+
break;
|
|
1550
|
+
default:
|
|
1551
|
+
let u = options.readUnknownField;
|
|
1552
|
+
if (u === 'throw')
|
|
1553
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1554
|
+
let d = reader.skip(wireType);
|
|
1555
|
+
if (u !== false)
|
|
1556
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
return message;
|
|
1560
|
+
}
|
|
1561
|
+
internalBinaryWrite(message, writer, options) {
|
|
1562
|
+
/* optional google.protobuf.FieldDescriptorProto when = 1; */
|
|
1563
|
+
if (message.when)
|
|
1564
|
+
FieldDescriptorProto.internalBinaryWrite(message.when, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1565
|
+
/* optional scalapb.MatchType match_type = 2 [default = CONTAINS]; */
|
|
1566
|
+
if (message.matchType !== undefined)
|
|
1567
|
+
writer.tag(2, WireType.Varint).int32(message.matchType);
|
|
1568
|
+
/* optional google.protobuf.FieldOptions set = 3; */
|
|
1569
|
+
if (message.set)
|
|
1570
|
+
FieldOptions$.internalBinaryWrite(message.set, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1571
|
+
let u = options.writeUnknownFields;
|
|
1572
|
+
if (u !== false)
|
|
1573
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1574
|
+
return writer;
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
/**
|
|
1578
|
+
* @generated MessageType for protobuf message scalapb.FieldTransformation
|
|
1579
|
+
*/
|
|
1580
|
+
export const FieldTransformation = new FieldTransformation$Type();
|
|
1581
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1582
|
+
class PreprocessorOutput$Type extends MessageType {
|
|
1583
|
+
constructor() {
|
|
1584
|
+
super('scalapb.PreprocessorOutput', [
|
|
1585
|
+
{
|
|
1586
|
+
no: 1,
|
|
1587
|
+
name: 'options_by_file',
|
|
1588
|
+
kind: 'map',
|
|
1589
|
+
K: 9 /*ScalarType.STRING*/,
|
|
1590
|
+
V: { kind: 'message', T: () => ScalaPbOptions },
|
|
1591
|
+
},
|
|
1592
|
+
]);
|
|
1593
|
+
}
|
|
1594
|
+
create(value) {
|
|
1595
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1596
|
+
message.optionsByFile = {};
|
|
1597
|
+
if (value !== undefined)
|
|
1598
|
+
reflectionMergePartial(this, message, value);
|
|
1599
|
+
return message;
|
|
1600
|
+
}
|
|
1601
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1602
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1603
|
+
while (reader.pos < end) {
|
|
1604
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1605
|
+
switch (fieldNo) {
|
|
1606
|
+
case /* map<string, scalapb.ScalaPbOptions> options_by_file */ 1:
|
|
1607
|
+
this.binaryReadMap1(message.optionsByFile, reader, options);
|
|
1608
|
+
break;
|
|
1609
|
+
default:
|
|
1610
|
+
let u = options.readUnknownField;
|
|
1611
|
+
if (u === 'throw')
|
|
1612
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1613
|
+
let d = reader.skip(wireType);
|
|
1614
|
+
if (u !== false)
|
|
1615
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
return message;
|
|
1619
|
+
}
|
|
1620
|
+
binaryReadMap1(map, reader, options) {
|
|
1621
|
+
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
1622
|
+
while (reader.pos < end) {
|
|
1623
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1624
|
+
switch (fieldNo) {
|
|
1625
|
+
case 1:
|
|
1626
|
+
key = reader.string();
|
|
1627
|
+
break;
|
|
1628
|
+
case 2:
|
|
1629
|
+
val = ScalaPbOptions.internalBinaryRead(reader, reader.uint32(), options);
|
|
1630
|
+
break;
|
|
1631
|
+
default:
|
|
1632
|
+
throw new globalThis.Error('unknown map entry field for scalapb.PreprocessorOutput.options_by_file');
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
map[key ?? ''] = val ?? ScalaPbOptions.create();
|
|
1636
|
+
}
|
|
1637
|
+
internalBinaryWrite(message, writer, options) {
|
|
1638
|
+
/* map<string, scalapb.ScalaPbOptions> options_by_file = 1; */
|
|
1639
|
+
for (let k of globalThis.Object.keys(message.optionsByFile)) {
|
|
1640
|
+
writer
|
|
1641
|
+
.tag(1, WireType.LengthDelimited)
|
|
1642
|
+
.fork()
|
|
1643
|
+
.tag(1, WireType.LengthDelimited)
|
|
1644
|
+
.string(k);
|
|
1645
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
|
1646
|
+
ScalaPbOptions.internalBinaryWrite(message.optionsByFile[k], writer, options);
|
|
1647
|
+
writer.join().join();
|
|
1648
|
+
}
|
|
1649
|
+
let u = options.writeUnknownFields;
|
|
1650
|
+
if (u !== false)
|
|
1651
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1652
|
+
return writer;
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
/**
|
|
1656
|
+
* @generated MessageType for protobuf message scalapb.PreprocessorOutput
|
|
1657
|
+
*/
|
|
1658
|
+
export const PreprocessorOutput = new PreprocessorOutput$Type();
|