class Edition (View source)

The full set of known editions.

Protobuf type google.protobuf.Edition

Constants

EDITION_UNKNOWN

A placeholder for an unknown edition value.

Generated from protobuf enum EDITION_UNKNOWN = 0;

EDITION_LEGACY

A 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

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.

Generated from protobuf enum EDITION_PROTO2 = 998;

EDITION_PROTO3

Generated from protobuf enum EDITION_PROTO3 = 999;

EDITION_2023

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.

Generated from protobuf enum EDITION_2023 = 1000;

EDITION_2024

Generated from protobuf enum EDITION_2024 = 1001;

EDITION_UNSTABLE

A placeholder edition for developing and testing unscheduled features.

Generated from protobuf enum EDITION_UNSTABLE = 9999;

EDITION_1_TEST_ONLY

Placeholder 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

Generated from protobuf enum EDITION_2_TEST_ONLY = 2;

EDITION_99997_TEST_ONLY

Generated from protobuf enum EDITION_99997_TEST_ONLY = 99997;

EDITION_99998_TEST_ONLY

Generated from protobuf enum EDITION_99998_TEST_ONLY = 99998;

EDITION_99999_TEST_ONLY

Generated from protobuf enum EDITION_99999_TEST_ONLY = 99999;

EDITION_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.

Generated from protobuf enum EDITION_MAX = 2147483647;

Methods

static 
name($value)

No description

static 
value($name)

No description

Details

static name($value)

No description

Parameters

$value

static value($name)

No description

Parameters

$name