Semantic
Represents the identified object’s effect on the element in the original .proto file.
enum Semantic
Represents the identified object’s effect on the element in the original .proto file.
enum Semantic
s13SwiftProtobuf07Google_B18_GeneratedCodeInfoV10AnnotationV8SemanticO
What are these?6KKJ4
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
struct Annotation
struct Google_Protobuf_GeneratedCodeInfo
Describes the relationship between generated code and its original source file. A GeneratedCodeInfo message is associated with only one generated source file, but may contain references to different source .proto files.
case none
There is no effect or the effect is indescribable.
case set
The element is set or otherwise mutated.
case alias
An alias to the element is returned.
init()
static let _protobuf_nameMap: _NameMap
static let protoMessageName: String
var begin: Int32 { get set }
Identifies the starting offset in bytes in the generated code that relates to the identified object.
var end: Int32 { get set }
Identifies the ending offset in bytes in the generated code that relates to the identified object. The end offset should be one past the last relevant byte (so the length of the text = end - begin).
var hasBegin: Bool { get }
Returns true if begin
has been explicitly set.
var hasEnd: Bool { get }
Returns true if end
has been explicitly set.
var hasSemantic: Bool { get }
Returns true if semantic
has been explicitly set.
var hasSourceFile: Bool { get }
Returns true if sourceFile
has been explicitly set.
var path: [Int32]
Identifies the element in the original source .proto file. This field is formatted the same as SourceCodeInfo.Location.path.
var semantic: Google_Protobuf_GeneratedCodeInfo.Annotation.Semantic { get set }
var sourceFile: String { get set }
Identifies the filesystem path to the original source .proto.
var unknownFields: UnknownStorage
static func == (lhs: Google_Protobuf_GeneratedCodeInfo.Annotation, rhs: Google_Protobuf_GeneratedCodeInfo.Annotation) -> Bool
mutating func clearBegin()
Clears the value of begin
. Subsequent reads from it will return its default value.
mutating func clearEnd()
Clears the value of end
. Subsequent reads from it will return its default value.
mutating func clearSemantic()
Clears the value of semantic
. Subsequent reads from it will return its default value.
mutating func clearSourceFile()
Clears the value of sourceFile
. 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
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: _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)