Path: blob/main/SignalServiceKit/Protos/Generated/SignalService.pb.swift
1 views
// DO NOT EDIT.
// swift-format-ignore-file
// swiftlint:disable all
//
// Generated by the Swift generator plugin for the protocol buffer compiler.
// Source: SignalService.proto
//
// For information on using the generated types, please see the documentation:
// https://github.com/apple/swift-protobuf/
//
// Copyright 2014 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
/// iOS - since we use a modern proto-compiler, we must specify
/// the legacy proto format.
#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif
import SwiftProtobuf
// If the compiler emits an error on this type, it is because this file
// was generated by a version of the `protoc` Swift plug-in that is
// incompatible with the version of SwiftProtobuf to which you are linking.
// Please ensure that you are building against the same version of the API
// that was used to generate this file.
fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
typealias Version = _2
}
struct SignalServiceProtos_Envelope: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var type: SignalServiceProtos_Envelope.TypeEnum {
get {_type ?? .unknown}
set {_type = newValue}
}
/// Returns true if `type` has been explicitly set.
var hasType: Bool {self._type != nil}
/// Clears the value of `type`. Subsequent reads from it will return its default value.
mutating func clearType() {self._type = nil}
var sourceDevice: UInt32 {
get {_sourceDevice ?? 0}
set {_sourceDevice = newValue}
}
/// Returns true if `sourceDevice` has been explicitly set.
var hasSourceDevice: Bool {self._sourceDevice != nil}
/// Clears the value of `sourceDevice`. Subsequent reads from it will return its default value.
mutating func clearSourceDevice() {self._sourceDevice = nil}
var destinationServiceID: String {
get {_destinationServiceID ?? String()}
set {_destinationServiceID = newValue}
}
/// Returns true if `destinationServiceID` has been explicitly set.
var hasDestinationServiceID: Bool {self._destinationServiceID != nil}
/// Clears the value of `destinationServiceID`. Subsequent reads from it will return its default value.
mutating func clearDestinationServiceID() {self._destinationServiceID = nil}
/// @required
var timestamp: UInt64 {
get {_timestamp ?? 0}
set {_timestamp = newValue}
}
/// Returns true if `timestamp` has been explicitly set.
var hasTimestamp: Bool {self._timestamp != nil}
/// Clears the value of `timestamp`. Subsequent reads from it will return its default value.
mutating func clearTimestamp() {self._timestamp = nil}
/// Contains an encrypted Content
var content: Data {
get {_content ?? Data()}
set {_content = newValue}
}
/// Returns true if `content` has been explicitly set.
var hasContent: Bool {self._content != nil}
/// Clears the value of `content`. Subsequent reads from it will return its default value.
mutating func clearContent() {self._content = nil}
/// We may eventually want to make this required.
var serverGuid: String {
get {_serverGuid ?? String()}
set {_serverGuid = newValue}
}
/// Returns true if `serverGuid` has been explicitly set.
var hasServerGuid: Bool {self._serverGuid != nil}
/// Clears the value of `serverGuid`. Subsequent reads from it will return its default value.
mutating func clearServerGuid() {self._serverGuid = nil}
/// We may eventually want to make this required.
var serverTimestamp: UInt64 {
get {_serverTimestamp ?? 0}
set {_serverTimestamp = newValue}
}
/// Returns true if `serverTimestamp` has been explicitly set.
var hasServerTimestamp: Bool {self._serverTimestamp != nil}
/// Clears the value of `serverTimestamp`. Subsequent reads from it will return its default value.
mutating func clearServerTimestamp() {self._serverTimestamp = nil}
var sourceServiceID: String {
get {_sourceServiceID ?? String()}
set {_sourceServiceID = newValue}
}
/// Returns true if `sourceServiceID` has been explicitly set.
var hasSourceServiceID: Bool {self._sourceServiceID != nil}
/// Clears the value of `sourceServiceID`. Subsequent reads from it will return its default value.
mutating func clearSourceServiceID() {self._sourceServiceID = nil}
/// indicates that the content is considered timely by the sender; defaults to true so senders have to opt-out to say something isn't time critical
var urgent: Bool {
get {_urgent ?? true}
set {_urgent = newValue}
}
/// Returns true if `urgent` has been explicitly set.
var hasUrgent: Bool {self._urgent != nil}
/// Clears the value of `urgent`. Subsequent reads from it will return its default value.
mutating func clearUrgent() {self._urgent = nil}
/// On change-number sync messages delivered to linked devices, this will
/// contain the account's new PNI.
var updatedPni: String {
get {_updatedPni ?? String()}
set {_updatedPni = newValue}
}
/// Returns true if `updatedPni` has been explicitly set.
var hasUpdatedPni: Bool {self._updatedPni != nil}
/// Clears the value of `updatedPni`. Subsequent reads from it will return its default value.
mutating func clearUpdatedPni() {self._updatedPni = nil}
var story: Bool {
get {_story ?? false}
set {_story = newValue}
}
/// Returns true if `story` has been explicitly set.
var hasStory: Bool {self._story != nil}
/// Clears the value of `story`. Subsequent reads from it will return its default value.
mutating func clearStory() {self._story = nil}
var spamReportingToken: Data {
get {_spamReportingToken ?? Data()}
set {_spamReportingToken = newValue}
}
/// Returns true if `spamReportingToken` has been explicitly set.
var hasSpamReportingToken: Bool {self._spamReportingToken != nil}
/// Clears the value of `spamReportingToken`. Subsequent reads from it will return its default value.
mutating func clearSpamReportingToken() {self._spamReportingToken = nil}
/// service ID binary (i.e. 16 byte UUID for ACI, 1 byte prefix + 16 byte UUID for PNI)
var sourceServiceIDBinary: Data {
get {_sourceServiceIDBinary ?? Data()}
set {_sourceServiceIDBinary = newValue}
}
/// Returns true if `sourceServiceIDBinary` has been explicitly set.
var hasSourceServiceIDBinary: Bool {self._sourceServiceIDBinary != nil}
/// Clears the value of `sourceServiceIDBinary`. Subsequent reads from it will return its default value.
mutating func clearSourceServiceIDBinary() {self._sourceServiceIDBinary = nil}
/// service ID binary (i.e. 16 byte UUID for ACI, 1 byte prefix + 16 byte UUID for PNI)
var destinationServiceIDBinary: Data {
get {_destinationServiceIDBinary ?? Data()}
set {_destinationServiceIDBinary = newValue}
}
/// Returns true if `destinationServiceIDBinary` has been explicitly set.
var hasDestinationServiceIDBinary: Bool {self._destinationServiceIDBinary != nil}
/// Clears the value of `destinationServiceIDBinary`. Subsequent reads from it will return its default value.
mutating func clearDestinationServiceIDBinary() {self._destinationServiceIDBinary = nil}
/// 16-byte UUID
var serverGuidBinary: Data {
get {_serverGuidBinary ?? Data()}
set {_serverGuidBinary = newValue}
}
/// Returns true if `serverGuidBinary` has been explicitly set.
var hasServerGuidBinary: Bool {self._serverGuidBinary != nil}
/// Clears the value of `serverGuidBinary`. Subsequent reads from it will return its default value.
mutating func clearServerGuidBinary() {self._serverGuidBinary = nil}
/// 16-byte UUID
var updatedPniBinary: Data {
get {_updatedPniBinary ?? Data()}
set {_updatedPniBinary = newValue}
}
/// Returns true if `updatedPniBinary` has been explicitly set.
var hasUpdatedPniBinary: Bool {self._updatedPniBinary != nil}
/// Clears the value of `updatedPniBinary`. Subsequent reads from it will return its default value.
mutating func clearUpdatedPniBinary() {self._updatedPniBinary = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum TypeEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case unknown = 0
case ciphertext = 1
case prekeyBundle = 3
case receipt = 5
case unidentifiedSender = 6
case plaintextContent = 8
init() {
self = .unknown
}
}
init() {}
fileprivate var _type: SignalServiceProtos_Envelope.TypeEnum? = nil
fileprivate var _sourceDevice: UInt32? = nil
fileprivate var _destinationServiceID: String? = nil
fileprivate var _timestamp: UInt64? = nil
fileprivate var _content: Data? = nil
fileprivate var _serverGuid: String? = nil
fileprivate var _serverTimestamp: UInt64? = nil
fileprivate var _sourceServiceID: String? = nil
fileprivate var _urgent: Bool? = nil
fileprivate var _updatedPni: String? = nil
fileprivate var _story: Bool? = nil
fileprivate var _spamReportingToken: Data? = nil
fileprivate var _sourceServiceIDBinary: Data? = nil
fileprivate var _destinationServiceIDBinary: Data? = nil
fileprivate var _serverGuidBinary: Data? = nil
fileprivate var _updatedPniBinary: Data? = nil
}
struct SignalServiceProtos_TypingMessage: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// @required
var timestamp: UInt64 {
get {_timestamp ?? 0}
set {_timestamp = newValue}
}
/// Returns true if `timestamp` has been explicitly set.
var hasTimestamp: Bool {self._timestamp != nil}
/// Clears the value of `timestamp`. Subsequent reads from it will return its default value.
mutating func clearTimestamp() {self._timestamp = nil}
var action: SignalServiceProtos_TypingMessage.Action {
get {_action ?? .started}
set {_action = newValue}
}
/// Returns true if `action` has been explicitly set.
var hasAction: Bool {self._action != nil}
/// Clears the value of `action`. Subsequent reads from it will return its default value.
mutating func clearAction() {self._action = nil}
var groupID: Data {
get {_groupID ?? Data()}
set {_groupID = newValue}
}
/// Returns true if `groupID` has been explicitly set.
var hasGroupID: Bool {self._groupID != nil}
/// Clears the value of `groupID`. Subsequent reads from it will return its default value.
mutating func clearGroupID() {self._groupID = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum Action: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case started = 0
case stopped = 1
init() {
self = .started
}
}
init() {}
fileprivate var _timestamp: UInt64? = nil
fileprivate var _action: SignalServiceProtos_TypingMessage.Action? = nil
fileprivate var _groupID: Data? = nil
}
struct SignalServiceProtos_StoryMessage: @unchecked Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var profileKey: Data {
get {_storage._profileKey ?? Data()}
set {_uniqueStorage()._profileKey = newValue}
}
/// Returns true if `profileKey` has been explicitly set.
var hasProfileKey: Bool {_storage._profileKey != nil}
/// Clears the value of `profileKey`. Subsequent reads from it will return its default value.
mutating func clearProfileKey() {_uniqueStorage()._profileKey = nil}
var group: SignalServiceProtos_GroupContextV2 {
get {_storage._group ?? SignalServiceProtos_GroupContextV2()}
set {_uniqueStorage()._group = newValue}
}
/// Returns true if `group` has been explicitly set.
var hasGroup: Bool {_storage._group != nil}
/// Clears the value of `group`. Subsequent reads from it will return its default value.
mutating func clearGroup() {_uniqueStorage()._group = nil}
/// oneof attachment {
var fileAttachment: SignalServiceProtos_AttachmentPointer {
get {_storage._fileAttachment ?? SignalServiceProtos_AttachmentPointer()}
set {_uniqueStorage()._fileAttachment = newValue}
}
/// Returns true if `fileAttachment` has been explicitly set.
var hasFileAttachment: Bool {_storage._fileAttachment != nil}
/// Clears the value of `fileAttachment`. Subsequent reads from it will return its default value.
mutating func clearFileAttachment() {_uniqueStorage()._fileAttachment = nil}
var textAttachment: SignalServiceProtos_TextAttachment {
get {_storage._textAttachment ?? SignalServiceProtos_TextAttachment()}
set {_uniqueStorage()._textAttachment = newValue}
}
/// Returns true if `textAttachment` has been explicitly set.
var hasTextAttachment: Bool {_storage._textAttachment != nil}
/// Clears the value of `textAttachment`. Subsequent reads from it will return its default value.
mutating func clearTextAttachment() {_uniqueStorage()._textAttachment = nil}
/// }
var allowsReplies: Bool {
get {_storage._allowsReplies ?? false}
set {_uniqueStorage()._allowsReplies = newValue}
}
/// Returns true if `allowsReplies` has been explicitly set.
var hasAllowsReplies: Bool {_storage._allowsReplies != nil}
/// Clears the value of `allowsReplies`. Subsequent reads from it will return its default value.
mutating func clearAllowsReplies() {_uniqueStorage()._allowsReplies = nil}
var bodyRanges: [SignalServiceProtos_BodyRange] {
get {_storage._bodyRanges}
set {_uniqueStorage()._bodyRanges = newValue}
}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
struct SignalServiceProtos_Preview: @unchecked Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// @required
var url: String {
get {_storage._url ?? String()}
set {_uniqueStorage()._url = newValue}
}
/// Returns true if `url` has been explicitly set.
var hasURL: Bool {_storage._url != nil}
/// Clears the value of `url`. Subsequent reads from it will return its default value.
mutating func clearURL() {_uniqueStorage()._url = nil}
var title: String {
get {_storage._title ?? String()}
set {_uniqueStorage()._title = newValue}
}
/// Returns true if `title` has been explicitly set.
var hasTitle: Bool {_storage._title != nil}
/// Clears the value of `title`. Subsequent reads from it will return its default value.
mutating func clearTitle() {_uniqueStorage()._title = nil}
var image: SignalServiceProtos_AttachmentPointer {
get {_storage._image ?? SignalServiceProtos_AttachmentPointer()}
set {_uniqueStorage()._image = newValue}
}
/// Returns true if `image` has been explicitly set.
var hasImage: Bool {_storage._image != nil}
/// Clears the value of `image`. Subsequent reads from it will return its default value.
mutating func clearImage() {_uniqueStorage()._image = nil}
var previewDescription: String {
get {_storage._previewDescription ?? String()}
set {_uniqueStorage()._previewDescription = newValue}
}
/// Returns true if `previewDescription` has been explicitly set.
var hasPreviewDescription: Bool {_storage._previewDescription != nil}
/// Clears the value of `previewDescription`. Subsequent reads from it will return its default value.
mutating func clearPreviewDescription() {_uniqueStorage()._previewDescription = nil}
var date: UInt64 {
get {_storage._date ?? 0}
set {_uniqueStorage()._date = newValue}
}
/// Returns true if `date` has been explicitly set.
var hasDate: Bool {_storage._date != nil}
/// Clears the value of `date`. Subsequent reads from it will return its default value.
mutating func clearDate() {_uniqueStorage()._date = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
struct SignalServiceProtos_TextAttachment: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var text: String {
get {_text ?? String()}
set {_text = newValue}
}
/// Returns true if `text` has been explicitly set.
var hasText: Bool {self._text != nil}
/// Clears the value of `text`. Subsequent reads from it will return its default value.
mutating func clearText() {self._text = nil}
var textStyle: SignalServiceProtos_TextAttachment.Style {
get {_textStyle ?? .default}
set {_textStyle = newValue}
}
/// Returns true if `textStyle` has been explicitly set.
var hasTextStyle: Bool {self._textStyle != nil}
/// Clears the value of `textStyle`. Subsequent reads from it will return its default value.
mutating func clearTextStyle() {self._textStyle = nil}
/// integer representation of hex color
var textForegroundColor: UInt32 {
get {_textForegroundColor ?? 0}
set {_textForegroundColor = newValue}
}
/// Returns true if `textForegroundColor` has been explicitly set.
var hasTextForegroundColor: Bool {self._textForegroundColor != nil}
/// Clears the value of `textForegroundColor`. Subsequent reads from it will return its default value.
mutating func clearTextForegroundColor() {self._textForegroundColor = nil}
var textBackgroundColor: UInt32 {
get {_textBackgroundColor ?? 0}
set {_textBackgroundColor = newValue}
}
/// Returns true if `textBackgroundColor` has been explicitly set.
var hasTextBackgroundColor: Bool {self._textBackgroundColor != nil}
/// Clears the value of `textBackgroundColor`. Subsequent reads from it will return its default value.
mutating func clearTextBackgroundColor() {self._textBackgroundColor = nil}
var preview: SignalServiceProtos_Preview {
get {_preview ?? SignalServiceProtos_Preview()}
set {_preview = newValue}
}
/// Returns true if `preview` has been explicitly set.
var hasPreview: Bool {self._preview != nil}
/// Clears the value of `preview`. Subsequent reads from it will return its default value.
mutating func clearPreview() {self._preview = nil}
/// oneof background {
var gradient: SignalServiceProtos_TextAttachment.Gradient {
get {_gradient ?? SignalServiceProtos_TextAttachment.Gradient()}
set {_gradient = newValue}
}
/// Returns true if `gradient` has been explicitly set.
var hasGradient: Bool {self._gradient != nil}
/// Clears the value of `gradient`. Subsequent reads from it will return its default value.
mutating func clearGradient() {self._gradient = nil}
/// }
var color: UInt32 {
get {_color ?? 0}
set {_color = newValue}
}
/// Returns true if `color` has been explicitly set.
var hasColor: Bool {self._color != nil}
/// Clears the value of `color`. Subsequent reads from it will return its default value.
mutating func clearColor() {self._color = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum Style: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case `default` = 0
case regular = 1
case bold = 2
case serif = 3
case script = 4
case condensed = 5
init() {
self = .default
}
}
struct Gradient: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// deprecated: this field will be removed in a future release.
var startColor: UInt32 {
get {_startColor ?? 0}
set {_startColor = newValue}
}
/// Returns true if `startColor` has been explicitly set.
var hasStartColor: Bool {self._startColor != nil}
/// Clears the value of `startColor`. Subsequent reads from it will return its default value.
mutating func clearStartColor() {self._startColor = nil}
/// deprecated: this field will be removed in a future release.
var endColor: UInt32 {
get {_endColor ?? 0}
set {_endColor = newValue}
}
/// Returns true if `endColor` has been explicitly set.
var hasEndColor: Bool {self._endColor != nil}
/// Clears the value of `endColor`. Subsequent reads from it will return its default value.
mutating func clearEndColor() {self._endColor = nil}
/// degrees
var angle: UInt32 {
get {_angle ?? 0}
set {_angle = newValue}
}
/// Returns true if `angle` has been explicitly set.
var hasAngle: Bool {self._angle != nil}
/// Clears the value of `angle`. Subsequent reads from it will return its default value.
mutating func clearAngle() {self._angle = nil}
var colors: [UInt32] = []
/// percent from 0 to 1
var positions: [Float] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _startColor: UInt32? = nil
fileprivate var _endColor: UInt32? = nil
fileprivate var _angle: UInt32? = nil
}
init() {}
fileprivate var _text: String? = nil
fileprivate var _textStyle: SignalServiceProtos_TextAttachment.Style? = nil
fileprivate var _textForegroundColor: UInt32? = nil
fileprivate var _textBackgroundColor: UInt32? = nil
fileprivate var _preview: SignalServiceProtos_Preview? = nil
fileprivate var _gradient: SignalServiceProtos_TextAttachment.Gradient? = nil
fileprivate var _color: UInt32? = nil
}
struct SignalServiceProtos_Content: @unchecked Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var dataMessage: SignalServiceProtos_DataMessage {
get {_storage._dataMessage ?? SignalServiceProtos_DataMessage()}
set {_uniqueStorage()._dataMessage = newValue}
}
/// Returns true if `dataMessage` has been explicitly set.
var hasDataMessage: Bool {_storage._dataMessage != nil}
/// Clears the value of `dataMessage`. Subsequent reads from it will return its default value.
mutating func clearDataMessage() {_uniqueStorage()._dataMessage = nil}
var syncMessage: SignalServiceProtos_SyncMessage {
get {_storage._syncMessage ?? SignalServiceProtos_SyncMessage()}
set {_uniqueStorage()._syncMessage = newValue}
}
/// Returns true if `syncMessage` has been explicitly set.
var hasSyncMessage: Bool {_storage._syncMessage != nil}
/// Clears the value of `syncMessage`. Subsequent reads from it will return its default value.
mutating func clearSyncMessage() {_uniqueStorage()._syncMessage = nil}
var callMessage: SignalServiceProtos_CallMessage {
get {_storage._callMessage ?? SignalServiceProtos_CallMessage()}
set {_uniqueStorage()._callMessage = newValue}
}
/// Returns true if `callMessage` has been explicitly set.
var hasCallMessage: Bool {_storage._callMessage != nil}
/// Clears the value of `callMessage`. Subsequent reads from it will return its default value.
mutating func clearCallMessage() {_uniqueStorage()._callMessage = nil}
var nullMessage: SignalServiceProtos_NullMessage {
get {_storage._nullMessage ?? SignalServiceProtos_NullMessage()}
set {_uniqueStorage()._nullMessage = newValue}
}
/// Returns true if `nullMessage` has been explicitly set.
var hasNullMessage: Bool {_storage._nullMessage != nil}
/// Clears the value of `nullMessage`. Subsequent reads from it will return its default value.
mutating func clearNullMessage() {_uniqueStorage()._nullMessage = nil}
var receiptMessage: SignalServiceProtos_ReceiptMessage {
get {_storage._receiptMessage ?? SignalServiceProtos_ReceiptMessage()}
set {_uniqueStorage()._receiptMessage = newValue}
}
/// Returns true if `receiptMessage` has been explicitly set.
var hasReceiptMessage: Bool {_storage._receiptMessage != nil}
/// Clears the value of `receiptMessage`. Subsequent reads from it will return its default value.
mutating func clearReceiptMessage() {_uniqueStorage()._receiptMessage = nil}
var typingMessage: SignalServiceProtos_TypingMessage {
get {_storage._typingMessage ?? SignalServiceProtos_TypingMessage()}
set {_uniqueStorage()._typingMessage = newValue}
}
/// Returns true if `typingMessage` has been explicitly set.
var hasTypingMessage: Bool {_storage._typingMessage != nil}
/// Clears the value of `typingMessage`. Subsequent reads from it will return its default value.
mutating func clearTypingMessage() {_uniqueStorage()._typingMessage = nil}
/// Serialized SKDM
var senderKeyDistributionMessage: Data {
get {_storage._senderKeyDistributionMessage ?? Data()}
set {_uniqueStorage()._senderKeyDistributionMessage = newValue}
}
/// Returns true if `senderKeyDistributionMessage` has been explicitly set.
var hasSenderKeyDistributionMessage: Bool {_storage._senderKeyDistributionMessage != nil}
/// Clears the value of `senderKeyDistributionMessage`. Subsequent reads from it will return its default value.
mutating func clearSenderKeyDistributionMessage() {_uniqueStorage()._senderKeyDistributionMessage = nil}
/// Serialized decryption error
var decryptionErrorMessage: Data {
get {_storage._decryptionErrorMessage ?? Data()}
set {_uniqueStorage()._decryptionErrorMessage = newValue}
}
/// Returns true if `decryptionErrorMessage` has been explicitly set.
var hasDecryptionErrorMessage: Bool {_storage._decryptionErrorMessage != nil}
/// Clears the value of `decryptionErrorMessage`. Subsequent reads from it will return its default value.
mutating func clearDecryptionErrorMessage() {_uniqueStorage()._decryptionErrorMessage = nil}
var storyMessage: SignalServiceProtos_StoryMessage {
get {_storage._storyMessage ?? SignalServiceProtos_StoryMessage()}
set {_uniqueStorage()._storyMessage = newValue}
}
/// Returns true if `storyMessage` has been explicitly set.
var hasStoryMessage: Bool {_storage._storyMessage != nil}
/// Clears the value of `storyMessage`. Subsequent reads from it will return its default value.
mutating func clearStoryMessage() {_uniqueStorage()._storyMessage = nil}
var pniSignatureMessage: SignalServiceProtos_PniSignatureMessage {
get {_storage._pniSignatureMessage ?? SignalServiceProtos_PniSignatureMessage()}
set {_uniqueStorage()._pniSignatureMessage = newValue}
}
/// Returns true if `pniSignatureMessage` has been explicitly set.
var hasPniSignatureMessage: Bool {_storage._pniSignatureMessage != nil}
/// Clears the value of `pniSignatureMessage`. Subsequent reads from it will return its default value.
mutating func clearPniSignatureMessage() {_uniqueStorage()._pniSignatureMessage = nil}
var editMessage: SignalServiceProtos_EditMessage {
get {_storage._editMessage ?? SignalServiceProtos_EditMessage()}
set {_uniqueStorage()._editMessage = newValue}
}
/// Returns true if `editMessage` has been explicitly set.
var hasEditMessage: Bool {_storage._editMessage != nil}
/// Clears the value of `editMessage`. Subsequent reads from it will return its default value.
mutating func clearEditMessage() {_uniqueStorage()._editMessage = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
struct SignalServiceProtos_CallMessage: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var offer: SignalServiceProtos_CallMessage.Offer {
get {_offer ?? SignalServiceProtos_CallMessage.Offer()}
set {_offer = newValue}
}
/// Returns true if `offer` has been explicitly set.
var hasOffer: Bool {self._offer != nil}
/// Clears the value of `offer`. Subsequent reads from it will return its default value.
mutating func clearOffer() {self._offer = nil}
var answer: SignalServiceProtos_CallMessage.Answer {
get {_answer ?? SignalServiceProtos_CallMessage.Answer()}
set {_answer = newValue}
}
/// Returns true if `answer` has been explicitly set.
var hasAnswer: Bool {self._answer != nil}
/// Clears the value of `answer`. Subsequent reads from it will return its default value.
mutating func clearAnswer() {self._answer = nil}
var iceUpdate: [SignalServiceProtos_CallMessage.IceUpdate] = []
var busy: SignalServiceProtos_CallMessage.Busy {
get {_busy ?? SignalServiceProtos_CallMessage.Busy()}
set {_busy = newValue}
}
/// Returns true if `busy` has been explicitly set.
var hasBusy: Bool {self._busy != nil}
/// Clears the value of `busy`. Subsequent reads from it will return its default value.
mutating func clearBusy() {self._busy = nil}
var profileKey: Data {
get {_profileKey ?? Data()}
set {_profileKey = newValue}
}
/// Returns true if `profileKey` has been explicitly set.
var hasProfileKey: Bool {self._profileKey != nil}
/// Clears the value of `profileKey`. Subsequent reads from it will return its default value.
mutating func clearProfileKey() {self._profileKey = nil}
var hangup: SignalServiceProtos_CallMessage.Hangup {
get {_hangup ?? SignalServiceProtos_CallMessage.Hangup()}
set {_hangup = newValue}
}
/// Returns true if `hangup` has been explicitly set.
var hasHangup: Bool {self._hangup != nil}
/// Clears the value of `hangup`. Subsequent reads from it will return its default value.
mutating func clearHangup() {self._hangup = nil}
var destinationDeviceID: UInt32 {
get {_destinationDeviceID ?? 0}
set {_destinationDeviceID = newValue}
}
/// Returns true if `destinationDeviceID` has been explicitly set.
var hasDestinationDeviceID: Bool {self._destinationDeviceID != nil}
/// Clears the value of `destinationDeviceID`. Subsequent reads from it will return its default value.
mutating func clearDestinationDeviceID() {self._destinationDeviceID = nil}
var opaque: SignalServiceProtos_CallMessage.Opaque {
get {_opaque ?? SignalServiceProtos_CallMessage.Opaque()}
set {_opaque = newValue}
}
/// Returns true if `opaque` has been explicitly set.
var hasOpaque: Bool {self._opaque != nil}
/// Clears the value of `opaque`. Subsequent reads from it will return its default value.
mutating func clearOpaque() {self._opaque = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
struct Offer: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// @required
var id: UInt64 {
get {_id ?? 0}
set {_id = newValue}
}
/// Returns true if `id` has been explicitly set.
var hasID: Bool {self._id != nil}
/// Clears the value of `id`. Subsequent reads from it will return its default value.
mutating func clearID() {self._id = nil}
var type: SignalServiceProtos_CallMessage.Offer.TypeEnum {
get {_type ?? .offerAudioCall}
set {_type = newValue}
}
/// Returns true if `type` has been explicitly set.
var hasType: Bool {self._type != nil}
/// Clears the value of `type`. Subsequent reads from it will return its default value.
mutating func clearType() {self._type = nil}
var opaque: Data {
get {_opaque ?? Data()}
set {_opaque = newValue}
}
/// Returns true if `opaque` has been explicitly set.
var hasOpaque: Bool {self._opaque != nil}
/// Clears the value of `opaque`. Subsequent reads from it will return its default value.
mutating func clearOpaque() {self._opaque = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum TypeEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case offerAudioCall = 0
/// next index 3, skip 2 – it was the unused "NEED_PERMISSION" type
case offerVideoCall = 1
init() {
self = .offerAudioCall
}
}
init() {}
fileprivate var _id: UInt64? = nil
fileprivate var _type: SignalServiceProtos_CallMessage.Offer.TypeEnum? = nil
fileprivate var _opaque: Data? = nil
}
struct Answer: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// @required
var id: UInt64 {
get {_id ?? 0}
set {_id = newValue}
}
/// Returns true if `id` has been explicitly set.
var hasID: Bool {self._id != nil}
/// Clears the value of `id`. Subsequent reads from it will return its default value.
mutating func clearID() {self._id = nil}
var opaque: Data {
get {_opaque ?? Data()}
set {_opaque = newValue}
}
/// Returns true if `opaque` has been explicitly set.
var hasOpaque: Bool {self._opaque != nil}
/// Clears the value of `opaque`. Subsequent reads from it will return its default value.
mutating func clearOpaque() {self._opaque = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _id: UInt64? = nil
fileprivate var _opaque: Data? = nil
}
struct IceUpdate: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// @required
var id: UInt64 {
get {_id ?? 0}
set {_id = newValue}
}
/// Returns true if `id` has been explicitly set.
var hasID: Bool {self._id != nil}
/// Clears the value of `id`. Subsequent reads from it will return its default value.
mutating func clearID() {self._id = nil}
var opaque: Data {
get {_opaque ?? Data()}
set {_opaque = newValue}
}
/// Returns true if `opaque` has been explicitly set.
var hasOpaque: Bool {self._opaque != nil}
/// Clears the value of `opaque`. Subsequent reads from it will return its default value.
mutating func clearOpaque() {self._opaque = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _id: UInt64? = nil
fileprivate var _opaque: Data? = nil
}
struct Busy: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// @required
var id: UInt64 {
get {_id ?? 0}
set {_id = newValue}
}
/// Returns true if `id` has been explicitly set.
var hasID: Bool {self._id != nil}
/// Clears the value of `id`. Subsequent reads from it will return its default value.
mutating func clearID() {self._id = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _id: UInt64? = nil
}
struct Hangup: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// @required
var id: UInt64 {
get {_id ?? 0}
set {_id = newValue}
}
/// Returns true if `id` has been explicitly set.
var hasID: Bool {self._id != nil}
/// Clears the value of `id`. Subsequent reads from it will return its default value.
mutating func clearID() {self._id = nil}
var type: SignalServiceProtos_CallMessage.Hangup.TypeEnum {
get {_type ?? .hangupNormal}
set {_type = newValue}
}
/// Returns true if `type` has been explicitly set.
var hasType: Bool {self._type != nil}
/// Clears the value of `type`. Subsequent reads from it will return its default value.
mutating func clearType() {self._type = nil}
var deviceID: UInt32 {
get {_deviceID ?? 0}
set {_deviceID = newValue}
}
/// Returns true if `deviceID` has been explicitly set.
var hasDeviceID: Bool {self._deviceID != nil}
/// Clears the value of `deviceID`. Subsequent reads from it will return its default value.
mutating func clearDeviceID() {self._deviceID = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum TypeEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case hangupNormal = 0
case hangupAccepted = 1
case hangupDeclined = 2
case hangupBusy = 3
case hangupNeedPermission = 4
init() {
self = .hangupNormal
}
}
init() {}
fileprivate var _id: UInt64? = nil
fileprivate var _type: SignalServiceProtos_CallMessage.Hangup.TypeEnum? = nil
fileprivate var _deviceID: UInt32? = nil
}
struct Opaque: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var data: Data {
get {_data ?? Data()}
set {_data = newValue}
}
/// Returns true if `data` has been explicitly set.
var hasData: Bool {self._data != nil}
/// Clears the value of `data`. Subsequent reads from it will return its default value.
mutating func clearData() {self._data = nil}
var urgency: SignalServiceProtos_CallMessage.Opaque.Urgency {
get {_urgency ?? .droppable}
set {_urgency = newValue}
}
/// Returns true if `urgency` has been explicitly set.
var hasUrgency: Bool {self._urgency != nil}
/// Clears the value of `urgency`. Subsequent reads from it will return its default value.
mutating func clearUrgency() {self._urgency = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum Urgency: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case droppable = 0
case handleImmediately = 1
init() {
self = .droppable
}
}
init() {}
fileprivate var _data: Data? = nil
fileprivate var _urgency: SignalServiceProtos_CallMessage.Opaque.Urgency? = nil
}
init() {}
fileprivate var _offer: SignalServiceProtos_CallMessage.Offer? = nil
fileprivate var _answer: SignalServiceProtos_CallMessage.Answer? = nil
fileprivate var _busy: SignalServiceProtos_CallMessage.Busy? = nil
fileprivate var _profileKey: Data? = nil
fileprivate var _hangup: SignalServiceProtos_CallMessage.Hangup? = nil
fileprivate var _destinationDeviceID: UInt32? = nil
fileprivate var _opaque: SignalServiceProtos_CallMessage.Opaque? = nil
}
struct SignalServiceProtos_DataMessage: @unchecked Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var body: String {
get {_storage._body ?? String()}
set {_uniqueStorage()._body = newValue}
}
/// Returns true if `body` has been explicitly set.
var hasBody: Bool {_storage._body != nil}
/// Clears the value of `body`. Subsequent reads from it will return its default value.
mutating func clearBody() {_uniqueStorage()._body = nil}
var attachments: [SignalServiceProtos_AttachmentPointer] {
get {_storage._attachments}
set {_uniqueStorage()._attachments = newValue}
}
var groupV2: SignalServiceProtos_GroupContextV2 {
get {_storage._groupV2 ?? SignalServiceProtos_GroupContextV2()}
set {_uniqueStorage()._groupV2 = newValue}
}
/// Returns true if `groupV2` has been explicitly set.
var hasGroupV2: Bool {_storage._groupV2 != nil}
/// Clears the value of `groupV2`. Subsequent reads from it will return its default value.
mutating func clearGroupV2() {_uniqueStorage()._groupV2 = nil}
var flags: UInt32 {
get {_storage._flags ?? 0}
set {_uniqueStorage()._flags = newValue}
}
/// Returns true if `flags` has been explicitly set.
var hasFlags: Bool {_storage._flags != nil}
/// Clears the value of `flags`. Subsequent reads from it will return its default value.
mutating func clearFlags() {_uniqueStorage()._flags = nil}
var expireTimer: UInt32 {
get {_storage._expireTimer ?? 0}
set {_uniqueStorage()._expireTimer = newValue}
}
/// Returns true if `expireTimer` has been explicitly set.
var hasExpireTimer: Bool {_storage._expireTimer != nil}
/// Clears the value of `expireTimer`. Subsequent reads from it will return its default value.
mutating func clearExpireTimer() {_uniqueStorage()._expireTimer = nil}
var expireTimerVersion: UInt32 {
get {_storage._expireTimerVersion ?? 0}
set {_uniqueStorage()._expireTimerVersion = newValue}
}
/// Returns true if `expireTimerVersion` has been explicitly set.
var hasExpireTimerVersion: Bool {_storage._expireTimerVersion != nil}
/// Clears the value of `expireTimerVersion`. Subsequent reads from it will return its default value.
mutating func clearExpireTimerVersion() {_uniqueStorage()._expireTimerVersion = nil}
var profileKey: Data {
get {_storage._profileKey ?? Data()}
set {_uniqueStorage()._profileKey = newValue}
}
/// Returns true if `profileKey` has been explicitly set.
var hasProfileKey: Bool {_storage._profileKey != nil}
/// Clears the value of `profileKey`. Subsequent reads from it will return its default value.
mutating func clearProfileKey() {_uniqueStorage()._profileKey = nil}
var timestamp: UInt64 {
get {_storage._timestamp ?? 0}
set {_uniqueStorage()._timestamp = newValue}
}
/// Returns true if `timestamp` has been explicitly set.
var hasTimestamp: Bool {_storage._timestamp != nil}
/// Clears the value of `timestamp`. Subsequent reads from it will return its default value.
mutating func clearTimestamp() {_uniqueStorage()._timestamp = nil}
var quote: SignalServiceProtos_DataMessage.Quote {
get {_storage._quote ?? SignalServiceProtos_DataMessage.Quote()}
set {_uniqueStorage()._quote = newValue}
}
/// Returns true if `quote` has been explicitly set.
var hasQuote: Bool {_storage._quote != nil}
/// Clears the value of `quote`. Subsequent reads from it will return its default value.
mutating func clearQuote() {_uniqueStorage()._quote = nil}
var contact: [SignalServiceProtos_DataMessage.Contact] {
get {_storage._contact}
set {_uniqueStorage()._contact = newValue}
}
var preview: [SignalServiceProtos_Preview] {
get {_storage._preview}
set {_uniqueStorage()._preview = newValue}
}
var sticker: SignalServiceProtos_DataMessage.Sticker {
get {_storage._sticker ?? SignalServiceProtos_DataMessage.Sticker()}
set {_uniqueStorage()._sticker = newValue}
}
/// Returns true if `sticker` has been explicitly set.
var hasSticker: Bool {_storage._sticker != nil}
/// Clears the value of `sticker`. Subsequent reads from it will return its default value.
mutating func clearSticker() {_uniqueStorage()._sticker = nil}
var requiredProtocolVersion: UInt32 {
get {_storage._requiredProtocolVersion ?? 0}
set {_uniqueStorage()._requiredProtocolVersion = newValue}
}
/// Returns true if `requiredProtocolVersion` has been explicitly set.
var hasRequiredProtocolVersion: Bool {_storage._requiredProtocolVersion != nil}
/// Clears the value of `requiredProtocolVersion`. Subsequent reads from it will return its default value.
mutating func clearRequiredProtocolVersion() {_uniqueStorage()._requiredProtocolVersion = nil}
var isViewOnce: Bool {
get {_storage._isViewOnce ?? false}
set {_uniqueStorage()._isViewOnce = newValue}
}
/// Returns true if `isViewOnce` has been explicitly set.
var hasIsViewOnce: Bool {_storage._isViewOnce != nil}
/// Clears the value of `isViewOnce`. Subsequent reads from it will return its default value.
mutating func clearIsViewOnce() {_uniqueStorage()._isViewOnce = nil}
var reaction: SignalServiceProtos_DataMessage.Reaction {
get {_storage._reaction ?? SignalServiceProtos_DataMessage.Reaction()}
set {_uniqueStorage()._reaction = newValue}
}
/// Returns true if `reaction` has been explicitly set.
var hasReaction: Bool {_storage._reaction != nil}
/// Clears the value of `reaction`. Subsequent reads from it will return its default value.
mutating func clearReaction() {_uniqueStorage()._reaction = nil}
var delete: SignalServiceProtos_DataMessage.Delete {
get {_storage._delete ?? SignalServiceProtos_DataMessage.Delete()}
set {_uniqueStorage()._delete = newValue}
}
/// Returns true if `delete` has been explicitly set.
var hasDelete: Bool {_storage._delete != nil}
/// Clears the value of `delete`. Subsequent reads from it will return its default value.
mutating func clearDelete() {_uniqueStorage()._delete = nil}
var bodyRanges: [SignalServiceProtos_BodyRange] {
get {_storage._bodyRanges}
set {_uniqueStorage()._bodyRanges = newValue}
}
var groupCallUpdate: SignalServiceProtos_DataMessage.GroupCallUpdate {
get {_storage._groupCallUpdate ?? SignalServiceProtos_DataMessage.GroupCallUpdate()}
set {_uniqueStorage()._groupCallUpdate = newValue}
}
/// Returns true if `groupCallUpdate` has been explicitly set.
var hasGroupCallUpdate: Bool {_storage._groupCallUpdate != nil}
/// Clears the value of `groupCallUpdate`. Subsequent reads from it will return its default value.
mutating func clearGroupCallUpdate() {_uniqueStorage()._groupCallUpdate = nil}
var payment: SignalServiceProtos_DataMessage.Payment {
get {_storage._payment ?? SignalServiceProtos_DataMessage.Payment()}
set {_uniqueStorage()._payment = newValue}
}
/// Returns true if `payment` has been explicitly set.
var hasPayment: Bool {_storage._payment != nil}
/// Clears the value of `payment`. Subsequent reads from it will return its default value.
mutating func clearPayment() {_uniqueStorage()._payment = nil}
var storyContext: SignalServiceProtos_DataMessage.StoryContext {
get {_storage._storyContext ?? SignalServiceProtos_DataMessage.StoryContext()}
set {_uniqueStorage()._storyContext = newValue}
}
/// Returns true if `storyContext` has been explicitly set.
var hasStoryContext: Bool {_storage._storyContext != nil}
/// Clears the value of `storyContext`. Subsequent reads from it will return its default value.
mutating func clearStoryContext() {_uniqueStorage()._storyContext = nil}
var giftBadge: SignalServiceProtos_DataMessage.GiftBadge {
get {_storage._giftBadge ?? SignalServiceProtos_DataMessage.GiftBadge()}
set {_uniqueStorage()._giftBadge = newValue}
}
/// Returns true if `giftBadge` has been explicitly set.
var hasGiftBadge: Bool {_storage._giftBadge != nil}
/// Clears the value of `giftBadge`. Subsequent reads from it will return its default value.
mutating func clearGiftBadge() {_uniqueStorage()._giftBadge = nil}
var pollCreate: SignalServiceProtos_DataMessage.PollCreate {
get {_storage._pollCreate ?? SignalServiceProtos_DataMessage.PollCreate()}
set {_uniqueStorage()._pollCreate = newValue}
}
/// Returns true if `pollCreate` has been explicitly set.
var hasPollCreate: Bool {_storage._pollCreate != nil}
/// Clears the value of `pollCreate`. Subsequent reads from it will return its default value.
mutating func clearPollCreate() {_uniqueStorage()._pollCreate = nil}
var pollTerminate: SignalServiceProtos_DataMessage.PollTerminate {
get {_storage._pollTerminate ?? SignalServiceProtos_DataMessage.PollTerminate()}
set {_uniqueStorage()._pollTerminate = newValue}
}
/// Returns true if `pollTerminate` has been explicitly set.
var hasPollTerminate: Bool {_storage._pollTerminate != nil}
/// Clears the value of `pollTerminate`. Subsequent reads from it will return its default value.
mutating func clearPollTerminate() {_uniqueStorage()._pollTerminate = nil}
var pollVote: SignalServiceProtos_DataMessage.PollVote {
get {_storage._pollVote ?? SignalServiceProtos_DataMessage.PollVote()}
set {_uniqueStorage()._pollVote = newValue}
}
/// Returns true if `pollVote` has been explicitly set.
var hasPollVote: Bool {_storage._pollVote != nil}
/// Clears the value of `pollVote`. Subsequent reads from it will return its default value.
mutating func clearPollVote() {_uniqueStorage()._pollVote = nil}
var pinMessage: SignalServiceProtos_DataMessage.PinMessage {
get {_storage._pinMessage ?? SignalServiceProtos_DataMessage.PinMessage()}
set {_uniqueStorage()._pinMessage = newValue}
}
/// Returns true if `pinMessage` has been explicitly set.
var hasPinMessage: Bool {_storage._pinMessage != nil}
/// Clears the value of `pinMessage`. Subsequent reads from it will return its default value.
mutating func clearPinMessage() {_uniqueStorage()._pinMessage = nil}
var unpinMessage: SignalServiceProtos_DataMessage.UnpinMessage {
get {_storage._unpinMessage ?? SignalServiceProtos_DataMessage.UnpinMessage()}
set {_uniqueStorage()._unpinMessage = newValue}
}
/// Returns true if `unpinMessage` has been explicitly set.
var hasUnpinMessage: Bool {_storage._unpinMessage != nil}
/// Clears the value of `unpinMessage`. Subsequent reads from it will return its default value.
mutating func clearUnpinMessage() {_uniqueStorage()._unpinMessage = nil}
/// NEXT ID: 30
var adminDelete: SignalServiceProtos_DataMessage.AdminDelete {
get {_storage._adminDelete ?? SignalServiceProtos_DataMessage.AdminDelete()}
set {_uniqueStorage()._adminDelete = newValue}
}
/// Returns true if `adminDelete` has been explicitly set.
var hasAdminDelete: Bool {_storage._adminDelete != nil}
/// Clears the value of `adminDelete`. Subsequent reads from it will return its default value.
mutating func clearAdminDelete() {_uniqueStorage()._adminDelete = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum Flags: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case endSession = 1
case expirationTimerUpdate = 2
case profileKeyUpdate = 4
init() {
self = .endSession
}
}
enum ProtocolVersion: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case initial = 0
case messageTimers = 1
case viewOnce = 2
case viewOnceVideo = 3
case reactions = 4
case cdnSelectorAttachments = 5
case mentions = 6
case payments = 7
case polls = 8
static let current = polls
init() {
self = .initial
}
}
struct Quote: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// @required
var id: UInt64 {
get {_id ?? 0}
set {_id = newValue}
}
/// Returns true if `id` has been explicitly set.
var hasID: Bool {self._id != nil}
/// Clears the value of `id`. Subsequent reads from it will return its default value.
mutating func clearID() {self._id = nil}
var authorAci: String {
get {_authorAci ?? String()}
set {_authorAci = newValue}
}
/// Returns true if `authorAci` has been explicitly set.
var hasAuthorAci: Bool {self._authorAci != nil}
/// Clears the value of `authorAci`. Subsequent reads from it will return its default value.
mutating func clearAuthorAci() {self._authorAci = nil}
var text: String {
get {_text ?? String()}
set {_text = newValue}
}
/// Returns true if `text` has been explicitly set.
var hasText: Bool {self._text != nil}
/// Clears the value of `text`. Subsequent reads from it will return its default value.
mutating func clearText() {self._text = nil}
var attachments: [SignalServiceProtos_DataMessage.Quote.QuotedAttachment] = []
var bodyRanges: [SignalServiceProtos_BodyRange] = []
var type: SignalServiceProtos_DataMessage.Quote.TypeEnum {
get {_type ?? .normal}
set {_type = newValue}
}
/// Returns true if `type` has been explicitly set.
var hasType: Bool {self._type != nil}
/// Clears the value of `type`. Subsequent reads from it will return its default value.
mutating func clearType() {self._type = nil}
/// 16-byte UUID
var authorAciBinary: Data {
get {_authorAciBinary ?? Data()}
set {_authorAciBinary = newValue}
}
/// Returns true if `authorAciBinary` has been explicitly set.
var hasAuthorAciBinary: Bool {self._authorAciBinary != nil}
/// Clears the value of `authorAciBinary`. Subsequent reads from it will return its default value.
mutating func clearAuthorAciBinary() {self._authorAciBinary = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum TypeEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case normal = 0
case giftBadge = 1
init() {
self = .normal
}
}
struct QuotedAttachment: @unchecked Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var contentType: String {
get {_storage._contentType ?? String()}
set {_uniqueStorage()._contentType = newValue}
}
/// Returns true if `contentType` has been explicitly set.
var hasContentType: Bool {_storage._contentType != nil}
/// Clears the value of `contentType`. Subsequent reads from it will return its default value.
mutating func clearContentType() {_uniqueStorage()._contentType = nil}
var fileName: String {
get {_storage._fileName ?? String()}
set {_uniqueStorage()._fileName = newValue}
}
/// Returns true if `fileName` has been explicitly set.
var hasFileName: Bool {_storage._fileName != nil}
/// Clears the value of `fileName`. Subsequent reads from it will return its default value.
mutating func clearFileName() {_uniqueStorage()._fileName = nil}
var thumbnail: SignalServiceProtos_AttachmentPointer {
get {_storage._thumbnail ?? SignalServiceProtos_AttachmentPointer()}
set {_uniqueStorage()._thumbnail = newValue}
}
/// Returns true if `thumbnail` has been explicitly set.
var hasThumbnail: Bool {_storage._thumbnail != nil}
/// Clears the value of `thumbnail`. Subsequent reads from it will return its default value.
mutating func clearThumbnail() {_uniqueStorage()._thumbnail = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
init() {}
fileprivate var _id: UInt64? = nil
fileprivate var _authorAci: String? = nil
fileprivate var _text: String? = nil
fileprivate var _type: SignalServiceProtos_DataMessage.Quote.TypeEnum? = nil
fileprivate var _authorAciBinary: Data? = nil
}
struct Contact: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var name: SignalServiceProtos_DataMessage.Contact.Name {
get {_name ?? SignalServiceProtos_DataMessage.Contact.Name()}
set {_name = newValue}
}
/// Returns true if `name` has been explicitly set.
var hasName: Bool {self._name != nil}
/// Clears the value of `name`. Subsequent reads from it will return its default value.
mutating func clearName() {self._name = nil}
var number: [SignalServiceProtos_DataMessage.Contact.Phone] = []
var email: [SignalServiceProtos_DataMessage.Contact.Email] = []
var address: [SignalServiceProtos_DataMessage.Contact.PostalAddress] = []
var avatar: SignalServiceProtos_DataMessage.Contact.Avatar {
get {_avatar ?? SignalServiceProtos_DataMessage.Contact.Avatar()}
set {_avatar = newValue}
}
/// Returns true if `avatar` has been explicitly set.
var hasAvatar: Bool {self._avatar != nil}
/// Clears the value of `avatar`. Subsequent reads from it will return its default value.
mutating func clearAvatar() {self._avatar = nil}
var organization: String {
get {_organization ?? String()}
set {_organization = newValue}
}
/// Returns true if `organization` has been explicitly set.
var hasOrganization: Bool {self._organization != nil}
/// Clears the value of `organization`. Subsequent reads from it will return its default value.
mutating func clearOrganization() {self._organization = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
struct Name: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var givenName: String {
get {_givenName ?? String()}
set {_givenName = newValue}
}
/// Returns true if `givenName` has been explicitly set.
var hasGivenName: Bool {self._givenName != nil}
/// Clears the value of `givenName`. Subsequent reads from it will return its default value.
mutating func clearGivenName() {self._givenName = nil}
var familyName: String {
get {_familyName ?? String()}
set {_familyName = newValue}
}
/// Returns true if `familyName` has been explicitly set.
var hasFamilyName: Bool {self._familyName != nil}
/// Clears the value of `familyName`. Subsequent reads from it will return its default value.
mutating func clearFamilyName() {self._familyName = nil}
var prefix: String {
get {_prefix ?? String()}
set {_prefix = newValue}
}
/// Returns true if `prefix` has been explicitly set.
var hasPrefix: Bool {self._prefix != nil}
/// Clears the value of `prefix`. Subsequent reads from it will return its default value.
mutating func clearPrefix() {self._prefix = nil}
var suffix: String {
get {_suffix ?? String()}
set {_suffix = newValue}
}
/// Returns true if `suffix` has been explicitly set.
var hasSuffix: Bool {self._suffix != nil}
/// Clears the value of `suffix`. Subsequent reads from it will return its default value.
mutating func clearSuffix() {self._suffix = nil}
var middleName: String {
get {_middleName ?? String()}
set {_middleName = newValue}
}
/// Returns true if `middleName` has been explicitly set.
var hasMiddleName: Bool {self._middleName != nil}
/// Clears the value of `middleName`. Subsequent reads from it will return its default value.
mutating func clearMiddleName() {self._middleName = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _givenName: String? = nil
fileprivate var _familyName: String? = nil
fileprivate var _prefix: String? = nil
fileprivate var _suffix: String? = nil
fileprivate var _middleName: String? = nil
}
struct Phone: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var value: String {
get {_value ?? String()}
set {_value = newValue}
}
/// Returns true if `value` has been explicitly set.
var hasValue: Bool {self._value != nil}
/// Clears the value of `value`. Subsequent reads from it will return its default value.
mutating func clearValue() {self._value = nil}
var type: SignalServiceProtos_DataMessage.Contact.Phone.TypeEnum {
get {_type ?? .home}
set {_type = newValue}
}
/// Returns true if `type` has been explicitly set.
var hasType: Bool {self._type != nil}
/// Clears the value of `type`. Subsequent reads from it will return its default value.
mutating func clearType() {self._type = nil}
var label: String {
get {_label ?? String()}
set {_label = newValue}
}
/// Returns true if `label` has been explicitly set.
var hasLabel: Bool {self._label != nil}
/// Clears the value of `label`. Subsequent reads from it will return its default value.
mutating func clearLabel() {self._label = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum TypeEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case home = 1
case mobile = 2
case work = 3
case custom = 4
init() {
self = .home
}
}
init() {}
fileprivate var _value: String? = nil
fileprivate var _type: SignalServiceProtos_DataMessage.Contact.Phone.TypeEnum? = nil
fileprivate var _label: String? = nil
}
struct Email: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var value: String {
get {_value ?? String()}
set {_value = newValue}
}
/// Returns true if `value` has been explicitly set.
var hasValue: Bool {self._value != nil}
/// Clears the value of `value`. Subsequent reads from it will return its default value.
mutating func clearValue() {self._value = nil}
var type: SignalServiceProtos_DataMessage.Contact.Email.TypeEnum {
get {_type ?? .home}
set {_type = newValue}
}
/// Returns true if `type` has been explicitly set.
var hasType: Bool {self._type != nil}
/// Clears the value of `type`. Subsequent reads from it will return its default value.
mutating func clearType() {self._type = nil}
var label: String {
get {_label ?? String()}
set {_label = newValue}
}
/// Returns true if `label` has been explicitly set.
var hasLabel: Bool {self._label != nil}
/// Clears the value of `label`. Subsequent reads from it will return its default value.
mutating func clearLabel() {self._label = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum TypeEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case home = 1
case mobile = 2
case work = 3
case custom = 4
init() {
self = .home
}
}
init() {}
fileprivate var _value: String? = nil
fileprivate var _type: SignalServiceProtos_DataMessage.Contact.Email.TypeEnum? = nil
fileprivate var _label: String? = nil
}
struct PostalAddress: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var type: SignalServiceProtos_DataMessage.Contact.PostalAddress.TypeEnum {
get {_type ?? .home}
set {_type = newValue}
}
/// Returns true if `type` has been explicitly set.
var hasType: Bool {self._type != nil}
/// Clears the value of `type`. Subsequent reads from it will return its default value.
mutating func clearType() {self._type = nil}
var label: String {
get {_label ?? String()}
set {_label = newValue}
}
/// Returns true if `label` has been explicitly set.
var hasLabel: Bool {self._label != nil}
/// Clears the value of `label`. Subsequent reads from it will return its default value.
mutating func clearLabel() {self._label = nil}
var street: String {
get {_street ?? String()}
set {_street = newValue}
}
/// Returns true if `street` has been explicitly set.
var hasStreet: Bool {self._street != nil}
/// Clears the value of `street`. Subsequent reads from it will return its default value.
mutating func clearStreet() {self._street = nil}
var pobox: String {
get {_pobox ?? String()}
set {_pobox = newValue}
}
/// Returns true if `pobox` has been explicitly set.
var hasPobox: Bool {self._pobox != nil}
/// Clears the value of `pobox`. Subsequent reads from it will return its default value.
mutating func clearPobox() {self._pobox = nil}
var neighborhood: String {
get {_neighborhood ?? String()}
set {_neighborhood = newValue}
}
/// Returns true if `neighborhood` has been explicitly set.
var hasNeighborhood: Bool {self._neighborhood != nil}
/// Clears the value of `neighborhood`. Subsequent reads from it will return its default value.
mutating func clearNeighborhood() {self._neighborhood = nil}
var city: String {
get {_city ?? String()}
set {_city = newValue}
}
/// Returns true if `city` has been explicitly set.
var hasCity: Bool {self._city != nil}
/// Clears the value of `city`. Subsequent reads from it will return its default value.
mutating func clearCity() {self._city = nil}
var region: String {
get {_region ?? String()}
set {_region = newValue}
}
/// Returns true if `region` has been explicitly set.
var hasRegion: Bool {self._region != nil}
/// Clears the value of `region`. Subsequent reads from it will return its default value.
mutating func clearRegion() {self._region = nil}
var postcode: String {
get {_postcode ?? String()}
set {_postcode = newValue}
}
/// Returns true if `postcode` has been explicitly set.
var hasPostcode: Bool {self._postcode != nil}
/// Clears the value of `postcode`. Subsequent reads from it will return its default value.
mutating func clearPostcode() {self._postcode = nil}
var country: String {
get {_country ?? String()}
set {_country = newValue}
}
/// Returns true if `country` has been explicitly set.
var hasCountry: Bool {self._country != nil}
/// Clears the value of `country`. Subsequent reads from it will return its default value.
mutating func clearCountry() {self._country = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum TypeEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case home = 1
case work = 2
case custom = 3
init() {
self = .home
}
}
init() {}
fileprivate var _type: SignalServiceProtos_DataMessage.Contact.PostalAddress.TypeEnum? = nil
fileprivate var _label: String? = nil
fileprivate var _street: String? = nil
fileprivate var _pobox: String? = nil
fileprivate var _neighborhood: String? = nil
fileprivate var _city: String? = nil
fileprivate var _region: String? = nil
fileprivate var _postcode: String? = nil
fileprivate var _country: String? = nil
}
struct Avatar: @unchecked Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var avatar: SignalServiceProtos_AttachmentPointer {
get {_storage._avatar ?? SignalServiceProtos_AttachmentPointer()}
set {_uniqueStorage()._avatar = newValue}
}
/// Returns true if `avatar` has been explicitly set.
var hasAvatar: Bool {_storage._avatar != nil}
/// Clears the value of `avatar`. Subsequent reads from it will return its default value.
mutating func clearAvatar() {_uniqueStorage()._avatar = nil}
var isProfile: Bool {
get {_storage._isProfile ?? false}
set {_uniqueStorage()._isProfile = newValue}
}
/// Returns true if `isProfile` has been explicitly set.
var hasIsProfile: Bool {_storage._isProfile != nil}
/// Clears the value of `isProfile`. Subsequent reads from it will return its default value.
mutating func clearIsProfile() {_uniqueStorage()._isProfile = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
init() {}
fileprivate var _name: SignalServiceProtos_DataMessage.Contact.Name? = nil
fileprivate var _avatar: SignalServiceProtos_DataMessage.Contact.Avatar? = nil
fileprivate var _organization: String? = nil
}
struct Sticker: @unchecked Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// @required
var packID: Data {
get {_storage._packID ?? Data()}
set {_uniqueStorage()._packID = newValue}
}
/// Returns true if `packID` has been explicitly set.
var hasPackID: Bool {_storage._packID != nil}
/// Clears the value of `packID`. Subsequent reads from it will return its default value.
mutating func clearPackID() {_uniqueStorage()._packID = nil}
/// @required
var packKey: Data {
get {_storage._packKey ?? Data()}
set {_uniqueStorage()._packKey = newValue}
}
/// Returns true if `packKey` has been explicitly set.
var hasPackKey: Bool {_storage._packKey != nil}
/// Clears the value of `packKey`. Subsequent reads from it will return its default value.
mutating func clearPackKey() {_uniqueStorage()._packKey = nil}
/// @required
var stickerID: UInt32 {
get {_storage._stickerID ?? 0}
set {_uniqueStorage()._stickerID = newValue}
}
/// Returns true if `stickerID` has been explicitly set.
var hasStickerID: Bool {_storage._stickerID != nil}
/// Clears the value of `stickerID`. Subsequent reads from it will return its default value.
mutating func clearStickerID() {_uniqueStorage()._stickerID = nil}
/// @required
var data: SignalServiceProtos_AttachmentPointer {
get {_storage._data ?? SignalServiceProtos_AttachmentPointer()}
set {_uniqueStorage()._data = newValue}
}
/// Returns true if `data` has been explicitly set.
var hasData: Bool {_storage._data != nil}
/// Clears the value of `data`. Subsequent reads from it will return its default value.
mutating func clearData() {_uniqueStorage()._data = nil}
var emoji: String {
get {_storage._emoji ?? String()}
set {_uniqueStorage()._emoji = newValue}
}
/// Returns true if `emoji` has been explicitly set.
var hasEmoji: Bool {_storage._emoji != nil}
/// Clears the value of `emoji`. Subsequent reads from it will return its default value.
mutating func clearEmoji() {_uniqueStorage()._emoji = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
struct Reaction: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// @required
var emoji: String {
get {_emoji ?? String()}
set {_emoji = newValue}
}
/// Returns true if `emoji` has been explicitly set.
var hasEmoji: Bool {self._emoji != nil}
/// Clears the value of `emoji`. Subsequent reads from it will return its default value.
mutating func clearEmoji() {self._emoji = nil}
var remove: Bool {
get {_remove ?? false}
set {_remove = newValue}
}
/// Returns true if `remove` has been explicitly set.
var hasRemove: Bool {self._remove != nil}
/// Clears the value of `remove`. Subsequent reads from it will return its default value.
mutating func clearRemove() {self._remove = nil}
var targetAuthorAci: String {
get {_targetAuthorAci ?? String()}
set {_targetAuthorAci = newValue}
}
/// Returns true if `targetAuthorAci` has been explicitly set.
var hasTargetAuthorAci: Bool {self._targetAuthorAci != nil}
/// Clears the value of `targetAuthorAci`. Subsequent reads from it will return its default value.
mutating func clearTargetAuthorAci() {self._targetAuthorAci = nil}
/// @required
var timestamp: UInt64 {
get {_timestamp ?? 0}
set {_timestamp = newValue}
}
/// Returns true if `timestamp` has been explicitly set.
var hasTimestamp: Bool {self._timestamp != nil}
/// Clears the value of `timestamp`. Subsequent reads from it will return its default value.
mutating func clearTimestamp() {self._timestamp = nil}
/// 16-byte UUID
var targetAuthorAciBinary: Data {
get {_targetAuthorAciBinary ?? Data()}
set {_targetAuthorAciBinary = newValue}
}
/// Returns true if `targetAuthorAciBinary` has been explicitly set.
var hasTargetAuthorAciBinary: Bool {self._targetAuthorAciBinary != nil}
/// Clears the value of `targetAuthorAciBinary`. Subsequent reads from it will return its default value.
mutating func clearTargetAuthorAciBinary() {self._targetAuthorAciBinary = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _emoji: String? = nil
fileprivate var _remove: Bool? = nil
fileprivate var _targetAuthorAci: String? = nil
fileprivate var _timestamp: UInt64? = nil
fileprivate var _targetAuthorAciBinary: Data? = nil
}
struct Delete: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// @required
var targetSentTimestamp: UInt64 {
get {_targetSentTimestamp ?? 0}
set {_targetSentTimestamp = newValue}
}
/// Returns true if `targetSentTimestamp` has been explicitly set.
var hasTargetSentTimestamp: Bool {self._targetSentTimestamp != nil}
/// Clears the value of `targetSentTimestamp`. Subsequent reads from it will return its default value.
mutating func clearTargetSentTimestamp() {self._targetSentTimestamp = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _targetSentTimestamp: UInt64? = nil
}
struct GroupCallUpdate: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var eraID: String {
get {_eraID ?? String()}
set {_eraID = newValue}
}
/// Returns true if `eraID` has been explicitly set.
var hasEraID: Bool {self._eraID != nil}
/// Clears the value of `eraID`. Subsequent reads from it will return its default value.
mutating func clearEraID() {self._eraID = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _eraID: String? = nil
}
struct Payment: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// oneof commented out
/// oneof Item {
var notification: SignalServiceProtos_DataMessage.Payment.Notification {
get {_notification ?? SignalServiceProtos_DataMessage.Payment.Notification()}
set {_notification = newValue}
}
/// Returns true if `notification` has been explicitly set.
var hasNotification: Bool {self._notification != nil}
/// Clears the value of `notification`. Subsequent reads from it will return its default value.
mutating func clearNotification() {self._notification = nil}
var activation: SignalServiceProtos_DataMessage.Payment.Activation {
get {_activation ?? SignalServiceProtos_DataMessage.Payment.Activation()}
set {_activation = newValue}
}
/// Returns true if `activation` has been explicitly set.
var hasActivation: Bool {self._activation != nil}
/// Clears the value of `activation`. Subsequent reads from it will return its default value.
mutating func clearActivation() {self._activation = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
struct Amount: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// oneof commented out
/// oneof Amount {
var mobileCoin: SignalServiceProtos_DataMessage.Payment.Amount.MobileCoin {
get {_mobileCoin ?? SignalServiceProtos_DataMessage.Payment.Amount.MobileCoin()}
set {_mobileCoin = newValue}
}
/// Returns true if `mobileCoin` has been explicitly set.
var hasMobileCoin: Bool {self._mobileCoin != nil}
/// Clears the value of `mobileCoin`. Subsequent reads from it will return its default value.
mutating func clearMobileCoin() {self._mobileCoin = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
struct MobileCoin: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// @required
var picoMob: UInt64 {
get {_picoMob ?? 0}
set {_picoMob = newValue}
}
/// Returns true if `picoMob` has been explicitly set.
var hasPicoMob: Bool {self._picoMob != nil}
/// Clears the value of `picoMob`. Subsequent reads from it will return its default value.
mutating func clearPicoMob() {self._picoMob = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _picoMob: UInt64? = nil
}
init() {}
fileprivate var _mobileCoin: SignalServiceProtos_DataMessage.Payment.Amount.MobileCoin? = nil
}
struct Notification: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// oneof commented out
/// oneof Transaction {
var mobileCoin: SignalServiceProtos_DataMessage.Payment.Notification.MobileCoin {
get {_mobileCoin ?? SignalServiceProtos_DataMessage.Payment.Notification.MobileCoin()}
set {_mobileCoin = newValue}
}
/// Returns true if `mobileCoin` has been explicitly set.
var hasMobileCoin: Bool {self._mobileCoin != nil}
/// Clears the value of `mobileCoin`. Subsequent reads from it will return its default value.
mutating func clearMobileCoin() {self._mobileCoin = nil}
var note: String {
get {_note ?? String()}
set {_note = newValue}
}
/// Returns true if `note` has been explicitly set.
var hasNote: Bool {self._note != nil}
/// Clears the value of `note`. Subsequent reads from it will return its default value.
mutating func clearNote() {self._note = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
struct MobileCoin: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// @required
var receipt: Data {
get {_receipt ?? Data()}
set {_receipt = newValue}
}
/// Returns true if `receipt` has been explicitly set.
var hasReceipt: Bool {self._receipt != nil}
/// Clears the value of `receipt`. Subsequent reads from it will return its default value.
mutating func clearReceipt() {self._receipt = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _receipt: Data? = nil
}
init() {}
fileprivate var _mobileCoin: SignalServiceProtos_DataMessage.Payment.Notification.MobileCoin? = nil
fileprivate var _note: String? = nil
}
struct Activation: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var type: SignalServiceProtos_DataMessage.Payment.Activation.TypeEnum {
get {_type ?? .request}
set {_type = newValue}
}
/// Returns true if `type` has been explicitly set.
var hasType: Bool {self._type != nil}
/// Clears the value of `type`. Subsequent reads from it will return its default value.
mutating func clearType() {self._type = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum TypeEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case request = 0
case activated = 1
init() {
self = .request
}
}
init() {}
fileprivate var _type: SignalServiceProtos_DataMessage.Payment.Activation.TypeEnum? = nil
}
init() {}
fileprivate var _notification: SignalServiceProtos_DataMessage.Payment.Notification? = nil
fileprivate var _activation: SignalServiceProtos_DataMessage.Payment.Activation? = nil
}
struct StoryContext: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var authorAci: String {
get {_authorAci ?? String()}
set {_authorAci = newValue}
}
/// Returns true if `authorAci` has been explicitly set.
var hasAuthorAci: Bool {self._authorAci != nil}
/// Clears the value of `authorAci`. Subsequent reads from it will return its default value.
mutating func clearAuthorAci() {self._authorAci = nil}
var sentTimestamp: UInt64 {
get {_sentTimestamp ?? 0}
set {_sentTimestamp = newValue}
}
/// Returns true if `sentTimestamp` has been explicitly set.
var hasSentTimestamp: Bool {self._sentTimestamp != nil}
/// Clears the value of `sentTimestamp`. Subsequent reads from it will return its default value.
mutating func clearSentTimestamp() {self._sentTimestamp = nil}
/// 16-byte UUID
var authorAciBinary: Data {
get {_authorAciBinary ?? Data()}
set {_authorAciBinary = newValue}
}
/// Returns true if `authorAciBinary` has been explicitly set.
var hasAuthorAciBinary: Bool {self._authorAciBinary != nil}
/// Clears the value of `authorAciBinary`. Subsequent reads from it will return its default value.
mutating func clearAuthorAciBinary() {self._authorAciBinary = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _authorAci: String? = nil
fileprivate var _sentTimestamp: UInt64? = nil
fileprivate var _authorAciBinary: Data? = nil
}
struct GiftBadge: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var receiptCredentialPresentation: Data {
get {_receiptCredentialPresentation ?? Data()}
set {_receiptCredentialPresentation = newValue}
}
/// Returns true if `receiptCredentialPresentation` has been explicitly set.
var hasReceiptCredentialPresentation: Bool {self._receiptCredentialPresentation != nil}
/// Clears the value of `receiptCredentialPresentation`. Subsequent reads from it will return its default value.
mutating func clearReceiptCredentialPresentation() {self._receiptCredentialPresentation = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _receiptCredentialPresentation: Data? = nil
}
struct PollCreate: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var question: String {
get {_question ?? String()}
set {_question = newValue}
}
/// Returns true if `question` has been explicitly set.
var hasQuestion: Bool {self._question != nil}
/// Clears the value of `question`. Subsequent reads from it will return its default value.
mutating func clearQuestion() {self._question = nil}
var allowMultiple: Bool {
get {_allowMultiple ?? false}
set {_allowMultiple = newValue}
}
/// Returns true if `allowMultiple` has been explicitly set.
var hasAllowMultiple: Bool {self._allowMultiple != nil}
/// Clears the value of `allowMultiple`. Subsequent reads from it will return its default value.
mutating func clearAllowMultiple() {self._allowMultiple = nil}
var options: [String] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _question: String? = nil
fileprivate var _allowMultiple: Bool? = nil
}
struct PollTerminate: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var targetSentTimestamp: UInt64 {
get {_targetSentTimestamp ?? 0}
set {_targetSentTimestamp = newValue}
}
/// Returns true if `targetSentTimestamp` has been explicitly set.
var hasTargetSentTimestamp: Bool {self._targetSentTimestamp != nil}
/// Clears the value of `targetSentTimestamp`. Subsequent reads from it will return its default value.
mutating func clearTargetSentTimestamp() {self._targetSentTimestamp = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _targetSentTimestamp: UInt64? = nil
}
struct PollVote: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var targetAuthorAciBinary: Data {
get {_targetAuthorAciBinary ?? Data()}
set {_targetAuthorAciBinary = newValue}
}
/// Returns true if `targetAuthorAciBinary` has been explicitly set.
var hasTargetAuthorAciBinary: Bool {self._targetAuthorAciBinary != nil}
/// Clears the value of `targetAuthorAciBinary`. Subsequent reads from it will return its default value.
mutating func clearTargetAuthorAciBinary() {self._targetAuthorAciBinary = nil}
var targetSentTimestamp: UInt64 {
get {_targetSentTimestamp ?? 0}
set {_targetSentTimestamp = newValue}
}
/// Returns true if `targetSentTimestamp` has been explicitly set.
var hasTargetSentTimestamp: Bool {self._targetSentTimestamp != nil}
/// Clears the value of `targetSentTimestamp`. Subsequent reads from it will return its default value.
mutating func clearTargetSentTimestamp() {self._targetSentTimestamp = nil}
var optionIndexes: [UInt32] = []
var voteCount: UInt32 {
get {_voteCount ?? 0}
set {_voteCount = newValue}
}
/// Returns true if `voteCount` has been explicitly set.
var hasVoteCount: Bool {self._voteCount != nil}
/// Clears the value of `voteCount`. Subsequent reads from it will return its default value.
mutating func clearVoteCount() {self._voteCount = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _targetAuthorAciBinary: Data? = nil
fileprivate var _targetSentTimestamp: UInt64? = nil
fileprivate var _voteCount: UInt32? = nil
}
struct PinMessage: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// 16-byte UUID
var targetAuthorAciBinary: Data {
get {_targetAuthorAciBinary ?? Data()}
set {_targetAuthorAciBinary = newValue}
}
/// Returns true if `targetAuthorAciBinary` has been explicitly set.
var hasTargetAuthorAciBinary: Bool {self._targetAuthorAciBinary != nil}
/// Clears the value of `targetAuthorAciBinary`. Subsequent reads from it will return its default value.
mutating func clearTargetAuthorAciBinary() {self._targetAuthorAciBinary = nil}
var targetSentTimestamp: UInt64 {
get {_targetSentTimestamp ?? 0}
set {_targetSentTimestamp = newValue}
}
/// Returns true if `targetSentTimestamp` has been explicitly set.
var hasTargetSentTimestamp: Bool {self._targetSentTimestamp != nil}
/// Clears the value of `targetSentTimestamp`. Subsequent reads from it will return its default value.
mutating func clearTargetSentTimestamp() {self._targetSentTimestamp = nil}
/// oneof pinDuration {
var pinDurationSeconds: UInt32 {
get {_pinDurationSeconds ?? 0}
set {_pinDurationSeconds = newValue}
}
/// Returns true if `pinDurationSeconds` has been explicitly set.
var hasPinDurationSeconds: Bool {self._pinDurationSeconds != nil}
/// Clears the value of `pinDurationSeconds`. Subsequent reads from it will return its default value.
mutating func clearPinDurationSeconds() {self._pinDurationSeconds = nil}
/// }
var pinDurationForever: Bool {
get {_pinDurationForever ?? false}
set {_pinDurationForever = newValue}
}
/// Returns true if `pinDurationForever` has been explicitly set.
var hasPinDurationForever: Bool {self._pinDurationForever != nil}
/// Clears the value of `pinDurationForever`. Subsequent reads from it will return its default value.
mutating func clearPinDurationForever() {self._pinDurationForever = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _targetAuthorAciBinary: Data? = nil
fileprivate var _targetSentTimestamp: UInt64? = nil
fileprivate var _pinDurationSeconds: UInt32? = nil
fileprivate var _pinDurationForever: Bool? = nil
}
struct UnpinMessage: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// 16-byte UUID
var targetAuthorAciBinary: Data {
get {_targetAuthorAciBinary ?? Data()}
set {_targetAuthorAciBinary = newValue}
}
/// Returns true if `targetAuthorAciBinary` has been explicitly set.
var hasTargetAuthorAciBinary: Bool {self._targetAuthorAciBinary != nil}
/// Clears the value of `targetAuthorAciBinary`. Subsequent reads from it will return its default value.
mutating func clearTargetAuthorAciBinary() {self._targetAuthorAciBinary = nil}
var targetSentTimestamp: UInt64 {
get {_targetSentTimestamp ?? 0}
set {_targetSentTimestamp = newValue}
}
/// Returns true if `targetSentTimestamp` has been explicitly set.
var hasTargetSentTimestamp: Bool {self._targetSentTimestamp != nil}
/// Clears the value of `targetSentTimestamp`. Subsequent reads from it will return its default value.
mutating func clearTargetSentTimestamp() {self._targetSentTimestamp = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _targetAuthorAciBinary: Data? = nil
fileprivate var _targetSentTimestamp: UInt64? = nil
}
struct AdminDelete: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// 16-byte UUID
var targetAuthorAciBinary: Data {
get {_targetAuthorAciBinary ?? Data()}
set {_targetAuthorAciBinary = newValue}
}
/// Returns true if `targetAuthorAciBinary` has been explicitly set.
var hasTargetAuthorAciBinary: Bool {self._targetAuthorAciBinary != nil}
/// Clears the value of `targetAuthorAciBinary`. Subsequent reads from it will return its default value.
mutating func clearTargetAuthorAciBinary() {self._targetAuthorAciBinary = nil}
var targetSentTimestamp: UInt64 {
get {_targetSentTimestamp ?? 0}
set {_targetSentTimestamp = newValue}
}
/// Returns true if `targetSentTimestamp` has been explicitly set.
var hasTargetSentTimestamp: Bool {self._targetSentTimestamp != nil}
/// Clears the value of `targetSentTimestamp`. Subsequent reads from it will return its default value.
mutating func clearTargetSentTimestamp() {self._targetSentTimestamp = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _targetAuthorAciBinary: Data? = nil
fileprivate var _targetSentTimestamp: UInt64? = nil
}
init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
struct SignalServiceProtos_NullMessage: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var padding: Data {
get {_padding ?? Data()}
set {_padding = newValue}
}
/// Returns true if `padding` has been explicitly set.
var hasPadding: Bool {self._padding != nil}
/// Clears the value of `padding`. Subsequent reads from it will return its default value.
mutating func clearPadding() {self._padding = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _padding: Data? = nil
}
struct SignalServiceProtos_ReceiptMessage: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var type: SignalServiceProtos_ReceiptMessage.TypeEnum {
get {_type ?? .delivery}
set {_type = newValue}
}
/// Returns true if `type` has been explicitly set.
var hasType: Bool {self._type != nil}
/// Clears the value of `type`. Subsequent reads from it will return its default value.
mutating func clearType() {self._type = nil}
var timestamp: [UInt64] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
enum TypeEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case delivery = 0
case read = 1
case viewed = 2
init() {
self = .delivery
}
}
init() {}
fileprivate var _type: SignalServiceProtos_ReceiptMessage.TypeEnum? = nil
}
struct SignalServiceProtos_Verified: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var destinationAci: String {
get {_destinationAci ?? String()}
set {_destinationAci = newValue}
}
/// Returns true if `destinationAci` has been explicitly set.
var hasDestinationAci: Bool {self._destinationAci != nil}
/// Clears the value of `destinationAci`. Subsequent reads from it will return its default value.
mutating func clearDestinationAci() {self._destinationAci = nil}
var identityKey: Data {
get {_identityKey ?? Data()}
set {_identityKey = newValue}
}
/// Returns true if `identityKey` has been explicitly set.
var hasIdentityKey: Bool {self._identityKey != nil}
/// Clears the value of `identityKey`. Subsequent reads from it will return its default value.
mutating func clearIdentityKey() {self._identityKey = nil}
var state: SignalServiceProtos_Verified.State {
get {_state ?? .default}
set {_state = newValue}
}
/// Returns true if `state` has been explicitly set.
var hasState: Bool {self._state != nil}
/// Clears the value of `state`. Subsequent reads from it will return its default value.
mutating func clearState() {self._state = nil}
var nullMessage: Data {
get {_nullMessage ?? Data()}
set {_nullMessage = newValue}
}
/// Returns true if `nullMessage` has been explicitly set.
var hasNullMessage: Bool {self._nullMessage != nil}
/// Clears the value of `nullMessage`. Subsequent reads from it will return its default value.
mutating func clearNullMessage() {self._nullMessage = nil}
/// 16-byte UUID
var destinationAciBinary: Data {
get {_destinationAciBinary ?? Data()}
set {_destinationAciBinary = newValue}
}
/// Returns true if `destinationAciBinary` has been explicitly set.
var hasDestinationAciBinary: Bool {self._destinationAciBinary != nil}
/// Clears the value of `destinationAciBinary`. Subsequent reads from it will return its default value.
mutating func clearDestinationAciBinary() {self._destinationAciBinary = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum State: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case `default` = 0
case verified = 1
case unverified = 2
init() {
self = .default
}
}
init() {}
fileprivate var _destinationAci: String? = nil
fileprivate var _identityKey: Data? = nil
fileprivate var _state: SignalServiceProtos_Verified.State? = nil
fileprivate var _nullMessage: Data? = nil
fileprivate var _destinationAciBinary: Data? = nil
}
struct SignalServiceProtos_SyncMessage: @unchecked Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var sent: SignalServiceProtos_SyncMessage.Sent {
get {_storage._sent ?? SignalServiceProtos_SyncMessage.Sent()}
set {_uniqueStorage()._sent = newValue}
}
/// Returns true if `sent` has been explicitly set.
var hasSent: Bool {_storage._sent != nil}
/// Clears the value of `sent`. Subsequent reads from it will return its default value.
mutating func clearSent() {_uniqueStorage()._sent = nil}
var contacts: SignalServiceProtos_SyncMessage.Contacts {
get {_storage._contacts ?? SignalServiceProtos_SyncMessage.Contacts()}
set {_uniqueStorage()._contacts = newValue}
}
/// Returns true if `contacts` has been explicitly set.
var hasContacts: Bool {_storage._contacts != nil}
/// Clears the value of `contacts`. Subsequent reads from it will return its default value.
mutating func clearContacts() {_uniqueStorage()._contacts = nil}
var request: SignalServiceProtos_SyncMessage.Request {
get {_storage._request ?? SignalServiceProtos_SyncMessage.Request()}
set {_uniqueStorage()._request = newValue}
}
/// Returns true if `request` has been explicitly set.
var hasRequest: Bool {_storage._request != nil}
/// Clears the value of `request`. Subsequent reads from it will return its default value.
mutating func clearRequest() {_uniqueStorage()._request = nil}
var read: [SignalServiceProtos_SyncMessage.Read] {
get {_storage._read}
set {_uniqueStorage()._read = newValue}
}
var blocked: SignalServiceProtos_SyncMessage.Blocked {
get {_storage._blocked ?? SignalServiceProtos_SyncMessage.Blocked()}
set {_uniqueStorage()._blocked = newValue}
}
/// Returns true if `blocked` has been explicitly set.
var hasBlocked: Bool {_storage._blocked != nil}
/// Clears the value of `blocked`. Subsequent reads from it will return its default value.
mutating func clearBlocked() {_uniqueStorage()._blocked = nil}
var verified: SignalServiceProtos_Verified {
get {_storage._verified ?? SignalServiceProtos_Verified()}
set {_uniqueStorage()._verified = newValue}
}
/// Returns true if `verified` has been explicitly set.
var hasVerified: Bool {_storage._verified != nil}
/// Clears the value of `verified`. Subsequent reads from it will return its default value.
mutating func clearVerified() {_uniqueStorage()._verified = nil}
var configuration: SignalServiceProtos_SyncMessage.Configuration {
get {_storage._configuration ?? SignalServiceProtos_SyncMessage.Configuration()}
set {_uniqueStorage()._configuration = newValue}
}
/// Returns true if `configuration` has been explicitly set.
var hasConfiguration: Bool {_storage._configuration != nil}
/// Clears the value of `configuration`. Subsequent reads from it will return its default value.
mutating func clearConfiguration() {_uniqueStorage()._configuration = nil}
var padding: Data {
get {_storage._padding ?? Data()}
set {_uniqueStorage()._padding = newValue}
}
/// Returns true if `padding` has been explicitly set.
var hasPadding: Bool {_storage._padding != nil}
/// Clears the value of `padding`. Subsequent reads from it will return its default value.
mutating func clearPadding() {_uniqueStorage()._padding = nil}
var stickerPackOperation: [SignalServiceProtos_SyncMessage.StickerPackOperation] {
get {_storage._stickerPackOperation}
set {_uniqueStorage()._stickerPackOperation = newValue}
}
var viewOnceOpen: SignalServiceProtos_SyncMessage.ViewOnceOpen {
get {_storage._viewOnceOpen ?? SignalServiceProtos_SyncMessage.ViewOnceOpen()}
set {_uniqueStorage()._viewOnceOpen = newValue}
}
/// Returns true if `viewOnceOpen` has been explicitly set.
var hasViewOnceOpen: Bool {_storage._viewOnceOpen != nil}
/// Clears the value of `viewOnceOpen`. Subsequent reads from it will return its default value.
mutating func clearViewOnceOpen() {_uniqueStorage()._viewOnceOpen = nil}
var fetchLatest: SignalServiceProtos_SyncMessage.FetchLatest {
get {_storage._fetchLatest ?? SignalServiceProtos_SyncMessage.FetchLatest()}
set {_uniqueStorage()._fetchLatest = newValue}
}
/// Returns true if `fetchLatest` has been explicitly set.
var hasFetchLatest: Bool {_storage._fetchLatest != nil}
/// Clears the value of `fetchLatest`. Subsequent reads from it will return its default value.
mutating func clearFetchLatest() {_uniqueStorage()._fetchLatest = nil}
var keys: SignalServiceProtos_SyncMessage.Keys {
get {_storage._keys ?? SignalServiceProtos_SyncMessage.Keys()}
set {_uniqueStorage()._keys = newValue}
}
/// Returns true if `keys` has been explicitly set.
var hasKeys: Bool {_storage._keys != nil}
/// Clears the value of `keys`. Subsequent reads from it will return its default value.
mutating func clearKeys() {_uniqueStorage()._keys = nil}
var messageRequestResponse: SignalServiceProtos_SyncMessage.MessageRequestResponse {
get {_storage._messageRequestResponse ?? SignalServiceProtos_SyncMessage.MessageRequestResponse()}
set {_uniqueStorage()._messageRequestResponse = newValue}
}
/// Returns true if `messageRequestResponse` has been explicitly set.
var hasMessageRequestResponse: Bool {_storage._messageRequestResponse != nil}
/// Clears the value of `messageRequestResponse`. Subsequent reads from it will return its default value.
mutating func clearMessageRequestResponse() {_uniqueStorage()._messageRequestResponse = nil}
var outgoingPayment: SignalServiceProtos_SyncMessage.OutgoingPayment {
get {_storage._outgoingPayment ?? SignalServiceProtos_SyncMessage.OutgoingPayment()}
set {_uniqueStorage()._outgoingPayment = newValue}
}
/// Returns true if `outgoingPayment` has been explicitly set.
var hasOutgoingPayment: Bool {_storage._outgoingPayment != nil}
/// Clears the value of `outgoingPayment`. Subsequent reads from it will return its default value.
mutating func clearOutgoingPayment() {_uniqueStorage()._outgoingPayment = nil}
var viewed: [SignalServiceProtos_SyncMessage.Viewed] {
get {_storage._viewed}
set {_uniqueStorage()._viewed = newValue}
}
var pniChangeNumber: SignalServiceProtos_SyncMessage.PniChangeNumber {
get {_storage._pniChangeNumber ?? SignalServiceProtos_SyncMessage.PniChangeNumber()}
set {_uniqueStorage()._pniChangeNumber = newValue}
}
/// Returns true if `pniChangeNumber` has been explicitly set.
var hasPniChangeNumber: Bool {_storage._pniChangeNumber != nil}
/// Clears the value of `pniChangeNumber`. Subsequent reads from it will return its default value.
mutating func clearPniChangeNumber() {_uniqueStorage()._pniChangeNumber = nil}
var callEvent: SignalServiceProtos_SyncMessage.CallEvent {
get {_storage._callEvent ?? SignalServiceProtos_SyncMessage.CallEvent()}
set {_uniqueStorage()._callEvent = newValue}
}
/// Returns true if `callEvent` has been explicitly set.
var hasCallEvent: Bool {_storage._callEvent != nil}
/// Clears the value of `callEvent`. Subsequent reads from it will return its default value.
mutating func clearCallEvent() {_uniqueStorage()._callEvent = nil}
var callLinkUpdate: SignalServiceProtos_SyncMessage.CallLinkUpdate {
get {_storage._callLinkUpdate ?? SignalServiceProtos_SyncMessage.CallLinkUpdate()}
set {_uniqueStorage()._callLinkUpdate = newValue}
}
/// Returns true if `callLinkUpdate` has been explicitly set.
var hasCallLinkUpdate: Bool {_storage._callLinkUpdate != nil}
/// Clears the value of `callLinkUpdate`. Subsequent reads from it will return its default value.
mutating func clearCallLinkUpdate() {_uniqueStorage()._callLinkUpdate = nil}
var callLogEvent: SignalServiceProtos_SyncMessage.CallLogEvent {
get {_storage._callLogEvent ?? SignalServiceProtos_SyncMessage.CallLogEvent()}
set {_uniqueStorage()._callLogEvent = newValue}
}
/// Returns true if `callLogEvent` has been explicitly set.
var hasCallLogEvent: Bool {_storage._callLogEvent != nil}
/// Clears the value of `callLogEvent`. Subsequent reads from it will return its default value.
mutating func clearCallLogEvent() {_uniqueStorage()._callLogEvent = nil}
var deleteForMe: SignalServiceProtos_SyncMessage.DeleteForMe {
get {_storage._deleteForMe ?? SignalServiceProtos_SyncMessage.DeleteForMe()}
set {_uniqueStorage()._deleteForMe = newValue}
}
/// Returns true if `deleteForMe` has been explicitly set.
var hasDeleteForMe: Bool {_storage._deleteForMe != nil}
/// Clears the value of `deleteForMe`. Subsequent reads from it will return its default value.
mutating func clearDeleteForMe() {_uniqueStorage()._deleteForMe = nil}
var deviceNameChange: SignalServiceProtos_SyncMessage.DeviceNameChange {
get {_storage._deviceNameChange ?? SignalServiceProtos_SyncMessage.DeviceNameChange()}
set {_uniqueStorage()._deviceNameChange = newValue}
}
/// Returns true if `deviceNameChange` has been explicitly set.
var hasDeviceNameChange: Bool {_storage._deviceNameChange != nil}
/// Clears the value of `deviceNameChange`. Subsequent reads from it will return its default value.
mutating func clearDeviceNameChange() {_uniqueStorage()._deviceNameChange = nil}
var attachmentBackfillRequest: SignalServiceProtos_SyncMessage.AttachmentBackfillRequest {
get {_storage._attachmentBackfillRequest ?? SignalServiceProtos_SyncMessage.AttachmentBackfillRequest()}
set {_uniqueStorage()._attachmentBackfillRequest = newValue}
}
/// Returns true if `attachmentBackfillRequest` has been explicitly set.
var hasAttachmentBackfillRequest: Bool {_storage._attachmentBackfillRequest != nil}
/// Clears the value of `attachmentBackfillRequest`. Subsequent reads from it will return its default value.
mutating func clearAttachmentBackfillRequest() {_uniqueStorage()._attachmentBackfillRequest = nil}
var attachmentBackfillResponse: SignalServiceProtos_SyncMessage.AttachmentBackfillResponse {
get {_storage._attachmentBackfillResponse ?? SignalServiceProtos_SyncMessage.AttachmentBackfillResponse()}
set {_uniqueStorage()._attachmentBackfillResponse = newValue}
}
/// Returns true if `attachmentBackfillResponse` has been explicitly set.
var hasAttachmentBackfillResponse: Bool {_storage._attachmentBackfillResponse != nil}
/// Clears the value of `attachmentBackfillResponse`. Subsequent reads from it will return its default value.
mutating func clearAttachmentBackfillResponse() {_uniqueStorage()._attachmentBackfillResponse = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
struct Sent: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var destinationE164: String {
get {_destinationE164 ?? String()}
set {_destinationE164 = newValue}
}
/// Returns true if `destinationE164` has been explicitly set.
var hasDestinationE164: Bool {self._destinationE164 != nil}
/// Clears the value of `destinationE164`. Subsequent reads from it will return its default value.
mutating func clearDestinationE164() {self._destinationE164 = nil}
var destinationServiceID: String {
get {_destinationServiceID ?? String()}
set {_destinationServiceID = newValue}
}
/// Returns true if `destinationServiceID` has been explicitly set.
var hasDestinationServiceID: Bool {self._destinationServiceID != nil}
/// Clears the value of `destinationServiceID`. Subsequent reads from it will return its default value.
mutating func clearDestinationServiceID() {self._destinationServiceID = nil}
var timestamp: UInt64 {
get {_timestamp ?? 0}
set {_timestamp = newValue}
}
/// Returns true if `timestamp` has been explicitly set.
var hasTimestamp: Bool {self._timestamp != nil}
/// Clears the value of `timestamp`. Subsequent reads from it will return its default value.
mutating func clearTimestamp() {self._timestamp = nil}
var message: SignalServiceProtos_DataMessage {
get {_message ?? SignalServiceProtos_DataMessage()}
set {_message = newValue}
}
/// Returns true if `message` has been explicitly set.
var hasMessage: Bool {self._message != nil}
/// Clears the value of `message`. Subsequent reads from it will return its default value.
mutating func clearMessage() {self._message = nil}
var expirationStartTimestamp: UInt64 {
get {_expirationStartTimestamp ?? 0}
set {_expirationStartTimestamp = newValue}
}
/// Returns true if `expirationStartTimestamp` has been explicitly set.
var hasExpirationStartTimestamp: Bool {self._expirationStartTimestamp != nil}
/// Clears the value of `expirationStartTimestamp`. Subsequent reads from it will return its default value.
mutating func clearExpirationStartTimestamp() {self._expirationStartTimestamp = nil}
var unidentifiedStatus: [SignalServiceProtos_SyncMessage.Sent.UnidentifiedDeliveryStatus] = []
var isRecipientUpdate: Bool {
get {_isRecipientUpdate ?? false}
set {_isRecipientUpdate = newValue}
}
/// Returns true if `isRecipientUpdate` has been explicitly set.
var hasIsRecipientUpdate: Bool {self._isRecipientUpdate != nil}
/// Clears the value of `isRecipientUpdate`. Subsequent reads from it will return its default value.
mutating func clearIsRecipientUpdate() {self._isRecipientUpdate = nil}
var storyMessage: SignalServiceProtos_StoryMessage {
get {_storyMessage ?? SignalServiceProtos_StoryMessage()}
set {_storyMessage = newValue}
}
/// Returns true if `storyMessage` has been explicitly set.
var hasStoryMessage: Bool {self._storyMessage != nil}
/// Clears the value of `storyMessage`. Subsequent reads from it will return its default value.
mutating func clearStoryMessage() {self._storyMessage = nil}
var storyMessageRecipients: [SignalServiceProtos_SyncMessage.Sent.StoryMessageRecipient] = []
var editMessage: SignalServiceProtos_EditMessage {
get {_editMessage ?? SignalServiceProtos_EditMessage()}
set {_editMessage = newValue}
}
/// Returns true if `editMessage` has been explicitly set.
var hasEditMessage: Bool {self._editMessage != nil}
/// Clears the value of `editMessage`. Subsequent reads from it will return its default value.
mutating func clearEditMessage() {self._editMessage = nil}
/// service ID binary (i.e. 16 byte UUID for ACI, 1 byte prefix + 16 byte UUID for PNI)
var destinationServiceIDBinary: Data {
get {_destinationServiceIDBinary ?? Data()}
set {_destinationServiceIDBinary = newValue}
}
/// Returns true if `destinationServiceIDBinary` has been explicitly set.
var hasDestinationServiceIDBinary: Bool {self._destinationServiceIDBinary != nil}
/// Clears the value of `destinationServiceIDBinary`. Subsequent reads from it will return its default value.
mutating func clearDestinationServiceIDBinary() {self._destinationServiceIDBinary = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
struct UnidentifiedDeliveryStatus: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var destinationServiceID: String {
get {_destinationServiceID ?? String()}
set {_destinationServiceID = newValue}
}
/// Returns true if `destinationServiceID` has been explicitly set.
var hasDestinationServiceID: Bool {self._destinationServiceID != nil}
/// Clears the value of `destinationServiceID`. Subsequent reads from it will return its default value.
mutating func clearDestinationServiceID() {self._destinationServiceID = nil}
var unidentified: Bool {
get {_unidentified ?? false}
set {_unidentified = newValue}
}
/// Returns true if `unidentified` has been explicitly set.
var hasUnidentified: Bool {self._unidentified != nil}
/// Clears the value of `unidentified`. Subsequent reads from it will return its default value.
mutating func clearUnidentified() {self._unidentified = nil}
/// service ID binary (i.e. 16 byte UUID for ACI, 1 byte prefix + 16 byte UUID for PNI)
var destinationServiceIDBinary: Data {
get {_destinationServiceIDBinary ?? Data()}
set {_destinationServiceIDBinary = newValue}
}
/// Returns true if `destinationServiceIDBinary` has been explicitly set.
var hasDestinationServiceIDBinary: Bool {self._destinationServiceIDBinary != nil}
/// Clears the value of `destinationServiceIDBinary`. Subsequent reads from it will return its default value.
mutating func clearDestinationServiceIDBinary() {self._destinationServiceIDBinary = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _destinationServiceID: String? = nil
fileprivate var _unidentified: Bool? = nil
fileprivate var _destinationServiceIDBinary: Data? = nil
}
struct StoryMessageRecipient: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var destinationServiceID: String {
get {_destinationServiceID ?? String()}
set {_destinationServiceID = newValue}
}
/// Returns true if `destinationServiceID` has been explicitly set.
var hasDestinationServiceID: Bool {self._destinationServiceID != nil}
/// Clears the value of `destinationServiceID`. Subsequent reads from it will return its default value.
mutating func clearDestinationServiceID() {self._destinationServiceID = nil}
var distributionListIds: [String] = []
var isAllowedToReply: Bool {
get {_isAllowedToReply ?? false}
set {_isAllowedToReply = newValue}
}
/// Returns true if `isAllowedToReply` has been explicitly set.
var hasIsAllowedToReply: Bool {self._isAllowedToReply != nil}
/// Clears the value of `isAllowedToReply`. Subsequent reads from it will return its default value.
mutating func clearIsAllowedToReply() {self._isAllowedToReply = nil}
/// service ID binary (i.e. 16 byte UUID for ACI, 1 byte prefix + 16 byte UUID for PNI)
var destinationServiceIDBinary: Data {
get {_destinationServiceIDBinary ?? Data()}
set {_destinationServiceIDBinary = newValue}
}
/// Returns true if `destinationServiceIDBinary` has been explicitly set.
var hasDestinationServiceIDBinary: Bool {self._destinationServiceIDBinary != nil}
/// Clears the value of `destinationServiceIDBinary`. Subsequent reads from it will return its default value.
mutating func clearDestinationServiceIDBinary() {self._destinationServiceIDBinary = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _destinationServiceID: String? = nil
fileprivate var _isAllowedToReply: Bool? = nil
fileprivate var _destinationServiceIDBinary: Data? = nil
}
init() {}
fileprivate var _destinationE164: String? = nil
fileprivate var _destinationServiceID: String? = nil
fileprivate var _timestamp: UInt64? = nil
fileprivate var _message: SignalServiceProtos_DataMessage? = nil
fileprivate var _expirationStartTimestamp: UInt64? = nil
fileprivate var _isRecipientUpdate: Bool? = nil
fileprivate var _storyMessage: SignalServiceProtos_StoryMessage? = nil
fileprivate var _editMessage: SignalServiceProtos_EditMessage? = nil
fileprivate var _destinationServiceIDBinary: Data? = nil
}
struct Contacts: @unchecked Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// @required
var blob: SignalServiceProtos_AttachmentPointer {
get {_storage._blob ?? SignalServiceProtos_AttachmentPointer()}
set {_uniqueStorage()._blob = newValue}
}
/// Returns true if `blob` has been explicitly set.
var hasBlob: Bool {_storage._blob != nil}
/// Clears the value of `blob`. Subsequent reads from it will return its default value.
mutating func clearBlob() {_uniqueStorage()._blob = nil}
/// Signal-iOS renamed this property.
var isComplete: Bool {
get {_storage._isComplete ?? false}
set {_uniqueStorage()._isComplete = newValue}
}
/// Returns true if `isComplete` has been explicitly set.
var hasIsComplete: Bool {_storage._isComplete != nil}
/// Clears the value of `isComplete`. Subsequent reads from it will return its default value.
mutating func clearIsComplete() {_uniqueStorage()._isComplete = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
struct Blocked: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var numbers: [String] = []
var acis: [String] = []
var groupIds: [Data] = []
/// 16-byte UUID
var acisBinary: [Data] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct Request: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var type: SignalServiceProtos_SyncMessage.Request.TypeEnum {
get {_type ?? .unknown}
set {_type = newValue}
}
/// Returns true if `type` has been explicitly set.
var hasType: Bool {self._type != nil}
/// Clears the value of `type`. Subsequent reads from it will return its default value.
mutating func clearType() {self._type = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum TypeEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case unknown = 0
case contacts = 1
case blocked = 3
case configuration = 4
case keys = 5
init() {
self = .unknown
}
}
init() {}
fileprivate var _type: SignalServiceProtos_SyncMessage.Request.TypeEnum? = nil
}
struct Read: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var senderAci: String {
get {_senderAci ?? String()}
set {_senderAci = newValue}
}
/// Returns true if `senderAci` has been explicitly set.
var hasSenderAci: Bool {self._senderAci != nil}
/// Clears the value of `senderAci`. Subsequent reads from it will return its default value.
mutating func clearSenderAci() {self._senderAci = nil}
/// @required
var timestamp: UInt64 {
get {_timestamp ?? 0}
set {_timestamp = newValue}
}
/// Returns true if `timestamp` has been explicitly set.
var hasTimestamp: Bool {self._timestamp != nil}
/// Clears the value of `timestamp`. Subsequent reads from it will return its default value.
mutating func clearTimestamp() {self._timestamp = nil}
/// 16-byte UUID
var senderAciBinary: Data {
get {_senderAciBinary ?? Data()}
set {_senderAciBinary = newValue}
}
/// Returns true if `senderAciBinary` has been explicitly set.
var hasSenderAciBinary: Bool {self._senderAciBinary != nil}
/// Clears the value of `senderAciBinary`. Subsequent reads from it will return its default value.
mutating func clearSenderAciBinary() {self._senderAciBinary = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _senderAci: String? = nil
fileprivate var _timestamp: UInt64? = nil
fileprivate var _senderAciBinary: Data? = nil
}
struct Viewed: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var senderAci: String {
get {_senderAci ?? String()}
set {_senderAci = newValue}
}
/// Returns true if `senderAci` has been explicitly set.
var hasSenderAci: Bool {self._senderAci != nil}
/// Clears the value of `senderAci`. Subsequent reads from it will return its default value.
mutating func clearSenderAci() {self._senderAci = nil}
/// @required
var timestamp: UInt64 {
get {_timestamp ?? 0}
set {_timestamp = newValue}
}
/// Returns true if `timestamp` has been explicitly set.
var hasTimestamp: Bool {self._timestamp != nil}
/// Clears the value of `timestamp`. Subsequent reads from it will return its default value.
mutating func clearTimestamp() {self._timestamp = nil}
/// 16-byte UUID
var senderAciBinary: Data {
get {_senderAciBinary ?? Data()}
set {_senderAciBinary = newValue}
}
/// Returns true if `senderAciBinary` has been explicitly set.
var hasSenderAciBinary: Bool {self._senderAciBinary != nil}
/// Clears the value of `senderAciBinary`. Subsequent reads from it will return its default value.
mutating func clearSenderAciBinary() {self._senderAciBinary = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _senderAci: String? = nil
fileprivate var _timestamp: UInt64? = nil
fileprivate var _senderAciBinary: Data? = nil
}
struct Configuration: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var readReceipts: Bool {
get {_readReceipts ?? false}
set {_readReceipts = newValue}
}
/// Returns true if `readReceipts` has been explicitly set.
var hasReadReceipts: Bool {self._readReceipts != nil}
/// Clears the value of `readReceipts`. Subsequent reads from it will return its default value.
mutating func clearReadReceipts() {self._readReceipts = nil}
var unidentifiedDeliveryIndicators: Bool {
get {_unidentifiedDeliveryIndicators ?? false}
set {_unidentifiedDeliveryIndicators = newValue}
}
/// Returns true if `unidentifiedDeliveryIndicators` has been explicitly set.
var hasUnidentifiedDeliveryIndicators: Bool {self._unidentifiedDeliveryIndicators != nil}
/// Clears the value of `unidentifiedDeliveryIndicators`. Subsequent reads from it will return its default value.
mutating func clearUnidentifiedDeliveryIndicators() {self._unidentifiedDeliveryIndicators = nil}
var typingIndicators: Bool {
get {_typingIndicators ?? false}
set {_typingIndicators = newValue}
}
/// Returns true if `typingIndicators` has been explicitly set.
var hasTypingIndicators: Bool {self._typingIndicators != nil}
/// Clears the value of `typingIndicators`. Subsequent reads from it will return its default value.
mutating func clearTypingIndicators() {self._typingIndicators = nil}
var provisioningVersion: UInt32 {
get {_provisioningVersion ?? 0}
set {_provisioningVersion = newValue}
}
/// Returns true if `provisioningVersion` has been explicitly set.
var hasProvisioningVersion: Bool {self._provisioningVersion != nil}
/// Clears the value of `provisioningVersion`. Subsequent reads from it will return its default value.
mutating func clearProvisioningVersion() {self._provisioningVersion = nil}
var linkPreviews: Bool {
get {_linkPreviews ?? false}
set {_linkPreviews = newValue}
}
/// Returns true if `linkPreviews` has been explicitly set.
var hasLinkPreviews: Bool {self._linkPreviews != nil}
/// Clears the value of `linkPreviews`. Subsequent reads from it will return its default value.
mutating func clearLinkPreviews() {self._linkPreviews = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _readReceipts: Bool? = nil
fileprivate var _unidentifiedDeliveryIndicators: Bool? = nil
fileprivate var _typingIndicators: Bool? = nil
fileprivate var _provisioningVersion: UInt32? = nil
fileprivate var _linkPreviews: Bool? = nil
}
struct StickerPackOperation: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// @required
var packID: Data {
get {_packID ?? Data()}
set {_packID = newValue}
}
/// Returns true if `packID` has been explicitly set.
var hasPackID: Bool {self._packID != nil}
/// Clears the value of `packID`. Subsequent reads from it will return its default value.
mutating func clearPackID() {self._packID = nil}
/// @required
var packKey: Data {
get {_packKey ?? Data()}
set {_packKey = newValue}
}
/// Returns true if `packKey` has been explicitly set.
var hasPackKey: Bool {self._packKey != nil}
/// Clears the value of `packKey`. Subsequent reads from it will return its default value.
mutating func clearPackKey() {self._packKey = nil}
var type: SignalServiceProtos_SyncMessage.StickerPackOperation.TypeEnum {
get {_type ?? .install}
set {_type = newValue}
}
/// Returns true if `type` has been explicitly set.
var hasType: Bool {self._type != nil}
/// Clears the value of `type`. Subsequent reads from it will return its default value.
mutating func clearType() {self._type = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum TypeEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case install = 0
case remove = 1
init() {
self = .install
}
}
init() {}
fileprivate var _packID: Data? = nil
fileprivate var _packKey: Data? = nil
fileprivate var _type: SignalServiceProtos_SyncMessage.StickerPackOperation.TypeEnum? = nil
}
struct ViewOnceOpen: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var senderAci: String {
get {_senderAci ?? String()}
set {_senderAci = newValue}
}
/// Returns true if `senderAci` has been explicitly set.
var hasSenderAci: Bool {self._senderAci != nil}
/// Clears the value of `senderAci`. Subsequent reads from it will return its default value.
mutating func clearSenderAci() {self._senderAci = nil}
/// @required
var timestamp: UInt64 {
get {_timestamp ?? 0}
set {_timestamp = newValue}
}
/// Returns true if `timestamp` has been explicitly set.
var hasTimestamp: Bool {self._timestamp != nil}
/// Clears the value of `timestamp`. Subsequent reads from it will return its default value.
mutating func clearTimestamp() {self._timestamp = nil}
/// 16-byte UUID
var senderAciBinary: Data {
get {_senderAciBinary ?? Data()}
set {_senderAciBinary = newValue}
}
/// Returns true if `senderAciBinary` has been explicitly set.
var hasSenderAciBinary: Bool {self._senderAciBinary != nil}
/// Clears the value of `senderAciBinary`. Subsequent reads from it will return its default value.
mutating func clearSenderAciBinary() {self._senderAciBinary = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _senderAci: String? = nil
fileprivate var _timestamp: UInt64? = nil
fileprivate var _senderAciBinary: Data? = nil
}
struct FetchLatest: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var type: SignalServiceProtos_SyncMessage.FetchLatest.TypeEnum {
get {_type ?? .unknown}
set {_type = newValue}
}
/// Returns true if `type` has been explicitly set.
var hasType: Bool {self._type != nil}
/// Clears the value of `type`. Subsequent reads from it will return its default value.
mutating func clearType() {self._type = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum TypeEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case unknown = 0
case localProfile = 1
case storageManifest = 2
case subscriptionStatus = 3
init() {
self = .unknown
}
}
init() {}
fileprivate var _type: SignalServiceProtos_SyncMessage.FetchLatest.TypeEnum? = nil
}
struct Keys: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var master: Data {
get {_master ?? Data()}
set {_master = newValue}
}
/// Returns true if `master` has been explicitly set.
var hasMaster: Bool {self._master != nil}
/// Clears the value of `master`. Subsequent reads from it will return its default value.
mutating func clearMaster() {self._master = nil}
var accountEntropyPool: String {
get {_accountEntropyPool ?? String()}
set {_accountEntropyPool = newValue}
}
/// Returns true if `accountEntropyPool` has been explicitly set.
var hasAccountEntropyPool: Bool {self._accountEntropyPool != nil}
/// Clears the value of `accountEntropyPool`. Subsequent reads from it will return its default value.
mutating func clearAccountEntropyPool() {self._accountEntropyPool = nil}
var mediaRootBackupKey: Data {
get {_mediaRootBackupKey ?? Data()}
set {_mediaRootBackupKey = newValue}
}
/// Returns true if `mediaRootBackupKey` has been explicitly set.
var hasMediaRootBackupKey: Bool {self._mediaRootBackupKey != nil}
/// Clears the value of `mediaRootBackupKey`. Subsequent reads from it will return its default value.
mutating func clearMediaRootBackupKey() {self._mediaRootBackupKey = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _master: Data? = nil
fileprivate var _accountEntropyPool: String? = nil
fileprivate var _mediaRootBackupKey: Data? = nil
}
struct MessageRequestResponse: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var threadAci: String {
get {_threadAci ?? String()}
set {_threadAci = newValue}
}
/// Returns true if `threadAci` has been explicitly set.
var hasThreadAci: Bool {self._threadAci != nil}
/// Clears the value of `threadAci`. Subsequent reads from it will return its default value.
mutating func clearThreadAci() {self._threadAci = nil}
var groupID: Data {
get {_groupID ?? Data()}
set {_groupID = newValue}
}
/// Returns true if `groupID` has been explicitly set.
var hasGroupID: Bool {self._groupID != nil}
/// Clears the value of `groupID`. Subsequent reads from it will return its default value.
mutating func clearGroupID() {self._groupID = nil}
var type: SignalServiceProtos_SyncMessage.MessageRequestResponse.TypeEnum {
get {_type ?? .unknown}
set {_type = newValue}
}
/// Returns true if `type` has been explicitly set.
var hasType: Bool {self._type != nil}
/// Clears the value of `type`. Subsequent reads from it will return its default value.
mutating func clearType() {self._type = nil}
/// 16-byte UUID
var threadAciBinary: Data {
get {_threadAciBinary ?? Data()}
set {_threadAciBinary = newValue}
}
/// Returns true if `threadAciBinary` has been explicitly set.
var hasThreadAciBinary: Bool {self._threadAciBinary != nil}
/// Clears the value of `threadAciBinary`. Subsequent reads from it will return its default value.
mutating func clearThreadAciBinary() {self._threadAciBinary = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum TypeEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case unknown = 0
case accept = 1
case delete = 2
case block = 3
case blockAndDelete = 4
case spam = 5
case blockAndSpam = 6
init() {
self = .unknown
}
}
init() {}
fileprivate var _threadAci: String? = nil
fileprivate var _groupID: Data? = nil
fileprivate var _type: SignalServiceProtos_SyncMessage.MessageRequestResponse.TypeEnum? = nil
fileprivate var _threadAciBinary: Data? = nil
}
struct OutgoingPayment: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var recipientServiceID: String {
get {_recipientServiceID ?? String()}
set {_recipientServiceID = newValue}
}
/// Returns true if `recipientServiceID` has been explicitly set.
var hasRecipientServiceID: Bool {self._recipientServiceID != nil}
/// Clears the value of `recipientServiceID`. Subsequent reads from it will return its default value.
mutating func clearRecipientServiceID() {self._recipientServiceID = nil}
var note: String {
get {_note ?? String()}
set {_note = newValue}
}
/// Returns true if `note` has been explicitly set.
var hasNote: Bool {self._note != nil}
/// Clears the value of `note`. Subsequent reads from it will return its default value.
mutating func clearNote() {self._note = nil}
/// oneof attachment_identifier {
var mobileCoin: SignalServiceProtos_SyncMessage.OutgoingPayment.MobileCoin {
get {_mobileCoin ?? SignalServiceProtos_SyncMessage.OutgoingPayment.MobileCoin()}
set {_mobileCoin = newValue}
}
/// Returns true if `mobileCoin` has been explicitly set.
var hasMobileCoin: Bool {self._mobileCoin != nil}
/// Clears the value of `mobileCoin`. Subsequent reads from it will return its default value.
mutating func clearMobileCoin() {self._mobileCoin = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
struct MobileCoin: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var recipientAddress: Data {
get {_recipientAddress ?? Data()}
set {_recipientAddress = newValue}
}
/// Returns true if `recipientAddress` has been explicitly set.
var hasRecipientAddress: Bool {self._recipientAddress != nil}
/// Clears the value of `recipientAddress`. Subsequent reads from it will return its default value.
mutating func clearRecipientAddress() {self._recipientAddress = nil}
/// @required
var amountPicoMob: UInt64 {
get {_amountPicoMob ?? 0}
set {_amountPicoMob = newValue}
}
/// Returns true if `amountPicoMob` has been explicitly set.
var hasAmountPicoMob: Bool {self._amountPicoMob != nil}
/// Clears the value of `amountPicoMob`. Subsequent reads from it will return its default value.
mutating func clearAmountPicoMob() {self._amountPicoMob = nil}
/// @required
var feePicoMob: UInt64 {
get {_feePicoMob ?? 0}
set {_feePicoMob = newValue}
}
/// Returns true if `feePicoMob` has been explicitly set.
var hasFeePicoMob: Bool {self._feePicoMob != nil}
/// Clears the value of `feePicoMob`. Subsequent reads from it will return its default value.
mutating func clearFeePicoMob() {self._feePicoMob = nil}
var receipt: Data {
get {_receipt ?? Data()}
set {_receipt = newValue}
}
/// Returns true if `receipt` has been explicitly set.
var hasReceipt: Bool {self._receipt != nil}
/// Clears the value of `receipt`. Subsequent reads from it will return its default value.
mutating func clearReceipt() {self._receipt = nil}
var ledgerBlockTimestamp: UInt64 {
get {_ledgerBlockTimestamp ?? 0}
set {_ledgerBlockTimestamp = newValue}
}
/// Returns true if `ledgerBlockTimestamp` has been explicitly set.
var hasLedgerBlockTimestamp: Bool {self._ledgerBlockTimestamp != nil}
/// Clears the value of `ledgerBlockTimestamp`. Subsequent reads from it will return its default value.
mutating func clearLedgerBlockTimestamp() {self._ledgerBlockTimestamp = nil}
/// @required
var ledgerBlockIndex: UInt64 {
get {_ledgerBlockIndex ?? 0}
set {_ledgerBlockIndex = newValue}
}
/// Returns true if `ledgerBlockIndex` has been explicitly set.
var hasLedgerBlockIndex: Bool {self._ledgerBlockIndex != nil}
/// Clears the value of `ledgerBlockIndex`. Subsequent reads from it will return its default value.
mutating func clearLedgerBlockIndex() {self._ledgerBlockIndex = nil}
var spentKeyImages: [Data] = []
var outputPublicKeys: [Data] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _recipientAddress: Data? = nil
fileprivate var _amountPicoMob: UInt64? = nil
fileprivate var _feePicoMob: UInt64? = nil
fileprivate var _receipt: Data? = nil
fileprivate var _ledgerBlockTimestamp: UInt64? = nil
fileprivate var _ledgerBlockIndex: UInt64? = nil
}
init() {}
fileprivate var _recipientServiceID: String? = nil
fileprivate var _note: String? = nil
fileprivate var _mobileCoin: SignalServiceProtos_SyncMessage.OutgoingPayment.MobileCoin? = nil
}
struct PniChangeNumber: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// Serialized libsignal-client IdentityKeyPair
var identityKeyPair: Data {
get {_identityKeyPair ?? Data()}
set {_identityKeyPair = newValue}
}
/// Returns true if `identityKeyPair` has been explicitly set.
var hasIdentityKeyPair: Bool {self._identityKeyPair != nil}
/// Clears the value of `identityKeyPair`. Subsequent reads from it will return its default value.
mutating func clearIdentityKeyPair() {self._identityKeyPair = nil}
/// Serialized libsignal-client SignedPreKeyRecord
var signedPreKey: Data {
get {_signedPreKey ?? Data()}
set {_signedPreKey = newValue}
}
/// Returns true if `signedPreKey` has been explicitly set.
var hasSignedPreKey: Bool {self._signedPreKey != nil}
/// Clears the value of `signedPreKey`. Subsequent reads from it will return its default value.
mutating func clearSignedPreKey() {self._signedPreKey = nil}
/// Serialized libsignal-client KyberPreKeyRecord
var lastResortKyberPreKey: Data {
get {_lastResortKyberPreKey ?? Data()}
set {_lastResortKyberPreKey = newValue}
}
/// Returns true if `lastResortKyberPreKey` has been explicitly set.
var hasLastResortKyberPreKey: Bool {self._lastResortKyberPreKey != nil}
/// Clears the value of `lastResortKyberPreKey`. Subsequent reads from it will return its default value.
mutating func clearLastResortKyberPreKey() {self._lastResortKyberPreKey = nil}
var registrationID: UInt32 {
get {_registrationID ?? 0}
set {_registrationID = newValue}
}
/// Returns true if `registrationID` has been explicitly set.
var hasRegistrationID: Bool {self._registrationID != nil}
/// Clears the value of `registrationID`. Subsequent reads from it will return its default value.
mutating func clearRegistrationID() {self._registrationID = nil}
var newE164: String {
get {_newE164 ?? String()}
set {_newE164 = newValue}
}
/// Returns true if `newE164` has been explicitly set.
var hasNewE164: Bool {self._newE164 != nil}
/// Clears the value of `newE164`. Subsequent reads from it will return its default value.
mutating func clearNewE164() {self._newE164 = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _identityKeyPair: Data? = nil
fileprivate var _signedPreKey: Data? = nil
fileprivate var _lastResortKyberPreKey: Data? = nil
fileprivate var _registrationID: UInt32? = nil
fileprivate var _newE164: String? = nil
}
struct CallEvent: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// Data identifying a conversation. The service ID for 1:1, the group ID for
/// group, or the room ID for an ad-hoc call. See also
/// `CallLogEvent/conversationId`.
var conversationID: Data {
get {_conversationID ?? Data()}
set {_conversationID = newValue}
}
/// Returns true if `conversationID` has been explicitly set.
var hasConversationID: Bool {self._conversationID != nil}
/// Clears the value of `conversationID`. Subsequent reads from it will return its default value.
mutating func clearConversationID() {self._conversationID = nil}
/// An identifier for a call. Generated directly for 1:1, or derived from
/// the era ID for group and ad-hoc calls. See also `CallLogEvent/callId`.
var callID: UInt64 {
get {_callID ?? 0}
set {_callID = newValue}
}
/// Returns true if `callID` has been explicitly set.
var hasCallID: Bool {self._callID != nil}
/// Clears the value of `callID`. Subsequent reads from it will return its default value.
mutating func clearCallID() {self._callID = nil}
var timestamp: UInt64 {
get {_timestamp ?? 0}
set {_timestamp = newValue}
}
/// Returns true if `timestamp` has been explicitly set.
var hasTimestamp: Bool {self._timestamp != nil}
/// Clears the value of `timestamp`. Subsequent reads from it will return its default value.
mutating func clearTimestamp() {self._timestamp = nil}
var type: SignalServiceProtos_SyncMessage.CallEvent.TypeEnum {
get {_type ?? .unknownType}
set {_type = newValue}
}
/// Returns true if `type` has been explicitly set.
var hasType: Bool {self._type != nil}
/// Clears the value of `type`. Subsequent reads from it will return its default value.
mutating func clearType() {self._type = nil}
var direction: SignalServiceProtos_SyncMessage.CallEvent.Direction {
get {_direction ?? .unknownDirection}
set {_direction = newValue}
}
/// Returns true if `direction` has been explicitly set.
var hasDirection: Bool {self._direction != nil}
/// Clears the value of `direction`. Subsequent reads from it will return its default value.
mutating func clearDirection() {self._direction = nil}
var event: SignalServiceProtos_SyncMessage.CallEvent.Event {
get {_event ?? .unknownAction}
set {_event = newValue}
}
/// Returns true if `event` has been explicitly set.
var hasEvent: Bool {self._event != nil}
/// Clears the value of `event`. Subsequent reads from it will return its default value.
mutating func clearEvent() {self._event = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum TypeEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case unknownType = 0
case audioCall = 1
case videoCall = 2
case groupCall = 3
case adHocCall = 4
init() {
self = .unknownType
}
}
enum Direction: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case unknownDirection = 0
case incoming = 1
case outgoing = 2
init() {
self = .unknownDirection
}
}
enum Event: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case unknownAction = 0
case accepted = 1
case notAccepted = 2
case deleted = 3
case observed = 4
init() {
self = .unknownAction
}
}
init() {}
fileprivate var _conversationID: Data? = nil
fileprivate var _callID: UInt64? = nil
fileprivate var _timestamp: UInt64? = nil
fileprivate var _type: SignalServiceProtos_SyncMessage.CallEvent.TypeEnum? = nil
fileprivate var _direction: SignalServiceProtos_SyncMessage.CallEvent.Direction? = nil
fileprivate var _event: SignalServiceProtos_SyncMessage.CallEvent.Event? = nil
}
struct CallLinkUpdate: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var rootKey: Data {
get {_rootKey ?? Data()}
set {_rootKey = newValue}
}
/// Returns true if `rootKey` has been explicitly set.
var hasRootKey: Bool {self._rootKey != nil}
/// Clears the value of `rootKey`. Subsequent reads from it will return its default value.
mutating func clearRootKey() {self._rootKey = nil}
var adminPasskey: Data {
get {_adminPasskey ?? Data()}
set {_adminPasskey = newValue}
}
/// Returns true if `adminPasskey` has been explicitly set.
var hasAdminPasskey: Bool {self._adminPasskey != nil}
/// Clears the value of `adminPasskey`. Subsequent reads from it will return its default value.
mutating func clearAdminPasskey() {self._adminPasskey = nil}
/// defaults to UPDATE
var type: SignalServiceProtos_SyncMessage.CallLinkUpdate.TypeEnum {
get {_type ?? .update}
set {_type = newValue}
}
/// Returns true if `type` has been explicitly set.
var hasType: Bool {self._type != nil}
/// Clears the value of `type`. Subsequent reads from it will return its default value.
mutating func clearType() {self._type = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum TypeEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case update = 0
init() {
self = .update
}
}
init() {}
fileprivate var _rootKey: Data? = nil
fileprivate var _adminPasskey: Data? = nil
fileprivate var _type: SignalServiceProtos_SyncMessage.CallLinkUpdate.TypeEnum? = nil
}
struct CallLogEvent: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var type: SignalServiceProtos_SyncMessage.CallLogEvent.TypeEnum {
get {_type ?? .cleared}
set {_type = newValue}
}
/// Returns true if `type` has been explicitly set.
var hasType: Bool {self._type != nil}
/// Clears the value of `type`. Subsequent reads from it will return its default value.
mutating func clearType() {self._type = nil}
var timestamp: UInt64 {
get {_timestamp ?? 0}
set {_timestamp = newValue}
}
/// Returns true if `timestamp` has been explicitly set.
var hasTimestamp: Bool {self._timestamp != nil}
/// Clears the value of `timestamp`. Subsequent reads from it will return its default value.
mutating func clearTimestamp() {self._timestamp = nil}
/// Data identifying a conversation. The service ID for 1:1, the group ID for
/// group, or the room ID for an ad-hoc call. See also
/// `CallEvent/conversationId`.
var conversationID: Data {
get {_conversationID ?? Data()}
set {_conversationID = newValue}
}
/// Returns true if `conversationID` has been explicitly set.
var hasConversationID: Bool {self._conversationID != nil}
/// Clears the value of `conversationID`. Subsequent reads from it will return its default value.
mutating func clearConversationID() {self._conversationID = nil}
/// An identifier for a call. Generated directly for 1:1, or derived from
/// the era ID for group and ad-hoc calls. See also `CallEvent/callId`.
var callID: UInt64 {
get {_callID ?? 0}
set {_callID = newValue}
}
/// Returns true if `callID` has been explicitly set.
var hasCallID: Bool {self._callID != nil}
/// Clears the value of `callID`. Subsequent reads from it will return its default value.
mutating func clearCallID() {self._callID = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum TypeEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case cleared = 0
case markedAsRead = 1
case markedAsReadInConversation = 2
init() {
self = .cleared
}
}
init() {}
fileprivate var _type: SignalServiceProtos_SyncMessage.CallLogEvent.TypeEnum? = nil
fileprivate var _timestamp: UInt64? = nil
fileprivate var _conversationID: Data? = nil
fileprivate var _callID: UInt64? = nil
}
struct DeleteForMe: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var messageDeletes: [SignalServiceProtos_SyncMessage.DeleteForMe.MessageDeletes] = []
var conversationDeletes: [SignalServiceProtos_SyncMessage.DeleteForMe.ConversationDelete] = []
var localOnlyConversationDeletes: [SignalServiceProtos_SyncMessage.DeleteForMe.LocalOnlyConversationDelete] = []
var attachmentDeletes: [SignalServiceProtos_SyncMessage.DeleteForMe.AttachmentDelete] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
struct MessageDeletes: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var conversation: SignalServiceProtos_ConversationIdentifier {
get {_conversation ?? SignalServiceProtos_ConversationIdentifier()}
set {_conversation = newValue}
}
/// Returns true if `conversation` has been explicitly set.
var hasConversation: Bool {self._conversation != nil}
/// Clears the value of `conversation`. Subsequent reads from it will return its default value.
mutating func clearConversation() {self._conversation = nil}
var messages: [SignalServiceProtos_AddressableMessage] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _conversation: SignalServiceProtos_ConversationIdentifier? = nil
}
struct AttachmentDelete: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var conversation: SignalServiceProtos_ConversationIdentifier {
get {_conversation ?? SignalServiceProtos_ConversationIdentifier()}
set {_conversation = newValue}
}
/// Returns true if `conversation` has been explicitly set.
var hasConversation: Bool {self._conversation != nil}
/// Clears the value of `conversation`. Subsequent reads from it will return its default value.
mutating func clearConversation() {self._conversation = nil}
var targetMessage: SignalServiceProtos_AddressableMessage {
get {_targetMessage ?? SignalServiceProtos_AddressableMessage()}
set {_targetMessage = newValue}
}
/// Returns true if `targetMessage` has been explicitly set.
var hasTargetMessage: Bool {self._targetMessage != nil}
/// Clears the value of `targetMessage`. Subsequent reads from it will return its default value.
mutating func clearTargetMessage() {self._targetMessage = nil}
/// The `clientUuid` from `AttachmentPointer`.
var clientUuid: Data {
get {_clientUuid ?? Data()}
set {_clientUuid = newValue}
}
/// Returns true if `clientUuid` has been explicitly set.
var hasClientUuid: Bool {self._clientUuid != nil}
/// Clears the value of `clientUuid`. Subsequent reads from it will return its default value.
mutating func clearClientUuid() {self._clientUuid = nil}
/// SHA256 hash of the (encrypted, padded, etc.) attachment blob on the CDN.
var fallbackDigest: Data {
get {_fallbackDigest ?? Data()}
set {_fallbackDigest = newValue}
}
/// Returns true if `fallbackDigest` has been explicitly set.
var hasFallbackDigest: Bool {self._fallbackDigest != nil}
/// Clears the value of `fallbackDigest`. Subsequent reads from it will return its default value.
mutating func clearFallbackDigest() {self._fallbackDigest = nil}
/// SHA256 hash of the plaintext content of the attachment.
var fallbackPlaintextHash: Data {
get {_fallbackPlaintextHash ?? Data()}
set {_fallbackPlaintextHash = newValue}
}
/// Returns true if `fallbackPlaintextHash` has been explicitly set.
var hasFallbackPlaintextHash: Bool {self._fallbackPlaintextHash != nil}
/// Clears the value of `fallbackPlaintextHash`. Subsequent reads from it will return its default value.
mutating func clearFallbackPlaintextHash() {self._fallbackPlaintextHash = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _conversation: SignalServiceProtos_ConversationIdentifier? = nil
fileprivate var _targetMessage: SignalServiceProtos_AddressableMessage? = nil
fileprivate var _clientUuid: Data? = nil
fileprivate var _fallbackDigest: Data? = nil
fileprivate var _fallbackPlaintextHash: Data? = nil
}
struct ConversationDelete: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var conversation: SignalServiceProtos_ConversationIdentifier {
get {_conversation ?? SignalServiceProtos_ConversationIdentifier()}
set {_conversation = newValue}
}
/// Returns true if `conversation` has been explicitly set.
var hasConversation: Bool {self._conversation != nil}
/// Clears the value of `conversation`. Subsequent reads from it will return its default value.
mutating func clearConversation() {self._conversation = nil}
var mostRecentMessages: [SignalServiceProtos_AddressableMessage] = []
var mostRecentNonExpiringMessages: [SignalServiceProtos_AddressableMessage] = []
var isFullDelete: Bool {
get {_isFullDelete ?? false}
set {_isFullDelete = newValue}
}
/// Returns true if `isFullDelete` has been explicitly set.
var hasIsFullDelete: Bool {self._isFullDelete != nil}
/// Clears the value of `isFullDelete`. Subsequent reads from it will return its default value.
mutating func clearIsFullDelete() {self._isFullDelete = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _conversation: SignalServiceProtos_ConversationIdentifier? = nil
fileprivate var _isFullDelete: Bool? = nil
}
struct LocalOnlyConversationDelete: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var conversation: SignalServiceProtos_ConversationIdentifier {
get {_conversation ?? SignalServiceProtos_ConversationIdentifier()}
set {_conversation = newValue}
}
/// Returns true if `conversation` has been explicitly set.
var hasConversation: Bool {self._conversation != nil}
/// Clears the value of `conversation`. Subsequent reads from it will return its default value.
mutating func clearConversation() {self._conversation = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _conversation: SignalServiceProtos_ConversationIdentifier? = nil
}
init() {}
}
struct DeviceNameChange: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var deviceID: UInt32 {
get {_deviceID ?? 0}
set {_deviceID = newValue}
}
/// Returns true if `deviceID` has been explicitly set.
var hasDeviceID: Bool {self._deviceID != nil}
/// Clears the value of `deviceID`. Subsequent reads from it will return its default value.
mutating func clearDeviceID() {self._deviceID = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _deviceID: UInt32? = nil
}
struct AttachmentBackfillRequest: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var targetMessage: SignalServiceProtos_AddressableMessage {
get {_targetMessage ?? SignalServiceProtos_AddressableMessage()}
set {_targetMessage = newValue}
}
/// Returns true if `targetMessage` has been explicitly set.
var hasTargetMessage: Bool {self._targetMessage != nil}
/// Clears the value of `targetMessage`. Subsequent reads from it will return its default value.
mutating func clearTargetMessage() {self._targetMessage = nil}
var targetConversation: SignalServiceProtos_ConversationIdentifier {
get {_targetConversation ?? SignalServiceProtos_ConversationIdentifier()}
set {_targetConversation = newValue}
}
/// Returns true if `targetConversation` has been explicitly set.
var hasTargetConversation: Bool {self._targetConversation != nil}
/// Clears the value of `targetConversation`. Subsequent reads from it will return its default value.
mutating func clearTargetConversation() {self._targetConversation = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _targetMessage: SignalServiceProtos_AddressableMessage? = nil
fileprivate var _targetConversation: SignalServiceProtos_ConversationIdentifier? = nil
}
struct AttachmentBackfillResponse: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var targetMessage: SignalServiceProtos_AddressableMessage {
get {_targetMessage ?? SignalServiceProtos_AddressableMessage()}
set {_targetMessage = newValue}
}
/// Returns true if `targetMessage` has been explicitly set.
var hasTargetMessage: Bool {self._targetMessage != nil}
/// Clears the value of `targetMessage`. Subsequent reads from it will return its default value.
mutating func clearTargetMessage() {self._targetMessage = nil}
var targetConversation: SignalServiceProtos_ConversationIdentifier {
get {_targetConversation ?? SignalServiceProtos_ConversationIdentifier()}
set {_targetConversation = newValue}
}
/// Returns true if `targetConversation` has been explicitly set.
var hasTargetConversation: Bool {self._targetConversation != nil}
/// Clears the value of `targetConversation`. Subsequent reads from it will return its default value.
mutating func clearTargetConversation() {self._targetConversation = nil}
/// oneof commented out because swift generated
/// enum with associated values can't be converted
/// to objc representation
///
/// oneof data {
var attachments: SignalServiceProtos_SyncMessage.AttachmentBackfillResponse.AttachmentDataList {
get {_attachments ?? SignalServiceProtos_SyncMessage.AttachmentBackfillResponse.AttachmentDataList()}
set {_attachments = newValue}
}
/// Returns true if `attachments` has been explicitly set.
var hasAttachments: Bool {self._attachments != nil}
/// Clears the value of `attachments`. Subsequent reads from it will return its default value.
mutating func clearAttachments() {self._attachments = nil}
/// }
var error: SignalServiceProtos_SyncMessage.AttachmentBackfillResponse.Error {
get {_error ?? .messageNotFound}
set {_error = newValue}
}
/// Returns true if `error` has been explicitly set.
var hasError: Bool {self._error != nil}
/// Clears the value of `error`. Subsequent reads from it will return its default value.
mutating func clearError() {self._error = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum Error: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case messageNotFound = 0
init() {
self = .messageNotFound
}
}
struct AttachmentData: @unchecked Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// oneof commented out because swift generated
/// enum with associated values can't be converted
/// to objc representation
///
/// oneof data {
var attachment: SignalServiceProtos_AttachmentPointer {
get {_storage._attachment ?? SignalServiceProtos_AttachmentPointer()}
set {_uniqueStorage()._attachment = newValue}
}
/// Returns true if `attachment` has been explicitly set.
var hasAttachment: Bool {_storage._attachment != nil}
/// Clears the value of `attachment`. Subsequent reads from it will return its default value.
mutating func clearAttachment() {_uniqueStorage()._attachment = nil}
/// }
var status: SignalServiceProtos_SyncMessage.AttachmentBackfillResponse.AttachmentData.Status {
get {_storage._status ?? .pending}
set {_uniqueStorage()._status = newValue}
}
/// Returns true if `status` has been explicitly set.
var hasStatus: Bool {_storage._status != nil}
/// Clears the value of `status`. Subsequent reads from it will return its default value.
mutating func clearStatus() {_uniqueStorage()._status = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum Status: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case pending = 0
case terminalError = 1
init() {
self = .pending
}
}
init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
struct AttachmentDataList: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var attachments: [SignalServiceProtos_SyncMessage.AttachmentBackfillResponse.AttachmentData] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
init() {}
fileprivate var _targetMessage: SignalServiceProtos_AddressableMessage? = nil
fileprivate var _targetConversation: SignalServiceProtos_ConversationIdentifier? = nil
fileprivate var _attachments: SignalServiceProtos_SyncMessage.AttachmentBackfillResponse.AttachmentDataList? = nil
fileprivate var _error: SignalServiceProtos_SyncMessage.AttachmentBackfillResponse.Error? = nil
}
init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
struct SignalServiceProtos_AttachmentPointer: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// oneof commented out because swift generated
/// enum with associated values can't be converted
/// to objc representation
///
/// oneof attachment_identifier {
var cdnID: UInt64 {
get {_cdnID ?? 0}
set {_cdnID = newValue}
}
/// Returns true if `cdnID` has been explicitly set.
var hasCdnID: Bool {self._cdnID != nil}
/// Clears the value of `cdnID`. Subsequent reads from it will return its default value.
mutating func clearCdnID() {self._cdnID = nil}
/// }
var cdnKey: String {
get {_cdnKey ?? String()}
set {_cdnKey = newValue}
}
/// Returns true if `cdnKey` has been explicitly set.
var hasCdnKey: Bool {self._cdnKey != nil}
/// Clears the value of `cdnKey`. Subsequent reads from it will return its default value.
mutating func clearCdnKey() {self._cdnKey = nil}
/// Cross-client identifier for this attachment among all attachments on the
/// owning message.
var clientUuid: Data {
get {_clientUuid ?? Data()}
set {_clientUuid = newValue}
}
/// Returns true if `clientUuid` has been explicitly set.
var hasClientUuid: Bool {self._clientUuid != nil}
/// Clears the value of `clientUuid`. Subsequent reads from it will return its default value.
mutating func clearClientUuid() {self._clientUuid = nil}
var contentType: String {
get {_contentType ?? String()}
set {_contentType = newValue}
}
/// Returns true if `contentType` has been explicitly set.
var hasContentType: Bool {self._contentType != nil}
/// Clears the value of `contentType`. Subsequent reads from it will return its default value.
mutating func clearContentType() {self._contentType = nil}
var key: Data {
get {_key ?? Data()}
set {_key = newValue}
}
/// Returns true if `key` has been explicitly set.
var hasKey: Bool {self._key != nil}
/// Clears the value of `key`. Subsequent reads from it will return its default value.
mutating func clearKey() {self._key = nil}
var size: UInt32 {
get {_size ?? 0}
set {_size = newValue}
}
/// Returns true if `size` has been explicitly set.
var hasSize: Bool {self._size != nil}
/// Clears the value of `size`. Subsequent reads from it will return its default value.
mutating func clearSize() {self._size = nil}
var thumbnail: Data {
get {_thumbnail ?? Data()}
set {_thumbnail = newValue}
}
/// Returns true if `thumbnail` has been explicitly set.
var hasThumbnail: Bool {self._thumbnail != nil}
/// Clears the value of `thumbnail`. Subsequent reads from it will return its default value.
mutating func clearThumbnail() {self._thumbnail = nil}
var digest: Data {
get {_digest ?? Data()}
set {_digest = newValue}
}
/// Returns true if `digest` has been explicitly set.
var hasDigest: Bool {self._digest != nil}
/// Clears the value of `digest`. Subsequent reads from it will return its default value.
mutating func clearDigest() {self._digest = nil}
var fileName: String {
get {_fileName ?? String()}
set {_fileName = newValue}
}
/// Returns true if `fileName` has been explicitly set.
var hasFileName: Bool {self._fileName != nil}
/// Clears the value of `fileName`. Subsequent reads from it will return its default value.
mutating func clearFileName() {self._fileName = nil}
var flags: UInt32 {
get {_flags ?? 0}
set {_flags = newValue}
}
/// Returns true if `flags` has been explicitly set.
var hasFlags: Bool {self._flags != nil}
/// Clears the value of `flags`. Subsequent reads from it will return its default value.
mutating func clearFlags() {self._flags = nil}
var width: UInt32 {
get {_width ?? 0}
set {_width = newValue}
}
/// Returns true if `width` has been explicitly set.
var hasWidth: Bool {self._width != nil}
/// Clears the value of `width`. Subsequent reads from it will return its default value.
mutating func clearWidth() {self._width = nil}
var height: UInt32 {
get {_height ?? 0}
set {_height = newValue}
}
/// Returns true if `height` has been explicitly set.
var hasHeight: Bool {self._height != nil}
/// Clears the value of `height`. Subsequent reads from it will return its default value.
mutating func clearHeight() {self._height = nil}
var caption: String {
get {_caption ?? String()}
set {_caption = newValue}
}
/// Returns true if `caption` has been explicitly set.
var hasCaption: Bool {self._caption != nil}
/// Clears the value of `caption`. Subsequent reads from it will return its default value.
mutating func clearCaption() {self._caption = nil}
var blurHash: String {
get {_blurHash ?? String()}
set {_blurHash = newValue}
}
/// Returns true if `blurHash` has been explicitly set.
var hasBlurHash: Bool {self._blurHash != nil}
/// Clears the value of `blurHash`. Subsequent reads from it will return its default value.
mutating func clearBlurHash() {self._blurHash = nil}
var uploadTimestamp: UInt64 {
get {_uploadTimestamp ?? 0}
set {_uploadTimestamp = newValue}
}
/// Returns true if `uploadTimestamp` has been explicitly set.
var hasUploadTimestamp: Bool {self._uploadTimestamp != nil}
/// Clears the value of `uploadTimestamp`. Subsequent reads from it will return its default value.
mutating func clearUploadTimestamp() {self._uploadTimestamp = nil}
/// Next ID: 21
var cdnNumber: UInt32 {
get {_cdnNumber ?? 0}
set {_cdnNumber = newValue}
}
/// Returns true if `cdnNumber` has been explicitly set.
var hasCdnNumber: Bool {self._cdnNumber != nil}
/// Clears the value of `cdnNumber`. Subsequent reads from it will return its default value.
mutating func clearCdnNumber() {self._cdnNumber = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum Flags: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case voiceMessage = 1
case borderless = 2
case gif = 8
init() {
self = .voiceMessage
}
}
init() {}
fileprivate var _cdnID: UInt64? = nil
fileprivate var _cdnKey: String? = nil
fileprivate var _clientUuid: Data? = nil
fileprivate var _contentType: String? = nil
fileprivate var _key: Data? = nil
fileprivate var _size: UInt32? = nil
fileprivate var _thumbnail: Data? = nil
fileprivate var _digest: Data? = nil
fileprivate var _fileName: String? = nil
fileprivate var _flags: UInt32? = nil
fileprivate var _width: UInt32? = nil
fileprivate var _height: UInt32? = nil
fileprivate var _caption: String? = nil
fileprivate var _blurHash: String? = nil
fileprivate var _uploadTimestamp: UInt64? = nil
fileprivate var _cdnNumber: UInt32? = nil
}
struct SignalServiceProtos_GroupContextV2: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var masterKey: Data {
get {_masterKey ?? Data()}
set {_masterKey = newValue}
}
/// Returns true if `masterKey` has been explicitly set.
var hasMasterKey: Bool {self._masterKey != nil}
/// Clears the value of `masterKey`. Subsequent reads from it will return its default value.
mutating func clearMasterKey() {self._masterKey = nil}
var revision: UInt32 {
get {_revision ?? 0}
set {_revision = newValue}
}
/// Returns true if `revision` has been explicitly set.
var hasRevision: Bool {self._revision != nil}
/// Clears the value of `revision`. Subsequent reads from it will return its default value.
mutating func clearRevision() {self._revision = nil}
var groupChange: Data {
get {_groupChange ?? Data()}
set {_groupChange = newValue}
}
/// Returns true if `groupChange` has been explicitly set.
var hasGroupChange: Bool {self._groupChange != nil}
/// Clears the value of `groupChange`. Subsequent reads from it will return its default value.
mutating func clearGroupChange() {self._groupChange = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _masterKey: Data? = nil
fileprivate var _revision: UInt32? = nil
fileprivate var _groupChange: Data? = nil
}
struct SignalServiceProtos_ContactDetails: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var contactE164: String {
get {_contactE164 ?? String()}
set {_contactE164 = newValue}
}
/// Returns true if `contactE164` has been explicitly set.
var hasContactE164: Bool {self._contactE164 != nil}
/// Clears the value of `contactE164`. Subsequent reads from it will return its default value.
mutating func clearContactE164() {self._contactE164 = nil}
var aci: String {
get {_aci ?? String()}
set {_aci = newValue}
}
/// Returns true if `aci` has been explicitly set.
var hasAci: Bool {self._aci != nil}
/// Clears the value of `aci`. Subsequent reads from it will return its default value.
mutating func clearAci() {self._aci = nil}
/// 16-byte UUID
var aciBinary: Data {
get {_aciBinary ?? Data()}
set {_aciBinary = newValue}
}
/// Returns true if `aciBinary` has been explicitly set.
var hasAciBinary: Bool {self._aciBinary != nil}
/// Clears the value of `aciBinary`. Subsequent reads from it will return its default value.
mutating func clearAciBinary() {self._aciBinary = nil}
var name: String {
get {_name ?? String()}
set {_name = newValue}
}
/// Returns true if `name` has been explicitly set.
var hasName: Bool {self._name != nil}
/// Clears the value of `name`. Subsequent reads from it will return its default value.
mutating func clearName() {self._name = nil}
var avatar: SignalServiceProtos_ContactDetails.Avatar {
get {_avatar ?? SignalServiceProtos_ContactDetails.Avatar()}
set {_avatar = newValue}
}
/// Returns true if `avatar` has been explicitly set.
var hasAvatar: Bool {self._avatar != nil}
/// Clears the value of `avatar`. Subsequent reads from it will return its default value.
mutating func clearAvatar() {self._avatar = nil}
var expireTimer: UInt32 {
get {_expireTimer ?? 0}
set {_expireTimer = newValue}
}
/// Returns true if `expireTimer` has been explicitly set.
var hasExpireTimer: Bool {self._expireTimer != nil}
/// Clears the value of `expireTimer`. Subsequent reads from it will return its default value.
mutating func clearExpireTimer() {self._expireTimer = nil}
var expireTimerVersion: UInt32 {
get {_expireTimerVersion ?? 0}
set {_expireTimerVersion = newValue}
}
/// Returns true if `expireTimerVersion` has been explicitly set.
var hasExpireTimerVersion: Bool {self._expireTimerVersion != nil}
/// Clears the value of `expireTimerVersion`. Subsequent reads from it will return its default value.
mutating func clearExpireTimerVersion() {self._expireTimerVersion = nil}
var inboxPosition: UInt32 {
get {_inboxPosition ?? 0}
set {_inboxPosition = newValue}
}
/// Returns true if `inboxPosition` has been explicitly set.
var hasInboxPosition: Bool {self._inboxPosition != nil}
/// Clears the value of `inboxPosition`. Subsequent reads from it will return its default value.
mutating func clearInboxPosition() {self._inboxPosition = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
struct Avatar: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var contentType: String {
get {_contentType ?? String()}
set {_contentType = newValue}
}
/// Returns true if `contentType` has been explicitly set.
var hasContentType: Bool {self._contentType != nil}
/// Clears the value of `contentType`. Subsequent reads from it will return its default value.
mutating func clearContentType() {self._contentType = nil}
var length: UInt32 {
get {_length ?? 0}
set {_length = newValue}
}
/// Returns true if `length` has been explicitly set.
var hasLength: Bool {self._length != nil}
/// Clears the value of `length`. Subsequent reads from it will return its default value.
mutating func clearLength() {self._length = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _contentType: String? = nil
fileprivate var _length: UInt32? = nil
}
init() {}
fileprivate var _contactE164: String? = nil
fileprivate var _aci: String? = nil
fileprivate var _aciBinary: Data? = nil
fileprivate var _name: String? = nil
fileprivate var _avatar: SignalServiceProtos_ContactDetails.Avatar? = nil
fileprivate var _expireTimer: UInt32? = nil
fileprivate var _expireTimerVersion: UInt32? = nil
fileprivate var _inboxPosition: UInt32? = nil
}
struct SignalServiceProtos_Pack: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var title: String {
get {_title ?? String()}
set {_title = newValue}
}
/// Returns true if `title` has been explicitly set.
var hasTitle: Bool {self._title != nil}
/// Clears the value of `title`. Subsequent reads from it will return its default value.
mutating func clearTitle() {self._title = nil}
var author: String {
get {_author ?? String()}
set {_author = newValue}
}
/// Returns true if `author` has been explicitly set.
var hasAuthor: Bool {self._author != nil}
/// Clears the value of `author`. Subsequent reads from it will return its default value.
mutating func clearAuthor() {self._author = nil}
var cover: SignalServiceProtos_Pack.Sticker {
get {_cover ?? SignalServiceProtos_Pack.Sticker()}
set {_cover = newValue}
}
/// Returns true if `cover` has been explicitly set.
var hasCover: Bool {self._cover != nil}
/// Clears the value of `cover`. Subsequent reads from it will return its default value.
mutating func clearCover() {self._cover = nil}
var stickers: [SignalServiceProtos_Pack.Sticker] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
struct Sticker: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// @required
var id: UInt32 {
get {_id ?? 0}
set {_id = newValue}
}
/// Returns true if `id` has been explicitly set.
var hasID: Bool {self._id != nil}
/// Clears the value of `id`. Subsequent reads from it will return its default value.
mutating func clearID() {self._id = nil}
var emoji: String {
get {_emoji ?? String()}
set {_emoji = newValue}
}
/// Returns true if `emoji` has been explicitly set.
var hasEmoji: Bool {self._emoji != nil}
/// Clears the value of `emoji`. Subsequent reads from it will return its default value.
mutating func clearEmoji() {self._emoji = nil}
var contentType: String {
get {_contentType ?? String()}
set {_contentType = newValue}
}
/// Returns true if `contentType` has been explicitly set.
var hasContentType: Bool {self._contentType != nil}
/// Clears the value of `contentType`. Subsequent reads from it will return its default value.
mutating func clearContentType() {self._contentType = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _id: UInt32? = nil
fileprivate var _emoji: String? = nil
fileprivate var _contentType: String? = nil
}
init() {}
fileprivate var _title: String? = nil
fileprivate var _author: String? = nil
fileprivate var _cover: SignalServiceProtos_Pack.Sticker? = nil
}
struct SignalServiceProtos_PaymentAddress: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// oneof commented out
/// oneof Address {
var mobileCoin: SignalServiceProtos_PaymentAddress.MobileCoin {
get {_mobileCoin ?? SignalServiceProtos_PaymentAddress.MobileCoin()}
set {_mobileCoin = newValue}
}
/// Returns true if `mobileCoin` has been explicitly set.
var hasMobileCoin: Bool {self._mobileCoin != nil}
/// Clears the value of `mobileCoin`. Subsequent reads from it will return its default value.
mutating func clearMobileCoin() {self._mobileCoin = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
struct MobileCoin: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// @required
var publicAddress: Data {
get {_publicAddress ?? Data()}
set {_publicAddress = newValue}
}
/// Returns true if `publicAddress` has been explicitly set.
var hasPublicAddress: Bool {self._publicAddress != nil}
/// Clears the value of `publicAddress`. Subsequent reads from it will return its default value.
mutating func clearPublicAddress() {self._publicAddress = nil}
/// @required
var signature: Data {
get {_signature ?? Data()}
set {_signature = newValue}
}
/// Returns true if `signature` has been explicitly set.
var hasSignature: Bool {self._signature != nil}
/// Clears the value of `signature`. Subsequent reads from it will return its default value.
mutating func clearSignature() {self._signature = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _publicAddress: Data? = nil
fileprivate var _signature: Data? = nil
}
init() {}
fileprivate var _mobileCoin: SignalServiceProtos_PaymentAddress.MobileCoin? = nil
}
struct SignalServiceProtos_DecryptionErrorMessage: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var ratchetKey: Data {
get {_ratchetKey ?? Data()}
set {_ratchetKey = newValue}
}
/// Returns true if `ratchetKey` has been explicitly set.
var hasRatchetKey: Bool {self._ratchetKey != nil}
/// Clears the value of `ratchetKey`. Subsequent reads from it will return its default value.
mutating func clearRatchetKey() {self._ratchetKey = nil}
var timestamp: UInt64 {
get {_timestamp ?? 0}
set {_timestamp = newValue}
}
/// Returns true if `timestamp` has been explicitly set.
var hasTimestamp: Bool {self._timestamp != nil}
/// Clears the value of `timestamp`. Subsequent reads from it will return its default value.
mutating func clearTimestamp() {self._timestamp = nil}
var deviceID: UInt32 {
get {_deviceID ?? 0}
set {_deviceID = newValue}
}
/// Returns true if `deviceID` has been explicitly set.
var hasDeviceID: Bool {self._deviceID != nil}
/// Clears the value of `deviceID`. Subsequent reads from it will return its default value.
mutating func clearDeviceID() {self._deviceID = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _ratchetKey: Data? = nil
fileprivate var _timestamp: UInt64? = nil
fileprivate var _deviceID: UInt32? = nil
}
struct SignalServiceProtos_PniSignatureMessage: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var pni: Data {
get {_pni ?? Data()}
set {_pni = newValue}
}
/// Returns true if `pni` has been explicitly set.
var hasPni: Bool {self._pni != nil}
/// Clears the value of `pni`. Subsequent reads from it will return its default value.
mutating func clearPni() {self._pni = nil}
/// Signature *by* the PNI identity key *of* the ACI identity key
var signature: Data {
get {_signature ?? Data()}
set {_signature = newValue}
}
/// Returns true if `signature` has been explicitly set.
var hasSignature: Bool {self._signature != nil}
/// Clears the value of `signature`. Subsequent reads from it will return its default value.
mutating func clearSignature() {self._signature = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _pni: Data? = nil
fileprivate var _signature: Data? = nil
}
struct SignalServiceProtos_BodyRange: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var start: UInt32 {
get {_start ?? 0}
set {_start = newValue}
}
/// Returns true if `start` has been explicitly set.
var hasStart: Bool {self._start != nil}
/// Clears the value of `start`. Subsequent reads from it will return its default value.
mutating func clearStart() {self._start = nil}
var length: UInt32 {
get {_length ?? 0}
set {_length = newValue}
}
/// Returns true if `length` has been explicitly set.
var hasLength: Bool {self._length != nil}
/// Clears the value of `length`. Subsequent reads from it will return its default value.
mutating func clearLength() {self._length = nil}
/// oneof commented out because swift generated
/// enum with associated values can't be converted
/// to objc representation
///
/// oneof associatedValue {
var mentionAci: String {
get {_mentionAci ?? String()}
set {_mentionAci = newValue}
}
/// Returns true if `mentionAci` has been explicitly set.
var hasMentionAci: Bool {self._mentionAci != nil}
/// Clears the value of `mentionAci`. Subsequent reads from it will return its default value.
mutating func clearMentionAci() {self._mentionAci = nil}
var style: SignalServiceProtos_BodyRange.Style {
get {_style ?? .none}
set {_style = newValue}
}
/// Returns true if `style` has been explicitly set.
var hasStyle: Bool {self._style != nil}
/// Clears the value of `style`. Subsequent reads from it will return its default value.
mutating func clearStyle() {self._style = nil}
/// 16-byte UUID
var mentionAciBinary: Data {
get {_mentionAciBinary ?? Data()}
set {_mentionAciBinary = newValue}
}
/// Returns true if `mentionAciBinary` has been explicitly set.
var hasMentionAciBinary: Bool {self._mentionAciBinary != nil}
/// Clears the value of `mentionAciBinary`. Subsequent reads from it will return its default value.
mutating func clearMentionAciBinary() {self._mentionAciBinary = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum Style: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case none = 0
case bold = 1
case italic = 2
case spoiler = 3
case strikethrough = 4
case monospace = 5
init() {
self = .none
}
}
init() {}
fileprivate var _start: UInt32? = nil
fileprivate var _length: UInt32? = nil
fileprivate var _mentionAci: String? = nil
fileprivate var _style: SignalServiceProtos_BodyRange.Style? = nil
fileprivate var _mentionAciBinary: Data? = nil
}
struct SignalServiceProtos_EditMessage: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var targetSentTimestamp: UInt64 {
get {_targetSentTimestamp ?? 0}
set {_targetSentTimestamp = newValue}
}
/// Returns true if `targetSentTimestamp` has been explicitly set.
var hasTargetSentTimestamp: Bool {self._targetSentTimestamp != nil}
/// Clears the value of `targetSentTimestamp`. Subsequent reads from it will return its default value.
mutating func clearTargetSentTimestamp() {self._targetSentTimestamp = nil}
var dataMessage: SignalServiceProtos_DataMessage {
get {_dataMessage ?? SignalServiceProtos_DataMessage()}
set {_dataMessage = newValue}
}
/// Returns true if `dataMessage` has been explicitly set.
var hasDataMessage: Bool {self._dataMessage != nil}
/// Clears the value of `dataMessage`. Subsequent reads from it will return its default value.
mutating func clearDataMessage() {self._dataMessage = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _targetSentTimestamp: UInt64? = nil
fileprivate var _dataMessage: SignalServiceProtos_DataMessage? = nil
}
struct SignalServiceProtos_AddressableMessage: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// oneof author {
var authorServiceID: String {
get {_authorServiceID ?? String()}
set {_authorServiceID = newValue}
}
/// Returns true if `authorServiceID` has been explicitly set.
var hasAuthorServiceID: Bool {self._authorServiceID != nil}
/// Clears the value of `authorServiceID`. Subsequent reads from it will return its default value.
mutating func clearAuthorServiceID() {self._authorServiceID = nil}
var authorE164: String {
get {_authorE164 ?? String()}
set {_authorE164 = newValue}
}
/// Returns true if `authorE164` has been explicitly set.
var hasAuthorE164: Bool {self._authorE164 != nil}
/// Clears the value of `authorE164`. Subsequent reads from it will return its default value.
mutating func clearAuthorE164() {self._authorE164 = nil}
/// service ID binary (i.e. 16 byte UUID for ACI, 1 byte prefix + 16 byte UUID for PNI)
var authorServiceIDBinary: Data {
get {_authorServiceIDBinary ?? Data()}
set {_authorServiceIDBinary = newValue}
}
/// Returns true if `authorServiceIDBinary` has been explicitly set.
var hasAuthorServiceIDBinary: Bool {self._authorServiceIDBinary != nil}
/// Clears the value of `authorServiceIDBinary`. Subsequent reads from it will return its default value.
mutating func clearAuthorServiceIDBinary() {self._authorServiceIDBinary = nil}
/// }
var sentTimestamp: UInt64 {
get {_sentTimestamp ?? 0}
set {_sentTimestamp = newValue}
}
/// Returns true if `sentTimestamp` has been explicitly set.
var hasSentTimestamp: Bool {self._sentTimestamp != nil}
/// Clears the value of `sentTimestamp`. Subsequent reads from it will return its default value.
mutating func clearSentTimestamp() {self._sentTimestamp = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _authorServiceID: String? = nil
fileprivate var _authorE164: String? = nil
fileprivate var _authorServiceIDBinary: Data? = nil
fileprivate var _sentTimestamp: UInt64? = nil
}
struct SignalServiceProtos_ConversationIdentifier: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// oneof identifier {
var threadServiceID: String {
get {_threadServiceID ?? String()}
set {_threadServiceID = newValue}
}
/// Returns true if `threadServiceID` has been explicitly set.
var hasThreadServiceID: Bool {self._threadServiceID != nil}
/// Clears the value of `threadServiceID`. Subsequent reads from it will return its default value.
mutating func clearThreadServiceID() {self._threadServiceID = nil}
var threadGroupID: Data {
get {_threadGroupID ?? Data()}
set {_threadGroupID = newValue}
}
/// Returns true if `threadGroupID` has been explicitly set.
var hasThreadGroupID: Bool {self._threadGroupID != nil}
/// Clears the value of `threadGroupID`. Subsequent reads from it will return its default value.
mutating func clearThreadGroupID() {self._threadGroupID = nil}
var threadE164: String {
get {_threadE164 ?? String()}
set {_threadE164 = newValue}
}
/// Returns true if `threadE164` has been explicitly set.
var hasThreadE164: Bool {self._threadE164 != nil}
/// Clears the value of `threadE164`. Subsequent reads from it will return its default value.
mutating func clearThreadE164() {self._threadE164 = nil}
/// service ID binary (i.e. 16 byte UUID for ACI, 1 byte prefix + 16 byte UUID for PNI)
var threadServiceIDBinary: Data {
get {_threadServiceIDBinary ?? Data()}
set {_threadServiceIDBinary = newValue}
}
/// Returns true if `threadServiceIDBinary` has been explicitly set.
var hasThreadServiceIDBinary: Bool {self._threadServiceIDBinary != nil}
/// Clears the value of `threadServiceIDBinary`. Subsequent reads from it will return its default value.
mutating func clearThreadServiceIDBinary() {self._threadServiceIDBinary = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _threadServiceID: String? = nil
fileprivate var _threadGroupID: Data? = nil
fileprivate var _threadE164: String? = nil
fileprivate var _threadServiceIDBinary: Data? = nil
}
// MARK: - Code below here is support for the SwiftProtobuf runtime.
fileprivate let _protobuf_package = "SignalServiceProtos"
extension SignalServiceProtos_Envelope: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".Envelope"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}type\0\u{2}\u{4}timestamp\0\u{2}\u{2}sourceDevice\0\u{1}content\0\u{1}serverGuid\0\u{1}serverTimestamp\0\u{1}sourceServiceId\0\u{2}\u{2}destinationServiceId\0\u{1}urgent\0\u{1}updatedPni\0\u{1}story\0\u{1}spamReportingToken\0\u{2}\u{2}sourceServiceIdBinary\0\u{1}destinationServiceIdBinary\0\u{1}serverGuidBinary\0\u{1}updatedPniBinary\0\u{c}\u{2}\u{1}\u{c}\u{3}\u{1}\u{c}\u{6}\u{1}\u{c}\u{12}\u{1}")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularEnumField(value: &self._type) }()
case 5: try { try decoder.decodeSingularUInt64Field(value: &self._timestamp) }()
case 7: try { try decoder.decodeSingularUInt32Field(value: &self._sourceDevice) }()
case 8: try { try decoder.decodeSingularBytesField(value: &self._content) }()
case 9: try { try decoder.decodeSingularStringField(value: &self._serverGuid) }()
case 10: try { try decoder.decodeSingularUInt64Field(value: &self._serverTimestamp) }()
case 11: try { try decoder.decodeSingularStringField(value: &self._sourceServiceID) }()
case 13: try { try decoder.decodeSingularStringField(value: &self._destinationServiceID) }()
case 14: try { try decoder.decodeSingularBoolField(value: &self._urgent) }()
case 15: try { try decoder.decodeSingularStringField(value: &self._updatedPni) }()
case 16: try { try decoder.decodeSingularBoolField(value: &self._story) }()
case 17: try { try decoder.decodeSingularBytesField(value: &self._spamReportingToken) }()
case 19: try { try decoder.decodeSingularBytesField(value: &self._sourceServiceIDBinary) }()
case 20: try { try decoder.decodeSingularBytesField(value: &self._destinationServiceIDBinary) }()
case 21: try { try decoder.decodeSingularBytesField(value: &self._serverGuidBinary) }()
case 22: try { try decoder.decodeSingularBytesField(value: &self._updatedPniBinary) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._type {
try visitor.visitSingularEnumField(value: v, fieldNumber: 1)
} }()
try { if let v = self._timestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 5)
} }()
try { if let v = self._sourceDevice {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 7)
} }()
try { if let v = self._content {
try visitor.visitSingularBytesField(value: v, fieldNumber: 8)
} }()
try { if let v = self._serverGuid {
try visitor.visitSingularStringField(value: v, fieldNumber: 9)
} }()
try { if let v = self._serverTimestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 10)
} }()
try { if let v = self._sourceServiceID {
try visitor.visitSingularStringField(value: v, fieldNumber: 11)
} }()
try { if let v = self._destinationServiceID {
try visitor.visitSingularStringField(value: v, fieldNumber: 13)
} }()
try { if let v = self._urgent {
try visitor.visitSingularBoolField(value: v, fieldNumber: 14)
} }()
try { if let v = self._updatedPni {
try visitor.visitSingularStringField(value: v, fieldNumber: 15)
} }()
try { if let v = self._story {
try visitor.visitSingularBoolField(value: v, fieldNumber: 16)
} }()
try { if let v = self._spamReportingToken {
try visitor.visitSingularBytesField(value: v, fieldNumber: 17)
} }()
try { if let v = self._sourceServiceIDBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 19)
} }()
try { if let v = self._destinationServiceIDBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 20)
} }()
try { if let v = self._serverGuidBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 21)
} }()
try { if let v = self._updatedPniBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 22)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_Envelope, rhs: SignalServiceProtos_Envelope) -> Bool {
if lhs._type != rhs._type {return false}
if lhs._sourceDevice != rhs._sourceDevice {return false}
if lhs._destinationServiceID != rhs._destinationServiceID {return false}
if lhs._timestamp != rhs._timestamp {return false}
if lhs._content != rhs._content {return false}
if lhs._serverGuid != rhs._serverGuid {return false}
if lhs._serverTimestamp != rhs._serverTimestamp {return false}
if lhs._sourceServiceID != rhs._sourceServiceID {return false}
if lhs._urgent != rhs._urgent {return false}
if lhs._updatedPni != rhs._updatedPni {return false}
if lhs._story != rhs._story {return false}
if lhs._spamReportingToken != rhs._spamReportingToken {return false}
if lhs._sourceServiceIDBinary != rhs._sourceServiceIDBinary {return false}
if lhs._destinationServiceIDBinary != rhs._destinationServiceIDBinary {return false}
if lhs._serverGuidBinary != rhs._serverGuidBinary {return false}
if lhs._updatedPniBinary != rhs._updatedPniBinary {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_Envelope.TypeEnum: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0UNKNOWN\0\u{1}CIPHERTEXT\0\u{2}\u{2}PREKEY_BUNDLE\0\u{2}\u{2}RECEIPT\0\u{1}UNIDENTIFIED_SENDER\0\u{2}\u{2}PLAINTEXT_CONTENT\0")
}
extension SignalServiceProtos_TypingMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".TypingMessage"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}timestamp\0\u{1}action\0\u{1}groupId\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularUInt64Field(value: &self._timestamp) }()
case 2: try { try decoder.decodeSingularEnumField(value: &self._action) }()
case 3: try { try decoder.decodeSingularBytesField(value: &self._groupID) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._timestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 1)
} }()
try { if let v = self._action {
try visitor.visitSingularEnumField(value: v, fieldNumber: 2)
} }()
try { if let v = self._groupID {
try visitor.visitSingularBytesField(value: v, fieldNumber: 3)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_TypingMessage, rhs: SignalServiceProtos_TypingMessage) -> Bool {
if lhs._timestamp != rhs._timestamp {return false}
if lhs._action != rhs._action {return false}
if lhs._groupID != rhs._groupID {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_TypingMessage.Action: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0STARTED\0\u{1}STOPPED\0")
}
extension SignalServiceProtos_StoryMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".StoryMessage"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}profileKey\0\u{1}group\0\u{1}fileAttachment\0\u{1}textAttachment\0\u{1}allowsReplies\0\u{1}bodyRanges\0")
fileprivate class _StorageClass {
var _profileKey: Data? = nil
var _group: SignalServiceProtos_GroupContextV2? = nil
var _fileAttachment: SignalServiceProtos_AttachmentPointer? = nil
var _textAttachment: SignalServiceProtos_TextAttachment? = nil
var _allowsReplies: Bool? = nil
var _bodyRanges: [SignalServiceProtos_BodyRange] = []
// This property is used as the initial default value for new instances of the type.
// The type itself is protecting the reference to its storage via CoW semantics.
// This will force a copy to be made of this reference when the first mutation occurs;
// hence, it is safe to mark this as `nonisolated(unsafe)`.
static nonisolated(unsafe) let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_profileKey = source._profileKey
_group = source._group
_fileAttachment = source._fileAttachment
_textAttachment = source._textAttachment
_allowsReplies = source._allowsReplies
_bodyRanges = source._bodyRanges
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularBytesField(value: &_storage._profileKey) }()
case 2: try { try decoder.decodeSingularMessageField(value: &_storage._group) }()
case 3: try { try decoder.decodeSingularMessageField(value: &_storage._fileAttachment) }()
case 4: try { try decoder.decodeSingularMessageField(value: &_storage._textAttachment) }()
case 5: try { try decoder.decodeSingularBoolField(value: &_storage._allowsReplies) }()
case 6: try { try decoder.decodeRepeatedMessageField(value: &_storage._bodyRanges) }()
default: break
}
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = _storage._profileKey {
try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
} }()
try { if let v = _storage._group {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
} }()
try { if let v = _storage._fileAttachment {
try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
} }()
try { if let v = _storage._textAttachment {
try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
} }()
try { if let v = _storage._allowsReplies {
try visitor.visitSingularBoolField(value: v, fieldNumber: 5)
} }()
if !_storage._bodyRanges.isEmpty {
try visitor.visitRepeatedMessageField(value: _storage._bodyRanges, fieldNumber: 6)
}
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_StoryMessage, rhs: SignalServiceProtos_StoryMessage) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._profileKey != rhs_storage._profileKey {return false}
if _storage._group != rhs_storage._group {return false}
if _storage._fileAttachment != rhs_storage._fileAttachment {return false}
if _storage._textAttachment != rhs_storage._textAttachment {return false}
if _storage._allowsReplies != rhs_storage._allowsReplies {return false}
if _storage._bodyRanges != rhs_storage._bodyRanges {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_Preview: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".Preview"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}url\0\u{1}title\0\u{1}image\0\u{1}previewDescription\0\u{1}date\0")
fileprivate class _StorageClass {
var _url: String? = nil
var _title: String? = nil
var _image: SignalServiceProtos_AttachmentPointer? = nil
var _previewDescription: String? = nil
var _date: UInt64? = nil
// This property is used as the initial default value for new instances of the type.
// The type itself is protecting the reference to its storage via CoW semantics.
// This will force a copy to be made of this reference when the first mutation occurs;
// hence, it is safe to mark this as `nonisolated(unsafe)`.
static nonisolated(unsafe) let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_url = source._url
_title = source._title
_image = source._image
_previewDescription = source._previewDescription
_date = source._date
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularStringField(value: &_storage._url) }()
case 2: try { try decoder.decodeSingularStringField(value: &_storage._title) }()
case 3: try { try decoder.decodeSingularMessageField(value: &_storage._image) }()
case 4: try { try decoder.decodeSingularStringField(value: &_storage._previewDescription) }()
case 5: try { try decoder.decodeSingularUInt64Field(value: &_storage._date) }()
default: break
}
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = _storage._url {
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
} }()
try { if let v = _storage._title {
try visitor.visitSingularStringField(value: v, fieldNumber: 2)
} }()
try { if let v = _storage._image {
try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
} }()
try { if let v = _storage._previewDescription {
try visitor.visitSingularStringField(value: v, fieldNumber: 4)
} }()
try { if let v = _storage._date {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 5)
} }()
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_Preview, rhs: SignalServiceProtos_Preview) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._url != rhs_storage._url {return false}
if _storage._title != rhs_storage._title {return false}
if _storage._image != rhs_storage._image {return false}
if _storage._previewDescription != rhs_storage._previewDescription {return false}
if _storage._date != rhs_storage._date {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_TextAttachment: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".TextAttachment"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}text\0\u{1}textStyle\0\u{1}textForegroundColor\0\u{1}textBackgroundColor\0\u{1}preview\0\u{1}gradient\0\u{1}color\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularStringField(value: &self._text) }()
case 2: try { try decoder.decodeSingularEnumField(value: &self._textStyle) }()
case 3: try { try decoder.decodeSingularUInt32Field(value: &self._textForegroundColor) }()
case 4: try { try decoder.decodeSingularUInt32Field(value: &self._textBackgroundColor) }()
case 5: try { try decoder.decodeSingularMessageField(value: &self._preview) }()
case 6: try { try decoder.decodeSingularMessageField(value: &self._gradient) }()
case 7: try { try decoder.decodeSingularUInt32Field(value: &self._color) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._text {
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
} }()
try { if let v = self._textStyle {
try visitor.visitSingularEnumField(value: v, fieldNumber: 2)
} }()
try { if let v = self._textForegroundColor {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 3)
} }()
try { if let v = self._textBackgroundColor {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 4)
} }()
try { if let v = self._preview {
try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
} }()
try { if let v = self._gradient {
try visitor.visitSingularMessageField(value: v, fieldNumber: 6)
} }()
try { if let v = self._color {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 7)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_TextAttachment, rhs: SignalServiceProtos_TextAttachment) -> Bool {
if lhs._text != rhs._text {return false}
if lhs._textStyle != rhs._textStyle {return false}
if lhs._textForegroundColor != rhs._textForegroundColor {return false}
if lhs._textBackgroundColor != rhs._textBackgroundColor {return false}
if lhs._preview != rhs._preview {return false}
if lhs._gradient != rhs._gradient {return false}
if lhs._color != rhs._color {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_TextAttachment.Style: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0DEFAULT\0\u{1}REGULAR\0\u{1}BOLD\0\u{1}SERIF\0\u{1}SCRIPT\0\u{1}CONDENSED\0")
}
extension SignalServiceProtos_TextAttachment.Gradient: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_TextAttachment.protoMessageName + ".Gradient"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}startColor\0\u{1}endColor\0\u{1}angle\0\u{1}colors\0\u{1}positions\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularUInt32Field(value: &self._startColor) }()
case 2: try { try decoder.decodeSingularUInt32Field(value: &self._endColor) }()
case 3: try { try decoder.decodeSingularUInt32Field(value: &self._angle) }()
case 4: try { try decoder.decodeRepeatedUInt32Field(value: &self.colors) }()
case 5: try { try decoder.decodeRepeatedFloatField(value: &self.positions) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._startColor {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 1)
} }()
try { if let v = self._endColor {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2)
} }()
try { if let v = self._angle {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 3)
} }()
if !self.colors.isEmpty {
try visitor.visitRepeatedUInt32Field(value: self.colors, fieldNumber: 4)
}
if !self.positions.isEmpty {
try visitor.visitRepeatedFloatField(value: self.positions, fieldNumber: 5)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_TextAttachment.Gradient, rhs: SignalServiceProtos_TextAttachment.Gradient) -> Bool {
if lhs._startColor != rhs._startColor {return false}
if lhs._endColor != rhs._endColor {return false}
if lhs._angle != rhs._angle {return false}
if lhs.colors != rhs.colors {return false}
if lhs.positions != rhs.positions {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_Content: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".Content"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}dataMessage\0\u{1}syncMessage\0\u{1}callMessage\0\u{1}nullMessage\0\u{1}receiptMessage\0\u{1}typingMessage\0\u{1}senderKeyDistributionMessage\0\u{1}decryptionErrorMessage\0\u{1}storyMessage\0\u{1}pniSignatureMessage\0\u{1}editMessage\0")
fileprivate class _StorageClass {
var _dataMessage: SignalServiceProtos_DataMessage? = nil
var _syncMessage: SignalServiceProtos_SyncMessage? = nil
var _callMessage: SignalServiceProtos_CallMessage? = nil
var _nullMessage: SignalServiceProtos_NullMessage? = nil
var _receiptMessage: SignalServiceProtos_ReceiptMessage? = nil
var _typingMessage: SignalServiceProtos_TypingMessage? = nil
var _senderKeyDistributionMessage: Data? = nil
var _decryptionErrorMessage: Data? = nil
var _storyMessage: SignalServiceProtos_StoryMessage? = nil
var _pniSignatureMessage: SignalServiceProtos_PniSignatureMessage? = nil
var _editMessage: SignalServiceProtos_EditMessage? = nil
// This property is used as the initial default value for new instances of the type.
// The type itself is protecting the reference to its storage via CoW semantics.
// This will force a copy to be made of this reference when the first mutation occurs;
// hence, it is safe to mark this as `nonisolated(unsafe)`.
static nonisolated(unsafe) let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_dataMessage = source._dataMessage
_syncMessage = source._syncMessage
_callMessage = source._callMessage
_nullMessage = source._nullMessage
_receiptMessage = source._receiptMessage
_typingMessage = source._typingMessage
_senderKeyDistributionMessage = source._senderKeyDistributionMessage
_decryptionErrorMessage = source._decryptionErrorMessage
_storyMessage = source._storyMessage
_pniSignatureMessage = source._pniSignatureMessage
_editMessage = source._editMessage
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularMessageField(value: &_storage._dataMessage) }()
case 2: try { try decoder.decodeSingularMessageField(value: &_storage._syncMessage) }()
case 3: try { try decoder.decodeSingularMessageField(value: &_storage._callMessage) }()
case 4: try { try decoder.decodeSingularMessageField(value: &_storage._nullMessage) }()
case 5: try { try decoder.decodeSingularMessageField(value: &_storage._receiptMessage) }()
case 6: try { try decoder.decodeSingularMessageField(value: &_storage._typingMessage) }()
case 7: try { try decoder.decodeSingularBytesField(value: &_storage._senderKeyDistributionMessage) }()
case 8: try { try decoder.decodeSingularBytesField(value: &_storage._decryptionErrorMessage) }()
case 9: try { try decoder.decodeSingularMessageField(value: &_storage._storyMessage) }()
case 10: try { try decoder.decodeSingularMessageField(value: &_storage._pniSignatureMessage) }()
case 11: try { try decoder.decodeSingularMessageField(value: &_storage._editMessage) }()
default: break
}
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = _storage._dataMessage {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
} }()
try { if let v = _storage._syncMessage {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
} }()
try { if let v = _storage._callMessage {
try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
} }()
try { if let v = _storage._nullMessage {
try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
} }()
try { if let v = _storage._receiptMessage {
try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
} }()
try { if let v = _storage._typingMessage {
try visitor.visitSingularMessageField(value: v, fieldNumber: 6)
} }()
try { if let v = _storage._senderKeyDistributionMessage {
try visitor.visitSingularBytesField(value: v, fieldNumber: 7)
} }()
try { if let v = _storage._decryptionErrorMessage {
try visitor.visitSingularBytesField(value: v, fieldNumber: 8)
} }()
try { if let v = _storage._storyMessage {
try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
} }()
try { if let v = _storage._pniSignatureMessage {
try visitor.visitSingularMessageField(value: v, fieldNumber: 10)
} }()
try { if let v = _storage._editMessage {
try visitor.visitSingularMessageField(value: v, fieldNumber: 11)
} }()
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_Content, rhs: SignalServiceProtos_Content) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._dataMessage != rhs_storage._dataMessage {return false}
if _storage._syncMessage != rhs_storage._syncMessage {return false}
if _storage._callMessage != rhs_storage._callMessage {return false}
if _storage._nullMessage != rhs_storage._nullMessage {return false}
if _storage._receiptMessage != rhs_storage._receiptMessage {return false}
if _storage._typingMessage != rhs_storage._typingMessage {return false}
if _storage._senderKeyDistributionMessage != rhs_storage._senderKeyDistributionMessage {return false}
if _storage._decryptionErrorMessage != rhs_storage._decryptionErrorMessage {return false}
if _storage._storyMessage != rhs_storage._storyMessage {return false}
if _storage._pniSignatureMessage != rhs_storage._pniSignatureMessage {return false}
if _storage._editMessage != rhs_storage._editMessage {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_CallMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".CallMessage"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}offer\0\u{1}answer\0\u{1}iceUpdate\0\u{2}\u{2}busy\0\u{1}profileKey\0\u{1}hangup\0\u{2}\u{2}destinationDeviceId\0\u{1}opaque\0\u{c}\u{4}\u{1}\u{c}\u{8}\u{1}")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularMessageField(value: &self._offer) }()
case 2: try { try decoder.decodeSingularMessageField(value: &self._answer) }()
case 3: try { try decoder.decodeRepeatedMessageField(value: &self.iceUpdate) }()
case 5: try { try decoder.decodeSingularMessageField(value: &self._busy) }()
case 6: try { try decoder.decodeSingularBytesField(value: &self._profileKey) }()
case 7: try { try decoder.decodeSingularMessageField(value: &self._hangup) }()
case 9: try { try decoder.decodeSingularUInt32Field(value: &self._destinationDeviceID) }()
case 10: try { try decoder.decodeSingularMessageField(value: &self._opaque) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._offer {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
} }()
try { if let v = self._answer {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
} }()
if !self.iceUpdate.isEmpty {
try visitor.visitRepeatedMessageField(value: self.iceUpdate, fieldNumber: 3)
}
try { if let v = self._busy {
try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
} }()
try { if let v = self._profileKey {
try visitor.visitSingularBytesField(value: v, fieldNumber: 6)
} }()
try { if let v = self._hangup {
try visitor.visitSingularMessageField(value: v, fieldNumber: 7)
} }()
try { if let v = self._destinationDeviceID {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 9)
} }()
try { if let v = self._opaque {
try visitor.visitSingularMessageField(value: v, fieldNumber: 10)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_CallMessage, rhs: SignalServiceProtos_CallMessage) -> Bool {
if lhs._offer != rhs._offer {return false}
if lhs._answer != rhs._answer {return false}
if lhs.iceUpdate != rhs.iceUpdate {return false}
if lhs._busy != rhs._busy {return false}
if lhs._profileKey != rhs._profileKey {return false}
if lhs._hangup != rhs._hangup {return false}
if lhs._destinationDeviceID != rhs._destinationDeviceID {return false}
if lhs._opaque != rhs._opaque {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_CallMessage.Offer: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_CallMessage.protoMessageName + ".Offer"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}id\0\u{2}\u{2}type\0\u{1}opaque\0\u{c}\u{2}\u{1}")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularUInt64Field(value: &self._id) }()
case 3: try { try decoder.decodeSingularEnumField(value: &self._type) }()
case 4: try { try decoder.decodeSingularBytesField(value: &self._opaque) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._id {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 1)
} }()
try { if let v = self._type {
try visitor.visitSingularEnumField(value: v, fieldNumber: 3)
} }()
try { if let v = self._opaque {
try visitor.visitSingularBytesField(value: v, fieldNumber: 4)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_CallMessage.Offer, rhs: SignalServiceProtos_CallMessage.Offer) -> Bool {
if lhs._id != rhs._id {return false}
if lhs._type != rhs._type {return false}
if lhs._opaque != rhs._opaque {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_CallMessage.Offer.TypeEnum: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0OFFER_AUDIO_CALL\0\u{1}OFFER_VIDEO_CALL\0")
}
extension SignalServiceProtos_CallMessage.Answer: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_CallMessage.protoMessageName + ".Answer"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}id\0\u{2}\u{2}opaque\0\u{c}\u{2}\u{1}")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularUInt64Field(value: &self._id) }()
case 3: try { try decoder.decodeSingularBytesField(value: &self._opaque) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._id {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 1)
} }()
try { if let v = self._opaque {
try visitor.visitSingularBytesField(value: v, fieldNumber: 3)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_CallMessage.Answer, rhs: SignalServiceProtos_CallMessage.Answer) -> Bool {
if lhs._id != rhs._id {return false}
if lhs._opaque != rhs._opaque {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_CallMessage.IceUpdate: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_CallMessage.protoMessageName + ".IceUpdate"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}id\0\u{2}\u{4}opaque\0\u{c}\u{2}\u{1}\u{c}\u{3}\u{1}\u{c}\u{4}\u{1}")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularUInt64Field(value: &self._id) }()
case 5: try { try decoder.decodeSingularBytesField(value: &self._opaque) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._id {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 1)
} }()
try { if let v = self._opaque {
try visitor.visitSingularBytesField(value: v, fieldNumber: 5)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_CallMessage.IceUpdate, rhs: SignalServiceProtos_CallMessage.IceUpdate) -> Bool {
if lhs._id != rhs._id {return false}
if lhs._opaque != rhs._opaque {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_CallMessage.Busy: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_CallMessage.protoMessageName + ".Busy"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}id\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularUInt64Field(value: &self._id) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._id {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 1)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_CallMessage.Busy, rhs: SignalServiceProtos_CallMessage.Busy) -> Bool {
if lhs._id != rhs._id {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_CallMessage.Hangup: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_CallMessage.protoMessageName + ".Hangup"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}id\0\u{1}type\0\u{1}deviceId\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularUInt64Field(value: &self._id) }()
case 2: try { try decoder.decodeSingularEnumField(value: &self._type) }()
case 3: try { try decoder.decodeSingularUInt32Field(value: &self._deviceID) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._id {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 1)
} }()
try { if let v = self._type {
try visitor.visitSingularEnumField(value: v, fieldNumber: 2)
} }()
try { if let v = self._deviceID {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 3)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_CallMessage.Hangup, rhs: SignalServiceProtos_CallMessage.Hangup) -> Bool {
if lhs._id != rhs._id {return false}
if lhs._type != rhs._type {return false}
if lhs._deviceID != rhs._deviceID {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_CallMessage.Hangup.TypeEnum: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0HANGUP_NORMAL\0\u{1}HANGUP_ACCEPTED\0\u{1}HANGUP_DECLINED\0\u{1}HANGUP_BUSY\0\u{1}HANGUP_NEED_PERMISSION\0")
}
extension SignalServiceProtos_CallMessage.Opaque: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_CallMessage.protoMessageName + ".Opaque"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}data\0\u{1}urgency\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularBytesField(value: &self._data) }()
case 2: try { try decoder.decodeSingularEnumField(value: &self._urgency) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._data {
try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
} }()
try { if let v = self._urgency {
try visitor.visitSingularEnumField(value: v, fieldNumber: 2)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_CallMessage.Opaque, rhs: SignalServiceProtos_CallMessage.Opaque) -> Bool {
if lhs._data != rhs._data {return false}
if lhs._urgency != rhs._urgency {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_CallMessage.Opaque.Urgency: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0DROPPABLE\0\u{1}HANDLE_IMMEDIATELY\0")
}
extension SignalServiceProtos_DataMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".DataMessage"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}body\0\u{1}attachments\0\u{2}\u{2}flags\0\u{1}expireTimer\0\u{1}profileKey\0\u{1}timestamp\0\u{1}quote\0\u{1}contact\0\u{1}preview\0\u{1}sticker\0\u{1}requiredProtocolVersion\0\u{2}\u{2}isViewOnce\0\u{1}groupV2\0\u{1}reaction\0\u{1}delete\0\u{1}bodyRanges\0\u{1}groupCallUpdate\0\u{1}payment\0\u{1}storyContext\0\u{1}giftBadge\0\u{1}expireTimerVersion\0\u{1}pollCreate\0\u{1}pollTerminate\0\u{1}pollVote\0\u{1}pinMessage\0\u{1}unpinMessage\0\u{1}adminDelete\0\u{c}\u{3}\u{1}")
fileprivate class _StorageClass {
var _body: String? = nil
var _attachments: [SignalServiceProtos_AttachmentPointer] = []
var _groupV2: SignalServiceProtos_GroupContextV2? = nil
var _flags: UInt32? = nil
var _expireTimer: UInt32? = nil
var _expireTimerVersion: UInt32? = nil
var _profileKey: Data? = nil
var _timestamp: UInt64? = nil
var _quote: SignalServiceProtos_DataMessage.Quote? = nil
var _contact: [SignalServiceProtos_DataMessage.Contact] = []
var _preview: [SignalServiceProtos_Preview] = []
var _sticker: SignalServiceProtos_DataMessage.Sticker? = nil
var _requiredProtocolVersion: UInt32? = nil
var _isViewOnce: Bool? = nil
var _reaction: SignalServiceProtos_DataMessage.Reaction? = nil
var _delete: SignalServiceProtos_DataMessage.Delete? = nil
var _bodyRanges: [SignalServiceProtos_BodyRange] = []
var _groupCallUpdate: SignalServiceProtos_DataMessage.GroupCallUpdate? = nil
var _payment: SignalServiceProtos_DataMessage.Payment? = nil
var _storyContext: SignalServiceProtos_DataMessage.StoryContext? = nil
var _giftBadge: SignalServiceProtos_DataMessage.GiftBadge? = nil
var _pollCreate: SignalServiceProtos_DataMessage.PollCreate? = nil
var _pollTerminate: SignalServiceProtos_DataMessage.PollTerminate? = nil
var _pollVote: SignalServiceProtos_DataMessage.PollVote? = nil
var _pinMessage: SignalServiceProtos_DataMessage.PinMessage? = nil
var _unpinMessage: SignalServiceProtos_DataMessage.UnpinMessage? = nil
var _adminDelete: SignalServiceProtos_DataMessage.AdminDelete? = nil
// This property is used as the initial default value for new instances of the type.
// The type itself is protecting the reference to its storage via CoW semantics.
// This will force a copy to be made of this reference when the first mutation occurs;
// hence, it is safe to mark this as `nonisolated(unsafe)`.
static nonisolated(unsafe) let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_body = source._body
_attachments = source._attachments
_groupV2 = source._groupV2
_flags = source._flags
_expireTimer = source._expireTimer
_expireTimerVersion = source._expireTimerVersion
_profileKey = source._profileKey
_timestamp = source._timestamp
_quote = source._quote
_contact = source._contact
_preview = source._preview
_sticker = source._sticker
_requiredProtocolVersion = source._requiredProtocolVersion
_isViewOnce = source._isViewOnce
_reaction = source._reaction
_delete = source._delete
_bodyRanges = source._bodyRanges
_groupCallUpdate = source._groupCallUpdate
_payment = source._payment
_storyContext = source._storyContext
_giftBadge = source._giftBadge
_pollCreate = source._pollCreate
_pollTerminate = source._pollTerminate
_pollVote = source._pollVote
_pinMessage = source._pinMessage
_unpinMessage = source._unpinMessage
_adminDelete = source._adminDelete
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularStringField(value: &_storage._body) }()
case 2: try { try decoder.decodeRepeatedMessageField(value: &_storage._attachments) }()
case 4: try { try decoder.decodeSingularUInt32Field(value: &_storage._flags) }()
case 5: try { try decoder.decodeSingularUInt32Field(value: &_storage._expireTimer) }()
case 6: try { try decoder.decodeSingularBytesField(value: &_storage._profileKey) }()
case 7: try { try decoder.decodeSingularUInt64Field(value: &_storage._timestamp) }()
case 8: try { try decoder.decodeSingularMessageField(value: &_storage._quote) }()
case 9: try { try decoder.decodeRepeatedMessageField(value: &_storage._contact) }()
case 10: try { try decoder.decodeRepeatedMessageField(value: &_storage._preview) }()
case 11: try { try decoder.decodeSingularMessageField(value: &_storage._sticker) }()
case 12: try { try decoder.decodeSingularUInt32Field(value: &_storage._requiredProtocolVersion) }()
case 14: try { try decoder.decodeSingularBoolField(value: &_storage._isViewOnce) }()
case 15: try { try decoder.decodeSingularMessageField(value: &_storage._groupV2) }()
case 16: try { try decoder.decodeSingularMessageField(value: &_storage._reaction) }()
case 17: try { try decoder.decodeSingularMessageField(value: &_storage._delete) }()
case 18: try { try decoder.decodeRepeatedMessageField(value: &_storage._bodyRanges) }()
case 19: try { try decoder.decodeSingularMessageField(value: &_storage._groupCallUpdate) }()
case 20: try { try decoder.decodeSingularMessageField(value: &_storage._payment) }()
case 21: try { try decoder.decodeSingularMessageField(value: &_storage._storyContext) }()
case 22: try { try decoder.decodeSingularMessageField(value: &_storage._giftBadge) }()
case 23: try { try decoder.decodeSingularUInt32Field(value: &_storage._expireTimerVersion) }()
case 24: try { try decoder.decodeSingularMessageField(value: &_storage._pollCreate) }()
case 25: try { try decoder.decodeSingularMessageField(value: &_storage._pollTerminate) }()
case 26: try { try decoder.decodeSingularMessageField(value: &_storage._pollVote) }()
case 27: try { try decoder.decodeSingularMessageField(value: &_storage._pinMessage) }()
case 28: try { try decoder.decodeSingularMessageField(value: &_storage._unpinMessage) }()
case 29: try { try decoder.decodeSingularMessageField(value: &_storage._adminDelete) }()
default: break
}
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = _storage._body {
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
} }()
if !_storage._attachments.isEmpty {
try visitor.visitRepeatedMessageField(value: _storage._attachments, fieldNumber: 2)
}
try { if let v = _storage._flags {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 4)
} }()
try { if let v = _storage._expireTimer {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 5)
} }()
try { if let v = _storage._profileKey {
try visitor.visitSingularBytesField(value: v, fieldNumber: 6)
} }()
try { if let v = _storage._timestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 7)
} }()
try { if let v = _storage._quote {
try visitor.visitSingularMessageField(value: v, fieldNumber: 8)
} }()
if !_storage._contact.isEmpty {
try visitor.visitRepeatedMessageField(value: _storage._contact, fieldNumber: 9)
}
if !_storage._preview.isEmpty {
try visitor.visitRepeatedMessageField(value: _storage._preview, fieldNumber: 10)
}
try { if let v = _storage._sticker {
try visitor.visitSingularMessageField(value: v, fieldNumber: 11)
} }()
try { if let v = _storage._requiredProtocolVersion {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 12)
} }()
try { if let v = _storage._isViewOnce {
try visitor.visitSingularBoolField(value: v, fieldNumber: 14)
} }()
try { if let v = _storage._groupV2 {
try visitor.visitSingularMessageField(value: v, fieldNumber: 15)
} }()
try { if let v = _storage._reaction {
try visitor.visitSingularMessageField(value: v, fieldNumber: 16)
} }()
try { if let v = _storage._delete {
try visitor.visitSingularMessageField(value: v, fieldNumber: 17)
} }()
if !_storage._bodyRanges.isEmpty {
try visitor.visitRepeatedMessageField(value: _storage._bodyRanges, fieldNumber: 18)
}
try { if let v = _storage._groupCallUpdate {
try visitor.visitSingularMessageField(value: v, fieldNumber: 19)
} }()
try { if let v = _storage._payment {
try visitor.visitSingularMessageField(value: v, fieldNumber: 20)
} }()
try { if let v = _storage._storyContext {
try visitor.visitSingularMessageField(value: v, fieldNumber: 21)
} }()
try { if let v = _storage._giftBadge {
try visitor.visitSingularMessageField(value: v, fieldNumber: 22)
} }()
try { if let v = _storage._expireTimerVersion {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 23)
} }()
try { if let v = _storage._pollCreate {
try visitor.visitSingularMessageField(value: v, fieldNumber: 24)
} }()
try { if let v = _storage._pollTerminate {
try visitor.visitSingularMessageField(value: v, fieldNumber: 25)
} }()
try { if let v = _storage._pollVote {
try visitor.visitSingularMessageField(value: v, fieldNumber: 26)
} }()
try { if let v = _storage._pinMessage {
try visitor.visitSingularMessageField(value: v, fieldNumber: 27)
} }()
try { if let v = _storage._unpinMessage {
try visitor.visitSingularMessageField(value: v, fieldNumber: 28)
} }()
try { if let v = _storage._adminDelete {
try visitor.visitSingularMessageField(value: v, fieldNumber: 29)
} }()
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage, rhs: SignalServiceProtos_DataMessage) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._body != rhs_storage._body {return false}
if _storage._attachments != rhs_storage._attachments {return false}
if _storage._groupV2 != rhs_storage._groupV2 {return false}
if _storage._flags != rhs_storage._flags {return false}
if _storage._expireTimer != rhs_storage._expireTimer {return false}
if _storage._expireTimerVersion != rhs_storage._expireTimerVersion {return false}
if _storage._profileKey != rhs_storage._profileKey {return false}
if _storage._timestamp != rhs_storage._timestamp {return false}
if _storage._quote != rhs_storage._quote {return false}
if _storage._contact != rhs_storage._contact {return false}
if _storage._preview != rhs_storage._preview {return false}
if _storage._sticker != rhs_storage._sticker {return false}
if _storage._requiredProtocolVersion != rhs_storage._requiredProtocolVersion {return false}
if _storage._isViewOnce != rhs_storage._isViewOnce {return false}
if _storage._reaction != rhs_storage._reaction {return false}
if _storage._delete != rhs_storage._delete {return false}
if _storage._bodyRanges != rhs_storage._bodyRanges {return false}
if _storage._groupCallUpdate != rhs_storage._groupCallUpdate {return false}
if _storage._payment != rhs_storage._payment {return false}
if _storage._storyContext != rhs_storage._storyContext {return false}
if _storage._giftBadge != rhs_storage._giftBadge {return false}
if _storage._pollCreate != rhs_storage._pollCreate {return false}
if _storage._pollTerminate != rhs_storage._pollTerminate {return false}
if _storage._pollVote != rhs_storage._pollVote {return false}
if _storage._pinMessage != rhs_storage._pinMessage {return false}
if _storage._unpinMessage != rhs_storage._unpinMessage {return false}
if _storage._adminDelete != rhs_storage._adminDelete {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.Flags: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}END_SESSION\0\u{1}EXPIRATION_TIMER_UPDATE\0\u{2}\u{2}PROFILE_KEY_UPDATE\0")
}
extension SignalServiceProtos_DataMessage.ProtocolVersion: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0INITIAL\0\u{1}MESSAGE_TIMERS\0\u{1}VIEW_ONCE\0\u{1}VIEW_ONCE_VIDEO\0\u{1}REACTIONS\0\u{1}CDN_SELECTOR_ATTACHMENTS\0\u{1}MENTIONS\0\u{1}PAYMENTS\0\u{9}POLLS\0\u{1}CURRENT\0")
}
extension SignalServiceProtos_DataMessage.Quote: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.protoMessageName + ".Quote"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}id\0\u{2}\u{2}text\0\u{1}attachments\0\u{1}authorAci\0\u{1}bodyRanges\0\u{1}type\0\u{1}authorAciBinary\0\u{c}\u{2}\u{1}")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularUInt64Field(value: &self._id) }()
case 3: try { try decoder.decodeSingularStringField(value: &self._text) }()
case 4: try { try decoder.decodeRepeatedMessageField(value: &self.attachments) }()
case 5: try { try decoder.decodeSingularStringField(value: &self._authorAci) }()
case 6: try { try decoder.decodeRepeatedMessageField(value: &self.bodyRanges) }()
case 7: try { try decoder.decodeSingularEnumField(value: &self._type) }()
case 8: try { try decoder.decodeSingularBytesField(value: &self._authorAciBinary) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._id {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 1)
} }()
try { if let v = self._text {
try visitor.visitSingularStringField(value: v, fieldNumber: 3)
} }()
if !self.attachments.isEmpty {
try visitor.visitRepeatedMessageField(value: self.attachments, fieldNumber: 4)
}
try { if let v = self._authorAci {
try visitor.visitSingularStringField(value: v, fieldNumber: 5)
} }()
if !self.bodyRanges.isEmpty {
try visitor.visitRepeatedMessageField(value: self.bodyRanges, fieldNumber: 6)
}
try { if let v = self._type {
try visitor.visitSingularEnumField(value: v, fieldNumber: 7)
} }()
try { if let v = self._authorAciBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 8)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.Quote, rhs: SignalServiceProtos_DataMessage.Quote) -> Bool {
if lhs._id != rhs._id {return false}
if lhs._authorAci != rhs._authorAci {return false}
if lhs._text != rhs._text {return false}
if lhs.attachments != rhs.attachments {return false}
if lhs.bodyRanges != rhs.bodyRanges {return false}
if lhs._type != rhs._type {return false}
if lhs._authorAciBinary != rhs._authorAciBinary {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.Quote.TypeEnum: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0NORMAL\0\u{1}GIFT_BADGE\0")
}
extension SignalServiceProtos_DataMessage.Quote.QuotedAttachment: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.Quote.protoMessageName + ".QuotedAttachment"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}contentType\0\u{1}fileName\0\u{1}thumbnail\0")
fileprivate class _StorageClass {
var _contentType: String? = nil
var _fileName: String? = nil
var _thumbnail: SignalServiceProtos_AttachmentPointer? = nil
// This property is used as the initial default value for new instances of the type.
// The type itself is protecting the reference to its storage via CoW semantics.
// This will force a copy to be made of this reference when the first mutation occurs;
// hence, it is safe to mark this as `nonisolated(unsafe)`.
static nonisolated(unsafe) let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_contentType = source._contentType
_fileName = source._fileName
_thumbnail = source._thumbnail
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularStringField(value: &_storage._contentType) }()
case 2: try { try decoder.decodeSingularStringField(value: &_storage._fileName) }()
case 3: try { try decoder.decodeSingularMessageField(value: &_storage._thumbnail) }()
default: break
}
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = _storage._contentType {
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
} }()
try { if let v = _storage._fileName {
try visitor.visitSingularStringField(value: v, fieldNumber: 2)
} }()
try { if let v = _storage._thumbnail {
try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
} }()
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.Quote.QuotedAttachment, rhs: SignalServiceProtos_DataMessage.Quote.QuotedAttachment) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._contentType != rhs_storage._contentType {return false}
if _storage._fileName != rhs_storage._fileName {return false}
if _storage._thumbnail != rhs_storage._thumbnail {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.Contact: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.protoMessageName + ".Contact"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}name\0\u{2}\u{2}number\0\u{1}email\0\u{1}address\0\u{1}avatar\0\u{1}organization\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularMessageField(value: &self._name) }()
case 3: try { try decoder.decodeRepeatedMessageField(value: &self.number) }()
case 4: try { try decoder.decodeRepeatedMessageField(value: &self.email) }()
case 5: try { try decoder.decodeRepeatedMessageField(value: &self.address) }()
case 6: try { try decoder.decodeSingularMessageField(value: &self._avatar) }()
case 7: try { try decoder.decodeSingularStringField(value: &self._organization) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._name {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
} }()
if !self.number.isEmpty {
try visitor.visitRepeatedMessageField(value: self.number, fieldNumber: 3)
}
if !self.email.isEmpty {
try visitor.visitRepeatedMessageField(value: self.email, fieldNumber: 4)
}
if !self.address.isEmpty {
try visitor.visitRepeatedMessageField(value: self.address, fieldNumber: 5)
}
try { if let v = self._avatar {
try visitor.visitSingularMessageField(value: v, fieldNumber: 6)
} }()
try { if let v = self._organization {
try visitor.visitSingularStringField(value: v, fieldNumber: 7)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.Contact, rhs: SignalServiceProtos_DataMessage.Contact) -> Bool {
if lhs._name != rhs._name {return false}
if lhs.number != rhs.number {return false}
if lhs.email != rhs.email {return false}
if lhs.address != rhs.address {return false}
if lhs._avatar != rhs._avatar {return false}
if lhs._organization != rhs._organization {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.Contact.Name: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.Contact.protoMessageName + ".Name"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}givenName\0\u{1}familyName\0\u{1}prefix\0\u{1}suffix\0\u{1}middleName\0\u{c}\u{6}\u{1}")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularStringField(value: &self._givenName) }()
case 2: try { try decoder.decodeSingularStringField(value: &self._familyName) }()
case 3: try { try decoder.decodeSingularStringField(value: &self._prefix) }()
case 4: try { try decoder.decodeSingularStringField(value: &self._suffix) }()
case 5: try { try decoder.decodeSingularStringField(value: &self._middleName) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._givenName {
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
} }()
try { if let v = self._familyName {
try visitor.visitSingularStringField(value: v, fieldNumber: 2)
} }()
try { if let v = self._prefix {
try visitor.visitSingularStringField(value: v, fieldNumber: 3)
} }()
try { if let v = self._suffix {
try visitor.visitSingularStringField(value: v, fieldNumber: 4)
} }()
try { if let v = self._middleName {
try visitor.visitSingularStringField(value: v, fieldNumber: 5)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.Contact.Name, rhs: SignalServiceProtos_DataMessage.Contact.Name) -> Bool {
if lhs._givenName != rhs._givenName {return false}
if lhs._familyName != rhs._familyName {return false}
if lhs._prefix != rhs._prefix {return false}
if lhs._suffix != rhs._suffix {return false}
if lhs._middleName != rhs._middleName {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.Contact.Phone: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.Contact.protoMessageName + ".Phone"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}value\0\u{1}type\0\u{1}label\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularStringField(value: &self._value) }()
case 2: try { try decoder.decodeSingularEnumField(value: &self._type) }()
case 3: try { try decoder.decodeSingularStringField(value: &self._label) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._value {
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
} }()
try { if let v = self._type {
try visitor.visitSingularEnumField(value: v, fieldNumber: 2)
} }()
try { if let v = self._label {
try visitor.visitSingularStringField(value: v, fieldNumber: 3)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.Contact.Phone, rhs: SignalServiceProtos_DataMessage.Contact.Phone) -> Bool {
if lhs._value != rhs._value {return false}
if lhs._type != rhs._type {return false}
if lhs._label != rhs._label {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.Contact.Phone.TypeEnum: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}HOME\0\u{1}MOBILE\0\u{1}WORK\0\u{1}CUSTOM\0")
}
extension SignalServiceProtos_DataMessage.Contact.Email: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.Contact.protoMessageName + ".Email"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}value\0\u{1}type\0\u{1}label\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularStringField(value: &self._value) }()
case 2: try { try decoder.decodeSingularEnumField(value: &self._type) }()
case 3: try { try decoder.decodeSingularStringField(value: &self._label) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._value {
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
} }()
try { if let v = self._type {
try visitor.visitSingularEnumField(value: v, fieldNumber: 2)
} }()
try { if let v = self._label {
try visitor.visitSingularStringField(value: v, fieldNumber: 3)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.Contact.Email, rhs: SignalServiceProtos_DataMessage.Contact.Email) -> Bool {
if lhs._value != rhs._value {return false}
if lhs._type != rhs._type {return false}
if lhs._label != rhs._label {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.Contact.Email.TypeEnum: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}HOME\0\u{1}MOBILE\0\u{1}WORK\0\u{1}CUSTOM\0")
}
extension SignalServiceProtos_DataMessage.Contact.PostalAddress: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.Contact.protoMessageName + ".PostalAddress"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}type\0\u{1}label\0\u{1}street\0\u{1}pobox\0\u{1}neighborhood\0\u{1}city\0\u{1}region\0\u{1}postcode\0\u{1}country\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularEnumField(value: &self._type) }()
case 2: try { try decoder.decodeSingularStringField(value: &self._label) }()
case 3: try { try decoder.decodeSingularStringField(value: &self._street) }()
case 4: try { try decoder.decodeSingularStringField(value: &self._pobox) }()
case 5: try { try decoder.decodeSingularStringField(value: &self._neighborhood) }()
case 6: try { try decoder.decodeSingularStringField(value: &self._city) }()
case 7: try { try decoder.decodeSingularStringField(value: &self._region) }()
case 8: try { try decoder.decodeSingularStringField(value: &self._postcode) }()
case 9: try { try decoder.decodeSingularStringField(value: &self._country) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._type {
try visitor.visitSingularEnumField(value: v, fieldNumber: 1)
} }()
try { if let v = self._label {
try visitor.visitSingularStringField(value: v, fieldNumber: 2)
} }()
try { if let v = self._street {
try visitor.visitSingularStringField(value: v, fieldNumber: 3)
} }()
try { if let v = self._pobox {
try visitor.visitSingularStringField(value: v, fieldNumber: 4)
} }()
try { if let v = self._neighborhood {
try visitor.visitSingularStringField(value: v, fieldNumber: 5)
} }()
try { if let v = self._city {
try visitor.visitSingularStringField(value: v, fieldNumber: 6)
} }()
try { if let v = self._region {
try visitor.visitSingularStringField(value: v, fieldNumber: 7)
} }()
try { if let v = self._postcode {
try visitor.visitSingularStringField(value: v, fieldNumber: 8)
} }()
try { if let v = self._country {
try visitor.visitSingularStringField(value: v, fieldNumber: 9)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.Contact.PostalAddress, rhs: SignalServiceProtos_DataMessage.Contact.PostalAddress) -> Bool {
if lhs._type != rhs._type {return false}
if lhs._label != rhs._label {return false}
if lhs._street != rhs._street {return false}
if lhs._pobox != rhs._pobox {return false}
if lhs._neighborhood != rhs._neighborhood {return false}
if lhs._city != rhs._city {return false}
if lhs._region != rhs._region {return false}
if lhs._postcode != rhs._postcode {return false}
if lhs._country != rhs._country {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.Contact.PostalAddress.TypeEnum: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}HOME\0\u{1}WORK\0\u{1}CUSTOM\0")
}
extension SignalServiceProtos_DataMessage.Contact.Avatar: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.Contact.protoMessageName + ".Avatar"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}avatar\0\u{1}isProfile\0")
fileprivate class _StorageClass {
var _avatar: SignalServiceProtos_AttachmentPointer? = nil
var _isProfile: Bool? = nil
// This property is used as the initial default value for new instances of the type.
// The type itself is protecting the reference to its storage via CoW semantics.
// This will force a copy to be made of this reference when the first mutation occurs;
// hence, it is safe to mark this as `nonisolated(unsafe)`.
static nonisolated(unsafe) let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_avatar = source._avatar
_isProfile = source._isProfile
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularMessageField(value: &_storage._avatar) }()
case 2: try { try decoder.decodeSingularBoolField(value: &_storage._isProfile) }()
default: break
}
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = _storage._avatar {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
} }()
try { if let v = _storage._isProfile {
try visitor.visitSingularBoolField(value: v, fieldNumber: 2)
} }()
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.Contact.Avatar, rhs: SignalServiceProtos_DataMessage.Contact.Avatar) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._avatar != rhs_storage._avatar {return false}
if _storage._isProfile != rhs_storage._isProfile {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.Sticker: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.protoMessageName + ".Sticker"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}packId\0\u{1}packKey\0\u{1}stickerId\0\u{1}data\0\u{1}emoji\0")
fileprivate class _StorageClass {
var _packID: Data? = nil
var _packKey: Data? = nil
var _stickerID: UInt32? = nil
var _data: SignalServiceProtos_AttachmentPointer? = nil
var _emoji: String? = nil
// This property is used as the initial default value for new instances of the type.
// The type itself is protecting the reference to its storage via CoW semantics.
// This will force a copy to be made of this reference when the first mutation occurs;
// hence, it is safe to mark this as `nonisolated(unsafe)`.
static nonisolated(unsafe) let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_packID = source._packID
_packKey = source._packKey
_stickerID = source._stickerID
_data = source._data
_emoji = source._emoji
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularBytesField(value: &_storage._packID) }()
case 2: try { try decoder.decodeSingularBytesField(value: &_storage._packKey) }()
case 3: try { try decoder.decodeSingularUInt32Field(value: &_storage._stickerID) }()
case 4: try { try decoder.decodeSingularMessageField(value: &_storage._data) }()
case 5: try { try decoder.decodeSingularStringField(value: &_storage._emoji) }()
default: break
}
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = _storage._packID {
try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
} }()
try { if let v = _storage._packKey {
try visitor.visitSingularBytesField(value: v, fieldNumber: 2)
} }()
try { if let v = _storage._stickerID {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 3)
} }()
try { if let v = _storage._data {
try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
} }()
try { if let v = _storage._emoji {
try visitor.visitSingularStringField(value: v, fieldNumber: 5)
} }()
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.Sticker, rhs: SignalServiceProtos_DataMessage.Sticker) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._packID != rhs_storage._packID {return false}
if _storage._packKey != rhs_storage._packKey {return false}
if _storage._stickerID != rhs_storage._stickerID {return false}
if _storage._data != rhs_storage._data {return false}
if _storage._emoji != rhs_storage._emoji {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.Reaction: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.protoMessageName + ".Reaction"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}emoji\0\u{1}remove\0\u{2}\u{2}targetAuthorAci\0\u{1}timestamp\0\u{1}targetAuthorAciBinary\0\u{c}\u{3}\u{1}")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularStringField(value: &self._emoji) }()
case 2: try { try decoder.decodeSingularBoolField(value: &self._remove) }()
case 4: try { try decoder.decodeSingularStringField(value: &self._targetAuthorAci) }()
case 5: try { try decoder.decodeSingularUInt64Field(value: &self._timestamp) }()
case 6: try { try decoder.decodeSingularBytesField(value: &self._targetAuthorAciBinary) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._emoji {
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
} }()
try { if let v = self._remove {
try visitor.visitSingularBoolField(value: v, fieldNumber: 2)
} }()
try { if let v = self._targetAuthorAci {
try visitor.visitSingularStringField(value: v, fieldNumber: 4)
} }()
try { if let v = self._timestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 5)
} }()
try { if let v = self._targetAuthorAciBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 6)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.Reaction, rhs: SignalServiceProtos_DataMessage.Reaction) -> Bool {
if lhs._emoji != rhs._emoji {return false}
if lhs._remove != rhs._remove {return false}
if lhs._targetAuthorAci != rhs._targetAuthorAci {return false}
if lhs._timestamp != rhs._timestamp {return false}
if lhs._targetAuthorAciBinary != rhs._targetAuthorAciBinary {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.Delete: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.protoMessageName + ".Delete"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}targetSentTimestamp\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularUInt64Field(value: &self._targetSentTimestamp) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._targetSentTimestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 1)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.Delete, rhs: SignalServiceProtos_DataMessage.Delete) -> Bool {
if lhs._targetSentTimestamp != rhs._targetSentTimestamp {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.GroupCallUpdate: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.protoMessageName + ".GroupCallUpdate"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}eraId\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularStringField(value: &self._eraID) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._eraID {
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.GroupCallUpdate, rhs: SignalServiceProtos_DataMessage.GroupCallUpdate) -> Bool {
if lhs._eraID != rhs._eraID {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.Payment: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.protoMessageName + ".Payment"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}notification\0\u{1}activation\0\u{c}j\u{f}\u{1}\u{c}k\u{f}\u{1}")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularMessageField(value: &self._notification) }()
case 2: try { try decoder.decodeSingularMessageField(value: &self._activation) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._notification {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
} }()
try { if let v = self._activation {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.Payment, rhs: SignalServiceProtos_DataMessage.Payment) -> Bool {
if lhs._notification != rhs._notification {return false}
if lhs._activation != rhs._activation {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.Payment.Amount: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.Payment.protoMessageName + ".Amount"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}mobileCoin\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularMessageField(value: &self._mobileCoin) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._mobileCoin {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.Payment.Amount, rhs: SignalServiceProtos_DataMessage.Payment.Amount) -> Bool {
if lhs._mobileCoin != rhs._mobileCoin {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.Payment.Amount.MobileCoin: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.Payment.Amount.protoMessageName + ".MobileCoin"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}picoMob\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularUInt64Field(value: &self._picoMob) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._picoMob {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 1)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.Payment.Amount.MobileCoin, rhs: SignalServiceProtos_DataMessage.Payment.Amount.MobileCoin) -> Bool {
if lhs._picoMob != rhs._picoMob {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.Payment.Notification: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.Payment.protoMessageName + ".Notification"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}mobileCoin\0\u{1}note\0\u{c}k\u{f}\u{1}")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularMessageField(value: &self._mobileCoin) }()
case 2: try { try decoder.decodeSingularStringField(value: &self._note) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._mobileCoin {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
} }()
try { if let v = self._note {
try visitor.visitSingularStringField(value: v, fieldNumber: 2)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.Payment.Notification, rhs: SignalServiceProtos_DataMessage.Payment.Notification) -> Bool {
if lhs._mobileCoin != rhs._mobileCoin {return false}
if lhs._note != rhs._note {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.Payment.Notification.MobileCoin: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.Payment.Notification.protoMessageName + ".MobileCoin"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}receipt\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularBytesField(value: &self._receipt) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._receipt {
try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.Payment.Notification.MobileCoin, rhs: SignalServiceProtos_DataMessage.Payment.Notification.MobileCoin) -> Bool {
if lhs._receipt != rhs._receipt {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.Payment.Activation: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.Payment.protoMessageName + ".Activation"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}type\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularEnumField(value: &self._type) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._type {
try visitor.visitSingularEnumField(value: v, fieldNumber: 1)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.Payment.Activation, rhs: SignalServiceProtos_DataMessage.Payment.Activation) -> Bool {
if lhs._type != rhs._type {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.Payment.Activation.TypeEnum: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0REQUEST\0\u{1}ACTIVATED\0")
}
extension SignalServiceProtos_DataMessage.StoryContext: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.protoMessageName + ".StoryContext"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}authorAci\0\u{1}sentTimestamp\0\u{1}authorAciBinary\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularStringField(value: &self._authorAci) }()
case 2: try { try decoder.decodeSingularUInt64Field(value: &self._sentTimestamp) }()
case 3: try { try decoder.decodeSingularBytesField(value: &self._authorAciBinary) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._authorAci {
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
} }()
try { if let v = self._sentTimestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 2)
} }()
try { if let v = self._authorAciBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 3)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.StoryContext, rhs: SignalServiceProtos_DataMessage.StoryContext) -> Bool {
if lhs._authorAci != rhs._authorAci {return false}
if lhs._sentTimestamp != rhs._sentTimestamp {return false}
if lhs._authorAciBinary != rhs._authorAciBinary {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.GiftBadge: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.protoMessageName + ".GiftBadge"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}receiptCredentialPresentation\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularBytesField(value: &self._receiptCredentialPresentation) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._receiptCredentialPresentation {
try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.GiftBadge, rhs: SignalServiceProtos_DataMessage.GiftBadge) -> Bool {
if lhs._receiptCredentialPresentation != rhs._receiptCredentialPresentation {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.PollCreate: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.protoMessageName + ".PollCreate"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}question\0\u{1}allowMultiple\0\u{1}options\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularStringField(value: &self._question) }()
case 2: try { try decoder.decodeSingularBoolField(value: &self._allowMultiple) }()
case 3: try { try decoder.decodeRepeatedStringField(value: &self.options) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._question {
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
} }()
try { if let v = self._allowMultiple {
try visitor.visitSingularBoolField(value: v, fieldNumber: 2)
} }()
if !self.options.isEmpty {
try visitor.visitRepeatedStringField(value: self.options, fieldNumber: 3)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.PollCreate, rhs: SignalServiceProtos_DataMessage.PollCreate) -> Bool {
if lhs._question != rhs._question {return false}
if lhs._allowMultiple != rhs._allowMultiple {return false}
if lhs.options != rhs.options {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.PollTerminate: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.protoMessageName + ".PollTerminate"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}targetSentTimestamp\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularUInt64Field(value: &self._targetSentTimestamp) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._targetSentTimestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 1)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.PollTerminate, rhs: SignalServiceProtos_DataMessage.PollTerminate) -> Bool {
if lhs._targetSentTimestamp != rhs._targetSentTimestamp {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.PollVote: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.protoMessageName + ".PollVote"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}targetAuthorAciBinary\0\u{1}targetSentTimestamp\0\u{1}optionIndexes\0\u{1}voteCount\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularBytesField(value: &self._targetAuthorAciBinary) }()
case 2: try { try decoder.decodeSingularUInt64Field(value: &self._targetSentTimestamp) }()
case 3: try { try decoder.decodeRepeatedUInt32Field(value: &self.optionIndexes) }()
case 4: try { try decoder.decodeSingularUInt32Field(value: &self._voteCount) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._targetAuthorAciBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
} }()
try { if let v = self._targetSentTimestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 2)
} }()
if !self.optionIndexes.isEmpty {
try visitor.visitRepeatedUInt32Field(value: self.optionIndexes, fieldNumber: 3)
}
try { if let v = self._voteCount {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 4)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.PollVote, rhs: SignalServiceProtos_DataMessage.PollVote) -> Bool {
if lhs._targetAuthorAciBinary != rhs._targetAuthorAciBinary {return false}
if lhs._targetSentTimestamp != rhs._targetSentTimestamp {return false}
if lhs.optionIndexes != rhs.optionIndexes {return false}
if lhs._voteCount != rhs._voteCount {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.PinMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.protoMessageName + ".PinMessage"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}targetAuthorAciBinary\0\u{1}targetSentTimestamp\0\u{1}pinDurationSeconds\0\u{1}pinDurationForever\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularBytesField(value: &self._targetAuthorAciBinary) }()
case 2: try { try decoder.decodeSingularUInt64Field(value: &self._targetSentTimestamp) }()
case 3: try { try decoder.decodeSingularUInt32Field(value: &self._pinDurationSeconds) }()
case 4: try { try decoder.decodeSingularBoolField(value: &self._pinDurationForever) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._targetAuthorAciBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
} }()
try { if let v = self._targetSentTimestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 2)
} }()
try { if let v = self._pinDurationSeconds {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 3)
} }()
try { if let v = self._pinDurationForever {
try visitor.visitSingularBoolField(value: v, fieldNumber: 4)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.PinMessage, rhs: SignalServiceProtos_DataMessage.PinMessage) -> Bool {
if lhs._targetAuthorAciBinary != rhs._targetAuthorAciBinary {return false}
if lhs._targetSentTimestamp != rhs._targetSentTimestamp {return false}
if lhs._pinDurationSeconds != rhs._pinDurationSeconds {return false}
if lhs._pinDurationForever != rhs._pinDurationForever {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.UnpinMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.protoMessageName + ".UnpinMessage"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}targetAuthorAciBinary\0\u{1}targetSentTimestamp\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularBytesField(value: &self._targetAuthorAciBinary) }()
case 2: try { try decoder.decodeSingularUInt64Field(value: &self._targetSentTimestamp) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._targetAuthorAciBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
} }()
try { if let v = self._targetSentTimestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 2)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.UnpinMessage, rhs: SignalServiceProtos_DataMessage.UnpinMessage) -> Bool {
if lhs._targetAuthorAciBinary != rhs._targetAuthorAciBinary {return false}
if lhs._targetSentTimestamp != rhs._targetSentTimestamp {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DataMessage.AdminDelete: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_DataMessage.protoMessageName + ".AdminDelete"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}targetAuthorAciBinary\0\u{1}targetSentTimestamp\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularBytesField(value: &self._targetAuthorAciBinary) }()
case 2: try { try decoder.decodeSingularUInt64Field(value: &self._targetSentTimestamp) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._targetAuthorAciBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
} }()
try { if let v = self._targetSentTimestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 2)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DataMessage.AdminDelete, rhs: SignalServiceProtos_DataMessage.AdminDelete) -> Bool {
if lhs._targetAuthorAciBinary != rhs._targetAuthorAciBinary {return false}
if lhs._targetSentTimestamp != rhs._targetSentTimestamp {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_NullMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".NullMessage"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}padding\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularBytesField(value: &self._padding) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._padding {
try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_NullMessage, rhs: SignalServiceProtos_NullMessage) -> Bool {
if lhs._padding != rhs._padding {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_ReceiptMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".ReceiptMessage"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}type\0\u{1}timestamp\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularEnumField(value: &self._type) }()
case 2: try { try decoder.decodeRepeatedUInt64Field(value: &self.timestamp) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._type {
try visitor.visitSingularEnumField(value: v, fieldNumber: 1)
} }()
if !self.timestamp.isEmpty {
try visitor.visitRepeatedUInt64Field(value: self.timestamp, fieldNumber: 2)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_ReceiptMessage, rhs: SignalServiceProtos_ReceiptMessage) -> Bool {
if lhs._type != rhs._type {return false}
if lhs.timestamp != rhs.timestamp {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_ReceiptMessage.TypeEnum: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0DELIVERY\0\u{1}READ\0\u{1}VIEWED\0")
}
extension SignalServiceProtos_Verified: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".Verified"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\u{2}identityKey\0\u{1}state\0\u{1}nullMessage\0\u{1}destinationAci\0\u{1}destinationAciBinary\0\u{c}\u{1}\u{1}")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 2: try { try decoder.decodeSingularBytesField(value: &self._identityKey) }()
case 3: try { try decoder.decodeSingularEnumField(value: &self._state) }()
case 4: try { try decoder.decodeSingularBytesField(value: &self._nullMessage) }()
case 5: try { try decoder.decodeSingularStringField(value: &self._destinationAci) }()
case 6: try { try decoder.decodeSingularBytesField(value: &self._destinationAciBinary) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._identityKey {
try visitor.visitSingularBytesField(value: v, fieldNumber: 2)
} }()
try { if let v = self._state {
try visitor.visitSingularEnumField(value: v, fieldNumber: 3)
} }()
try { if let v = self._nullMessage {
try visitor.visitSingularBytesField(value: v, fieldNumber: 4)
} }()
try { if let v = self._destinationAci {
try visitor.visitSingularStringField(value: v, fieldNumber: 5)
} }()
try { if let v = self._destinationAciBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 6)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_Verified, rhs: SignalServiceProtos_Verified) -> Bool {
if lhs._destinationAci != rhs._destinationAci {return false}
if lhs._identityKey != rhs._identityKey {return false}
if lhs._state != rhs._state {return false}
if lhs._nullMessage != rhs._nullMessage {return false}
if lhs._destinationAciBinary != rhs._destinationAciBinary {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_Verified.State: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0DEFAULT\0\u{1}VERIFIED\0\u{1}UNVERIFIED\0")
}
extension SignalServiceProtos_SyncMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".SyncMessage"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}sent\0\u{1}contacts\0\u{2}\u{2}request\0\u{1}read\0\u{1}blocked\0\u{1}verified\0\u{1}padding\0\u{1}configuration\0\u{1}stickerPackOperation\0\u{1}viewOnceOpen\0\u{1}fetchLatest\0\u{1}keys\0\u{1}messageRequestResponse\0\u{1}outgoingPayment\0\u{1}viewed\0\u{2}\u{2}pniChangeNumber\0\u{1}callEvent\0\u{1}callLinkUpdate\0\u{1}callLogEvent\0\u{1}deleteForMe\0\u{1}deviceNameChange\0\u{1}attachmentBackfillRequest\0\u{1}attachmentBackfillResponse\0\u{c}\u{3}\u{1}\u{c}\u{11}\u{1}")
fileprivate class _StorageClass {
var _sent: SignalServiceProtos_SyncMessage.Sent? = nil
var _contacts: SignalServiceProtos_SyncMessage.Contacts? = nil
var _request: SignalServiceProtos_SyncMessage.Request? = nil
var _read: [SignalServiceProtos_SyncMessage.Read] = []
var _blocked: SignalServiceProtos_SyncMessage.Blocked? = nil
var _verified: SignalServiceProtos_Verified? = nil
var _configuration: SignalServiceProtos_SyncMessage.Configuration? = nil
var _padding: Data? = nil
var _stickerPackOperation: [SignalServiceProtos_SyncMessage.StickerPackOperation] = []
var _viewOnceOpen: SignalServiceProtos_SyncMessage.ViewOnceOpen? = nil
var _fetchLatest: SignalServiceProtos_SyncMessage.FetchLatest? = nil
var _keys: SignalServiceProtos_SyncMessage.Keys? = nil
var _messageRequestResponse: SignalServiceProtos_SyncMessage.MessageRequestResponse? = nil
var _outgoingPayment: SignalServiceProtos_SyncMessage.OutgoingPayment? = nil
var _viewed: [SignalServiceProtos_SyncMessage.Viewed] = []
var _pniChangeNumber: SignalServiceProtos_SyncMessage.PniChangeNumber? = nil
var _callEvent: SignalServiceProtos_SyncMessage.CallEvent? = nil
var _callLinkUpdate: SignalServiceProtos_SyncMessage.CallLinkUpdate? = nil
var _callLogEvent: SignalServiceProtos_SyncMessage.CallLogEvent? = nil
var _deleteForMe: SignalServiceProtos_SyncMessage.DeleteForMe? = nil
var _deviceNameChange: SignalServiceProtos_SyncMessage.DeviceNameChange? = nil
var _attachmentBackfillRequest: SignalServiceProtos_SyncMessage.AttachmentBackfillRequest? = nil
var _attachmentBackfillResponse: SignalServiceProtos_SyncMessage.AttachmentBackfillResponse? = nil
// This property is used as the initial default value for new instances of the type.
// The type itself is protecting the reference to its storage via CoW semantics.
// This will force a copy to be made of this reference when the first mutation occurs;
// hence, it is safe to mark this as `nonisolated(unsafe)`.
static nonisolated(unsafe) let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_sent = source._sent
_contacts = source._contacts
_request = source._request
_read = source._read
_blocked = source._blocked
_verified = source._verified
_configuration = source._configuration
_padding = source._padding
_stickerPackOperation = source._stickerPackOperation
_viewOnceOpen = source._viewOnceOpen
_fetchLatest = source._fetchLatest
_keys = source._keys
_messageRequestResponse = source._messageRequestResponse
_outgoingPayment = source._outgoingPayment
_viewed = source._viewed
_pniChangeNumber = source._pniChangeNumber
_callEvent = source._callEvent
_callLinkUpdate = source._callLinkUpdate
_callLogEvent = source._callLogEvent
_deleteForMe = source._deleteForMe
_deviceNameChange = source._deviceNameChange
_attachmentBackfillRequest = source._attachmentBackfillRequest
_attachmentBackfillResponse = source._attachmentBackfillResponse
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularMessageField(value: &_storage._sent) }()
case 2: try { try decoder.decodeSingularMessageField(value: &_storage._contacts) }()
case 4: try { try decoder.decodeSingularMessageField(value: &_storage._request) }()
case 5: try { try decoder.decodeRepeatedMessageField(value: &_storage._read) }()
case 6: try { try decoder.decodeSingularMessageField(value: &_storage._blocked) }()
case 7: try { try decoder.decodeSingularMessageField(value: &_storage._verified) }()
case 8: try { try decoder.decodeSingularBytesField(value: &_storage._padding) }()
case 9: try { try decoder.decodeSingularMessageField(value: &_storage._configuration) }()
case 10: try { try decoder.decodeRepeatedMessageField(value: &_storage._stickerPackOperation) }()
case 11: try { try decoder.decodeSingularMessageField(value: &_storage._viewOnceOpen) }()
case 12: try { try decoder.decodeSingularMessageField(value: &_storage._fetchLatest) }()
case 13: try { try decoder.decodeSingularMessageField(value: &_storage._keys) }()
case 14: try { try decoder.decodeSingularMessageField(value: &_storage._messageRequestResponse) }()
case 15: try { try decoder.decodeSingularMessageField(value: &_storage._outgoingPayment) }()
case 16: try { try decoder.decodeRepeatedMessageField(value: &_storage._viewed) }()
case 18: try { try decoder.decodeSingularMessageField(value: &_storage._pniChangeNumber) }()
case 19: try { try decoder.decodeSingularMessageField(value: &_storage._callEvent) }()
case 20: try { try decoder.decodeSingularMessageField(value: &_storage._callLinkUpdate) }()
case 21: try { try decoder.decodeSingularMessageField(value: &_storage._callLogEvent) }()
case 22: try { try decoder.decodeSingularMessageField(value: &_storage._deleteForMe) }()
case 23: try { try decoder.decodeSingularMessageField(value: &_storage._deviceNameChange) }()
case 24: try { try decoder.decodeSingularMessageField(value: &_storage._attachmentBackfillRequest) }()
case 25: try { try decoder.decodeSingularMessageField(value: &_storage._attachmentBackfillResponse) }()
default: break
}
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = _storage._sent {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
} }()
try { if let v = _storage._contacts {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
} }()
try { if let v = _storage._request {
try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
} }()
if !_storage._read.isEmpty {
try visitor.visitRepeatedMessageField(value: _storage._read, fieldNumber: 5)
}
try { if let v = _storage._blocked {
try visitor.visitSingularMessageField(value: v, fieldNumber: 6)
} }()
try { if let v = _storage._verified {
try visitor.visitSingularMessageField(value: v, fieldNumber: 7)
} }()
try { if let v = _storage._padding {
try visitor.visitSingularBytesField(value: v, fieldNumber: 8)
} }()
try { if let v = _storage._configuration {
try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
} }()
if !_storage._stickerPackOperation.isEmpty {
try visitor.visitRepeatedMessageField(value: _storage._stickerPackOperation, fieldNumber: 10)
}
try { if let v = _storage._viewOnceOpen {
try visitor.visitSingularMessageField(value: v, fieldNumber: 11)
} }()
try { if let v = _storage._fetchLatest {
try visitor.visitSingularMessageField(value: v, fieldNumber: 12)
} }()
try { if let v = _storage._keys {
try visitor.visitSingularMessageField(value: v, fieldNumber: 13)
} }()
try { if let v = _storage._messageRequestResponse {
try visitor.visitSingularMessageField(value: v, fieldNumber: 14)
} }()
try { if let v = _storage._outgoingPayment {
try visitor.visitSingularMessageField(value: v, fieldNumber: 15)
} }()
if !_storage._viewed.isEmpty {
try visitor.visitRepeatedMessageField(value: _storage._viewed, fieldNumber: 16)
}
try { if let v = _storage._pniChangeNumber {
try visitor.visitSingularMessageField(value: v, fieldNumber: 18)
} }()
try { if let v = _storage._callEvent {
try visitor.visitSingularMessageField(value: v, fieldNumber: 19)
} }()
try { if let v = _storage._callLinkUpdate {
try visitor.visitSingularMessageField(value: v, fieldNumber: 20)
} }()
try { if let v = _storage._callLogEvent {
try visitor.visitSingularMessageField(value: v, fieldNumber: 21)
} }()
try { if let v = _storage._deleteForMe {
try visitor.visitSingularMessageField(value: v, fieldNumber: 22)
} }()
try { if let v = _storage._deviceNameChange {
try visitor.visitSingularMessageField(value: v, fieldNumber: 23)
} }()
try { if let v = _storage._attachmentBackfillRequest {
try visitor.visitSingularMessageField(value: v, fieldNumber: 24)
} }()
try { if let v = _storage._attachmentBackfillResponse {
try visitor.visitSingularMessageField(value: v, fieldNumber: 25)
} }()
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage, rhs: SignalServiceProtos_SyncMessage) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._sent != rhs_storage._sent {return false}
if _storage._contacts != rhs_storage._contacts {return false}
if _storage._request != rhs_storage._request {return false}
if _storage._read != rhs_storage._read {return false}
if _storage._blocked != rhs_storage._blocked {return false}
if _storage._verified != rhs_storage._verified {return false}
if _storage._configuration != rhs_storage._configuration {return false}
if _storage._padding != rhs_storage._padding {return false}
if _storage._stickerPackOperation != rhs_storage._stickerPackOperation {return false}
if _storage._viewOnceOpen != rhs_storage._viewOnceOpen {return false}
if _storage._fetchLatest != rhs_storage._fetchLatest {return false}
if _storage._keys != rhs_storage._keys {return false}
if _storage._messageRequestResponse != rhs_storage._messageRequestResponse {return false}
if _storage._outgoingPayment != rhs_storage._outgoingPayment {return false}
if _storage._viewed != rhs_storage._viewed {return false}
if _storage._pniChangeNumber != rhs_storage._pniChangeNumber {return false}
if _storage._callEvent != rhs_storage._callEvent {return false}
if _storage._callLinkUpdate != rhs_storage._callLinkUpdate {return false}
if _storage._callLogEvent != rhs_storage._callLogEvent {return false}
if _storage._deleteForMe != rhs_storage._deleteForMe {return false}
if _storage._deviceNameChange != rhs_storage._deviceNameChange {return false}
if _storage._attachmentBackfillRequest != rhs_storage._attachmentBackfillRequest {return false}
if _storage._attachmentBackfillResponse != rhs_storage._attachmentBackfillResponse {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.Sent: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.protoMessageName + ".Sent"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}destinationE164\0\u{1}timestamp\0\u{1}message\0\u{1}expirationStartTimestamp\0\u{1}unidentifiedStatus\0\u{1}isRecipientUpdate\0\u{1}destinationServiceId\0\u{1}storyMessage\0\u{1}storyMessageRecipients\0\u{1}editMessage\0\u{2}\u{2}destinationServiceIdBinary\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularStringField(value: &self._destinationE164) }()
case 2: try { try decoder.decodeSingularUInt64Field(value: &self._timestamp) }()
case 3: try { try decoder.decodeSingularMessageField(value: &self._message) }()
case 4: try { try decoder.decodeSingularUInt64Field(value: &self._expirationStartTimestamp) }()
case 5: try { try decoder.decodeRepeatedMessageField(value: &self.unidentifiedStatus) }()
case 6: try { try decoder.decodeSingularBoolField(value: &self._isRecipientUpdate) }()
case 7: try { try decoder.decodeSingularStringField(value: &self._destinationServiceID) }()
case 8: try { try decoder.decodeSingularMessageField(value: &self._storyMessage) }()
case 9: try { try decoder.decodeRepeatedMessageField(value: &self.storyMessageRecipients) }()
case 10: try { try decoder.decodeSingularMessageField(value: &self._editMessage) }()
case 12: try { try decoder.decodeSingularBytesField(value: &self._destinationServiceIDBinary) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._destinationE164 {
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
} }()
try { if let v = self._timestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 2)
} }()
try { if let v = self._message {
try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
} }()
try { if let v = self._expirationStartTimestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 4)
} }()
if !self.unidentifiedStatus.isEmpty {
try visitor.visitRepeatedMessageField(value: self.unidentifiedStatus, fieldNumber: 5)
}
try { if let v = self._isRecipientUpdate {
try visitor.visitSingularBoolField(value: v, fieldNumber: 6)
} }()
try { if let v = self._destinationServiceID {
try visitor.visitSingularStringField(value: v, fieldNumber: 7)
} }()
try { if let v = self._storyMessage {
try visitor.visitSingularMessageField(value: v, fieldNumber: 8)
} }()
if !self.storyMessageRecipients.isEmpty {
try visitor.visitRepeatedMessageField(value: self.storyMessageRecipients, fieldNumber: 9)
}
try { if let v = self._editMessage {
try visitor.visitSingularMessageField(value: v, fieldNumber: 10)
} }()
try { if let v = self._destinationServiceIDBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 12)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.Sent, rhs: SignalServiceProtos_SyncMessage.Sent) -> Bool {
if lhs._destinationE164 != rhs._destinationE164 {return false}
if lhs._destinationServiceID != rhs._destinationServiceID {return false}
if lhs._timestamp != rhs._timestamp {return false}
if lhs._message != rhs._message {return false}
if lhs._expirationStartTimestamp != rhs._expirationStartTimestamp {return false}
if lhs.unidentifiedStatus != rhs.unidentifiedStatus {return false}
if lhs._isRecipientUpdate != rhs._isRecipientUpdate {return false}
if lhs._storyMessage != rhs._storyMessage {return false}
if lhs.storyMessageRecipients != rhs.storyMessageRecipients {return false}
if lhs._editMessage != rhs._editMessage {return false}
if lhs._destinationServiceIDBinary != rhs._destinationServiceIDBinary {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.Sent.UnidentifiedDeliveryStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.Sent.protoMessageName + ".UnidentifiedDeliveryStatus"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\u{2}unidentified\0\u{1}destinationServiceId\0\u{2}\u{3}destinationServiceIdBinary\0\u{c}\u{1}\u{1}")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 2: try { try decoder.decodeSingularBoolField(value: &self._unidentified) }()
case 3: try { try decoder.decodeSingularStringField(value: &self._destinationServiceID) }()
case 6: try { try decoder.decodeSingularBytesField(value: &self._destinationServiceIDBinary) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._unidentified {
try visitor.visitSingularBoolField(value: v, fieldNumber: 2)
} }()
try { if let v = self._destinationServiceID {
try visitor.visitSingularStringField(value: v, fieldNumber: 3)
} }()
try { if let v = self._destinationServiceIDBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 6)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.Sent.UnidentifiedDeliveryStatus, rhs: SignalServiceProtos_SyncMessage.Sent.UnidentifiedDeliveryStatus) -> Bool {
if lhs._destinationServiceID != rhs._destinationServiceID {return false}
if lhs._unidentified != rhs._unidentified {return false}
if lhs._destinationServiceIDBinary != rhs._destinationServiceIDBinary {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.Sent.StoryMessageRecipient: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.Sent.protoMessageName + ".StoryMessageRecipient"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}destinationServiceId\0\u{1}distributionListIds\0\u{1}isAllowedToReply\0\u{2}\u{2}destinationServiceIdBinary\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularStringField(value: &self._destinationServiceID) }()
case 2: try { try decoder.decodeRepeatedStringField(value: &self.distributionListIds) }()
case 3: try { try decoder.decodeSingularBoolField(value: &self._isAllowedToReply) }()
case 5: try { try decoder.decodeSingularBytesField(value: &self._destinationServiceIDBinary) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._destinationServiceID {
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
} }()
if !self.distributionListIds.isEmpty {
try visitor.visitRepeatedStringField(value: self.distributionListIds, fieldNumber: 2)
}
try { if let v = self._isAllowedToReply {
try visitor.visitSingularBoolField(value: v, fieldNumber: 3)
} }()
try { if let v = self._destinationServiceIDBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 5)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.Sent.StoryMessageRecipient, rhs: SignalServiceProtos_SyncMessage.Sent.StoryMessageRecipient) -> Bool {
if lhs._destinationServiceID != rhs._destinationServiceID {return false}
if lhs.distributionListIds != rhs.distributionListIds {return false}
if lhs._isAllowedToReply != rhs._isAllowedToReply {return false}
if lhs._destinationServiceIDBinary != rhs._destinationServiceIDBinary {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.Contacts: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.protoMessageName + ".Contacts"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}blob\0\u{1}isComplete\0")
fileprivate class _StorageClass {
var _blob: SignalServiceProtos_AttachmentPointer? = nil
var _isComplete: Bool? = nil
// This property is used as the initial default value for new instances of the type.
// The type itself is protecting the reference to its storage via CoW semantics.
// This will force a copy to be made of this reference when the first mutation occurs;
// hence, it is safe to mark this as `nonisolated(unsafe)`.
static nonisolated(unsafe) let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_blob = source._blob
_isComplete = source._isComplete
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularMessageField(value: &_storage._blob) }()
case 2: try { try decoder.decodeSingularBoolField(value: &_storage._isComplete) }()
default: break
}
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = _storage._blob {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
} }()
try { if let v = _storage._isComplete {
try visitor.visitSingularBoolField(value: v, fieldNumber: 2)
} }()
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.Contacts, rhs: SignalServiceProtos_SyncMessage.Contacts) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._blob != rhs_storage._blob {return false}
if _storage._isComplete != rhs_storage._isComplete {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.Blocked: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.protoMessageName + ".Blocked"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}numbers\0\u{1}groupIds\0\u{1}acis\0\u{1}acisBinary\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeRepeatedStringField(value: &self.numbers) }()
case 2: try { try decoder.decodeRepeatedBytesField(value: &self.groupIds) }()
case 3: try { try decoder.decodeRepeatedStringField(value: &self.acis) }()
case 4: try { try decoder.decodeRepeatedBytesField(value: &self.acisBinary) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.numbers.isEmpty {
try visitor.visitRepeatedStringField(value: self.numbers, fieldNumber: 1)
}
if !self.groupIds.isEmpty {
try visitor.visitRepeatedBytesField(value: self.groupIds, fieldNumber: 2)
}
if !self.acis.isEmpty {
try visitor.visitRepeatedStringField(value: self.acis, fieldNumber: 3)
}
if !self.acisBinary.isEmpty {
try visitor.visitRepeatedBytesField(value: self.acisBinary, fieldNumber: 4)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.Blocked, rhs: SignalServiceProtos_SyncMessage.Blocked) -> Bool {
if lhs.numbers != rhs.numbers {return false}
if lhs.acis != rhs.acis {return false}
if lhs.groupIds != rhs.groupIds {return false}
if lhs.acisBinary != rhs.acisBinary {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.Request: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.protoMessageName + ".Request"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}type\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularEnumField(value: &self._type) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._type {
try visitor.visitSingularEnumField(value: v, fieldNumber: 1)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.Request, rhs: SignalServiceProtos_SyncMessage.Request) -> Bool {
if lhs._type != rhs._type {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.Request.TypeEnum: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0UNKNOWN\0\u{1}CONTACTS\0\u{2}\u{2}BLOCKED\0\u{1}CONFIGURATION\0\u{1}KEYS\0")
}
extension SignalServiceProtos_SyncMessage.Read: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.protoMessageName + ".Read"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\u{2}timestamp\0\u{1}senderAci\0\u{1}senderAciBinary\0\u{c}\u{1}\u{1}")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 2: try { try decoder.decodeSingularUInt64Field(value: &self._timestamp) }()
case 3: try { try decoder.decodeSingularStringField(value: &self._senderAci) }()
case 4: try { try decoder.decodeSingularBytesField(value: &self._senderAciBinary) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._timestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 2)
} }()
try { if let v = self._senderAci {
try visitor.visitSingularStringField(value: v, fieldNumber: 3)
} }()
try { if let v = self._senderAciBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 4)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.Read, rhs: SignalServiceProtos_SyncMessage.Read) -> Bool {
if lhs._senderAci != rhs._senderAci {return false}
if lhs._timestamp != rhs._timestamp {return false}
if lhs._senderAciBinary != rhs._senderAciBinary {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.Viewed: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.protoMessageName + ".Viewed"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\u{2}timestamp\0\u{1}senderAci\0\u{1}senderAciBinary\0\u{c}\u{1}\u{1}")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 2: try { try decoder.decodeSingularUInt64Field(value: &self._timestamp) }()
case 3: try { try decoder.decodeSingularStringField(value: &self._senderAci) }()
case 4: try { try decoder.decodeSingularBytesField(value: &self._senderAciBinary) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._timestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 2)
} }()
try { if let v = self._senderAci {
try visitor.visitSingularStringField(value: v, fieldNumber: 3)
} }()
try { if let v = self._senderAciBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 4)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.Viewed, rhs: SignalServiceProtos_SyncMessage.Viewed) -> Bool {
if lhs._senderAci != rhs._senderAci {return false}
if lhs._timestamp != rhs._timestamp {return false}
if lhs._senderAciBinary != rhs._senderAciBinary {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.Configuration: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.protoMessageName + ".Configuration"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}readReceipts\0\u{1}unidentifiedDeliveryIndicators\0\u{1}typingIndicators\0\u{2}\u{2}provisioningVersion\0\u{1}linkPreviews\0\u{c}\u{4}\u{1}")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularBoolField(value: &self._readReceipts) }()
case 2: try { try decoder.decodeSingularBoolField(value: &self._unidentifiedDeliveryIndicators) }()
case 3: try { try decoder.decodeSingularBoolField(value: &self._typingIndicators) }()
case 5: try { try decoder.decodeSingularUInt32Field(value: &self._provisioningVersion) }()
case 6: try { try decoder.decodeSingularBoolField(value: &self._linkPreviews) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._readReceipts {
try visitor.visitSingularBoolField(value: v, fieldNumber: 1)
} }()
try { if let v = self._unidentifiedDeliveryIndicators {
try visitor.visitSingularBoolField(value: v, fieldNumber: 2)
} }()
try { if let v = self._typingIndicators {
try visitor.visitSingularBoolField(value: v, fieldNumber: 3)
} }()
try { if let v = self._provisioningVersion {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 5)
} }()
try { if let v = self._linkPreviews {
try visitor.visitSingularBoolField(value: v, fieldNumber: 6)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.Configuration, rhs: SignalServiceProtos_SyncMessage.Configuration) -> Bool {
if lhs._readReceipts != rhs._readReceipts {return false}
if lhs._unidentifiedDeliveryIndicators != rhs._unidentifiedDeliveryIndicators {return false}
if lhs._typingIndicators != rhs._typingIndicators {return false}
if lhs._provisioningVersion != rhs._provisioningVersion {return false}
if lhs._linkPreviews != rhs._linkPreviews {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.StickerPackOperation: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.protoMessageName + ".StickerPackOperation"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}packId\0\u{1}packKey\0\u{1}type\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularBytesField(value: &self._packID) }()
case 2: try { try decoder.decodeSingularBytesField(value: &self._packKey) }()
case 3: try { try decoder.decodeSingularEnumField(value: &self._type) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._packID {
try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
} }()
try { if let v = self._packKey {
try visitor.visitSingularBytesField(value: v, fieldNumber: 2)
} }()
try { if let v = self._type {
try visitor.visitSingularEnumField(value: v, fieldNumber: 3)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.StickerPackOperation, rhs: SignalServiceProtos_SyncMessage.StickerPackOperation) -> Bool {
if lhs._packID != rhs._packID {return false}
if lhs._packKey != rhs._packKey {return false}
if lhs._type != rhs._type {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.StickerPackOperation.TypeEnum: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0INSTALL\0\u{1}REMOVE\0")
}
extension SignalServiceProtos_SyncMessage.ViewOnceOpen: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.protoMessageName + ".ViewOnceOpen"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\u{2}timestamp\0\u{1}senderAci\0\u{1}senderAciBinary\0\u{c}\u{1}\u{1}")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 2: try { try decoder.decodeSingularUInt64Field(value: &self._timestamp) }()
case 3: try { try decoder.decodeSingularStringField(value: &self._senderAci) }()
case 4: try { try decoder.decodeSingularBytesField(value: &self._senderAciBinary) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._timestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 2)
} }()
try { if let v = self._senderAci {
try visitor.visitSingularStringField(value: v, fieldNumber: 3)
} }()
try { if let v = self._senderAciBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 4)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.ViewOnceOpen, rhs: SignalServiceProtos_SyncMessage.ViewOnceOpen) -> Bool {
if lhs._senderAci != rhs._senderAci {return false}
if lhs._timestamp != rhs._timestamp {return false}
if lhs._senderAciBinary != rhs._senderAciBinary {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.FetchLatest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.protoMessageName + ".FetchLatest"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}type\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularEnumField(value: &self._type) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._type {
try visitor.visitSingularEnumField(value: v, fieldNumber: 1)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.FetchLatest, rhs: SignalServiceProtos_SyncMessage.FetchLatest) -> Bool {
if lhs._type != rhs._type {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.FetchLatest.TypeEnum: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0UNKNOWN\0\u{1}LOCAL_PROFILE\0\u{1}STORAGE_MANIFEST\0\u{1}SUBSCRIPTION_STATUS\0")
}
extension SignalServiceProtos_SyncMessage.Keys: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.protoMessageName + ".Keys"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\u{2}master\0\u{1}accountEntropyPool\0\u{1}mediaRootBackupKey\0\u{c}\u{1}\u{1}")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 2: try { try decoder.decodeSingularBytesField(value: &self._master) }()
case 3: try { try decoder.decodeSingularStringField(value: &self._accountEntropyPool) }()
case 4: try { try decoder.decodeSingularBytesField(value: &self._mediaRootBackupKey) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._master {
try visitor.visitSingularBytesField(value: v, fieldNumber: 2)
} }()
try { if let v = self._accountEntropyPool {
try visitor.visitSingularStringField(value: v, fieldNumber: 3)
} }()
try { if let v = self._mediaRootBackupKey {
try visitor.visitSingularBytesField(value: v, fieldNumber: 4)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.Keys, rhs: SignalServiceProtos_SyncMessage.Keys) -> Bool {
if lhs._master != rhs._master {return false}
if lhs._accountEntropyPool != rhs._accountEntropyPool {return false}
if lhs._mediaRootBackupKey != rhs._mediaRootBackupKey {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.MessageRequestResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.protoMessageName + ".MessageRequestResponse"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\u{2}threadAci\0\u{1}groupId\0\u{1}type\0\u{1}threadAciBinary\0\u{c}\u{1}\u{1}")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 2: try { try decoder.decodeSingularStringField(value: &self._threadAci) }()
case 3: try { try decoder.decodeSingularBytesField(value: &self._groupID) }()
case 4: try { try decoder.decodeSingularEnumField(value: &self._type) }()
case 5: try { try decoder.decodeSingularBytesField(value: &self._threadAciBinary) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._threadAci {
try visitor.visitSingularStringField(value: v, fieldNumber: 2)
} }()
try { if let v = self._groupID {
try visitor.visitSingularBytesField(value: v, fieldNumber: 3)
} }()
try { if let v = self._type {
try visitor.visitSingularEnumField(value: v, fieldNumber: 4)
} }()
try { if let v = self._threadAciBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 5)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.MessageRequestResponse, rhs: SignalServiceProtos_SyncMessage.MessageRequestResponse) -> Bool {
if lhs._threadAci != rhs._threadAci {return false}
if lhs._groupID != rhs._groupID {return false}
if lhs._type != rhs._type {return false}
if lhs._threadAciBinary != rhs._threadAciBinary {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.MessageRequestResponse.TypeEnum: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0UNKNOWN\0\u{1}ACCEPT\0\u{1}DELETE\0\u{1}BLOCK\0\u{1}BLOCK_AND_DELETE\0\u{1}SPAM\0\u{1}BLOCK_AND_SPAM\0")
}
extension SignalServiceProtos_SyncMessage.OutgoingPayment: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.protoMessageName + ".OutgoingPayment"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}recipientServiceId\0\u{1}note\0\u{1}mobileCoin\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularStringField(value: &self._recipientServiceID) }()
case 2: try { try decoder.decodeSingularStringField(value: &self._note) }()
case 3: try { try decoder.decodeSingularMessageField(value: &self._mobileCoin) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._recipientServiceID {
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
} }()
try { if let v = self._note {
try visitor.visitSingularStringField(value: v, fieldNumber: 2)
} }()
try { if let v = self._mobileCoin {
try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.OutgoingPayment, rhs: SignalServiceProtos_SyncMessage.OutgoingPayment) -> Bool {
if lhs._recipientServiceID != rhs._recipientServiceID {return false}
if lhs._note != rhs._note {return false}
if lhs._mobileCoin != rhs._mobileCoin {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.OutgoingPayment.MobileCoin: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.OutgoingPayment.protoMessageName + ".MobileCoin"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}recipientAddress\0\u{1}amountPicoMob\0\u{1}feePicoMob\0\u{1}receipt\0\u{1}ledgerBlockTimestamp\0\u{1}ledgerBlockIndex\0\u{1}spentKeyImages\0\u{1}outputPublicKeys\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularBytesField(value: &self._recipientAddress) }()
case 2: try { try decoder.decodeSingularUInt64Field(value: &self._amountPicoMob) }()
case 3: try { try decoder.decodeSingularUInt64Field(value: &self._feePicoMob) }()
case 4: try { try decoder.decodeSingularBytesField(value: &self._receipt) }()
case 5: try { try decoder.decodeSingularUInt64Field(value: &self._ledgerBlockTimestamp) }()
case 6: try { try decoder.decodeSingularUInt64Field(value: &self._ledgerBlockIndex) }()
case 7: try { try decoder.decodeRepeatedBytesField(value: &self.spentKeyImages) }()
case 8: try { try decoder.decodeRepeatedBytesField(value: &self.outputPublicKeys) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._recipientAddress {
try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
} }()
try { if let v = self._amountPicoMob {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 2)
} }()
try { if let v = self._feePicoMob {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 3)
} }()
try { if let v = self._receipt {
try visitor.visitSingularBytesField(value: v, fieldNumber: 4)
} }()
try { if let v = self._ledgerBlockTimestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 5)
} }()
try { if let v = self._ledgerBlockIndex {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 6)
} }()
if !self.spentKeyImages.isEmpty {
try visitor.visitRepeatedBytesField(value: self.spentKeyImages, fieldNumber: 7)
}
if !self.outputPublicKeys.isEmpty {
try visitor.visitRepeatedBytesField(value: self.outputPublicKeys, fieldNumber: 8)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.OutgoingPayment.MobileCoin, rhs: SignalServiceProtos_SyncMessage.OutgoingPayment.MobileCoin) -> Bool {
if lhs._recipientAddress != rhs._recipientAddress {return false}
if lhs._amountPicoMob != rhs._amountPicoMob {return false}
if lhs._feePicoMob != rhs._feePicoMob {return false}
if lhs._receipt != rhs._receipt {return false}
if lhs._ledgerBlockTimestamp != rhs._ledgerBlockTimestamp {return false}
if lhs._ledgerBlockIndex != rhs._ledgerBlockIndex {return false}
if lhs.spentKeyImages != rhs.spentKeyImages {return false}
if lhs.outputPublicKeys != rhs.outputPublicKeys {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.PniChangeNumber: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.protoMessageName + ".PniChangeNumber"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}identityKeyPair\0\u{1}signedPreKey\0\u{1}registrationId\0\u{1}newE164\0\u{1}lastResortKyberPreKey\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularBytesField(value: &self._identityKeyPair) }()
case 2: try { try decoder.decodeSingularBytesField(value: &self._signedPreKey) }()
case 3: try { try decoder.decodeSingularUInt32Field(value: &self._registrationID) }()
case 4: try { try decoder.decodeSingularStringField(value: &self._newE164) }()
case 5: try { try decoder.decodeSingularBytesField(value: &self._lastResortKyberPreKey) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._identityKeyPair {
try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
} }()
try { if let v = self._signedPreKey {
try visitor.visitSingularBytesField(value: v, fieldNumber: 2)
} }()
try { if let v = self._registrationID {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 3)
} }()
try { if let v = self._newE164 {
try visitor.visitSingularStringField(value: v, fieldNumber: 4)
} }()
try { if let v = self._lastResortKyberPreKey {
try visitor.visitSingularBytesField(value: v, fieldNumber: 5)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.PniChangeNumber, rhs: SignalServiceProtos_SyncMessage.PniChangeNumber) -> Bool {
if lhs._identityKeyPair != rhs._identityKeyPair {return false}
if lhs._signedPreKey != rhs._signedPreKey {return false}
if lhs._lastResortKyberPreKey != rhs._lastResortKyberPreKey {return false}
if lhs._registrationID != rhs._registrationID {return false}
if lhs._newE164 != rhs._newE164 {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.CallEvent: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.protoMessageName + ".CallEvent"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}conversationId\0\u{1}callId\0\u{1}timestamp\0\u{1}type\0\u{1}direction\0\u{1}event\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularBytesField(value: &self._conversationID) }()
case 2: try { try decoder.decodeSingularUInt64Field(value: &self._callID) }()
case 3: try { try decoder.decodeSingularUInt64Field(value: &self._timestamp) }()
case 4: try { try decoder.decodeSingularEnumField(value: &self._type) }()
case 5: try { try decoder.decodeSingularEnumField(value: &self._direction) }()
case 6: try { try decoder.decodeSingularEnumField(value: &self._event) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._conversationID {
try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
} }()
try { if let v = self._callID {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 2)
} }()
try { if let v = self._timestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 3)
} }()
try { if let v = self._type {
try visitor.visitSingularEnumField(value: v, fieldNumber: 4)
} }()
try { if let v = self._direction {
try visitor.visitSingularEnumField(value: v, fieldNumber: 5)
} }()
try { if let v = self._event {
try visitor.visitSingularEnumField(value: v, fieldNumber: 6)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.CallEvent, rhs: SignalServiceProtos_SyncMessage.CallEvent) -> Bool {
if lhs._conversationID != rhs._conversationID {return false}
if lhs._callID != rhs._callID {return false}
if lhs._timestamp != rhs._timestamp {return false}
if lhs._type != rhs._type {return false}
if lhs._direction != rhs._direction {return false}
if lhs._event != rhs._event {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.CallEvent.TypeEnum: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0UNKNOWN_TYPE\0\u{1}AUDIO_CALL\0\u{1}VIDEO_CALL\0\u{1}GROUP_CALL\0\u{1}AD_HOC_CALL\0")
}
extension SignalServiceProtos_SyncMessage.CallEvent.Direction: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0UNKNOWN_DIRECTION\0\u{1}INCOMING\0\u{1}OUTGOING\0")
}
extension SignalServiceProtos_SyncMessage.CallEvent.Event: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0UNKNOWN_ACTION\0\u{1}ACCEPTED\0\u{1}NOT_ACCEPTED\0\u{1}DELETED\0\u{1}OBSERVED\0")
}
extension SignalServiceProtos_SyncMessage.CallLinkUpdate: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.protoMessageName + ".CallLinkUpdate"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}rootKey\0\u{1}adminPasskey\0\u{1}type\0\u{c}\u{4}\u{1}")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularBytesField(value: &self._rootKey) }()
case 2: try { try decoder.decodeSingularBytesField(value: &self._adminPasskey) }()
case 3: try { try decoder.decodeSingularEnumField(value: &self._type) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._rootKey {
try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
} }()
try { if let v = self._adminPasskey {
try visitor.visitSingularBytesField(value: v, fieldNumber: 2)
} }()
try { if let v = self._type {
try visitor.visitSingularEnumField(value: v, fieldNumber: 3)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.CallLinkUpdate, rhs: SignalServiceProtos_SyncMessage.CallLinkUpdate) -> Bool {
if lhs._rootKey != rhs._rootKey {return false}
if lhs._adminPasskey != rhs._adminPasskey {return false}
if lhs._type != rhs._type {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.CallLinkUpdate.TypeEnum: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0UPDATE\0")
}
extension SignalServiceProtos_SyncMessage.CallLogEvent: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.protoMessageName + ".CallLogEvent"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}type\0\u{1}timestamp\0\u{1}conversationId\0\u{1}callId\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularEnumField(value: &self._type) }()
case 2: try { try decoder.decodeSingularUInt64Field(value: &self._timestamp) }()
case 3: try { try decoder.decodeSingularBytesField(value: &self._conversationID) }()
case 4: try { try decoder.decodeSingularUInt64Field(value: &self._callID) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._type {
try visitor.visitSingularEnumField(value: v, fieldNumber: 1)
} }()
try { if let v = self._timestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 2)
} }()
try { if let v = self._conversationID {
try visitor.visitSingularBytesField(value: v, fieldNumber: 3)
} }()
try { if let v = self._callID {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 4)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.CallLogEvent, rhs: SignalServiceProtos_SyncMessage.CallLogEvent) -> Bool {
if lhs._type != rhs._type {return false}
if lhs._timestamp != rhs._timestamp {return false}
if lhs._conversationID != rhs._conversationID {return false}
if lhs._callID != rhs._callID {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.CallLogEvent.TypeEnum: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0CLEARED\0\u{1}MARKED_AS_READ\0\u{1}MARKED_AS_READ_IN_CONVERSATION\0")
}
extension SignalServiceProtos_SyncMessage.DeleteForMe: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.protoMessageName + ".DeleteForMe"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}messageDeletes\0\u{1}conversationDeletes\0\u{1}localOnlyConversationDeletes\0\u{1}attachmentDeletes\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeRepeatedMessageField(value: &self.messageDeletes) }()
case 2: try { try decoder.decodeRepeatedMessageField(value: &self.conversationDeletes) }()
case 3: try { try decoder.decodeRepeatedMessageField(value: &self.localOnlyConversationDeletes) }()
case 4: try { try decoder.decodeRepeatedMessageField(value: &self.attachmentDeletes) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.messageDeletes.isEmpty {
try visitor.visitRepeatedMessageField(value: self.messageDeletes, fieldNumber: 1)
}
if !self.conversationDeletes.isEmpty {
try visitor.visitRepeatedMessageField(value: self.conversationDeletes, fieldNumber: 2)
}
if !self.localOnlyConversationDeletes.isEmpty {
try visitor.visitRepeatedMessageField(value: self.localOnlyConversationDeletes, fieldNumber: 3)
}
if !self.attachmentDeletes.isEmpty {
try visitor.visitRepeatedMessageField(value: self.attachmentDeletes, fieldNumber: 4)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.DeleteForMe, rhs: SignalServiceProtos_SyncMessage.DeleteForMe) -> Bool {
if lhs.messageDeletes != rhs.messageDeletes {return false}
if lhs.conversationDeletes != rhs.conversationDeletes {return false}
if lhs.localOnlyConversationDeletes != rhs.localOnlyConversationDeletes {return false}
if lhs.attachmentDeletes != rhs.attachmentDeletes {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.DeleteForMe.MessageDeletes: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.DeleteForMe.protoMessageName + ".MessageDeletes"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}conversation\0\u{1}messages\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularMessageField(value: &self._conversation) }()
case 2: try { try decoder.decodeRepeatedMessageField(value: &self.messages) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._conversation {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
} }()
if !self.messages.isEmpty {
try visitor.visitRepeatedMessageField(value: self.messages, fieldNumber: 2)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.DeleteForMe.MessageDeletes, rhs: SignalServiceProtos_SyncMessage.DeleteForMe.MessageDeletes) -> Bool {
if lhs._conversation != rhs._conversation {return false}
if lhs.messages != rhs.messages {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.DeleteForMe.AttachmentDelete: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.DeleteForMe.protoMessageName + ".AttachmentDelete"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}conversation\0\u{1}targetMessage\0\u{1}clientUuid\0\u{1}fallbackDigest\0\u{1}fallbackPlaintextHash\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularMessageField(value: &self._conversation) }()
case 2: try { try decoder.decodeSingularMessageField(value: &self._targetMessage) }()
case 3: try { try decoder.decodeSingularBytesField(value: &self._clientUuid) }()
case 4: try { try decoder.decodeSingularBytesField(value: &self._fallbackDigest) }()
case 5: try { try decoder.decodeSingularBytesField(value: &self._fallbackPlaintextHash) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._conversation {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
} }()
try { if let v = self._targetMessage {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
} }()
try { if let v = self._clientUuid {
try visitor.visitSingularBytesField(value: v, fieldNumber: 3)
} }()
try { if let v = self._fallbackDigest {
try visitor.visitSingularBytesField(value: v, fieldNumber: 4)
} }()
try { if let v = self._fallbackPlaintextHash {
try visitor.visitSingularBytesField(value: v, fieldNumber: 5)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.DeleteForMe.AttachmentDelete, rhs: SignalServiceProtos_SyncMessage.DeleteForMe.AttachmentDelete) -> Bool {
if lhs._conversation != rhs._conversation {return false}
if lhs._targetMessage != rhs._targetMessage {return false}
if lhs._clientUuid != rhs._clientUuid {return false}
if lhs._fallbackDigest != rhs._fallbackDigest {return false}
if lhs._fallbackPlaintextHash != rhs._fallbackPlaintextHash {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.DeleteForMe.ConversationDelete: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.DeleteForMe.protoMessageName + ".ConversationDelete"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}conversation\0\u{1}mostRecentMessages\0\u{1}isFullDelete\0\u{1}mostRecentNonExpiringMessages\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularMessageField(value: &self._conversation) }()
case 2: try { try decoder.decodeRepeatedMessageField(value: &self.mostRecentMessages) }()
case 3: try { try decoder.decodeSingularBoolField(value: &self._isFullDelete) }()
case 4: try { try decoder.decodeRepeatedMessageField(value: &self.mostRecentNonExpiringMessages) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._conversation {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
} }()
if !self.mostRecentMessages.isEmpty {
try visitor.visitRepeatedMessageField(value: self.mostRecentMessages, fieldNumber: 2)
}
try { if let v = self._isFullDelete {
try visitor.visitSingularBoolField(value: v, fieldNumber: 3)
} }()
if !self.mostRecentNonExpiringMessages.isEmpty {
try visitor.visitRepeatedMessageField(value: self.mostRecentNonExpiringMessages, fieldNumber: 4)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.DeleteForMe.ConversationDelete, rhs: SignalServiceProtos_SyncMessage.DeleteForMe.ConversationDelete) -> Bool {
if lhs._conversation != rhs._conversation {return false}
if lhs.mostRecentMessages != rhs.mostRecentMessages {return false}
if lhs.mostRecentNonExpiringMessages != rhs.mostRecentNonExpiringMessages {return false}
if lhs._isFullDelete != rhs._isFullDelete {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.DeleteForMe.LocalOnlyConversationDelete: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.DeleteForMe.protoMessageName + ".LocalOnlyConversationDelete"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}conversation\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularMessageField(value: &self._conversation) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._conversation {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.DeleteForMe.LocalOnlyConversationDelete, rhs: SignalServiceProtos_SyncMessage.DeleteForMe.LocalOnlyConversationDelete) -> Bool {
if lhs._conversation != rhs._conversation {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.DeviceNameChange: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.protoMessageName + ".DeviceNameChange"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\u{2}deviceId\0\u{c}\u{1}\u{1}")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 2: try { try decoder.decodeSingularUInt32Field(value: &self._deviceID) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._deviceID {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.DeviceNameChange, rhs: SignalServiceProtos_SyncMessage.DeviceNameChange) -> Bool {
if lhs._deviceID != rhs._deviceID {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.AttachmentBackfillRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.protoMessageName + ".AttachmentBackfillRequest"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}targetMessage\0\u{1}targetConversation\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularMessageField(value: &self._targetMessage) }()
case 2: try { try decoder.decodeSingularMessageField(value: &self._targetConversation) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._targetMessage {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
} }()
try { if let v = self._targetConversation {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.AttachmentBackfillRequest, rhs: SignalServiceProtos_SyncMessage.AttachmentBackfillRequest) -> Bool {
if lhs._targetMessage != rhs._targetMessage {return false}
if lhs._targetConversation != rhs._targetConversation {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.AttachmentBackfillResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.protoMessageName + ".AttachmentBackfillResponse"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}targetMessage\0\u{1}targetConversation\0\u{1}attachments\0\u{1}error\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularMessageField(value: &self._targetMessage) }()
case 2: try { try decoder.decodeSingularMessageField(value: &self._targetConversation) }()
case 3: try { try decoder.decodeSingularMessageField(value: &self._attachments) }()
case 4: try { try decoder.decodeSingularEnumField(value: &self._error) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._targetMessage {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
} }()
try { if let v = self._targetConversation {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
} }()
try { if let v = self._attachments {
try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
} }()
try { if let v = self._error {
try visitor.visitSingularEnumField(value: v, fieldNumber: 4)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.AttachmentBackfillResponse, rhs: SignalServiceProtos_SyncMessage.AttachmentBackfillResponse) -> Bool {
if lhs._targetMessage != rhs._targetMessage {return false}
if lhs._targetConversation != rhs._targetConversation {return false}
if lhs._attachments != rhs._attachments {return false}
if lhs._error != rhs._error {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.AttachmentBackfillResponse.Error: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0MESSAGE_NOT_FOUND\0")
}
extension SignalServiceProtos_SyncMessage.AttachmentBackfillResponse.AttachmentData: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.AttachmentBackfillResponse.protoMessageName + ".AttachmentData"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}attachment\0\u{1}status\0")
fileprivate class _StorageClass {
var _attachment: SignalServiceProtos_AttachmentPointer? = nil
var _status: SignalServiceProtos_SyncMessage.AttachmentBackfillResponse.AttachmentData.Status? = nil
// This property is used as the initial default value for new instances of the type.
// The type itself is protecting the reference to its storage via CoW semantics.
// This will force a copy to be made of this reference when the first mutation occurs;
// hence, it is safe to mark this as `nonisolated(unsafe)`.
static nonisolated(unsafe) let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_attachment = source._attachment
_status = source._status
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularMessageField(value: &_storage._attachment) }()
case 2: try { try decoder.decodeSingularEnumField(value: &_storage._status) }()
default: break
}
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = _storage._attachment {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
} }()
try { if let v = _storage._status {
try visitor.visitSingularEnumField(value: v, fieldNumber: 2)
} }()
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.AttachmentBackfillResponse.AttachmentData, rhs: SignalServiceProtos_SyncMessage.AttachmentBackfillResponse.AttachmentData) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._attachment != rhs_storage._attachment {return false}
if _storage._status != rhs_storage._status {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_SyncMessage.AttachmentBackfillResponse.AttachmentData.Status: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0PENDING\0\u{1}TERMINAL_ERROR\0")
}
extension SignalServiceProtos_SyncMessage.AttachmentBackfillResponse.AttachmentDataList: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_SyncMessage.AttachmentBackfillResponse.protoMessageName + ".AttachmentDataList"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}attachments\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeRepeatedMessageField(value: &self.attachments) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.attachments.isEmpty {
try visitor.visitRepeatedMessageField(value: self.attachments, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_SyncMessage.AttachmentBackfillResponse.AttachmentDataList, rhs: SignalServiceProtos_SyncMessage.AttachmentBackfillResponse.AttachmentDataList) -> Bool {
if lhs.attachments != rhs.attachments {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_AttachmentPointer: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".AttachmentPointer"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}cdnId\0\u{1}contentType\0\u{1}key\0\u{1}size\0\u{1}thumbnail\0\u{1}digest\0\u{1}fileName\0\u{1}flags\0\u{1}width\0\u{1}height\0\u{1}caption\0\u{1}blurHash\0\u{1}uploadTimestamp\0\u{1}cdnNumber\0\u{1}cdnKey\0\u{2}\u{5}clientUuid\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularFixed64Field(value: &self._cdnID) }()
case 2: try { try decoder.decodeSingularStringField(value: &self._contentType) }()
case 3: try { try decoder.decodeSingularBytesField(value: &self._key) }()
case 4: try { try decoder.decodeSingularUInt32Field(value: &self._size) }()
case 5: try { try decoder.decodeSingularBytesField(value: &self._thumbnail) }()
case 6: try { try decoder.decodeSingularBytesField(value: &self._digest) }()
case 7: try { try decoder.decodeSingularStringField(value: &self._fileName) }()
case 8: try { try decoder.decodeSingularUInt32Field(value: &self._flags) }()
case 9: try { try decoder.decodeSingularUInt32Field(value: &self._width) }()
case 10: try { try decoder.decodeSingularUInt32Field(value: &self._height) }()
case 11: try { try decoder.decodeSingularStringField(value: &self._caption) }()
case 12: try { try decoder.decodeSingularStringField(value: &self._blurHash) }()
case 13: try { try decoder.decodeSingularUInt64Field(value: &self._uploadTimestamp) }()
case 14: try { try decoder.decodeSingularUInt32Field(value: &self._cdnNumber) }()
case 15: try { try decoder.decodeSingularStringField(value: &self._cdnKey) }()
case 20: try { try decoder.decodeSingularBytesField(value: &self._clientUuid) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._cdnID {
try visitor.visitSingularFixed64Field(value: v, fieldNumber: 1)
} }()
try { if let v = self._contentType {
try visitor.visitSingularStringField(value: v, fieldNumber: 2)
} }()
try { if let v = self._key {
try visitor.visitSingularBytesField(value: v, fieldNumber: 3)
} }()
try { if let v = self._size {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 4)
} }()
try { if let v = self._thumbnail {
try visitor.visitSingularBytesField(value: v, fieldNumber: 5)
} }()
try { if let v = self._digest {
try visitor.visitSingularBytesField(value: v, fieldNumber: 6)
} }()
try { if let v = self._fileName {
try visitor.visitSingularStringField(value: v, fieldNumber: 7)
} }()
try { if let v = self._flags {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 8)
} }()
try { if let v = self._width {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 9)
} }()
try { if let v = self._height {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 10)
} }()
try { if let v = self._caption {
try visitor.visitSingularStringField(value: v, fieldNumber: 11)
} }()
try { if let v = self._blurHash {
try visitor.visitSingularStringField(value: v, fieldNumber: 12)
} }()
try { if let v = self._uploadTimestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 13)
} }()
try { if let v = self._cdnNumber {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 14)
} }()
try { if let v = self._cdnKey {
try visitor.visitSingularStringField(value: v, fieldNumber: 15)
} }()
try { if let v = self._clientUuid {
try visitor.visitSingularBytesField(value: v, fieldNumber: 20)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_AttachmentPointer, rhs: SignalServiceProtos_AttachmentPointer) -> Bool {
if lhs._cdnID != rhs._cdnID {return false}
if lhs._cdnKey != rhs._cdnKey {return false}
if lhs._clientUuid != rhs._clientUuid {return false}
if lhs._contentType != rhs._contentType {return false}
if lhs._key != rhs._key {return false}
if lhs._size != rhs._size {return false}
if lhs._thumbnail != rhs._thumbnail {return false}
if lhs._digest != rhs._digest {return false}
if lhs._fileName != rhs._fileName {return false}
if lhs._flags != rhs._flags {return false}
if lhs._width != rhs._width {return false}
if lhs._height != rhs._height {return false}
if lhs._caption != rhs._caption {return false}
if lhs._blurHash != rhs._blurHash {return false}
if lhs._uploadTimestamp != rhs._uploadTimestamp {return false}
if lhs._cdnNumber != rhs._cdnNumber {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_AttachmentPointer.Flags: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}VOICE_MESSAGE\0\u{1}BORDERLESS\0\u{2}\u{6}GIF\0")
}
extension SignalServiceProtos_GroupContextV2: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".GroupContextV2"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}masterKey\0\u{1}revision\0\u{1}groupChange\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularBytesField(value: &self._masterKey) }()
case 2: try { try decoder.decodeSingularUInt32Field(value: &self._revision) }()
case 3: try { try decoder.decodeSingularBytesField(value: &self._groupChange) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._masterKey {
try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
} }()
try { if let v = self._revision {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2)
} }()
try { if let v = self._groupChange {
try visitor.visitSingularBytesField(value: v, fieldNumber: 3)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_GroupContextV2, rhs: SignalServiceProtos_GroupContextV2) -> Bool {
if lhs._masterKey != rhs._masterKey {return false}
if lhs._revision != rhs._revision {return false}
if lhs._groupChange != rhs._groupChange {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_ContactDetails: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".ContactDetails"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}contactE164\0\u{1}name\0\u{1}avatar\0\u{2}\u{5}expireTimer\0\u{1}aci\0\u{1}inboxPosition\0\u{2}\u{2}expireTimerVersion\0\u{1}aciBinary\0\u{c}\u{4}\u{1}\u{c}\u{5}\u{1}\u{c}\u{6}\u{1}\u{c}\u{7}\u{1}\u{c}\u{b}\u{1}")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularStringField(value: &self._contactE164) }()
case 2: try { try decoder.decodeSingularStringField(value: &self._name) }()
case 3: try { try decoder.decodeSingularMessageField(value: &self._avatar) }()
case 8: try { try decoder.decodeSingularUInt32Field(value: &self._expireTimer) }()
case 9: try { try decoder.decodeSingularStringField(value: &self._aci) }()
case 10: try { try decoder.decodeSingularUInt32Field(value: &self._inboxPosition) }()
case 12: try { try decoder.decodeSingularUInt32Field(value: &self._expireTimerVersion) }()
case 13: try { try decoder.decodeSingularBytesField(value: &self._aciBinary) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._contactE164 {
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
} }()
try { if let v = self._name {
try visitor.visitSingularStringField(value: v, fieldNumber: 2)
} }()
try { if let v = self._avatar {
try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
} }()
try { if let v = self._expireTimer {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 8)
} }()
try { if let v = self._aci {
try visitor.visitSingularStringField(value: v, fieldNumber: 9)
} }()
try { if let v = self._inboxPosition {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 10)
} }()
try { if let v = self._expireTimerVersion {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 12)
} }()
try { if let v = self._aciBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 13)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_ContactDetails, rhs: SignalServiceProtos_ContactDetails) -> Bool {
if lhs._contactE164 != rhs._contactE164 {return false}
if lhs._aci != rhs._aci {return false}
if lhs._aciBinary != rhs._aciBinary {return false}
if lhs._name != rhs._name {return false}
if lhs._avatar != rhs._avatar {return false}
if lhs._expireTimer != rhs._expireTimer {return false}
if lhs._expireTimerVersion != rhs._expireTimerVersion {return false}
if lhs._inboxPosition != rhs._inboxPosition {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_ContactDetails.Avatar: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_ContactDetails.protoMessageName + ".Avatar"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}contentType\0\u{1}length\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularStringField(value: &self._contentType) }()
case 2: try { try decoder.decodeSingularUInt32Field(value: &self._length) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._contentType {
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
} }()
try { if let v = self._length {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_ContactDetails.Avatar, rhs: SignalServiceProtos_ContactDetails.Avatar) -> Bool {
if lhs._contentType != rhs._contentType {return false}
if lhs._length != rhs._length {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_Pack: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".Pack"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}title\0\u{1}author\0\u{1}cover\0\u{1}stickers\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularStringField(value: &self._title) }()
case 2: try { try decoder.decodeSingularStringField(value: &self._author) }()
case 3: try { try decoder.decodeSingularMessageField(value: &self._cover) }()
case 4: try { try decoder.decodeRepeatedMessageField(value: &self.stickers) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._title {
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
} }()
try { if let v = self._author {
try visitor.visitSingularStringField(value: v, fieldNumber: 2)
} }()
try { if let v = self._cover {
try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
} }()
if !self.stickers.isEmpty {
try visitor.visitRepeatedMessageField(value: self.stickers, fieldNumber: 4)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_Pack, rhs: SignalServiceProtos_Pack) -> Bool {
if lhs._title != rhs._title {return false}
if lhs._author != rhs._author {return false}
if lhs._cover != rhs._cover {return false}
if lhs.stickers != rhs.stickers {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_Pack.Sticker: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_Pack.protoMessageName + ".Sticker"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}id\0\u{1}emoji\0\u{1}contentType\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularUInt32Field(value: &self._id) }()
case 2: try { try decoder.decodeSingularStringField(value: &self._emoji) }()
case 3: try { try decoder.decodeSingularStringField(value: &self._contentType) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._id {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 1)
} }()
try { if let v = self._emoji {
try visitor.visitSingularStringField(value: v, fieldNumber: 2)
} }()
try { if let v = self._contentType {
try visitor.visitSingularStringField(value: v, fieldNumber: 3)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_Pack.Sticker, rhs: SignalServiceProtos_Pack.Sticker) -> Bool {
if lhs._id != rhs._id {return false}
if lhs._emoji != rhs._emoji {return false}
if lhs._contentType != rhs._contentType {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_PaymentAddress: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".PaymentAddress"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}mobileCoin\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularMessageField(value: &self._mobileCoin) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._mobileCoin {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_PaymentAddress, rhs: SignalServiceProtos_PaymentAddress) -> Bool {
if lhs._mobileCoin != rhs._mobileCoin {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_PaymentAddress.MobileCoin: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = SignalServiceProtos_PaymentAddress.protoMessageName + ".MobileCoin"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}publicAddress\0\u{1}signature\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularBytesField(value: &self._publicAddress) }()
case 2: try { try decoder.decodeSingularBytesField(value: &self._signature) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._publicAddress {
try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
} }()
try { if let v = self._signature {
try visitor.visitSingularBytesField(value: v, fieldNumber: 2)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_PaymentAddress.MobileCoin, rhs: SignalServiceProtos_PaymentAddress.MobileCoin) -> Bool {
if lhs._publicAddress != rhs._publicAddress {return false}
if lhs._signature != rhs._signature {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_DecryptionErrorMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".DecryptionErrorMessage"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}ratchetKey\0\u{1}timestamp\0\u{1}deviceId\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularBytesField(value: &self._ratchetKey) }()
case 2: try { try decoder.decodeSingularUInt64Field(value: &self._timestamp) }()
case 3: try { try decoder.decodeSingularUInt32Field(value: &self._deviceID) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._ratchetKey {
try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
} }()
try { if let v = self._timestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 2)
} }()
try { if let v = self._deviceID {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 3)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_DecryptionErrorMessage, rhs: SignalServiceProtos_DecryptionErrorMessage) -> Bool {
if lhs._ratchetKey != rhs._ratchetKey {return false}
if lhs._timestamp != rhs._timestamp {return false}
if lhs._deviceID != rhs._deviceID {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_PniSignatureMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".PniSignatureMessage"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}pni\0\u{1}signature\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularBytesField(value: &self._pni) }()
case 2: try { try decoder.decodeSingularBytesField(value: &self._signature) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._pni {
try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
} }()
try { if let v = self._signature {
try visitor.visitSingularBytesField(value: v, fieldNumber: 2)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_PniSignatureMessage, rhs: SignalServiceProtos_PniSignatureMessage) -> Bool {
if lhs._pni != rhs._pni {return false}
if lhs._signature != rhs._signature {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_BodyRange: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".BodyRange"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}start\0\u{1}length\0\u{1}mentionAci\0\u{1}style\0\u{1}mentionAciBinary\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularUInt32Field(value: &self._start) }()
case 2: try { try decoder.decodeSingularUInt32Field(value: &self._length) }()
case 3: try { try decoder.decodeSingularStringField(value: &self._mentionAci) }()
case 4: try { try decoder.decodeSingularEnumField(value: &self._style) }()
case 5: try { try decoder.decodeSingularBytesField(value: &self._mentionAciBinary) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._start {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 1)
} }()
try { if let v = self._length {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2)
} }()
try { if let v = self._mentionAci {
try visitor.visitSingularStringField(value: v, fieldNumber: 3)
} }()
try { if let v = self._style {
try visitor.visitSingularEnumField(value: v, fieldNumber: 4)
} }()
try { if let v = self._mentionAciBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 5)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_BodyRange, rhs: SignalServiceProtos_BodyRange) -> Bool {
if lhs._start != rhs._start {return false}
if lhs._length != rhs._length {return false}
if lhs._mentionAci != rhs._mentionAci {return false}
if lhs._style != rhs._style {return false}
if lhs._mentionAciBinary != rhs._mentionAciBinary {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_BodyRange.Style: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0NONE\0\u{1}BOLD\0\u{1}ITALIC\0\u{1}SPOILER\0\u{1}STRIKETHROUGH\0\u{1}MONOSPACE\0")
}
extension SignalServiceProtos_EditMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".EditMessage"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}targetSentTimestamp\0\u{1}dataMessage\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularUInt64Field(value: &self._targetSentTimestamp) }()
case 2: try { try decoder.decodeSingularMessageField(value: &self._dataMessage) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._targetSentTimestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 1)
} }()
try { if let v = self._dataMessage {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_EditMessage, rhs: SignalServiceProtos_EditMessage) -> Bool {
if lhs._targetSentTimestamp != rhs._targetSentTimestamp {return false}
if lhs._dataMessage != rhs._dataMessage {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_AddressableMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".AddressableMessage"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}authorServiceId\0\u{1}authorE164\0\u{1}sentTimestamp\0\u{1}authorServiceIdBinary\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularStringField(value: &self._authorServiceID) }()
case 2: try { try decoder.decodeSingularStringField(value: &self._authorE164) }()
case 3: try { try decoder.decodeSingularUInt64Field(value: &self._sentTimestamp) }()
case 4: try { try decoder.decodeSingularBytesField(value: &self._authorServiceIDBinary) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._authorServiceID {
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
} }()
try { if let v = self._authorE164 {
try visitor.visitSingularStringField(value: v, fieldNumber: 2)
} }()
try { if let v = self._sentTimestamp {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 3)
} }()
try { if let v = self._authorServiceIDBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 4)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_AddressableMessage, rhs: SignalServiceProtos_AddressableMessage) -> Bool {
if lhs._authorServiceID != rhs._authorServiceID {return false}
if lhs._authorE164 != rhs._authorE164 {return false}
if lhs._authorServiceIDBinary != rhs._authorServiceIDBinary {return false}
if lhs._sentTimestamp != rhs._sentTimestamp {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension SignalServiceProtos_ConversationIdentifier: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".ConversationIdentifier"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}threadServiceId\0\u{1}threadGroupId\0\u{1}threadE164\0\u{1}threadServiceIdBinary\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularStringField(value: &self._threadServiceID) }()
case 2: try { try decoder.decodeSingularBytesField(value: &self._threadGroupID) }()
case 3: try { try decoder.decodeSingularStringField(value: &self._threadE164) }()
case 4: try { try decoder.decodeSingularBytesField(value: &self._threadServiceIDBinary) }()
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._threadServiceID {
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
} }()
try { if let v = self._threadGroupID {
try visitor.visitSingularBytesField(value: v, fieldNumber: 2)
} }()
try { if let v = self._threadE164 {
try visitor.visitSingularStringField(value: v, fieldNumber: 3)
} }()
try { if let v = self._threadServiceIDBinary {
try visitor.visitSingularBytesField(value: v, fieldNumber: 4)
} }()
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: SignalServiceProtos_ConversationIdentifier, rhs: SignalServiceProtos_ConversationIdentifier) -> Bool {
if lhs._threadServiceID != rhs._threadServiceID {return false}
if lhs._threadGroupID != rhs._threadGroupID {return false}
if lhs._threadE164 != rhs._threadE164 {return false}
if lhs._threadServiceIDBinary != rhs._threadServiceIDBinary {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}