clearContent
Clears the value of content
. Subsequent reads from it will return its default value.
mutating func clearContent()
Clears the value of content
. Subsequent reads from it will return its default value.
mutating func clearContent()
s26SwiftProtobufPluginLibrary07Google_B31_Compiler_CodeGeneratorResponseV4FileV12clearContentyyF
What are these?50JX0
import SwiftProtobufPluginLibrary
A reusable framework for building protoc
plugins in Swift.
struct File
Represents a single generated file.
struct Google_Protobuf_Compiler_CodeGeneratorResponse
The plugin writes an encoded CodeGeneratorResponse to stdout.
init()
init(name: String, content: String)
Helper to make a Response.File with specific content.
static let _protobuf_nameMap: SwiftProtobuf._NameMap
static let protoMessageName: String
var content: String { get set }
The file contents.
var generatedCodeInfo: SwiftProtobuf.Google_Protobuf_GeneratedCodeInfo { get set }
Information describing the file content being inserted. If an insertion point is used, this information will be appropriately offset and inserted into the code generation metadata for the generated files.
var hasContent: Bool { get }
Returns true if content
has been explicitly set.
var hasGeneratedCodeInfo: Bool { get }
Returns true if generatedCodeInfo
has been explicitly set.
var hasInsertionPoint: Bool { get }
Returns true if insertionPoint
has been explicitly set.
var hasName: Bool { get }
Returns true if name
has been explicitly set.
var insertionPoint: String { get set }
If non-empty, indicates that the named file should already exist, and the content here is to be inserted into that file at a defined insertion point. This feature allows a code generator to extend the output produced by another code generator. The original generator may provide insertion points by placing special annotations in the file that look like:
var name: String { get set }
The file name, relative to the output directory. The name must not contain “.” or “..” components and must be relative, not be absolute (so, the file cannot lie outside the output directory). “/” must be used as the path separator, not “".
var unknownFields: UnknownStorage
static func == (lhs: Google_Protobuf_Compiler_CodeGeneratorResponse.File, rhs: Google_Protobuf_Compiler_CodeGeneratorResponse.File) -> Bool
mutating func clearGeneratedCodeInfo()
Clears the value of generatedCodeInfo
. Subsequent reads from it will return its default value.
mutating func clearInsertionPoint()
Clears the value of insertionPoint
. Subsequent reads from it will return its default value.
mutating func clearName()
Clears the value of name
. 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