Instance Propertyswift-protobuf 1.28.1SwiftProtobuf
deprecatedLegacyJsonFieldConflicts
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.
var deprecatedLegacyJsonFieldConflicts: Bool { get set }
This should only be used as a temporary measure against broken builds due to the change in behavior for JSON field name conflicts.
TODO This is legacy behavior we plan to remove once downstream teams have had time to migrate.
NOTE: This field was marked as deprecated in the .proto file.
Other members in extension
Type members
init(
) static let protoMessageName: String
static func == (lhs: Google_Protobuf_MessageOptions, rhs: Google_Protobuf_MessageOptions
) -> Bool
Show implementation details (1)
Hide implementation details
Instance members
var deprecated: Bool
Is this message deprecated? Depending on the target platform, this can emit Deprecated annotations for the message, or it will be completely ignored; in the very least, this is a formalization for deprecating messages.
var features: Google_Protobuf_FeatureSet
Any features defined in the specific edition.
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 hasMapEntry: Bool
Returns true if
mapEntry
has been explicitly set.var hasMessageSetWireFormat: Bool
Returns true if
messageSetWireFormat
has been explicitly set.var hasNoStandardDescriptorAccessor: Bool
Returns true if
noStandardDescriptorAccessor
has been explicitly set.var isInitialized: Bool
var mapEntry: Bool
Whether the message is an automatically generated map entry type for the maps field.
var messageSetWireFormat: Bool
Set true to use the old proto1 MessageSet wire format for extensions. This is provided for backwards-compatibility with the MessageSet wire format. You should not use this for any other reason: It’s less efficient, has fewer features, and is more complicated.
var noStandardDescriptorAccessor: Bool
Disables the generation of the standard “descriptor()” accessor, which can conflict with a field of the same name. This is meant to make migration from proto1 easier; new code should avoid fields named “descriptor”.
var uninterpretedOption: [Google_Protobuf_UninterpretedOption]
The parser stores options it doesn’t recognize here. See above.
var unknownFields: UnknownStorage
func clearDeprecated(
) Clears the value of
deprecated
. Subsequent reads from it will return its default value.func clearDeprecatedLegacyJsonFieldConflicts(
) Clears the value of
deprecatedLegacyJsonFieldConflicts
. 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 clearMapEntry(
) Clears the value of
mapEntry
. Subsequent reads from it will return its default value.func clearMessageSetWireFormat(
) Clears the value of
messageSetWireFormat
. Subsequent reads from it will return its default value.func clearNoStandardDescriptorAccessor(
) Clears the value of
noStandardDescriptorAccessor
. Subsequent reads from it will return its default value.func decodeMessage<D>(decoder: inout D
) throws func traverse<V>(visitor: inout V
) throws