Instance Methodswift-protobuf 1.28.1SwiftProtobuf
traverse(visitor:)
type.pb.swift:798func traverse<V>(visitor: inout V) throws where V : Visitor
Other members in extension
Type members
init(
) static let protoMessageName: String
static func == (lhs: Google_Protobuf_Option, rhs: Google_Protobuf_Option
) -> Bool
Show implementation details (1)
Hide implementation details
Instance members
var hasValue: Bool
Returns true if
value
has been explicitly set.var name: String
The option’s name. For protobuf built-in options (options defined in descriptor.proto), this is the short name. For example,
"map_entry"
. For custom options, it should be the fully-qualified name. For example,"google.api.http"
.var unknownFields: UnknownStorage
var value: Google_Protobuf_Any
The option’s value packed in an Any message. If the value is a primitive, the corresponding wrapper type defined in google/protobuf/wrappers.proto should be used. If the value is an enum, it should be stored as an int32 value using the google.protobuf.Int32Value type.
func clearValue(
) Clears the value of
value
. Subsequent reads from it will return its default value.func decodeMessage<D>(decoder: inout D
) throws