Instance Propertyswift-protobuf 1.28.1SwiftProtobufPluginLibrary
fields
The fields of this message.
Descriptor.swift:541let fields: [FieldDescriptor]
Other members in extension
Types
class ExtensionRange
Describes an extension range of a message.
ExtensionRange
s are not directly created, instead they are constructed/fetched via theDescriptor
.enum WellKnownType
The type of this Message.
Instance members
var containingType: Descriptor?
If this Descriptor describes a nested type, this returns the type in which it is nested.
let enums: [EnumDescriptor]
The enum defintions under this message.
let extensions: [FieldDescriptor]
The extension field defintions under this message.
let features: Google_Protobuf_FeatureSet
The resolved features for this Descriptor.
var file: FileDescriptor!
The .proto file in which this message type was defined.
let fullName: String
The fully-qualified name of the message type, scope delimited by periods. For example, message type “Foo” which is declared in package “bar” has full name “bar.Foo”. If a type “Baz” is nested within Foo, Baz’s
fullName
is “bar.Foo.Baz”. To get only the part that comes after the last ‘.’, use name().let index: Int
Index of this descriptor within the file or containing type’s message type array.
var isDeprecated: Bool
var mapKeyAndValue: (key: FieldDescriptor, value: FieldDescriptor)?
Returns the
FieldDescriptor
s for the “key” and “value” fields. If this isn’t a map entry field, returns nil.let messageExtensionRanges: [ExtensionRange]
The extension ranges declared for this message. They are returned in the order they are defined in the .proto file.
let messages: [Descriptor]
The message defintions under this message. In the C++ Descriptor this is
nested_type
.let name: String
The name of the message type, not including its scope.
let oneofs: [OneofDescriptor]
The oneofs in this message. This can include synthetic oneofs.
let options: Google_Protobuf_MessageOptions
The
Google_Protobuf_MessageOptions
set on this Message.var realOneofs: [OneofDescriptor]
Non synthetic oneofs.
let reservedNames: [String]
The reserved field names for this message. These are returned in the order they are defined in the .proto file.
let reservedRanges: [Range<Int32>]
The reserved field number ranges for this message. These are returned in the order they are defined in the .proto file.
var typeName: String
let wellKnownType: WellKnownType?
func getLocationPath(path: inout IndexPath
)
Show obsolete interfaces (6)
Hide obsolete interfaces
var ambitiousExtensionRanges: [Google_Protobuf_DescriptorProto.ExtensionRange]
The
extensionRanges
fromnormalizedExtensionRanges
, but takes a step further in that any ranges that do not have any fields inbetween them are also merged together. These can then be used in context where it is ok to include field numbers that have to be extension or unknown fields.var extensionRanges: [Google_Protobuf_DescriptorProto.ExtensionRange]
The extension ranges declared for this message. They are returned in the order they are defined in the .proto file.
var isMapEntry: Bool
True/False if this Message is just for a
map<>
entry.var normalizedExtensionRanges: [Google_Protobuf_DescriptorProto.ExtensionRange]
The
extensionRanges
are in the order they appear in the original .proto file; this orders them and then merges any ranges that are actually contiguious (i.e. - [(21,30),(10,20)] -> [(10,30)])var proto: Google_Protobuf_DescriptorProto
var useMessageSetWireFormat: Bool