MethodDescriptor
Describes an individual service method.
Descriptor.swift:1413final class MethodDescriptor
SwiftProtobuf does not generate anything for these (or services), but they are here to support things that generate based off RPCs defined in .proto file (gRPC, etc.).
Citizens in SwiftProtobufPluginLibrary
Conformances
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 SimpleProvidesDeprecationComment
Protocol that a Descriptor can confirm to when only the Type controls depecation.
Instance members
let clientStreaming: Bool
Whether the client streams multiple requests.
let features: Google_Protobuf_FeatureSet
The resolved features for this Method.
var file: FileDescriptor!
The .proto file in which this service was defined
var fullName: String
The fully-qualified name of the method, scope delimited by periods.
let index: Int
Index of this service within the file’s services.
var inputType: Descriptor!
The type of protocol message which this method accepts as input.
var isDeprecated: Bool
let name: String
The name of the method, not including its containing scope.
let options: Google_Protobuf_MethodOptions
Get
Google_Protobuf_MethodOptions
for this method.var outputType: Descriptor!
The type of protocol message which this message produces as output.
let serverStreaming: Bool
var service: ServiceDescriptor!
The service tha defines this method.
var typeName: String
func getLocationPath(path: inout IndexPath
)
Show obsolete interfaces (1)
Hide obsolete interfaces
var proto: Google_Protobuf_MethodDescriptorProto
The proto version of the descriptor that defines this method.
Instance features
var sourceCodeInfoLocation: Google_Protobuf_SourceCodeInfo.Location?
func deprecationComment(commentPrefix: String
) -> String Default implementation to provide the depectation comment.
func protoSourceComments(commentPrefix: String, leadingDetachedPrefix: String?
) -> String Helper to get a source comments as a string.
func protoSourceCommentsWithDeprecation(commentPrefix: String, leadingDetachedPrefix: String?
) -> String Helper to get the protoSourceComments combined with any depectation comment.