_protobuf_nameMap
descriptor.pb.swift:3562static let _protobuf_nameMap: _NameMap
static let _protobuf_nameMap: _NameMap
s13SwiftProtobuf07Google_B25_EnumValueDescriptorProtoV17_protobuf_nameMapAA05_NameJ0VvpZ
What are these?7LIHI
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
struct Google_Protobuf_EnumValueDescriptorProto
Describes a value within an enum.
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 hasName: Bool { get }
Returns true if name
has been explicitly set.
var hasNumber: Bool { get }
Returns true if number
has been explicitly set.
var hasOptions: Bool { get }
Returns true if options
has been explicitly set.
var isInitialized: Bool { get }
var name: String { get set }
var number: Int32 { get set }
var options: Google_Protobuf_EnumValueOptions { get set }
var unknownFields: UnknownStorage
static func == (lhs: Google_Protobuf_EnumValueDescriptorProto, rhs: Google_Protobuf_EnumValueDescriptorProto) -> Bool
mutating func clearName()
Clears the value of name
. Subsequent reads from it will return its default value.
mutating func clearNumber()
Clears the value of number
. Subsequent reads from it will return its default value.
mutating func clearOptions()
Clears the value of options
. 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