85 lines
2.4 KiB
Swift
85 lines
2.4 KiB
Swift
//
|
|
// Copyright 2024 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
//
|
|
|
|
// Code generated by Wire protocol buffer compiler, do not edit.
|
|
// Source: BackupProto.BackupProtoThreadMergeChatUpdate in Backup.proto
|
|
import Wire
|
|
|
|
public struct BackupProtoThreadMergeChatUpdate {
|
|
|
|
public var previousE164: UInt64
|
|
public var unknownFields: UnknownFields = .init()
|
|
|
|
public init(previousE164: UInt64) {
|
|
self.previousE164 = previousE164
|
|
}
|
|
|
|
}
|
|
|
|
#if !WIRE_REMOVE_EQUATABLE
|
|
extension BackupProtoThreadMergeChatUpdate : Equatable {
|
|
}
|
|
#endif
|
|
|
|
#if !WIRE_REMOVE_HASHABLE
|
|
extension BackupProtoThreadMergeChatUpdate : Hashable {
|
|
}
|
|
#endif
|
|
|
|
extension BackupProtoThreadMergeChatUpdate : Sendable {
|
|
}
|
|
|
|
extension BackupProtoThreadMergeChatUpdate : ProtoMessage {
|
|
|
|
public static func protoMessageTypeURL() -> String {
|
|
return "type.googleapis.com/BackupProto.BackupProtoThreadMergeChatUpdate"
|
|
}
|
|
|
|
}
|
|
|
|
extension BackupProtoThreadMergeChatUpdate : Proto3Codable {
|
|
|
|
public init(from protoReader: ProtoReader) throws {
|
|
var previousE164: UInt64 = 0
|
|
|
|
let token = try protoReader.beginMessage()
|
|
while let tag = try protoReader.nextTag(token: token) {
|
|
switch tag {
|
|
case 1: previousE164 = try protoReader.decode(UInt64.self)
|
|
default: try protoReader.readUnknownField(tag: tag)
|
|
}
|
|
}
|
|
self.unknownFields = try protoReader.endMessage(token: token)
|
|
|
|
self.previousE164 = previousE164
|
|
}
|
|
|
|
public func encode(to protoWriter: ProtoWriter) throws {
|
|
try protoWriter.encode(tag: 1, value: self.previousE164)
|
|
try protoWriter.writeUnknownFields(unknownFields)
|
|
}
|
|
|
|
}
|
|
|
|
#if !WIRE_REMOVE_CODABLE
|
|
extension BackupProtoThreadMergeChatUpdate : Codable {
|
|
|
|
public init(from decoder: Decoder) throws {
|
|
let container = try decoder.container(keyedBy: StringLiteralCodingKeys.self)
|
|
self.previousE164 = try container.decode(stringEncoded: UInt64.self, forKey: "previousE164")
|
|
}
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: StringLiteralCodingKeys.self)
|
|
let includeDefaults = encoder.protoDefaultValuesEncodingStrategy == .include
|
|
|
|
if includeDefaults || self.previousE164 != 0 {
|
|
try container.encode(stringEncoded: self.previousE164, forKey: "previousE164")
|
|
}
|
|
}
|
|
|
|
}
|
|
#endif
|