Xmtp_MessageContents_EncodedContent
public struct Xmtp_MessageContents_EncodedContent
extension Xmtp_MessageContents_EncodedContent: @unchecked Sendable
extension Xmtp_MessageContents_EncodedContent: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding
EncodedContent bundles the content with metadata identifying its type and parameters required for correct decoding and presentation of the content.
-
content type identifier used to match the payload with the correct decoding machinery
Declaration
Swift
public var type: Xmtp_MessageContents_ContentTypeId { get set }
-
Returns true if
type
has been explicitly set.Declaration
Swift
public var hasType: Bool { get }
-
Clears the value of
type
. Subsequent reads from it will return its default value.Declaration
Swift
public mutating func clearType()
-
optional encoding parameters required to correctly decode the content
Declaration
Swift
public var parameters: Dictionary<String, String>
-
optional fallback description of the content that can be used in case the client cannot decode or render the content
Declaration
Swift
public var fallback: String { get set }
-
Returns true if
fallback
has been explicitly set.Declaration
Swift
public var hasFallback: Bool { get }
-
Clears the value of
fallback
. Subsequent reads from it will return its default value.Declaration
Swift
public mutating func clearFallback()
-
optional compression; the value indicates algorithm used to compress the encoded content bytes
Declaration
Swift
public var compression: Xmtp_MessageContents_Compression { get set }
-
Returns true if
compression
has been explicitly set.Declaration
Swift
public var hasCompression: Bool { get }
-
Clears the value of
compression
. Subsequent reads from it will return its default value.Declaration
Swift
public mutating func clearCompression()
-
encoded content itself
Declaration
Swift
public var content: Data
-
Declaration
Swift
public var unknownFields: UnknownStorage
-
Declaration
Swift
public init()
-
Declaration
Swift
public static let protoMessageName: String
-
Declaration
Swift
public static let _protobuf_nameMap: SwiftProtobuf._NameMap
-
Declaration
Swift
public mutating func decodeMessage<D>(decoder: inout D) throws where D : Decoder
-
Declaration
Swift
public func traverse<V>(visitor: inout V) throws where V : Visitor
-
Declaration
Swift
public static func == (lhs: Xmtp_MessageContents_EncodedContent, rhs: Xmtp_MessageContents_EncodedContent) -> Bool