Copied!

The full set of known editions.

Protobuf type google.protobuf.Edition

CloneableInstantiable
Constants
public Google\Protobuf\Internal\Edition::EDITION_1_TEST_ONLY = 1
 

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;

public Google\Protobuf\Internal\Edition::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.

Generated from protobuf enum EDITION_2023 = 1000;

public Google\Protobuf\Internal\Edition::EDITION_2024 = 1001
 

Generated from protobuf enum EDITION_2024 = 1001;

public Google\Protobuf\Internal\Edition::EDITION_2_TEST_ONLY = 2
 

Generated from protobuf enum EDITION_2_TEST_ONLY = 2;

public Google\Protobuf\Internal\Edition::EDITION_99997_TEST_ONLY = 99997
 

Generated from protobuf enum EDITION_99997_TEST_ONLY = 99997;

public Google\Protobuf\Internal\Edition::EDITION_99998_TEST_ONLY = 99998
 

Generated from protobuf enum EDITION_99998_TEST_ONLY = 99998;

public Google\Protobuf\Internal\Edition::EDITION_99999_TEST_ONLY = 99999
 

Generated from protobuf enum EDITION_99999_TEST_ONLY = 99999;

public Google\Protobuf\Internal\Edition::EDITION_LEGACY = 900
 

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;

public Google\Protobuf\Internal\Edition::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.

Generated from protobuf enum EDITION_MAX = 2147483647;

public Google\Protobuf\Internal\Edition::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.

Generated from protobuf enum EDITION_PROTO2 = 998;

public Google\Protobuf\Internal\Edition::EDITION_PROTO3 = 999
 

Generated from protobuf enum EDITION_PROTO3 = 999;

public Google\Protobuf\Internal\Edition::EDITION_UNKNOWN = 0
 

A placeholder for an unknown edition value.

Generated from protobuf enum EDITION_UNKNOWN = 0;

Methods
public static name( $value)
public static value( $name)
Properties
private static $valueToName = ['EDITION_UNKNOWN', 900 => 'EDITION_LEGACY', 998 => 'EDITION_PROTO2', 999 => 'EDITION_PROTO3', 1000 => 'EDITION_2023', 1001 => 'EDITION_2024', 1 => 'EDITION_1_TEST_ONLY', 2 => 'EDITION_2_TEST_ONLY', 99997 => 'EDITION_99997_TEST_ONLY', 99998 => 'EDITION_99998_TEST_ONLY', 99999 => 'EDITION_99999_TEST_ONLY', 2147483647 => 'EDITION_MAX']
Properties
private static $valueToName = ['EDITION_UNKNOWN', 900 => 'EDITION_LEGACY', 998 => 'EDITION_PROTO2', 999 => 'EDITION_PROTO3', 1000 => 'EDITION_2023', 1001 => 'EDITION_2024', 1 => 'EDITION_1_TEST_ONLY', 2 => 'EDITION_2_TEST_ONLY', 99997 => 'EDITION_99997_TEST_ONLY', 99998 => 'EDITION_99998_TEST_ONLY', 99999 => 'EDITION_99999_TEST_ONLY', 2147483647 => 'EDITION_MAX']
Methods
public static name( $value)
public static value( $name)
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration