Required Static Propertyswift-protobuf 1.28.1SwiftProtobuf
protoMessageName
The fully-scoped name of the message from the original .proto file, including any relevant package name.
Message.swift:46static var protoMessageName: String { get }
Other requirements
Type members
init(
) Creates a new message with all of its fields initialized to their default values.
Instance members
var isInitialized: Bool
True if all required fields (if any) on this message and any nested messages (recursively) have values set; otherwise, false.
var unknownFields: UnknownStorage
Some formats include enough information to transport fields that were not known at generation time. When encountered, they are stored here.
func decodeMessage<D>(decoder: inout D
) throws Decode all of the fields from the given decoder.
func hash(into: inout Hasher
) An implementation of hash(into:) to provide conformance with the
Hashable
protocol.func isEqualTo(message: any Message
) -> Bool Helper to compare
Message
s when not having a specific type to use normalEquatable
.Equatable
is provided with specific generated types.func traverse<V>(visitor: inout V
) throws Traverses the fields of the message, calling the appropriate methods of the passed
Visitor
object.