Feature
Sync with code_generator.h.
enum Feature
Sync with code_generator.h.
enum Feature
s26SwiftProtobufPluginLibrary07Google_B31_Compiler_CodeGeneratorResponseV7FeatureO
What are these?5ON32
import SwiftProtobufPluginLibrary
A reusable framework for building protoc
plugins in Swift.
struct Google_Protobuf_Compiler_CodeGeneratorResponse
The plugin writes an encoded CodeGeneratorResponse to stdout.
case none
case proto3Optional
case supportsEditions
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
func traverse<V>(visitor: inout V) throws where V : Visitor
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.
protocol CaseIterable
A type that provides a collection of all of its values.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
@preconcurrency protocol Enum : Hashable, RawRepresentable, Sendable
Generated enum types conform to this protocol.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
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.
protocol Sendable
protocol _ProtoNameProviding
SwiftProtobuf Internal: Common support looking up field names.
init()
init?(rawValue: Int)
static let _protobuf_nameMap: SwiftProtobuf._NameMap
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)