Required Instance Methodswift-protobuf 1.29.0SwiftProtobuf
traverse(visitor:)
Fields know their own type, so can dispatch to a visitor
func traverse<V>(visitor: inout V) throws where V : Visitor
Fields know their own type, so can dispatch to a visitor
func traverse<V>(visitor: inout V) throws where V : Visitor
s13SwiftProtobuf17AnyExtensionFieldP8traverse7visitoryqd__z_tKAA7VisitorRd__lF
What are these?1P9OY
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
@preconcurrency protocol AnyExtensionField : CustomDebugStringConvertible, Sendable
Core protocols implemented by generated extensions.
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.
var isInitialized: Bool { get }
Check if the field is initialized.
var protobufExtension: any AnyMessageExtension { get }
mutating func decodeExtensionField<T>(decoder: inout T) throws where T : Decoder
Merging field decoding
func hash(into hasher: inout Hasher)
func isEqual(other: any AnyExtensionField) -> Bool