defaults
descriptor.pb.swift:2357var defaults: [Google_Protobuf_FeatureSetDefaults.FeatureSetEditionDefault]
var defaults: [Google_Protobuf_FeatureSetDefaults.FeatureSetEditionDefault]
s13SwiftProtobuf07Google_B19_FeatureSetDefaultsV8defaultsSayAC0dE14EditionDefaultVGvp
What are these?1YMYP
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
struct Google_Protobuf_FeatureSetDefaults
A compiled specification for the defaults of a set of features. These messages are generated from FeatureSet extensions and can be used to seed feature resolution. The resolution with this object becomes a simple search for the closest matching edition, followed by proto merges.
struct FeatureSetEditionDefault
A map from every known edition with a unique set of defaults to its defaults. Not all editions may be contained here. For a given edition, the defaults at the closest matching edition ordered at or before it should be used. This field must be in strict ascending order by edition.
init()
static let _protobuf_nameMap: _NameMap
static let protoMessageName: String
var hasMaximumEdition: Bool { get }
Returns true if maximumEdition
has been explicitly set.
var hasMinimumEdition: Bool { get }
Returns true if minimumEdition
has been explicitly set.
var isInitialized: Bool { get }
var maximumEdition: Google_Protobuf_Edition { get set }
The maximum known edition (inclusive) when this was constructed. Editions after this will not have reliable defaults.
var minimumEdition: Google_Protobuf_Edition { get set }
The minimum supported edition (inclusive) when this was constructed. Editions before this will not have defaults.
var unknownFields: UnknownStorage
static func == (lhs: Google_Protobuf_FeatureSetDefaults, rhs: Google_Protobuf_FeatureSetDefaults) -> Bool
mutating func clearMaximumEdition()
Clears the value of maximumEdition
. Subsequent reads from it will return its default value.
mutating func clearMinimumEdition()
Clears the value of minimumEdition
. Subsequent reads from it will return its default value.
mutating func decodeMessage<D>(decoder: inout D) throws where D : Decoder
func traverse<V>(visitor: inout V) throws where V : Visitor