#[non_exhaustive]pub enum Edition {
Show 13 variants
Unknown,
Legacy,
Proto2,
Proto3,
Edition2023,
Edition2024,
Edition1TestOnly,
Edition2TestOnly,
Edition99997TestOnly,
Edition99998TestOnly,
Edition99999TestOnly,
Max,
UnknownValue(UnknownValue),
}Expand description
The full set of known editions.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unknown
A placeholder for an unknown edition value.
Legacy
A placeholder edition for specifying default behaviors before a feature was first introduced. This is effectively an “infinite past”.
Proto2
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.
Proto3
Edition2023
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.
Edition2024
Edition1TestOnly
Placeholder editions for testing feature resolution. These should not be used or relied on outside of tests.
Edition2TestOnly
Edition99997TestOnly
Edition99998TestOnly
Edition99999TestOnly
Max
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.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using Edition::value or Edition::name.