|
|
|
@ -1746,6 +1746,11 @@ struct SignalServiceProtos_SyncMessage {
|
|
|
|
|
/// Clears the value of `groups`. Subsequent reads from it will return its default value.
|
|
|
|
|
mutating func clearGroups() {_uniqueStorage()._groups = nil}
|
|
|
|
|
|
|
|
|
|
var openGroups: [SignalServiceProtos_SyncMessage.OpenGroups] {
|
|
|
|
|
get {return _storage._openGroups}
|
|
|
|
|
set {_uniqueStorage()._openGroups = newValue}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var request: SignalServiceProtos_SyncMessage.Request {
|
|
|
|
|
get {return _storage._request ?? SignalServiceProtos_SyncMessage.Request()}
|
|
|
|
|
set {_uniqueStorage()._request = newValue}
|
|
|
|
@ -1963,6 +1968,36 @@ struct SignalServiceProtos_SyncMessage {
|
|
|
|
|
fileprivate var _storage = _StorageClass.defaultInstance
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct OpenGroups {
|
|
|
|
|
// 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 url: String {
|
|
|
|
|
get {return _storage._url ?? String()}
|
|
|
|
|
set {_uniqueStorage()._url = newValue}
|
|
|
|
|
}
|
|
|
|
|
/// Returns true if `url` has been explicitly set.
|
|
|
|
|
var hasUrl: Bool {return _storage._url != nil}
|
|
|
|
|
/// Clears the value of `url`. Subsequent reads from it will return its default value.
|
|
|
|
|
mutating func clearUrl() {_uniqueStorage()._url = nil}
|
|
|
|
|
|
|
|
|
|
var channel: UInt64 {
|
|
|
|
|
get {return _storage._channel ?? 0}
|
|
|
|
|
set {_uniqueStorage()._channel = newValue}
|
|
|
|
|
}
|
|
|
|
|
/// Returns true if `channel` has been explicitly set.
|
|
|
|
|
var hasChannel: Bool {return _storage._channel != nil}
|
|
|
|
|
/// Clears the value of `channel`. Subsequent reads from it will return its default value.
|
|
|
|
|
mutating func clearChannel() {_uniqueStorage()._channel = nil}
|
|
|
|
|
|
|
|
|
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
|
|
|
|
|
|
|
|
init() {}
|
|
|
|
|
|
|
|
|
|
fileprivate var _storage = _StorageClass.defaultInstance
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct Blocked {
|
|
|
|
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
|
|
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
|
|
@ -4319,6 +4354,7 @@ extension SignalServiceProtos_SyncMessage: SwiftProtobuf.Message, SwiftProtobuf.
|
|
|
|
|
var _sent: SignalServiceProtos_SyncMessage.Sent? = nil
|
|
|
|
|
var _contacts: SignalServiceProtos_SyncMessage.Contacts? = nil
|
|
|
|
|
var _groups: SignalServiceProtos_SyncMessage.Groups? = nil
|
|
|
|
|
var _openGroups: [SignalServiceProtos_SyncMessage.OpenGroups] = []
|
|
|
|
|
var _request: SignalServiceProtos_SyncMessage.Request? = nil
|
|
|
|
|
var _read: [SignalServiceProtos_SyncMessage.Read] = []
|
|
|
|
|
var _blocked: SignalServiceProtos_SyncMessage.Blocked? = nil
|
|
|
|
@ -4334,6 +4370,7 @@ extension SignalServiceProtos_SyncMessage: SwiftProtobuf.Message, SwiftProtobuf.
|
|
|
|
|
_sent = source._sent
|
|
|
|
|
_contacts = source._contacts
|
|
|
|
|
_groups = source._groups
|
|
|
|
|
_openGroups = source._openGroups
|
|
|
|
|
_request = source._request
|
|
|
|
|
_read = source._read
|
|
|
|
|
_blocked = source._blocked
|
|
|
|
@ -4364,6 +4401,7 @@ extension SignalServiceProtos_SyncMessage: SwiftProtobuf.Message, SwiftProtobuf.
|
|
|
|
|
case 7: try decoder.decodeSingularMessageField(value: &_storage._verified)
|
|
|
|
|
case 8: try decoder.decodeSingularBytesField(value: &_storage._padding)
|
|
|
|
|
case 9: try decoder.decodeSingularMessageField(value: &_storage._configuration)
|
|
|
|
|
case 100: try decoder.decodeRepeatedMessageField(value: &_storage._openGroups)
|
|
|
|
|
default: break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -4399,6 +4437,9 @@ extension SignalServiceProtos_SyncMessage: SwiftProtobuf.Message, SwiftProtobuf.
|
|
|
|
|
if let v = _storage._configuration {
|
|
|
|
|
try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
|
|
|
|
|
}
|
|
|
|
|
if !_storage._openGroups.isEmpty {
|
|
|
|
|
try visitor.visitRepeatedMessageField(value: _storage._openGroups, fieldNumber: 100)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
try unknownFields.traverse(visitor: &visitor)
|
|
|
|
|
}
|
|
|
|
@ -4417,6 +4458,7 @@ extension SignalServiceProtos_SyncMessage: SwiftProtobuf.Message, SwiftProtobuf.
|
|
|
|
|
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._openGroups != rhs_storage._openGroups {return false}
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
if !storagesAreEqual {return false}
|
|
|
|
@ -4708,6 +4750,75 @@ extension SignalServiceProtos_SyncMessage.Groups: SwiftProtobuf.Message, SwiftPr
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
extension SignalServiceProtos_SyncMessage.OpenGroups: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
|
|
|
static let protoMessageName: String = SignalServiceProtos_SyncMessage.protoMessageName + ".OpenGroups"
|
|
|
|
|
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
|
|
|
1: .same(proto: "url"),
|
|
|
|
|
2: .same(proto: "channel"),
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
fileprivate class _StorageClass {
|
|
|
|
|
var _url: String? = nil
|
|
|
|
|
var _channel: UInt64? = nil
|
|
|
|
|
|
|
|
|
|
static let defaultInstance = _StorageClass()
|
|
|
|
|
|
|
|
|
|
private init() {}
|
|
|
|
|
|
|
|
|
|
init(copying source: _StorageClass) {
|
|
|
|
|
_url = source._url
|
|
|
|
|
_channel = source._channel
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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() {
|
|
|
|
|
switch fieldNumber {
|
|
|
|
|
case 1: try decoder.decodeSingularStringField(value: &_storage._url)
|
|
|
|
|
case 2: try decoder.decodeSingularUInt64Field(value: &_storage._channel)
|
|
|
|
|
default: break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
|
|
|
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
|
|
|
|
|
if let v = _storage._url {
|
|
|
|
|
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
|
|
|
|
|
}
|
|
|
|
|
if let v = _storage._channel {
|
|
|
|
|
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 2)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
try unknownFields.traverse(visitor: &visitor)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static func ==(lhs: SignalServiceProtos_SyncMessage.OpenGroups, rhs: SignalServiceProtos_SyncMessage.OpenGroups) -> 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._channel != rhs_storage._channel {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 = [
|
|
|
|
|