traverse(visitor:)
plugin.pb.swift:500func traverse<V>(visitor: inout V) throws where V : Visitor
func traverse<V>(visitor: inout V) throws where V : Visitor
s26SwiftProtobufPluginLibrary07Google_B31_Compiler_CodeGeneratorResponseV8traverse7visitoryxz_tK0aB07VisitorRzlF
What are these?9BYPO
import SwiftProtobufPluginLibrary
A reusable framework for building protoc
plugins in Swift.
struct Google_Protobuf_Compiler_CodeGeneratorResponse
The plugin writes an encoded CodeGeneratorResponse to stdout.
protocol Visitor
This is the key interface used by the generated traverse()
methods used for serialization. It is implemented by each serialization protocol: Protobuf Binary, Protobuf Text, JSON, and the Hash encoder.
init()
init(error: String)
Helper to make a response with an error.
static let _protobuf_nameMap: SwiftProtobuf._NameMap
static let protoMessageName: String
var error: String { get set }
Error message. If non-empty, code generation failed. The plugin process should exit with status code zero even if it reports an error in this way.
var file: [Google_Protobuf_Compiler_CodeGeneratorResponse.File]
var hasError: Bool { get }
Returns true if error
has been explicitly set.
var hasMaximumEdition: Bool { get }
Returns true if maximumEdition
has been explicitly set.
var hasMinimumEdition: Bool { get }
Returns true if minimumEdition
has been explicitly set.
var hasSupportedFeatures: Bool { get }
Returns true if supportedFeatures
has been explicitly set.
var maximumEdition: Int32 { get set }
The maximum edition this plugin supports. This will be treated as an Edition enum, but we want to allow unknown values. It should be specified according the edition enum value, not the edition number. Only takes effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
var minimumEdition: Int32 { get set }
The minimum edition this plugin supports. This will be treated as an Edition enum, but we want to allow unknown values. It should be specified according the edition enum value, not the edition number. Only takes effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
var supportedFeatures: UInt64 { get set }
A bitmask of supported features that the code generator supports. This is a bitwise “or” of values from the Feature enum.
var unknownFields: UnknownStorage
static func == (lhs: Google_Protobuf_Compiler_CodeGeneratorResponse, rhs: Google_Protobuf_Compiler_CodeGeneratorResponse) -> Bool
mutating func clearError()
Clears the value of error
. Subsequent reads from it will return its default value.
mutating func clearMaximumEdition()
Clears the value of maximumEdition
. Subsequent reads from it will return its default value.
mutating func clearMinimumEdition()
Clears the value of minimumEdition
. Subsequent reads from it will return its default value.
mutating func clearSupportedFeatures()
Clears the value of supportedFeatures
. Subsequent reads from it will return its default value.
mutating func decodeMessage<D>(decoder: inout D) throws where D : Decoder
enum Feature
Sync with code_generator.h.
struct File
Represents a single generated file.
init(files: [Google_Protobuf_Compiler_CodeGeneratorResponse.File])
Helper to make a response with a set of files
init(files: [Google_Protobuf_Compiler_CodeGeneratorResponse.File], supportedFeatures: [Google_Protobuf_Compiler_CodeGeneratorResponse.Feature] = [])
Helper to make a response with a set of files and supported features.