@bufbuild/protobuf 1.4.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/google/protobuf/descriptor_pb.d.ts +153 -35
- package/dist/cjs/google/protobuf/descriptor_pb.js +184 -34
- package/dist/cjs/google/protobuf/struct_pb.js +1 -1
- package/dist/cjs/google/protobuf/type_pb.js +1 -1
- package/dist/esm/google/protobuf/descriptor_pb.d.ts +153 -35
- package/dist/esm/google/protobuf/descriptor_pb.js +181 -33
- package/dist/esm/google/protobuf/struct_pb.js +1 -1
- package/dist/esm/google/protobuf/type_pb.js +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,66 @@
|
|
|
1
|
+
import { proto2 } from "../../proto2.js";
|
|
1
2
|
import type { PartialMessage, PlainMessage } from "../../message.js";
|
|
2
3
|
import { Message } from "../../message.js";
|
|
3
|
-
import { proto2 } from "../../proto2.js";
|
|
4
4
|
import type { FieldList } from "../../field-list.js";
|
|
5
5
|
import type { BinaryReadOptions } from "../../binary-format.js";
|
|
6
6
|
import type { JsonReadOptions, JsonValue } from "../../json-format.js";
|
|
7
|
+
/**
|
|
8
|
+
* The full set of known editions.
|
|
9
|
+
*
|
|
10
|
+
* @generated from enum google.protobuf.Edition
|
|
11
|
+
*/
|
|
12
|
+
export declare enum Edition {
|
|
13
|
+
/**
|
|
14
|
+
* A placeholder for an unknown edition value.
|
|
15
|
+
*
|
|
16
|
+
* @generated from enum value: EDITION_UNKNOWN = 0;
|
|
17
|
+
*/
|
|
18
|
+
EDITION_UNKNOWN = 0,
|
|
19
|
+
/**
|
|
20
|
+
* Legacy syntax "editions". These pre-date editions, but behave much like
|
|
21
|
+
* distinct editions. These can't be used to specify the edition of proto
|
|
22
|
+
* files, but feature definitions must supply proto2/proto3 defaults for
|
|
23
|
+
* backwards compatibility.
|
|
24
|
+
*
|
|
25
|
+
* @generated from enum value: EDITION_PROTO2 = 998;
|
|
26
|
+
*/
|
|
27
|
+
EDITION_PROTO2 = 998,
|
|
28
|
+
/**
|
|
29
|
+
* @generated from enum value: EDITION_PROTO3 = 999;
|
|
30
|
+
*/
|
|
31
|
+
EDITION_PROTO3 = 999,
|
|
32
|
+
/**
|
|
33
|
+
* Editions that have been released. The specific values are arbitrary and
|
|
34
|
+
* should not be depended on, but they will always be time-ordered for easy
|
|
35
|
+
* comparison.
|
|
36
|
+
*
|
|
37
|
+
* @generated from enum value: EDITION_2023 = 1000;
|
|
38
|
+
*/
|
|
39
|
+
EDITION_2023 = 1000,
|
|
40
|
+
/**
|
|
41
|
+
* Placeholder editions for testing feature resolution. These should not be
|
|
42
|
+
* used or relyed on outside of tests.
|
|
43
|
+
*
|
|
44
|
+
* @generated from enum value: EDITION_1_TEST_ONLY = 1;
|
|
45
|
+
*/
|
|
46
|
+
EDITION_1_TEST_ONLY = 1,
|
|
47
|
+
/**
|
|
48
|
+
* @generated from enum value: EDITION_2_TEST_ONLY = 2;
|
|
49
|
+
*/
|
|
50
|
+
EDITION_2_TEST_ONLY = 2,
|
|
51
|
+
/**
|
|
52
|
+
* @generated from enum value: EDITION_99997_TEST_ONLY = 99997;
|
|
53
|
+
*/
|
|
54
|
+
EDITION_99997_TEST_ONLY = 99997,
|
|
55
|
+
/**
|
|
56
|
+
* @generated from enum value: EDITION_99998_TEST_ONLY = 99998;
|
|
57
|
+
*/
|
|
58
|
+
EDITION_99998_TEST_ONLY = 99998,
|
|
59
|
+
/**
|
|
60
|
+
* @generated from enum value: EDITION_99999_TEST_ONLY = 99999;
|
|
61
|
+
*/
|
|
62
|
+
EDITION_99999_TEST_ONLY = 99999
|
|
63
|
+
}
|
|
7
64
|
/**
|
|
8
65
|
* The protocol compiler can output a FileDescriptorSet containing the .proto
|
|
9
66
|
* files it parses.
|
|
@@ -102,11 +159,11 @@ export declare class FileDescriptorProto extends Message<FileDescriptorProto> {
|
|
|
102
159
|
*/
|
|
103
160
|
syntax?: string;
|
|
104
161
|
/**
|
|
105
|
-
* The edition of the proto file
|
|
162
|
+
* The edition of the proto file.
|
|
106
163
|
*
|
|
107
|
-
* @generated from field: optional
|
|
164
|
+
* @generated from field: optional google.protobuf.Edition edition = 14;
|
|
108
165
|
*/
|
|
109
|
-
edition?:
|
|
166
|
+
edition?: Edition;
|
|
110
167
|
constructor(data?: PartialMessage<FileDescriptorProto>);
|
|
111
168
|
static readonly runtime: typeof proto2;
|
|
112
169
|
static readonly typeName = "google.protobuf.FileDescriptorProto";
|
|
@@ -258,7 +315,7 @@ export declare class ExtensionRangeOptions extends Message<ExtensionRangeOptions
|
|
|
258
315
|
features?: FeatureSet;
|
|
259
316
|
/**
|
|
260
317
|
* The verification state of the range.
|
|
261
|
-
* TODO
|
|
318
|
+
* TODO: flip the default to DECLARATION once all empty ranges
|
|
262
319
|
* are marked as UNVERIFIED.
|
|
263
320
|
*
|
|
264
321
|
* @generated from field: optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED];
|
|
@@ -496,9 +553,10 @@ export declare enum FieldDescriptorProto_Type {
|
|
|
496
553
|
STRING = 9,
|
|
497
554
|
/**
|
|
498
555
|
* Tag-delimited aggregate.
|
|
499
|
-
* Group type is deprecated and not supported
|
|
556
|
+
* Group type is deprecated and not supported after google.protobuf. However, Proto3
|
|
500
557
|
* implementations should still be able to parse the group wire format and
|
|
501
|
-
* treat group fields as unknown fields.
|
|
558
|
+
* treat group fields as unknown fields. In Editions, the group wire format
|
|
559
|
+
* can be enabled via the `message_encoding` feature.
|
|
502
560
|
*
|
|
503
561
|
* @generated from enum value: TYPE_GROUP = 10;
|
|
504
562
|
*/
|
|
@@ -555,13 +613,17 @@ export declare enum FieldDescriptorProto_Label {
|
|
|
555
613
|
*/
|
|
556
614
|
OPTIONAL = 1,
|
|
557
615
|
/**
|
|
558
|
-
* @generated from enum value:
|
|
616
|
+
* @generated from enum value: LABEL_REPEATED = 3;
|
|
559
617
|
*/
|
|
560
|
-
|
|
618
|
+
REPEATED = 3,
|
|
561
619
|
/**
|
|
562
|
-
*
|
|
620
|
+
* The required label is only allowed in google.protobuf. In proto3 and Editions
|
|
621
|
+
* it's explicitly prohibited. In Editions, the `field_presence` feature
|
|
622
|
+
* can be used to get this behavior.
|
|
623
|
+
*
|
|
624
|
+
* @generated from enum value: LABEL_REQUIRED = 2;
|
|
563
625
|
*/
|
|
564
|
-
|
|
626
|
+
REQUIRED = 2
|
|
565
627
|
}
|
|
566
628
|
/**
|
|
567
629
|
* Describes a oneof.
|
|
@@ -1050,7 +1112,7 @@ export declare class MessageOptions extends Message<MessageOptions> {
|
|
|
1050
1112
|
* This should only be used as a temporary measure against broken builds due
|
|
1051
1113
|
* to the change in behavior for JSON field name conflicts.
|
|
1052
1114
|
*
|
|
1053
|
-
* TODO
|
|
1115
|
+
* TODO This is legacy behavior we plan to remove once downstream
|
|
1054
1116
|
* teams have had time to migrate.
|
|
1055
1117
|
*
|
|
1056
1118
|
* @generated from field: optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];
|
|
@@ -1098,7 +1160,9 @@ export declare class FieldOptions extends Message<FieldOptions> {
|
|
|
1098
1160
|
* a more efficient representation on the wire. Rather than repeatedly
|
|
1099
1161
|
* writing the tag and type for each element, the entire array is encoded as
|
|
1100
1162
|
* a single length-delimited blob. In proto3, only explicit setting it to
|
|
1101
|
-
* false will avoid using packed encoding.
|
|
1163
|
+
* false will avoid using packed encoding. This option is prohibited in
|
|
1164
|
+
* Editions, but the `repeated_field_encoding` feature can be used to control
|
|
1165
|
+
* the behavior.
|
|
1102
1166
|
*
|
|
1103
1167
|
* @generated from field: optional bool packed = 2;
|
|
1104
1168
|
*/
|
|
@@ -1342,9 +1406,9 @@ export declare enum FieldOptions_OptionTargetType {
|
|
|
1342
1406
|
*/
|
|
1343
1407
|
export declare class FieldOptions_EditionDefault extends Message<FieldOptions_EditionDefault> {
|
|
1344
1408
|
/**
|
|
1345
|
-
* @generated from field: optional
|
|
1409
|
+
* @generated from field: optional google.protobuf.Edition edition = 3;
|
|
1346
1410
|
*/
|
|
1347
|
-
edition?:
|
|
1411
|
+
edition?: Edition;
|
|
1348
1412
|
/**
|
|
1349
1413
|
* Textproto value.
|
|
1350
1414
|
*
|
|
@@ -1410,7 +1474,7 @@ export declare class EnumOptions extends Message<EnumOptions> {
|
|
|
1410
1474
|
* and strips underscored from the fields before comparison in proto3 only.
|
|
1411
1475
|
* The new behavior takes `json_name` into account and applies to proto2 as
|
|
1412
1476
|
* well.
|
|
1413
|
-
* TODO
|
|
1477
|
+
* TODO Remove this legacy behavior once downstream teams have
|
|
1414
1478
|
* had time to migrate.
|
|
1415
1479
|
*
|
|
1416
1480
|
* @generated from field: optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];
|
|
@@ -1656,7 +1720,7 @@ export declare class UninterpretedOption_NamePart extends Message<UninterpretedO
|
|
|
1656
1720
|
static equals(a: UninterpretedOption_NamePart | PlainMessage<UninterpretedOption_NamePart> | undefined, b: UninterpretedOption_NamePart | PlainMessage<UninterpretedOption_NamePart> | undefined): boolean;
|
|
1657
1721
|
}
|
|
1658
1722
|
/**
|
|
1659
|
-
* TODO
|
|
1723
|
+
* TODO Enums in C++ gencode (and potentially other languages) are
|
|
1660
1724
|
* not well scoped. This means that each of the feature enums below can clash
|
|
1661
1725
|
* with each other. The short names we've chosen maximize call-site
|
|
1662
1726
|
* readability, but leave us very open to this scenario. A future feature will
|
|
@@ -1679,9 +1743,9 @@ export declare class FeatureSet extends Message<FeatureSet> {
|
|
|
1679
1743
|
*/
|
|
1680
1744
|
repeatedFieldEncoding?: FeatureSet_RepeatedFieldEncoding;
|
|
1681
1745
|
/**
|
|
1682
|
-
* @generated from field: optional google.protobuf.FeatureSet.
|
|
1746
|
+
* @generated from field: optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4;
|
|
1683
1747
|
*/
|
|
1684
|
-
|
|
1748
|
+
utf8Validation?: FeatureSet_Utf8Validation;
|
|
1685
1749
|
/**
|
|
1686
1750
|
* @generated from field: optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5;
|
|
1687
1751
|
*/
|
|
@@ -1690,10 +1754,6 @@ export declare class FeatureSet extends Message<FeatureSet> {
|
|
|
1690
1754
|
* @generated from field: optional google.protobuf.FeatureSet.JsonFormat json_format = 6;
|
|
1691
1755
|
*/
|
|
1692
1756
|
jsonFormat?: FeatureSet_JsonFormat;
|
|
1693
|
-
/**
|
|
1694
|
-
* @generated from field: optional google.protobuf.FeatureSet raw_features = 999;
|
|
1695
|
-
*/
|
|
1696
|
-
rawFeatures?: FeatureSet;
|
|
1697
1757
|
constructor(data?: PartialMessage<FeatureSet>);
|
|
1698
1758
|
static readonly runtime: typeof proto2;
|
|
1699
1759
|
static readonly typeName = "google.protobuf.FeatureSet";
|
|
@@ -1759,25 +1819,21 @@ export declare enum FeatureSet_RepeatedFieldEncoding {
|
|
|
1759
1819
|
EXPANDED = 2
|
|
1760
1820
|
}
|
|
1761
1821
|
/**
|
|
1762
|
-
* @generated from enum google.protobuf.FeatureSet.
|
|
1822
|
+
* @generated from enum google.protobuf.FeatureSet.Utf8Validation
|
|
1763
1823
|
*/
|
|
1764
|
-
export declare enum
|
|
1765
|
-
/**
|
|
1766
|
-
* @generated from enum value: STRING_FIELD_VALIDATION_UNKNOWN = 0;
|
|
1767
|
-
*/
|
|
1768
|
-
STRING_FIELD_VALIDATION_UNKNOWN = 0,
|
|
1824
|
+
export declare enum FeatureSet_Utf8Validation {
|
|
1769
1825
|
/**
|
|
1770
|
-
* @generated from enum value:
|
|
1826
|
+
* @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0;
|
|
1771
1827
|
*/
|
|
1772
|
-
|
|
1828
|
+
UTF8_VALIDATION_UNKNOWN = 0,
|
|
1773
1829
|
/**
|
|
1774
|
-
* @generated from enum value:
|
|
1830
|
+
* @generated from enum value: NONE = 1;
|
|
1775
1831
|
*/
|
|
1776
|
-
|
|
1832
|
+
NONE = 1,
|
|
1777
1833
|
/**
|
|
1778
|
-
* @generated from enum value:
|
|
1834
|
+
* @generated from enum value: VERIFY = 2;
|
|
1779
1835
|
*/
|
|
1780
|
-
|
|
1836
|
+
VERIFY = 2
|
|
1781
1837
|
}
|
|
1782
1838
|
/**
|
|
1783
1839
|
* @generated from enum google.protobuf.FeatureSet.MessageEncoding
|
|
@@ -1813,6 +1869,68 @@ export declare enum FeatureSet_JsonFormat {
|
|
|
1813
1869
|
*/
|
|
1814
1870
|
LEGACY_BEST_EFFORT = 2
|
|
1815
1871
|
}
|
|
1872
|
+
/**
|
|
1873
|
+
* A compiled specification for the defaults of a set of features. These
|
|
1874
|
+
* messages are generated from FeatureSet extensions and can be used to seed
|
|
1875
|
+
* feature resolution. The resolution with this object becomes a simple search
|
|
1876
|
+
* for the closest matching edition, followed by proto merges.
|
|
1877
|
+
*
|
|
1878
|
+
* @generated from message google.protobuf.FeatureSetDefaults
|
|
1879
|
+
*/
|
|
1880
|
+
export declare class FeatureSetDefaults extends Message<FeatureSetDefaults> {
|
|
1881
|
+
/**
|
|
1882
|
+
* @generated from field: repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
|
|
1883
|
+
*/
|
|
1884
|
+
defaults: FeatureSetDefaults_FeatureSetEditionDefault[];
|
|
1885
|
+
/**
|
|
1886
|
+
* The minimum supported edition (inclusive) when this was constructed.
|
|
1887
|
+
* Editions before this will not have defaults.
|
|
1888
|
+
*
|
|
1889
|
+
* @generated from field: optional google.protobuf.Edition minimum_edition = 4;
|
|
1890
|
+
*/
|
|
1891
|
+
minimumEdition?: Edition;
|
|
1892
|
+
/**
|
|
1893
|
+
* The maximum known edition (inclusive) when this was constructed. Editions
|
|
1894
|
+
* after this will not have reliable defaults.
|
|
1895
|
+
*
|
|
1896
|
+
* @generated from field: optional google.protobuf.Edition maximum_edition = 5;
|
|
1897
|
+
*/
|
|
1898
|
+
maximumEdition?: Edition;
|
|
1899
|
+
constructor(data?: PartialMessage<FeatureSetDefaults>);
|
|
1900
|
+
static readonly runtime: typeof proto2;
|
|
1901
|
+
static readonly typeName = "google.protobuf.FeatureSetDefaults";
|
|
1902
|
+
static readonly fields: FieldList;
|
|
1903
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FeatureSetDefaults;
|
|
1904
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FeatureSetDefaults;
|
|
1905
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FeatureSetDefaults;
|
|
1906
|
+
static equals(a: FeatureSetDefaults | PlainMessage<FeatureSetDefaults> | undefined, b: FeatureSetDefaults | PlainMessage<FeatureSetDefaults> | undefined): boolean;
|
|
1907
|
+
}
|
|
1908
|
+
/**
|
|
1909
|
+
* A map from every known edition with a unique set of defaults to its
|
|
1910
|
+
* defaults. Not all editions may be contained here. For a given edition,
|
|
1911
|
+
* the defaults at the closest matching edition ordered at or before it should
|
|
1912
|
+
* be used. This field must be in strict ascending order by edition.
|
|
1913
|
+
*
|
|
1914
|
+
* @generated from message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
1915
|
+
*/
|
|
1916
|
+
export declare class FeatureSetDefaults_FeatureSetEditionDefault extends Message<FeatureSetDefaults_FeatureSetEditionDefault> {
|
|
1917
|
+
/**
|
|
1918
|
+
* @generated from field: optional google.protobuf.Edition edition = 3;
|
|
1919
|
+
*/
|
|
1920
|
+
edition?: Edition;
|
|
1921
|
+
/**
|
|
1922
|
+
* @generated from field: optional google.protobuf.FeatureSet features = 2;
|
|
1923
|
+
*/
|
|
1924
|
+
features?: FeatureSet;
|
|
1925
|
+
constructor(data?: PartialMessage<FeatureSetDefaults_FeatureSetEditionDefault>);
|
|
1926
|
+
static readonly runtime: typeof proto2;
|
|
1927
|
+
static readonly typeName = "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault";
|
|
1928
|
+
static readonly fields: FieldList;
|
|
1929
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FeatureSetDefaults_FeatureSetEditionDefault;
|
|
1930
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FeatureSetDefaults_FeatureSetEditionDefault;
|
|
1931
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FeatureSetDefaults_FeatureSetEditionDefault;
|
|
1932
|
+
static equals(a: FeatureSetDefaults_FeatureSetEditionDefault | PlainMessage<FeatureSetDefaults_FeatureSetEditionDefault> | undefined, b: FeatureSetDefaults_FeatureSetEditionDefault | PlainMessage<FeatureSetDefaults_FeatureSetEditionDefault> | undefined): boolean;
|
|
1933
|
+
}
|
|
1816
1934
|
/**
|
|
1817
1935
|
* Encapsulates information about the original source file from which a
|
|
1818
1936
|
* FileDescriptorProto was generated.
|
|
@@ -13,9 +13,89 @@
|
|
|
13
13
|
// See the License for the specific language governing permissions and
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.GeneratedCodeInfo_Annotation_Semantic = exports.GeneratedCodeInfo_Annotation = exports.GeneratedCodeInfo = exports.SourceCodeInfo_Location = exports.SourceCodeInfo = exports.FeatureSet_JsonFormat = exports.FeatureSet_MessageEncoding = exports.
|
|
17
|
-
|
|
16
|
+
exports.GeneratedCodeInfo_Annotation_Semantic = exports.GeneratedCodeInfo_Annotation = exports.GeneratedCodeInfo = exports.SourceCodeInfo_Location = exports.SourceCodeInfo = exports.FeatureSetDefaults_FeatureSetEditionDefault = exports.FeatureSetDefaults = exports.FeatureSet_JsonFormat = exports.FeatureSet_MessageEncoding = exports.FeatureSet_Utf8Validation = exports.FeatureSet_RepeatedFieldEncoding = exports.FeatureSet_EnumType = exports.FeatureSet_FieldPresence = exports.FeatureSet = exports.UninterpretedOption_NamePart = exports.UninterpretedOption = exports.MethodOptions_IdempotencyLevel = exports.MethodOptions = exports.ServiceOptions = exports.EnumValueOptions = exports.EnumOptions = exports.OneofOptions = exports.FieldOptions_EditionDefault = exports.FieldOptions_OptionTargetType = exports.FieldOptions_OptionRetention = exports.FieldOptions_JSType = exports.FieldOptions_CType = exports.FieldOptions = exports.MessageOptions = exports.FileOptions_OptimizeMode = exports.FileOptions = exports.MethodDescriptorProto = exports.ServiceDescriptorProto = exports.EnumValueDescriptorProto = exports.EnumDescriptorProto_EnumReservedRange = exports.EnumDescriptorProto = exports.OneofDescriptorProto = exports.FieldDescriptorProto_Label = exports.FieldDescriptorProto_Type = exports.FieldDescriptorProto = exports.ExtensionRangeOptions_Declaration = exports.ExtensionRangeOptions_VerificationState = exports.ExtensionRangeOptions = exports.DescriptorProto_ReservedRange = exports.DescriptorProto_ExtensionRange = exports.DescriptorProto = exports.FileDescriptorProto = exports.FileDescriptorSet = exports.Edition = void 0;
|
|
17
|
+
// Author: kenton@google.com (Kenton Varda)
|
|
18
|
+
// Based on original Protocol Buffers design by
|
|
19
|
+
// Sanjay Ghemawat, Jeff Dean, and others.
|
|
20
|
+
//
|
|
21
|
+
// The messages in this file describe the definitions found in .proto files.
|
|
22
|
+
// A valid .proto file can be translated directly to a FileDescriptorProto
|
|
23
|
+
// without any other information (e.g. without reading its imports).
|
|
24
|
+
// @generated by protoc-gen-es v1.4.2 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
|
|
25
|
+
// @generated from file google/protobuf/descriptor.proto (package google.protobuf, syntax proto2)
|
|
26
|
+
/* eslint-disable */
|
|
18
27
|
const proto2_js_1 = require("../../proto2.js");
|
|
28
|
+
const message_js_1 = require("../../message.js");
|
|
29
|
+
/**
|
|
30
|
+
* The full set of known editions.
|
|
31
|
+
*
|
|
32
|
+
* @generated from enum google.protobuf.Edition
|
|
33
|
+
*/
|
|
34
|
+
var Edition;
|
|
35
|
+
(function (Edition) {
|
|
36
|
+
/**
|
|
37
|
+
* A placeholder for an unknown edition value.
|
|
38
|
+
*
|
|
39
|
+
* @generated from enum value: EDITION_UNKNOWN = 0;
|
|
40
|
+
*/
|
|
41
|
+
Edition[Edition["EDITION_UNKNOWN"] = 0] = "EDITION_UNKNOWN";
|
|
42
|
+
/**
|
|
43
|
+
* Legacy syntax "editions". These pre-date editions, but behave much like
|
|
44
|
+
* distinct editions. These can't be used to specify the edition of proto
|
|
45
|
+
* files, but feature definitions must supply proto2/proto3 defaults for
|
|
46
|
+
* backwards compatibility.
|
|
47
|
+
*
|
|
48
|
+
* @generated from enum value: EDITION_PROTO2 = 998;
|
|
49
|
+
*/
|
|
50
|
+
Edition[Edition["EDITION_PROTO2"] = 998] = "EDITION_PROTO2";
|
|
51
|
+
/**
|
|
52
|
+
* @generated from enum value: EDITION_PROTO3 = 999;
|
|
53
|
+
*/
|
|
54
|
+
Edition[Edition["EDITION_PROTO3"] = 999] = "EDITION_PROTO3";
|
|
55
|
+
/**
|
|
56
|
+
* Editions that have been released. The specific values are arbitrary and
|
|
57
|
+
* should not be depended on, but they will always be time-ordered for easy
|
|
58
|
+
* comparison.
|
|
59
|
+
*
|
|
60
|
+
* @generated from enum value: EDITION_2023 = 1000;
|
|
61
|
+
*/
|
|
62
|
+
Edition[Edition["EDITION_2023"] = 1000] = "EDITION_2023";
|
|
63
|
+
/**
|
|
64
|
+
* Placeholder editions for testing feature resolution. These should not be
|
|
65
|
+
* used or relyed on outside of tests.
|
|
66
|
+
*
|
|
67
|
+
* @generated from enum value: EDITION_1_TEST_ONLY = 1;
|
|
68
|
+
*/
|
|
69
|
+
Edition[Edition["EDITION_1_TEST_ONLY"] = 1] = "EDITION_1_TEST_ONLY";
|
|
70
|
+
/**
|
|
71
|
+
* @generated from enum value: EDITION_2_TEST_ONLY = 2;
|
|
72
|
+
*/
|
|
73
|
+
Edition[Edition["EDITION_2_TEST_ONLY"] = 2] = "EDITION_2_TEST_ONLY";
|
|
74
|
+
/**
|
|
75
|
+
* @generated from enum value: EDITION_99997_TEST_ONLY = 99997;
|
|
76
|
+
*/
|
|
77
|
+
Edition[Edition["EDITION_99997_TEST_ONLY"] = 99997] = "EDITION_99997_TEST_ONLY";
|
|
78
|
+
/**
|
|
79
|
+
* @generated from enum value: EDITION_99998_TEST_ONLY = 99998;
|
|
80
|
+
*/
|
|
81
|
+
Edition[Edition["EDITION_99998_TEST_ONLY"] = 99998] = "EDITION_99998_TEST_ONLY";
|
|
82
|
+
/**
|
|
83
|
+
* @generated from enum value: EDITION_99999_TEST_ONLY = 99999;
|
|
84
|
+
*/
|
|
85
|
+
Edition[Edition["EDITION_99999_TEST_ONLY"] = 99999] = "EDITION_99999_TEST_ONLY";
|
|
86
|
+
})(Edition || (exports.Edition = Edition = {}));
|
|
87
|
+
// Retrieve enum metadata with: proto2.getEnumType(Edition)
|
|
88
|
+
proto2_js_1.proto2.util.setEnumType(Edition, "google.protobuf.Edition", [
|
|
89
|
+
{ no: 0, name: "EDITION_UNKNOWN" },
|
|
90
|
+
{ no: 998, name: "EDITION_PROTO2" },
|
|
91
|
+
{ no: 999, name: "EDITION_PROTO3" },
|
|
92
|
+
{ no: 1000, name: "EDITION_2023" },
|
|
93
|
+
{ no: 1, name: "EDITION_1_TEST_ONLY" },
|
|
94
|
+
{ no: 2, name: "EDITION_2_TEST_ONLY" },
|
|
95
|
+
{ no: 99997, name: "EDITION_99997_TEST_ONLY" },
|
|
96
|
+
{ no: 99998, name: "EDITION_99998_TEST_ONLY" },
|
|
97
|
+
{ no: 99999, name: "EDITION_99999_TEST_ONLY" },
|
|
98
|
+
]);
|
|
19
99
|
/**
|
|
20
100
|
* The protocol compiler can output a FileDescriptorSet containing the .proto
|
|
21
101
|
* files it parses.
|
|
@@ -126,7 +206,7 @@ FileDescriptorProto.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
|
126
206
|
{ no: 8, name: "options", kind: "message", T: FileOptions, opt: true },
|
|
127
207
|
{ no: 9, name: "source_code_info", kind: "message", T: SourceCodeInfo, opt: true },
|
|
128
208
|
{ no: 12, name: "syntax", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
129
|
-
{ no:
|
|
209
|
+
{ no: 14, name: "edition", kind: "enum", T: proto2_js_1.proto2.getEnumType(Edition), opt: true },
|
|
130
210
|
]);
|
|
131
211
|
/**
|
|
132
212
|
* Describes a message type.
|
|
@@ -451,9 +531,10 @@ var FieldDescriptorProto_Type;
|
|
|
451
531
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["STRING"] = 9] = "STRING";
|
|
452
532
|
/**
|
|
453
533
|
* Tag-delimited aggregate.
|
|
454
|
-
* Group type is deprecated and not supported
|
|
534
|
+
* Group type is deprecated and not supported after google.protobuf. However, Proto3
|
|
455
535
|
* implementations should still be able to parse the group wire format and
|
|
456
|
-
* treat group fields as unknown fields.
|
|
536
|
+
* treat group fields as unknown fields. In Editions, the group wire format
|
|
537
|
+
* can be enabled via the `message_encoding` feature.
|
|
457
538
|
*
|
|
458
539
|
* @generated from enum value: TYPE_GROUP = 10;
|
|
459
540
|
*/
|
|
@@ -531,20 +612,24 @@ var FieldDescriptorProto_Label;
|
|
|
531
612
|
* @generated from enum value: LABEL_OPTIONAL = 1;
|
|
532
613
|
*/
|
|
533
614
|
FieldDescriptorProto_Label[FieldDescriptorProto_Label["OPTIONAL"] = 1] = "OPTIONAL";
|
|
534
|
-
/**
|
|
535
|
-
* @generated from enum value: LABEL_REQUIRED = 2;
|
|
536
|
-
*/
|
|
537
|
-
FieldDescriptorProto_Label[FieldDescriptorProto_Label["REQUIRED"] = 2] = "REQUIRED";
|
|
538
615
|
/**
|
|
539
616
|
* @generated from enum value: LABEL_REPEATED = 3;
|
|
540
617
|
*/
|
|
541
618
|
FieldDescriptorProto_Label[FieldDescriptorProto_Label["REPEATED"] = 3] = "REPEATED";
|
|
619
|
+
/**
|
|
620
|
+
* The required label is only allowed in google.protobuf. In proto3 and Editions
|
|
621
|
+
* it's explicitly prohibited. In Editions, the `field_presence` feature
|
|
622
|
+
* can be used to get this behavior.
|
|
623
|
+
*
|
|
624
|
+
* @generated from enum value: LABEL_REQUIRED = 2;
|
|
625
|
+
*/
|
|
626
|
+
FieldDescriptorProto_Label[FieldDescriptorProto_Label["REQUIRED"] = 2] = "REQUIRED";
|
|
542
627
|
})(FieldDescriptorProto_Label || (exports.FieldDescriptorProto_Label = FieldDescriptorProto_Label = {}));
|
|
543
628
|
// Retrieve enum metadata with: proto2.getEnumType(FieldDescriptorProto_Label)
|
|
544
629
|
proto2_js_1.proto2.util.setEnumType(FieldDescriptorProto_Label, "google.protobuf.FieldDescriptorProto.Label", [
|
|
545
630
|
{ no: 1, name: "LABEL_OPTIONAL" },
|
|
546
|
-
{ no: 2, name: "LABEL_REQUIRED" },
|
|
547
631
|
{ no: 3, name: "LABEL_REPEATED" },
|
|
632
|
+
{ no: 2, name: "LABEL_REQUIRED" },
|
|
548
633
|
]);
|
|
549
634
|
/**
|
|
550
635
|
* Describes a oneof.
|
|
@@ -1124,7 +1209,7 @@ exports.FieldOptions_EditionDefault = FieldOptions_EditionDefault;
|
|
|
1124
1209
|
FieldOptions_EditionDefault.runtime = proto2_js_1.proto2;
|
|
1125
1210
|
FieldOptions_EditionDefault.typeName = "google.protobuf.FieldOptions.EditionDefault";
|
|
1126
1211
|
FieldOptions_EditionDefault.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
1127
|
-
{ no:
|
|
1212
|
+
{ no: 3, name: "edition", kind: "enum", T: proto2_js_1.proto2.getEnumType(Edition), opt: true },
|
|
1128
1213
|
{ no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1129
1214
|
]);
|
|
1130
1215
|
/**
|
|
@@ -1416,7 +1501,7 @@ UninterpretedOption_NamePart.fields = proto2_js_1.proto2.util.newFieldList(() =>
|
|
|
1416
1501
|
{ no: 2, name: "is_extension", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1417
1502
|
]);
|
|
1418
1503
|
/**
|
|
1419
|
-
* TODO
|
|
1504
|
+
* TODO Enums in C++ gencode (and potentially other languages) are
|
|
1420
1505
|
* not well scoped. This means that each of the feature enums below can clash
|
|
1421
1506
|
* with each other. The short names we've chosen maximize call-site
|
|
1422
1507
|
* readability, but leave us very open to this scenario. A future feature will
|
|
@@ -1450,10 +1535,9 @@ FeatureSet.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
|
1450
1535
|
{ no: 1, name: "field_presence", kind: "enum", T: proto2_js_1.proto2.getEnumType(FeatureSet_FieldPresence), opt: true },
|
|
1451
1536
|
{ no: 2, name: "enum_type", kind: "enum", T: proto2_js_1.proto2.getEnumType(FeatureSet_EnumType), opt: true },
|
|
1452
1537
|
{ no: 3, name: "repeated_field_encoding", kind: "enum", T: proto2_js_1.proto2.getEnumType(FeatureSet_RepeatedFieldEncoding), opt: true },
|
|
1453
|
-
{ no: 4, name: "
|
|
1538
|
+
{ no: 4, name: "utf8_validation", kind: "enum", T: proto2_js_1.proto2.getEnumType(FeatureSet_Utf8Validation), opt: true },
|
|
1454
1539
|
{ no: 5, name: "message_encoding", kind: "enum", T: proto2_js_1.proto2.getEnumType(FeatureSet_MessageEncoding), opt: true },
|
|
1455
1540
|
{ no: 6, name: "json_format", kind: "enum", T: proto2_js_1.proto2.getEnumType(FeatureSet_JsonFormat), opt: true },
|
|
1456
|
-
{ no: 999, name: "raw_features", kind: "message", T: FeatureSet, opt: true },
|
|
1457
1541
|
]);
|
|
1458
1542
|
/**
|
|
1459
1543
|
* @generated from enum google.protobuf.FeatureSet.FieldPresence
|
|
@@ -1533,33 +1617,28 @@ proto2_js_1.proto2.util.setEnumType(FeatureSet_RepeatedFieldEncoding, "google.pr
|
|
|
1533
1617
|
{ no: 2, name: "EXPANDED" },
|
|
1534
1618
|
]);
|
|
1535
1619
|
/**
|
|
1536
|
-
* @generated from enum google.protobuf.FeatureSet.
|
|
1620
|
+
* @generated from enum google.protobuf.FeatureSet.Utf8Validation
|
|
1537
1621
|
*/
|
|
1538
|
-
var
|
|
1539
|
-
(function (
|
|
1622
|
+
var FeatureSet_Utf8Validation;
|
|
1623
|
+
(function (FeatureSet_Utf8Validation) {
|
|
1540
1624
|
/**
|
|
1541
|
-
* @generated from enum value:
|
|
1625
|
+
* @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0;
|
|
1542
1626
|
*/
|
|
1543
|
-
|
|
1627
|
+
FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["UTF8_VALIDATION_UNKNOWN"] = 0] = "UTF8_VALIDATION_UNKNOWN";
|
|
1544
1628
|
/**
|
|
1545
|
-
* @generated from enum value:
|
|
1629
|
+
* @generated from enum value: NONE = 1;
|
|
1546
1630
|
*/
|
|
1547
|
-
|
|
1631
|
+
FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["NONE"] = 1] = "NONE";
|
|
1548
1632
|
/**
|
|
1549
|
-
* @generated from enum value:
|
|
1633
|
+
* @generated from enum value: VERIFY = 2;
|
|
1550
1634
|
*/
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
proto2_js_1.proto2.util.setEnumType(FeatureSet_StringFieldValidation, "google.protobuf.FeatureSet.StringFieldValidation", [
|
|
1559
|
-
{ no: 0, name: "STRING_FIELD_VALIDATION_UNKNOWN" },
|
|
1560
|
-
{ no: 1, name: "MANDATORY" },
|
|
1561
|
-
{ no: 2, name: "HINT" },
|
|
1562
|
-
{ no: 3, name: "NONE" },
|
|
1635
|
+
FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["VERIFY"] = 2] = "VERIFY";
|
|
1636
|
+
})(FeatureSet_Utf8Validation || (exports.FeatureSet_Utf8Validation = FeatureSet_Utf8Validation = {}));
|
|
1637
|
+
// Retrieve enum metadata with: proto2.getEnumType(FeatureSet_Utf8Validation)
|
|
1638
|
+
proto2_js_1.proto2.util.setEnumType(FeatureSet_Utf8Validation, "google.protobuf.FeatureSet.Utf8Validation", [
|
|
1639
|
+
{ no: 0, name: "UTF8_VALIDATION_UNKNOWN" },
|
|
1640
|
+
{ no: 1, name: "NONE" },
|
|
1641
|
+
{ no: 2, name: "VERIFY" },
|
|
1563
1642
|
]);
|
|
1564
1643
|
/**
|
|
1565
1644
|
* @generated from enum google.protobuf.FeatureSet.MessageEncoding
|
|
@@ -1609,6 +1688,77 @@ proto2_js_1.proto2.util.setEnumType(FeatureSet_JsonFormat, "google.protobuf.Feat
|
|
|
1609
1688
|
{ no: 1, name: "ALLOW" },
|
|
1610
1689
|
{ no: 2, name: "LEGACY_BEST_EFFORT" },
|
|
1611
1690
|
]);
|
|
1691
|
+
/**
|
|
1692
|
+
* A compiled specification for the defaults of a set of features. These
|
|
1693
|
+
* messages are generated from FeatureSet extensions and can be used to seed
|
|
1694
|
+
* feature resolution. The resolution with this object becomes a simple search
|
|
1695
|
+
* for the closest matching edition, followed by proto merges.
|
|
1696
|
+
*
|
|
1697
|
+
* @generated from message google.protobuf.FeatureSetDefaults
|
|
1698
|
+
*/
|
|
1699
|
+
class FeatureSetDefaults extends message_js_1.Message {
|
|
1700
|
+
constructor(data) {
|
|
1701
|
+
super();
|
|
1702
|
+
/**
|
|
1703
|
+
* @generated from field: repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
|
|
1704
|
+
*/
|
|
1705
|
+
this.defaults = [];
|
|
1706
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
1707
|
+
}
|
|
1708
|
+
static fromBinary(bytes, options) {
|
|
1709
|
+
return new FeatureSetDefaults().fromBinary(bytes, options);
|
|
1710
|
+
}
|
|
1711
|
+
static fromJson(jsonValue, options) {
|
|
1712
|
+
return new FeatureSetDefaults().fromJson(jsonValue, options);
|
|
1713
|
+
}
|
|
1714
|
+
static fromJsonString(jsonString, options) {
|
|
1715
|
+
return new FeatureSetDefaults().fromJsonString(jsonString, options);
|
|
1716
|
+
}
|
|
1717
|
+
static equals(a, b) {
|
|
1718
|
+
return proto2_js_1.proto2.util.equals(FeatureSetDefaults, a, b);
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
exports.FeatureSetDefaults = FeatureSetDefaults;
|
|
1722
|
+
FeatureSetDefaults.runtime = proto2_js_1.proto2;
|
|
1723
|
+
FeatureSetDefaults.typeName = "google.protobuf.FeatureSetDefaults";
|
|
1724
|
+
FeatureSetDefaults.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
1725
|
+
{ no: 1, name: "defaults", kind: "message", T: FeatureSetDefaults_FeatureSetEditionDefault, repeated: true },
|
|
1726
|
+
{ no: 4, name: "minimum_edition", kind: "enum", T: proto2_js_1.proto2.getEnumType(Edition), opt: true },
|
|
1727
|
+
{ no: 5, name: "maximum_edition", kind: "enum", T: proto2_js_1.proto2.getEnumType(Edition), opt: true },
|
|
1728
|
+
]);
|
|
1729
|
+
/**
|
|
1730
|
+
* A map from every known edition with a unique set of defaults to its
|
|
1731
|
+
* defaults. Not all editions may be contained here. For a given edition,
|
|
1732
|
+
* the defaults at the closest matching edition ordered at or before it should
|
|
1733
|
+
* be used. This field must be in strict ascending order by edition.
|
|
1734
|
+
*
|
|
1735
|
+
* @generated from message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
1736
|
+
*/
|
|
1737
|
+
class FeatureSetDefaults_FeatureSetEditionDefault extends message_js_1.Message {
|
|
1738
|
+
constructor(data) {
|
|
1739
|
+
super();
|
|
1740
|
+
proto2_js_1.proto2.util.initPartial(data, this);
|
|
1741
|
+
}
|
|
1742
|
+
static fromBinary(bytes, options) {
|
|
1743
|
+
return new FeatureSetDefaults_FeatureSetEditionDefault().fromBinary(bytes, options);
|
|
1744
|
+
}
|
|
1745
|
+
static fromJson(jsonValue, options) {
|
|
1746
|
+
return new FeatureSetDefaults_FeatureSetEditionDefault().fromJson(jsonValue, options);
|
|
1747
|
+
}
|
|
1748
|
+
static fromJsonString(jsonString, options) {
|
|
1749
|
+
return new FeatureSetDefaults_FeatureSetEditionDefault().fromJsonString(jsonString, options);
|
|
1750
|
+
}
|
|
1751
|
+
static equals(a, b) {
|
|
1752
|
+
return proto2_js_1.proto2.util.equals(FeatureSetDefaults_FeatureSetEditionDefault, a, b);
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
exports.FeatureSetDefaults_FeatureSetEditionDefault = FeatureSetDefaults_FeatureSetEditionDefault;
|
|
1756
|
+
FeatureSetDefaults_FeatureSetEditionDefault.runtime = proto2_js_1.proto2;
|
|
1757
|
+
FeatureSetDefaults_FeatureSetEditionDefault.typeName = "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault";
|
|
1758
|
+
FeatureSetDefaults_FeatureSetEditionDefault.fields = proto2_js_1.proto2.util.newFieldList(() => [
|
|
1759
|
+
{ no: 3, name: "edition", kind: "enum", T: proto2_js_1.proto2.getEnumType(Edition), opt: true },
|
|
1760
|
+
{ no: 2, name: "features", kind: "message", T: FeatureSet, opt: true },
|
|
1761
|
+
]);
|
|
1612
1762
|
/**
|
|
1613
1763
|
* Encapsulates information about the original source file from which a
|
|
1614
1764
|
* FileDescriptorProto was generated.
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ListValue = exports.Value = exports.Struct = exports.NullValue = void 0;
|
|
17
|
-
// @generated by protoc-gen-es v1.4.
|
|
17
|
+
// @generated by protoc-gen-es v1.4.2 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
|
|
18
18
|
// @generated from file google/protobuf/struct.proto (package google.protobuf, syntax proto3)
|
|
19
19
|
/* eslint-disable */
|
|
20
20
|
const proto3_js_1 = require("../../proto3.js");
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.Option = exports.EnumValue = exports.Enum = exports.Field_Cardinality = exports.Field_Kind = exports.Field = exports.Type = exports.Syntax = void 0;
|
|
17
|
-
// @generated by protoc-gen-es v1.4.
|
|
17
|
+
// @generated by protoc-gen-es v1.4.2 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
|
|
18
18
|
// @generated from file google/protobuf/type.proto (package google.protobuf, syntax proto3)
|
|
19
19
|
/* eslint-disable */
|
|
20
20
|
const proto3_js_1 = require("../../proto3.js");
|
|
@@ -1,9 +1,66 @@
|
|
|
1
|
+
import { proto2 } from "../../proto2.js";
|
|
1
2
|
import type { PartialMessage, PlainMessage } from "../../message.js";
|
|
2
3
|
import { Message } from "../../message.js";
|
|
3
|
-
import { proto2 } from "../../proto2.js";
|
|
4
4
|
import type { FieldList } from "../../field-list.js";
|
|
5
5
|
import type { BinaryReadOptions } from "../../binary-format.js";
|
|
6
6
|
import type { JsonReadOptions, JsonValue } from "../../json-format.js";
|
|
7
|
+
/**
|
|
8
|
+
* The full set of known editions.
|
|
9
|
+
*
|
|
10
|
+
* @generated from enum google.protobuf.Edition
|
|
11
|
+
*/
|
|
12
|
+
export declare enum Edition {
|
|
13
|
+
/**
|
|
14
|
+
* A placeholder for an unknown edition value.
|
|
15
|
+
*
|
|
16
|
+
* @generated from enum value: EDITION_UNKNOWN = 0;
|
|
17
|
+
*/
|
|
18
|
+
EDITION_UNKNOWN = 0,
|
|
19
|
+
/**
|
|
20
|
+
* Legacy syntax "editions". These pre-date editions, but behave much like
|
|
21
|
+
* distinct editions. These can't be used to specify the edition of proto
|
|
22
|
+
* files, but feature definitions must supply proto2/proto3 defaults for
|
|
23
|
+
* backwards compatibility.
|
|
24
|
+
*
|
|
25
|
+
* @generated from enum value: EDITION_PROTO2 = 998;
|
|
26
|
+
*/
|
|
27
|
+
EDITION_PROTO2 = 998,
|
|
28
|
+
/**
|
|
29
|
+
* @generated from enum value: EDITION_PROTO3 = 999;
|
|
30
|
+
*/
|
|
31
|
+
EDITION_PROTO3 = 999,
|
|
32
|
+
/**
|
|
33
|
+
* Editions that have been released. The specific values are arbitrary and
|
|
34
|
+
* should not be depended on, but they will always be time-ordered for easy
|
|
35
|
+
* comparison.
|
|
36
|
+
*
|
|
37
|
+
* @generated from enum value: EDITION_2023 = 1000;
|
|
38
|
+
*/
|
|
39
|
+
EDITION_2023 = 1000,
|
|
40
|
+
/**
|
|
41
|
+
* Placeholder editions for testing feature resolution. These should not be
|
|
42
|
+
* used or relyed on outside of tests.
|
|
43
|
+
*
|
|
44
|
+
* @generated from enum value: EDITION_1_TEST_ONLY = 1;
|
|
45
|
+
*/
|
|
46
|
+
EDITION_1_TEST_ONLY = 1,
|
|
47
|
+
/**
|
|
48
|
+
* @generated from enum value: EDITION_2_TEST_ONLY = 2;
|
|
49
|
+
*/
|
|
50
|
+
EDITION_2_TEST_ONLY = 2,
|
|
51
|
+
/**
|
|
52
|
+
* @generated from enum value: EDITION_99997_TEST_ONLY = 99997;
|
|
53
|
+
*/
|
|
54
|
+
EDITION_99997_TEST_ONLY = 99997,
|
|
55
|
+
/**
|
|
56
|
+
* @generated from enum value: EDITION_99998_TEST_ONLY = 99998;
|
|
57
|
+
*/
|
|
58
|
+
EDITION_99998_TEST_ONLY = 99998,
|
|
59
|
+
/**
|
|
60
|
+
* @generated from enum value: EDITION_99999_TEST_ONLY = 99999;
|
|
61
|
+
*/
|
|
62
|
+
EDITION_99999_TEST_ONLY = 99999
|
|
63
|
+
}
|
|
7
64
|
/**
|
|
8
65
|
* The protocol compiler can output a FileDescriptorSet containing the .proto
|
|
9
66
|
* files it parses.
|
|
@@ -102,11 +159,11 @@ export declare class FileDescriptorProto extends Message<FileDescriptorProto> {
|
|
|
102
159
|
*/
|
|
103
160
|
syntax?: string;
|
|
104
161
|
/**
|
|
105
|
-
* The edition of the proto file
|
|
162
|
+
* The edition of the proto file.
|
|
106
163
|
*
|
|
107
|
-
* @generated from field: optional
|
|
164
|
+
* @generated from field: optional google.protobuf.Edition edition = 14;
|
|
108
165
|
*/
|
|
109
|
-
edition?:
|
|
166
|
+
edition?: Edition;
|
|
110
167
|
constructor(data?: PartialMessage<FileDescriptorProto>);
|
|
111
168
|
static readonly runtime: typeof proto2;
|
|
112
169
|
static readonly typeName = "google.protobuf.FileDescriptorProto";
|
|
@@ -258,7 +315,7 @@ export declare class ExtensionRangeOptions extends Message<ExtensionRangeOptions
|
|
|
258
315
|
features?: FeatureSet;
|
|
259
316
|
/**
|
|
260
317
|
* The verification state of the range.
|
|
261
|
-
* TODO
|
|
318
|
+
* TODO: flip the default to DECLARATION once all empty ranges
|
|
262
319
|
* are marked as UNVERIFIED.
|
|
263
320
|
*
|
|
264
321
|
* @generated from field: optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED];
|
|
@@ -496,9 +553,10 @@ export declare enum FieldDescriptorProto_Type {
|
|
|
496
553
|
STRING = 9,
|
|
497
554
|
/**
|
|
498
555
|
* Tag-delimited aggregate.
|
|
499
|
-
* Group type is deprecated and not supported
|
|
556
|
+
* Group type is deprecated and not supported after google.protobuf. However, Proto3
|
|
500
557
|
* implementations should still be able to parse the group wire format and
|
|
501
|
-
* treat group fields as unknown fields.
|
|
558
|
+
* treat group fields as unknown fields. In Editions, the group wire format
|
|
559
|
+
* can be enabled via the `message_encoding` feature.
|
|
502
560
|
*
|
|
503
561
|
* @generated from enum value: TYPE_GROUP = 10;
|
|
504
562
|
*/
|
|
@@ -555,13 +613,17 @@ export declare enum FieldDescriptorProto_Label {
|
|
|
555
613
|
*/
|
|
556
614
|
OPTIONAL = 1,
|
|
557
615
|
/**
|
|
558
|
-
* @generated from enum value:
|
|
616
|
+
* @generated from enum value: LABEL_REPEATED = 3;
|
|
559
617
|
*/
|
|
560
|
-
|
|
618
|
+
REPEATED = 3,
|
|
561
619
|
/**
|
|
562
|
-
*
|
|
620
|
+
* The required label is only allowed in google.protobuf. In proto3 and Editions
|
|
621
|
+
* it's explicitly prohibited. In Editions, the `field_presence` feature
|
|
622
|
+
* can be used to get this behavior.
|
|
623
|
+
*
|
|
624
|
+
* @generated from enum value: LABEL_REQUIRED = 2;
|
|
563
625
|
*/
|
|
564
|
-
|
|
626
|
+
REQUIRED = 2
|
|
565
627
|
}
|
|
566
628
|
/**
|
|
567
629
|
* Describes a oneof.
|
|
@@ -1050,7 +1112,7 @@ export declare class MessageOptions extends Message<MessageOptions> {
|
|
|
1050
1112
|
* This should only be used as a temporary measure against broken builds due
|
|
1051
1113
|
* to the change in behavior for JSON field name conflicts.
|
|
1052
1114
|
*
|
|
1053
|
-
* TODO
|
|
1115
|
+
* TODO This is legacy behavior we plan to remove once downstream
|
|
1054
1116
|
* teams have had time to migrate.
|
|
1055
1117
|
*
|
|
1056
1118
|
* @generated from field: optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];
|
|
@@ -1098,7 +1160,9 @@ export declare class FieldOptions extends Message<FieldOptions> {
|
|
|
1098
1160
|
* a more efficient representation on the wire. Rather than repeatedly
|
|
1099
1161
|
* writing the tag and type for each element, the entire array is encoded as
|
|
1100
1162
|
* a single length-delimited blob. In proto3, only explicit setting it to
|
|
1101
|
-
* false will avoid using packed encoding.
|
|
1163
|
+
* false will avoid using packed encoding. This option is prohibited in
|
|
1164
|
+
* Editions, but the `repeated_field_encoding` feature can be used to control
|
|
1165
|
+
* the behavior.
|
|
1102
1166
|
*
|
|
1103
1167
|
* @generated from field: optional bool packed = 2;
|
|
1104
1168
|
*/
|
|
@@ -1342,9 +1406,9 @@ export declare enum FieldOptions_OptionTargetType {
|
|
|
1342
1406
|
*/
|
|
1343
1407
|
export declare class FieldOptions_EditionDefault extends Message<FieldOptions_EditionDefault> {
|
|
1344
1408
|
/**
|
|
1345
|
-
* @generated from field: optional
|
|
1409
|
+
* @generated from field: optional google.protobuf.Edition edition = 3;
|
|
1346
1410
|
*/
|
|
1347
|
-
edition?:
|
|
1411
|
+
edition?: Edition;
|
|
1348
1412
|
/**
|
|
1349
1413
|
* Textproto value.
|
|
1350
1414
|
*
|
|
@@ -1410,7 +1474,7 @@ export declare class EnumOptions extends Message<EnumOptions> {
|
|
|
1410
1474
|
* and strips underscored from the fields before comparison in proto3 only.
|
|
1411
1475
|
* The new behavior takes `json_name` into account and applies to proto2 as
|
|
1412
1476
|
* well.
|
|
1413
|
-
* TODO
|
|
1477
|
+
* TODO Remove this legacy behavior once downstream teams have
|
|
1414
1478
|
* had time to migrate.
|
|
1415
1479
|
*
|
|
1416
1480
|
* @generated from field: optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];
|
|
@@ -1656,7 +1720,7 @@ export declare class UninterpretedOption_NamePart extends Message<UninterpretedO
|
|
|
1656
1720
|
static equals(a: UninterpretedOption_NamePart | PlainMessage<UninterpretedOption_NamePart> | undefined, b: UninterpretedOption_NamePart | PlainMessage<UninterpretedOption_NamePart> | undefined): boolean;
|
|
1657
1721
|
}
|
|
1658
1722
|
/**
|
|
1659
|
-
* TODO
|
|
1723
|
+
* TODO Enums in C++ gencode (and potentially other languages) are
|
|
1660
1724
|
* not well scoped. This means that each of the feature enums below can clash
|
|
1661
1725
|
* with each other. The short names we've chosen maximize call-site
|
|
1662
1726
|
* readability, but leave us very open to this scenario. A future feature will
|
|
@@ -1679,9 +1743,9 @@ export declare class FeatureSet extends Message<FeatureSet> {
|
|
|
1679
1743
|
*/
|
|
1680
1744
|
repeatedFieldEncoding?: FeatureSet_RepeatedFieldEncoding;
|
|
1681
1745
|
/**
|
|
1682
|
-
* @generated from field: optional google.protobuf.FeatureSet.
|
|
1746
|
+
* @generated from field: optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4;
|
|
1683
1747
|
*/
|
|
1684
|
-
|
|
1748
|
+
utf8Validation?: FeatureSet_Utf8Validation;
|
|
1685
1749
|
/**
|
|
1686
1750
|
* @generated from field: optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5;
|
|
1687
1751
|
*/
|
|
@@ -1690,10 +1754,6 @@ export declare class FeatureSet extends Message<FeatureSet> {
|
|
|
1690
1754
|
* @generated from field: optional google.protobuf.FeatureSet.JsonFormat json_format = 6;
|
|
1691
1755
|
*/
|
|
1692
1756
|
jsonFormat?: FeatureSet_JsonFormat;
|
|
1693
|
-
/**
|
|
1694
|
-
* @generated from field: optional google.protobuf.FeatureSet raw_features = 999;
|
|
1695
|
-
*/
|
|
1696
|
-
rawFeatures?: FeatureSet;
|
|
1697
1757
|
constructor(data?: PartialMessage<FeatureSet>);
|
|
1698
1758
|
static readonly runtime: typeof proto2;
|
|
1699
1759
|
static readonly typeName = "google.protobuf.FeatureSet";
|
|
@@ -1759,25 +1819,21 @@ export declare enum FeatureSet_RepeatedFieldEncoding {
|
|
|
1759
1819
|
EXPANDED = 2
|
|
1760
1820
|
}
|
|
1761
1821
|
/**
|
|
1762
|
-
* @generated from enum google.protobuf.FeatureSet.
|
|
1822
|
+
* @generated from enum google.protobuf.FeatureSet.Utf8Validation
|
|
1763
1823
|
*/
|
|
1764
|
-
export declare enum
|
|
1765
|
-
/**
|
|
1766
|
-
* @generated from enum value: STRING_FIELD_VALIDATION_UNKNOWN = 0;
|
|
1767
|
-
*/
|
|
1768
|
-
STRING_FIELD_VALIDATION_UNKNOWN = 0,
|
|
1824
|
+
export declare enum FeatureSet_Utf8Validation {
|
|
1769
1825
|
/**
|
|
1770
|
-
* @generated from enum value:
|
|
1826
|
+
* @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0;
|
|
1771
1827
|
*/
|
|
1772
|
-
|
|
1828
|
+
UTF8_VALIDATION_UNKNOWN = 0,
|
|
1773
1829
|
/**
|
|
1774
|
-
* @generated from enum value:
|
|
1830
|
+
* @generated from enum value: NONE = 1;
|
|
1775
1831
|
*/
|
|
1776
|
-
|
|
1832
|
+
NONE = 1,
|
|
1777
1833
|
/**
|
|
1778
|
-
* @generated from enum value:
|
|
1834
|
+
* @generated from enum value: VERIFY = 2;
|
|
1779
1835
|
*/
|
|
1780
|
-
|
|
1836
|
+
VERIFY = 2
|
|
1781
1837
|
}
|
|
1782
1838
|
/**
|
|
1783
1839
|
* @generated from enum google.protobuf.FeatureSet.MessageEncoding
|
|
@@ -1813,6 +1869,68 @@ export declare enum FeatureSet_JsonFormat {
|
|
|
1813
1869
|
*/
|
|
1814
1870
|
LEGACY_BEST_EFFORT = 2
|
|
1815
1871
|
}
|
|
1872
|
+
/**
|
|
1873
|
+
* A compiled specification for the defaults of a set of features. These
|
|
1874
|
+
* messages are generated from FeatureSet extensions and can be used to seed
|
|
1875
|
+
* feature resolution. The resolution with this object becomes a simple search
|
|
1876
|
+
* for the closest matching edition, followed by proto merges.
|
|
1877
|
+
*
|
|
1878
|
+
* @generated from message google.protobuf.FeatureSetDefaults
|
|
1879
|
+
*/
|
|
1880
|
+
export declare class FeatureSetDefaults extends Message<FeatureSetDefaults> {
|
|
1881
|
+
/**
|
|
1882
|
+
* @generated from field: repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
|
|
1883
|
+
*/
|
|
1884
|
+
defaults: FeatureSetDefaults_FeatureSetEditionDefault[];
|
|
1885
|
+
/**
|
|
1886
|
+
* The minimum supported edition (inclusive) when this was constructed.
|
|
1887
|
+
* Editions before this will not have defaults.
|
|
1888
|
+
*
|
|
1889
|
+
* @generated from field: optional google.protobuf.Edition minimum_edition = 4;
|
|
1890
|
+
*/
|
|
1891
|
+
minimumEdition?: Edition;
|
|
1892
|
+
/**
|
|
1893
|
+
* The maximum known edition (inclusive) when this was constructed. Editions
|
|
1894
|
+
* after this will not have reliable defaults.
|
|
1895
|
+
*
|
|
1896
|
+
* @generated from field: optional google.protobuf.Edition maximum_edition = 5;
|
|
1897
|
+
*/
|
|
1898
|
+
maximumEdition?: Edition;
|
|
1899
|
+
constructor(data?: PartialMessage<FeatureSetDefaults>);
|
|
1900
|
+
static readonly runtime: typeof proto2;
|
|
1901
|
+
static readonly typeName = "google.protobuf.FeatureSetDefaults";
|
|
1902
|
+
static readonly fields: FieldList;
|
|
1903
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FeatureSetDefaults;
|
|
1904
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FeatureSetDefaults;
|
|
1905
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FeatureSetDefaults;
|
|
1906
|
+
static equals(a: FeatureSetDefaults | PlainMessage<FeatureSetDefaults> | undefined, b: FeatureSetDefaults | PlainMessage<FeatureSetDefaults> | undefined): boolean;
|
|
1907
|
+
}
|
|
1908
|
+
/**
|
|
1909
|
+
* A map from every known edition with a unique set of defaults to its
|
|
1910
|
+
* defaults. Not all editions may be contained here. For a given edition,
|
|
1911
|
+
* the defaults at the closest matching edition ordered at or before it should
|
|
1912
|
+
* be used. This field must be in strict ascending order by edition.
|
|
1913
|
+
*
|
|
1914
|
+
* @generated from message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
1915
|
+
*/
|
|
1916
|
+
export declare class FeatureSetDefaults_FeatureSetEditionDefault extends Message<FeatureSetDefaults_FeatureSetEditionDefault> {
|
|
1917
|
+
/**
|
|
1918
|
+
* @generated from field: optional google.protobuf.Edition edition = 3;
|
|
1919
|
+
*/
|
|
1920
|
+
edition?: Edition;
|
|
1921
|
+
/**
|
|
1922
|
+
* @generated from field: optional google.protobuf.FeatureSet features = 2;
|
|
1923
|
+
*/
|
|
1924
|
+
features?: FeatureSet;
|
|
1925
|
+
constructor(data?: PartialMessage<FeatureSetDefaults_FeatureSetEditionDefault>);
|
|
1926
|
+
static readonly runtime: typeof proto2;
|
|
1927
|
+
static readonly typeName = "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault";
|
|
1928
|
+
static readonly fields: FieldList;
|
|
1929
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FeatureSetDefaults_FeatureSetEditionDefault;
|
|
1930
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FeatureSetDefaults_FeatureSetEditionDefault;
|
|
1931
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FeatureSetDefaults_FeatureSetEditionDefault;
|
|
1932
|
+
static equals(a: FeatureSetDefaults_FeatureSetEditionDefault | PlainMessage<FeatureSetDefaults_FeatureSetEditionDefault> | undefined, b: FeatureSetDefaults_FeatureSetEditionDefault | PlainMessage<FeatureSetDefaults_FeatureSetEditionDefault> | undefined): boolean;
|
|
1933
|
+
}
|
|
1816
1934
|
/**
|
|
1817
1935
|
* Encapsulates information about the original source file from which a
|
|
1818
1936
|
* FileDescriptorProto was generated.
|
|
@@ -11,8 +11,88 @@
|
|
|
11
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
|
-
|
|
14
|
+
// Author: kenton@google.com (Kenton Varda)
|
|
15
|
+
// Based on original Protocol Buffers design by
|
|
16
|
+
// Sanjay Ghemawat, Jeff Dean, and others.
|
|
17
|
+
//
|
|
18
|
+
// The messages in this file describe the definitions found in .proto files.
|
|
19
|
+
// A valid .proto file can be translated directly to a FileDescriptorProto
|
|
20
|
+
// without any other information (e.g. without reading its imports).
|
|
21
|
+
// @generated by protoc-gen-es v1.4.2 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
|
|
22
|
+
// @generated from file google/protobuf/descriptor.proto (package google.protobuf, syntax proto2)
|
|
23
|
+
/* eslint-disable */
|
|
15
24
|
import { proto2 } from "../../proto2.js";
|
|
25
|
+
import { Message } from "../../message.js";
|
|
26
|
+
/**
|
|
27
|
+
* The full set of known editions.
|
|
28
|
+
*
|
|
29
|
+
* @generated from enum google.protobuf.Edition
|
|
30
|
+
*/
|
|
31
|
+
export var Edition;
|
|
32
|
+
(function (Edition) {
|
|
33
|
+
/**
|
|
34
|
+
* A placeholder for an unknown edition value.
|
|
35
|
+
*
|
|
36
|
+
* @generated from enum value: EDITION_UNKNOWN = 0;
|
|
37
|
+
*/
|
|
38
|
+
Edition[Edition["EDITION_UNKNOWN"] = 0] = "EDITION_UNKNOWN";
|
|
39
|
+
/**
|
|
40
|
+
* Legacy syntax "editions". These pre-date editions, but behave much like
|
|
41
|
+
* distinct editions. These can't be used to specify the edition of proto
|
|
42
|
+
* files, but feature definitions must supply proto2/proto3 defaults for
|
|
43
|
+
* backwards compatibility.
|
|
44
|
+
*
|
|
45
|
+
* @generated from enum value: EDITION_PROTO2 = 998;
|
|
46
|
+
*/
|
|
47
|
+
Edition[Edition["EDITION_PROTO2"] = 998] = "EDITION_PROTO2";
|
|
48
|
+
/**
|
|
49
|
+
* @generated from enum value: EDITION_PROTO3 = 999;
|
|
50
|
+
*/
|
|
51
|
+
Edition[Edition["EDITION_PROTO3"] = 999] = "EDITION_PROTO3";
|
|
52
|
+
/**
|
|
53
|
+
* Editions that have been released. The specific values are arbitrary and
|
|
54
|
+
* should not be depended on, but they will always be time-ordered for easy
|
|
55
|
+
* comparison.
|
|
56
|
+
*
|
|
57
|
+
* @generated from enum value: EDITION_2023 = 1000;
|
|
58
|
+
*/
|
|
59
|
+
Edition[Edition["EDITION_2023"] = 1000] = "EDITION_2023";
|
|
60
|
+
/**
|
|
61
|
+
* Placeholder editions for testing feature resolution. These should not be
|
|
62
|
+
* used or relyed on outside of tests.
|
|
63
|
+
*
|
|
64
|
+
* @generated from enum value: EDITION_1_TEST_ONLY = 1;
|
|
65
|
+
*/
|
|
66
|
+
Edition[Edition["EDITION_1_TEST_ONLY"] = 1] = "EDITION_1_TEST_ONLY";
|
|
67
|
+
/**
|
|
68
|
+
* @generated from enum value: EDITION_2_TEST_ONLY = 2;
|
|
69
|
+
*/
|
|
70
|
+
Edition[Edition["EDITION_2_TEST_ONLY"] = 2] = "EDITION_2_TEST_ONLY";
|
|
71
|
+
/**
|
|
72
|
+
* @generated from enum value: EDITION_99997_TEST_ONLY = 99997;
|
|
73
|
+
*/
|
|
74
|
+
Edition[Edition["EDITION_99997_TEST_ONLY"] = 99997] = "EDITION_99997_TEST_ONLY";
|
|
75
|
+
/**
|
|
76
|
+
* @generated from enum value: EDITION_99998_TEST_ONLY = 99998;
|
|
77
|
+
*/
|
|
78
|
+
Edition[Edition["EDITION_99998_TEST_ONLY"] = 99998] = "EDITION_99998_TEST_ONLY";
|
|
79
|
+
/**
|
|
80
|
+
* @generated from enum value: EDITION_99999_TEST_ONLY = 99999;
|
|
81
|
+
*/
|
|
82
|
+
Edition[Edition["EDITION_99999_TEST_ONLY"] = 99999] = "EDITION_99999_TEST_ONLY";
|
|
83
|
+
})(Edition || (Edition = {}));
|
|
84
|
+
// Retrieve enum metadata with: proto2.getEnumType(Edition)
|
|
85
|
+
proto2.util.setEnumType(Edition, "google.protobuf.Edition", [
|
|
86
|
+
{ no: 0, name: "EDITION_UNKNOWN" },
|
|
87
|
+
{ no: 998, name: "EDITION_PROTO2" },
|
|
88
|
+
{ no: 999, name: "EDITION_PROTO3" },
|
|
89
|
+
{ no: 1000, name: "EDITION_2023" },
|
|
90
|
+
{ no: 1, name: "EDITION_1_TEST_ONLY" },
|
|
91
|
+
{ no: 2, name: "EDITION_2_TEST_ONLY" },
|
|
92
|
+
{ no: 99997, name: "EDITION_99997_TEST_ONLY" },
|
|
93
|
+
{ no: 99998, name: "EDITION_99998_TEST_ONLY" },
|
|
94
|
+
{ no: 99999, name: "EDITION_99999_TEST_ONLY" },
|
|
95
|
+
]);
|
|
16
96
|
/**
|
|
17
97
|
* The protocol compiler can output a FileDescriptorSet containing the .proto
|
|
18
98
|
* files it parses.
|
|
@@ -121,7 +201,7 @@ FileDescriptorProto.fields = proto2.util.newFieldList(() => [
|
|
|
121
201
|
{ no: 8, name: "options", kind: "message", T: FileOptions, opt: true },
|
|
122
202
|
{ no: 9, name: "source_code_info", kind: "message", T: SourceCodeInfo, opt: true },
|
|
123
203
|
{ no: 12, name: "syntax", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
124
|
-
{ no:
|
|
204
|
+
{ no: 14, name: "edition", kind: "enum", T: proto2.getEnumType(Edition), opt: true },
|
|
125
205
|
]);
|
|
126
206
|
/**
|
|
127
207
|
* Describes a message type.
|
|
@@ -440,9 +520,10 @@ export var FieldDescriptorProto_Type;
|
|
|
440
520
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["STRING"] = 9] = "STRING";
|
|
441
521
|
/**
|
|
442
522
|
* Tag-delimited aggregate.
|
|
443
|
-
* Group type is deprecated and not supported
|
|
523
|
+
* Group type is deprecated and not supported after google.protobuf. However, Proto3
|
|
444
524
|
* implementations should still be able to parse the group wire format and
|
|
445
|
-
* treat group fields as unknown fields.
|
|
525
|
+
* treat group fields as unknown fields. In Editions, the group wire format
|
|
526
|
+
* can be enabled via the `message_encoding` feature.
|
|
446
527
|
*
|
|
447
528
|
* @generated from enum value: TYPE_GROUP = 10;
|
|
448
529
|
*/
|
|
@@ -520,20 +601,24 @@ export var FieldDescriptorProto_Label;
|
|
|
520
601
|
* @generated from enum value: LABEL_OPTIONAL = 1;
|
|
521
602
|
*/
|
|
522
603
|
FieldDescriptorProto_Label[FieldDescriptorProto_Label["OPTIONAL"] = 1] = "OPTIONAL";
|
|
523
|
-
/**
|
|
524
|
-
* @generated from enum value: LABEL_REQUIRED = 2;
|
|
525
|
-
*/
|
|
526
|
-
FieldDescriptorProto_Label[FieldDescriptorProto_Label["REQUIRED"] = 2] = "REQUIRED";
|
|
527
604
|
/**
|
|
528
605
|
* @generated from enum value: LABEL_REPEATED = 3;
|
|
529
606
|
*/
|
|
530
607
|
FieldDescriptorProto_Label[FieldDescriptorProto_Label["REPEATED"] = 3] = "REPEATED";
|
|
608
|
+
/**
|
|
609
|
+
* The required label is only allowed in google.protobuf. In proto3 and Editions
|
|
610
|
+
* it's explicitly prohibited. In Editions, the `field_presence` feature
|
|
611
|
+
* can be used to get this behavior.
|
|
612
|
+
*
|
|
613
|
+
* @generated from enum value: LABEL_REQUIRED = 2;
|
|
614
|
+
*/
|
|
615
|
+
FieldDescriptorProto_Label[FieldDescriptorProto_Label["REQUIRED"] = 2] = "REQUIRED";
|
|
531
616
|
})(FieldDescriptorProto_Label || (FieldDescriptorProto_Label = {}));
|
|
532
617
|
// Retrieve enum metadata with: proto2.getEnumType(FieldDescriptorProto_Label)
|
|
533
618
|
proto2.util.setEnumType(FieldDescriptorProto_Label, "google.protobuf.FieldDescriptorProto.Label", [
|
|
534
619
|
{ no: 1, name: "LABEL_OPTIONAL" },
|
|
535
|
-
{ no: 2, name: "LABEL_REQUIRED" },
|
|
536
620
|
{ no: 3, name: "LABEL_REPEATED" },
|
|
621
|
+
{ no: 2, name: "LABEL_REQUIRED" },
|
|
537
622
|
]);
|
|
538
623
|
/**
|
|
539
624
|
* Describes a oneof.
|
|
@@ -1103,7 +1188,7 @@ export class FieldOptions_EditionDefault extends Message {
|
|
|
1103
1188
|
FieldOptions_EditionDefault.runtime = proto2;
|
|
1104
1189
|
FieldOptions_EditionDefault.typeName = "google.protobuf.FieldOptions.EditionDefault";
|
|
1105
1190
|
FieldOptions_EditionDefault.fields = proto2.util.newFieldList(() => [
|
|
1106
|
-
{ no:
|
|
1191
|
+
{ no: 3, name: "edition", kind: "enum", T: proto2.getEnumType(Edition), opt: true },
|
|
1107
1192
|
{ no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1108
1193
|
]);
|
|
1109
1194
|
/**
|
|
@@ -1388,7 +1473,7 @@ UninterpretedOption_NamePart.fields = proto2.util.newFieldList(() => [
|
|
|
1388
1473
|
{ no: 2, name: "is_extension", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1389
1474
|
]);
|
|
1390
1475
|
/**
|
|
1391
|
-
* TODO
|
|
1476
|
+
* TODO Enums in C++ gencode (and potentially other languages) are
|
|
1392
1477
|
* not well scoped. This means that each of the feature enums below can clash
|
|
1393
1478
|
* with each other. The short names we've chosen maximize call-site
|
|
1394
1479
|
* readability, but leave us very open to this scenario. A future feature will
|
|
@@ -1421,10 +1506,9 @@ FeatureSet.fields = proto2.util.newFieldList(() => [
|
|
|
1421
1506
|
{ no: 1, name: "field_presence", kind: "enum", T: proto2.getEnumType(FeatureSet_FieldPresence), opt: true },
|
|
1422
1507
|
{ no: 2, name: "enum_type", kind: "enum", T: proto2.getEnumType(FeatureSet_EnumType), opt: true },
|
|
1423
1508
|
{ no: 3, name: "repeated_field_encoding", kind: "enum", T: proto2.getEnumType(FeatureSet_RepeatedFieldEncoding), opt: true },
|
|
1424
|
-
{ no: 4, name: "
|
|
1509
|
+
{ no: 4, name: "utf8_validation", kind: "enum", T: proto2.getEnumType(FeatureSet_Utf8Validation), opt: true },
|
|
1425
1510
|
{ no: 5, name: "message_encoding", kind: "enum", T: proto2.getEnumType(FeatureSet_MessageEncoding), opt: true },
|
|
1426
1511
|
{ no: 6, name: "json_format", kind: "enum", T: proto2.getEnumType(FeatureSet_JsonFormat), opt: true },
|
|
1427
|
-
{ no: 999, name: "raw_features", kind: "message", T: FeatureSet, opt: true },
|
|
1428
1512
|
]);
|
|
1429
1513
|
/**
|
|
1430
1514
|
* @generated from enum google.protobuf.FeatureSet.FieldPresence
|
|
@@ -1504,33 +1588,28 @@ proto2.util.setEnumType(FeatureSet_RepeatedFieldEncoding, "google.protobuf.Featu
|
|
|
1504
1588
|
{ no: 2, name: "EXPANDED" },
|
|
1505
1589
|
]);
|
|
1506
1590
|
/**
|
|
1507
|
-
* @generated from enum google.protobuf.FeatureSet.
|
|
1591
|
+
* @generated from enum google.protobuf.FeatureSet.Utf8Validation
|
|
1508
1592
|
*/
|
|
1509
|
-
export var
|
|
1510
|
-
(function (
|
|
1593
|
+
export var FeatureSet_Utf8Validation;
|
|
1594
|
+
(function (FeatureSet_Utf8Validation) {
|
|
1511
1595
|
/**
|
|
1512
|
-
* @generated from enum value:
|
|
1596
|
+
* @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0;
|
|
1513
1597
|
*/
|
|
1514
|
-
|
|
1598
|
+
FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["UTF8_VALIDATION_UNKNOWN"] = 0] = "UTF8_VALIDATION_UNKNOWN";
|
|
1515
1599
|
/**
|
|
1516
|
-
* @generated from enum value:
|
|
1600
|
+
* @generated from enum value: NONE = 1;
|
|
1517
1601
|
*/
|
|
1518
|
-
|
|
1602
|
+
FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["NONE"] = 1] = "NONE";
|
|
1519
1603
|
/**
|
|
1520
|
-
* @generated from enum value:
|
|
1604
|
+
* @generated from enum value: VERIFY = 2;
|
|
1521
1605
|
*/
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
proto2.util.setEnumType(FeatureSet_StringFieldValidation, "google.protobuf.FeatureSet.StringFieldValidation", [
|
|
1530
|
-
{ no: 0, name: "STRING_FIELD_VALIDATION_UNKNOWN" },
|
|
1531
|
-
{ no: 1, name: "MANDATORY" },
|
|
1532
|
-
{ no: 2, name: "HINT" },
|
|
1533
|
-
{ no: 3, name: "NONE" },
|
|
1606
|
+
FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["VERIFY"] = 2] = "VERIFY";
|
|
1607
|
+
})(FeatureSet_Utf8Validation || (FeatureSet_Utf8Validation = {}));
|
|
1608
|
+
// Retrieve enum metadata with: proto2.getEnumType(FeatureSet_Utf8Validation)
|
|
1609
|
+
proto2.util.setEnumType(FeatureSet_Utf8Validation, "google.protobuf.FeatureSet.Utf8Validation", [
|
|
1610
|
+
{ no: 0, name: "UTF8_VALIDATION_UNKNOWN" },
|
|
1611
|
+
{ no: 1, name: "NONE" },
|
|
1612
|
+
{ no: 2, name: "VERIFY" },
|
|
1534
1613
|
]);
|
|
1535
1614
|
/**
|
|
1536
1615
|
* @generated from enum google.protobuf.FeatureSet.MessageEncoding
|
|
@@ -1580,6 +1659,75 @@ proto2.util.setEnumType(FeatureSet_JsonFormat, "google.protobuf.FeatureSet.JsonF
|
|
|
1580
1659
|
{ no: 1, name: "ALLOW" },
|
|
1581
1660
|
{ no: 2, name: "LEGACY_BEST_EFFORT" },
|
|
1582
1661
|
]);
|
|
1662
|
+
/**
|
|
1663
|
+
* A compiled specification for the defaults of a set of features. These
|
|
1664
|
+
* messages are generated from FeatureSet extensions and can be used to seed
|
|
1665
|
+
* feature resolution. The resolution with this object becomes a simple search
|
|
1666
|
+
* for the closest matching edition, followed by proto merges.
|
|
1667
|
+
*
|
|
1668
|
+
* @generated from message google.protobuf.FeatureSetDefaults
|
|
1669
|
+
*/
|
|
1670
|
+
export class FeatureSetDefaults extends Message {
|
|
1671
|
+
constructor(data) {
|
|
1672
|
+
super();
|
|
1673
|
+
/**
|
|
1674
|
+
* @generated from field: repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
|
|
1675
|
+
*/
|
|
1676
|
+
this.defaults = [];
|
|
1677
|
+
proto2.util.initPartial(data, this);
|
|
1678
|
+
}
|
|
1679
|
+
static fromBinary(bytes, options) {
|
|
1680
|
+
return new FeatureSetDefaults().fromBinary(bytes, options);
|
|
1681
|
+
}
|
|
1682
|
+
static fromJson(jsonValue, options) {
|
|
1683
|
+
return new FeatureSetDefaults().fromJson(jsonValue, options);
|
|
1684
|
+
}
|
|
1685
|
+
static fromJsonString(jsonString, options) {
|
|
1686
|
+
return new FeatureSetDefaults().fromJsonString(jsonString, options);
|
|
1687
|
+
}
|
|
1688
|
+
static equals(a, b) {
|
|
1689
|
+
return proto2.util.equals(FeatureSetDefaults, a, b);
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
FeatureSetDefaults.runtime = proto2;
|
|
1693
|
+
FeatureSetDefaults.typeName = "google.protobuf.FeatureSetDefaults";
|
|
1694
|
+
FeatureSetDefaults.fields = proto2.util.newFieldList(() => [
|
|
1695
|
+
{ no: 1, name: "defaults", kind: "message", T: FeatureSetDefaults_FeatureSetEditionDefault, repeated: true },
|
|
1696
|
+
{ no: 4, name: "minimum_edition", kind: "enum", T: proto2.getEnumType(Edition), opt: true },
|
|
1697
|
+
{ no: 5, name: "maximum_edition", kind: "enum", T: proto2.getEnumType(Edition), opt: true },
|
|
1698
|
+
]);
|
|
1699
|
+
/**
|
|
1700
|
+
* A map from every known edition with a unique set of defaults to its
|
|
1701
|
+
* defaults. Not all editions may be contained here. For a given edition,
|
|
1702
|
+
* the defaults at the closest matching edition ordered at or before it should
|
|
1703
|
+
* be used. This field must be in strict ascending order by edition.
|
|
1704
|
+
*
|
|
1705
|
+
* @generated from message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
1706
|
+
*/
|
|
1707
|
+
export class FeatureSetDefaults_FeatureSetEditionDefault extends Message {
|
|
1708
|
+
constructor(data) {
|
|
1709
|
+
super();
|
|
1710
|
+
proto2.util.initPartial(data, this);
|
|
1711
|
+
}
|
|
1712
|
+
static fromBinary(bytes, options) {
|
|
1713
|
+
return new FeatureSetDefaults_FeatureSetEditionDefault().fromBinary(bytes, options);
|
|
1714
|
+
}
|
|
1715
|
+
static fromJson(jsonValue, options) {
|
|
1716
|
+
return new FeatureSetDefaults_FeatureSetEditionDefault().fromJson(jsonValue, options);
|
|
1717
|
+
}
|
|
1718
|
+
static fromJsonString(jsonString, options) {
|
|
1719
|
+
return new FeatureSetDefaults_FeatureSetEditionDefault().fromJsonString(jsonString, options);
|
|
1720
|
+
}
|
|
1721
|
+
static equals(a, b) {
|
|
1722
|
+
return proto2.util.equals(FeatureSetDefaults_FeatureSetEditionDefault, a, b);
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
FeatureSetDefaults_FeatureSetEditionDefault.runtime = proto2;
|
|
1726
|
+
FeatureSetDefaults_FeatureSetEditionDefault.typeName = "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault";
|
|
1727
|
+
FeatureSetDefaults_FeatureSetEditionDefault.fields = proto2.util.newFieldList(() => [
|
|
1728
|
+
{ no: 3, name: "edition", kind: "enum", T: proto2.getEnumType(Edition), opt: true },
|
|
1729
|
+
{ no: 2, name: "features", kind: "message", T: FeatureSet, opt: true },
|
|
1730
|
+
]);
|
|
1583
1731
|
/**
|
|
1584
1732
|
* Encapsulates information about the original source file from which a
|
|
1585
1733
|
* FileDescriptorProto was generated.
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
|
-
// @generated by protoc-gen-es v1.4.
|
|
14
|
+
// @generated by protoc-gen-es v1.4.2 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
|
|
15
15
|
// @generated from file google/protobuf/struct.proto (package google.protobuf, syntax proto3)
|
|
16
16
|
/* eslint-disable */
|
|
17
17
|
import { proto3 } from "../../proto3.js";
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
|
-
// @generated by protoc-gen-es v1.4.
|
|
14
|
+
// @generated by protoc-gen-es v1.4.2 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
|
|
15
15
|
// @generated from file google/protobuf/type.proto (package google.protobuf, syntax proto3)
|
|
16
16
|
/* eslint-disable */
|
|
17
17
|
import { proto3 } from "../../proto3.js";
|
package/package.json
CHANGED