Structureswift-protobuf 1.29.0SwiftProtobuf
OptionalGroupExtensionField
ExtensionFields.swift:554struct OptionalGroupExtensionField<G> where G : Hashable, G : Message
struct OptionalGroupExtensionField<G> where G : Hashable, G : Message
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
@preconcurrency protocol Message : CustomDebugStringConvertible, Sendable
The protocol which all generated protobuf messages implement. Message
is the protocol type you should use whenever you need an argument or variable which holds “some message”.
@preconcurrency protocol AnyExtensionField : CustomDebugStringConvertible, Sendable
Core protocols implemented by generated extensions.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
@preconcurrency protocol ExtensionField : Hashable, AnyExtensionField
The regular ExtensionField type exposes the value directly.
protocol Sendable
init?<D>(protobufExtension: any AnyMessageExtension, decoder: inout D) throws where D : Decoder
init(protobufExtension: any AnyMessageExtension, value: ValueType)
var debugDescription: String { get }
var isInitialized: Bool { get }
var protobufExtension: any AnyMessageExtension
var value: G
static func == (lhs: OptionalGroupExtensionField, rhs: OptionalGroupExtensionField) -> Bool
mutating func decodeExtensionField<D>(decoder: inout D) throws where D : Decoder
func hash(into hasher: inout Hasher)
func isEqual(other: any AnyExtensionField) -> Bool
func traverse<V>(visitor: inout V) throws where V : Visitor
typealias BaseType = G
typealias ValueType = BaseType
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.