Instance Methodswift-protobuf 1.29.0SwiftProtobuf
traverse(visitor:)
descriptor.pb.swift:3587func traverse<V>(visitor: inout V) throws where V : Visitor
func traverse<V>(visitor: inout V) throws where V : Visitor
s13SwiftProtobuf07Google_B25_EnumValueDescriptorProtoV8traverse7visitoryxz_tKAA7VisitorRzlF
What are these?1FMOV
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
struct Google_Protobuf_EnumValueDescriptorProto
Describes a value within an enum.
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 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