Enumerationswift-protobuf 1.28.1SwiftProtobuf
Google_Protobuf_Edition
The full set of known editions.
descriptor.pb.swift:63enum Google_Protobuf_Edition
Cases
case unknown
A placeholder for an unknown edition value.
case legacy
A placeholder edition for specifying default behaviors before a feature was first introduced. This is effectively an “infinite past”.
case 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.
case proto3
case 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.
case edition2024
case edition1TestOnly
Placeholder editions for testing feature resolution. These should not be used or relyed on outside of tests.
case edition2TestOnly
case edition99997TestOnly
case edition99998TestOnly
case edition99999TestOnly
case 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.
Citizens in SwiftProtobuf
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol Enum
Generated enum types conform to this protocol.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
Show implementation details (1)
Hide implementation details
protocol _ProtoNameProviding
SwiftProtobuf Internal: Common support looking up field names.
Typealiases
Type members
Show implementation details (1)
Hide implementation details
Instance members
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.
Instance features
Available in SwiftProtobufPluginLibrary
Conformances
protocol Comparable
A type that can be compared using the relational operators
<
,<=
,>=
, and>
.
Type members
Type features
static func ... (minimum: Self
) -> PartialRangeFrom<Self> Returns a partial range extending upward from a lower bound.
static func ... (maximum: Self
) -> PartialRangeThrough<Self> Returns a partial range up to, and including, its upper bound.
static func ... (minimum: Self, maximum: Self
) -> ClosedRange<Self> Returns a closed range that contains both of its bounds.
static func ..< (maximum: Self
) -> PartialRangeUpTo<Self> Returns a partial range up to, but not including, its upper bound.
static func ..< (minimum: Self, maximum: Self
) -> Range<Self> Returns a half-open range that contains its lower bound but not its upper bound.
static func <= (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument.
static func > (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument.
static func >= (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument.