Instance Methodswift-protobuf 1.28.1SwiftProtobuf
clearDeprecatedLegacyJsonFieldConflicts
Clears the value of deprecatedLegacyJsonFieldConflicts
. Subsequent reads from it will return its default value.
mutating func clearDeprecatedLegacyJsonFieldConflicts()
Other members in extension
Type members
init(
) static let protoMessageName: String
static func == (lhs: Google_Protobuf_EnumOptions, rhs: Google_Protobuf_EnumOptions
) -> Bool
Show implementation details (1)
Hide implementation details
Instance members
var allowAlias: Bool
Set this option to true to allow mapping different tag names to the same value.
var deprecated: Bool
Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.
var deprecatedLegacyJsonFieldConflicts: Bool
Enable the legacy handling of JSON field name conflicts. This lowercases and strips underscored from the fields before comparison in proto3 only. The new behavior takes
json_name
into account and applies to proto2 as well. TODO Remove this legacy behavior once downstream teams have had time to migrate.var features: Google_Protobuf_FeatureSet
Any features defined in the specific edition.
var hasAllowAlias: Bool
Returns true if
allowAlias
has been explicitly set.var hasDeprecated: Bool
Returns true if
deprecated
has been explicitly set.var hasDeprecatedLegacyJsonFieldConflicts: Bool
Returns true if
deprecatedLegacyJsonFieldConflicts
has been explicitly set.var hasFeatures: Bool
Returns true if
features
has been explicitly set.var isInitialized: Bool
var uninterpretedOption: [Google_Protobuf_UninterpretedOption]
The parser stores options it doesn’t recognize here. See above.
var unknownFields: UnknownStorage
func clearAllowAlias(
) Clears the value of
allowAlias
. Subsequent reads from it will return its default value.func clearDeprecated(
) Clears the value of
deprecated
. Subsequent reads from it will return its default value.func clearFeatures(
) Clears the value of
features
. Subsequent reads from it will return its default value.func decodeMessage<D>(decoder: inout D
) throws func traverse<V>(visitor: inout V
) throws