Instance Propertyswift-protobuf 1.28.1SwiftProtobuf
hasName
Returns true if name
has been explicitly set.
var hasName: Bool { get }
Other members in extension
Types
struct EnumReservedRange
Range of reserved numeric values. Reserved values may not be used by entries in the same enum. Reserved ranges may not overlap.
Type members
init(
) static let protoMessageName: String
static func == (lhs: Google_Protobuf_EnumDescriptorProto, rhs: Google_Protobuf_EnumDescriptorProto
) -> Bool
Show implementation details (1)
Hide implementation details
Instance members
var hasOptions: Bool
Returns true if
options
has been explicitly set.var isInitialized: Bool
var name: String
var options: Google_Protobuf_EnumOptions
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]
func clearName(
) Clears the value of
name
. Subsequent reads from it will return its default value.func clearOptions(
) Clears the value of
options
. Subsequent reads from it will return its default value.func decodeMessage<D>(decoder: inout D
) throws func traverse<V>(visitor: inout V
) throws