ServiceDescriptor
Describes an RPC service.
final class ServiceDescriptor
SwiftProtobuf does not generate anything for these (or methods), but they are here to support things that generate based off RPCs defined in .proto file (gRPC, etc.).
Describes an RPC service.
final class ServiceDescriptor
SwiftProtobuf does not generate anything for these (or methods), but they are here to support things that generate based off RPCs defined in .proto file (gRPC, etc.).
import SwiftProtobufPluginLibrary
A reusable framework for building protoc
plugins in Swift.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Escapable
protocol ProvidesDeprecationComment
Protocol that all the Descriptors conform to provide deprecation comments
protocol ProvidesLocationPath
Protocol that all the Descriptors conform to for original .proto file location lookup.
protocol ProvidesSourceCodeLocation
Protocol that all the Descriptors conform to for original .proto file location lookup.
protocol TypeOrFileProvidesDeprecationComment : ProvidesDeprecationComment
Protocol that a Descriptor can confirm to when the Type or the File controls depecation.
let features: Google_Protobuf_FeatureSet
The resolved features for this Service.
var file: FileDescriptor! { get }
The .proto file in which this service was defined
let fullName: String
The fully-qualified name of the service, scope delimited by periods.
let index: Int
Index of this service within the file’s services.
var isDeprecated: Bool { get }
let methods: [MethodDescriptor]
The methods defined on this service. These are returned in the order they were defined in the .proto file.
let name: String
The name of the service, not including its containing scope.
let options: Google_Protobuf_ServiceOptions
Get Google_Protobuf_ServiceOptions
for this service.
var typeName: String { get }
func getLocationPath(path: inout IndexPath)
var proto: Google_Protobuf_ServiceDescriptorProto { get }
var sourceCodeInfoLocation: Google_Protobuf_SourceCodeInfo.Location? { get }
func deprecationComment(commentPrefix: String) -> String
Default implementation to provide the depectation comment.
func protoSourceComments(commentPrefix: String = "///", leadingDetachedPrefix: String? = nil) -> String
Helper to get a source comments as a string.
func protoSourceCommentsWithDeprecation(commentPrefix: String = "///", leadingDetachedPrefix: String? = nil) -> String
Helper to get the protoSourceComments combined with any depectation comment.