The full set of known editions.
Attributes#
| Attribute | Type | Description |
|---|---|---|
EDITION_UNKNOWN | = 0 | A placeholder for an unknown edition value. |
EDITION_LEGACY | = 900 | A placeholder edition for specifying default behaviors before a feature was first introduced. This is effectively an "infinite past". |
EDITION_PROTO2 | = 998 | Legacy syntax "editions". These pre-date editions, but behave much like distinct editions. These can't be used to specify the edition of proto files, but feature definitions must supply proto2/proto3 defaults for backwards compatibility. |
EDITION_PROTO3 | = 999 | |
EDITION_2023 | = 1000 | Editions that have been released. The specific values are arbitrary and should not be depended on, but they will always be time-ordered for easy comparison. |
EDITION_2024 | = 1001 | |
EDITION_2026 | = 1002 | |
EDITION_UNSTABLE | = 9999 | A placeholder edition for developing and testing unscheduled features. |
EDITION_1_TEST_ONLY | = 1 | Placeholder editions for testing feature resolution. These should not be used or relied on outside of tests. |
EDITION_2_TEST_ONLY | = 2 | |
EDITION_99997_TEST_ONLY | = 99997 | |
EDITION_99998_TEST_ONLY | = 99998 | |
EDITION_99999_TEST_ONLY | = 99999 | |
EDITION_MAX | = 2147483647 | Placeholder for specifying unbounded edition support. This should only ever be used by plugins that can expect to never require any changes to support a new edition. |
On This Page
Attributes