traverse(visitor:)
descriptor.pb.swift:3484func traverse<V>(visitor: inout V) throws where V : Visitor
func traverse<V>(visitor: inout V) throws where V : Visitor
s13SwiftProtobuf07Google_B20_EnumDescriptorProtoV8traverse7visitoryxz_tKAA7VisitorRzlF
What are these?734YM
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
struct Google_Protobuf_EnumDescriptorProto
Describes an enum type.
protocol Visitor
This is the key interface used by the generated traverse()
methods used for serialization. It is implemented by each serialization protocol: Protobuf Binary, Protobuf Text, JSON, and the Hash encoder.
init()
static let _protobuf_nameMap: _NameMap
static let protoMessageName: String
var hasName: Bool { get }
Returns true if name
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 options: Google_Protobuf_EnumOptions { get set }
var reservedName: [String]
Reserved enum value names, which may not be reused. A given name may only be reserved once.
var reservedRange: [Google_Protobuf_EnumDescriptorProto.EnumReservedRange]
Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
var unknownFields: UnknownStorage
var value: [Google_Protobuf_EnumValueDescriptorProto]
static func == (lhs: Google_Protobuf_EnumDescriptorProto, rhs: Google_Protobuf_EnumDescriptorProto) -> Bool
mutating func clearName()
Clears the value of name
. 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
struct EnumReservedRange
Range of reserved numeric values. Reserved values may not be used by entries in the same enum. Reserved ranges may not overlap.