Syntax
Descriptor.swift:200This declaration is deprecated: This enum has been deprecated. Use `Google_Protobuf_Edition` instead.
enum Syntax
This declaration is deprecated: This enum has been deprecated. Use `Google_Protobuf_Edition` instead.
enum Syntax
import SwiftProtobufPluginLibrary
A reusable framework for building protoc
plugins in Swift.
final class FileDescriptor
Models a .proto file. FileDescriptor
s are not directly created, instead they are constructed/fetched via the DescriptorSet
or they are directly accessed via a file
property on all the other types of descriptors.
case proto2
case proto3
let dependencies: [FileDescriptor]
The imports for this file.
let edition: Google_Protobuf_Edition
The edition of the file.
let enums: [EnumDescriptor]
The enum defintions at the file scope level.
let extensions: [FieldDescriptor]
The extension field defintions at the file scope level.
let features: Google_Protobuf_FeatureSet
The resolved features for this File.
let messages: [Descriptor]
The message defintions at the file scope level.
let name: String
The filename used with protoc.
let options: Google_Protobuf_FileOptions
The Google_Protobuf_FileOptions
set on this file.
let package: String
The proto package.
let publicDependencies: [FileDescriptor]
The subset of the imports that were declared public
.
let services: [ServiceDescriptor]
The service defintions at the file scope level.
var sourceCodeInfoLocation: Google_Protobuf_SourceCodeInfo.Location? { get }
let weakDependencies: [FileDescriptor]
The subset of the imports that were declared weak
.
func extractProto(options: ExtractProtoOptions = ExtractProtoOptions()) -> Google_Protobuf_FileDescriptorProto
Extract contents of this descriptor in Proto form.
func sourceCodeInfoLocation(path: IndexPath) -> Google_Protobuf_SourceCodeInfo.Location?
Fetch the source information for a give path. For more details on the paths and what this information is, see Google_Protobuf_SourceCodeInfo
.
var fileOptions: Google_Protobuf_FileOptions { get }
The Google_Protobuf_FileOptions
set on this file.
var isDeprecated: Bool { get }
var proto: Google_Protobuf_FileDescriptorProto { get }
The proto version of the descriptor that defines this File.
var syntax: Syntax { get }
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
init?(rawValue: String)
var hashValue: Int { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func hash(into hasher: inout Hasher)