_protobuf_nameMap
descriptor.pb.swift:3997static let _protobuf_nameMap: _NameMap
static let _protobuf_nameMap: _NameMap
s13SwiftProtobuf07Google_B15_MessageOptionsV17_protobuf_nameMapAA05_NameH0VvpZ
What are these?9LE8C
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
struct Google_Protobuf_MessageOptions
struct _NameMap
An immutable bidirectional mapping between field/enum-case names and numbers, used to record field names for text-based serialization (JSON and text). These maps are lazily instantiated for each message as needed, so there is no run-time overhead for users who do not use text-based serialization formats.
init()
static let protoMessageName: String
var _protobuf_extensionFieldValues: ExtensionFieldValueSet
var deprecated: Bool { get set }
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 deprecatedLegacyJsonFieldConflicts: Bool { get set }
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 features: Google_Protobuf_FeatureSet { get set }
Any features defined in the specific edition. WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
var hasDeprecated: Bool { get }
Returns true if deprecated
has been explicitly set.
var hasDeprecatedLegacyJsonFieldConflicts: Bool { get }
Returns true if deprecatedLegacyJsonFieldConflicts
has been explicitly set.
var hasFeatures: Bool { get }
Returns true if features
has been explicitly set.
var hasMapEntry: Bool { get }
Returns true if mapEntry
has been explicitly set.
var hasMessageSetWireFormat: Bool { get }
Returns true if messageSetWireFormat
has been explicitly set.
var hasNoStandardDescriptorAccessor: Bool { get }
Returns true if noStandardDescriptorAccessor
has been explicitly set.
var isInitialized: Bool { get }
var mapEntry: Bool { get set }
Whether the message is an automatically generated map entry type for the maps field.
var messageSetWireFormat: Bool { get set }
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 { get set }
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
static func == (lhs: Google_Protobuf_MessageOptions, rhs: Google_Protobuf_MessageOptions) -> Bool
mutating func clearDeprecated()
Clears the value of deprecated
. Subsequent reads from it will return its default value.
mutating func clearDeprecatedLegacyJsonFieldConflicts()
Clears the value of deprecatedLegacyJsonFieldConflicts
. Subsequent reads from it will return its default value.
mutating func clearFeatures()
Clears the value of features
. Subsequent reads from it will return its default value.
mutating func clearMapEntry()
Clears the value of mapEntry
. Subsequent reads from it will return its default value.
mutating func clearMessageSetWireFormat()
Clears the value of messageSetWireFormat
. Subsequent reads from it will return its default value.
mutating func clearNoStandardDescriptorAccessor()
Clears the value of noStandardDescriptorAccessor
. 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