atlas.js-protos 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/LICENSE +21 -0
- package/README.md +85 -0
- package/dist/filetree/index.d.ts +2 -0
- package/dist/filetree/index.js +8 -0
- package/dist/filetree/index.mjs +3 -0
- package/dist/filetree/query.d.ts +1 -0
- package/dist/filetree/query.js +13 -0
- package/dist/filetree/query.mjs +2 -0
- package/dist/filetree/tx.d.ts +1 -0
- package/dist/filetree/tx.js +11 -0
- package/dist/filetree/tx.mjs +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17 -0
- package/dist/index.mjs +1 -0
- package/dist/storage/index.d.ts +5 -0
- package/dist/storage/index.js +16 -0
- package/dist/storage/index.mjs +6 -0
- package/dist/storage/query.d.ts +1 -0
- package/dist/storage/query.js +27 -0
- package/dist/storage/query.mjs +2 -0
- package/dist/storage/tx.d.ts +1 -0
- package/dist/storage/tx.js +21 -0
- package/dist/storage/tx.mjs +2 -0
- package/dist/types/amino/amino.d.ts +1 -0
- package/dist/types/amino/amino.js +2 -0
- package/dist/types/amino/amino.mjs +1 -0
- package/dist/types/amino/bundle.d.ts +1 -0
- package/dist/types/amino/bundle.js +41 -0
- package/dist/types/amino/bundle.mjs +5 -0
- package/dist/types/atlas/bundle.d.ts +905 -0
- package/dist/types/atlas/bundle.js +98 -0
- package/dist/types/atlas/bundle.mjs +62 -0
- package/dist/types/atlas/filetree/v1/genesis.d.ts +45 -0
- package/dist/types/atlas/filetree/v1/genesis.js +107 -0
- package/dist/types/atlas/filetree/v1/genesis.mjs +71 -0
- package/dist/types/atlas/filetree/v1/params.d.ts +40 -0
- package/dist/types/atlas/filetree/v1/params.js +94 -0
- package/dist/types/atlas/filetree/v1/params.mjs +58 -0
- package/dist/types/atlas/filetree/v1/query.d.ts +330 -0
- package/dist/types/atlas/filetree/v1/query.js +567 -0
- package/dist/types/atlas/filetree/v1/query.mjs +531 -0
- package/dist/types/atlas/filetree/v1/query.rpc.Query.d.ts +28 -0
- package/dist/types/atlas/filetree/v1/query.rpc.Query.js +89 -0
- package/dist/types/atlas/filetree/v1/query.rpc.Query.mjs +51 -0
- package/dist/types/atlas/filetree/v1/query.rpc.func.d.ts +29 -0
- package/dist/types/atlas/filetree/v1/query.rpc.func.js +58 -0
- package/dist/types/atlas/filetree/v1/query.rpc.func.mjs +55 -0
- package/dist/types/atlas/filetree/v1/tree.d.ts +44 -0
- package/dist/types/atlas/filetree/v1/tree.js +124 -0
- package/dist/types/atlas/filetree/v1/tree.mjs +88 -0
- package/dist/types/atlas/filetree/v1/tx.d.ts +260 -0
- package/dist/types/atlas/filetree/v1/tx.js +449 -0
- package/dist/types/atlas/filetree/v1/tx.mjs +413 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.func.d.ts +23 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.func.js +34 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.func.mjs +31 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.msg.d.ts +22 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.msg.js +67 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.msg.mjs +29 -0
- package/dist/types/atlas/rpc.query.d.ts +49 -0
- package/dist/types/atlas/rpc.query.js +59 -0
- package/dist/types/atlas/rpc.query.mjs +22 -0
- package/dist/types/atlas/rpc.tx.d.ts +18 -0
- package/dist/types/atlas/rpc.tx.js +52 -0
- package/dist/types/atlas/rpc.tx.mjs +15 -0
- package/dist/types/atlas/storage/v1/file.d.ts +59 -0
- package/dist/types/atlas/storage/v1/file.js +173 -0
- package/dist/types/atlas/storage/v1/file.mjs +137 -0
- package/dist/types/atlas/storage/v1/genesis.d.ts +45 -0
- package/dist/types/atlas/storage/v1/genesis.js +107 -0
- package/dist/types/atlas/storage/v1/genesis.mjs +71 -0
- package/dist/types/atlas/storage/v1/params.d.ts +48 -0
- package/dist/types/atlas/storage/v1/params.js +127 -0
- package/dist/types/atlas/storage/v1/params.mjs +91 -0
- package/dist/types/atlas/storage/v1/proof.d.ts +145 -0
- package/dist/types/atlas/storage/v1/proof.js +318 -0
- package/dist/types/atlas/storage/v1/proof.mjs +282 -0
- package/dist/types/atlas/storage/v1/provider.d.ts +51 -0
- package/dist/types/atlas/storage/v1/provider.js +141 -0
- package/dist/types/atlas/storage/v1/provider.mjs +105 -0
- package/dist/types/atlas/storage/v1/query.d.ts +914 -0
- package/dist/types/atlas/storage/v1/query.js +1570 -0
- package/dist/types/atlas/storage/v1/query.mjs +1534 -0
- package/dist/types/atlas/storage/v1/query.rpc.Query.d.ts +56 -0
- package/dist/types/atlas/storage/v1/query.rpc.Query.js +154 -0
- package/dist/types/atlas/storage/v1/query.rpc.Query.mjs +116 -0
- package/dist/types/atlas/storage/v1/query.rpc.func.d.ts +78 -0
- package/dist/types/atlas/storage/v1/query.rpc.func.js +149 -0
- package/dist/types/atlas/storage/v1/query.rpc.func.mjs +146 -0
- package/dist/types/atlas/storage/v1/subscription.d.ts +55 -0
- package/dist/types/atlas/storage/v1/subscription.js +159 -0
- package/dist/types/atlas/storage/v1/subscription.mjs +123 -0
- package/dist/types/atlas/storage/v1/tx.d.ts +694 -0
- package/dist/types/atlas/storage/v1/tx.js +1203 -0
- package/dist/types/atlas/storage/v1/tx.mjs +1167 -0
- package/dist/types/atlas/storage/v1/tx.rpc.func.d.ts +56 -0
- package/dist/types/atlas/storage/v1/tx.rpc.func.js +77 -0
- package/dist/types/atlas/storage/v1/tx.rpc.func.mjs +74 -0
- package/dist/types/atlas/storage/v1/tx.rpc.msg.d.ts +35 -0
- package/dist/types/atlas/storage/v1/tx.rpc.msg.js +97 -0
- package/dist/types/atlas/storage/v1/tx.rpc.msg.mjs +59 -0
- package/dist/types/cosmos/bank/v1beta1/authz.d.ts +62 -0
- package/dist/types/cosmos/bank/v1beta1/authz.js +123 -0
- package/dist/types/cosmos/bank/v1beta1/authz.mjs +87 -0
- package/dist/types/cosmos/bank/v1beta1/bank.d.ts +391 -0
- package/dist/types/cosmos/bank/v1beta1/bank.js +626 -0
- package/dist/types/cosmos/bank/v1beta1/bank.mjs +590 -0
- package/dist/types/cosmos/bank/v1beta1/genesis.d.ts +122 -0
- package/dist/types/cosmos/bank/v1beta1/genesis.js +224 -0
- package/dist/types/cosmos/bank/v1beta1/genesis.mjs +188 -0
- package/dist/types/cosmos/bank/v1beta1/query.d.ts +1377 -0
- package/dist/types/cosmos/bank/v1beta1/query.js +2038 -0
- package/dist/types/cosmos/bank/v1beta1/query.mjs +2002 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.Query.d.ts +119 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.Query.js +174 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.Query.mjs +136 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.func.d.ts +129 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.func.js +212 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.func.mjs +209 -0
- package/dist/types/cosmos/bank/v1beta1/tx.d.ts +398 -0
- package/dist/types/cosmos/bank/v1beta1/tx.js +599 -0
- package/dist/types/cosmos/bank/v1beta1/tx.mjs +563 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.func.d.ts +37 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.func.js +50 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.func.mjs +47 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.msg.d.ts +34 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.msg.js +73 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.msg.mjs +35 -0
- package/dist/types/cosmos/base/query/v1beta1/pagination.d.ts +163 -0
- package/dist/types/cosmos/base/query/v1beta1/pagination.js +219 -0
- package/dist/types/cosmos/base/query/v1beta1/pagination.mjs +183 -0
- package/dist/types/cosmos/base/v1beta1/coin.d.ts +193 -0
- package/dist/types/cosmos/base/v1beta1/coin.js +320 -0
- package/dist/types/cosmos/base/v1beta1/coin.mjs +284 -0
- package/dist/types/cosmos/bundle.d.ts +761 -0
- package/dist/types/cosmos/bundle.js +97 -0
- package/dist/types/cosmos/bundle.mjs +61 -0
- package/dist/types/cosmos/msg/v1/msg.d.ts +1 -0
- package/dist/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/types/cosmos/msg/v1/msg.mjs +1 -0
- package/dist/types/cosmos/query/v1/query.d.ts +1 -0
- package/dist/types/cosmos/query/v1/query.js +2 -0
- package/dist/types/cosmos/query/v1/query.mjs +1 -0
- package/dist/types/cosmos/rpc.query.d.ts +24 -0
- package/dist/types/cosmos/rpc.query.js +51 -0
- package/dist/types/cosmos/rpc.query.mjs +14 -0
- package/dist/types/cosmos/rpc.tx.d.ts +10 -0
- package/dist/types/cosmos/rpc.tx.js +44 -0
- package/dist/types/cosmos/rpc.tx.mjs +7 -0
- package/dist/types/cosmos_proto/bundle.d.ts +31 -0
- package/dist/types/cosmos_proto/bundle.js +41 -0
- package/dist/types/cosmos_proto/bundle.mjs +5 -0
- package/dist/types/cosmos_proto/cosmos.d.ts +144 -0
- package/dist/types/cosmos_proto/cosmos.js +244 -0
- package/dist/types/cosmos_proto/cosmos.mjs +206 -0
- package/dist/types/extern.d.ts +11 -0
- package/dist/types/extern.js +47 -0
- package/dist/types/extern.mjs +41 -0
- package/dist/types/gogoproto/bundle.d.ts +1 -0
- package/dist/types/gogoproto/bundle.js +41 -0
- package/dist/types/gogoproto/bundle.mjs +5 -0
- package/dist/types/gogoproto/gogo.d.ts +1 -0
- package/dist/types/gogoproto/gogo.js +2 -0
- package/dist/types/gogoproto/gogo.mjs +1 -0
- package/dist/types/google/api/annotations.d.ts +1 -0
- package/dist/types/google/api/annotations.js +2 -0
- package/dist/types/google/api/annotations.mjs +1 -0
- package/dist/types/google/api/http.d.ts +1006 -0
- package/dist/types/google/api/http.js +589 -0
- package/dist/types/google/api/http.mjs +553 -0
- package/dist/types/google/bundle.d.ts +545 -0
- package/dist/types/google/bundle.js +52 -0
- package/dist/types/google/bundle.mjs +16 -0
- package/dist/types/google/protobuf/descriptor.d.ts +2755 -0
- package/dist/types/google/protobuf/descriptor.js +4612 -0
- package/dist/types/google/protobuf/descriptor.mjs +4535 -0
- package/dist/types/google/protobuf/timestamp.d.ts +319 -0
- package/dist/types/google/protobuf/timestamp.js +197 -0
- package/dist/types/google/protobuf/timestamp.mjs +161 -0
- package/dist/types/helper-func-types.d.ts +40 -0
- package/dist/types/helper-func-types.js +57 -0
- package/dist/types/helper-func-types.mjs +53 -0
- package/dist/types/helpers.d.ts +56 -0
- package/dist/types/helpers.js +161 -0
- package/dist/types/helpers.mjs +110 -0
- package/dist/types/index.d.ts +15 -0
- package/dist/types/index.js +32 -0
- package/dist/types/index.mjs +16 -0
- package/dist/types/registry.d.ts +35 -0
- package/dist/types/registry.js +200 -0
- package/dist/types/registry.mjs +163 -0
- package/dist/types/types.d.ts +74 -0
- package/dist/types/types.js +8 -0
- package/dist/types/types.mjs +7 -0
- package/package.json +97 -0
|
@@ -0,0 +1,4535 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../registry";
|
|
4
|
+
import { isSet } from "../../helpers";
|
|
5
|
+
/** The full set of known editions. */
|
|
6
|
+
export var Edition;
|
|
7
|
+
(function (Edition) {
|
|
8
|
+
/** EDITION_UNKNOWN - A placeholder for an unknown edition value. */
|
|
9
|
+
Edition[Edition["EDITION_UNKNOWN"] = 0] = "EDITION_UNKNOWN";
|
|
10
|
+
/**
|
|
11
|
+
* EDITION_LEGACY - A placeholder edition for specifying default behaviors *before* a feature
|
|
12
|
+
* was first introduced. This is effectively an "infinite past".
|
|
13
|
+
*/
|
|
14
|
+
Edition[Edition["EDITION_LEGACY"] = 900] = "EDITION_LEGACY";
|
|
15
|
+
/**
|
|
16
|
+
* EDITION_PROTO2 - Legacy syntax "editions". These pre-date editions, but behave much like
|
|
17
|
+
* distinct editions. These can't be used to specify the edition of proto
|
|
18
|
+
* files, but feature definitions must supply proto2/proto3 defaults for
|
|
19
|
+
* backwards compatibility.
|
|
20
|
+
*/
|
|
21
|
+
Edition[Edition["EDITION_PROTO2"] = 998] = "EDITION_PROTO2";
|
|
22
|
+
Edition[Edition["EDITION_PROTO3"] = 999] = "EDITION_PROTO3";
|
|
23
|
+
/**
|
|
24
|
+
* EDITION_2023 - Editions that have been released. The specific values are arbitrary and
|
|
25
|
+
* should not be depended on, but they will always be time-ordered for easy
|
|
26
|
+
* comparison.
|
|
27
|
+
*/
|
|
28
|
+
Edition[Edition["EDITION_2023"] = 1000] = "EDITION_2023";
|
|
29
|
+
Edition[Edition["EDITION_2024"] = 1001] = "EDITION_2024";
|
|
30
|
+
/** EDITION_UNSTABLE - A placeholder edition for developing and testing unscheduled features. */
|
|
31
|
+
Edition[Edition["EDITION_UNSTABLE"] = 9999] = "EDITION_UNSTABLE";
|
|
32
|
+
/**
|
|
33
|
+
* EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be
|
|
34
|
+
* used or relied on outside of tests.
|
|
35
|
+
*/
|
|
36
|
+
Edition[Edition["EDITION_1_TEST_ONLY"] = 1] = "EDITION_1_TEST_ONLY";
|
|
37
|
+
Edition[Edition["EDITION_2_TEST_ONLY"] = 2] = "EDITION_2_TEST_ONLY";
|
|
38
|
+
Edition[Edition["EDITION_99997_TEST_ONLY"] = 99997] = "EDITION_99997_TEST_ONLY";
|
|
39
|
+
Edition[Edition["EDITION_99998_TEST_ONLY"] = 99998] = "EDITION_99998_TEST_ONLY";
|
|
40
|
+
Edition[Edition["EDITION_99999_TEST_ONLY"] = 99999] = "EDITION_99999_TEST_ONLY";
|
|
41
|
+
/**
|
|
42
|
+
* EDITION_MAX - Placeholder for specifying unbounded edition support. This should only
|
|
43
|
+
* ever be used by plugins that can expect to never require any changes to
|
|
44
|
+
* support a new edition.
|
|
45
|
+
*/
|
|
46
|
+
Edition[Edition["EDITION_MAX"] = 2147483647] = "EDITION_MAX";
|
|
47
|
+
Edition[Edition["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
48
|
+
})(Edition || (Edition = {}));
|
|
49
|
+
export const EditionSDKType = Edition;
|
|
50
|
+
export function editionFromJSON(object) {
|
|
51
|
+
switch (object) {
|
|
52
|
+
case 0:
|
|
53
|
+
case "EDITION_UNKNOWN":
|
|
54
|
+
return Edition.EDITION_UNKNOWN;
|
|
55
|
+
case 900:
|
|
56
|
+
case "EDITION_LEGACY":
|
|
57
|
+
return Edition.EDITION_LEGACY;
|
|
58
|
+
case 998:
|
|
59
|
+
case "EDITION_PROTO2":
|
|
60
|
+
return Edition.EDITION_PROTO2;
|
|
61
|
+
case 999:
|
|
62
|
+
case "EDITION_PROTO3":
|
|
63
|
+
return Edition.EDITION_PROTO3;
|
|
64
|
+
case 1000:
|
|
65
|
+
case "EDITION_2023":
|
|
66
|
+
return Edition.EDITION_2023;
|
|
67
|
+
case 1001:
|
|
68
|
+
case "EDITION_2024":
|
|
69
|
+
return Edition.EDITION_2024;
|
|
70
|
+
case 9999:
|
|
71
|
+
case "EDITION_UNSTABLE":
|
|
72
|
+
return Edition.EDITION_UNSTABLE;
|
|
73
|
+
case 1:
|
|
74
|
+
case "EDITION_1_TEST_ONLY":
|
|
75
|
+
return Edition.EDITION_1_TEST_ONLY;
|
|
76
|
+
case 2:
|
|
77
|
+
case "EDITION_2_TEST_ONLY":
|
|
78
|
+
return Edition.EDITION_2_TEST_ONLY;
|
|
79
|
+
case 99997:
|
|
80
|
+
case "EDITION_99997_TEST_ONLY":
|
|
81
|
+
return Edition.EDITION_99997_TEST_ONLY;
|
|
82
|
+
case 99998:
|
|
83
|
+
case "EDITION_99998_TEST_ONLY":
|
|
84
|
+
return Edition.EDITION_99998_TEST_ONLY;
|
|
85
|
+
case 99999:
|
|
86
|
+
case "EDITION_99999_TEST_ONLY":
|
|
87
|
+
return Edition.EDITION_99999_TEST_ONLY;
|
|
88
|
+
case 2147483647:
|
|
89
|
+
case "EDITION_MAX":
|
|
90
|
+
return Edition.EDITION_MAX;
|
|
91
|
+
case -1:
|
|
92
|
+
case "UNRECOGNIZED":
|
|
93
|
+
default:
|
|
94
|
+
return Edition.UNRECOGNIZED;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
export function editionToJSON(object) {
|
|
98
|
+
switch (object) {
|
|
99
|
+
case Edition.EDITION_UNKNOWN:
|
|
100
|
+
return "EDITION_UNKNOWN";
|
|
101
|
+
case Edition.EDITION_LEGACY:
|
|
102
|
+
return "EDITION_LEGACY";
|
|
103
|
+
case Edition.EDITION_PROTO2:
|
|
104
|
+
return "EDITION_PROTO2";
|
|
105
|
+
case Edition.EDITION_PROTO3:
|
|
106
|
+
return "EDITION_PROTO3";
|
|
107
|
+
case Edition.EDITION_2023:
|
|
108
|
+
return "EDITION_2023";
|
|
109
|
+
case Edition.EDITION_2024:
|
|
110
|
+
return "EDITION_2024";
|
|
111
|
+
case Edition.EDITION_UNSTABLE:
|
|
112
|
+
return "EDITION_UNSTABLE";
|
|
113
|
+
case Edition.EDITION_1_TEST_ONLY:
|
|
114
|
+
return "EDITION_1_TEST_ONLY";
|
|
115
|
+
case Edition.EDITION_2_TEST_ONLY:
|
|
116
|
+
return "EDITION_2_TEST_ONLY";
|
|
117
|
+
case Edition.EDITION_99997_TEST_ONLY:
|
|
118
|
+
return "EDITION_99997_TEST_ONLY";
|
|
119
|
+
case Edition.EDITION_99998_TEST_ONLY:
|
|
120
|
+
return "EDITION_99998_TEST_ONLY";
|
|
121
|
+
case Edition.EDITION_99999_TEST_ONLY:
|
|
122
|
+
return "EDITION_99999_TEST_ONLY";
|
|
123
|
+
case Edition.EDITION_MAX:
|
|
124
|
+
return "EDITION_MAX";
|
|
125
|
+
case Edition.UNRECOGNIZED:
|
|
126
|
+
default:
|
|
127
|
+
return "UNRECOGNIZED";
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
/** The verification state of the extension range. */
|
|
131
|
+
export var ExtensionRangeOptions_VerificationState;
|
|
132
|
+
(function (ExtensionRangeOptions_VerificationState) {
|
|
133
|
+
/** DECLARATION - All the extensions of the range must be declared. */
|
|
134
|
+
ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["DECLARATION"] = 0] = "DECLARATION";
|
|
135
|
+
ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["UNVERIFIED"] = 1] = "UNVERIFIED";
|
|
136
|
+
ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
137
|
+
})(ExtensionRangeOptions_VerificationState || (ExtensionRangeOptions_VerificationState = {}));
|
|
138
|
+
export const ExtensionRangeOptions_VerificationStateSDKType = ExtensionRangeOptions_VerificationState;
|
|
139
|
+
export function extensionRangeOptions_VerificationStateFromJSON(object) {
|
|
140
|
+
switch (object) {
|
|
141
|
+
case 0:
|
|
142
|
+
case "DECLARATION":
|
|
143
|
+
return ExtensionRangeOptions_VerificationState.DECLARATION;
|
|
144
|
+
case 1:
|
|
145
|
+
case "UNVERIFIED":
|
|
146
|
+
return ExtensionRangeOptions_VerificationState.UNVERIFIED;
|
|
147
|
+
case -1:
|
|
148
|
+
case "UNRECOGNIZED":
|
|
149
|
+
default:
|
|
150
|
+
return ExtensionRangeOptions_VerificationState.UNRECOGNIZED;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
export function extensionRangeOptions_VerificationStateToJSON(object) {
|
|
154
|
+
switch (object) {
|
|
155
|
+
case ExtensionRangeOptions_VerificationState.DECLARATION:
|
|
156
|
+
return "DECLARATION";
|
|
157
|
+
case ExtensionRangeOptions_VerificationState.UNVERIFIED:
|
|
158
|
+
return "UNVERIFIED";
|
|
159
|
+
case ExtensionRangeOptions_VerificationState.UNRECOGNIZED:
|
|
160
|
+
default:
|
|
161
|
+
return "UNRECOGNIZED";
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
export var FieldDescriptorProto_Type;
|
|
165
|
+
(function (FieldDescriptorProto_Type) {
|
|
166
|
+
/**
|
|
167
|
+
* TYPE_DOUBLE - 0 is reserved for errors.
|
|
168
|
+
* Order is weird for historical reasons.
|
|
169
|
+
*/
|
|
170
|
+
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_DOUBLE"] = 1] = "TYPE_DOUBLE";
|
|
171
|
+
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FLOAT"] = 2] = "TYPE_FLOAT";
|
|
172
|
+
/**
|
|
173
|
+
* TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
|
|
174
|
+
* negative values are likely.
|
|
175
|
+
*/
|
|
176
|
+
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_INT64"] = 3] = "TYPE_INT64";
|
|
177
|
+
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_UINT64"] = 4] = "TYPE_UINT64";
|
|
178
|
+
/**
|
|
179
|
+
* TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
|
|
180
|
+
* negative values are likely.
|
|
181
|
+
*/
|
|
182
|
+
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_INT32"] = 5] = "TYPE_INT32";
|
|
183
|
+
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FIXED64"] = 6] = "TYPE_FIXED64";
|
|
184
|
+
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FIXED32"] = 7] = "TYPE_FIXED32";
|
|
185
|
+
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_BOOL"] = 8] = "TYPE_BOOL";
|
|
186
|
+
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_STRING"] = 9] = "TYPE_STRING";
|
|
187
|
+
/**
|
|
188
|
+
* TYPE_GROUP - Tag-delimited aggregate.
|
|
189
|
+
* Group type is deprecated and not supported after google.protobuf. However, Proto3
|
|
190
|
+
* implementations should still be able to parse the group wire format and
|
|
191
|
+
* treat group fields as unknown fields. In Editions, the group wire format
|
|
192
|
+
* can be enabled via the `message_encoding` feature.
|
|
193
|
+
*/
|
|
194
|
+
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_GROUP"] = 10] = "TYPE_GROUP";
|
|
195
|
+
/** TYPE_MESSAGE - Length-delimited aggregate. */
|
|
196
|
+
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_MESSAGE"] = 11] = "TYPE_MESSAGE";
|
|
197
|
+
/** TYPE_BYTES - New in version 2. */
|
|
198
|
+
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_BYTES"] = 12] = "TYPE_BYTES";
|
|
199
|
+
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_UINT32"] = 13] = "TYPE_UINT32";
|
|
200
|
+
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_ENUM"] = 14] = "TYPE_ENUM";
|
|
201
|
+
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SFIXED32"] = 15] = "TYPE_SFIXED32";
|
|
202
|
+
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SFIXED64"] = 16] = "TYPE_SFIXED64";
|
|
203
|
+
/** TYPE_SINT32 - Uses ZigZag encoding. */
|
|
204
|
+
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SINT32"] = 17] = "TYPE_SINT32";
|
|
205
|
+
/** TYPE_SINT64 - Uses ZigZag encoding. */
|
|
206
|
+
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SINT64"] = 18] = "TYPE_SINT64";
|
|
207
|
+
FieldDescriptorProto_Type[FieldDescriptorProto_Type["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
208
|
+
})(FieldDescriptorProto_Type || (FieldDescriptorProto_Type = {}));
|
|
209
|
+
export const FieldDescriptorProto_TypeSDKType = FieldDescriptorProto_Type;
|
|
210
|
+
export function fieldDescriptorProto_TypeFromJSON(object) {
|
|
211
|
+
switch (object) {
|
|
212
|
+
case 1:
|
|
213
|
+
case "TYPE_DOUBLE":
|
|
214
|
+
return FieldDescriptorProto_Type.TYPE_DOUBLE;
|
|
215
|
+
case 2:
|
|
216
|
+
case "TYPE_FLOAT":
|
|
217
|
+
return FieldDescriptorProto_Type.TYPE_FLOAT;
|
|
218
|
+
case 3:
|
|
219
|
+
case "TYPE_INT64":
|
|
220
|
+
return FieldDescriptorProto_Type.TYPE_INT64;
|
|
221
|
+
case 4:
|
|
222
|
+
case "TYPE_UINT64":
|
|
223
|
+
return FieldDescriptorProto_Type.TYPE_UINT64;
|
|
224
|
+
case 5:
|
|
225
|
+
case "TYPE_INT32":
|
|
226
|
+
return FieldDescriptorProto_Type.TYPE_INT32;
|
|
227
|
+
case 6:
|
|
228
|
+
case "TYPE_FIXED64":
|
|
229
|
+
return FieldDescriptorProto_Type.TYPE_FIXED64;
|
|
230
|
+
case 7:
|
|
231
|
+
case "TYPE_FIXED32":
|
|
232
|
+
return FieldDescriptorProto_Type.TYPE_FIXED32;
|
|
233
|
+
case 8:
|
|
234
|
+
case "TYPE_BOOL":
|
|
235
|
+
return FieldDescriptorProto_Type.TYPE_BOOL;
|
|
236
|
+
case 9:
|
|
237
|
+
case "TYPE_STRING":
|
|
238
|
+
return FieldDescriptorProto_Type.TYPE_STRING;
|
|
239
|
+
case 10:
|
|
240
|
+
case "TYPE_GROUP":
|
|
241
|
+
return FieldDescriptorProto_Type.TYPE_GROUP;
|
|
242
|
+
case 11:
|
|
243
|
+
case "TYPE_MESSAGE":
|
|
244
|
+
return FieldDescriptorProto_Type.TYPE_MESSAGE;
|
|
245
|
+
case 12:
|
|
246
|
+
case "TYPE_BYTES":
|
|
247
|
+
return FieldDescriptorProto_Type.TYPE_BYTES;
|
|
248
|
+
case 13:
|
|
249
|
+
case "TYPE_UINT32":
|
|
250
|
+
return FieldDescriptorProto_Type.TYPE_UINT32;
|
|
251
|
+
case 14:
|
|
252
|
+
case "TYPE_ENUM":
|
|
253
|
+
return FieldDescriptorProto_Type.TYPE_ENUM;
|
|
254
|
+
case 15:
|
|
255
|
+
case "TYPE_SFIXED32":
|
|
256
|
+
return FieldDescriptorProto_Type.TYPE_SFIXED32;
|
|
257
|
+
case 16:
|
|
258
|
+
case "TYPE_SFIXED64":
|
|
259
|
+
return FieldDescriptorProto_Type.TYPE_SFIXED64;
|
|
260
|
+
case 17:
|
|
261
|
+
case "TYPE_SINT32":
|
|
262
|
+
return FieldDescriptorProto_Type.TYPE_SINT32;
|
|
263
|
+
case 18:
|
|
264
|
+
case "TYPE_SINT64":
|
|
265
|
+
return FieldDescriptorProto_Type.TYPE_SINT64;
|
|
266
|
+
case -1:
|
|
267
|
+
case "UNRECOGNIZED":
|
|
268
|
+
default:
|
|
269
|
+
return FieldDescriptorProto_Type.UNRECOGNIZED;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
export function fieldDescriptorProto_TypeToJSON(object) {
|
|
273
|
+
switch (object) {
|
|
274
|
+
case FieldDescriptorProto_Type.TYPE_DOUBLE:
|
|
275
|
+
return "TYPE_DOUBLE";
|
|
276
|
+
case FieldDescriptorProto_Type.TYPE_FLOAT:
|
|
277
|
+
return "TYPE_FLOAT";
|
|
278
|
+
case FieldDescriptorProto_Type.TYPE_INT64:
|
|
279
|
+
return "TYPE_INT64";
|
|
280
|
+
case FieldDescriptorProto_Type.TYPE_UINT64:
|
|
281
|
+
return "TYPE_UINT64";
|
|
282
|
+
case FieldDescriptorProto_Type.TYPE_INT32:
|
|
283
|
+
return "TYPE_INT32";
|
|
284
|
+
case FieldDescriptorProto_Type.TYPE_FIXED64:
|
|
285
|
+
return "TYPE_FIXED64";
|
|
286
|
+
case FieldDescriptorProto_Type.TYPE_FIXED32:
|
|
287
|
+
return "TYPE_FIXED32";
|
|
288
|
+
case FieldDescriptorProto_Type.TYPE_BOOL:
|
|
289
|
+
return "TYPE_BOOL";
|
|
290
|
+
case FieldDescriptorProto_Type.TYPE_STRING:
|
|
291
|
+
return "TYPE_STRING";
|
|
292
|
+
case FieldDescriptorProto_Type.TYPE_GROUP:
|
|
293
|
+
return "TYPE_GROUP";
|
|
294
|
+
case FieldDescriptorProto_Type.TYPE_MESSAGE:
|
|
295
|
+
return "TYPE_MESSAGE";
|
|
296
|
+
case FieldDescriptorProto_Type.TYPE_BYTES:
|
|
297
|
+
return "TYPE_BYTES";
|
|
298
|
+
case FieldDescriptorProto_Type.TYPE_UINT32:
|
|
299
|
+
return "TYPE_UINT32";
|
|
300
|
+
case FieldDescriptorProto_Type.TYPE_ENUM:
|
|
301
|
+
return "TYPE_ENUM";
|
|
302
|
+
case FieldDescriptorProto_Type.TYPE_SFIXED32:
|
|
303
|
+
return "TYPE_SFIXED32";
|
|
304
|
+
case FieldDescriptorProto_Type.TYPE_SFIXED64:
|
|
305
|
+
return "TYPE_SFIXED64";
|
|
306
|
+
case FieldDescriptorProto_Type.TYPE_SINT32:
|
|
307
|
+
return "TYPE_SINT32";
|
|
308
|
+
case FieldDescriptorProto_Type.TYPE_SINT64:
|
|
309
|
+
return "TYPE_SINT64";
|
|
310
|
+
case FieldDescriptorProto_Type.UNRECOGNIZED:
|
|
311
|
+
default:
|
|
312
|
+
return "UNRECOGNIZED";
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
export var FieldDescriptorProto_Label;
|
|
316
|
+
(function (FieldDescriptorProto_Label) {
|
|
317
|
+
/** LABEL_OPTIONAL - 0 is reserved for errors */
|
|
318
|
+
FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_OPTIONAL"] = 1] = "LABEL_OPTIONAL";
|
|
319
|
+
FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REPEATED"] = 3] = "LABEL_REPEATED";
|
|
320
|
+
/**
|
|
321
|
+
* LABEL_REQUIRED - The required label is only allowed in google.protobuf. In proto3 and Editions
|
|
322
|
+
* it's explicitly prohibited. In Editions, the `field_presence` feature
|
|
323
|
+
* can be used to get this behavior.
|
|
324
|
+
*/
|
|
325
|
+
FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REQUIRED"] = 2] = "LABEL_REQUIRED";
|
|
326
|
+
FieldDescriptorProto_Label[FieldDescriptorProto_Label["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
327
|
+
})(FieldDescriptorProto_Label || (FieldDescriptorProto_Label = {}));
|
|
328
|
+
export const FieldDescriptorProto_LabelSDKType = FieldDescriptorProto_Label;
|
|
329
|
+
export function fieldDescriptorProto_LabelFromJSON(object) {
|
|
330
|
+
switch (object) {
|
|
331
|
+
case 1:
|
|
332
|
+
case "LABEL_OPTIONAL":
|
|
333
|
+
return FieldDescriptorProto_Label.LABEL_OPTIONAL;
|
|
334
|
+
case 3:
|
|
335
|
+
case "LABEL_REPEATED":
|
|
336
|
+
return FieldDescriptorProto_Label.LABEL_REPEATED;
|
|
337
|
+
case 2:
|
|
338
|
+
case "LABEL_REQUIRED":
|
|
339
|
+
return FieldDescriptorProto_Label.LABEL_REQUIRED;
|
|
340
|
+
case -1:
|
|
341
|
+
case "UNRECOGNIZED":
|
|
342
|
+
default:
|
|
343
|
+
return FieldDescriptorProto_Label.UNRECOGNIZED;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
export function fieldDescriptorProto_LabelToJSON(object) {
|
|
347
|
+
switch (object) {
|
|
348
|
+
case FieldDescriptorProto_Label.LABEL_OPTIONAL:
|
|
349
|
+
return "LABEL_OPTIONAL";
|
|
350
|
+
case FieldDescriptorProto_Label.LABEL_REPEATED:
|
|
351
|
+
return "LABEL_REPEATED";
|
|
352
|
+
case FieldDescriptorProto_Label.LABEL_REQUIRED:
|
|
353
|
+
return "LABEL_REQUIRED";
|
|
354
|
+
case FieldDescriptorProto_Label.UNRECOGNIZED:
|
|
355
|
+
default:
|
|
356
|
+
return "UNRECOGNIZED";
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
/** Generated classes can be optimized for speed or code size. */
|
|
360
|
+
export var FileOptions_OptimizeMode;
|
|
361
|
+
(function (FileOptions_OptimizeMode) {
|
|
362
|
+
/** SPEED - Generate complete code for parsing, serialization, */
|
|
363
|
+
FileOptions_OptimizeMode[FileOptions_OptimizeMode["SPEED"] = 1] = "SPEED";
|
|
364
|
+
/** CODE_SIZE - etc. */
|
|
365
|
+
FileOptions_OptimizeMode[FileOptions_OptimizeMode["CODE_SIZE"] = 2] = "CODE_SIZE";
|
|
366
|
+
/** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */
|
|
367
|
+
FileOptions_OptimizeMode[FileOptions_OptimizeMode["LITE_RUNTIME"] = 3] = "LITE_RUNTIME";
|
|
368
|
+
FileOptions_OptimizeMode[FileOptions_OptimizeMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
369
|
+
})(FileOptions_OptimizeMode || (FileOptions_OptimizeMode = {}));
|
|
370
|
+
export const FileOptions_OptimizeModeSDKType = FileOptions_OptimizeMode;
|
|
371
|
+
export function fileOptions_OptimizeModeFromJSON(object) {
|
|
372
|
+
switch (object) {
|
|
373
|
+
case 1:
|
|
374
|
+
case "SPEED":
|
|
375
|
+
return FileOptions_OptimizeMode.SPEED;
|
|
376
|
+
case 2:
|
|
377
|
+
case "CODE_SIZE":
|
|
378
|
+
return FileOptions_OptimizeMode.CODE_SIZE;
|
|
379
|
+
case 3:
|
|
380
|
+
case "LITE_RUNTIME":
|
|
381
|
+
return FileOptions_OptimizeMode.LITE_RUNTIME;
|
|
382
|
+
case -1:
|
|
383
|
+
case "UNRECOGNIZED":
|
|
384
|
+
default:
|
|
385
|
+
return FileOptions_OptimizeMode.UNRECOGNIZED;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
export function fileOptions_OptimizeModeToJSON(object) {
|
|
389
|
+
switch (object) {
|
|
390
|
+
case FileOptions_OptimizeMode.SPEED:
|
|
391
|
+
return "SPEED";
|
|
392
|
+
case FileOptions_OptimizeMode.CODE_SIZE:
|
|
393
|
+
return "CODE_SIZE";
|
|
394
|
+
case FileOptions_OptimizeMode.LITE_RUNTIME:
|
|
395
|
+
return "LITE_RUNTIME";
|
|
396
|
+
case FileOptions_OptimizeMode.UNRECOGNIZED:
|
|
397
|
+
default:
|
|
398
|
+
return "UNRECOGNIZED";
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
export var FieldOptions_CType;
|
|
402
|
+
(function (FieldOptions_CType) {
|
|
403
|
+
/** STRING - Default mode. */
|
|
404
|
+
FieldOptions_CType[FieldOptions_CType["STRING"] = 0] = "STRING";
|
|
405
|
+
/**
|
|
406
|
+
* CORD - The option [ctype=CORD] may be applied to a non-repeated field of type
|
|
407
|
+
* "bytes". It indicates that in C++, the data should be stored in a Cord
|
|
408
|
+
* instead of a string. For very large strings, this may reduce memory
|
|
409
|
+
* fragmentation. It may also allow better performance when parsing from a
|
|
410
|
+
* Cord, or when parsing with aliasing enabled, as the parsed Cord may then
|
|
411
|
+
* alias the original buffer.
|
|
412
|
+
*/
|
|
413
|
+
FieldOptions_CType[FieldOptions_CType["CORD"] = 1] = "CORD";
|
|
414
|
+
FieldOptions_CType[FieldOptions_CType["STRING_PIECE"] = 2] = "STRING_PIECE";
|
|
415
|
+
FieldOptions_CType[FieldOptions_CType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
416
|
+
})(FieldOptions_CType || (FieldOptions_CType = {}));
|
|
417
|
+
export const FieldOptions_CTypeSDKType = FieldOptions_CType;
|
|
418
|
+
export function fieldOptions_CTypeFromJSON(object) {
|
|
419
|
+
switch (object) {
|
|
420
|
+
case 0:
|
|
421
|
+
case "STRING":
|
|
422
|
+
return FieldOptions_CType.STRING;
|
|
423
|
+
case 1:
|
|
424
|
+
case "CORD":
|
|
425
|
+
return FieldOptions_CType.CORD;
|
|
426
|
+
case 2:
|
|
427
|
+
case "STRING_PIECE":
|
|
428
|
+
return FieldOptions_CType.STRING_PIECE;
|
|
429
|
+
case -1:
|
|
430
|
+
case "UNRECOGNIZED":
|
|
431
|
+
default:
|
|
432
|
+
return FieldOptions_CType.UNRECOGNIZED;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
export function fieldOptions_CTypeToJSON(object) {
|
|
436
|
+
switch (object) {
|
|
437
|
+
case FieldOptions_CType.STRING:
|
|
438
|
+
return "STRING";
|
|
439
|
+
case FieldOptions_CType.CORD:
|
|
440
|
+
return "CORD";
|
|
441
|
+
case FieldOptions_CType.STRING_PIECE:
|
|
442
|
+
return "STRING_PIECE";
|
|
443
|
+
case FieldOptions_CType.UNRECOGNIZED:
|
|
444
|
+
default:
|
|
445
|
+
return "UNRECOGNIZED";
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
export var FieldOptions_JSType;
|
|
449
|
+
(function (FieldOptions_JSType) {
|
|
450
|
+
/** JS_NORMAL - Use the default type. */
|
|
451
|
+
FieldOptions_JSType[FieldOptions_JSType["JS_NORMAL"] = 0] = "JS_NORMAL";
|
|
452
|
+
/** JS_STRING - Use JavaScript strings. */
|
|
453
|
+
FieldOptions_JSType[FieldOptions_JSType["JS_STRING"] = 1] = "JS_STRING";
|
|
454
|
+
/** JS_NUMBER - Use JavaScript numbers. */
|
|
455
|
+
FieldOptions_JSType[FieldOptions_JSType["JS_NUMBER"] = 2] = "JS_NUMBER";
|
|
456
|
+
FieldOptions_JSType[FieldOptions_JSType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
457
|
+
})(FieldOptions_JSType || (FieldOptions_JSType = {}));
|
|
458
|
+
export const FieldOptions_JSTypeSDKType = FieldOptions_JSType;
|
|
459
|
+
export function fieldOptions_JSTypeFromJSON(object) {
|
|
460
|
+
switch (object) {
|
|
461
|
+
case 0:
|
|
462
|
+
case "JS_NORMAL":
|
|
463
|
+
return FieldOptions_JSType.JS_NORMAL;
|
|
464
|
+
case 1:
|
|
465
|
+
case "JS_STRING":
|
|
466
|
+
return FieldOptions_JSType.JS_STRING;
|
|
467
|
+
case 2:
|
|
468
|
+
case "JS_NUMBER":
|
|
469
|
+
return FieldOptions_JSType.JS_NUMBER;
|
|
470
|
+
case -1:
|
|
471
|
+
case "UNRECOGNIZED":
|
|
472
|
+
default:
|
|
473
|
+
return FieldOptions_JSType.UNRECOGNIZED;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
export function fieldOptions_JSTypeToJSON(object) {
|
|
477
|
+
switch (object) {
|
|
478
|
+
case FieldOptions_JSType.JS_NORMAL:
|
|
479
|
+
return "JS_NORMAL";
|
|
480
|
+
case FieldOptions_JSType.JS_STRING:
|
|
481
|
+
return "JS_STRING";
|
|
482
|
+
case FieldOptions_JSType.JS_NUMBER:
|
|
483
|
+
return "JS_NUMBER";
|
|
484
|
+
case FieldOptions_JSType.UNRECOGNIZED:
|
|
485
|
+
default:
|
|
486
|
+
return "UNRECOGNIZED";
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
/** If set to RETENTION_SOURCE, the option will be omitted from the binary. */
|
|
490
|
+
export var FieldOptions_OptionRetention;
|
|
491
|
+
(function (FieldOptions_OptionRetention) {
|
|
492
|
+
FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_UNKNOWN"] = 0] = "RETENTION_UNKNOWN";
|
|
493
|
+
FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_RUNTIME"] = 1] = "RETENTION_RUNTIME";
|
|
494
|
+
FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_SOURCE"] = 2] = "RETENTION_SOURCE";
|
|
495
|
+
FieldOptions_OptionRetention[FieldOptions_OptionRetention["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
496
|
+
})(FieldOptions_OptionRetention || (FieldOptions_OptionRetention = {}));
|
|
497
|
+
export const FieldOptions_OptionRetentionSDKType = FieldOptions_OptionRetention;
|
|
498
|
+
export function fieldOptions_OptionRetentionFromJSON(object) {
|
|
499
|
+
switch (object) {
|
|
500
|
+
case 0:
|
|
501
|
+
case "RETENTION_UNKNOWN":
|
|
502
|
+
return FieldOptions_OptionRetention.RETENTION_UNKNOWN;
|
|
503
|
+
case 1:
|
|
504
|
+
case "RETENTION_RUNTIME":
|
|
505
|
+
return FieldOptions_OptionRetention.RETENTION_RUNTIME;
|
|
506
|
+
case 2:
|
|
507
|
+
case "RETENTION_SOURCE":
|
|
508
|
+
return FieldOptions_OptionRetention.RETENTION_SOURCE;
|
|
509
|
+
case -1:
|
|
510
|
+
case "UNRECOGNIZED":
|
|
511
|
+
default:
|
|
512
|
+
return FieldOptions_OptionRetention.UNRECOGNIZED;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
export function fieldOptions_OptionRetentionToJSON(object) {
|
|
516
|
+
switch (object) {
|
|
517
|
+
case FieldOptions_OptionRetention.RETENTION_UNKNOWN:
|
|
518
|
+
return "RETENTION_UNKNOWN";
|
|
519
|
+
case FieldOptions_OptionRetention.RETENTION_RUNTIME:
|
|
520
|
+
return "RETENTION_RUNTIME";
|
|
521
|
+
case FieldOptions_OptionRetention.RETENTION_SOURCE:
|
|
522
|
+
return "RETENTION_SOURCE";
|
|
523
|
+
case FieldOptions_OptionRetention.UNRECOGNIZED:
|
|
524
|
+
default:
|
|
525
|
+
return "UNRECOGNIZED";
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* This indicates the types of entities that the field may apply to when used
|
|
530
|
+
* as an option. If it is unset, then the field may be freely used as an
|
|
531
|
+
* option on any kind of entity.
|
|
532
|
+
*/
|
|
533
|
+
export var FieldOptions_OptionTargetType;
|
|
534
|
+
(function (FieldOptions_OptionTargetType) {
|
|
535
|
+
FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_UNKNOWN"] = 0] = "TARGET_TYPE_UNKNOWN";
|
|
536
|
+
FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_FILE"] = 1] = "TARGET_TYPE_FILE";
|
|
537
|
+
FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_EXTENSION_RANGE"] = 2] = "TARGET_TYPE_EXTENSION_RANGE";
|
|
538
|
+
FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_MESSAGE"] = 3] = "TARGET_TYPE_MESSAGE";
|
|
539
|
+
FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_FIELD"] = 4] = "TARGET_TYPE_FIELD";
|
|
540
|
+
FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ONEOF"] = 5] = "TARGET_TYPE_ONEOF";
|
|
541
|
+
FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ENUM"] = 6] = "TARGET_TYPE_ENUM";
|
|
542
|
+
FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ENUM_ENTRY"] = 7] = "TARGET_TYPE_ENUM_ENTRY";
|
|
543
|
+
FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_SERVICE"] = 8] = "TARGET_TYPE_SERVICE";
|
|
544
|
+
FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_METHOD"] = 9] = "TARGET_TYPE_METHOD";
|
|
545
|
+
FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
546
|
+
})(FieldOptions_OptionTargetType || (FieldOptions_OptionTargetType = {}));
|
|
547
|
+
export const FieldOptions_OptionTargetTypeSDKType = FieldOptions_OptionTargetType;
|
|
548
|
+
export function fieldOptions_OptionTargetTypeFromJSON(object) {
|
|
549
|
+
switch (object) {
|
|
550
|
+
case 0:
|
|
551
|
+
case "TARGET_TYPE_UNKNOWN":
|
|
552
|
+
return FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN;
|
|
553
|
+
case 1:
|
|
554
|
+
case "TARGET_TYPE_FILE":
|
|
555
|
+
return FieldOptions_OptionTargetType.TARGET_TYPE_FILE;
|
|
556
|
+
case 2:
|
|
557
|
+
case "TARGET_TYPE_EXTENSION_RANGE":
|
|
558
|
+
return FieldOptions_OptionTargetType.TARGET_TYPE_EXTENSION_RANGE;
|
|
559
|
+
case 3:
|
|
560
|
+
case "TARGET_TYPE_MESSAGE":
|
|
561
|
+
return FieldOptions_OptionTargetType.TARGET_TYPE_MESSAGE;
|
|
562
|
+
case 4:
|
|
563
|
+
case "TARGET_TYPE_FIELD":
|
|
564
|
+
return FieldOptions_OptionTargetType.TARGET_TYPE_FIELD;
|
|
565
|
+
case 5:
|
|
566
|
+
case "TARGET_TYPE_ONEOF":
|
|
567
|
+
return FieldOptions_OptionTargetType.TARGET_TYPE_ONEOF;
|
|
568
|
+
case 6:
|
|
569
|
+
case "TARGET_TYPE_ENUM":
|
|
570
|
+
return FieldOptions_OptionTargetType.TARGET_TYPE_ENUM;
|
|
571
|
+
case 7:
|
|
572
|
+
case "TARGET_TYPE_ENUM_ENTRY":
|
|
573
|
+
return FieldOptions_OptionTargetType.TARGET_TYPE_ENUM_ENTRY;
|
|
574
|
+
case 8:
|
|
575
|
+
case "TARGET_TYPE_SERVICE":
|
|
576
|
+
return FieldOptions_OptionTargetType.TARGET_TYPE_SERVICE;
|
|
577
|
+
case 9:
|
|
578
|
+
case "TARGET_TYPE_METHOD":
|
|
579
|
+
return FieldOptions_OptionTargetType.TARGET_TYPE_METHOD;
|
|
580
|
+
case -1:
|
|
581
|
+
case "UNRECOGNIZED":
|
|
582
|
+
default:
|
|
583
|
+
return FieldOptions_OptionTargetType.UNRECOGNIZED;
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
export function fieldOptions_OptionTargetTypeToJSON(object) {
|
|
587
|
+
switch (object) {
|
|
588
|
+
case FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN:
|
|
589
|
+
return "TARGET_TYPE_UNKNOWN";
|
|
590
|
+
case FieldOptions_OptionTargetType.TARGET_TYPE_FILE:
|
|
591
|
+
return "TARGET_TYPE_FILE";
|
|
592
|
+
case FieldOptions_OptionTargetType.TARGET_TYPE_EXTENSION_RANGE:
|
|
593
|
+
return "TARGET_TYPE_EXTENSION_RANGE";
|
|
594
|
+
case FieldOptions_OptionTargetType.TARGET_TYPE_MESSAGE:
|
|
595
|
+
return "TARGET_TYPE_MESSAGE";
|
|
596
|
+
case FieldOptions_OptionTargetType.TARGET_TYPE_FIELD:
|
|
597
|
+
return "TARGET_TYPE_FIELD";
|
|
598
|
+
case FieldOptions_OptionTargetType.TARGET_TYPE_ONEOF:
|
|
599
|
+
return "TARGET_TYPE_ONEOF";
|
|
600
|
+
case FieldOptions_OptionTargetType.TARGET_TYPE_ENUM:
|
|
601
|
+
return "TARGET_TYPE_ENUM";
|
|
602
|
+
case FieldOptions_OptionTargetType.TARGET_TYPE_ENUM_ENTRY:
|
|
603
|
+
return "TARGET_TYPE_ENUM_ENTRY";
|
|
604
|
+
case FieldOptions_OptionTargetType.TARGET_TYPE_SERVICE:
|
|
605
|
+
return "TARGET_TYPE_SERVICE";
|
|
606
|
+
case FieldOptions_OptionTargetType.TARGET_TYPE_METHOD:
|
|
607
|
+
return "TARGET_TYPE_METHOD";
|
|
608
|
+
case FieldOptions_OptionTargetType.UNRECOGNIZED:
|
|
609
|
+
default:
|
|
610
|
+
return "UNRECOGNIZED";
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
|
|
615
|
+
* or neither? HTTP based RPC implementation may choose GET verb for safe
|
|
616
|
+
* methods, and PUT verb for idempotent methods instead of the default POST.
|
|
617
|
+
*/
|
|
618
|
+
export var MethodOptions_IdempotencyLevel;
|
|
619
|
+
(function (MethodOptions_IdempotencyLevel) {
|
|
620
|
+
MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = 0] = "IDEMPOTENCY_UNKNOWN";
|
|
621
|
+
/** NO_SIDE_EFFECTS - implies idempotent */
|
|
622
|
+
MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["NO_SIDE_EFFECTS"] = 1] = "NO_SIDE_EFFECTS";
|
|
623
|
+
/** IDEMPOTENT - idempotent, but may have side effects */
|
|
624
|
+
MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENT"] = 2] = "IDEMPOTENT";
|
|
625
|
+
MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
626
|
+
})(MethodOptions_IdempotencyLevel || (MethodOptions_IdempotencyLevel = {}));
|
|
627
|
+
export const MethodOptions_IdempotencyLevelSDKType = MethodOptions_IdempotencyLevel;
|
|
628
|
+
export function methodOptions_IdempotencyLevelFromJSON(object) {
|
|
629
|
+
switch (object) {
|
|
630
|
+
case 0:
|
|
631
|
+
case "IDEMPOTENCY_UNKNOWN":
|
|
632
|
+
return MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN;
|
|
633
|
+
case 1:
|
|
634
|
+
case "NO_SIDE_EFFECTS":
|
|
635
|
+
return MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS;
|
|
636
|
+
case 2:
|
|
637
|
+
case "IDEMPOTENT":
|
|
638
|
+
return MethodOptions_IdempotencyLevel.IDEMPOTENT;
|
|
639
|
+
case -1:
|
|
640
|
+
case "UNRECOGNIZED":
|
|
641
|
+
default:
|
|
642
|
+
return MethodOptions_IdempotencyLevel.UNRECOGNIZED;
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
export function methodOptions_IdempotencyLevelToJSON(object) {
|
|
646
|
+
switch (object) {
|
|
647
|
+
case MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN:
|
|
648
|
+
return "IDEMPOTENCY_UNKNOWN";
|
|
649
|
+
case MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS:
|
|
650
|
+
return "NO_SIDE_EFFECTS";
|
|
651
|
+
case MethodOptions_IdempotencyLevel.IDEMPOTENT:
|
|
652
|
+
return "IDEMPOTENT";
|
|
653
|
+
case MethodOptions_IdempotencyLevel.UNRECOGNIZED:
|
|
654
|
+
default:
|
|
655
|
+
return "UNRECOGNIZED";
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
export var FeatureSet_FieldPresence;
|
|
659
|
+
(function (FeatureSet_FieldPresence) {
|
|
660
|
+
FeatureSet_FieldPresence[FeatureSet_FieldPresence["FIELD_PRESENCE_UNKNOWN"] = 0] = "FIELD_PRESENCE_UNKNOWN";
|
|
661
|
+
FeatureSet_FieldPresence[FeatureSet_FieldPresence["EXPLICIT"] = 1] = "EXPLICIT";
|
|
662
|
+
FeatureSet_FieldPresence[FeatureSet_FieldPresence["IMPLICIT"] = 2] = "IMPLICIT";
|
|
663
|
+
FeatureSet_FieldPresence[FeatureSet_FieldPresence["LEGACY_REQUIRED"] = 3] = "LEGACY_REQUIRED";
|
|
664
|
+
FeatureSet_FieldPresence[FeatureSet_FieldPresence["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
665
|
+
})(FeatureSet_FieldPresence || (FeatureSet_FieldPresence = {}));
|
|
666
|
+
export const FeatureSet_FieldPresenceSDKType = FeatureSet_FieldPresence;
|
|
667
|
+
export function featureSet_FieldPresenceFromJSON(object) {
|
|
668
|
+
switch (object) {
|
|
669
|
+
case 0:
|
|
670
|
+
case "FIELD_PRESENCE_UNKNOWN":
|
|
671
|
+
return FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN;
|
|
672
|
+
case 1:
|
|
673
|
+
case "EXPLICIT":
|
|
674
|
+
return FeatureSet_FieldPresence.EXPLICIT;
|
|
675
|
+
case 2:
|
|
676
|
+
case "IMPLICIT":
|
|
677
|
+
return FeatureSet_FieldPresence.IMPLICIT;
|
|
678
|
+
case 3:
|
|
679
|
+
case "LEGACY_REQUIRED":
|
|
680
|
+
return FeatureSet_FieldPresence.LEGACY_REQUIRED;
|
|
681
|
+
case -1:
|
|
682
|
+
case "UNRECOGNIZED":
|
|
683
|
+
default:
|
|
684
|
+
return FeatureSet_FieldPresence.UNRECOGNIZED;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
export function featureSet_FieldPresenceToJSON(object) {
|
|
688
|
+
switch (object) {
|
|
689
|
+
case FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN:
|
|
690
|
+
return "FIELD_PRESENCE_UNKNOWN";
|
|
691
|
+
case FeatureSet_FieldPresence.EXPLICIT:
|
|
692
|
+
return "EXPLICIT";
|
|
693
|
+
case FeatureSet_FieldPresence.IMPLICIT:
|
|
694
|
+
return "IMPLICIT";
|
|
695
|
+
case FeatureSet_FieldPresence.LEGACY_REQUIRED:
|
|
696
|
+
return "LEGACY_REQUIRED";
|
|
697
|
+
case FeatureSet_FieldPresence.UNRECOGNIZED:
|
|
698
|
+
default:
|
|
699
|
+
return "UNRECOGNIZED";
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
export var FeatureSet_EnumType;
|
|
703
|
+
(function (FeatureSet_EnumType) {
|
|
704
|
+
FeatureSet_EnumType[FeatureSet_EnumType["ENUM_TYPE_UNKNOWN"] = 0] = "ENUM_TYPE_UNKNOWN";
|
|
705
|
+
FeatureSet_EnumType[FeatureSet_EnumType["OPEN"] = 1] = "OPEN";
|
|
706
|
+
FeatureSet_EnumType[FeatureSet_EnumType["CLOSED"] = 2] = "CLOSED";
|
|
707
|
+
FeatureSet_EnumType[FeatureSet_EnumType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
708
|
+
})(FeatureSet_EnumType || (FeatureSet_EnumType = {}));
|
|
709
|
+
export const FeatureSet_EnumTypeSDKType = FeatureSet_EnumType;
|
|
710
|
+
export function featureSet_EnumTypeFromJSON(object) {
|
|
711
|
+
switch (object) {
|
|
712
|
+
case 0:
|
|
713
|
+
case "ENUM_TYPE_UNKNOWN":
|
|
714
|
+
return FeatureSet_EnumType.ENUM_TYPE_UNKNOWN;
|
|
715
|
+
case 1:
|
|
716
|
+
case "OPEN":
|
|
717
|
+
return FeatureSet_EnumType.OPEN;
|
|
718
|
+
case 2:
|
|
719
|
+
case "CLOSED":
|
|
720
|
+
return FeatureSet_EnumType.CLOSED;
|
|
721
|
+
case -1:
|
|
722
|
+
case "UNRECOGNIZED":
|
|
723
|
+
default:
|
|
724
|
+
return FeatureSet_EnumType.UNRECOGNIZED;
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
export function featureSet_EnumTypeToJSON(object) {
|
|
728
|
+
switch (object) {
|
|
729
|
+
case FeatureSet_EnumType.ENUM_TYPE_UNKNOWN:
|
|
730
|
+
return "ENUM_TYPE_UNKNOWN";
|
|
731
|
+
case FeatureSet_EnumType.OPEN:
|
|
732
|
+
return "OPEN";
|
|
733
|
+
case FeatureSet_EnumType.CLOSED:
|
|
734
|
+
return "CLOSED";
|
|
735
|
+
case FeatureSet_EnumType.UNRECOGNIZED:
|
|
736
|
+
default:
|
|
737
|
+
return "UNRECOGNIZED";
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
export var FeatureSet_RepeatedFieldEncoding;
|
|
741
|
+
(function (FeatureSet_RepeatedFieldEncoding) {
|
|
742
|
+
FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["REPEATED_FIELD_ENCODING_UNKNOWN"] = 0] = "REPEATED_FIELD_ENCODING_UNKNOWN";
|
|
743
|
+
FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["PACKED"] = 1] = "PACKED";
|
|
744
|
+
FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["EXPANDED"] = 2] = "EXPANDED";
|
|
745
|
+
FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
746
|
+
})(FeatureSet_RepeatedFieldEncoding || (FeatureSet_RepeatedFieldEncoding = {}));
|
|
747
|
+
export const FeatureSet_RepeatedFieldEncodingSDKType = FeatureSet_RepeatedFieldEncoding;
|
|
748
|
+
export function featureSet_RepeatedFieldEncodingFromJSON(object) {
|
|
749
|
+
switch (object) {
|
|
750
|
+
case 0:
|
|
751
|
+
case "REPEATED_FIELD_ENCODING_UNKNOWN":
|
|
752
|
+
return FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN;
|
|
753
|
+
case 1:
|
|
754
|
+
case "PACKED":
|
|
755
|
+
return FeatureSet_RepeatedFieldEncoding.PACKED;
|
|
756
|
+
case 2:
|
|
757
|
+
case "EXPANDED":
|
|
758
|
+
return FeatureSet_RepeatedFieldEncoding.EXPANDED;
|
|
759
|
+
case -1:
|
|
760
|
+
case "UNRECOGNIZED":
|
|
761
|
+
default:
|
|
762
|
+
return FeatureSet_RepeatedFieldEncoding.UNRECOGNIZED;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
export function featureSet_RepeatedFieldEncodingToJSON(object) {
|
|
766
|
+
switch (object) {
|
|
767
|
+
case FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN:
|
|
768
|
+
return "REPEATED_FIELD_ENCODING_UNKNOWN";
|
|
769
|
+
case FeatureSet_RepeatedFieldEncoding.PACKED:
|
|
770
|
+
return "PACKED";
|
|
771
|
+
case FeatureSet_RepeatedFieldEncoding.EXPANDED:
|
|
772
|
+
return "EXPANDED";
|
|
773
|
+
case FeatureSet_RepeatedFieldEncoding.UNRECOGNIZED:
|
|
774
|
+
default:
|
|
775
|
+
return "UNRECOGNIZED";
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
export var FeatureSet_Utf8Validation;
|
|
779
|
+
(function (FeatureSet_Utf8Validation) {
|
|
780
|
+
FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["UTF8_VALIDATION_UNKNOWN"] = 0] = "UTF8_VALIDATION_UNKNOWN";
|
|
781
|
+
FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["VERIFY"] = 2] = "VERIFY";
|
|
782
|
+
FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["NONE"] = 3] = "NONE";
|
|
783
|
+
FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
784
|
+
})(FeatureSet_Utf8Validation || (FeatureSet_Utf8Validation = {}));
|
|
785
|
+
export const FeatureSet_Utf8ValidationSDKType = FeatureSet_Utf8Validation;
|
|
786
|
+
export function featureSet_Utf8ValidationFromJSON(object) {
|
|
787
|
+
switch (object) {
|
|
788
|
+
case 0:
|
|
789
|
+
case "UTF8_VALIDATION_UNKNOWN":
|
|
790
|
+
return FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN;
|
|
791
|
+
case 2:
|
|
792
|
+
case "VERIFY":
|
|
793
|
+
return FeatureSet_Utf8Validation.VERIFY;
|
|
794
|
+
case 3:
|
|
795
|
+
case "NONE":
|
|
796
|
+
return FeatureSet_Utf8Validation.NONE;
|
|
797
|
+
case -1:
|
|
798
|
+
case "UNRECOGNIZED":
|
|
799
|
+
default:
|
|
800
|
+
return FeatureSet_Utf8Validation.UNRECOGNIZED;
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
export function featureSet_Utf8ValidationToJSON(object) {
|
|
804
|
+
switch (object) {
|
|
805
|
+
case FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN:
|
|
806
|
+
return "UTF8_VALIDATION_UNKNOWN";
|
|
807
|
+
case FeatureSet_Utf8Validation.VERIFY:
|
|
808
|
+
return "VERIFY";
|
|
809
|
+
case FeatureSet_Utf8Validation.NONE:
|
|
810
|
+
return "NONE";
|
|
811
|
+
case FeatureSet_Utf8Validation.UNRECOGNIZED:
|
|
812
|
+
default:
|
|
813
|
+
return "UNRECOGNIZED";
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
export var FeatureSet_MessageEncoding;
|
|
817
|
+
(function (FeatureSet_MessageEncoding) {
|
|
818
|
+
FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["MESSAGE_ENCODING_UNKNOWN"] = 0] = "MESSAGE_ENCODING_UNKNOWN";
|
|
819
|
+
FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["LENGTH_PREFIXED"] = 1] = "LENGTH_PREFIXED";
|
|
820
|
+
FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["DELIMITED"] = 2] = "DELIMITED";
|
|
821
|
+
FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
822
|
+
})(FeatureSet_MessageEncoding || (FeatureSet_MessageEncoding = {}));
|
|
823
|
+
export const FeatureSet_MessageEncodingSDKType = FeatureSet_MessageEncoding;
|
|
824
|
+
export function featureSet_MessageEncodingFromJSON(object) {
|
|
825
|
+
switch (object) {
|
|
826
|
+
case 0:
|
|
827
|
+
case "MESSAGE_ENCODING_UNKNOWN":
|
|
828
|
+
return FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN;
|
|
829
|
+
case 1:
|
|
830
|
+
case "LENGTH_PREFIXED":
|
|
831
|
+
return FeatureSet_MessageEncoding.LENGTH_PREFIXED;
|
|
832
|
+
case 2:
|
|
833
|
+
case "DELIMITED":
|
|
834
|
+
return FeatureSet_MessageEncoding.DELIMITED;
|
|
835
|
+
case -1:
|
|
836
|
+
case "UNRECOGNIZED":
|
|
837
|
+
default:
|
|
838
|
+
return FeatureSet_MessageEncoding.UNRECOGNIZED;
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
export function featureSet_MessageEncodingToJSON(object) {
|
|
842
|
+
switch (object) {
|
|
843
|
+
case FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN:
|
|
844
|
+
return "MESSAGE_ENCODING_UNKNOWN";
|
|
845
|
+
case FeatureSet_MessageEncoding.LENGTH_PREFIXED:
|
|
846
|
+
return "LENGTH_PREFIXED";
|
|
847
|
+
case FeatureSet_MessageEncoding.DELIMITED:
|
|
848
|
+
return "DELIMITED";
|
|
849
|
+
case FeatureSet_MessageEncoding.UNRECOGNIZED:
|
|
850
|
+
default:
|
|
851
|
+
return "UNRECOGNIZED";
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
export var FeatureSet_JsonFormat;
|
|
855
|
+
(function (FeatureSet_JsonFormat) {
|
|
856
|
+
FeatureSet_JsonFormat[FeatureSet_JsonFormat["JSON_FORMAT_UNKNOWN"] = 0] = "JSON_FORMAT_UNKNOWN";
|
|
857
|
+
FeatureSet_JsonFormat[FeatureSet_JsonFormat["ALLOW"] = 1] = "ALLOW";
|
|
858
|
+
FeatureSet_JsonFormat[FeatureSet_JsonFormat["LEGACY_BEST_EFFORT"] = 2] = "LEGACY_BEST_EFFORT";
|
|
859
|
+
FeatureSet_JsonFormat[FeatureSet_JsonFormat["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
860
|
+
})(FeatureSet_JsonFormat || (FeatureSet_JsonFormat = {}));
|
|
861
|
+
export const FeatureSet_JsonFormatSDKType = FeatureSet_JsonFormat;
|
|
862
|
+
export function featureSet_JsonFormatFromJSON(object) {
|
|
863
|
+
switch (object) {
|
|
864
|
+
case 0:
|
|
865
|
+
case "JSON_FORMAT_UNKNOWN":
|
|
866
|
+
return FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN;
|
|
867
|
+
case 1:
|
|
868
|
+
case "ALLOW":
|
|
869
|
+
return FeatureSet_JsonFormat.ALLOW;
|
|
870
|
+
case 2:
|
|
871
|
+
case "LEGACY_BEST_EFFORT":
|
|
872
|
+
return FeatureSet_JsonFormat.LEGACY_BEST_EFFORT;
|
|
873
|
+
case -1:
|
|
874
|
+
case "UNRECOGNIZED":
|
|
875
|
+
default:
|
|
876
|
+
return FeatureSet_JsonFormat.UNRECOGNIZED;
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
export function featureSet_JsonFormatToJSON(object) {
|
|
880
|
+
switch (object) {
|
|
881
|
+
case FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN:
|
|
882
|
+
return "JSON_FORMAT_UNKNOWN";
|
|
883
|
+
case FeatureSet_JsonFormat.ALLOW:
|
|
884
|
+
return "ALLOW";
|
|
885
|
+
case FeatureSet_JsonFormat.LEGACY_BEST_EFFORT:
|
|
886
|
+
return "LEGACY_BEST_EFFORT";
|
|
887
|
+
case FeatureSet_JsonFormat.UNRECOGNIZED:
|
|
888
|
+
default:
|
|
889
|
+
return "UNRECOGNIZED";
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
export var FeatureSet_EnforceNamingStyle;
|
|
893
|
+
(function (FeatureSet_EnforceNamingStyle) {
|
|
894
|
+
FeatureSet_EnforceNamingStyle[FeatureSet_EnforceNamingStyle["ENFORCE_NAMING_STYLE_UNKNOWN"] = 0] = "ENFORCE_NAMING_STYLE_UNKNOWN";
|
|
895
|
+
FeatureSet_EnforceNamingStyle[FeatureSet_EnforceNamingStyle["STYLE2024"] = 1] = "STYLE2024";
|
|
896
|
+
FeatureSet_EnforceNamingStyle[FeatureSet_EnforceNamingStyle["STYLE_LEGACY"] = 2] = "STYLE_LEGACY";
|
|
897
|
+
FeatureSet_EnforceNamingStyle[FeatureSet_EnforceNamingStyle["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
898
|
+
})(FeatureSet_EnforceNamingStyle || (FeatureSet_EnforceNamingStyle = {}));
|
|
899
|
+
export const FeatureSet_EnforceNamingStyleSDKType = FeatureSet_EnforceNamingStyle;
|
|
900
|
+
export function featureSet_EnforceNamingStyleFromJSON(object) {
|
|
901
|
+
switch (object) {
|
|
902
|
+
case 0:
|
|
903
|
+
case "ENFORCE_NAMING_STYLE_UNKNOWN":
|
|
904
|
+
return FeatureSet_EnforceNamingStyle.ENFORCE_NAMING_STYLE_UNKNOWN;
|
|
905
|
+
case 1:
|
|
906
|
+
case "STYLE2024":
|
|
907
|
+
return FeatureSet_EnforceNamingStyle.STYLE2024;
|
|
908
|
+
case 2:
|
|
909
|
+
case "STYLE_LEGACY":
|
|
910
|
+
return FeatureSet_EnforceNamingStyle.STYLE_LEGACY;
|
|
911
|
+
case -1:
|
|
912
|
+
case "UNRECOGNIZED":
|
|
913
|
+
default:
|
|
914
|
+
return FeatureSet_EnforceNamingStyle.UNRECOGNIZED;
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
export function featureSet_EnforceNamingStyleToJSON(object) {
|
|
918
|
+
switch (object) {
|
|
919
|
+
case FeatureSet_EnforceNamingStyle.ENFORCE_NAMING_STYLE_UNKNOWN:
|
|
920
|
+
return "ENFORCE_NAMING_STYLE_UNKNOWN";
|
|
921
|
+
case FeatureSet_EnforceNamingStyle.STYLE2024:
|
|
922
|
+
return "STYLE2024";
|
|
923
|
+
case FeatureSet_EnforceNamingStyle.STYLE_LEGACY:
|
|
924
|
+
return "STYLE_LEGACY";
|
|
925
|
+
case FeatureSet_EnforceNamingStyle.UNRECOGNIZED:
|
|
926
|
+
default:
|
|
927
|
+
return "UNRECOGNIZED";
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
export var FeatureSet_VisibilityFeature_DefaultSymbolVisibility;
|
|
931
|
+
(function (FeatureSet_VisibilityFeature_DefaultSymbolVisibility) {
|
|
932
|
+
FeatureSet_VisibilityFeature_DefaultSymbolVisibility[FeatureSet_VisibilityFeature_DefaultSymbolVisibility["DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"] = 0] = "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN";
|
|
933
|
+
/** EXPORT_ALL - Default pre-EDITION_2024, all UNSET visibility are export. */
|
|
934
|
+
FeatureSet_VisibilityFeature_DefaultSymbolVisibility[FeatureSet_VisibilityFeature_DefaultSymbolVisibility["EXPORT_ALL"] = 1] = "EXPORT_ALL";
|
|
935
|
+
/** EXPORT_TOP_LEVEL - All top-level symbols default to export, nested default to local. */
|
|
936
|
+
FeatureSet_VisibilityFeature_DefaultSymbolVisibility[FeatureSet_VisibilityFeature_DefaultSymbolVisibility["EXPORT_TOP_LEVEL"] = 2] = "EXPORT_TOP_LEVEL";
|
|
937
|
+
/** LOCAL_ALL - All symbols default to local. */
|
|
938
|
+
FeatureSet_VisibilityFeature_DefaultSymbolVisibility[FeatureSet_VisibilityFeature_DefaultSymbolVisibility["LOCAL_ALL"] = 3] = "LOCAL_ALL";
|
|
939
|
+
/**
|
|
940
|
+
* STRICT - All symbols local by default. Nested types cannot be exported.
|
|
941
|
+
* With special case caveat for message { enum {} reserved 1 to max; }
|
|
942
|
+
* This is the recommended setting for new protos.
|
|
943
|
+
*/
|
|
944
|
+
FeatureSet_VisibilityFeature_DefaultSymbolVisibility[FeatureSet_VisibilityFeature_DefaultSymbolVisibility["STRICT"] = 4] = "STRICT";
|
|
945
|
+
FeatureSet_VisibilityFeature_DefaultSymbolVisibility[FeatureSet_VisibilityFeature_DefaultSymbolVisibility["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
946
|
+
})(FeatureSet_VisibilityFeature_DefaultSymbolVisibility || (FeatureSet_VisibilityFeature_DefaultSymbolVisibility = {}));
|
|
947
|
+
export const FeatureSet_VisibilityFeature_DefaultSymbolVisibilitySDKType = FeatureSet_VisibilityFeature_DefaultSymbolVisibility;
|
|
948
|
+
export function featureSet_VisibilityFeature_DefaultSymbolVisibilityFromJSON(object) {
|
|
949
|
+
switch (object) {
|
|
950
|
+
case 0:
|
|
951
|
+
case "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN":
|
|
952
|
+
return FeatureSet_VisibilityFeature_DefaultSymbolVisibility.DEFAULT_SYMBOL_VISIBILITY_UNKNOWN;
|
|
953
|
+
case 1:
|
|
954
|
+
case "EXPORT_ALL":
|
|
955
|
+
return FeatureSet_VisibilityFeature_DefaultSymbolVisibility.EXPORT_ALL;
|
|
956
|
+
case 2:
|
|
957
|
+
case "EXPORT_TOP_LEVEL":
|
|
958
|
+
return FeatureSet_VisibilityFeature_DefaultSymbolVisibility.EXPORT_TOP_LEVEL;
|
|
959
|
+
case 3:
|
|
960
|
+
case "LOCAL_ALL":
|
|
961
|
+
return FeatureSet_VisibilityFeature_DefaultSymbolVisibility.LOCAL_ALL;
|
|
962
|
+
case 4:
|
|
963
|
+
case "STRICT":
|
|
964
|
+
return FeatureSet_VisibilityFeature_DefaultSymbolVisibility.STRICT;
|
|
965
|
+
case -1:
|
|
966
|
+
case "UNRECOGNIZED":
|
|
967
|
+
default:
|
|
968
|
+
return FeatureSet_VisibilityFeature_DefaultSymbolVisibility.UNRECOGNIZED;
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
export function featureSet_VisibilityFeature_DefaultSymbolVisibilityToJSON(object) {
|
|
972
|
+
switch (object) {
|
|
973
|
+
case FeatureSet_VisibilityFeature_DefaultSymbolVisibility.DEFAULT_SYMBOL_VISIBILITY_UNKNOWN:
|
|
974
|
+
return "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN";
|
|
975
|
+
case FeatureSet_VisibilityFeature_DefaultSymbolVisibility.EXPORT_ALL:
|
|
976
|
+
return "EXPORT_ALL";
|
|
977
|
+
case FeatureSet_VisibilityFeature_DefaultSymbolVisibility.EXPORT_TOP_LEVEL:
|
|
978
|
+
return "EXPORT_TOP_LEVEL";
|
|
979
|
+
case FeatureSet_VisibilityFeature_DefaultSymbolVisibility.LOCAL_ALL:
|
|
980
|
+
return "LOCAL_ALL";
|
|
981
|
+
case FeatureSet_VisibilityFeature_DefaultSymbolVisibility.STRICT:
|
|
982
|
+
return "STRICT";
|
|
983
|
+
case FeatureSet_VisibilityFeature_DefaultSymbolVisibility.UNRECOGNIZED:
|
|
984
|
+
default:
|
|
985
|
+
return "UNRECOGNIZED";
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
/**
|
|
989
|
+
* Represents the identified object's effect on the element in the original
|
|
990
|
+
* .proto file.
|
|
991
|
+
*/
|
|
992
|
+
export var GeneratedCodeInfo_Annotation_Semantic;
|
|
993
|
+
(function (GeneratedCodeInfo_Annotation_Semantic) {
|
|
994
|
+
/** NONE - There is no effect or the effect is indescribable. */
|
|
995
|
+
GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["NONE"] = 0] = "NONE";
|
|
996
|
+
/** SET - The element is set or otherwise mutated. */
|
|
997
|
+
GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["SET"] = 1] = "SET";
|
|
998
|
+
/** ALIAS - An alias to the element is returned. */
|
|
999
|
+
GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["ALIAS"] = 2] = "ALIAS";
|
|
1000
|
+
GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1001
|
+
})(GeneratedCodeInfo_Annotation_Semantic || (GeneratedCodeInfo_Annotation_Semantic = {}));
|
|
1002
|
+
export const GeneratedCodeInfo_Annotation_SemanticSDKType = GeneratedCodeInfo_Annotation_Semantic;
|
|
1003
|
+
export function generatedCodeInfo_Annotation_SemanticFromJSON(object) {
|
|
1004
|
+
switch (object) {
|
|
1005
|
+
case 0:
|
|
1006
|
+
case "NONE":
|
|
1007
|
+
return GeneratedCodeInfo_Annotation_Semantic.NONE;
|
|
1008
|
+
case 1:
|
|
1009
|
+
case "SET":
|
|
1010
|
+
return GeneratedCodeInfo_Annotation_Semantic.SET;
|
|
1011
|
+
case 2:
|
|
1012
|
+
case "ALIAS":
|
|
1013
|
+
return GeneratedCodeInfo_Annotation_Semantic.ALIAS;
|
|
1014
|
+
case -1:
|
|
1015
|
+
case "UNRECOGNIZED":
|
|
1016
|
+
default:
|
|
1017
|
+
return GeneratedCodeInfo_Annotation_Semantic.UNRECOGNIZED;
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
export function generatedCodeInfo_Annotation_SemanticToJSON(object) {
|
|
1021
|
+
switch (object) {
|
|
1022
|
+
case GeneratedCodeInfo_Annotation_Semantic.NONE:
|
|
1023
|
+
return "NONE";
|
|
1024
|
+
case GeneratedCodeInfo_Annotation_Semantic.SET:
|
|
1025
|
+
return "SET";
|
|
1026
|
+
case GeneratedCodeInfo_Annotation_Semantic.ALIAS:
|
|
1027
|
+
return "ALIAS";
|
|
1028
|
+
case GeneratedCodeInfo_Annotation_Semantic.UNRECOGNIZED:
|
|
1029
|
+
default:
|
|
1030
|
+
return "UNRECOGNIZED";
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
/**
|
|
1034
|
+
* Describes the 'visibility' of a symbol with respect to the proto import
|
|
1035
|
+
* system. Symbols can only be imported when the visibility rules do not prevent
|
|
1036
|
+
* it (ex: local symbols cannot be imported). Visibility modifiers can only set
|
|
1037
|
+
* on `message` and `enum` as they are the only types available to be referenced
|
|
1038
|
+
* from other files.
|
|
1039
|
+
*/
|
|
1040
|
+
export var SymbolVisibility;
|
|
1041
|
+
(function (SymbolVisibility) {
|
|
1042
|
+
SymbolVisibility[SymbolVisibility["VISIBILITY_UNSET"] = 0] = "VISIBILITY_UNSET";
|
|
1043
|
+
SymbolVisibility[SymbolVisibility["VISIBILITY_LOCAL"] = 1] = "VISIBILITY_LOCAL";
|
|
1044
|
+
SymbolVisibility[SymbolVisibility["VISIBILITY_EXPORT"] = 2] = "VISIBILITY_EXPORT";
|
|
1045
|
+
SymbolVisibility[SymbolVisibility["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1046
|
+
})(SymbolVisibility || (SymbolVisibility = {}));
|
|
1047
|
+
export const SymbolVisibilitySDKType = SymbolVisibility;
|
|
1048
|
+
export function symbolVisibilityFromJSON(object) {
|
|
1049
|
+
switch (object) {
|
|
1050
|
+
case 0:
|
|
1051
|
+
case "VISIBILITY_UNSET":
|
|
1052
|
+
return SymbolVisibility.VISIBILITY_UNSET;
|
|
1053
|
+
case 1:
|
|
1054
|
+
case "VISIBILITY_LOCAL":
|
|
1055
|
+
return SymbolVisibility.VISIBILITY_LOCAL;
|
|
1056
|
+
case 2:
|
|
1057
|
+
case "VISIBILITY_EXPORT":
|
|
1058
|
+
return SymbolVisibility.VISIBILITY_EXPORT;
|
|
1059
|
+
case -1:
|
|
1060
|
+
case "UNRECOGNIZED":
|
|
1061
|
+
default:
|
|
1062
|
+
return SymbolVisibility.UNRECOGNIZED;
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
export function symbolVisibilityToJSON(object) {
|
|
1066
|
+
switch (object) {
|
|
1067
|
+
case SymbolVisibility.VISIBILITY_UNSET:
|
|
1068
|
+
return "VISIBILITY_UNSET";
|
|
1069
|
+
case SymbolVisibility.VISIBILITY_LOCAL:
|
|
1070
|
+
return "VISIBILITY_LOCAL";
|
|
1071
|
+
case SymbolVisibility.VISIBILITY_EXPORT:
|
|
1072
|
+
return "VISIBILITY_EXPORT";
|
|
1073
|
+
case SymbolVisibility.UNRECOGNIZED:
|
|
1074
|
+
default:
|
|
1075
|
+
return "UNRECOGNIZED";
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
function createBaseFileDescriptorSet() {
|
|
1079
|
+
return {
|
|
1080
|
+
file: []
|
|
1081
|
+
};
|
|
1082
|
+
}
|
|
1083
|
+
/**
|
|
1084
|
+
* The protocol compiler can output a FileDescriptorSet containing the .proto
|
|
1085
|
+
* files it parses.
|
|
1086
|
+
* @name FileDescriptorSet
|
|
1087
|
+
* @package google.protobuf
|
|
1088
|
+
* @see proto type: google.protobuf.FileDescriptorSet
|
|
1089
|
+
*/
|
|
1090
|
+
export const FileDescriptorSet = {
|
|
1091
|
+
typeUrl: "/google.protobuf.FileDescriptorSet",
|
|
1092
|
+
is(o) {
|
|
1093
|
+
return o && (o.$typeUrl === FileDescriptorSet.typeUrl || Array.isArray(o.file) && (!o.file.length || FileDescriptorProto.is(o.file[0])));
|
|
1094
|
+
},
|
|
1095
|
+
isSDK(o) {
|
|
1096
|
+
return o && (o.$typeUrl === FileDescriptorSet.typeUrl || Array.isArray(o.file) && (!o.file.length || FileDescriptorProto.isSDK(o.file[0])));
|
|
1097
|
+
},
|
|
1098
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1099
|
+
for (const v of message.file) {
|
|
1100
|
+
FileDescriptorProto.encode(v, writer.uint32(10).fork()).ldelim();
|
|
1101
|
+
}
|
|
1102
|
+
return writer;
|
|
1103
|
+
},
|
|
1104
|
+
decode(input, length) {
|
|
1105
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1106
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1107
|
+
const message = createBaseFileDescriptorSet();
|
|
1108
|
+
while (reader.pos < end) {
|
|
1109
|
+
const tag = reader.uint32();
|
|
1110
|
+
switch (tag >>> 3) {
|
|
1111
|
+
case 1:
|
|
1112
|
+
message.file.push(FileDescriptorProto.decode(reader, reader.uint32()));
|
|
1113
|
+
break;
|
|
1114
|
+
default:
|
|
1115
|
+
reader.skipType(tag & 7);
|
|
1116
|
+
break;
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
return message;
|
|
1120
|
+
},
|
|
1121
|
+
fromPartial(object) {
|
|
1122
|
+
const message = createBaseFileDescriptorSet();
|
|
1123
|
+
message.file = object.file?.map(e => FileDescriptorProto.fromPartial(e)) || [];
|
|
1124
|
+
return message;
|
|
1125
|
+
},
|
|
1126
|
+
fromProtoMsg(message) {
|
|
1127
|
+
return FileDescriptorSet.decode(message.value);
|
|
1128
|
+
},
|
|
1129
|
+
toProto(message) {
|
|
1130
|
+
return FileDescriptorSet.encode(message).finish();
|
|
1131
|
+
},
|
|
1132
|
+
toProtoMsg(message) {
|
|
1133
|
+
return {
|
|
1134
|
+
typeUrl: "/google.protobuf.FileDescriptorSet",
|
|
1135
|
+
value: FileDescriptorSet.encode(message).finish()
|
|
1136
|
+
};
|
|
1137
|
+
},
|
|
1138
|
+
registerTypeUrl() {
|
|
1139
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(FileDescriptorSet.typeUrl)) {
|
|
1140
|
+
return;
|
|
1141
|
+
}
|
|
1142
|
+
FileDescriptorProto.registerTypeUrl();
|
|
1143
|
+
}
|
|
1144
|
+
};
|
|
1145
|
+
GlobalDecoderRegistry.register(FileDescriptorSet.typeUrl, FileDescriptorSet);
|
|
1146
|
+
function createBaseFileDescriptorProto() {
|
|
1147
|
+
return {
|
|
1148
|
+
name: "",
|
|
1149
|
+
package: "",
|
|
1150
|
+
dependency: [],
|
|
1151
|
+
publicDependency: [],
|
|
1152
|
+
weakDependency: [],
|
|
1153
|
+
optionDependency: [],
|
|
1154
|
+
messageType: [],
|
|
1155
|
+
enumType: [],
|
|
1156
|
+
service: [],
|
|
1157
|
+
extension: [],
|
|
1158
|
+
options: undefined,
|
|
1159
|
+
sourceCodeInfo: undefined,
|
|
1160
|
+
syntax: "",
|
|
1161
|
+
edition: 1
|
|
1162
|
+
};
|
|
1163
|
+
}
|
|
1164
|
+
/**
|
|
1165
|
+
* Describes a complete .proto file.
|
|
1166
|
+
* @name FileDescriptorProto
|
|
1167
|
+
* @package google.protobuf
|
|
1168
|
+
* @see proto type: google.protobuf.FileDescriptorProto
|
|
1169
|
+
*/
|
|
1170
|
+
export const FileDescriptorProto = {
|
|
1171
|
+
typeUrl: "/google.protobuf.FileDescriptorProto",
|
|
1172
|
+
is(o) {
|
|
1173
|
+
return o && (o.$typeUrl === FileDescriptorProto.typeUrl || typeof o.name === "string" && typeof o.package === "string" && Array.isArray(o.dependency) && (!o.dependency.length || typeof o.dependency[0] === "string") && Array.isArray(o.publicDependency) && (!o.publicDependency.length || typeof o.publicDependency[0] === "number") && Array.isArray(o.weakDependency) && (!o.weakDependency.length || typeof o.weakDependency[0] === "number") && Array.isArray(o.optionDependency) && (!o.optionDependency.length || typeof o.optionDependency[0] === "string") && Array.isArray(o.messageType) && (!o.messageType.length || DescriptorProto.is(o.messageType[0])) && Array.isArray(o.enumType) && (!o.enumType.length || EnumDescriptorProto.is(o.enumType[0])) && Array.isArray(o.service) && (!o.service.length || ServiceDescriptorProto.is(o.service[0])) && Array.isArray(o.extension) && (!o.extension.length || FieldDescriptorProto.is(o.extension[0])) && typeof o.syntax === "string" && isSet(o.edition));
|
|
1174
|
+
},
|
|
1175
|
+
isSDK(o) {
|
|
1176
|
+
return o && (o.$typeUrl === FileDescriptorProto.typeUrl || typeof o.name === "string" && typeof o.package === "string" && Array.isArray(o.dependency) && (!o.dependency.length || typeof o.dependency[0] === "string") && Array.isArray(o.public_dependency) && (!o.public_dependency.length || typeof o.public_dependency[0] === "number") && Array.isArray(o.weak_dependency) && (!o.weak_dependency.length || typeof o.weak_dependency[0] === "number") && Array.isArray(o.option_dependency) && (!o.option_dependency.length || typeof o.option_dependency[0] === "string") && Array.isArray(o.message_type) && (!o.message_type.length || DescriptorProto.isSDK(o.message_type[0])) && Array.isArray(o.enum_type) && (!o.enum_type.length || EnumDescriptorProto.isSDK(o.enum_type[0])) && Array.isArray(o.service) && (!o.service.length || ServiceDescriptorProto.isSDK(o.service[0])) && Array.isArray(o.extension) && (!o.extension.length || FieldDescriptorProto.isSDK(o.extension[0])) && typeof o.syntax === "string" && isSet(o.edition));
|
|
1177
|
+
},
|
|
1178
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1179
|
+
if (message.name !== "") {
|
|
1180
|
+
writer.uint32(10).string(message.name);
|
|
1181
|
+
}
|
|
1182
|
+
if (message.package !== "") {
|
|
1183
|
+
writer.uint32(18).string(message.package);
|
|
1184
|
+
}
|
|
1185
|
+
for (const v of message.dependency) {
|
|
1186
|
+
writer.uint32(26).string(v);
|
|
1187
|
+
}
|
|
1188
|
+
writer.uint32(82).fork();
|
|
1189
|
+
for (const v of message.publicDependency) {
|
|
1190
|
+
writer.int32(v);
|
|
1191
|
+
}
|
|
1192
|
+
writer.ldelim();
|
|
1193
|
+
writer.uint32(90).fork();
|
|
1194
|
+
for (const v of message.weakDependency) {
|
|
1195
|
+
writer.int32(v);
|
|
1196
|
+
}
|
|
1197
|
+
writer.ldelim();
|
|
1198
|
+
for (const v of message.optionDependency) {
|
|
1199
|
+
writer.uint32(122).string(v);
|
|
1200
|
+
}
|
|
1201
|
+
for (const v of message.messageType) {
|
|
1202
|
+
DescriptorProto.encode(v, writer.uint32(34).fork()).ldelim();
|
|
1203
|
+
}
|
|
1204
|
+
for (const v of message.enumType) {
|
|
1205
|
+
EnumDescriptorProto.encode(v, writer.uint32(42).fork()).ldelim();
|
|
1206
|
+
}
|
|
1207
|
+
for (const v of message.service) {
|
|
1208
|
+
ServiceDescriptorProto.encode(v, writer.uint32(50).fork()).ldelim();
|
|
1209
|
+
}
|
|
1210
|
+
for (const v of message.extension) {
|
|
1211
|
+
FieldDescriptorProto.encode(v, writer.uint32(58).fork()).ldelim();
|
|
1212
|
+
}
|
|
1213
|
+
if (message.options !== undefined) {
|
|
1214
|
+
FileOptions.encode(message.options, writer.uint32(66).fork()).ldelim();
|
|
1215
|
+
}
|
|
1216
|
+
if (message.sourceCodeInfo !== undefined) {
|
|
1217
|
+
SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(74).fork()).ldelim();
|
|
1218
|
+
}
|
|
1219
|
+
if (message.syntax !== "") {
|
|
1220
|
+
writer.uint32(98).string(message.syntax);
|
|
1221
|
+
}
|
|
1222
|
+
if (message.edition !== 1) {
|
|
1223
|
+
writer.uint32(112).int32(message.edition);
|
|
1224
|
+
}
|
|
1225
|
+
return writer;
|
|
1226
|
+
},
|
|
1227
|
+
decode(input, length) {
|
|
1228
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1229
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1230
|
+
const message = createBaseFileDescriptorProto();
|
|
1231
|
+
while (reader.pos < end) {
|
|
1232
|
+
const tag = reader.uint32();
|
|
1233
|
+
switch (tag >>> 3) {
|
|
1234
|
+
case 1:
|
|
1235
|
+
message.name = reader.string();
|
|
1236
|
+
break;
|
|
1237
|
+
case 2:
|
|
1238
|
+
message.package = reader.string();
|
|
1239
|
+
break;
|
|
1240
|
+
case 3:
|
|
1241
|
+
message.dependency.push(reader.string());
|
|
1242
|
+
break;
|
|
1243
|
+
case 10:
|
|
1244
|
+
if ((tag & 7) === 2) {
|
|
1245
|
+
const end2 = reader.uint32() + reader.pos;
|
|
1246
|
+
while (reader.pos < end2) {
|
|
1247
|
+
message.publicDependency.push(reader.int32());
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
else {
|
|
1251
|
+
message.publicDependency.push(reader.int32());
|
|
1252
|
+
}
|
|
1253
|
+
break;
|
|
1254
|
+
case 11:
|
|
1255
|
+
if ((tag & 7) === 2) {
|
|
1256
|
+
const end2 = reader.uint32() + reader.pos;
|
|
1257
|
+
while (reader.pos < end2) {
|
|
1258
|
+
message.weakDependency.push(reader.int32());
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
else {
|
|
1262
|
+
message.weakDependency.push(reader.int32());
|
|
1263
|
+
}
|
|
1264
|
+
break;
|
|
1265
|
+
case 15:
|
|
1266
|
+
message.optionDependency.push(reader.string());
|
|
1267
|
+
break;
|
|
1268
|
+
case 4:
|
|
1269
|
+
message.messageType.push(DescriptorProto.decode(reader, reader.uint32()));
|
|
1270
|
+
break;
|
|
1271
|
+
case 5:
|
|
1272
|
+
message.enumType.push(EnumDescriptorProto.decode(reader, reader.uint32()));
|
|
1273
|
+
break;
|
|
1274
|
+
case 6:
|
|
1275
|
+
message.service.push(ServiceDescriptorProto.decode(reader, reader.uint32()));
|
|
1276
|
+
break;
|
|
1277
|
+
case 7:
|
|
1278
|
+
message.extension.push(FieldDescriptorProto.decode(reader, reader.uint32()));
|
|
1279
|
+
break;
|
|
1280
|
+
case 8:
|
|
1281
|
+
message.options = FileOptions.decode(reader, reader.uint32());
|
|
1282
|
+
break;
|
|
1283
|
+
case 9:
|
|
1284
|
+
message.sourceCodeInfo = SourceCodeInfo.decode(reader, reader.uint32());
|
|
1285
|
+
break;
|
|
1286
|
+
case 12:
|
|
1287
|
+
message.syntax = reader.string();
|
|
1288
|
+
break;
|
|
1289
|
+
case 14:
|
|
1290
|
+
message.edition = reader.int32();
|
|
1291
|
+
break;
|
|
1292
|
+
default:
|
|
1293
|
+
reader.skipType(tag & 7);
|
|
1294
|
+
break;
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
return message;
|
|
1298
|
+
},
|
|
1299
|
+
fromPartial(object) {
|
|
1300
|
+
const message = createBaseFileDescriptorProto();
|
|
1301
|
+
message.name = object.name ?? "";
|
|
1302
|
+
message.package = object.package ?? "";
|
|
1303
|
+
message.dependency = object.dependency?.map(e => e) || [];
|
|
1304
|
+
message.publicDependency = object.publicDependency?.map(e => e) || [];
|
|
1305
|
+
message.weakDependency = object.weakDependency?.map(e => e) || [];
|
|
1306
|
+
message.optionDependency = object.optionDependency?.map(e => e) || [];
|
|
1307
|
+
message.messageType = object.messageType?.map(e => DescriptorProto.fromPartial(e)) || [];
|
|
1308
|
+
message.enumType = object.enumType?.map(e => EnumDescriptorProto.fromPartial(e)) || [];
|
|
1309
|
+
message.service = object.service?.map(e => ServiceDescriptorProto.fromPartial(e)) || [];
|
|
1310
|
+
message.extension = object.extension?.map(e => FieldDescriptorProto.fromPartial(e)) || [];
|
|
1311
|
+
message.options = object.options !== undefined && object.options !== null ? FileOptions.fromPartial(object.options) : undefined;
|
|
1312
|
+
message.sourceCodeInfo = object.sourceCodeInfo !== undefined && object.sourceCodeInfo !== null ? SourceCodeInfo.fromPartial(object.sourceCodeInfo) : undefined;
|
|
1313
|
+
message.syntax = object.syntax ?? "";
|
|
1314
|
+
message.edition = object.edition ?? 1;
|
|
1315
|
+
return message;
|
|
1316
|
+
},
|
|
1317
|
+
fromProtoMsg(message) {
|
|
1318
|
+
return FileDescriptorProto.decode(message.value);
|
|
1319
|
+
},
|
|
1320
|
+
toProto(message) {
|
|
1321
|
+
return FileDescriptorProto.encode(message).finish();
|
|
1322
|
+
},
|
|
1323
|
+
toProtoMsg(message) {
|
|
1324
|
+
return {
|
|
1325
|
+
typeUrl: "/google.protobuf.FileDescriptorProto",
|
|
1326
|
+
value: FileDescriptorProto.encode(message).finish()
|
|
1327
|
+
};
|
|
1328
|
+
},
|
|
1329
|
+
registerTypeUrl() {
|
|
1330
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(FileDescriptorProto.typeUrl)) {
|
|
1331
|
+
return;
|
|
1332
|
+
}
|
|
1333
|
+
DescriptorProto.registerTypeUrl();
|
|
1334
|
+
EnumDescriptorProto.registerTypeUrl();
|
|
1335
|
+
ServiceDescriptorProto.registerTypeUrl();
|
|
1336
|
+
FieldDescriptorProto.registerTypeUrl();
|
|
1337
|
+
FileOptions.registerTypeUrl();
|
|
1338
|
+
SourceCodeInfo.registerTypeUrl();
|
|
1339
|
+
}
|
|
1340
|
+
};
|
|
1341
|
+
GlobalDecoderRegistry.register(FileDescriptorProto.typeUrl, FileDescriptorProto);
|
|
1342
|
+
function createBaseDescriptorProto() {
|
|
1343
|
+
return {
|
|
1344
|
+
name: "",
|
|
1345
|
+
field: [],
|
|
1346
|
+
extension: [],
|
|
1347
|
+
nestedType: [],
|
|
1348
|
+
enumType: [],
|
|
1349
|
+
extensionRange: [],
|
|
1350
|
+
oneofDecl: [],
|
|
1351
|
+
options: undefined,
|
|
1352
|
+
reservedRange: [],
|
|
1353
|
+
reservedName: [],
|
|
1354
|
+
visibility: 1
|
|
1355
|
+
};
|
|
1356
|
+
}
|
|
1357
|
+
/**
|
|
1358
|
+
* Describes a message type.
|
|
1359
|
+
* @name DescriptorProto
|
|
1360
|
+
* @package google.protobuf
|
|
1361
|
+
* @see proto type: google.protobuf.DescriptorProto
|
|
1362
|
+
*/
|
|
1363
|
+
export const DescriptorProto = {
|
|
1364
|
+
typeUrl: "/google.protobuf.DescriptorProto",
|
|
1365
|
+
is(o) {
|
|
1366
|
+
return o && (o.$typeUrl === DescriptorProto.typeUrl || typeof o.name === "string" && Array.isArray(o.field) && (!o.field.length || FieldDescriptorProto.is(o.field[0])) && Array.isArray(o.extension) && (!o.extension.length || FieldDescriptorProto.is(o.extension[0])) && Array.isArray(o.nestedType) && (!o.nestedType.length || DescriptorProto.is(o.nestedType[0])) && Array.isArray(o.enumType) && (!o.enumType.length || EnumDescriptorProto.is(o.enumType[0])) && Array.isArray(o.extensionRange) && (!o.extensionRange.length || DescriptorProto_ExtensionRange.is(o.extensionRange[0])) && Array.isArray(o.oneofDecl) && (!o.oneofDecl.length || OneofDescriptorProto.is(o.oneofDecl[0])) && Array.isArray(o.reservedRange) && (!o.reservedRange.length || DescriptorProto_ReservedRange.is(o.reservedRange[0])) && Array.isArray(o.reservedName) && (!o.reservedName.length || typeof o.reservedName[0] === "string") && isSet(o.visibility));
|
|
1367
|
+
},
|
|
1368
|
+
isSDK(o) {
|
|
1369
|
+
return o && (o.$typeUrl === DescriptorProto.typeUrl || typeof o.name === "string" && Array.isArray(o.field) && (!o.field.length || FieldDescriptorProto.isSDK(o.field[0])) && Array.isArray(o.extension) && (!o.extension.length || FieldDescriptorProto.isSDK(o.extension[0])) && Array.isArray(o.nested_type) && (!o.nested_type.length || DescriptorProto.isSDK(o.nested_type[0])) && Array.isArray(o.enum_type) && (!o.enum_type.length || EnumDescriptorProto.isSDK(o.enum_type[0])) && Array.isArray(o.extension_range) && (!o.extension_range.length || DescriptorProto_ExtensionRange.isSDK(o.extension_range[0])) && Array.isArray(o.oneof_decl) && (!o.oneof_decl.length || OneofDescriptorProto.isSDK(o.oneof_decl[0])) && Array.isArray(o.reserved_range) && (!o.reserved_range.length || DescriptorProto_ReservedRange.isSDK(o.reserved_range[0])) && Array.isArray(o.reserved_name) && (!o.reserved_name.length || typeof o.reserved_name[0] === "string") && isSet(o.visibility));
|
|
1370
|
+
},
|
|
1371
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1372
|
+
if (message.name !== "") {
|
|
1373
|
+
writer.uint32(10).string(message.name);
|
|
1374
|
+
}
|
|
1375
|
+
for (const v of message.field) {
|
|
1376
|
+
FieldDescriptorProto.encode(v, writer.uint32(18).fork()).ldelim();
|
|
1377
|
+
}
|
|
1378
|
+
for (const v of message.extension) {
|
|
1379
|
+
FieldDescriptorProto.encode(v, writer.uint32(50).fork()).ldelim();
|
|
1380
|
+
}
|
|
1381
|
+
for (const v of message.nestedType) {
|
|
1382
|
+
DescriptorProto.encode(v, writer.uint32(26).fork()).ldelim();
|
|
1383
|
+
}
|
|
1384
|
+
for (const v of message.enumType) {
|
|
1385
|
+
EnumDescriptorProto.encode(v, writer.uint32(34).fork()).ldelim();
|
|
1386
|
+
}
|
|
1387
|
+
for (const v of message.extensionRange) {
|
|
1388
|
+
DescriptorProto_ExtensionRange.encode(v, writer.uint32(42).fork()).ldelim();
|
|
1389
|
+
}
|
|
1390
|
+
for (const v of message.oneofDecl) {
|
|
1391
|
+
OneofDescriptorProto.encode(v, writer.uint32(66).fork()).ldelim();
|
|
1392
|
+
}
|
|
1393
|
+
if (message.options !== undefined) {
|
|
1394
|
+
MessageOptions.encode(message.options, writer.uint32(58).fork()).ldelim();
|
|
1395
|
+
}
|
|
1396
|
+
for (const v of message.reservedRange) {
|
|
1397
|
+
DescriptorProto_ReservedRange.encode(v, writer.uint32(74).fork()).ldelim();
|
|
1398
|
+
}
|
|
1399
|
+
for (const v of message.reservedName) {
|
|
1400
|
+
writer.uint32(82).string(v);
|
|
1401
|
+
}
|
|
1402
|
+
if (message.visibility !== 1) {
|
|
1403
|
+
writer.uint32(88).int32(message.visibility);
|
|
1404
|
+
}
|
|
1405
|
+
return writer;
|
|
1406
|
+
},
|
|
1407
|
+
decode(input, length) {
|
|
1408
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1409
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1410
|
+
const message = createBaseDescriptorProto();
|
|
1411
|
+
while (reader.pos < end) {
|
|
1412
|
+
const tag = reader.uint32();
|
|
1413
|
+
switch (tag >>> 3) {
|
|
1414
|
+
case 1:
|
|
1415
|
+
message.name = reader.string();
|
|
1416
|
+
break;
|
|
1417
|
+
case 2:
|
|
1418
|
+
message.field.push(FieldDescriptorProto.decode(reader, reader.uint32()));
|
|
1419
|
+
break;
|
|
1420
|
+
case 6:
|
|
1421
|
+
message.extension.push(FieldDescriptorProto.decode(reader, reader.uint32()));
|
|
1422
|
+
break;
|
|
1423
|
+
case 3:
|
|
1424
|
+
message.nestedType.push(DescriptorProto.decode(reader, reader.uint32()));
|
|
1425
|
+
break;
|
|
1426
|
+
case 4:
|
|
1427
|
+
message.enumType.push(EnumDescriptorProto.decode(reader, reader.uint32()));
|
|
1428
|
+
break;
|
|
1429
|
+
case 5:
|
|
1430
|
+
message.extensionRange.push(DescriptorProto_ExtensionRange.decode(reader, reader.uint32()));
|
|
1431
|
+
break;
|
|
1432
|
+
case 8:
|
|
1433
|
+
message.oneofDecl.push(OneofDescriptorProto.decode(reader, reader.uint32()));
|
|
1434
|
+
break;
|
|
1435
|
+
case 7:
|
|
1436
|
+
message.options = MessageOptions.decode(reader, reader.uint32());
|
|
1437
|
+
break;
|
|
1438
|
+
case 9:
|
|
1439
|
+
message.reservedRange.push(DescriptorProto_ReservedRange.decode(reader, reader.uint32()));
|
|
1440
|
+
break;
|
|
1441
|
+
case 10:
|
|
1442
|
+
message.reservedName.push(reader.string());
|
|
1443
|
+
break;
|
|
1444
|
+
case 11:
|
|
1445
|
+
message.visibility = reader.int32();
|
|
1446
|
+
break;
|
|
1447
|
+
default:
|
|
1448
|
+
reader.skipType(tag & 7);
|
|
1449
|
+
break;
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
return message;
|
|
1453
|
+
},
|
|
1454
|
+
fromPartial(object) {
|
|
1455
|
+
const message = createBaseDescriptorProto();
|
|
1456
|
+
message.name = object.name ?? "";
|
|
1457
|
+
message.field = object.field?.map(e => FieldDescriptorProto.fromPartial(e)) || [];
|
|
1458
|
+
message.extension = object.extension?.map(e => FieldDescriptorProto.fromPartial(e)) || [];
|
|
1459
|
+
message.nestedType = object.nestedType?.map(e => DescriptorProto.fromPartial(e)) || [];
|
|
1460
|
+
message.enumType = object.enumType?.map(e => EnumDescriptorProto.fromPartial(e)) || [];
|
|
1461
|
+
message.extensionRange = object.extensionRange?.map(e => DescriptorProto_ExtensionRange.fromPartial(e)) || [];
|
|
1462
|
+
message.oneofDecl = object.oneofDecl?.map(e => OneofDescriptorProto.fromPartial(e)) || [];
|
|
1463
|
+
message.options = object.options !== undefined && object.options !== null ? MessageOptions.fromPartial(object.options) : undefined;
|
|
1464
|
+
message.reservedRange = object.reservedRange?.map(e => DescriptorProto_ReservedRange.fromPartial(e)) || [];
|
|
1465
|
+
message.reservedName = object.reservedName?.map(e => e) || [];
|
|
1466
|
+
message.visibility = object.visibility ?? 1;
|
|
1467
|
+
return message;
|
|
1468
|
+
},
|
|
1469
|
+
fromProtoMsg(message) {
|
|
1470
|
+
return DescriptorProto.decode(message.value);
|
|
1471
|
+
},
|
|
1472
|
+
toProto(message) {
|
|
1473
|
+
return DescriptorProto.encode(message).finish();
|
|
1474
|
+
},
|
|
1475
|
+
toProtoMsg(message) {
|
|
1476
|
+
return {
|
|
1477
|
+
typeUrl: "/google.protobuf.DescriptorProto",
|
|
1478
|
+
value: DescriptorProto.encode(message).finish()
|
|
1479
|
+
};
|
|
1480
|
+
},
|
|
1481
|
+
registerTypeUrl() {
|
|
1482
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(DescriptorProto.typeUrl)) {
|
|
1483
|
+
return;
|
|
1484
|
+
}
|
|
1485
|
+
FieldDescriptorProto.registerTypeUrl();
|
|
1486
|
+
DescriptorProto.registerTypeUrl();
|
|
1487
|
+
EnumDescriptorProto.registerTypeUrl();
|
|
1488
|
+
DescriptorProto_ExtensionRange.registerTypeUrl();
|
|
1489
|
+
OneofDescriptorProto.registerTypeUrl();
|
|
1490
|
+
MessageOptions.registerTypeUrl();
|
|
1491
|
+
DescriptorProto_ReservedRange.registerTypeUrl();
|
|
1492
|
+
}
|
|
1493
|
+
};
|
|
1494
|
+
GlobalDecoderRegistry.register(DescriptorProto.typeUrl, DescriptorProto);
|
|
1495
|
+
function createBaseDescriptorProto_ExtensionRange() {
|
|
1496
|
+
return {
|
|
1497
|
+
start: 0,
|
|
1498
|
+
end: 0,
|
|
1499
|
+
options: undefined
|
|
1500
|
+
};
|
|
1501
|
+
}
|
|
1502
|
+
/**
|
|
1503
|
+
* @name DescriptorProto_ExtensionRange
|
|
1504
|
+
* @package google.protobuf
|
|
1505
|
+
* @see proto type: google.protobuf.ExtensionRange
|
|
1506
|
+
*/
|
|
1507
|
+
export const DescriptorProto_ExtensionRange = {
|
|
1508
|
+
typeUrl: "/google.protobuf.ExtensionRange",
|
|
1509
|
+
is(o) {
|
|
1510
|
+
return o && (o.$typeUrl === DescriptorProto_ExtensionRange.typeUrl || typeof o.start === "number" && typeof o.end === "number");
|
|
1511
|
+
},
|
|
1512
|
+
isSDK(o) {
|
|
1513
|
+
return o && (o.$typeUrl === DescriptorProto_ExtensionRange.typeUrl || typeof o.start === "number" && typeof o.end === "number");
|
|
1514
|
+
},
|
|
1515
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1516
|
+
if (message.start !== 0) {
|
|
1517
|
+
writer.uint32(8).int32(message.start);
|
|
1518
|
+
}
|
|
1519
|
+
if (message.end !== 0) {
|
|
1520
|
+
writer.uint32(16).int32(message.end);
|
|
1521
|
+
}
|
|
1522
|
+
if (message.options !== undefined) {
|
|
1523
|
+
ExtensionRangeOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
|
|
1524
|
+
}
|
|
1525
|
+
return writer;
|
|
1526
|
+
},
|
|
1527
|
+
decode(input, length) {
|
|
1528
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1529
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1530
|
+
const message = createBaseDescriptorProto_ExtensionRange();
|
|
1531
|
+
while (reader.pos < end) {
|
|
1532
|
+
const tag = reader.uint32();
|
|
1533
|
+
switch (tag >>> 3) {
|
|
1534
|
+
case 1:
|
|
1535
|
+
message.start = reader.int32();
|
|
1536
|
+
break;
|
|
1537
|
+
case 2:
|
|
1538
|
+
message.end = reader.int32();
|
|
1539
|
+
break;
|
|
1540
|
+
case 3:
|
|
1541
|
+
message.options = ExtensionRangeOptions.decode(reader, reader.uint32());
|
|
1542
|
+
break;
|
|
1543
|
+
default:
|
|
1544
|
+
reader.skipType(tag & 7);
|
|
1545
|
+
break;
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
return message;
|
|
1549
|
+
},
|
|
1550
|
+
fromPartial(object) {
|
|
1551
|
+
const message = createBaseDescriptorProto_ExtensionRange();
|
|
1552
|
+
message.start = object.start ?? 0;
|
|
1553
|
+
message.end = object.end ?? 0;
|
|
1554
|
+
message.options = object.options !== undefined && object.options !== null ? ExtensionRangeOptions.fromPartial(object.options) : undefined;
|
|
1555
|
+
return message;
|
|
1556
|
+
},
|
|
1557
|
+
fromProtoMsg(message) {
|
|
1558
|
+
return DescriptorProto_ExtensionRange.decode(message.value);
|
|
1559
|
+
},
|
|
1560
|
+
toProto(message) {
|
|
1561
|
+
return DescriptorProto_ExtensionRange.encode(message).finish();
|
|
1562
|
+
},
|
|
1563
|
+
toProtoMsg(message) {
|
|
1564
|
+
return {
|
|
1565
|
+
typeUrl: "/google.protobuf.ExtensionRange",
|
|
1566
|
+
value: DescriptorProto_ExtensionRange.encode(message).finish()
|
|
1567
|
+
};
|
|
1568
|
+
},
|
|
1569
|
+
registerTypeUrl() {
|
|
1570
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(DescriptorProto_ExtensionRange.typeUrl)) {
|
|
1571
|
+
return;
|
|
1572
|
+
}
|
|
1573
|
+
ExtensionRangeOptions.registerTypeUrl();
|
|
1574
|
+
}
|
|
1575
|
+
};
|
|
1576
|
+
GlobalDecoderRegistry.register(DescriptorProto_ExtensionRange.typeUrl, DescriptorProto_ExtensionRange);
|
|
1577
|
+
function createBaseDescriptorProto_ReservedRange() {
|
|
1578
|
+
return {
|
|
1579
|
+
start: 0,
|
|
1580
|
+
end: 0
|
|
1581
|
+
};
|
|
1582
|
+
}
|
|
1583
|
+
/**
|
|
1584
|
+
* Range of reserved tag numbers. Reserved tag numbers may not be used by
|
|
1585
|
+
* fields or extension ranges in the same message. Reserved ranges may
|
|
1586
|
+
* not overlap.
|
|
1587
|
+
* @name DescriptorProto_ReservedRange
|
|
1588
|
+
* @package google.protobuf
|
|
1589
|
+
* @see proto type: google.protobuf.ReservedRange
|
|
1590
|
+
*/
|
|
1591
|
+
export const DescriptorProto_ReservedRange = {
|
|
1592
|
+
typeUrl: "/google.protobuf.ReservedRange",
|
|
1593
|
+
is(o) {
|
|
1594
|
+
return o && (o.$typeUrl === DescriptorProto_ReservedRange.typeUrl || typeof o.start === "number" && typeof o.end === "number");
|
|
1595
|
+
},
|
|
1596
|
+
isSDK(o) {
|
|
1597
|
+
return o && (o.$typeUrl === DescriptorProto_ReservedRange.typeUrl || typeof o.start === "number" && typeof o.end === "number");
|
|
1598
|
+
},
|
|
1599
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1600
|
+
if (message.start !== 0) {
|
|
1601
|
+
writer.uint32(8).int32(message.start);
|
|
1602
|
+
}
|
|
1603
|
+
if (message.end !== 0) {
|
|
1604
|
+
writer.uint32(16).int32(message.end);
|
|
1605
|
+
}
|
|
1606
|
+
return writer;
|
|
1607
|
+
},
|
|
1608
|
+
decode(input, length) {
|
|
1609
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1610
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1611
|
+
const message = createBaseDescriptorProto_ReservedRange();
|
|
1612
|
+
while (reader.pos < end) {
|
|
1613
|
+
const tag = reader.uint32();
|
|
1614
|
+
switch (tag >>> 3) {
|
|
1615
|
+
case 1:
|
|
1616
|
+
message.start = reader.int32();
|
|
1617
|
+
break;
|
|
1618
|
+
case 2:
|
|
1619
|
+
message.end = reader.int32();
|
|
1620
|
+
break;
|
|
1621
|
+
default:
|
|
1622
|
+
reader.skipType(tag & 7);
|
|
1623
|
+
break;
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
return message;
|
|
1627
|
+
},
|
|
1628
|
+
fromPartial(object) {
|
|
1629
|
+
const message = createBaseDescriptorProto_ReservedRange();
|
|
1630
|
+
message.start = object.start ?? 0;
|
|
1631
|
+
message.end = object.end ?? 0;
|
|
1632
|
+
return message;
|
|
1633
|
+
},
|
|
1634
|
+
fromProtoMsg(message) {
|
|
1635
|
+
return DescriptorProto_ReservedRange.decode(message.value);
|
|
1636
|
+
},
|
|
1637
|
+
toProto(message) {
|
|
1638
|
+
return DescriptorProto_ReservedRange.encode(message).finish();
|
|
1639
|
+
},
|
|
1640
|
+
toProtoMsg(message) {
|
|
1641
|
+
return {
|
|
1642
|
+
typeUrl: "/google.protobuf.ReservedRange",
|
|
1643
|
+
value: DescriptorProto_ReservedRange.encode(message).finish()
|
|
1644
|
+
};
|
|
1645
|
+
},
|
|
1646
|
+
registerTypeUrl() { }
|
|
1647
|
+
};
|
|
1648
|
+
GlobalDecoderRegistry.register(DescriptorProto_ReservedRange.typeUrl, DescriptorProto_ReservedRange);
|
|
1649
|
+
function createBaseExtensionRangeOptions() {
|
|
1650
|
+
return {
|
|
1651
|
+
uninterpretedOption: [],
|
|
1652
|
+
declaration: [],
|
|
1653
|
+
features: undefined,
|
|
1654
|
+
verification: 1
|
|
1655
|
+
};
|
|
1656
|
+
}
|
|
1657
|
+
/**
|
|
1658
|
+
* @name ExtensionRangeOptions
|
|
1659
|
+
* @package google.protobuf
|
|
1660
|
+
* @see proto type: google.protobuf.ExtensionRangeOptions
|
|
1661
|
+
*/
|
|
1662
|
+
export const ExtensionRangeOptions = {
|
|
1663
|
+
typeUrl: "/google.protobuf.ExtensionRangeOptions",
|
|
1664
|
+
is(o) {
|
|
1665
|
+
return o && (o.$typeUrl === ExtensionRangeOptions.typeUrl || Array.isArray(o.uninterpretedOption) && (!o.uninterpretedOption.length || UninterpretedOption.is(o.uninterpretedOption[0])) && Array.isArray(o.declaration) && (!o.declaration.length || ExtensionRangeOptions_Declaration.is(o.declaration[0])) && isSet(o.verification));
|
|
1666
|
+
},
|
|
1667
|
+
isSDK(o) {
|
|
1668
|
+
return o && (o.$typeUrl === ExtensionRangeOptions.typeUrl || Array.isArray(o.uninterpreted_option) && (!o.uninterpreted_option.length || UninterpretedOption.isSDK(o.uninterpreted_option[0])) && Array.isArray(o.declaration) && (!o.declaration.length || ExtensionRangeOptions_Declaration.isSDK(o.declaration[0])) && isSet(o.verification));
|
|
1669
|
+
},
|
|
1670
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1671
|
+
for (const v of message.uninterpretedOption) {
|
|
1672
|
+
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
1673
|
+
}
|
|
1674
|
+
for (const v of message.declaration) {
|
|
1675
|
+
ExtensionRangeOptions_Declaration.encode(v, writer.uint32(18).fork()).ldelim();
|
|
1676
|
+
}
|
|
1677
|
+
if (message.features !== undefined) {
|
|
1678
|
+
FeatureSet.encode(message.features, writer.uint32(402).fork()).ldelim();
|
|
1679
|
+
}
|
|
1680
|
+
if (message.verification !== 1) {
|
|
1681
|
+
writer.uint32(24).int32(message.verification);
|
|
1682
|
+
}
|
|
1683
|
+
return writer;
|
|
1684
|
+
},
|
|
1685
|
+
decode(input, length) {
|
|
1686
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1687
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1688
|
+
const message = createBaseExtensionRangeOptions();
|
|
1689
|
+
while (reader.pos < end) {
|
|
1690
|
+
const tag = reader.uint32();
|
|
1691
|
+
switch (tag >>> 3) {
|
|
1692
|
+
case 999:
|
|
1693
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
|
1694
|
+
break;
|
|
1695
|
+
case 2:
|
|
1696
|
+
message.declaration.push(ExtensionRangeOptions_Declaration.decode(reader, reader.uint32()));
|
|
1697
|
+
break;
|
|
1698
|
+
case 50:
|
|
1699
|
+
message.features = FeatureSet.decode(reader, reader.uint32());
|
|
1700
|
+
break;
|
|
1701
|
+
case 3:
|
|
1702
|
+
message.verification = reader.int32();
|
|
1703
|
+
break;
|
|
1704
|
+
default:
|
|
1705
|
+
reader.skipType(tag & 7);
|
|
1706
|
+
break;
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
return message;
|
|
1710
|
+
},
|
|
1711
|
+
fromPartial(object) {
|
|
1712
|
+
const message = createBaseExtensionRangeOptions();
|
|
1713
|
+
message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
|
|
1714
|
+
message.declaration = object.declaration?.map(e => ExtensionRangeOptions_Declaration.fromPartial(e)) || [];
|
|
1715
|
+
message.features = object.features !== undefined && object.features !== null ? FeatureSet.fromPartial(object.features) : undefined;
|
|
1716
|
+
message.verification = object.verification ?? 1;
|
|
1717
|
+
return message;
|
|
1718
|
+
},
|
|
1719
|
+
fromProtoMsg(message) {
|
|
1720
|
+
return ExtensionRangeOptions.decode(message.value);
|
|
1721
|
+
},
|
|
1722
|
+
toProto(message) {
|
|
1723
|
+
return ExtensionRangeOptions.encode(message).finish();
|
|
1724
|
+
},
|
|
1725
|
+
toProtoMsg(message) {
|
|
1726
|
+
return {
|
|
1727
|
+
typeUrl: "/google.protobuf.ExtensionRangeOptions",
|
|
1728
|
+
value: ExtensionRangeOptions.encode(message).finish()
|
|
1729
|
+
};
|
|
1730
|
+
},
|
|
1731
|
+
registerTypeUrl() {
|
|
1732
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(ExtensionRangeOptions.typeUrl)) {
|
|
1733
|
+
return;
|
|
1734
|
+
}
|
|
1735
|
+
UninterpretedOption.registerTypeUrl();
|
|
1736
|
+
ExtensionRangeOptions_Declaration.registerTypeUrl();
|
|
1737
|
+
FeatureSet.registerTypeUrl();
|
|
1738
|
+
}
|
|
1739
|
+
};
|
|
1740
|
+
GlobalDecoderRegistry.register(ExtensionRangeOptions.typeUrl, ExtensionRangeOptions);
|
|
1741
|
+
function createBaseExtensionRangeOptions_Declaration() {
|
|
1742
|
+
return {
|
|
1743
|
+
number: 0,
|
|
1744
|
+
fullName: "",
|
|
1745
|
+
type: "",
|
|
1746
|
+
reserved: false,
|
|
1747
|
+
repeated: false
|
|
1748
|
+
};
|
|
1749
|
+
}
|
|
1750
|
+
/**
|
|
1751
|
+
* @name ExtensionRangeOptions_Declaration
|
|
1752
|
+
* @package google.protobuf
|
|
1753
|
+
* @see proto type: google.protobuf.Declaration
|
|
1754
|
+
*/
|
|
1755
|
+
export const ExtensionRangeOptions_Declaration = {
|
|
1756
|
+
typeUrl: "/google.protobuf.Declaration",
|
|
1757
|
+
is(o) {
|
|
1758
|
+
return o && (o.$typeUrl === ExtensionRangeOptions_Declaration.typeUrl || typeof o.number === "number" && typeof o.fullName === "string" && typeof o.type === "string" && typeof o.reserved === "boolean" && typeof o.repeated === "boolean");
|
|
1759
|
+
},
|
|
1760
|
+
isSDK(o) {
|
|
1761
|
+
return o && (o.$typeUrl === ExtensionRangeOptions_Declaration.typeUrl || typeof o.number === "number" && typeof o.full_name === "string" && typeof o.type === "string" && typeof o.reserved === "boolean" && typeof o.repeated === "boolean");
|
|
1762
|
+
},
|
|
1763
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1764
|
+
if (message.number !== 0) {
|
|
1765
|
+
writer.uint32(8).int32(message.number);
|
|
1766
|
+
}
|
|
1767
|
+
if (message.fullName !== "") {
|
|
1768
|
+
writer.uint32(18).string(message.fullName);
|
|
1769
|
+
}
|
|
1770
|
+
if (message.type !== "") {
|
|
1771
|
+
writer.uint32(26).string(message.type);
|
|
1772
|
+
}
|
|
1773
|
+
if (message.reserved === true) {
|
|
1774
|
+
writer.uint32(40).bool(message.reserved);
|
|
1775
|
+
}
|
|
1776
|
+
if (message.repeated === true) {
|
|
1777
|
+
writer.uint32(48).bool(message.repeated);
|
|
1778
|
+
}
|
|
1779
|
+
return writer;
|
|
1780
|
+
},
|
|
1781
|
+
decode(input, length) {
|
|
1782
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1783
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1784
|
+
const message = createBaseExtensionRangeOptions_Declaration();
|
|
1785
|
+
while (reader.pos < end) {
|
|
1786
|
+
const tag = reader.uint32();
|
|
1787
|
+
switch (tag >>> 3) {
|
|
1788
|
+
case 1:
|
|
1789
|
+
message.number = reader.int32();
|
|
1790
|
+
break;
|
|
1791
|
+
case 2:
|
|
1792
|
+
message.fullName = reader.string();
|
|
1793
|
+
break;
|
|
1794
|
+
case 3:
|
|
1795
|
+
message.type = reader.string();
|
|
1796
|
+
break;
|
|
1797
|
+
case 5:
|
|
1798
|
+
message.reserved = reader.bool();
|
|
1799
|
+
break;
|
|
1800
|
+
case 6:
|
|
1801
|
+
message.repeated = reader.bool();
|
|
1802
|
+
break;
|
|
1803
|
+
default:
|
|
1804
|
+
reader.skipType(tag & 7);
|
|
1805
|
+
break;
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
return message;
|
|
1809
|
+
},
|
|
1810
|
+
fromPartial(object) {
|
|
1811
|
+
const message = createBaseExtensionRangeOptions_Declaration();
|
|
1812
|
+
message.number = object.number ?? 0;
|
|
1813
|
+
message.fullName = object.fullName ?? "";
|
|
1814
|
+
message.type = object.type ?? "";
|
|
1815
|
+
message.reserved = object.reserved ?? false;
|
|
1816
|
+
message.repeated = object.repeated ?? false;
|
|
1817
|
+
return message;
|
|
1818
|
+
},
|
|
1819
|
+
fromProtoMsg(message) {
|
|
1820
|
+
return ExtensionRangeOptions_Declaration.decode(message.value);
|
|
1821
|
+
},
|
|
1822
|
+
toProto(message) {
|
|
1823
|
+
return ExtensionRangeOptions_Declaration.encode(message).finish();
|
|
1824
|
+
},
|
|
1825
|
+
toProtoMsg(message) {
|
|
1826
|
+
return {
|
|
1827
|
+
typeUrl: "/google.protobuf.Declaration",
|
|
1828
|
+
value: ExtensionRangeOptions_Declaration.encode(message).finish()
|
|
1829
|
+
};
|
|
1830
|
+
},
|
|
1831
|
+
registerTypeUrl() { }
|
|
1832
|
+
};
|
|
1833
|
+
GlobalDecoderRegistry.register(ExtensionRangeOptions_Declaration.typeUrl, ExtensionRangeOptions_Declaration);
|
|
1834
|
+
function createBaseFieldDescriptorProto() {
|
|
1835
|
+
return {
|
|
1836
|
+
name: "",
|
|
1837
|
+
number: 0,
|
|
1838
|
+
label: 1,
|
|
1839
|
+
type: 1,
|
|
1840
|
+
typeName: "",
|
|
1841
|
+
extendee: "",
|
|
1842
|
+
defaultValue: "",
|
|
1843
|
+
oneofIndex: 0,
|
|
1844
|
+
jsonName: "",
|
|
1845
|
+
options: undefined,
|
|
1846
|
+
proto3Optional: false
|
|
1847
|
+
};
|
|
1848
|
+
}
|
|
1849
|
+
/**
|
|
1850
|
+
* Describes a field within a message.
|
|
1851
|
+
* @name FieldDescriptorProto
|
|
1852
|
+
* @package google.protobuf
|
|
1853
|
+
* @see proto type: google.protobuf.FieldDescriptorProto
|
|
1854
|
+
*/
|
|
1855
|
+
export const FieldDescriptorProto = {
|
|
1856
|
+
typeUrl: "/google.protobuf.FieldDescriptorProto",
|
|
1857
|
+
is(o) {
|
|
1858
|
+
return o && (o.$typeUrl === FieldDescriptorProto.typeUrl || typeof o.name === "string" && typeof o.number === "number" && isSet(o.label) && isSet(o.type) && typeof o.typeName === "string" && typeof o.extendee === "string" && typeof o.defaultValue === "string" && typeof o.oneofIndex === "number" && typeof o.jsonName === "string" && typeof o.proto3Optional === "boolean");
|
|
1859
|
+
},
|
|
1860
|
+
isSDK(o) {
|
|
1861
|
+
return o && (o.$typeUrl === FieldDescriptorProto.typeUrl || typeof o.name === "string" && typeof o.number === "number" && isSet(o.label) && isSet(o.type) && typeof o.type_name === "string" && typeof o.extendee === "string" && typeof o.default_value === "string" && typeof o.oneof_index === "number" && typeof o.json_name === "string" && typeof o.proto3_optional === "boolean");
|
|
1862
|
+
},
|
|
1863
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1864
|
+
if (message.name !== "") {
|
|
1865
|
+
writer.uint32(10).string(message.name);
|
|
1866
|
+
}
|
|
1867
|
+
if (message.number !== 0) {
|
|
1868
|
+
writer.uint32(24).int32(message.number);
|
|
1869
|
+
}
|
|
1870
|
+
if (message.label !== 1) {
|
|
1871
|
+
writer.uint32(32).int32(message.label);
|
|
1872
|
+
}
|
|
1873
|
+
if (message.type !== 1) {
|
|
1874
|
+
writer.uint32(40).int32(message.type);
|
|
1875
|
+
}
|
|
1876
|
+
if (message.typeName !== "") {
|
|
1877
|
+
writer.uint32(50).string(message.typeName);
|
|
1878
|
+
}
|
|
1879
|
+
if (message.extendee !== "") {
|
|
1880
|
+
writer.uint32(18).string(message.extendee);
|
|
1881
|
+
}
|
|
1882
|
+
if (message.defaultValue !== "") {
|
|
1883
|
+
writer.uint32(58).string(message.defaultValue);
|
|
1884
|
+
}
|
|
1885
|
+
if (message.oneofIndex !== 0) {
|
|
1886
|
+
writer.uint32(72).int32(message.oneofIndex);
|
|
1887
|
+
}
|
|
1888
|
+
if (message.jsonName !== "") {
|
|
1889
|
+
writer.uint32(82).string(message.jsonName);
|
|
1890
|
+
}
|
|
1891
|
+
if (message.options !== undefined) {
|
|
1892
|
+
FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim();
|
|
1893
|
+
}
|
|
1894
|
+
if (message.proto3Optional === true) {
|
|
1895
|
+
writer.uint32(136).bool(message.proto3Optional);
|
|
1896
|
+
}
|
|
1897
|
+
return writer;
|
|
1898
|
+
},
|
|
1899
|
+
decode(input, length) {
|
|
1900
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1901
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1902
|
+
const message = createBaseFieldDescriptorProto();
|
|
1903
|
+
while (reader.pos < end) {
|
|
1904
|
+
const tag = reader.uint32();
|
|
1905
|
+
switch (tag >>> 3) {
|
|
1906
|
+
case 1:
|
|
1907
|
+
message.name = reader.string();
|
|
1908
|
+
break;
|
|
1909
|
+
case 3:
|
|
1910
|
+
message.number = reader.int32();
|
|
1911
|
+
break;
|
|
1912
|
+
case 4:
|
|
1913
|
+
message.label = reader.int32();
|
|
1914
|
+
break;
|
|
1915
|
+
case 5:
|
|
1916
|
+
message.type = reader.int32();
|
|
1917
|
+
break;
|
|
1918
|
+
case 6:
|
|
1919
|
+
message.typeName = reader.string();
|
|
1920
|
+
break;
|
|
1921
|
+
case 2:
|
|
1922
|
+
message.extendee = reader.string();
|
|
1923
|
+
break;
|
|
1924
|
+
case 7:
|
|
1925
|
+
message.defaultValue = reader.string();
|
|
1926
|
+
break;
|
|
1927
|
+
case 9:
|
|
1928
|
+
message.oneofIndex = reader.int32();
|
|
1929
|
+
break;
|
|
1930
|
+
case 10:
|
|
1931
|
+
message.jsonName = reader.string();
|
|
1932
|
+
break;
|
|
1933
|
+
case 8:
|
|
1934
|
+
message.options = FieldOptions.decode(reader, reader.uint32());
|
|
1935
|
+
break;
|
|
1936
|
+
case 17:
|
|
1937
|
+
message.proto3Optional = reader.bool();
|
|
1938
|
+
break;
|
|
1939
|
+
default:
|
|
1940
|
+
reader.skipType(tag & 7);
|
|
1941
|
+
break;
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1944
|
+
return message;
|
|
1945
|
+
},
|
|
1946
|
+
fromPartial(object) {
|
|
1947
|
+
const message = createBaseFieldDescriptorProto();
|
|
1948
|
+
message.name = object.name ?? "";
|
|
1949
|
+
message.number = object.number ?? 0;
|
|
1950
|
+
message.label = object.label ?? 1;
|
|
1951
|
+
message.type = object.type ?? 1;
|
|
1952
|
+
message.typeName = object.typeName ?? "";
|
|
1953
|
+
message.extendee = object.extendee ?? "";
|
|
1954
|
+
message.defaultValue = object.defaultValue ?? "";
|
|
1955
|
+
message.oneofIndex = object.oneofIndex ?? 0;
|
|
1956
|
+
message.jsonName = object.jsonName ?? "";
|
|
1957
|
+
message.options = object.options !== undefined && object.options !== null ? FieldOptions.fromPartial(object.options) : undefined;
|
|
1958
|
+
message.proto3Optional = object.proto3Optional ?? false;
|
|
1959
|
+
return message;
|
|
1960
|
+
},
|
|
1961
|
+
fromProtoMsg(message) {
|
|
1962
|
+
return FieldDescriptorProto.decode(message.value);
|
|
1963
|
+
},
|
|
1964
|
+
toProto(message) {
|
|
1965
|
+
return FieldDescriptorProto.encode(message).finish();
|
|
1966
|
+
},
|
|
1967
|
+
toProtoMsg(message) {
|
|
1968
|
+
return {
|
|
1969
|
+
typeUrl: "/google.protobuf.FieldDescriptorProto",
|
|
1970
|
+
value: FieldDescriptorProto.encode(message).finish()
|
|
1971
|
+
};
|
|
1972
|
+
},
|
|
1973
|
+
registerTypeUrl() {
|
|
1974
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(FieldDescriptorProto.typeUrl)) {
|
|
1975
|
+
return;
|
|
1976
|
+
}
|
|
1977
|
+
FieldOptions.registerTypeUrl();
|
|
1978
|
+
}
|
|
1979
|
+
};
|
|
1980
|
+
GlobalDecoderRegistry.register(FieldDescriptorProto.typeUrl, FieldDescriptorProto);
|
|
1981
|
+
function createBaseOneofDescriptorProto() {
|
|
1982
|
+
return {
|
|
1983
|
+
name: "",
|
|
1984
|
+
options: undefined
|
|
1985
|
+
};
|
|
1986
|
+
}
|
|
1987
|
+
/**
|
|
1988
|
+
* Describes a oneof.
|
|
1989
|
+
* @name OneofDescriptorProto
|
|
1990
|
+
* @package google.protobuf
|
|
1991
|
+
* @see proto type: google.protobuf.OneofDescriptorProto
|
|
1992
|
+
*/
|
|
1993
|
+
export const OneofDescriptorProto = {
|
|
1994
|
+
typeUrl: "/google.protobuf.OneofDescriptorProto",
|
|
1995
|
+
is(o) {
|
|
1996
|
+
return o && (o.$typeUrl === OneofDescriptorProto.typeUrl || typeof o.name === "string");
|
|
1997
|
+
},
|
|
1998
|
+
isSDK(o) {
|
|
1999
|
+
return o && (o.$typeUrl === OneofDescriptorProto.typeUrl || typeof o.name === "string");
|
|
2000
|
+
},
|
|
2001
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2002
|
+
if (message.name !== "") {
|
|
2003
|
+
writer.uint32(10).string(message.name);
|
|
2004
|
+
}
|
|
2005
|
+
if (message.options !== undefined) {
|
|
2006
|
+
OneofOptions.encode(message.options, writer.uint32(18).fork()).ldelim();
|
|
2007
|
+
}
|
|
2008
|
+
return writer;
|
|
2009
|
+
},
|
|
2010
|
+
decode(input, length) {
|
|
2011
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2012
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2013
|
+
const message = createBaseOneofDescriptorProto();
|
|
2014
|
+
while (reader.pos < end) {
|
|
2015
|
+
const tag = reader.uint32();
|
|
2016
|
+
switch (tag >>> 3) {
|
|
2017
|
+
case 1:
|
|
2018
|
+
message.name = reader.string();
|
|
2019
|
+
break;
|
|
2020
|
+
case 2:
|
|
2021
|
+
message.options = OneofOptions.decode(reader, reader.uint32());
|
|
2022
|
+
break;
|
|
2023
|
+
default:
|
|
2024
|
+
reader.skipType(tag & 7);
|
|
2025
|
+
break;
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
return message;
|
|
2029
|
+
},
|
|
2030
|
+
fromPartial(object) {
|
|
2031
|
+
const message = createBaseOneofDescriptorProto();
|
|
2032
|
+
message.name = object.name ?? "";
|
|
2033
|
+
message.options = object.options !== undefined && object.options !== null ? OneofOptions.fromPartial(object.options) : undefined;
|
|
2034
|
+
return message;
|
|
2035
|
+
},
|
|
2036
|
+
fromProtoMsg(message) {
|
|
2037
|
+
return OneofDescriptorProto.decode(message.value);
|
|
2038
|
+
},
|
|
2039
|
+
toProto(message) {
|
|
2040
|
+
return OneofDescriptorProto.encode(message).finish();
|
|
2041
|
+
},
|
|
2042
|
+
toProtoMsg(message) {
|
|
2043
|
+
return {
|
|
2044
|
+
typeUrl: "/google.protobuf.OneofDescriptorProto",
|
|
2045
|
+
value: OneofDescriptorProto.encode(message).finish()
|
|
2046
|
+
};
|
|
2047
|
+
},
|
|
2048
|
+
registerTypeUrl() {
|
|
2049
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(OneofDescriptorProto.typeUrl)) {
|
|
2050
|
+
return;
|
|
2051
|
+
}
|
|
2052
|
+
OneofOptions.registerTypeUrl();
|
|
2053
|
+
}
|
|
2054
|
+
};
|
|
2055
|
+
GlobalDecoderRegistry.register(OneofDescriptorProto.typeUrl, OneofDescriptorProto);
|
|
2056
|
+
function createBaseEnumDescriptorProto() {
|
|
2057
|
+
return {
|
|
2058
|
+
name: "",
|
|
2059
|
+
value: [],
|
|
2060
|
+
options: undefined,
|
|
2061
|
+
reservedRange: [],
|
|
2062
|
+
reservedName: [],
|
|
2063
|
+
visibility: 1
|
|
2064
|
+
};
|
|
2065
|
+
}
|
|
2066
|
+
/**
|
|
2067
|
+
* Describes an enum type.
|
|
2068
|
+
* @name EnumDescriptorProto
|
|
2069
|
+
* @package google.protobuf
|
|
2070
|
+
* @see proto type: google.protobuf.EnumDescriptorProto
|
|
2071
|
+
*/
|
|
2072
|
+
export const EnumDescriptorProto = {
|
|
2073
|
+
typeUrl: "/google.protobuf.EnumDescriptorProto",
|
|
2074
|
+
is(o) {
|
|
2075
|
+
return o && (o.$typeUrl === EnumDescriptorProto.typeUrl || typeof o.name === "string" && Array.isArray(o.value) && (!o.value.length || EnumValueDescriptorProto.is(o.value[0])) && Array.isArray(o.reservedRange) && (!o.reservedRange.length || EnumDescriptorProto_EnumReservedRange.is(o.reservedRange[0])) && Array.isArray(o.reservedName) && (!o.reservedName.length || typeof o.reservedName[0] === "string") && isSet(o.visibility));
|
|
2076
|
+
},
|
|
2077
|
+
isSDK(o) {
|
|
2078
|
+
return o && (o.$typeUrl === EnumDescriptorProto.typeUrl || typeof o.name === "string" && Array.isArray(o.value) && (!o.value.length || EnumValueDescriptorProto.isSDK(o.value[0])) && Array.isArray(o.reserved_range) && (!o.reserved_range.length || EnumDescriptorProto_EnumReservedRange.isSDK(o.reserved_range[0])) && Array.isArray(o.reserved_name) && (!o.reserved_name.length || typeof o.reserved_name[0] === "string") && isSet(o.visibility));
|
|
2079
|
+
},
|
|
2080
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2081
|
+
if (message.name !== "") {
|
|
2082
|
+
writer.uint32(10).string(message.name);
|
|
2083
|
+
}
|
|
2084
|
+
for (const v of message.value) {
|
|
2085
|
+
EnumValueDescriptorProto.encode(v, writer.uint32(18).fork()).ldelim();
|
|
2086
|
+
}
|
|
2087
|
+
if (message.options !== undefined) {
|
|
2088
|
+
EnumOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
|
|
2089
|
+
}
|
|
2090
|
+
for (const v of message.reservedRange) {
|
|
2091
|
+
EnumDescriptorProto_EnumReservedRange.encode(v, writer.uint32(34).fork()).ldelim();
|
|
2092
|
+
}
|
|
2093
|
+
for (const v of message.reservedName) {
|
|
2094
|
+
writer.uint32(42).string(v);
|
|
2095
|
+
}
|
|
2096
|
+
if (message.visibility !== 1) {
|
|
2097
|
+
writer.uint32(48).int32(message.visibility);
|
|
2098
|
+
}
|
|
2099
|
+
return writer;
|
|
2100
|
+
},
|
|
2101
|
+
decode(input, length) {
|
|
2102
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2103
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2104
|
+
const message = createBaseEnumDescriptorProto();
|
|
2105
|
+
while (reader.pos < end) {
|
|
2106
|
+
const tag = reader.uint32();
|
|
2107
|
+
switch (tag >>> 3) {
|
|
2108
|
+
case 1:
|
|
2109
|
+
message.name = reader.string();
|
|
2110
|
+
break;
|
|
2111
|
+
case 2:
|
|
2112
|
+
message.value.push(EnumValueDescriptorProto.decode(reader, reader.uint32()));
|
|
2113
|
+
break;
|
|
2114
|
+
case 3:
|
|
2115
|
+
message.options = EnumOptions.decode(reader, reader.uint32());
|
|
2116
|
+
break;
|
|
2117
|
+
case 4:
|
|
2118
|
+
message.reservedRange.push(EnumDescriptorProto_EnumReservedRange.decode(reader, reader.uint32()));
|
|
2119
|
+
break;
|
|
2120
|
+
case 5:
|
|
2121
|
+
message.reservedName.push(reader.string());
|
|
2122
|
+
break;
|
|
2123
|
+
case 6:
|
|
2124
|
+
message.visibility = reader.int32();
|
|
2125
|
+
break;
|
|
2126
|
+
default:
|
|
2127
|
+
reader.skipType(tag & 7);
|
|
2128
|
+
break;
|
|
2129
|
+
}
|
|
2130
|
+
}
|
|
2131
|
+
return message;
|
|
2132
|
+
},
|
|
2133
|
+
fromPartial(object) {
|
|
2134
|
+
const message = createBaseEnumDescriptorProto();
|
|
2135
|
+
message.name = object.name ?? "";
|
|
2136
|
+
message.value = object.value?.map(e => EnumValueDescriptorProto.fromPartial(e)) || [];
|
|
2137
|
+
message.options = object.options !== undefined && object.options !== null ? EnumOptions.fromPartial(object.options) : undefined;
|
|
2138
|
+
message.reservedRange = object.reservedRange?.map(e => EnumDescriptorProto_EnumReservedRange.fromPartial(e)) || [];
|
|
2139
|
+
message.reservedName = object.reservedName?.map(e => e) || [];
|
|
2140
|
+
message.visibility = object.visibility ?? 1;
|
|
2141
|
+
return message;
|
|
2142
|
+
},
|
|
2143
|
+
fromProtoMsg(message) {
|
|
2144
|
+
return EnumDescriptorProto.decode(message.value);
|
|
2145
|
+
},
|
|
2146
|
+
toProto(message) {
|
|
2147
|
+
return EnumDescriptorProto.encode(message).finish();
|
|
2148
|
+
},
|
|
2149
|
+
toProtoMsg(message) {
|
|
2150
|
+
return {
|
|
2151
|
+
typeUrl: "/google.protobuf.EnumDescriptorProto",
|
|
2152
|
+
value: EnumDescriptorProto.encode(message).finish()
|
|
2153
|
+
};
|
|
2154
|
+
},
|
|
2155
|
+
registerTypeUrl() {
|
|
2156
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(EnumDescriptorProto.typeUrl)) {
|
|
2157
|
+
return;
|
|
2158
|
+
}
|
|
2159
|
+
EnumValueDescriptorProto.registerTypeUrl();
|
|
2160
|
+
EnumOptions.registerTypeUrl();
|
|
2161
|
+
EnumDescriptorProto_EnumReservedRange.registerTypeUrl();
|
|
2162
|
+
}
|
|
2163
|
+
};
|
|
2164
|
+
GlobalDecoderRegistry.register(EnumDescriptorProto.typeUrl, EnumDescriptorProto);
|
|
2165
|
+
function createBaseEnumDescriptorProto_EnumReservedRange() {
|
|
2166
|
+
return {
|
|
2167
|
+
start: 0,
|
|
2168
|
+
end: 0
|
|
2169
|
+
};
|
|
2170
|
+
}
|
|
2171
|
+
/**
|
|
2172
|
+
* Range of reserved numeric values. Reserved values may not be used by
|
|
2173
|
+
* entries in the same enum. Reserved ranges may not overlap.
|
|
2174
|
+
*
|
|
2175
|
+
* Note that this is distinct from DescriptorProto.ReservedRange in that it
|
|
2176
|
+
* is inclusive such that it can appropriately represent the entire int32
|
|
2177
|
+
* domain.
|
|
2178
|
+
* @name EnumDescriptorProto_EnumReservedRange
|
|
2179
|
+
* @package google.protobuf
|
|
2180
|
+
* @see proto type: google.protobuf.EnumReservedRange
|
|
2181
|
+
*/
|
|
2182
|
+
export const EnumDescriptorProto_EnumReservedRange = {
|
|
2183
|
+
typeUrl: "/google.protobuf.EnumReservedRange",
|
|
2184
|
+
is(o) {
|
|
2185
|
+
return o && (o.$typeUrl === EnumDescriptorProto_EnumReservedRange.typeUrl || typeof o.start === "number" && typeof o.end === "number");
|
|
2186
|
+
},
|
|
2187
|
+
isSDK(o) {
|
|
2188
|
+
return o && (o.$typeUrl === EnumDescriptorProto_EnumReservedRange.typeUrl || typeof o.start === "number" && typeof o.end === "number");
|
|
2189
|
+
},
|
|
2190
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2191
|
+
if (message.start !== 0) {
|
|
2192
|
+
writer.uint32(8).int32(message.start);
|
|
2193
|
+
}
|
|
2194
|
+
if (message.end !== 0) {
|
|
2195
|
+
writer.uint32(16).int32(message.end);
|
|
2196
|
+
}
|
|
2197
|
+
return writer;
|
|
2198
|
+
},
|
|
2199
|
+
decode(input, length) {
|
|
2200
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2201
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2202
|
+
const message = createBaseEnumDescriptorProto_EnumReservedRange();
|
|
2203
|
+
while (reader.pos < end) {
|
|
2204
|
+
const tag = reader.uint32();
|
|
2205
|
+
switch (tag >>> 3) {
|
|
2206
|
+
case 1:
|
|
2207
|
+
message.start = reader.int32();
|
|
2208
|
+
break;
|
|
2209
|
+
case 2:
|
|
2210
|
+
message.end = reader.int32();
|
|
2211
|
+
break;
|
|
2212
|
+
default:
|
|
2213
|
+
reader.skipType(tag & 7);
|
|
2214
|
+
break;
|
|
2215
|
+
}
|
|
2216
|
+
}
|
|
2217
|
+
return message;
|
|
2218
|
+
},
|
|
2219
|
+
fromPartial(object) {
|
|
2220
|
+
const message = createBaseEnumDescriptorProto_EnumReservedRange();
|
|
2221
|
+
message.start = object.start ?? 0;
|
|
2222
|
+
message.end = object.end ?? 0;
|
|
2223
|
+
return message;
|
|
2224
|
+
},
|
|
2225
|
+
fromProtoMsg(message) {
|
|
2226
|
+
return EnumDescriptorProto_EnumReservedRange.decode(message.value);
|
|
2227
|
+
},
|
|
2228
|
+
toProto(message) {
|
|
2229
|
+
return EnumDescriptorProto_EnumReservedRange.encode(message).finish();
|
|
2230
|
+
},
|
|
2231
|
+
toProtoMsg(message) {
|
|
2232
|
+
return {
|
|
2233
|
+
typeUrl: "/google.protobuf.EnumReservedRange",
|
|
2234
|
+
value: EnumDescriptorProto_EnumReservedRange.encode(message).finish()
|
|
2235
|
+
};
|
|
2236
|
+
},
|
|
2237
|
+
registerTypeUrl() { }
|
|
2238
|
+
};
|
|
2239
|
+
GlobalDecoderRegistry.register(EnumDescriptorProto_EnumReservedRange.typeUrl, EnumDescriptorProto_EnumReservedRange);
|
|
2240
|
+
function createBaseEnumValueDescriptorProto() {
|
|
2241
|
+
return {
|
|
2242
|
+
name: "",
|
|
2243
|
+
number: 0,
|
|
2244
|
+
options: undefined
|
|
2245
|
+
};
|
|
2246
|
+
}
|
|
2247
|
+
/**
|
|
2248
|
+
* Describes a value within an enum.
|
|
2249
|
+
* @name EnumValueDescriptorProto
|
|
2250
|
+
* @package google.protobuf
|
|
2251
|
+
* @see proto type: google.protobuf.EnumValueDescriptorProto
|
|
2252
|
+
*/
|
|
2253
|
+
export const EnumValueDescriptorProto = {
|
|
2254
|
+
typeUrl: "/google.protobuf.EnumValueDescriptorProto",
|
|
2255
|
+
is(o) {
|
|
2256
|
+
return o && (o.$typeUrl === EnumValueDescriptorProto.typeUrl || typeof o.name === "string" && typeof o.number === "number");
|
|
2257
|
+
},
|
|
2258
|
+
isSDK(o) {
|
|
2259
|
+
return o && (o.$typeUrl === EnumValueDescriptorProto.typeUrl || typeof o.name === "string" && typeof o.number === "number");
|
|
2260
|
+
},
|
|
2261
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2262
|
+
if (message.name !== "") {
|
|
2263
|
+
writer.uint32(10).string(message.name);
|
|
2264
|
+
}
|
|
2265
|
+
if (message.number !== 0) {
|
|
2266
|
+
writer.uint32(16).int32(message.number);
|
|
2267
|
+
}
|
|
2268
|
+
if (message.options !== undefined) {
|
|
2269
|
+
EnumValueOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
|
|
2270
|
+
}
|
|
2271
|
+
return writer;
|
|
2272
|
+
},
|
|
2273
|
+
decode(input, length) {
|
|
2274
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2275
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2276
|
+
const message = createBaseEnumValueDescriptorProto();
|
|
2277
|
+
while (reader.pos < end) {
|
|
2278
|
+
const tag = reader.uint32();
|
|
2279
|
+
switch (tag >>> 3) {
|
|
2280
|
+
case 1:
|
|
2281
|
+
message.name = reader.string();
|
|
2282
|
+
break;
|
|
2283
|
+
case 2:
|
|
2284
|
+
message.number = reader.int32();
|
|
2285
|
+
break;
|
|
2286
|
+
case 3:
|
|
2287
|
+
message.options = EnumValueOptions.decode(reader, reader.uint32());
|
|
2288
|
+
break;
|
|
2289
|
+
default:
|
|
2290
|
+
reader.skipType(tag & 7);
|
|
2291
|
+
break;
|
|
2292
|
+
}
|
|
2293
|
+
}
|
|
2294
|
+
return message;
|
|
2295
|
+
},
|
|
2296
|
+
fromPartial(object) {
|
|
2297
|
+
const message = createBaseEnumValueDescriptorProto();
|
|
2298
|
+
message.name = object.name ?? "";
|
|
2299
|
+
message.number = object.number ?? 0;
|
|
2300
|
+
message.options = object.options !== undefined && object.options !== null ? EnumValueOptions.fromPartial(object.options) : undefined;
|
|
2301
|
+
return message;
|
|
2302
|
+
},
|
|
2303
|
+
fromProtoMsg(message) {
|
|
2304
|
+
return EnumValueDescriptorProto.decode(message.value);
|
|
2305
|
+
},
|
|
2306
|
+
toProto(message) {
|
|
2307
|
+
return EnumValueDescriptorProto.encode(message).finish();
|
|
2308
|
+
},
|
|
2309
|
+
toProtoMsg(message) {
|
|
2310
|
+
return {
|
|
2311
|
+
typeUrl: "/google.protobuf.EnumValueDescriptorProto",
|
|
2312
|
+
value: EnumValueDescriptorProto.encode(message).finish()
|
|
2313
|
+
};
|
|
2314
|
+
},
|
|
2315
|
+
registerTypeUrl() {
|
|
2316
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(EnumValueDescriptorProto.typeUrl)) {
|
|
2317
|
+
return;
|
|
2318
|
+
}
|
|
2319
|
+
EnumValueOptions.registerTypeUrl();
|
|
2320
|
+
}
|
|
2321
|
+
};
|
|
2322
|
+
GlobalDecoderRegistry.register(EnumValueDescriptorProto.typeUrl, EnumValueDescriptorProto);
|
|
2323
|
+
function createBaseServiceDescriptorProto() {
|
|
2324
|
+
return {
|
|
2325
|
+
name: "",
|
|
2326
|
+
method: [],
|
|
2327
|
+
options: undefined
|
|
2328
|
+
};
|
|
2329
|
+
}
|
|
2330
|
+
/**
|
|
2331
|
+
* Describes a service.
|
|
2332
|
+
* @name ServiceDescriptorProto
|
|
2333
|
+
* @package google.protobuf
|
|
2334
|
+
* @see proto type: google.protobuf.ServiceDescriptorProto
|
|
2335
|
+
*/
|
|
2336
|
+
export const ServiceDescriptorProto = {
|
|
2337
|
+
typeUrl: "/google.protobuf.ServiceDescriptorProto",
|
|
2338
|
+
is(o) {
|
|
2339
|
+
return o && (o.$typeUrl === ServiceDescriptorProto.typeUrl || typeof o.name === "string" && Array.isArray(o.method) && (!o.method.length || MethodDescriptorProto.is(o.method[0])));
|
|
2340
|
+
},
|
|
2341
|
+
isSDK(o) {
|
|
2342
|
+
return o && (o.$typeUrl === ServiceDescriptorProto.typeUrl || typeof o.name === "string" && Array.isArray(o.method) && (!o.method.length || MethodDescriptorProto.isSDK(o.method[0])));
|
|
2343
|
+
},
|
|
2344
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2345
|
+
if (message.name !== "") {
|
|
2346
|
+
writer.uint32(10).string(message.name);
|
|
2347
|
+
}
|
|
2348
|
+
for (const v of message.method) {
|
|
2349
|
+
MethodDescriptorProto.encode(v, writer.uint32(18).fork()).ldelim();
|
|
2350
|
+
}
|
|
2351
|
+
if (message.options !== undefined) {
|
|
2352
|
+
ServiceOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
|
|
2353
|
+
}
|
|
2354
|
+
return writer;
|
|
2355
|
+
},
|
|
2356
|
+
decode(input, length) {
|
|
2357
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2358
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2359
|
+
const message = createBaseServiceDescriptorProto();
|
|
2360
|
+
while (reader.pos < end) {
|
|
2361
|
+
const tag = reader.uint32();
|
|
2362
|
+
switch (tag >>> 3) {
|
|
2363
|
+
case 1:
|
|
2364
|
+
message.name = reader.string();
|
|
2365
|
+
break;
|
|
2366
|
+
case 2:
|
|
2367
|
+
message.method.push(MethodDescriptorProto.decode(reader, reader.uint32()));
|
|
2368
|
+
break;
|
|
2369
|
+
case 3:
|
|
2370
|
+
message.options = ServiceOptions.decode(reader, reader.uint32());
|
|
2371
|
+
break;
|
|
2372
|
+
default:
|
|
2373
|
+
reader.skipType(tag & 7);
|
|
2374
|
+
break;
|
|
2375
|
+
}
|
|
2376
|
+
}
|
|
2377
|
+
return message;
|
|
2378
|
+
},
|
|
2379
|
+
fromPartial(object) {
|
|
2380
|
+
const message = createBaseServiceDescriptorProto();
|
|
2381
|
+
message.name = object.name ?? "";
|
|
2382
|
+
message.method = object.method?.map(e => MethodDescriptorProto.fromPartial(e)) || [];
|
|
2383
|
+
message.options = object.options !== undefined && object.options !== null ? ServiceOptions.fromPartial(object.options) : undefined;
|
|
2384
|
+
return message;
|
|
2385
|
+
},
|
|
2386
|
+
fromProtoMsg(message) {
|
|
2387
|
+
return ServiceDescriptorProto.decode(message.value);
|
|
2388
|
+
},
|
|
2389
|
+
toProto(message) {
|
|
2390
|
+
return ServiceDescriptorProto.encode(message).finish();
|
|
2391
|
+
},
|
|
2392
|
+
toProtoMsg(message) {
|
|
2393
|
+
return {
|
|
2394
|
+
typeUrl: "/google.protobuf.ServiceDescriptorProto",
|
|
2395
|
+
value: ServiceDescriptorProto.encode(message).finish()
|
|
2396
|
+
};
|
|
2397
|
+
},
|
|
2398
|
+
registerTypeUrl() {
|
|
2399
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(ServiceDescriptorProto.typeUrl)) {
|
|
2400
|
+
return;
|
|
2401
|
+
}
|
|
2402
|
+
MethodDescriptorProto.registerTypeUrl();
|
|
2403
|
+
ServiceOptions.registerTypeUrl();
|
|
2404
|
+
}
|
|
2405
|
+
};
|
|
2406
|
+
GlobalDecoderRegistry.register(ServiceDescriptorProto.typeUrl, ServiceDescriptorProto);
|
|
2407
|
+
function createBaseMethodDescriptorProto() {
|
|
2408
|
+
return {
|
|
2409
|
+
name: "",
|
|
2410
|
+
inputType: "",
|
|
2411
|
+
outputType: "",
|
|
2412
|
+
options: undefined,
|
|
2413
|
+
clientStreaming: false,
|
|
2414
|
+
serverStreaming: false
|
|
2415
|
+
};
|
|
2416
|
+
}
|
|
2417
|
+
/**
|
|
2418
|
+
* Describes a method of a service.
|
|
2419
|
+
* @name MethodDescriptorProto
|
|
2420
|
+
* @package google.protobuf
|
|
2421
|
+
* @see proto type: google.protobuf.MethodDescriptorProto
|
|
2422
|
+
*/
|
|
2423
|
+
export const MethodDescriptorProto = {
|
|
2424
|
+
typeUrl: "/google.protobuf.MethodDescriptorProto",
|
|
2425
|
+
is(o) {
|
|
2426
|
+
return o && (o.$typeUrl === MethodDescriptorProto.typeUrl || typeof o.name === "string" && typeof o.inputType === "string" && typeof o.outputType === "string" && typeof o.clientStreaming === "boolean" && typeof o.serverStreaming === "boolean");
|
|
2427
|
+
},
|
|
2428
|
+
isSDK(o) {
|
|
2429
|
+
return o && (o.$typeUrl === MethodDescriptorProto.typeUrl || typeof o.name === "string" && typeof o.input_type === "string" && typeof o.output_type === "string" && typeof o.client_streaming === "boolean" && typeof o.server_streaming === "boolean");
|
|
2430
|
+
},
|
|
2431
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2432
|
+
if (message.name !== "") {
|
|
2433
|
+
writer.uint32(10).string(message.name);
|
|
2434
|
+
}
|
|
2435
|
+
if (message.inputType !== "") {
|
|
2436
|
+
writer.uint32(18).string(message.inputType);
|
|
2437
|
+
}
|
|
2438
|
+
if (message.outputType !== "") {
|
|
2439
|
+
writer.uint32(26).string(message.outputType);
|
|
2440
|
+
}
|
|
2441
|
+
if (message.options !== undefined) {
|
|
2442
|
+
MethodOptions.encode(message.options, writer.uint32(34).fork()).ldelim();
|
|
2443
|
+
}
|
|
2444
|
+
if (message.clientStreaming === true) {
|
|
2445
|
+
writer.uint32(40).bool(message.clientStreaming);
|
|
2446
|
+
}
|
|
2447
|
+
if (message.serverStreaming === true) {
|
|
2448
|
+
writer.uint32(48).bool(message.serverStreaming);
|
|
2449
|
+
}
|
|
2450
|
+
return writer;
|
|
2451
|
+
},
|
|
2452
|
+
decode(input, length) {
|
|
2453
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2454
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2455
|
+
const message = createBaseMethodDescriptorProto();
|
|
2456
|
+
while (reader.pos < end) {
|
|
2457
|
+
const tag = reader.uint32();
|
|
2458
|
+
switch (tag >>> 3) {
|
|
2459
|
+
case 1:
|
|
2460
|
+
message.name = reader.string();
|
|
2461
|
+
break;
|
|
2462
|
+
case 2:
|
|
2463
|
+
message.inputType = reader.string();
|
|
2464
|
+
break;
|
|
2465
|
+
case 3:
|
|
2466
|
+
message.outputType = reader.string();
|
|
2467
|
+
break;
|
|
2468
|
+
case 4:
|
|
2469
|
+
message.options = MethodOptions.decode(reader, reader.uint32());
|
|
2470
|
+
break;
|
|
2471
|
+
case 5:
|
|
2472
|
+
message.clientStreaming = reader.bool();
|
|
2473
|
+
break;
|
|
2474
|
+
case 6:
|
|
2475
|
+
message.serverStreaming = reader.bool();
|
|
2476
|
+
break;
|
|
2477
|
+
default:
|
|
2478
|
+
reader.skipType(tag & 7);
|
|
2479
|
+
break;
|
|
2480
|
+
}
|
|
2481
|
+
}
|
|
2482
|
+
return message;
|
|
2483
|
+
},
|
|
2484
|
+
fromPartial(object) {
|
|
2485
|
+
const message = createBaseMethodDescriptorProto();
|
|
2486
|
+
message.name = object.name ?? "";
|
|
2487
|
+
message.inputType = object.inputType ?? "";
|
|
2488
|
+
message.outputType = object.outputType ?? "";
|
|
2489
|
+
message.options = object.options !== undefined && object.options !== null ? MethodOptions.fromPartial(object.options) : undefined;
|
|
2490
|
+
message.clientStreaming = object.clientStreaming ?? false;
|
|
2491
|
+
message.serverStreaming = object.serverStreaming ?? false;
|
|
2492
|
+
return message;
|
|
2493
|
+
},
|
|
2494
|
+
fromProtoMsg(message) {
|
|
2495
|
+
return MethodDescriptorProto.decode(message.value);
|
|
2496
|
+
},
|
|
2497
|
+
toProto(message) {
|
|
2498
|
+
return MethodDescriptorProto.encode(message).finish();
|
|
2499
|
+
},
|
|
2500
|
+
toProtoMsg(message) {
|
|
2501
|
+
return {
|
|
2502
|
+
typeUrl: "/google.protobuf.MethodDescriptorProto",
|
|
2503
|
+
value: MethodDescriptorProto.encode(message).finish()
|
|
2504
|
+
};
|
|
2505
|
+
},
|
|
2506
|
+
registerTypeUrl() {
|
|
2507
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(MethodDescriptorProto.typeUrl)) {
|
|
2508
|
+
return;
|
|
2509
|
+
}
|
|
2510
|
+
MethodOptions.registerTypeUrl();
|
|
2511
|
+
}
|
|
2512
|
+
};
|
|
2513
|
+
GlobalDecoderRegistry.register(MethodDescriptorProto.typeUrl, MethodDescriptorProto);
|
|
2514
|
+
function createBaseFileOptions() {
|
|
2515
|
+
return {
|
|
2516
|
+
javaPackage: "",
|
|
2517
|
+
javaOuterClassname: "",
|
|
2518
|
+
javaMultipleFiles: false,
|
|
2519
|
+
javaGenerateEqualsAndHash: false,
|
|
2520
|
+
javaStringCheckUtf8: false,
|
|
2521
|
+
optimizeFor: 1,
|
|
2522
|
+
goPackage: "",
|
|
2523
|
+
ccGenericServices: false,
|
|
2524
|
+
javaGenericServices: false,
|
|
2525
|
+
pyGenericServices: false,
|
|
2526
|
+
deprecated: false,
|
|
2527
|
+
ccEnableArenas: false,
|
|
2528
|
+
objcClassPrefix: "",
|
|
2529
|
+
csharpNamespace: "",
|
|
2530
|
+
swiftPrefix: "",
|
|
2531
|
+
phpClassPrefix: "",
|
|
2532
|
+
phpNamespace: "",
|
|
2533
|
+
phpMetadataNamespace: "",
|
|
2534
|
+
rubyPackage: "",
|
|
2535
|
+
features: undefined,
|
|
2536
|
+
uninterpretedOption: []
|
|
2537
|
+
};
|
|
2538
|
+
}
|
|
2539
|
+
/**
|
|
2540
|
+
* @name FileOptions
|
|
2541
|
+
* @package google.protobuf
|
|
2542
|
+
* @see proto type: google.protobuf.FileOptions
|
|
2543
|
+
*/
|
|
2544
|
+
export const FileOptions = {
|
|
2545
|
+
typeUrl: "/google.protobuf.FileOptions",
|
|
2546
|
+
is(o) {
|
|
2547
|
+
return o && (o.$typeUrl === FileOptions.typeUrl || typeof o.javaPackage === "string" && typeof o.javaOuterClassname === "string" && typeof o.javaMultipleFiles === "boolean" && typeof o.javaGenerateEqualsAndHash === "boolean" && typeof o.javaStringCheckUtf8 === "boolean" && isSet(o.optimizeFor) && typeof o.goPackage === "string" && typeof o.ccGenericServices === "boolean" && typeof o.javaGenericServices === "boolean" && typeof o.pyGenericServices === "boolean" && typeof o.deprecated === "boolean" && typeof o.ccEnableArenas === "boolean" && typeof o.objcClassPrefix === "string" && typeof o.csharpNamespace === "string" && typeof o.swiftPrefix === "string" && typeof o.phpClassPrefix === "string" && typeof o.phpNamespace === "string" && typeof o.phpMetadataNamespace === "string" && typeof o.rubyPackage === "string" && Array.isArray(o.uninterpretedOption) && (!o.uninterpretedOption.length || UninterpretedOption.is(o.uninterpretedOption[0])));
|
|
2548
|
+
},
|
|
2549
|
+
isSDK(o) {
|
|
2550
|
+
return o && (o.$typeUrl === FileOptions.typeUrl || typeof o.java_package === "string" && typeof o.java_outer_classname === "string" && typeof o.java_multiple_files === "boolean" && typeof o.java_generate_equals_and_hash === "boolean" && typeof o.java_string_check_utf8 === "boolean" && isSet(o.optimize_for) && typeof o.go_package === "string" && typeof o.cc_generic_services === "boolean" && typeof o.java_generic_services === "boolean" && typeof o.py_generic_services === "boolean" && typeof o.deprecated === "boolean" && typeof o.cc_enable_arenas === "boolean" && typeof o.objc_class_prefix === "string" && typeof o.csharp_namespace === "string" && typeof o.swift_prefix === "string" && typeof o.php_class_prefix === "string" && typeof o.php_namespace === "string" && typeof o.php_metadata_namespace === "string" && typeof o.ruby_package === "string" && Array.isArray(o.uninterpreted_option) && (!o.uninterpreted_option.length || UninterpretedOption.isSDK(o.uninterpreted_option[0])));
|
|
2551
|
+
},
|
|
2552
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2553
|
+
if (message.javaPackage !== "") {
|
|
2554
|
+
writer.uint32(10).string(message.javaPackage);
|
|
2555
|
+
}
|
|
2556
|
+
if (message.javaOuterClassname !== "") {
|
|
2557
|
+
writer.uint32(66).string(message.javaOuterClassname);
|
|
2558
|
+
}
|
|
2559
|
+
if (message.javaMultipleFiles === true) {
|
|
2560
|
+
writer.uint32(80).bool(message.javaMultipleFiles);
|
|
2561
|
+
}
|
|
2562
|
+
if (message.javaGenerateEqualsAndHash === true) {
|
|
2563
|
+
writer.uint32(160).bool(message.javaGenerateEqualsAndHash);
|
|
2564
|
+
}
|
|
2565
|
+
if (message.javaStringCheckUtf8 === true) {
|
|
2566
|
+
writer.uint32(216).bool(message.javaStringCheckUtf8);
|
|
2567
|
+
}
|
|
2568
|
+
if (message.optimizeFor !== 1) {
|
|
2569
|
+
writer.uint32(72).int32(message.optimizeFor);
|
|
2570
|
+
}
|
|
2571
|
+
if (message.goPackage !== "") {
|
|
2572
|
+
writer.uint32(90).string(message.goPackage);
|
|
2573
|
+
}
|
|
2574
|
+
if (message.ccGenericServices === true) {
|
|
2575
|
+
writer.uint32(128).bool(message.ccGenericServices);
|
|
2576
|
+
}
|
|
2577
|
+
if (message.javaGenericServices === true) {
|
|
2578
|
+
writer.uint32(136).bool(message.javaGenericServices);
|
|
2579
|
+
}
|
|
2580
|
+
if (message.pyGenericServices === true) {
|
|
2581
|
+
writer.uint32(144).bool(message.pyGenericServices);
|
|
2582
|
+
}
|
|
2583
|
+
if (message.deprecated === true) {
|
|
2584
|
+
writer.uint32(184).bool(message.deprecated);
|
|
2585
|
+
}
|
|
2586
|
+
if (message.ccEnableArenas === true) {
|
|
2587
|
+
writer.uint32(248).bool(message.ccEnableArenas);
|
|
2588
|
+
}
|
|
2589
|
+
if (message.objcClassPrefix !== "") {
|
|
2590
|
+
writer.uint32(290).string(message.objcClassPrefix);
|
|
2591
|
+
}
|
|
2592
|
+
if (message.csharpNamespace !== "") {
|
|
2593
|
+
writer.uint32(298).string(message.csharpNamespace);
|
|
2594
|
+
}
|
|
2595
|
+
if (message.swiftPrefix !== "") {
|
|
2596
|
+
writer.uint32(314).string(message.swiftPrefix);
|
|
2597
|
+
}
|
|
2598
|
+
if (message.phpClassPrefix !== "") {
|
|
2599
|
+
writer.uint32(322).string(message.phpClassPrefix);
|
|
2600
|
+
}
|
|
2601
|
+
if (message.phpNamespace !== "") {
|
|
2602
|
+
writer.uint32(330).string(message.phpNamespace);
|
|
2603
|
+
}
|
|
2604
|
+
if (message.phpMetadataNamespace !== "") {
|
|
2605
|
+
writer.uint32(354).string(message.phpMetadataNamespace);
|
|
2606
|
+
}
|
|
2607
|
+
if (message.rubyPackage !== "") {
|
|
2608
|
+
writer.uint32(362).string(message.rubyPackage);
|
|
2609
|
+
}
|
|
2610
|
+
if (message.features !== undefined) {
|
|
2611
|
+
FeatureSet.encode(message.features, writer.uint32(402).fork()).ldelim();
|
|
2612
|
+
}
|
|
2613
|
+
for (const v of message.uninterpretedOption) {
|
|
2614
|
+
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
2615
|
+
}
|
|
2616
|
+
return writer;
|
|
2617
|
+
},
|
|
2618
|
+
decode(input, length) {
|
|
2619
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2620
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2621
|
+
const message = createBaseFileOptions();
|
|
2622
|
+
while (reader.pos < end) {
|
|
2623
|
+
const tag = reader.uint32();
|
|
2624
|
+
switch (tag >>> 3) {
|
|
2625
|
+
case 1:
|
|
2626
|
+
message.javaPackage = reader.string();
|
|
2627
|
+
break;
|
|
2628
|
+
case 8:
|
|
2629
|
+
message.javaOuterClassname = reader.string();
|
|
2630
|
+
break;
|
|
2631
|
+
case 10:
|
|
2632
|
+
message.javaMultipleFiles = reader.bool();
|
|
2633
|
+
break;
|
|
2634
|
+
case 20:
|
|
2635
|
+
message.javaGenerateEqualsAndHash = reader.bool();
|
|
2636
|
+
break;
|
|
2637
|
+
case 27:
|
|
2638
|
+
message.javaStringCheckUtf8 = reader.bool();
|
|
2639
|
+
break;
|
|
2640
|
+
case 9:
|
|
2641
|
+
message.optimizeFor = reader.int32();
|
|
2642
|
+
break;
|
|
2643
|
+
case 11:
|
|
2644
|
+
message.goPackage = reader.string();
|
|
2645
|
+
break;
|
|
2646
|
+
case 16:
|
|
2647
|
+
message.ccGenericServices = reader.bool();
|
|
2648
|
+
break;
|
|
2649
|
+
case 17:
|
|
2650
|
+
message.javaGenericServices = reader.bool();
|
|
2651
|
+
break;
|
|
2652
|
+
case 18:
|
|
2653
|
+
message.pyGenericServices = reader.bool();
|
|
2654
|
+
break;
|
|
2655
|
+
case 23:
|
|
2656
|
+
message.deprecated = reader.bool();
|
|
2657
|
+
break;
|
|
2658
|
+
case 31:
|
|
2659
|
+
message.ccEnableArenas = reader.bool();
|
|
2660
|
+
break;
|
|
2661
|
+
case 36:
|
|
2662
|
+
message.objcClassPrefix = reader.string();
|
|
2663
|
+
break;
|
|
2664
|
+
case 37:
|
|
2665
|
+
message.csharpNamespace = reader.string();
|
|
2666
|
+
break;
|
|
2667
|
+
case 39:
|
|
2668
|
+
message.swiftPrefix = reader.string();
|
|
2669
|
+
break;
|
|
2670
|
+
case 40:
|
|
2671
|
+
message.phpClassPrefix = reader.string();
|
|
2672
|
+
break;
|
|
2673
|
+
case 41:
|
|
2674
|
+
message.phpNamespace = reader.string();
|
|
2675
|
+
break;
|
|
2676
|
+
case 44:
|
|
2677
|
+
message.phpMetadataNamespace = reader.string();
|
|
2678
|
+
break;
|
|
2679
|
+
case 45:
|
|
2680
|
+
message.rubyPackage = reader.string();
|
|
2681
|
+
break;
|
|
2682
|
+
case 50:
|
|
2683
|
+
message.features = FeatureSet.decode(reader, reader.uint32());
|
|
2684
|
+
break;
|
|
2685
|
+
case 999:
|
|
2686
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
|
2687
|
+
break;
|
|
2688
|
+
default:
|
|
2689
|
+
reader.skipType(tag & 7);
|
|
2690
|
+
break;
|
|
2691
|
+
}
|
|
2692
|
+
}
|
|
2693
|
+
return message;
|
|
2694
|
+
},
|
|
2695
|
+
fromPartial(object) {
|
|
2696
|
+
const message = createBaseFileOptions();
|
|
2697
|
+
message.javaPackage = object.javaPackage ?? "";
|
|
2698
|
+
message.javaOuterClassname = object.javaOuterClassname ?? "";
|
|
2699
|
+
message.javaMultipleFiles = object.javaMultipleFiles ?? false;
|
|
2700
|
+
message.javaGenerateEqualsAndHash = object.javaGenerateEqualsAndHash ?? false;
|
|
2701
|
+
message.javaStringCheckUtf8 = object.javaStringCheckUtf8 ?? false;
|
|
2702
|
+
message.optimizeFor = object.optimizeFor ?? 1;
|
|
2703
|
+
message.goPackage = object.goPackage ?? "";
|
|
2704
|
+
message.ccGenericServices = object.ccGenericServices ?? false;
|
|
2705
|
+
message.javaGenericServices = object.javaGenericServices ?? false;
|
|
2706
|
+
message.pyGenericServices = object.pyGenericServices ?? false;
|
|
2707
|
+
message.deprecated = object.deprecated ?? false;
|
|
2708
|
+
message.ccEnableArenas = object.ccEnableArenas ?? false;
|
|
2709
|
+
message.objcClassPrefix = object.objcClassPrefix ?? "";
|
|
2710
|
+
message.csharpNamespace = object.csharpNamespace ?? "";
|
|
2711
|
+
message.swiftPrefix = object.swiftPrefix ?? "";
|
|
2712
|
+
message.phpClassPrefix = object.phpClassPrefix ?? "";
|
|
2713
|
+
message.phpNamespace = object.phpNamespace ?? "";
|
|
2714
|
+
message.phpMetadataNamespace = object.phpMetadataNamespace ?? "";
|
|
2715
|
+
message.rubyPackage = object.rubyPackage ?? "";
|
|
2716
|
+
message.features = object.features !== undefined && object.features !== null ? FeatureSet.fromPartial(object.features) : undefined;
|
|
2717
|
+
message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
|
|
2718
|
+
return message;
|
|
2719
|
+
},
|
|
2720
|
+
fromProtoMsg(message) {
|
|
2721
|
+
return FileOptions.decode(message.value);
|
|
2722
|
+
},
|
|
2723
|
+
toProto(message) {
|
|
2724
|
+
return FileOptions.encode(message).finish();
|
|
2725
|
+
},
|
|
2726
|
+
toProtoMsg(message) {
|
|
2727
|
+
return {
|
|
2728
|
+
typeUrl: "/google.protobuf.FileOptions",
|
|
2729
|
+
value: FileOptions.encode(message).finish()
|
|
2730
|
+
};
|
|
2731
|
+
},
|
|
2732
|
+
registerTypeUrl() {
|
|
2733
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(FileOptions.typeUrl)) {
|
|
2734
|
+
return;
|
|
2735
|
+
}
|
|
2736
|
+
FeatureSet.registerTypeUrl();
|
|
2737
|
+
UninterpretedOption.registerTypeUrl();
|
|
2738
|
+
}
|
|
2739
|
+
};
|
|
2740
|
+
GlobalDecoderRegistry.register(FileOptions.typeUrl, FileOptions);
|
|
2741
|
+
function createBaseMessageOptions() {
|
|
2742
|
+
return {
|
|
2743
|
+
messageSetWireFormat: false,
|
|
2744
|
+
noStandardDescriptorAccessor: false,
|
|
2745
|
+
deprecated: false,
|
|
2746
|
+
mapEntry: false,
|
|
2747
|
+
deprecatedLegacyJsonFieldConflicts: false,
|
|
2748
|
+
features: undefined,
|
|
2749
|
+
uninterpretedOption: []
|
|
2750
|
+
};
|
|
2751
|
+
}
|
|
2752
|
+
/**
|
|
2753
|
+
* @name MessageOptions
|
|
2754
|
+
* @package google.protobuf
|
|
2755
|
+
* @see proto type: google.protobuf.MessageOptions
|
|
2756
|
+
*/
|
|
2757
|
+
export const MessageOptions = {
|
|
2758
|
+
typeUrl: "/google.protobuf.MessageOptions",
|
|
2759
|
+
is(o) {
|
|
2760
|
+
return o && (o.$typeUrl === MessageOptions.typeUrl || typeof o.messageSetWireFormat === "boolean" && typeof o.noStandardDescriptorAccessor === "boolean" && typeof o.deprecated === "boolean" && typeof o.mapEntry === "boolean" && typeof o.deprecatedLegacyJsonFieldConflicts === "boolean" && Array.isArray(o.uninterpretedOption) && (!o.uninterpretedOption.length || UninterpretedOption.is(o.uninterpretedOption[0])));
|
|
2761
|
+
},
|
|
2762
|
+
isSDK(o) {
|
|
2763
|
+
return o && (o.$typeUrl === MessageOptions.typeUrl || typeof o.message_set_wire_format === "boolean" && typeof o.no_standard_descriptor_accessor === "boolean" && typeof o.deprecated === "boolean" && typeof o.map_entry === "boolean" && typeof o.deprecated_legacy_json_field_conflicts === "boolean" && Array.isArray(o.uninterpreted_option) && (!o.uninterpreted_option.length || UninterpretedOption.isSDK(o.uninterpreted_option[0])));
|
|
2764
|
+
},
|
|
2765
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2766
|
+
if (message.messageSetWireFormat === true) {
|
|
2767
|
+
writer.uint32(8).bool(message.messageSetWireFormat);
|
|
2768
|
+
}
|
|
2769
|
+
if (message.noStandardDescriptorAccessor === true) {
|
|
2770
|
+
writer.uint32(16).bool(message.noStandardDescriptorAccessor);
|
|
2771
|
+
}
|
|
2772
|
+
if (message.deprecated === true) {
|
|
2773
|
+
writer.uint32(24).bool(message.deprecated);
|
|
2774
|
+
}
|
|
2775
|
+
if (message.mapEntry === true) {
|
|
2776
|
+
writer.uint32(56).bool(message.mapEntry);
|
|
2777
|
+
}
|
|
2778
|
+
if (message.deprecatedLegacyJsonFieldConflicts === true) {
|
|
2779
|
+
writer.uint32(88).bool(message.deprecatedLegacyJsonFieldConflicts);
|
|
2780
|
+
}
|
|
2781
|
+
if (message.features !== undefined) {
|
|
2782
|
+
FeatureSet.encode(message.features, writer.uint32(98).fork()).ldelim();
|
|
2783
|
+
}
|
|
2784
|
+
for (const v of message.uninterpretedOption) {
|
|
2785
|
+
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
2786
|
+
}
|
|
2787
|
+
return writer;
|
|
2788
|
+
},
|
|
2789
|
+
decode(input, length) {
|
|
2790
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2791
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2792
|
+
const message = createBaseMessageOptions();
|
|
2793
|
+
while (reader.pos < end) {
|
|
2794
|
+
const tag = reader.uint32();
|
|
2795
|
+
switch (tag >>> 3) {
|
|
2796
|
+
case 1:
|
|
2797
|
+
message.messageSetWireFormat = reader.bool();
|
|
2798
|
+
break;
|
|
2799
|
+
case 2:
|
|
2800
|
+
message.noStandardDescriptorAccessor = reader.bool();
|
|
2801
|
+
break;
|
|
2802
|
+
case 3:
|
|
2803
|
+
message.deprecated = reader.bool();
|
|
2804
|
+
break;
|
|
2805
|
+
case 7:
|
|
2806
|
+
message.mapEntry = reader.bool();
|
|
2807
|
+
break;
|
|
2808
|
+
case 11:
|
|
2809
|
+
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
|
|
2810
|
+
break;
|
|
2811
|
+
case 12:
|
|
2812
|
+
message.features = FeatureSet.decode(reader, reader.uint32());
|
|
2813
|
+
break;
|
|
2814
|
+
case 999:
|
|
2815
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
|
2816
|
+
break;
|
|
2817
|
+
default:
|
|
2818
|
+
reader.skipType(tag & 7);
|
|
2819
|
+
break;
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2822
|
+
return message;
|
|
2823
|
+
},
|
|
2824
|
+
fromPartial(object) {
|
|
2825
|
+
const message = createBaseMessageOptions();
|
|
2826
|
+
message.messageSetWireFormat = object.messageSetWireFormat ?? false;
|
|
2827
|
+
message.noStandardDescriptorAccessor = object.noStandardDescriptorAccessor ?? false;
|
|
2828
|
+
message.deprecated = object.deprecated ?? false;
|
|
2829
|
+
message.mapEntry = object.mapEntry ?? false;
|
|
2830
|
+
message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;
|
|
2831
|
+
message.features = object.features !== undefined && object.features !== null ? FeatureSet.fromPartial(object.features) : undefined;
|
|
2832
|
+
message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
|
|
2833
|
+
return message;
|
|
2834
|
+
},
|
|
2835
|
+
fromProtoMsg(message) {
|
|
2836
|
+
return MessageOptions.decode(message.value);
|
|
2837
|
+
},
|
|
2838
|
+
toProto(message) {
|
|
2839
|
+
return MessageOptions.encode(message).finish();
|
|
2840
|
+
},
|
|
2841
|
+
toProtoMsg(message) {
|
|
2842
|
+
return {
|
|
2843
|
+
typeUrl: "/google.protobuf.MessageOptions",
|
|
2844
|
+
value: MessageOptions.encode(message).finish()
|
|
2845
|
+
};
|
|
2846
|
+
},
|
|
2847
|
+
registerTypeUrl() {
|
|
2848
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(MessageOptions.typeUrl)) {
|
|
2849
|
+
return;
|
|
2850
|
+
}
|
|
2851
|
+
FeatureSet.registerTypeUrl();
|
|
2852
|
+
UninterpretedOption.registerTypeUrl();
|
|
2853
|
+
}
|
|
2854
|
+
};
|
|
2855
|
+
GlobalDecoderRegistry.register(MessageOptions.typeUrl, MessageOptions);
|
|
2856
|
+
function createBaseFieldOptions() {
|
|
2857
|
+
return {
|
|
2858
|
+
ctype: 1,
|
|
2859
|
+
packed: false,
|
|
2860
|
+
jstype: 1,
|
|
2861
|
+
lazy: false,
|
|
2862
|
+
unverifiedLazy: false,
|
|
2863
|
+
deprecated: false,
|
|
2864
|
+
weak: false,
|
|
2865
|
+
debugRedact: false,
|
|
2866
|
+
retention: 1,
|
|
2867
|
+
targets: [],
|
|
2868
|
+
editionDefaults: [],
|
|
2869
|
+
features: undefined,
|
|
2870
|
+
featureSupport: undefined,
|
|
2871
|
+
uninterpretedOption: []
|
|
2872
|
+
};
|
|
2873
|
+
}
|
|
2874
|
+
/**
|
|
2875
|
+
* @name FieldOptions
|
|
2876
|
+
* @package google.protobuf
|
|
2877
|
+
* @see proto type: google.protobuf.FieldOptions
|
|
2878
|
+
*/
|
|
2879
|
+
export const FieldOptions = {
|
|
2880
|
+
typeUrl: "/google.protobuf.FieldOptions",
|
|
2881
|
+
is(o) {
|
|
2882
|
+
return o && (o.$typeUrl === FieldOptions.typeUrl || isSet(o.ctype) && typeof o.packed === "boolean" && isSet(o.jstype) && typeof o.lazy === "boolean" && typeof o.unverifiedLazy === "boolean" && typeof o.deprecated === "boolean" && typeof o.weak === "boolean" && typeof o.debugRedact === "boolean" && isSet(o.retention) && Array.isArray(o.targets) && Array.isArray(o.editionDefaults) && (!o.editionDefaults.length || FieldOptions_EditionDefault.is(o.editionDefaults[0])) && Array.isArray(o.uninterpretedOption) && (!o.uninterpretedOption.length || UninterpretedOption.is(o.uninterpretedOption[0])));
|
|
2883
|
+
},
|
|
2884
|
+
isSDK(o) {
|
|
2885
|
+
return o && (o.$typeUrl === FieldOptions.typeUrl || isSet(o.ctype) && typeof o.packed === "boolean" && isSet(o.jstype) && typeof o.lazy === "boolean" && typeof o.unverified_lazy === "boolean" && typeof o.deprecated === "boolean" && typeof o.weak === "boolean" && typeof o.debug_redact === "boolean" && isSet(o.retention) && Array.isArray(o.targets) && Array.isArray(o.edition_defaults) && (!o.edition_defaults.length || FieldOptions_EditionDefault.isSDK(o.edition_defaults[0])) && Array.isArray(o.uninterpreted_option) && (!o.uninterpreted_option.length || UninterpretedOption.isSDK(o.uninterpreted_option[0])));
|
|
2886
|
+
},
|
|
2887
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2888
|
+
if (message.ctype !== 1) {
|
|
2889
|
+
writer.uint32(8).int32(message.ctype);
|
|
2890
|
+
}
|
|
2891
|
+
if (message.packed === true) {
|
|
2892
|
+
writer.uint32(16).bool(message.packed);
|
|
2893
|
+
}
|
|
2894
|
+
if (message.jstype !== 1) {
|
|
2895
|
+
writer.uint32(48).int32(message.jstype);
|
|
2896
|
+
}
|
|
2897
|
+
if (message.lazy === true) {
|
|
2898
|
+
writer.uint32(40).bool(message.lazy);
|
|
2899
|
+
}
|
|
2900
|
+
if (message.unverifiedLazy === true) {
|
|
2901
|
+
writer.uint32(120).bool(message.unverifiedLazy);
|
|
2902
|
+
}
|
|
2903
|
+
if (message.deprecated === true) {
|
|
2904
|
+
writer.uint32(24).bool(message.deprecated);
|
|
2905
|
+
}
|
|
2906
|
+
if (message.weak === true) {
|
|
2907
|
+
writer.uint32(80).bool(message.weak);
|
|
2908
|
+
}
|
|
2909
|
+
if (message.debugRedact === true) {
|
|
2910
|
+
writer.uint32(128).bool(message.debugRedact);
|
|
2911
|
+
}
|
|
2912
|
+
if (message.retention !== 1) {
|
|
2913
|
+
writer.uint32(136).int32(message.retention);
|
|
2914
|
+
}
|
|
2915
|
+
writer.uint32(154).fork();
|
|
2916
|
+
for (const v of message.targets) {
|
|
2917
|
+
writer.int32(v);
|
|
2918
|
+
}
|
|
2919
|
+
writer.ldelim();
|
|
2920
|
+
for (const v of message.editionDefaults) {
|
|
2921
|
+
FieldOptions_EditionDefault.encode(v, writer.uint32(162).fork()).ldelim();
|
|
2922
|
+
}
|
|
2923
|
+
if (message.features !== undefined) {
|
|
2924
|
+
FeatureSet.encode(message.features, writer.uint32(170).fork()).ldelim();
|
|
2925
|
+
}
|
|
2926
|
+
if (message.featureSupport !== undefined) {
|
|
2927
|
+
FieldOptions_FeatureSupport.encode(message.featureSupport, writer.uint32(178).fork()).ldelim();
|
|
2928
|
+
}
|
|
2929
|
+
for (const v of message.uninterpretedOption) {
|
|
2930
|
+
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
2931
|
+
}
|
|
2932
|
+
return writer;
|
|
2933
|
+
},
|
|
2934
|
+
decode(input, length) {
|
|
2935
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2936
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2937
|
+
const message = createBaseFieldOptions();
|
|
2938
|
+
while (reader.pos < end) {
|
|
2939
|
+
const tag = reader.uint32();
|
|
2940
|
+
switch (tag >>> 3) {
|
|
2941
|
+
case 1:
|
|
2942
|
+
message.ctype = reader.int32();
|
|
2943
|
+
break;
|
|
2944
|
+
case 2:
|
|
2945
|
+
message.packed = reader.bool();
|
|
2946
|
+
break;
|
|
2947
|
+
case 6:
|
|
2948
|
+
message.jstype = reader.int32();
|
|
2949
|
+
break;
|
|
2950
|
+
case 5:
|
|
2951
|
+
message.lazy = reader.bool();
|
|
2952
|
+
break;
|
|
2953
|
+
case 15:
|
|
2954
|
+
message.unverifiedLazy = reader.bool();
|
|
2955
|
+
break;
|
|
2956
|
+
case 3:
|
|
2957
|
+
message.deprecated = reader.bool();
|
|
2958
|
+
break;
|
|
2959
|
+
case 10:
|
|
2960
|
+
message.weak = reader.bool();
|
|
2961
|
+
break;
|
|
2962
|
+
case 16:
|
|
2963
|
+
message.debugRedact = reader.bool();
|
|
2964
|
+
break;
|
|
2965
|
+
case 17:
|
|
2966
|
+
message.retention = reader.int32();
|
|
2967
|
+
break;
|
|
2968
|
+
case 19:
|
|
2969
|
+
if ((tag & 7) === 2) {
|
|
2970
|
+
const end2 = reader.uint32() + reader.pos;
|
|
2971
|
+
while (reader.pos < end2) {
|
|
2972
|
+
message.targets.push(reader.int32());
|
|
2973
|
+
}
|
|
2974
|
+
}
|
|
2975
|
+
else {
|
|
2976
|
+
message.targets.push(reader.int32());
|
|
2977
|
+
}
|
|
2978
|
+
break;
|
|
2979
|
+
case 20:
|
|
2980
|
+
message.editionDefaults.push(FieldOptions_EditionDefault.decode(reader, reader.uint32()));
|
|
2981
|
+
break;
|
|
2982
|
+
case 21:
|
|
2983
|
+
message.features = FeatureSet.decode(reader, reader.uint32());
|
|
2984
|
+
break;
|
|
2985
|
+
case 22:
|
|
2986
|
+
message.featureSupport = FieldOptions_FeatureSupport.decode(reader, reader.uint32());
|
|
2987
|
+
break;
|
|
2988
|
+
case 999:
|
|
2989
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
|
2990
|
+
break;
|
|
2991
|
+
default:
|
|
2992
|
+
reader.skipType(tag & 7);
|
|
2993
|
+
break;
|
|
2994
|
+
}
|
|
2995
|
+
}
|
|
2996
|
+
return message;
|
|
2997
|
+
},
|
|
2998
|
+
fromPartial(object) {
|
|
2999
|
+
const message = createBaseFieldOptions();
|
|
3000
|
+
message.ctype = object.ctype ?? 1;
|
|
3001
|
+
message.packed = object.packed ?? false;
|
|
3002
|
+
message.jstype = object.jstype ?? 1;
|
|
3003
|
+
message.lazy = object.lazy ?? false;
|
|
3004
|
+
message.unverifiedLazy = object.unverifiedLazy ?? false;
|
|
3005
|
+
message.deprecated = object.deprecated ?? false;
|
|
3006
|
+
message.weak = object.weak ?? false;
|
|
3007
|
+
message.debugRedact = object.debugRedact ?? false;
|
|
3008
|
+
message.retention = object.retention ?? 1;
|
|
3009
|
+
message.targets = object.targets?.map(e => e) || [];
|
|
3010
|
+
message.editionDefaults = object.editionDefaults?.map(e => FieldOptions_EditionDefault.fromPartial(e)) || [];
|
|
3011
|
+
message.features = object.features !== undefined && object.features !== null ? FeatureSet.fromPartial(object.features) : undefined;
|
|
3012
|
+
message.featureSupport = object.featureSupport !== undefined && object.featureSupport !== null ? FieldOptions_FeatureSupport.fromPartial(object.featureSupport) : undefined;
|
|
3013
|
+
message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
|
|
3014
|
+
return message;
|
|
3015
|
+
},
|
|
3016
|
+
fromProtoMsg(message) {
|
|
3017
|
+
return FieldOptions.decode(message.value);
|
|
3018
|
+
},
|
|
3019
|
+
toProto(message) {
|
|
3020
|
+
return FieldOptions.encode(message).finish();
|
|
3021
|
+
},
|
|
3022
|
+
toProtoMsg(message) {
|
|
3023
|
+
return {
|
|
3024
|
+
typeUrl: "/google.protobuf.FieldOptions",
|
|
3025
|
+
value: FieldOptions.encode(message).finish()
|
|
3026
|
+
};
|
|
3027
|
+
},
|
|
3028
|
+
registerTypeUrl() {
|
|
3029
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(FieldOptions.typeUrl)) {
|
|
3030
|
+
return;
|
|
3031
|
+
}
|
|
3032
|
+
FieldOptions_EditionDefault.registerTypeUrl();
|
|
3033
|
+
FeatureSet.registerTypeUrl();
|
|
3034
|
+
FieldOptions_FeatureSupport.registerTypeUrl();
|
|
3035
|
+
UninterpretedOption.registerTypeUrl();
|
|
3036
|
+
}
|
|
3037
|
+
};
|
|
3038
|
+
GlobalDecoderRegistry.register(FieldOptions.typeUrl, FieldOptions);
|
|
3039
|
+
function createBaseFieldOptions_EditionDefault() {
|
|
3040
|
+
return {
|
|
3041
|
+
edition: 1,
|
|
3042
|
+
value: ""
|
|
3043
|
+
};
|
|
3044
|
+
}
|
|
3045
|
+
/**
|
|
3046
|
+
* @name FieldOptions_EditionDefault
|
|
3047
|
+
* @package google.protobuf
|
|
3048
|
+
* @see proto type: google.protobuf.EditionDefault
|
|
3049
|
+
*/
|
|
3050
|
+
export const FieldOptions_EditionDefault = {
|
|
3051
|
+
typeUrl: "/google.protobuf.EditionDefault",
|
|
3052
|
+
is(o) {
|
|
3053
|
+
return o && (o.$typeUrl === FieldOptions_EditionDefault.typeUrl || isSet(o.edition) && typeof o.value === "string");
|
|
3054
|
+
},
|
|
3055
|
+
isSDK(o) {
|
|
3056
|
+
return o && (o.$typeUrl === FieldOptions_EditionDefault.typeUrl || isSet(o.edition) && typeof o.value === "string");
|
|
3057
|
+
},
|
|
3058
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
3059
|
+
if (message.edition !== 1) {
|
|
3060
|
+
writer.uint32(24).int32(message.edition);
|
|
3061
|
+
}
|
|
3062
|
+
if (message.value !== "") {
|
|
3063
|
+
writer.uint32(18).string(message.value);
|
|
3064
|
+
}
|
|
3065
|
+
return writer;
|
|
3066
|
+
},
|
|
3067
|
+
decode(input, length) {
|
|
3068
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3069
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3070
|
+
const message = createBaseFieldOptions_EditionDefault();
|
|
3071
|
+
while (reader.pos < end) {
|
|
3072
|
+
const tag = reader.uint32();
|
|
3073
|
+
switch (tag >>> 3) {
|
|
3074
|
+
case 3:
|
|
3075
|
+
message.edition = reader.int32();
|
|
3076
|
+
break;
|
|
3077
|
+
case 2:
|
|
3078
|
+
message.value = reader.string();
|
|
3079
|
+
break;
|
|
3080
|
+
default:
|
|
3081
|
+
reader.skipType(tag & 7);
|
|
3082
|
+
break;
|
|
3083
|
+
}
|
|
3084
|
+
}
|
|
3085
|
+
return message;
|
|
3086
|
+
},
|
|
3087
|
+
fromPartial(object) {
|
|
3088
|
+
const message = createBaseFieldOptions_EditionDefault();
|
|
3089
|
+
message.edition = object.edition ?? 1;
|
|
3090
|
+
message.value = object.value ?? "";
|
|
3091
|
+
return message;
|
|
3092
|
+
},
|
|
3093
|
+
fromProtoMsg(message) {
|
|
3094
|
+
return FieldOptions_EditionDefault.decode(message.value);
|
|
3095
|
+
},
|
|
3096
|
+
toProto(message) {
|
|
3097
|
+
return FieldOptions_EditionDefault.encode(message).finish();
|
|
3098
|
+
},
|
|
3099
|
+
toProtoMsg(message) {
|
|
3100
|
+
return {
|
|
3101
|
+
typeUrl: "/google.protobuf.EditionDefault",
|
|
3102
|
+
value: FieldOptions_EditionDefault.encode(message).finish()
|
|
3103
|
+
};
|
|
3104
|
+
},
|
|
3105
|
+
registerTypeUrl() { }
|
|
3106
|
+
};
|
|
3107
|
+
GlobalDecoderRegistry.register(FieldOptions_EditionDefault.typeUrl, FieldOptions_EditionDefault);
|
|
3108
|
+
function createBaseFieldOptions_FeatureSupport() {
|
|
3109
|
+
return {
|
|
3110
|
+
editionIntroduced: 1,
|
|
3111
|
+
editionDeprecated: 1,
|
|
3112
|
+
deprecationWarning: "",
|
|
3113
|
+
editionRemoved: 1,
|
|
3114
|
+
removalError: ""
|
|
3115
|
+
};
|
|
3116
|
+
}
|
|
3117
|
+
/**
|
|
3118
|
+
* Information about the support window of a feature.
|
|
3119
|
+
* @name FieldOptions_FeatureSupport
|
|
3120
|
+
* @package google.protobuf
|
|
3121
|
+
* @see proto type: google.protobuf.FeatureSupport
|
|
3122
|
+
*/
|
|
3123
|
+
export const FieldOptions_FeatureSupport = {
|
|
3124
|
+
typeUrl: "/google.protobuf.FeatureSupport",
|
|
3125
|
+
is(o) {
|
|
3126
|
+
return o && (o.$typeUrl === FieldOptions_FeatureSupport.typeUrl || isSet(o.editionIntroduced) && isSet(o.editionDeprecated) && typeof o.deprecationWarning === "string" && isSet(o.editionRemoved) && typeof o.removalError === "string");
|
|
3127
|
+
},
|
|
3128
|
+
isSDK(o) {
|
|
3129
|
+
return o && (o.$typeUrl === FieldOptions_FeatureSupport.typeUrl || isSet(o.edition_introduced) && isSet(o.edition_deprecated) && typeof o.deprecation_warning === "string" && isSet(o.edition_removed) && typeof o.removal_error === "string");
|
|
3130
|
+
},
|
|
3131
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
3132
|
+
if (message.editionIntroduced !== 1) {
|
|
3133
|
+
writer.uint32(8).int32(message.editionIntroduced);
|
|
3134
|
+
}
|
|
3135
|
+
if (message.editionDeprecated !== 1) {
|
|
3136
|
+
writer.uint32(16).int32(message.editionDeprecated);
|
|
3137
|
+
}
|
|
3138
|
+
if (message.deprecationWarning !== "") {
|
|
3139
|
+
writer.uint32(26).string(message.deprecationWarning);
|
|
3140
|
+
}
|
|
3141
|
+
if (message.editionRemoved !== 1) {
|
|
3142
|
+
writer.uint32(32).int32(message.editionRemoved);
|
|
3143
|
+
}
|
|
3144
|
+
if (message.removalError !== "") {
|
|
3145
|
+
writer.uint32(42).string(message.removalError);
|
|
3146
|
+
}
|
|
3147
|
+
return writer;
|
|
3148
|
+
},
|
|
3149
|
+
decode(input, length) {
|
|
3150
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3151
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3152
|
+
const message = createBaseFieldOptions_FeatureSupport();
|
|
3153
|
+
while (reader.pos < end) {
|
|
3154
|
+
const tag = reader.uint32();
|
|
3155
|
+
switch (tag >>> 3) {
|
|
3156
|
+
case 1:
|
|
3157
|
+
message.editionIntroduced = reader.int32();
|
|
3158
|
+
break;
|
|
3159
|
+
case 2:
|
|
3160
|
+
message.editionDeprecated = reader.int32();
|
|
3161
|
+
break;
|
|
3162
|
+
case 3:
|
|
3163
|
+
message.deprecationWarning = reader.string();
|
|
3164
|
+
break;
|
|
3165
|
+
case 4:
|
|
3166
|
+
message.editionRemoved = reader.int32();
|
|
3167
|
+
break;
|
|
3168
|
+
case 5:
|
|
3169
|
+
message.removalError = reader.string();
|
|
3170
|
+
break;
|
|
3171
|
+
default:
|
|
3172
|
+
reader.skipType(tag & 7);
|
|
3173
|
+
break;
|
|
3174
|
+
}
|
|
3175
|
+
}
|
|
3176
|
+
return message;
|
|
3177
|
+
},
|
|
3178
|
+
fromPartial(object) {
|
|
3179
|
+
const message = createBaseFieldOptions_FeatureSupport();
|
|
3180
|
+
message.editionIntroduced = object.editionIntroduced ?? 1;
|
|
3181
|
+
message.editionDeprecated = object.editionDeprecated ?? 1;
|
|
3182
|
+
message.deprecationWarning = object.deprecationWarning ?? "";
|
|
3183
|
+
message.editionRemoved = object.editionRemoved ?? 1;
|
|
3184
|
+
message.removalError = object.removalError ?? "";
|
|
3185
|
+
return message;
|
|
3186
|
+
},
|
|
3187
|
+
fromProtoMsg(message) {
|
|
3188
|
+
return FieldOptions_FeatureSupport.decode(message.value);
|
|
3189
|
+
},
|
|
3190
|
+
toProto(message) {
|
|
3191
|
+
return FieldOptions_FeatureSupport.encode(message).finish();
|
|
3192
|
+
},
|
|
3193
|
+
toProtoMsg(message) {
|
|
3194
|
+
return {
|
|
3195
|
+
typeUrl: "/google.protobuf.FeatureSupport",
|
|
3196
|
+
value: FieldOptions_FeatureSupport.encode(message).finish()
|
|
3197
|
+
};
|
|
3198
|
+
},
|
|
3199
|
+
registerTypeUrl() { }
|
|
3200
|
+
};
|
|
3201
|
+
GlobalDecoderRegistry.register(FieldOptions_FeatureSupport.typeUrl, FieldOptions_FeatureSupport);
|
|
3202
|
+
function createBaseOneofOptions() {
|
|
3203
|
+
return {
|
|
3204
|
+
features: undefined,
|
|
3205
|
+
uninterpretedOption: []
|
|
3206
|
+
};
|
|
3207
|
+
}
|
|
3208
|
+
/**
|
|
3209
|
+
* @name OneofOptions
|
|
3210
|
+
* @package google.protobuf
|
|
3211
|
+
* @see proto type: google.protobuf.OneofOptions
|
|
3212
|
+
*/
|
|
3213
|
+
export const OneofOptions = {
|
|
3214
|
+
typeUrl: "/google.protobuf.OneofOptions",
|
|
3215
|
+
is(o) {
|
|
3216
|
+
return o && (o.$typeUrl === OneofOptions.typeUrl || Array.isArray(o.uninterpretedOption) && (!o.uninterpretedOption.length || UninterpretedOption.is(o.uninterpretedOption[0])));
|
|
3217
|
+
},
|
|
3218
|
+
isSDK(o) {
|
|
3219
|
+
return o && (o.$typeUrl === OneofOptions.typeUrl || Array.isArray(o.uninterpreted_option) && (!o.uninterpreted_option.length || UninterpretedOption.isSDK(o.uninterpreted_option[0])));
|
|
3220
|
+
},
|
|
3221
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
3222
|
+
if (message.features !== undefined) {
|
|
3223
|
+
FeatureSet.encode(message.features, writer.uint32(10).fork()).ldelim();
|
|
3224
|
+
}
|
|
3225
|
+
for (const v of message.uninterpretedOption) {
|
|
3226
|
+
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
3227
|
+
}
|
|
3228
|
+
return writer;
|
|
3229
|
+
},
|
|
3230
|
+
decode(input, length) {
|
|
3231
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3232
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3233
|
+
const message = createBaseOneofOptions();
|
|
3234
|
+
while (reader.pos < end) {
|
|
3235
|
+
const tag = reader.uint32();
|
|
3236
|
+
switch (tag >>> 3) {
|
|
3237
|
+
case 1:
|
|
3238
|
+
message.features = FeatureSet.decode(reader, reader.uint32());
|
|
3239
|
+
break;
|
|
3240
|
+
case 999:
|
|
3241
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
|
3242
|
+
break;
|
|
3243
|
+
default:
|
|
3244
|
+
reader.skipType(tag & 7);
|
|
3245
|
+
break;
|
|
3246
|
+
}
|
|
3247
|
+
}
|
|
3248
|
+
return message;
|
|
3249
|
+
},
|
|
3250
|
+
fromPartial(object) {
|
|
3251
|
+
const message = createBaseOneofOptions();
|
|
3252
|
+
message.features = object.features !== undefined && object.features !== null ? FeatureSet.fromPartial(object.features) : undefined;
|
|
3253
|
+
message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
|
|
3254
|
+
return message;
|
|
3255
|
+
},
|
|
3256
|
+
fromProtoMsg(message) {
|
|
3257
|
+
return OneofOptions.decode(message.value);
|
|
3258
|
+
},
|
|
3259
|
+
toProto(message) {
|
|
3260
|
+
return OneofOptions.encode(message).finish();
|
|
3261
|
+
},
|
|
3262
|
+
toProtoMsg(message) {
|
|
3263
|
+
return {
|
|
3264
|
+
typeUrl: "/google.protobuf.OneofOptions",
|
|
3265
|
+
value: OneofOptions.encode(message).finish()
|
|
3266
|
+
};
|
|
3267
|
+
},
|
|
3268
|
+
registerTypeUrl() {
|
|
3269
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(OneofOptions.typeUrl)) {
|
|
3270
|
+
return;
|
|
3271
|
+
}
|
|
3272
|
+
FeatureSet.registerTypeUrl();
|
|
3273
|
+
UninterpretedOption.registerTypeUrl();
|
|
3274
|
+
}
|
|
3275
|
+
};
|
|
3276
|
+
GlobalDecoderRegistry.register(OneofOptions.typeUrl, OneofOptions);
|
|
3277
|
+
function createBaseEnumOptions() {
|
|
3278
|
+
return {
|
|
3279
|
+
allowAlias: false,
|
|
3280
|
+
deprecated: false,
|
|
3281
|
+
deprecatedLegacyJsonFieldConflicts: false,
|
|
3282
|
+
features: undefined,
|
|
3283
|
+
uninterpretedOption: []
|
|
3284
|
+
};
|
|
3285
|
+
}
|
|
3286
|
+
/**
|
|
3287
|
+
* @name EnumOptions
|
|
3288
|
+
* @package google.protobuf
|
|
3289
|
+
* @see proto type: google.protobuf.EnumOptions
|
|
3290
|
+
*/
|
|
3291
|
+
export const EnumOptions = {
|
|
3292
|
+
typeUrl: "/google.protobuf.EnumOptions",
|
|
3293
|
+
is(o) {
|
|
3294
|
+
return o && (o.$typeUrl === EnumOptions.typeUrl || typeof o.allowAlias === "boolean" && typeof o.deprecated === "boolean" && typeof o.deprecatedLegacyJsonFieldConflicts === "boolean" && Array.isArray(o.uninterpretedOption) && (!o.uninterpretedOption.length || UninterpretedOption.is(o.uninterpretedOption[0])));
|
|
3295
|
+
},
|
|
3296
|
+
isSDK(o) {
|
|
3297
|
+
return o && (o.$typeUrl === EnumOptions.typeUrl || typeof o.allow_alias === "boolean" && typeof o.deprecated === "boolean" && typeof o.deprecated_legacy_json_field_conflicts === "boolean" && Array.isArray(o.uninterpreted_option) && (!o.uninterpreted_option.length || UninterpretedOption.isSDK(o.uninterpreted_option[0])));
|
|
3298
|
+
},
|
|
3299
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
3300
|
+
if (message.allowAlias === true) {
|
|
3301
|
+
writer.uint32(16).bool(message.allowAlias);
|
|
3302
|
+
}
|
|
3303
|
+
if (message.deprecated === true) {
|
|
3304
|
+
writer.uint32(24).bool(message.deprecated);
|
|
3305
|
+
}
|
|
3306
|
+
if (message.deprecatedLegacyJsonFieldConflicts === true) {
|
|
3307
|
+
writer.uint32(48).bool(message.deprecatedLegacyJsonFieldConflicts);
|
|
3308
|
+
}
|
|
3309
|
+
if (message.features !== undefined) {
|
|
3310
|
+
FeatureSet.encode(message.features, writer.uint32(58).fork()).ldelim();
|
|
3311
|
+
}
|
|
3312
|
+
for (const v of message.uninterpretedOption) {
|
|
3313
|
+
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
3314
|
+
}
|
|
3315
|
+
return writer;
|
|
3316
|
+
},
|
|
3317
|
+
decode(input, length) {
|
|
3318
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3319
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3320
|
+
const message = createBaseEnumOptions();
|
|
3321
|
+
while (reader.pos < end) {
|
|
3322
|
+
const tag = reader.uint32();
|
|
3323
|
+
switch (tag >>> 3) {
|
|
3324
|
+
case 2:
|
|
3325
|
+
message.allowAlias = reader.bool();
|
|
3326
|
+
break;
|
|
3327
|
+
case 3:
|
|
3328
|
+
message.deprecated = reader.bool();
|
|
3329
|
+
break;
|
|
3330
|
+
case 6:
|
|
3331
|
+
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
|
|
3332
|
+
break;
|
|
3333
|
+
case 7:
|
|
3334
|
+
message.features = FeatureSet.decode(reader, reader.uint32());
|
|
3335
|
+
break;
|
|
3336
|
+
case 999:
|
|
3337
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
|
3338
|
+
break;
|
|
3339
|
+
default:
|
|
3340
|
+
reader.skipType(tag & 7);
|
|
3341
|
+
break;
|
|
3342
|
+
}
|
|
3343
|
+
}
|
|
3344
|
+
return message;
|
|
3345
|
+
},
|
|
3346
|
+
fromPartial(object) {
|
|
3347
|
+
const message = createBaseEnumOptions();
|
|
3348
|
+
message.allowAlias = object.allowAlias ?? false;
|
|
3349
|
+
message.deprecated = object.deprecated ?? false;
|
|
3350
|
+
message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;
|
|
3351
|
+
message.features = object.features !== undefined && object.features !== null ? FeatureSet.fromPartial(object.features) : undefined;
|
|
3352
|
+
message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
|
|
3353
|
+
return message;
|
|
3354
|
+
},
|
|
3355
|
+
fromProtoMsg(message) {
|
|
3356
|
+
return EnumOptions.decode(message.value);
|
|
3357
|
+
},
|
|
3358
|
+
toProto(message) {
|
|
3359
|
+
return EnumOptions.encode(message).finish();
|
|
3360
|
+
},
|
|
3361
|
+
toProtoMsg(message) {
|
|
3362
|
+
return {
|
|
3363
|
+
typeUrl: "/google.protobuf.EnumOptions",
|
|
3364
|
+
value: EnumOptions.encode(message).finish()
|
|
3365
|
+
};
|
|
3366
|
+
},
|
|
3367
|
+
registerTypeUrl() {
|
|
3368
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(EnumOptions.typeUrl)) {
|
|
3369
|
+
return;
|
|
3370
|
+
}
|
|
3371
|
+
FeatureSet.registerTypeUrl();
|
|
3372
|
+
UninterpretedOption.registerTypeUrl();
|
|
3373
|
+
}
|
|
3374
|
+
};
|
|
3375
|
+
GlobalDecoderRegistry.register(EnumOptions.typeUrl, EnumOptions);
|
|
3376
|
+
function createBaseEnumValueOptions() {
|
|
3377
|
+
return {
|
|
3378
|
+
deprecated: false,
|
|
3379
|
+
features: undefined,
|
|
3380
|
+
debugRedact: false,
|
|
3381
|
+
featureSupport: undefined,
|
|
3382
|
+
uninterpretedOption: []
|
|
3383
|
+
};
|
|
3384
|
+
}
|
|
3385
|
+
/**
|
|
3386
|
+
* @name EnumValueOptions
|
|
3387
|
+
* @package google.protobuf
|
|
3388
|
+
* @see proto type: google.protobuf.EnumValueOptions
|
|
3389
|
+
*/
|
|
3390
|
+
export const EnumValueOptions = {
|
|
3391
|
+
typeUrl: "/google.protobuf.EnumValueOptions",
|
|
3392
|
+
is(o) {
|
|
3393
|
+
return o && (o.$typeUrl === EnumValueOptions.typeUrl || typeof o.deprecated === "boolean" && typeof o.debugRedact === "boolean" && Array.isArray(o.uninterpretedOption) && (!o.uninterpretedOption.length || UninterpretedOption.is(o.uninterpretedOption[0])));
|
|
3394
|
+
},
|
|
3395
|
+
isSDK(o) {
|
|
3396
|
+
return o && (o.$typeUrl === EnumValueOptions.typeUrl || typeof o.deprecated === "boolean" && typeof o.debug_redact === "boolean" && Array.isArray(o.uninterpreted_option) && (!o.uninterpreted_option.length || UninterpretedOption.isSDK(o.uninterpreted_option[0])));
|
|
3397
|
+
},
|
|
3398
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
3399
|
+
if (message.deprecated === true) {
|
|
3400
|
+
writer.uint32(8).bool(message.deprecated);
|
|
3401
|
+
}
|
|
3402
|
+
if (message.features !== undefined) {
|
|
3403
|
+
FeatureSet.encode(message.features, writer.uint32(18).fork()).ldelim();
|
|
3404
|
+
}
|
|
3405
|
+
if (message.debugRedact === true) {
|
|
3406
|
+
writer.uint32(24).bool(message.debugRedact);
|
|
3407
|
+
}
|
|
3408
|
+
if (message.featureSupport !== undefined) {
|
|
3409
|
+
FieldOptions_FeatureSupport.encode(message.featureSupport, writer.uint32(34).fork()).ldelim();
|
|
3410
|
+
}
|
|
3411
|
+
for (const v of message.uninterpretedOption) {
|
|
3412
|
+
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
3413
|
+
}
|
|
3414
|
+
return writer;
|
|
3415
|
+
},
|
|
3416
|
+
decode(input, length) {
|
|
3417
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3418
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3419
|
+
const message = createBaseEnumValueOptions();
|
|
3420
|
+
while (reader.pos < end) {
|
|
3421
|
+
const tag = reader.uint32();
|
|
3422
|
+
switch (tag >>> 3) {
|
|
3423
|
+
case 1:
|
|
3424
|
+
message.deprecated = reader.bool();
|
|
3425
|
+
break;
|
|
3426
|
+
case 2:
|
|
3427
|
+
message.features = FeatureSet.decode(reader, reader.uint32());
|
|
3428
|
+
break;
|
|
3429
|
+
case 3:
|
|
3430
|
+
message.debugRedact = reader.bool();
|
|
3431
|
+
break;
|
|
3432
|
+
case 4:
|
|
3433
|
+
message.featureSupport = FieldOptions_FeatureSupport.decode(reader, reader.uint32());
|
|
3434
|
+
break;
|
|
3435
|
+
case 999:
|
|
3436
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
|
3437
|
+
break;
|
|
3438
|
+
default:
|
|
3439
|
+
reader.skipType(tag & 7);
|
|
3440
|
+
break;
|
|
3441
|
+
}
|
|
3442
|
+
}
|
|
3443
|
+
return message;
|
|
3444
|
+
},
|
|
3445
|
+
fromPartial(object) {
|
|
3446
|
+
const message = createBaseEnumValueOptions();
|
|
3447
|
+
message.deprecated = object.deprecated ?? false;
|
|
3448
|
+
message.features = object.features !== undefined && object.features !== null ? FeatureSet.fromPartial(object.features) : undefined;
|
|
3449
|
+
message.debugRedact = object.debugRedact ?? false;
|
|
3450
|
+
message.featureSupport = object.featureSupport !== undefined && object.featureSupport !== null ? FieldOptions_FeatureSupport.fromPartial(object.featureSupport) : undefined;
|
|
3451
|
+
message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
|
|
3452
|
+
return message;
|
|
3453
|
+
},
|
|
3454
|
+
fromProtoMsg(message) {
|
|
3455
|
+
return EnumValueOptions.decode(message.value);
|
|
3456
|
+
},
|
|
3457
|
+
toProto(message) {
|
|
3458
|
+
return EnumValueOptions.encode(message).finish();
|
|
3459
|
+
},
|
|
3460
|
+
toProtoMsg(message) {
|
|
3461
|
+
return {
|
|
3462
|
+
typeUrl: "/google.protobuf.EnumValueOptions",
|
|
3463
|
+
value: EnumValueOptions.encode(message).finish()
|
|
3464
|
+
};
|
|
3465
|
+
},
|
|
3466
|
+
registerTypeUrl() {
|
|
3467
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(EnumValueOptions.typeUrl)) {
|
|
3468
|
+
return;
|
|
3469
|
+
}
|
|
3470
|
+
FeatureSet.registerTypeUrl();
|
|
3471
|
+
FieldOptions_FeatureSupport.registerTypeUrl();
|
|
3472
|
+
UninterpretedOption.registerTypeUrl();
|
|
3473
|
+
}
|
|
3474
|
+
};
|
|
3475
|
+
GlobalDecoderRegistry.register(EnumValueOptions.typeUrl, EnumValueOptions);
|
|
3476
|
+
function createBaseServiceOptions() {
|
|
3477
|
+
return {
|
|
3478
|
+
features: undefined,
|
|
3479
|
+
deprecated: false,
|
|
3480
|
+
uninterpretedOption: []
|
|
3481
|
+
};
|
|
3482
|
+
}
|
|
3483
|
+
/**
|
|
3484
|
+
* @name ServiceOptions
|
|
3485
|
+
* @package google.protobuf
|
|
3486
|
+
* @see proto type: google.protobuf.ServiceOptions
|
|
3487
|
+
*/
|
|
3488
|
+
export const ServiceOptions = {
|
|
3489
|
+
typeUrl: "/google.protobuf.ServiceOptions",
|
|
3490
|
+
is(o) {
|
|
3491
|
+
return o && (o.$typeUrl === ServiceOptions.typeUrl || typeof o.deprecated === "boolean" && Array.isArray(o.uninterpretedOption) && (!o.uninterpretedOption.length || UninterpretedOption.is(o.uninterpretedOption[0])));
|
|
3492
|
+
},
|
|
3493
|
+
isSDK(o) {
|
|
3494
|
+
return o && (o.$typeUrl === ServiceOptions.typeUrl || typeof o.deprecated === "boolean" && Array.isArray(o.uninterpreted_option) && (!o.uninterpreted_option.length || UninterpretedOption.isSDK(o.uninterpreted_option[0])));
|
|
3495
|
+
},
|
|
3496
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
3497
|
+
if (message.features !== undefined) {
|
|
3498
|
+
FeatureSet.encode(message.features, writer.uint32(274).fork()).ldelim();
|
|
3499
|
+
}
|
|
3500
|
+
if (message.deprecated === true) {
|
|
3501
|
+
writer.uint32(264).bool(message.deprecated);
|
|
3502
|
+
}
|
|
3503
|
+
for (const v of message.uninterpretedOption) {
|
|
3504
|
+
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
3505
|
+
}
|
|
3506
|
+
return writer;
|
|
3507
|
+
},
|
|
3508
|
+
decode(input, length) {
|
|
3509
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3510
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3511
|
+
const message = createBaseServiceOptions();
|
|
3512
|
+
while (reader.pos < end) {
|
|
3513
|
+
const tag = reader.uint32();
|
|
3514
|
+
switch (tag >>> 3) {
|
|
3515
|
+
case 34:
|
|
3516
|
+
message.features = FeatureSet.decode(reader, reader.uint32());
|
|
3517
|
+
break;
|
|
3518
|
+
case 33:
|
|
3519
|
+
message.deprecated = reader.bool();
|
|
3520
|
+
break;
|
|
3521
|
+
case 999:
|
|
3522
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
|
3523
|
+
break;
|
|
3524
|
+
default:
|
|
3525
|
+
reader.skipType(tag & 7);
|
|
3526
|
+
break;
|
|
3527
|
+
}
|
|
3528
|
+
}
|
|
3529
|
+
return message;
|
|
3530
|
+
},
|
|
3531
|
+
fromPartial(object) {
|
|
3532
|
+
const message = createBaseServiceOptions();
|
|
3533
|
+
message.features = object.features !== undefined && object.features !== null ? FeatureSet.fromPartial(object.features) : undefined;
|
|
3534
|
+
message.deprecated = object.deprecated ?? false;
|
|
3535
|
+
message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
|
|
3536
|
+
return message;
|
|
3537
|
+
},
|
|
3538
|
+
fromProtoMsg(message) {
|
|
3539
|
+
return ServiceOptions.decode(message.value);
|
|
3540
|
+
},
|
|
3541
|
+
toProto(message) {
|
|
3542
|
+
return ServiceOptions.encode(message).finish();
|
|
3543
|
+
},
|
|
3544
|
+
toProtoMsg(message) {
|
|
3545
|
+
return {
|
|
3546
|
+
typeUrl: "/google.protobuf.ServiceOptions",
|
|
3547
|
+
value: ServiceOptions.encode(message).finish()
|
|
3548
|
+
};
|
|
3549
|
+
},
|
|
3550
|
+
registerTypeUrl() {
|
|
3551
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(ServiceOptions.typeUrl)) {
|
|
3552
|
+
return;
|
|
3553
|
+
}
|
|
3554
|
+
FeatureSet.registerTypeUrl();
|
|
3555
|
+
UninterpretedOption.registerTypeUrl();
|
|
3556
|
+
}
|
|
3557
|
+
};
|
|
3558
|
+
GlobalDecoderRegistry.register(ServiceOptions.typeUrl, ServiceOptions);
|
|
3559
|
+
function createBaseMethodOptions() {
|
|
3560
|
+
return {
|
|
3561
|
+
deprecated: false,
|
|
3562
|
+
idempotencyLevel: 1,
|
|
3563
|
+
features: undefined,
|
|
3564
|
+
uninterpretedOption: []
|
|
3565
|
+
};
|
|
3566
|
+
}
|
|
3567
|
+
/**
|
|
3568
|
+
* @name MethodOptions
|
|
3569
|
+
* @package google.protobuf
|
|
3570
|
+
* @see proto type: google.protobuf.MethodOptions
|
|
3571
|
+
*/
|
|
3572
|
+
export const MethodOptions = {
|
|
3573
|
+
typeUrl: "/google.protobuf.MethodOptions",
|
|
3574
|
+
is(o) {
|
|
3575
|
+
return o && (o.$typeUrl === MethodOptions.typeUrl || typeof o.deprecated === "boolean" && isSet(o.idempotencyLevel) && Array.isArray(o.uninterpretedOption) && (!o.uninterpretedOption.length || UninterpretedOption.is(o.uninterpretedOption[0])));
|
|
3576
|
+
},
|
|
3577
|
+
isSDK(o) {
|
|
3578
|
+
return o && (o.$typeUrl === MethodOptions.typeUrl || typeof o.deprecated === "boolean" && isSet(o.idempotency_level) && Array.isArray(o.uninterpreted_option) && (!o.uninterpreted_option.length || UninterpretedOption.isSDK(o.uninterpreted_option[0])));
|
|
3579
|
+
},
|
|
3580
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
3581
|
+
if (message.deprecated === true) {
|
|
3582
|
+
writer.uint32(264).bool(message.deprecated);
|
|
3583
|
+
}
|
|
3584
|
+
if (message.idempotencyLevel !== 1) {
|
|
3585
|
+
writer.uint32(272).int32(message.idempotencyLevel);
|
|
3586
|
+
}
|
|
3587
|
+
if (message.features !== undefined) {
|
|
3588
|
+
FeatureSet.encode(message.features, writer.uint32(282).fork()).ldelim();
|
|
3589
|
+
}
|
|
3590
|
+
for (const v of message.uninterpretedOption) {
|
|
3591
|
+
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
3592
|
+
}
|
|
3593
|
+
return writer;
|
|
3594
|
+
},
|
|
3595
|
+
decode(input, length) {
|
|
3596
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3597
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3598
|
+
const message = createBaseMethodOptions();
|
|
3599
|
+
while (reader.pos < end) {
|
|
3600
|
+
const tag = reader.uint32();
|
|
3601
|
+
switch (tag >>> 3) {
|
|
3602
|
+
case 33:
|
|
3603
|
+
message.deprecated = reader.bool();
|
|
3604
|
+
break;
|
|
3605
|
+
case 34:
|
|
3606
|
+
message.idempotencyLevel = reader.int32();
|
|
3607
|
+
break;
|
|
3608
|
+
case 35:
|
|
3609
|
+
message.features = FeatureSet.decode(reader, reader.uint32());
|
|
3610
|
+
break;
|
|
3611
|
+
case 999:
|
|
3612
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
|
3613
|
+
break;
|
|
3614
|
+
default:
|
|
3615
|
+
reader.skipType(tag & 7);
|
|
3616
|
+
break;
|
|
3617
|
+
}
|
|
3618
|
+
}
|
|
3619
|
+
return message;
|
|
3620
|
+
},
|
|
3621
|
+
fromPartial(object) {
|
|
3622
|
+
const message = createBaseMethodOptions();
|
|
3623
|
+
message.deprecated = object.deprecated ?? false;
|
|
3624
|
+
message.idempotencyLevel = object.idempotencyLevel ?? 1;
|
|
3625
|
+
message.features = object.features !== undefined && object.features !== null ? FeatureSet.fromPartial(object.features) : undefined;
|
|
3626
|
+
message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
|
|
3627
|
+
return message;
|
|
3628
|
+
},
|
|
3629
|
+
fromProtoMsg(message) {
|
|
3630
|
+
return MethodOptions.decode(message.value);
|
|
3631
|
+
},
|
|
3632
|
+
toProto(message) {
|
|
3633
|
+
return MethodOptions.encode(message).finish();
|
|
3634
|
+
},
|
|
3635
|
+
toProtoMsg(message) {
|
|
3636
|
+
return {
|
|
3637
|
+
typeUrl: "/google.protobuf.MethodOptions",
|
|
3638
|
+
value: MethodOptions.encode(message).finish()
|
|
3639
|
+
};
|
|
3640
|
+
},
|
|
3641
|
+
registerTypeUrl() {
|
|
3642
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(MethodOptions.typeUrl)) {
|
|
3643
|
+
return;
|
|
3644
|
+
}
|
|
3645
|
+
FeatureSet.registerTypeUrl();
|
|
3646
|
+
UninterpretedOption.registerTypeUrl();
|
|
3647
|
+
}
|
|
3648
|
+
};
|
|
3649
|
+
GlobalDecoderRegistry.register(MethodOptions.typeUrl, MethodOptions);
|
|
3650
|
+
function createBaseUninterpretedOption() {
|
|
3651
|
+
return {
|
|
3652
|
+
name: [],
|
|
3653
|
+
identifierValue: "",
|
|
3654
|
+
positiveIntValue: 0,
|
|
3655
|
+
negativeIntValue: 0,
|
|
3656
|
+
doubleValue: 0,
|
|
3657
|
+
stringValue: new Uint8Array(),
|
|
3658
|
+
aggregateValue: ""
|
|
3659
|
+
};
|
|
3660
|
+
}
|
|
3661
|
+
/**
|
|
3662
|
+
* A message representing a option the parser does not recognize. This only
|
|
3663
|
+
* appears in options protos created by the compiler::Parser class.
|
|
3664
|
+
* DescriptorPool resolves these when building Descriptor objects. Therefore,
|
|
3665
|
+
* options protos in descriptor objects (e.g. returned by Descriptor::options(),
|
|
3666
|
+
* or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
|
|
3667
|
+
* in them.
|
|
3668
|
+
* @name UninterpretedOption
|
|
3669
|
+
* @package google.protobuf
|
|
3670
|
+
* @see proto type: google.protobuf.UninterpretedOption
|
|
3671
|
+
*/
|
|
3672
|
+
export const UninterpretedOption = {
|
|
3673
|
+
typeUrl: "/google.protobuf.UninterpretedOption",
|
|
3674
|
+
is(o) {
|
|
3675
|
+
return o && (o.$typeUrl === UninterpretedOption.typeUrl || Array.isArray(o.name) && (!o.name.length || UninterpretedOption_NamePart.is(o.name[0])) && typeof o.identifierValue === "string" && typeof o.positiveIntValue === "bigint" && typeof o.negativeIntValue === "bigint" && typeof o.doubleValue === "number" && (o.stringValue instanceof Uint8Array || typeof o.stringValue === "string") && typeof o.aggregateValue === "string");
|
|
3676
|
+
},
|
|
3677
|
+
isSDK(o) {
|
|
3678
|
+
return o && (o.$typeUrl === UninterpretedOption.typeUrl || Array.isArray(o.name) && (!o.name.length || UninterpretedOption_NamePart.isSDK(o.name[0])) && typeof o.identifier_value === "string" && typeof o.positive_int_value === "bigint" && typeof o.negative_int_value === "bigint" && typeof o.double_value === "number" && (o.string_value instanceof Uint8Array || typeof o.string_value === "string") && typeof o.aggregate_value === "string");
|
|
3679
|
+
},
|
|
3680
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
3681
|
+
for (const v of message.name) {
|
|
3682
|
+
UninterpretedOption_NamePart.encode(v, writer.uint32(18).fork()).ldelim();
|
|
3683
|
+
}
|
|
3684
|
+
if (message.identifierValue !== "") {
|
|
3685
|
+
writer.uint32(26).string(message.identifierValue);
|
|
3686
|
+
}
|
|
3687
|
+
if (message.positiveIntValue !== 0) {
|
|
3688
|
+
writer.uint32(32).uint64(message.positiveIntValue);
|
|
3689
|
+
}
|
|
3690
|
+
if (message.negativeIntValue !== 0) {
|
|
3691
|
+
writer.uint32(40).int64(message.negativeIntValue);
|
|
3692
|
+
}
|
|
3693
|
+
if (message.doubleValue !== 0) {
|
|
3694
|
+
writer.uint32(49).double(message.doubleValue);
|
|
3695
|
+
}
|
|
3696
|
+
if (message.stringValue.length !== 0) {
|
|
3697
|
+
writer.uint32(58).bytes(message.stringValue);
|
|
3698
|
+
}
|
|
3699
|
+
if (message.aggregateValue !== "") {
|
|
3700
|
+
writer.uint32(66).string(message.aggregateValue);
|
|
3701
|
+
}
|
|
3702
|
+
return writer;
|
|
3703
|
+
},
|
|
3704
|
+
decode(input, length) {
|
|
3705
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3706
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3707
|
+
const message = createBaseUninterpretedOption();
|
|
3708
|
+
while (reader.pos < end) {
|
|
3709
|
+
const tag = reader.uint32();
|
|
3710
|
+
switch (tag >>> 3) {
|
|
3711
|
+
case 2:
|
|
3712
|
+
message.name.push(UninterpretedOption_NamePart.decode(reader, reader.uint32()));
|
|
3713
|
+
break;
|
|
3714
|
+
case 3:
|
|
3715
|
+
message.identifierValue = reader.string();
|
|
3716
|
+
break;
|
|
3717
|
+
case 4:
|
|
3718
|
+
message.positiveIntValue = Number(reader.uint64().toString());
|
|
3719
|
+
break;
|
|
3720
|
+
case 5:
|
|
3721
|
+
message.negativeIntValue = Number(reader.int64().toString());
|
|
3722
|
+
break;
|
|
3723
|
+
case 6:
|
|
3724
|
+
message.doubleValue = reader.double();
|
|
3725
|
+
break;
|
|
3726
|
+
case 7:
|
|
3727
|
+
message.stringValue = reader.bytes();
|
|
3728
|
+
break;
|
|
3729
|
+
case 8:
|
|
3730
|
+
message.aggregateValue = reader.string();
|
|
3731
|
+
break;
|
|
3732
|
+
default:
|
|
3733
|
+
reader.skipType(tag & 7);
|
|
3734
|
+
break;
|
|
3735
|
+
}
|
|
3736
|
+
}
|
|
3737
|
+
return message;
|
|
3738
|
+
},
|
|
3739
|
+
fromPartial(object) {
|
|
3740
|
+
const message = createBaseUninterpretedOption();
|
|
3741
|
+
message.name = object.name?.map(e => UninterpretedOption_NamePart.fromPartial(e)) || [];
|
|
3742
|
+
message.identifierValue = object.identifierValue ?? "";
|
|
3743
|
+
message.positiveIntValue = object.positiveIntValue !== undefined && object.positiveIntValue !== null ? Number(object.positiveIntValue.toString()) : 0;
|
|
3744
|
+
message.negativeIntValue = object.negativeIntValue !== undefined && object.negativeIntValue !== null ? Number(object.negativeIntValue.toString()) : 0;
|
|
3745
|
+
message.doubleValue = object.doubleValue ?? 0;
|
|
3746
|
+
message.stringValue = object.stringValue ?? new Uint8Array();
|
|
3747
|
+
message.aggregateValue = object.aggregateValue ?? "";
|
|
3748
|
+
return message;
|
|
3749
|
+
},
|
|
3750
|
+
fromProtoMsg(message) {
|
|
3751
|
+
return UninterpretedOption.decode(message.value);
|
|
3752
|
+
},
|
|
3753
|
+
toProto(message) {
|
|
3754
|
+
return UninterpretedOption.encode(message).finish();
|
|
3755
|
+
},
|
|
3756
|
+
toProtoMsg(message) {
|
|
3757
|
+
return {
|
|
3758
|
+
typeUrl: "/google.protobuf.UninterpretedOption",
|
|
3759
|
+
value: UninterpretedOption.encode(message).finish()
|
|
3760
|
+
};
|
|
3761
|
+
},
|
|
3762
|
+
registerTypeUrl() {
|
|
3763
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(UninterpretedOption.typeUrl)) {
|
|
3764
|
+
return;
|
|
3765
|
+
}
|
|
3766
|
+
UninterpretedOption_NamePart.registerTypeUrl();
|
|
3767
|
+
}
|
|
3768
|
+
};
|
|
3769
|
+
GlobalDecoderRegistry.register(UninterpretedOption.typeUrl, UninterpretedOption);
|
|
3770
|
+
function createBaseUninterpretedOption_NamePart() {
|
|
3771
|
+
return {
|
|
3772
|
+
namePart: "",
|
|
3773
|
+
isExtension: false
|
|
3774
|
+
};
|
|
3775
|
+
}
|
|
3776
|
+
/**
|
|
3777
|
+
* The name of the uninterpreted option. Each string represents a segment in
|
|
3778
|
+
* a dot-separated name. is_extension is true iff a segment represents an
|
|
3779
|
+
* extension (denoted with parentheses in options specs in .proto files).
|
|
3780
|
+
* E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents
|
|
3781
|
+
* "foo.(bar.baz).moo".
|
|
3782
|
+
* @name UninterpretedOption_NamePart
|
|
3783
|
+
* @package google.protobuf
|
|
3784
|
+
* @see proto type: google.protobuf.NamePart
|
|
3785
|
+
*/
|
|
3786
|
+
export const UninterpretedOption_NamePart = {
|
|
3787
|
+
typeUrl: "/google.protobuf.NamePart",
|
|
3788
|
+
is(o) {
|
|
3789
|
+
return o && (o.$typeUrl === UninterpretedOption_NamePart.typeUrl || typeof o.namePart === "string" && typeof o.isExtension === "boolean");
|
|
3790
|
+
},
|
|
3791
|
+
isSDK(o) {
|
|
3792
|
+
return o && (o.$typeUrl === UninterpretedOption_NamePart.typeUrl || typeof o.name_part === "string" && typeof o.is_extension === "boolean");
|
|
3793
|
+
},
|
|
3794
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
3795
|
+
if (message.namePart !== "") {
|
|
3796
|
+
writer.uint32(10).string(message.namePart);
|
|
3797
|
+
}
|
|
3798
|
+
if (message.isExtension === true) {
|
|
3799
|
+
writer.uint32(16).bool(message.isExtension);
|
|
3800
|
+
}
|
|
3801
|
+
return writer;
|
|
3802
|
+
},
|
|
3803
|
+
decode(input, length) {
|
|
3804
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3805
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3806
|
+
const message = createBaseUninterpretedOption_NamePart();
|
|
3807
|
+
while (reader.pos < end) {
|
|
3808
|
+
const tag = reader.uint32();
|
|
3809
|
+
switch (tag >>> 3) {
|
|
3810
|
+
case 1:
|
|
3811
|
+
message.namePart = reader.string();
|
|
3812
|
+
break;
|
|
3813
|
+
case 2:
|
|
3814
|
+
message.isExtension = reader.bool();
|
|
3815
|
+
break;
|
|
3816
|
+
default:
|
|
3817
|
+
reader.skipType(tag & 7);
|
|
3818
|
+
break;
|
|
3819
|
+
}
|
|
3820
|
+
}
|
|
3821
|
+
return message;
|
|
3822
|
+
},
|
|
3823
|
+
fromPartial(object) {
|
|
3824
|
+
const message = createBaseUninterpretedOption_NamePart();
|
|
3825
|
+
message.namePart = object.namePart ?? "";
|
|
3826
|
+
message.isExtension = object.isExtension ?? false;
|
|
3827
|
+
return message;
|
|
3828
|
+
},
|
|
3829
|
+
fromProtoMsg(message) {
|
|
3830
|
+
return UninterpretedOption_NamePart.decode(message.value);
|
|
3831
|
+
},
|
|
3832
|
+
toProto(message) {
|
|
3833
|
+
return UninterpretedOption_NamePart.encode(message).finish();
|
|
3834
|
+
},
|
|
3835
|
+
toProtoMsg(message) {
|
|
3836
|
+
return {
|
|
3837
|
+
typeUrl: "/google.protobuf.NamePart",
|
|
3838
|
+
value: UninterpretedOption_NamePart.encode(message).finish()
|
|
3839
|
+
};
|
|
3840
|
+
},
|
|
3841
|
+
registerTypeUrl() { }
|
|
3842
|
+
};
|
|
3843
|
+
GlobalDecoderRegistry.register(UninterpretedOption_NamePart.typeUrl, UninterpretedOption_NamePart);
|
|
3844
|
+
function createBaseFeatureSet() {
|
|
3845
|
+
return {
|
|
3846
|
+
fieldPresence: 1,
|
|
3847
|
+
enumType: 1,
|
|
3848
|
+
repeatedFieldEncoding: 1,
|
|
3849
|
+
utf8Validation: 1,
|
|
3850
|
+
messageEncoding: 1,
|
|
3851
|
+
jsonFormat: 1,
|
|
3852
|
+
enforceNamingStyle: 1
|
|
3853
|
+
};
|
|
3854
|
+
}
|
|
3855
|
+
/**
|
|
3856
|
+
* TODO Enums in C++ gencode (and potentially other languages) are
|
|
3857
|
+
* not well scoped. This means that each of the feature enums below can clash
|
|
3858
|
+
* with each other. The short names we've chosen maximize call-site
|
|
3859
|
+
* readability, but leave us very open to this scenario. A future feature will
|
|
3860
|
+
* be designed and implemented to handle this, hopefully before we ever hit a
|
|
3861
|
+
* conflict here.
|
|
3862
|
+
* @name FeatureSet
|
|
3863
|
+
* @package google.protobuf
|
|
3864
|
+
* @see proto type: google.protobuf.FeatureSet
|
|
3865
|
+
*/
|
|
3866
|
+
export const FeatureSet = {
|
|
3867
|
+
typeUrl: "/google.protobuf.FeatureSet",
|
|
3868
|
+
is(o) {
|
|
3869
|
+
return o && (o.$typeUrl === FeatureSet.typeUrl || isSet(o.fieldPresence) && isSet(o.enumType) && isSet(o.repeatedFieldEncoding) && isSet(o.utf8Validation) && isSet(o.messageEncoding) && isSet(o.jsonFormat) && isSet(o.enforceNamingStyle));
|
|
3870
|
+
},
|
|
3871
|
+
isSDK(o) {
|
|
3872
|
+
return o && (o.$typeUrl === FeatureSet.typeUrl || isSet(o.field_presence) && isSet(o.enum_type) && isSet(o.repeated_field_encoding) && isSet(o.utf8_validation) && isSet(o.message_encoding) && isSet(o.json_format) && isSet(o.enforce_naming_style));
|
|
3873
|
+
},
|
|
3874
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
3875
|
+
if (message.fieldPresence !== 1) {
|
|
3876
|
+
writer.uint32(8).int32(message.fieldPresence);
|
|
3877
|
+
}
|
|
3878
|
+
if (message.enumType !== 1) {
|
|
3879
|
+
writer.uint32(16).int32(message.enumType);
|
|
3880
|
+
}
|
|
3881
|
+
if (message.repeatedFieldEncoding !== 1) {
|
|
3882
|
+
writer.uint32(24).int32(message.repeatedFieldEncoding);
|
|
3883
|
+
}
|
|
3884
|
+
if (message.utf8Validation !== 1) {
|
|
3885
|
+
writer.uint32(32).int32(message.utf8Validation);
|
|
3886
|
+
}
|
|
3887
|
+
if (message.messageEncoding !== 1) {
|
|
3888
|
+
writer.uint32(40).int32(message.messageEncoding);
|
|
3889
|
+
}
|
|
3890
|
+
if (message.jsonFormat !== 1) {
|
|
3891
|
+
writer.uint32(48).int32(message.jsonFormat);
|
|
3892
|
+
}
|
|
3893
|
+
if (message.enforceNamingStyle !== 1) {
|
|
3894
|
+
writer.uint32(56).int32(message.enforceNamingStyle);
|
|
3895
|
+
}
|
|
3896
|
+
return writer;
|
|
3897
|
+
},
|
|
3898
|
+
decode(input, length) {
|
|
3899
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3900
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3901
|
+
const message = createBaseFeatureSet();
|
|
3902
|
+
while (reader.pos < end) {
|
|
3903
|
+
const tag = reader.uint32();
|
|
3904
|
+
switch (tag >>> 3) {
|
|
3905
|
+
case 1:
|
|
3906
|
+
message.fieldPresence = reader.int32();
|
|
3907
|
+
break;
|
|
3908
|
+
case 2:
|
|
3909
|
+
message.enumType = reader.int32();
|
|
3910
|
+
break;
|
|
3911
|
+
case 3:
|
|
3912
|
+
message.repeatedFieldEncoding = reader.int32();
|
|
3913
|
+
break;
|
|
3914
|
+
case 4:
|
|
3915
|
+
message.utf8Validation = reader.int32();
|
|
3916
|
+
break;
|
|
3917
|
+
case 5:
|
|
3918
|
+
message.messageEncoding = reader.int32();
|
|
3919
|
+
break;
|
|
3920
|
+
case 6:
|
|
3921
|
+
message.jsonFormat = reader.int32();
|
|
3922
|
+
break;
|
|
3923
|
+
case 7:
|
|
3924
|
+
message.enforceNamingStyle = reader.int32();
|
|
3925
|
+
break;
|
|
3926
|
+
default:
|
|
3927
|
+
reader.skipType(tag & 7);
|
|
3928
|
+
break;
|
|
3929
|
+
}
|
|
3930
|
+
}
|
|
3931
|
+
return message;
|
|
3932
|
+
},
|
|
3933
|
+
fromPartial(object) {
|
|
3934
|
+
const message = createBaseFeatureSet();
|
|
3935
|
+
message.fieldPresence = object.fieldPresence ?? 1;
|
|
3936
|
+
message.enumType = object.enumType ?? 1;
|
|
3937
|
+
message.repeatedFieldEncoding = object.repeatedFieldEncoding ?? 1;
|
|
3938
|
+
message.utf8Validation = object.utf8Validation ?? 1;
|
|
3939
|
+
message.messageEncoding = object.messageEncoding ?? 1;
|
|
3940
|
+
message.jsonFormat = object.jsonFormat ?? 1;
|
|
3941
|
+
message.enforceNamingStyle = object.enforceNamingStyle ?? 1;
|
|
3942
|
+
return message;
|
|
3943
|
+
},
|
|
3944
|
+
fromProtoMsg(message) {
|
|
3945
|
+
return FeatureSet.decode(message.value);
|
|
3946
|
+
},
|
|
3947
|
+
toProto(message) {
|
|
3948
|
+
return FeatureSet.encode(message).finish();
|
|
3949
|
+
},
|
|
3950
|
+
toProtoMsg(message) {
|
|
3951
|
+
return {
|
|
3952
|
+
typeUrl: "/google.protobuf.FeatureSet",
|
|
3953
|
+
value: FeatureSet.encode(message).finish()
|
|
3954
|
+
};
|
|
3955
|
+
},
|
|
3956
|
+
registerTypeUrl() { }
|
|
3957
|
+
};
|
|
3958
|
+
GlobalDecoderRegistry.register(FeatureSet.typeUrl, FeatureSet);
|
|
3959
|
+
function createBaseFeatureSet_VisibilityFeature() {
|
|
3960
|
+
return {};
|
|
3961
|
+
}
|
|
3962
|
+
/**
|
|
3963
|
+
* @name FeatureSet_VisibilityFeature
|
|
3964
|
+
* @package google.protobuf
|
|
3965
|
+
* @see proto type: google.protobuf.VisibilityFeature
|
|
3966
|
+
*/
|
|
3967
|
+
export const FeatureSet_VisibilityFeature = {
|
|
3968
|
+
typeUrl: "/google.protobuf.VisibilityFeature",
|
|
3969
|
+
is(o) {
|
|
3970
|
+
return o && o.$typeUrl === FeatureSet_VisibilityFeature.typeUrl;
|
|
3971
|
+
},
|
|
3972
|
+
isSDK(o) {
|
|
3973
|
+
return o && o.$typeUrl === FeatureSet_VisibilityFeature.typeUrl;
|
|
3974
|
+
},
|
|
3975
|
+
encode(_, writer = _m0.Writer.create()) {
|
|
3976
|
+
return writer;
|
|
3977
|
+
},
|
|
3978
|
+
decode(input, length) {
|
|
3979
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3980
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3981
|
+
const message = createBaseFeatureSet_VisibilityFeature();
|
|
3982
|
+
while (reader.pos < end) {
|
|
3983
|
+
const tag = reader.uint32();
|
|
3984
|
+
switch (tag >>> 3) {
|
|
3985
|
+
default:
|
|
3986
|
+
reader.skipType(tag & 7);
|
|
3987
|
+
break;
|
|
3988
|
+
}
|
|
3989
|
+
}
|
|
3990
|
+
return message;
|
|
3991
|
+
},
|
|
3992
|
+
fromPartial(_) {
|
|
3993
|
+
const message = createBaseFeatureSet_VisibilityFeature();
|
|
3994
|
+
return message;
|
|
3995
|
+
},
|
|
3996
|
+
fromProtoMsg(message) {
|
|
3997
|
+
return FeatureSet_VisibilityFeature.decode(message.value);
|
|
3998
|
+
},
|
|
3999
|
+
toProto(message) {
|
|
4000
|
+
return FeatureSet_VisibilityFeature.encode(message).finish();
|
|
4001
|
+
},
|
|
4002
|
+
toProtoMsg(message) {
|
|
4003
|
+
return {
|
|
4004
|
+
typeUrl: "/google.protobuf.VisibilityFeature",
|
|
4005
|
+
value: FeatureSet_VisibilityFeature.encode(message).finish()
|
|
4006
|
+
};
|
|
4007
|
+
},
|
|
4008
|
+
registerTypeUrl() { }
|
|
4009
|
+
};
|
|
4010
|
+
GlobalDecoderRegistry.register(FeatureSet_VisibilityFeature.typeUrl, FeatureSet_VisibilityFeature);
|
|
4011
|
+
function createBaseFeatureSetDefaults() {
|
|
4012
|
+
return {
|
|
4013
|
+
defaults: [],
|
|
4014
|
+
minimumEdition: 1,
|
|
4015
|
+
maximumEdition: 1
|
|
4016
|
+
};
|
|
4017
|
+
}
|
|
4018
|
+
/**
|
|
4019
|
+
* A compiled specification for the defaults of a set of features. These
|
|
4020
|
+
* messages are generated from FeatureSet extensions and can be used to seed
|
|
4021
|
+
* feature resolution. The resolution with this object becomes a simple search
|
|
4022
|
+
* for the closest matching edition, followed by proto merges.
|
|
4023
|
+
* @name FeatureSetDefaults
|
|
4024
|
+
* @package google.protobuf
|
|
4025
|
+
* @see proto type: google.protobuf.FeatureSetDefaults
|
|
4026
|
+
*/
|
|
4027
|
+
export const FeatureSetDefaults = {
|
|
4028
|
+
typeUrl: "/google.protobuf.FeatureSetDefaults",
|
|
4029
|
+
is(o) {
|
|
4030
|
+
return o && (o.$typeUrl === FeatureSetDefaults.typeUrl || Array.isArray(o.defaults) && (!o.defaults.length || FeatureSetDefaults_FeatureSetEditionDefault.is(o.defaults[0])) && isSet(o.minimumEdition) && isSet(o.maximumEdition));
|
|
4031
|
+
},
|
|
4032
|
+
isSDK(o) {
|
|
4033
|
+
return o && (o.$typeUrl === FeatureSetDefaults.typeUrl || Array.isArray(o.defaults) && (!o.defaults.length || FeatureSetDefaults_FeatureSetEditionDefault.isSDK(o.defaults[0])) && isSet(o.minimum_edition) && isSet(o.maximum_edition));
|
|
4034
|
+
},
|
|
4035
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
4036
|
+
for (const v of message.defaults) {
|
|
4037
|
+
FeatureSetDefaults_FeatureSetEditionDefault.encode(v, writer.uint32(10).fork()).ldelim();
|
|
4038
|
+
}
|
|
4039
|
+
if (message.minimumEdition !== 1) {
|
|
4040
|
+
writer.uint32(32).int32(message.minimumEdition);
|
|
4041
|
+
}
|
|
4042
|
+
if (message.maximumEdition !== 1) {
|
|
4043
|
+
writer.uint32(40).int32(message.maximumEdition);
|
|
4044
|
+
}
|
|
4045
|
+
return writer;
|
|
4046
|
+
},
|
|
4047
|
+
decode(input, length) {
|
|
4048
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
4049
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4050
|
+
const message = createBaseFeatureSetDefaults();
|
|
4051
|
+
while (reader.pos < end) {
|
|
4052
|
+
const tag = reader.uint32();
|
|
4053
|
+
switch (tag >>> 3) {
|
|
4054
|
+
case 1:
|
|
4055
|
+
message.defaults.push(FeatureSetDefaults_FeatureSetEditionDefault.decode(reader, reader.uint32()));
|
|
4056
|
+
break;
|
|
4057
|
+
case 4:
|
|
4058
|
+
message.minimumEdition = reader.int32();
|
|
4059
|
+
break;
|
|
4060
|
+
case 5:
|
|
4061
|
+
message.maximumEdition = reader.int32();
|
|
4062
|
+
break;
|
|
4063
|
+
default:
|
|
4064
|
+
reader.skipType(tag & 7);
|
|
4065
|
+
break;
|
|
4066
|
+
}
|
|
4067
|
+
}
|
|
4068
|
+
return message;
|
|
4069
|
+
},
|
|
4070
|
+
fromPartial(object) {
|
|
4071
|
+
const message = createBaseFeatureSetDefaults();
|
|
4072
|
+
message.defaults = object.defaults?.map(e => FeatureSetDefaults_FeatureSetEditionDefault.fromPartial(e)) || [];
|
|
4073
|
+
message.minimumEdition = object.minimumEdition ?? 1;
|
|
4074
|
+
message.maximumEdition = object.maximumEdition ?? 1;
|
|
4075
|
+
return message;
|
|
4076
|
+
},
|
|
4077
|
+
fromProtoMsg(message) {
|
|
4078
|
+
return FeatureSetDefaults.decode(message.value);
|
|
4079
|
+
},
|
|
4080
|
+
toProto(message) {
|
|
4081
|
+
return FeatureSetDefaults.encode(message).finish();
|
|
4082
|
+
},
|
|
4083
|
+
toProtoMsg(message) {
|
|
4084
|
+
return {
|
|
4085
|
+
typeUrl: "/google.protobuf.FeatureSetDefaults",
|
|
4086
|
+
value: FeatureSetDefaults.encode(message).finish()
|
|
4087
|
+
};
|
|
4088
|
+
},
|
|
4089
|
+
registerTypeUrl() {
|
|
4090
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(FeatureSetDefaults.typeUrl)) {
|
|
4091
|
+
return;
|
|
4092
|
+
}
|
|
4093
|
+
FeatureSetDefaults_FeatureSetEditionDefault.registerTypeUrl();
|
|
4094
|
+
}
|
|
4095
|
+
};
|
|
4096
|
+
GlobalDecoderRegistry.register(FeatureSetDefaults.typeUrl, FeatureSetDefaults);
|
|
4097
|
+
function createBaseFeatureSetDefaults_FeatureSetEditionDefault() {
|
|
4098
|
+
return {
|
|
4099
|
+
edition: 1,
|
|
4100
|
+
overridableFeatures: undefined,
|
|
4101
|
+
fixedFeatures: undefined
|
|
4102
|
+
};
|
|
4103
|
+
}
|
|
4104
|
+
/**
|
|
4105
|
+
* A map from every known edition with a unique set of defaults to its
|
|
4106
|
+
* defaults. Not all editions may be contained here. For a given edition,
|
|
4107
|
+
* the defaults at the closest matching edition ordered at or before it should
|
|
4108
|
+
* be used. This field must be in strict ascending order by edition.
|
|
4109
|
+
* @name FeatureSetDefaults_FeatureSetEditionDefault
|
|
4110
|
+
* @package google.protobuf
|
|
4111
|
+
* @see proto type: google.protobuf.FeatureSetEditionDefault
|
|
4112
|
+
*/
|
|
4113
|
+
export const FeatureSetDefaults_FeatureSetEditionDefault = {
|
|
4114
|
+
typeUrl: "/google.protobuf.FeatureSetEditionDefault",
|
|
4115
|
+
is(o) {
|
|
4116
|
+
return o && (o.$typeUrl === FeatureSetDefaults_FeatureSetEditionDefault.typeUrl || isSet(o.edition));
|
|
4117
|
+
},
|
|
4118
|
+
isSDK(o) {
|
|
4119
|
+
return o && (o.$typeUrl === FeatureSetDefaults_FeatureSetEditionDefault.typeUrl || isSet(o.edition));
|
|
4120
|
+
},
|
|
4121
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
4122
|
+
if (message.edition !== 1) {
|
|
4123
|
+
writer.uint32(24).int32(message.edition);
|
|
4124
|
+
}
|
|
4125
|
+
if (message.overridableFeatures !== undefined) {
|
|
4126
|
+
FeatureSet.encode(message.overridableFeatures, writer.uint32(34).fork()).ldelim();
|
|
4127
|
+
}
|
|
4128
|
+
if (message.fixedFeatures !== undefined) {
|
|
4129
|
+
FeatureSet.encode(message.fixedFeatures, writer.uint32(42).fork()).ldelim();
|
|
4130
|
+
}
|
|
4131
|
+
return writer;
|
|
4132
|
+
},
|
|
4133
|
+
decode(input, length) {
|
|
4134
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
4135
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4136
|
+
const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();
|
|
4137
|
+
while (reader.pos < end) {
|
|
4138
|
+
const tag = reader.uint32();
|
|
4139
|
+
switch (tag >>> 3) {
|
|
4140
|
+
case 3:
|
|
4141
|
+
message.edition = reader.int32();
|
|
4142
|
+
break;
|
|
4143
|
+
case 4:
|
|
4144
|
+
message.overridableFeatures = FeatureSet.decode(reader, reader.uint32());
|
|
4145
|
+
break;
|
|
4146
|
+
case 5:
|
|
4147
|
+
message.fixedFeatures = FeatureSet.decode(reader, reader.uint32());
|
|
4148
|
+
break;
|
|
4149
|
+
default:
|
|
4150
|
+
reader.skipType(tag & 7);
|
|
4151
|
+
break;
|
|
4152
|
+
}
|
|
4153
|
+
}
|
|
4154
|
+
return message;
|
|
4155
|
+
},
|
|
4156
|
+
fromPartial(object) {
|
|
4157
|
+
const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();
|
|
4158
|
+
message.edition = object.edition ?? 1;
|
|
4159
|
+
message.overridableFeatures = object.overridableFeatures !== undefined && object.overridableFeatures !== null ? FeatureSet.fromPartial(object.overridableFeatures) : undefined;
|
|
4160
|
+
message.fixedFeatures = object.fixedFeatures !== undefined && object.fixedFeatures !== null ? FeatureSet.fromPartial(object.fixedFeatures) : undefined;
|
|
4161
|
+
return message;
|
|
4162
|
+
},
|
|
4163
|
+
fromProtoMsg(message) {
|
|
4164
|
+
return FeatureSetDefaults_FeatureSetEditionDefault.decode(message.value);
|
|
4165
|
+
},
|
|
4166
|
+
toProto(message) {
|
|
4167
|
+
return FeatureSetDefaults_FeatureSetEditionDefault.encode(message).finish();
|
|
4168
|
+
},
|
|
4169
|
+
toProtoMsg(message) {
|
|
4170
|
+
return {
|
|
4171
|
+
typeUrl: "/google.protobuf.FeatureSetEditionDefault",
|
|
4172
|
+
value: FeatureSetDefaults_FeatureSetEditionDefault.encode(message).finish()
|
|
4173
|
+
};
|
|
4174
|
+
},
|
|
4175
|
+
registerTypeUrl() {
|
|
4176
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(FeatureSetDefaults_FeatureSetEditionDefault.typeUrl)) {
|
|
4177
|
+
return;
|
|
4178
|
+
}
|
|
4179
|
+
FeatureSet.registerTypeUrl();
|
|
4180
|
+
}
|
|
4181
|
+
};
|
|
4182
|
+
GlobalDecoderRegistry.register(FeatureSetDefaults_FeatureSetEditionDefault.typeUrl, FeatureSetDefaults_FeatureSetEditionDefault);
|
|
4183
|
+
function createBaseSourceCodeInfo() {
|
|
4184
|
+
return {
|
|
4185
|
+
location: []
|
|
4186
|
+
};
|
|
4187
|
+
}
|
|
4188
|
+
/**
|
|
4189
|
+
* Encapsulates information about the original source file from which a
|
|
4190
|
+
* FileDescriptorProto was generated.
|
|
4191
|
+
* @name SourceCodeInfo
|
|
4192
|
+
* @package google.protobuf
|
|
4193
|
+
* @see proto type: google.protobuf.SourceCodeInfo
|
|
4194
|
+
*/
|
|
4195
|
+
export const SourceCodeInfo = {
|
|
4196
|
+
typeUrl: "/google.protobuf.SourceCodeInfo",
|
|
4197
|
+
is(o) {
|
|
4198
|
+
return o && (o.$typeUrl === SourceCodeInfo.typeUrl || Array.isArray(o.location) && (!o.location.length || SourceCodeInfo_Location.is(o.location[0])));
|
|
4199
|
+
},
|
|
4200
|
+
isSDK(o) {
|
|
4201
|
+
return o && (o.$typeUrl === SourceCodeInfo.typeUrl || Array.isArray(o.location) && (!o.location.length || SourceCodeInfo_Location.isSDK(o.location[0])));
|
|
4202
|
+
},
|
|
4203
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
4204
|
+
for (const v of message.location) {
|
|
4205
|
+
SourceCodeInfo_Location.encode(v, writer.uint32(10).fork()).ldelim();
|
|
4206
|
+
}
|
|
4207
|
+
return writer;
|
|
4208
|
+
},
|
|
4209
|
+
decode(input, length) {
|
|
4210
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
4211
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4212
|
+
const message = createBaseSourceCodeInfo();
|
|
4213
|
+
while (reader.pos < end) {
|
|
4214
|
+
const tag = reader.uint32();
|
|
4215
|
+
switch (tag >>> 3) {
|
|
4216
|
+
case 1:
|
|
4217
|
+
message.location.push(SourceCodeInfo_Location.decode(reader, reader.uint32()));
|
|
4218
|
+
break;
|
|
4219
|
+
default:
|
|
4220
|
+
reader.skipType(tag & 7);
|
|
4221
|
+
break;
|
|
4222
|
+
}
|
|
4223
|
+
}
|
|
4224
|
+
return message;
|
|
4225
|
+
},
|
|
4226
|
+
fromPartial(object) {
|
|
4227
|
+
const message = createBaseSourceCodeInfo();
|
|
4228
|
+
message.location = object.location?.map(e => SourceCodeInfo_Location.fromPartial(e)) || [];
|
|
4229
|
+
return message;
|
|
4230
|
+
},
|
|
4231
|
+
fromProtoMsg(message) {
|
|
4232
|
+
return SourceCodeInfo.decode(message.value);
|
|
4233
|
+
},
|
|
4234
|
+
toProto(message) {
|
|
4235
|
+
return SourceCodeInfo.encode(message).finish();
|
|
4236
|
+
},
|
|
4237
|
+
toProtoMsg(message) {
|
|
4238
|
+
return {
|
|
4239
|
+
typeUrl: "/google.protobuf.SourceCodeInfo",
|
|
4240
|
+
value: SourceCodeInfo.encode(message).finish()
|
|
4241
|
+
};
|
|
4242
|
+
},
|
|
4243
|
+
registerTypeUrl() {
|
|
4244
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(SourceCodeInfo.typeUrl)) {
|
|
4245
|
+
return;
|
|
4246
|
+
}
|
|
4247
|
+
SourceCodeInfo_Location.registerTypeUrl();
|
|
4248
|
+
}
|
|
4249
|
+
};
|
|
4250
|
+
GlobalDecoderRegistry.register(SourceCodeInfo.typeUrl, SourceCodeInfo);
|
|
4251
|
+
function createBaseSourceCodeInfo_Location() {
|
|
4252
|
+
return {
|
|
4253
|
+
path: [],
|
|
4254
|
+
span: [],
|
|
4255
|
+
leadingComments: "",
|
|
4256
|
+
trailingComments: "",
|
|
4257
|
+
leadingDetachedComments: []
|
|
4258
|
+
};
|
|
4259
|
+
}
|
|
4260
|
+
/**
|
|
4261
|
+
* @name SourceCodeInfo_Location
|
|
4262
|
+
* @package google.protobuf
|
|
4263
|
+
* @see proto type: google.protobuf.Location
|
|
4264
|
+
*/
|
|
4265
|
+
export const SourceCodeInfo_Location = {
|
|
4266
|
+
typeUrl: "/google.protobuf.Location",
|
|
4267
|
+
is(o) {
|
|
4268
|
+
return o && (o.$typeUrl === SourceCodeInfo_Location.typeUrl || Array.isArray(o.path) && (!o.path.length || typeof o.path[0] === "number") && Array.isArray(o.span) && (!o.span.length || typeof o.span[0] === "number") && typeof o.leadingComments === "string" && typeof o.trailingComments === "string" && Array.isArray(o.leadingDetachedComments) && (!o.leadingDetachedComments.length || typeof o.leadingDetachedComments[0] === "string"));
|
|
4269
|
+
},
|
|
4270
|
+
isSDK(o) {
|
|
4271
|
+
return o && (o.$typeUrl === SourceCodeInfo_Location.typeUrl || Array.isArray(o.path) && (!o.path.length || typeof o.path[0] === "number") && Array.isArray(o.span) && (!o.span.length || typeof o.span[0] === "number") && typeof o.leading_comments === "string" && typeof o.trailing_comments === "string" && Array.isArray(o.leading_detached_comments) && (!o.leading_detached_comments.length || typeof o.leading_detached_comments[0] === "string"));
|
|
4272
|
+
},
|
|
4273
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
4274
|
+
writer.uint32(10).fork();
|
|
4275
|
+
for (const v of message.path) {
|
|
4276
|
+
writer.int32(v);
|
|
4277
|
+
}
|
|
4278
|
+
writer.ldelim();
|
|
4279
|
+
writer.uint32(18).fork();
|
|
4280
|
+
for (const v of message.span) {
|
|
4281
|
+
writer.int32(v);
|
|
4282
|
+
}
|
|
4283
|
+
writer.ldelim();
|
|
4284
|
+
if (message.leadingComments !== "") {
|
|
4285
|
+
writer.uint32(26).string(message.leadingComments);
|
|
4286
|
+
}
|
|
4287
|
+
if (message.trailingComments !== "") {
|
|
4288
|
+
writer.uint32(34).string(message.trailingComments);
|
|
4289
|
+
}
|
|
4290
|
+
for (const v of message.leadingDetachedComments) {
|
|
4291
|
+
writer.uint32(50).string(v);
|
|
4292
|
+
}
|
|
4293
|
+
return writer;
|
|
4294
|
+
},
|
|
4295
|
+
decode(input, length) {
|
|
4296
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
4297
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4298
|
+
const message = createBaseSourceCodeInfo_Location();
|
|
4299
|
+
while (reader.pos < end) {
|
|
4300
|
+
const tag = reader.uint32();
|
|
4301
|
+
switch (tag >>> 3) {
|
|
4302
|
+
case 1:
|
|
4303
|
+
if ((tag & 7) === 2) {
|
|
4304
|
+
const end2 = reader.uint32() + reader.pos;
|
|
4305
|
+
while (reader.pos < end2) {
|
|
4306
|
+
message.path.push(reader.int32());
|
|
4307
|
+
}
|
|
4308
|
+
}
|
|
4309
|
+
else {
|
|
4310
|
+
message.path.push(reader.int32());
|
|
4311
|
+
}
|
|
4312
|
+
break;
|
|
4313
|
+
case 2:
|
|
4314
|
+
if ((tag & 7) === 2) {
|
|
4315
|
+
const end2 = reader.uint32() + reader.pos;
|
|
4316
|
+
while (reader.pos < end2) {
|
|
4317
|
+
message.span.push(reader.int32());
|
|
4318
|
+
}
|
|
4319
|
+
}
|
|
4320
|
+
else {
|
|
4321
|
+
message.span.push(reader.int32());
|
|
4322
|
+
}
|
|
4323
|
+
break;
|
|
4324
|
+
case 3:
|
|
4325
|
+
message.leadingComments = reader.string();
|
|
4326
|
+
break;
|
|
4327
|
+
case 4:
|
|
4328
|
+
message.trailingComments = reader.string();
|
|
4329
|
+
break;
|
|
4330
|
+
case 6:
|
|
4331
|
+
message.leadingDetachedComments.push(reader.string());
|
|
4332
|
+
break;
|
|
4333
|
+
default:
|
|
4334
|
+
reader.skipType(tag & 7);
|
|
4335
|
+
break;
|
|
4336
|
+
}
|
|
4337
|
+
}
|
|
4338
|
+
return message;
|
|
4339
|
+
},
|
|
4340
|
+
fromPartial(object) {
|
|
4341
|
+
const message = createBaseSourceCodeInfo_Location();
|
|
4342
|
+
message.path = object.path?.map(e => e) || [];
|
|
4343
|
+
message.span = object.span?.map(e => e) || [];
|
|
4344
|
+
message.leadingComments = object.leadingComments ?? "";
|
|
4345
|
+
message.trailingComments = object.trailingComments ?? "";
|
|
4346
|
+
message.leadingDetachedComments = object.leadingDetachedComments?.map(e => e) || [];
|
|
4347
|
+
return message;
|
|
4348
|
+
},
|
|
4349
|
+
fromProtoMsg(message) {
|
|
4350
|
+
return SourceCodeInfo_Location.decode(message.value);
|
|
4351
|
+
},
|
|
4352
|
+
toProto(message) {
|
|
4353
|
+
return SourceCodeInfo_Location.encode(message).finish();
|
|
4354
|
+
},
|
|
4355
|
+
toProtoMsg(message) {
|
|
4356
|
+
return {
|
|
4357
|
+
typeUrl: "/google.protobuf.Location",
|
|
4358
|
+
value: SourceCodeInfo_Location.encode(message).finish()
|
|
4359
|
+
};
|
|
4360
|
+
},
|
|
4361
|
+
registerTypeUrl() { }
|
|
4362
|
+
};
|
|
4363
|
+
GlobalDecoderRegistry.register(SourceCodeInfo_Location.typeUrl, SourceCodeInfo_Location);
|
|
4364
|
+
function createBaseGeneratedCodeInfo() {
|
|
4365
|
+
return {
|
|
4366
|
+
annotation: []
|
|
4367
|
+
};
|
|
4368
|
+
}
|
|
4369
|
+
/**
|
|
4370
|
+
* Describes the relationship between generated code and its original source
|
|
4371
|
+
* file. A GeneratedCodeInfo message is associated with only one generated
|
|
4372
|
+
* source file, but may contain references to different source .proto files.
|
|
4373
|
+
* @name GeneratedCodeInfo
|
|
4374
|
+
* @package google.protobuf
|
|
4375
|
+
* @see proto type: google.protobuf.GeneratedCodeInfo
|
|
4376
|
+
*/
|
|
4377
|
+
export const GeneratedCodeInfo = {
|
|
4378
|
+
typeUrl: "/google.protobuf.GeneratedCodeInfo",
|
|
4379
|
+
is(o) {
|
|
4380
|
+
return o && (o.$typeUrl === GeneratedCodeInfo.typeUrl || Array.isArray(o.annotation) && (!o.annotation.length || GeneratedCodeInfo_Annotation.is(o.annotation[0])));
|
|
4381
|
+
},
|
|
4382
|
+
isSDK(o) {
|
|
4383
|
+
return o && (o.$typeUrl === GeneratedCodeInfo.typeUrl || Array.isArray(o.annotation) && (!o.annotation.length || GeneratedCodeInfo_Annotation.isSDK(o.annotation[0])));
|
|
4384
|
+
},
|
|
4385
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
4386
|
+
for (const v of message.annotation) {
|
|
4387
|
+
GeneratedCodeInfo_Annotation.encode(v, writer.uint32(10).fork()).ldelim();
|
|
4388
|
+
}
|
|
4389
|
+
return writer;
|
|
4390
|
+
},
|
|
4391
|
+
decode(input, length) {
|
|
4392
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
4393
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4394
|
+
const message = createBaseGeneratedCodeInfo();
|
|
4395
|
+
while (reader.pos < end) {
|
|
4396
|
+
const tag = reader.uint32();
|
|
4397
|
+
switch (tag >>> 3) {
|
|
4398
|
+
case 1:
|
|
4399
|
+
message.annotation.push(GeneratedCodeInfo_Annotation.decode(reader, reader.uint32()));
|
|
4400
|
+
break;
|
|
4401
|
+
default:
|
|
4402
|
+
reader.skipType(tag & 7);
|
|
4403
|
+
break;
|
|
4404
|
+
}
|
|
4405
|
+
}
|
|
4406
|
+
return message;
|
|
4407
|
+
},
|
|
4408
|
+
fromPartial(object) {
|
|
4409
|
+
const message = createBaseGeneratedCodeInfo();
|
|
4410
|
+
message.annotation = object.annotation?.map(e => GeneratedCodeInfo_Annotation.fromPartial(e)) || [];
|
|
4411
|
+
return message;
|
|
4412
|
+
},
|
|
4413
|
+
fromProtoMsg(message) {
|
|
4414
|
+
return GeneratedCodeInfo.decode(message.value);
|
|
4415
|
+
},
|
|
4416
|
+
toProto(message) {
|
|
4417
|
+
return GeneratedCodeInfo.encode(message).finish();
|
|
4418
|
+
},
|
|
4419
|
+
toProtoMsg(message) {
|
|
4420
|
+
return {
|
|
4421
|
+
typeUrl: "/google.protobuf.GeneratedCodeInfo",
|
|
4422
|
+
value: GeneratedCodeInfo.encode(message).finish()
|
|
4423
|
+
};
|
|
4424
|
+
},
|
|
4425
|
+
registerTypeUrl() {
|
|
4426
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(GeneratedCodeInfo.typeUrl)) {
|
|
4427
|
+
return;
|
|
4428
|
+
}
|
|
4429
|
+
GeneratedCodeInfo_Annotation.registerTypeUrl();
|
|
4430
|
+
}
|
|
4431
|
+
};
|
|
4432
|
+
GlobalDecoderRegistry.register(GeneratedCodeInfo.typeUrl, GeneratedCodeInfo);
|
|
4433
|
+
function createBaseGeneratedCodeInfo_Annotation() {
|
|
4434
|
+
return {
|
|
4435
|
+
path: [],
|
|
4436
|
+
sourceFile: "",
|
|
4437
|
+
begin: 0,
|
|
4438
|
+
end: 0,
|
|
4439
|
+
semantic: 1
|
|
4440
|
+
};
|
|
4441
|
+
}
|
|
4442
|
+
/**
|
|
4443
|
+
* @name GeneratedCodeInfo_Annotation
|
|
4444
|
+
* @package google.protobuf
|
|
4445
|
+
* @see proto type: google.protobuf.Annotation
|
|
4446
|
+
*/
|
|
4447
|
+
export const GeneratedCodeInfo_Annotation = {
|
|
4448
|
+
typeUrl: "/google.protobuf.Annotation",
|
|
4449
|
+
is(o) {
|
|
4450
|
+
return o && (o.$typeUrl === GeneratedCodeInfo_Annotation.typeUrl || Array.isArray(o.path) && (!o.path.length || typeof o.path[0] === "number") && typeof o.sourceFile === "string" && typeof o.begin === "number" && typeof o.end === "number" && isSet(o.semantic));
|
|
4451
|
+
},
|
|
4452
|
+
isSDK(o) {
|
|
4453
|
+
return o && (o.$typeUrl === GeneratedCodeInfo_Annotation.typeUrl || Array.isArray(o.path) && (!o.path.length || typeof o.path[0] === "number") && typeof o.source_file === "string" && typeof o.begin === "number" && typeof o.end === "number" && isSet(o.semantic));
|
|
4454
|
+
},
|
|
4455
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
4456
|
+
writer.uint32(10).fork();
|
|
4457
|
+
for (const v of message.path) {
|
|
4458
|
+
writer.int32(v);
|
|
4459
|
+
}
|
|
4460
|
+
writer.ldelim();
|
|
4461
|
+
if (message.sourceFile !== "") {
|
|
4462
|
+
writer.uint32(18).string(message.sourceFile);
|
|
4463
|
+
}
|
|
4464
|
+
if (message.begin !== 0) {
|
|
4465
|
+
writer.uint32(24).int32(message.begin);
|
|
4466
|
+
}
|
|
4467
|
+
if (message.end !== 0) {
|
|
4468
|
+
writer.uint32(32).int32(message.end);
|
|
4469
|
+
}
|
|
4470
|
+
if (message.semantic !== 1) {
|
|
4471
|
+
writer.uint32(40).int32(message.semantic);
|
|
4472
|
+
}
|
|
4473
|
+
return writer;
|
|
4474
|
+
},
|
|
4475
|
+
decode(input, length) {
|
|
4476
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
4477
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4478
|
+
const message = createBaseGeneratedCodeInfo_Annotation();
|
|
4479
|
+
while (reader.pos < end) {
|
|
4480
|
+
const tag = reader.uint32();
|
|
4481
|
+
switch (tag >>> 3) {
|
|
4482
|
+
case 1:
|
|
4483
|
+
if ((tag & 7) === 2) {
|
|
4484
|
+
const end2 = reader.uint32() + reader.pos;
|
|
4485
|
+
while (reader.pos < end2) {
|
|
4486
|
+
message.path.push(reader.int32());
|
|
4487
|
+
}
|
|
4488
|
+
}
|
|
4489
|
+
else {
|
|
4490
|
+
message.path.push(reader.int32());
|
|
4491
|
+
}
|
|
4492
|
+
break;
|
|
4493
|
+
case 2:
|
|
4494
|
+
message.sourceFile = reader.string();
|
|
4495
|
+
break;
|
|
4496
|
+
case 3:
|
|
4497
|
+
message.begin = reader.int32();
|
|
4498
|
+
break;
|
|
4499
|
+
case 4:
|
|
4500
|
+
message.end = reader.int32();
|
|
4501
|
+
break;
|
|
4502
|
+
case 5:
|
|
4503
|
+
message.semantic = reader.int32();
|
|
4504
|
+
break;
|
|
4505
|
+
default:
|
|
4506
|
+
reader.skipType(tag & 7);
|
|
4507
|
+
break;
|
|
4508
|
+
}
|
|
4509
|
+
}
|
|
4510
|
+
return message;
|
|
4511
|
+
},
|
|
4512
|
+
fromPartial(object) {
|
|
4513
|
+
const message = createBaseGeneratedCodeInfo_Annotation();
|
|
4514
|
+
message.path = object.path?.map(e => e) || [];
|
|
4515
|
+
message.sourceFile = object.sourceFile ?? "";
|
|
4516
|
+
message.begin = object.begin ?? 0;
|
|
4517
|
+
message.end = object.end ?? 0;
|
|
4518
|
+
message.semantic = object.semantic ?? 1;
|
|
4519
|
+
return message;
|
|
4520
|
+
},
|
|
4521
|
+
fromProtoMsg(message) {
|
|
4522
|
+
return GeneratedCodeInfo_Annotation.decode(message.value);
|
|
4523
|
+
},
|
|
4524
|
+
toProto(message) {
|
|
4525
|
+
return GeneratedCodeInfo_Annotation.encode(message).finish();
|
|
4526
|
+
},
|
|
4527
|
+
toProtoMsg(message) {
|
|
4528
|
+
return {
|
|
4529
|
+
typeUrl: "/google.protobuf.Annotation",
|
|
4530
|
+
value: GeneratedCodeInfo_Annotation.encode(message).finish()
|
|
4531
|
+
};
|
|
4532
|
+
},
|
|
4533
|
+
registerTypeUrl() { }
|
|
4534
|
+
};
|
|
4535
|
+
GlobalDecoderRegistry.register(GeneratedCodeInfo_Annotation.typeUrl, GeneratedCodeInfo_Annotation);
|