Instance Propertyswift-protobuf 1.28.1SwiftProtobufPluginLibrary
containingOneof
The oneof this field is a member of.
Descriptor.swift:1153var containingOneof: OneofDescriptor? { get }
Other members in extension
Instance members
var containingType: Descriptor!
The
Descriptor
of the message which this is a field of. For extensions, this is the extended type.let defaultValue: String?
The explicitly declared default value for this field.
var enumType: EnumDescriptor!
When this is a enum field, that enum’s
EnumDescriptor
.var extensionScope: Descriptor?
Extensions can be declared within the scope of another message. If this is an extension field, then this will be the scope it was declared in nil if was declared at a global scope.
let features: Google_Protobuf_FeatureSet
var file: FileDescriptor!
File in which this field was defined.
var fullName: String
Fully-qualified name of the field.
var hasPresence: Bool
Returns true if this field tracks presence, ie. does the field distinguish between “unset” and “present with default value.” This includes required, optional, and oneof fields. It excludes maps, repeated fields, and singular proto3 fields without “optional”.
let index: Int
Index of this field within the message’s fields, or the file or extension scope’s extensions.
var internal_isGroupLike: Bool
Helper to see if this is “group-like”. Edition 2024 will likely provide a new feature to better deal with this. See upsteam protobuf for more details on the problem.
let isExtension: Bool
If this is an extension field.
var isMap: Bool
True if this field is a map.
var isOptional: Bool
Shorthand for
label
==.optional
var isPackable: Bool
Is this field packable.
var isPacked: Bool
If this field is packable and packed.
var isRepeated: Bool
Shorthand for
label
==.repeated
var isRequired: Bool
Shorthand for
label
==.required
.let jsonName: String?
JSON name of this field.
let label: Google_Protobuf_FieldDescriptorProto.Label
optional/required/repeated
var messageType: Descriptor!
When this is a message/group field, that message’s
Descriptor
.let name: String
Name of this field within the message.
let number: Int32
The field number.
let oneofIndex: Int32?
The index in a oneof this field is in.
var options: Google_Protobuf_FieldOptions
The FieldOptions for this field.
var realContainingOneof: OneofDescriptor?
The non synthetic oneof this field is a member of.
var requiresUTF8Validation: Bool
Returns true if this is a string field and should do UTF-8 validation.
var type: Google_Protobuf_FieldDescriptorProto.TypeEnum
Declared type of this field.
func deprecationComment(commentPrefix: String
) -> String func getLocationPath(path: inout IndexPath
)
Show obsolete interfaces (5)
Hide obsolete interfaces
var explicitDefaultValue: String?
The explicitly declared default value for this field.
var hasOptionalKeyword: Bool
var oneof: OneofDescriptor?
The oneof this field is a member of.
var proto: Google_Protobuf_FieldDescriptorProto
var realOneof: OneofDescriptor?
The non synthetic oneof this field is a member of.