Reference documentation and code samples for the proto library Client class Edition.
The full set of known editions.
Protobuf type google.protobuf.Edition
Namespace
Google \ Protobuf \ InternalMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
EDITION_UNKNOWN
Value: 0A placeholder for an unknown edition value.
Generated from protobuf enum EDITION_UNKNOWN = 0;
EDITION_LEGACY
Value: 900A placeholder edition for specifying default behaviors before a feature was first introduced. This is effectively an "infinite past".
Generated from protobuf enum EDITION_LEGACY = 900;
EDITION_PROTO2
Value: 998Legacy 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.
Generated from protobuf enum EDITION_PROTO2 = 998;
EDITION_PROTO3
Value: 999Generated from protobuf enum EDITION_PROTO3 = 999;
EDITION_2023
Value: 1000Editions 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.
Generated from protobuf enum EDITION_2023 = 1000;
EDITION_2024
Value: 1001Generated from protobuf enum EDITION_2024 = 1001;
EDITION_2026
Value: 1002Generated from protobuf enum EDITION_2026 = 1002;
EDITION_UNSTABLE
Value: 9999A placeholder edition for developing and testing unscheduled features.
Generated from protobuf enum EDITION_UNSTABLE = 9999;
EDITION_1_TEST_ONLY
Value: 1Placeholder editions for testing feature resolution. These should not be used or relied on outside of tests.
Generated from protobuf enum EDITION_1_TEST_ONLY = 1;
EDITION_2_TEST_ONLY
Value: 2Generated from protobuf enum EDITION_2_TEST_ONLY = 2;
EDITION_99997_TEST_ONLY
Value: 99997Generated from protobuf enum EDITION_99997_TEST_ONLY = 99997;
EDITION_99998_TEST_ONLY
Value: 99998Generated from protobuf enum EDITION_99998_TEST_ONLY = 99998;
EDITION_99999_TEST_ONLY
Value: 99999Generated from protobuf enum EDITION_99999_TEST_ONLY = 99999;
EDITION_MAX
Value: 2147483647Placeholder 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.
Generated from protobuf enum EDITION_MAX = 2147483647;