diff --git a/IGProtoBuff.xcodeproj/project.pbxproj b/IGProtoBuff.xcodeproj/project.pbxproj index 78517a5..aae69f7 100644 --- a/IGProtoBuff.xcodeproj/project.pbxproj +++ b/IGProtoBuff.xcodeproj/project.pbxproj @@ -8,6 +8,12 @@ /* Begin PBXBuildFile section */ FA76382E1E2FFD5E00C24391 /* IGProtoBuff.h in Headers */ = {isa = PBXBuildFile; fileRef = FA76382C1E2FFD5E00C24391 /* IGProtoBuff.h */; settings = {ATTRIBUTES = (Public, ); }; }; + FAA1BDB21F98EDF90010FE8A /* ClientMuteRoom.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAA1BDB11F98EDF70010FE8A /* ClientMuteRoom.pb.swift */; }; + FAA1BDB81F98EE230010FE8A /* ClientPinRoom.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAA1BDB31F98EE220010FE8A /* ClientPinRoom.pb.swift */; }; + FAA1BDB91F98EE230010FE8A /* UserProfileSetBio.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAA1BDB41F98EE220010FE8A /* UserProfileSetBio.pb.swift */; }; + FAA1BDBA1F98EE230010FE8A /* ClientRoomReport.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAA1BDB51F98EE220010FE8A /* ClientRoomReport.pb.swift */; }; + FAA1BDBB1F98EE230010FE8A /* UserProfileGetBio.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAA1BDB61F98EE230010FE8A /* UserProfileGetBio.pb.swift */; }; + FAA1BDBC1F98EE230010FE8A /* UserReport.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAA1BDB71F98EE230010FE8A /* UserReport.pb.swift */; }; FAF5D23D1F8D66DB00A26EE1 /* SwiftProtobuf.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FAF5D23C1F8D66CE00A26EE1 /* SwiftProtobuf.framework */; }; FAF5D23F1F8D6AF100A26EE1 /* ChannelAddAdmin.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAF5D1FE1F8D665300A26EE1 /* ChannelAddAdmin.pb.swift */; }; FAF5D2401F8D6C2000A26EE1 /* ChannelAddMember.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAF5D2071F8D665600A26EE1 /* ChannelAddMember.pb.swift */; }; @@ -182,6 +188,12 @@ FA7638291E2FFD5E00C24391 /* IGProtoBuff.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = IGProtoBuff.framework; sourceTree = BUILT_PRODUCTS_DIR; }; FA76382C1E2FFD5E00C24391 /* IGProtoBuff.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = IGProtoBuff.h; sourceTree = ""; }; FA76382D1E2FFD5E00C24391 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + FAA1BDB11F98EDF70010FE8A /* ClientMuteRoom.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClientMuteRoom.pb.swift; sourceTree = ""; }; + FAA1BDB31F98EE220010FE8A /* ClientPinRoom.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClientPinRoom.pb.swift; sourceTree = ""; }; + FAA1BDB41F98EE220010FE8A /* UserProfileSetBio.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserProfileSetBio.pb.swift; sourceTree = ""; }; + FAA1BDB51F98EE220010FE8A /* ClientRoomReport.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClientRoomReport.pb.swift; sourceTree = ""; }; + FAA1BDB61F98EE230010FE8A /* UserProfileGetBio.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserProfileGetBio.pb.swift; sourceTree = ""; }; + FAA1BDB71F98EE230010FE8A /* UserReport.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserReport.pb.swift; sourceTree = ""; }; FAF5D1951F8D663800A26EE1 /* QrCodeAddContact.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QrCodeAddContact.pb.swift; sourceTree = ""; }; FAF5D1961F8D663800A26EE1 /* GroupAddAdmin.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GroupAddAdmin.pb.swift; sourceTree = ""; }; FAF5D1971F8D663800A26EE1 /* GroupAddModerator.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GroupAddModerator.pb.swift; sourceTree = ""; }; @@ -367,6 +379,12 @@ FA5A9FF11F71ECEF00D925F5 /* ProtoBuffs */ = { isa = PBXGroup; children = ( + FAA1BDB11F98EDF70010FE8A /* ClientMuteRoom.pb.swift */, + FAA1BDB31F98EE220010FE8A /* ClientPinRoom.pb.swift */, + FAA1BDB51F98EE220010FE8A /* ClientRoomReport.pb.swift */, + FAA1BDB61F98EE230010FE8A /* UserProfileGetBio.pb.swift */, + FAA1BDB41F98EE220010FE8A /* UserProfileSetBio.pb.swift */, + FAA1BDB71F98EE230010FE8A /* UserReport.pb.swift */, FAF5D1FE1F8D665300A26EE1 /* ChannelAddAdmin.pb.swift */, FAF5D2071F8D665600A26EE1 /* ChannelAddMember.pb.swift */, FAF5D21A1F8D665C00A26EE1 /* ChannelAddMessageReaction.pb.swift */, @@ -707,6 +725,7 @@ FAF5D25B1F8D6C2000A26EE1 /* ChatConvertToGroup.pb.swift in Sources */, FAF5D2B81F8D6C2000A26EE1 /* UserAvatarDelete.pb.swift in Sources */, FAF5D2851F8D6C2000A26EE1 /* GroupAddMember.pb.swift in Sources */, + FAA1BDBA1F98EE230010FE8A /* ClientRoomReport.pb.swift in Sources */, FAF5D2CF1F8D6C2000A26EE1 /* UserProfileSetSelfRemove.pb.swift in Sources */, FAF5D2D71F8D6C2000A26EE1 /* UserTwoStepVerificationChangeRecoveryQuestion.pb.swift in Sources */, FAF5D28B1F8D6C2000A26EE1 /* GroupClearMessage.pb.swift in Sources */, @@ -761,8 +780,10 @@ FAF5D2AC1F8D6C2000A26EE1 /* QrCodeResolve.pb.swift in Sources */, FAF5D2CD1F8D6C2000A26EE1 /* UserProfileSetGender.pb.swift in Sources */, FAF5D2951F8D6C2000A26EE1 /* GroupKickModerator.pb.swift in Sources */, + FAA1BDB81F98EE230010FE8A /* ClientPinRoom.pb.swift in Sources */, FAF5D26B1F8D6C2000A26EE1 /* ClientGetRoomMessage.pb.swift in Sources */, FAF5D29D1F8D6C2000A26EE1 /* GroupUpdateUsername.pb.swift in Sources */, + FAA1BDB91F98EE230010FE8A /* UserProfileSetBio.pb.swift in Sources */, FAF5D2D21F8D6C2000A26EE1 /* UserSessionGetActiveList.pb.swift in Sources */, FAF5D2641F8D6C2000A26EE1 /* ChatUpdateStatus.pb.swift in Sources */, FAF5D2A51F8D6C2000A26EE1 /* PushRateSignaling.pb.swift in Sources */, @@ -770,6 +791,7 @@ FAF5D2B31F8D6C2000A26EE1 /* SignalingOffer.pb.swift in Sources */, FAF5D2681F8D6C2000A26EE1 /* ClientGetRoom.pb.swift in Sources */, FAF5D2C31F8D6C2000A26EE1 /* UserInfo.pb.swift in Sources */, + FAA1BDBC1F98EE230010FE8A /* UserReport.pb.swift in Sources */, FAF5D26C1F8D6C2000A26EE1 /* ClientJoinByInviteLink.pb.swift in Sources */, FAF5D2B01F8D6C2000A26EE1 /* SignalingGetConfiguration.pb.swift in Sources */, FAF5D2C81F8D6C2000A26EE1 /* UserProfileGetEmail.pb.swift in Sources */, @@ -790,6 +812,7 @@ FAF5D2771F8D6C2000A26EE1 /* FileUpload.pb.swift in Sources */, FAF5D2C71F8D6C2000A26EE1 /* UserProfileCheckUsername.pb.swift in Sources */, FAF5D2871F8D6C2000A26EE1 /* GroupAvatarAdd.pb.swift in Sources */, + FAA1BDB21F98EDF90010FE8A /* ClientMuteRoom.pb.swift in Sources */, FAF5D2A41F8D6C2000A26EE1 /* PushLoginToken.pb.swift in Sources */, FAF5D25A1F8D6C2000A26EE1 /* ChatClearMessage.pb.swift in Sources */, FAF5D2811F8D6C2000A26EE1 /* GeoUpdateComment.pb.swift in Sources */, @@ -800,6 +823,7 @@ FAF5D29B1F8D6C2000A26EE1 /* GroupUpdateDraft.pb.swift in Sources */, FAF5D2CE1F8D6C2000A26EE1 /* UserProfileSetNickname.pb.swift in Sources */, FAF5D28D1F8D6C2000A26EE1 /* GroupDelete.pb.swift in Sources */, + FAA1BDBB1F98EE230010FE8A /* UserProfileGetBio.pb.swift in Sources */, FAF5D2461F8D6C2000A26EE1 /* ChannelCheckUsername.pb.swift in Sources */, FAF5D2BB1F8D6C2000A26EE1 /* UserContactsDelete.pb.swift in Sources */, FAF5D2981F8D6C2000A26EE1 /* GroupRevokeLink.pb.swift in Sources */, diff --git a/IGProtoBuff/ProtoBuffs/ChatDeleteMessage.pb.swift b/IGProtoBuff/ProtoBuffs/ChatDeleteMessage.pb.swift index cd12a40..0b7846e 100644 --- a/IGProtoBuff/ProtoBuffs/ChatDeleteMessage.pb.swift +++ b/IGProtoBuff/ProtoBuffs/ChatDeleteMessage.pb.swift @@ -41,6 +41,11 @@ public struct IGPChatDeleteMessage: SwiftProtobuf.RequestMessage { set {_uniqueStorage()._igpMessageID = newValue} } + public var igpBoth: Bool { + get {return _storage._igpBoth} + set {_uniqueStorage()._igpBoth = newValue} + } + public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} @@ -57,6 +62,7 @@ public struct IGPChatDeleteMessage: SwiftProtobuf.RequestMessage { case 1: try decoder.decodeSingularMessageField(value: &_storage._igpRequest) case 2: try decoder.decodeSingularInt64Field(value: &_storage._igpRoomID) case 3: try decoder.decodeSingularInt64Field(value: &_storage._igpMessageID) + case 4: try decoder.decodeSingularBoolField(value: &_storage._igpBoth) default: break } } @@ -78,6 +84,9 @@ public struct IGPChatDeleteMessage: SwiftProtobuf.RequestMessage { if _storage._igpMessageID != 0 { try visitor.visitSingularInt64Field(value: _storage._igpMessageID, fieldNumber: 3) } + if _storage._igpBoth != false { + try visitor.visitSingularBoolField(value: _storage._igpBoth, fieldNumber: 4) + } } try unknownFields.traverse(visitor: &visitor) } @@ -167,12 +176,14 @@ extension IGPChatDeleteMessage: SwiftProtobuf._MessageImplementationBase, SwiftP 1: .standard(proto: "IGP_request"), 2: .standard(proto: "IGP_room_id"), 3: .standard(proto: "IGP_message_id"), + 4: .standard(proto: "IGP_both"), ] fileprivate class _StorageClass { var _igpRequest: IGPRequest? = nil var _igpRoomID: Int64 = 0 var _igpMessageID: Int64 = 0 + var _igpBoth: Bool = false static let defaultInstance = _StorageClass() @@ -182,6 +193,7 @@ extension IGPChatDeleteMessage: SwiftProtobuf._MessageImplementationBase, SwiftP _igpRequest = source._igpRequest _igpRoomID = source._igpRoomID _igpMessageID = source._igpMessageID + _igpBoth = source._igpBoth } } @@ -200,6 +212,7 @@ extension IGPChatDeleteMessage: SwiftProtobuf._MessageImplementationBase, SwiftP if _storage._igpRequest != other_storage._igpRequest {return false} if _storage._igpRoomID != other_storage._igpRoomID {return false} if _storage._igpMessageID != other_storage._igpMessageID {return false} + if _storage._igpBoth != other_storage._igpBoth {return false} return true } if !storagesAreEqual {return false} diff --git a/IGProtoBuff/ProtoBuffs/ClientCondition.pb.swift b/IGProtoBuff/ProtoBuffs/ClientCondition.pb.swift index 45fc800..f69f138 100644 --- a/IGProtoBuff/ProtoBuffs/ClientCondition.pb.swift +++ b/IGProtoBuff/ProtoBuffs/ClientCondition.pb.swift @@ -49,7 +49,8 @@ public struct IGPClientCondition: SwiftProtobuf.RequestMessage { public var igpDeleteVersion: Int64 = 0 - public var igpOfflineDeleted: [Int64] = [] + ///DEPRECATED + public var igpOfflineDeletedDeprecated: [Int64] = [] public var igpOfflineEdited: [IGPClientCondition.IGPRoom.IGPOfflineEdited] = [] @@ -65,6 +66,8 @@ public struct IGPClientCondition: SwiftProtobuf.RequestMessage { public var igpOfflineListened: [Int64] = [] + public var igpOfflineDeleted: [IGPClientCondition.IGPRoom.IGPOfflineDeleted] = [] + public var unknownFields = SwiftProtobuf.UnknownStorage() public enum IGPOfflineMute: SwiftProtobuf.Enum { @@ -138,6 +141,46 @@ public struct IGPClientCondition: SwiftProtobuf.RequestMessage { } } + public struct IGPOfflineDeleted: SwiftProtobuf.Message { + public static let protoMessageName: String = IGPClientCondition.IGPRoom.protoMessageName + ".IGPOfflineDeleted" + + public var igpMessageID: Int64 = 0 + + public var igpBoth: Bool = false + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + + /// Used by the decoding initializers in the SwiftProtobuf library, not generally + /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding + /// initializers are defined in the SwiftProtobuf library. See the Message and + /// Message+*Additions` files. + public mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + switch fieldNumber { + case 1: try decoder.decodeSingularInt64Field(value: &self.igpMessageID) + case 4: try decoder.decodeSingularBoolField(value: &self.igpBoth) + default: break + } + } + } + + /// Used by the encoding methods of the SwiftProtobuf library, not generally + /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and + /// other serializer methods are defined in the SwiftProtobuf library. See the + /// `Message` and `Message+*Additions` files. + public func traverse(visitor: inout V) throws { + if self.igpMessageID != 0 { + try visitor.visitSingularInt64Field(value: self.igpMessageID, fieldNumber: 1) + } + if self.igpBoth != false { + try visitor.visitSingularBoolField(value: self.igpBoth, fieldNumber: 4) + } + try unknownFields.traverse(visitor: &visitor) + } + } + public init() {} /// Used by the decoding initializers in the SwiftProtobuf library, not generally @@ -151,7 +194,7 @@ public struct IGPClientCondition: SwiftProtobuf.RequestMessage { case 3: try decoder.decodeSingularInt64Field(value: &self.igpMessageVersion) case 4: try decoder.decodeSingularInt64Field(value: &self.igpStatusVersion) case 5: try decoder.decodeSingularInt64Field(value: &self.igpDeleteVersion) - case 6: try decoder.decodeRepeatedInt64Field(value: &self.igpOfflineDeleted) + case 6: try decoder.decodeRepeatedInt64Field(value: &self.igpOfflineDeletedDeprecated) case 7: try decoder.decodeRepeatedMessageField(value: &self.igpOfflineEdited) case 8: try decoder.decodeRepeatedInt64Field(value: &self.igpOfflineSeen) case 9: try decoder.decodeSingularInt64Field(value: &self.igpClearID) @@ -159,6 +202,7 @@ public struct IGPClientCondition: SwiftProtobuf.RequestMessage { case 11: try decoder.decodeSingularInt64Field(value: &self.igpCacheEndID) case 12: try decoder.decodeSingularEnumField(value: &self.igpOfflineMute) case 13: try decoder.decodeRepeatedInt64Field(value: &self.igpOfflineListened) + case 14: try decoder.decodeRepeatedMessageField(value: &self.igpOfflineDeleted) default: break } } @@ -181,8 +225,8 @@ public struct IGPClientCondition: SwiftProtobuf.RequestMessage { if self.igpDeleteVersion != 0 { try visitor.visitSingularInt64Field(value: self.igpDeleteVersion, fieldNumber: 5) } - if !self.igpOfflineDeleted.isEmpty { - try visitor.visitPackedInt64Field(value: self.igpOfflineDeleted, fieldNumber: 6) + if !self.igpOfflineDeletedDeprecated.isEmpty { + try visitor.visitPackedInt64Field(value: self.igpOfflineDeletedDeprecated, fieldNumber: 6) } if !self.igpOfflineEdited.isEmpty { try visitor.visitRepeatedMessageField(value: self.igpOfflineEdited, fieldNumber: 7) @@ -205,6 +249,9 @@ public struct IGPClientCondition: SwiftProtobuf.RequestMessage { if !self.igpOfflineListened.isEmpty { try visitor.visitPackedInt64Field(value: self.igpOfflineListened, fieldNumber: 13) } + if !self.igpOfflineDeleted.isEmpty { + try visitor.visitRepeatedMessageField(value: self.igpOfflineDeleted, fieldNumber: 14) + } try unknownFields.traverse(visitor: &visitor) } } @@ -346,7 +393,7 @@ extension IGPClientCondition.IGPRoom: SwiftProtobuf._MessageImplementationBase, 3: .standard(proto: "IGP_message_version"), 4: .standard(proto: "IGP_status_version"), 5: .standard(proto: "IGP_delete_version"), - 6: .standard(proto: "IGP_offline_deleted"), + 6: .standard(proto: "IGP_offline_deleted_deprecated"), 7: .standard(proto: "IGP_offline_edited"), 8: .standard(proto: "IGP_offline_seen"), 9: .standard(proto: "IGP_clear_id"), @@ -354,6 +401,7 @@ extension IGPClientCondition.IGPRoom: SwiftProtobuf._MessageImplementationBase, 11: .standard(proto: "IGP_cache_end_id"), 12: .standard(proto: "IGP_offline_mute"), 13: .standard(proto: "IGP_offline_listened"), + 14: .standard(proto: "IGP_offline_deleted"), ] public func _protobuf_generated_isEqualTo(other: IGPClientCondition.IGPRoom) -> Bool { @@ -361,7 +409,7 @@ extension IGPClientCondition.IGPRoom: SwiftProtobuf._MessageImplementationBase, if self.igpMessageVersion != other.igpMessageVersion {return false} if self.igpStatusVersion != other.igpStatusVersion {return false} if self.igpDeleteVersion != other.igpDeleteVersion {return false} - if self.igpOfflineDeleted != other.igpOfflineDeleted {return false} + if self.igpOfflineDeletedDeprecated != other.igpOfflineDeletedDeprecated {return false} if self.igpOfflineEdited != other.igpOfflineEdited {return false} if self.igpOfflineSeen != other.igpOfflineSeen {return false} if self.igpClearID != other.igpClearID {return false} @@ -369,6 +417,7 @@ extension IGPClientCondition.IGPRoom: SwiftProtobuf._MessageImplementationBase, if self.igpCacheEndID != other.igpCacheEndID {return false} if self.igpOfflineMute != other.igpOfflineMute {return false} if self.igpOfflineListened != other.igpOfflineListened {return false} + if self.igpOfflineDeleted != other.igpOfflineDeleted {return false} if unknownFields != other.unknownFields {return false} return true } @@ -396,6 +445,20 @@ extension IGPClientCondition.IGPRoom.IGPOfflineEdited: SwiftProtobuf._MessageImp } } +extension IGPClientCondition.IGPRoom.IGPOfflineDeleted: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "IGP_message_id"), + 4: .standard(proto: "IGP_both"), + ] + + public func _protobuf_generated_isEqualTo(other: IGPClientCondition.IGPRoom.IGPOfflineDeleted) -> Bool { + if self.igpMessageID != other.igpMessageID {return false} + if self.igpBoth != other.igpBoth {return false} + if unknownFields != other.unknownFields {return false} + return true + } +} + extension IGPClientConditionResponse: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .standard(proto: "IGP_response"), diff --git a/IGProtoBuff/ProtoBuffs/ClientMuteRoom.pb.swift b/IGProtoBuff/ProtoBuffs/ClientMuteRoom.pb.swift new file mode 100644 index 0000000..fda95be --- /dev/null +++ b/IGProtoBuff/ProtoBuffs/ClientMuteRoom.pb.swift @@ -0,0 +1,248 @@ +// DO NOT EDIT. +// +// Generated by the Swift generator plugin for the protocol buffer compiler. +// Source: ClientMuteRoom.proto +// +// For information on using the generated types, please see the documenation: +// https://github.com/apple/swift-protobuf/ + +import Foundation +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 your 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 +} + +public struct IGPClientMuteRoom: SwiftProtobuf.RequestMessage { + public static let protoMessageName: String = "IGPClientMuteRoom" + + public var igpRequest: IGPRequest { + get {return _storage._igpRequest ?? IGPRequest()} + set {_uniqueStorage()._igpRequest = newValue} + } + /// Returns true if `igpRequest` has been explicitly set. + public var hasIgpRequest: Bool {return _storage._igpRequest != nil} + /// Clears the value of `igpRequest`. Subsequent reads from it will return its default value. + public mutating func clearIgpRequest() {_storage._igpRequest = nil} + + public var igpRoomID: Int64 { + get {return _storage._igpRoomID} + set {_uniqueStorage()._igpRoomID = newValue} + } + + public var igpRoomMute: IGPRoomMute { + get {return _storage._igpRoomMute} + set {_uniqueStorage()._igpRoomMute = newValue} + } + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + + /// Used by the decoding initializers in the SwiftProtobuf library, not generally + /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding + /// initializers are defined in the SwiftProtobuf library. See the Message and + /// Message+*Additions` files. + public mutating func decodeMessage(decoder: inout D) throws { + _ = _uniqueStorage() + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + while let fieldNumber = try decoder.nextFieldNumber() { + switch fieldNumber { + case 1: try decoder.decodeSingularMessageField(value: &_storage._igpRequest) + case 2: try decoder.decodeSingularInt64Field(value: &_storage._igpRoomID) + case 3: try decoder.decodeSingularEnumField(value: &_storage._igpRoomMute) + default: break + } + } + } + } + + /// Used by the encoding methods of the SwiftProtobuf library, not generally + /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and + /// other serializer methods are defined in the SwiftProtobuf library. See the + /// `Message` and `Message+*Additions` files. + public func traverse(visitor: inout V) throws { + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + if let v = _storage._igpRequest { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } + if _storage._igpRoomID != 0 { + try visitor.visitSingularInt64Field(value: _storage._igpRoomID, fieldNumber: 2) + } + if _storage._igpRoomMute != .unmute { + try visitor.visitSingularEnumField(value: _storage._igpRoomMute, fieldNumber: 3) + } + } + try unknownFields.traverse(visitor: &visitor) + } + + fileprivate var _storage = _StorageClass.defaultInstance +} + +public struct IGPClientMuteRoomResponse: SwiftProtobuf.ResponseMessage { + public static let protoMessageName: String = "IGPClientMuteRoomResponse" + + public var igpResponse: IGPResponse { + get {return _storage._igpResponse ?? IGPResponse()} + set {_uniqueStorage()._igpResponse = newValue} + } + /// Returns true if `igpResponse` has been explicitly set. + public var hasIgpResponse: Bool {return _storage._igpResponse != nil} + /// Clears the value of `igpResponse`. Subsequent reads from it will return its default value. + public mutating func clearIgpResponse() {_storage._igpResponse = nil} + + public var igpRoomID: Int64 { + get {return _storage._igpRoomID} + set {_uniqueStorage()._igpRoomID = newValue} + } + + public var igpRoomMute: IGPRoomMute { + get {return _storage._igpRoomMute} + set {_uniqueStorage()._igpRoomMute = newValue} + } + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + + /// Used by the decoding initializers in the SwiftProtobuf library, not generally + /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding + /// initializers are defined in the SwiftProtobuf library. See the Message and + /// Message+*Additions` files. + public mutating func decodeMessage(decoder: inout D) throws { + _ = _uniqueStorage() + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + while let fieldNumber = try decoder.nextFieldNumber() { + switch fieldNumber { + case 1: try decoder.decodeSingularMessageField(value: &_storage._igpResponse) + case 2: try decoder.decodeSingularInt64Field(value: &_storage._igpRoomID) + case 3: try decoder.decodeSingularEnumField(value: &_storage._igpRoomMute) + default: break + } + } + } + } + + /// Used by the encoding methods of the SwiftProtobuf library, not generally + /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and + /// other serializer methods are defined in the SwiftProtobuf library. See the + /// `Message` and `Message+*Additions` files. + public func traverse(visitor: inout V) throws { + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + if let v = _storage._igpResponse { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } + if _storage._igpRoomID != 0 { + try visitor.visitSingularInt64Field(value: _storage._igpRoomID, fieldNumber: 2) + } + if _storage._igpRoomMute != .unmute { + try visitor.visitSingularEnumField(value: _storage._igpRoomMute, fieldNumber: 3) + } + } + try unknownFields.traverse(visitor: &visitor) + } + + fileprivate var _storage = _StorageClass.defaultInstance +} + +// MARK: - Code below here is support for the SwiftProtobuf runtime. + +extension IGPClientMuteRoom: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "IGP_request"), + 2: .standard(proto: "IGP_room_id"), + 3: .standard(proto: "IGP_room_mute"), + ] + + fileprivate class _StorageClass { + var _igpRequest: IGPRequest? = nil + var _igpRoomID: Int64 = 0 + var _igpRoomMute: IGPRoomMute = .unmute + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _igpRequest = source._igpRequest + _igpRoomID = source._igpRoomID + _igpRoomMute = source._igpRoomMute + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + public func _protobuf_generated_isEqualTo(other: IGPClientMuteRoom) -> Bool { + if _storage !== other._storage { + let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_args: (_StorageClass, _StorageClass)) in + let _storage = _args.0 + let other_storage = _args.1 + if _storage._igpRequest != other_storage._igpRequest {return false} + if _storage._igpRoomID != other_storage._igpRoomID {return false} + if _storage._igpRoomMute != other_storage._igpRoomMute {return false} + return true + } + if !storagesAreEqual {return false} + } + if unknownFields != other.unknownFields {return false} + return true + } +} + +extension IGPClientMuteRoomResponse: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "IGP_response"), + 2: .standard(proto: "IGP_room_id"), + 3: .standard(proto: "IGP_room_mute"), + ] + + fileprivate class _StorageClass { + var _igpResponse: IGPResponse? = nil + var _igpRoomID: Int64 = 0 + var _igpRoomMute: IGPRoomMute = .unmute + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _igpResponse = source._igpResponse + _igpRoomID = source._igpRoomID + _igpRoomMute = source._igpRoomMute + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + public func _protobuf_generated_isEqualTo(other: IGPClientMuteRoomResponse) -> Bool { + if _storage !== other._storage { + let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_args: (_StorageClass, _StorageClass)) in + let _storage = _args.0 + let other_storage = _args.1 + if _storage._igpResponse != other_storage._igpResponse {return false} + if _storage._igpRoomID != other_storage._igpRoomID {return false} + if _storage._igpRoomMute != other_storage._igpRoomMute {return false} + return true + } + if !storagesAreEqual {return false} + } + if unknownFields != other.unknownFields {return false} + return true + } +} diff --git a/IGProtoBuff/ProtoBuffs/ClientPinRoom.pb.swift b/IGProtoBuff/ProtoBuffs/ClientPinRoom.pb.swift new file mode 100644 index 0000000..86d634e --- /dev/null +++ b/IGProtoBuff/ProtoBuffs/ClientPinRoom.pb.swift @@ -0,0 +1,248 @@ +// DO NOT EDIT. +// +// Generated by the Swift generator plugin for the protocol buffer compiler. +// Source: ClientPinRoom.proto +// +// For information on using the generated types, please see the documenation: +// https://github.com/apple/swift-protobuf/ + +import Foundation +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 your 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 +} + +public struct IGPClientPinRoom: SwiftProtobuf.RequestMessage { + public static let protoMessageName: String = "IGPClientPinRoom" + + public var igpRequest: IGPRequest { + get {return _storage._igpRequest ?? IGPRequest()} + set {_uniqueStorage()._igpRequest = newValue} + } + /// Returns true if `igpRequest` has been explicitly set. + public var hasIgpRequest: Bool {return _storage._igpRequest != nil} + /// Clears the value of `igpRequest`. Subsequent reads from it will return its default value. + public mutating func clearIgpRequest() {_storage._igpRequest = nil} + + public var igpRoomID: Int64 { + get {return _storage._igpRoomID} + set {_uniqueStorage()._igpRoomID = newValue} + } + + public var igpPin: Bool { + get {return _storage._igpPin} + set {_uniqueStorage()._igpPin = newValue} + } + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + + /// Used by the decoding initializers in the SwiftProtobuf library, not generally + /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding + /// initializers are defined in the SwiftProtobuf library. See the Message and + /// Message+*Additions` files. + public mutating func decodeMessage(decoder: inout D) throws { + _ = _uniqueStorage() + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + while let fieldNumber = try decoder.nextFieldNumber() { + switch fieldNumber { + case 1: try decoder.decodeSingularMessageField(value: &_storage._igpRequest) + case 2: try decoder.decodeSingularInt64Field(value: &_storage._igpRoomID) + case 3: try decoder.decodeSingularBoolField(value: &_storage._igpPin) + default: break + } + } + } + } + + /// Used by the encoding methods of the SwiftProtobuf library, not generally + /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and + /// other serializer methods are defined in the SwiftProtobuf library. See the + /// `Message` and `Message+*Additions` files. + public func traverse(visitor: inout V) throws { + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + if let v = _storage._igpRequest { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } + if _storage._igpRoomID != 0 { + try visitor.visitSingularInt64Field(value: _storage._igpRoomID, fieldNumber: 2) + } + if _storage._igpPin != false { + try visitor.visitSingularBoolField(value: _storage._igpPin, fieldNumber: 3) + } + } + try unknownFields.traverse(visitor: &visitor) + } + + fileprivate var _storage = _StorageClass.defaultInstance +} + +public struct IGPClientPinRoomResponse: SwiftProtobuf.ResponseMessage { + public static let protoMessageName: String = "IGPClientPinRoomResponse" + + public var igpResponse: IGPResponse { + get {return _storage._igpResponse ?? IGPResponse()} + set {_uniqueStorage()._igpResponse = newValue} + } + /// Returns true if `igpResponse` has been explicitly set. + public var hasIgpResponse: Bool {return _storage._igpResponse != nil} + /// Clears the value of `igpResponse`. Subsequent reads from it will return its default value. + public mutating func clearIgpResponse() {_storage._igpResponse = nil} + + public var igpRoomID: Int64 { + get {return _storage._igpRoomID} + set {_uniqueStorage()._igpRoomID = newValue} + } + + public var igpPinID: Int64 { + get {return _storage._igpPinID} + set {_uniqueStorage()._igpPinID = newValue} + } + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + + /// Used by the decoding initializers in the SwiftProtobuf library, not generally + /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding + /// initializers are defined in the SwiftProtobuf library. See the Message and + /// Message+*Additions` files. + public mutating func decodeMessage(decoder: inout D) throws { + _ = _uniqueStorage() + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + while let fieldNumber = try decoder.nextFieldNumber() { + switch fieldNumber { + case 1: try decoder.decodeSingularMessageField(value: &_storage._igpResponse) + case 2: try decoder.decodeSingularInt64Field(value: &_storage._igpRoomID) + case 3: try decoder.decodeSingularInt64Field(value: &_storage._igpPinID) + default: break + } + } + } + } + + /// Used by the encoding methods of the SwiftProtobuf library, not generally + /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and + /// other serializer methods are defined in the SwiftProtobuf library. See the + /// `Message` and `Message+*Additions` files. + public func traverse(visitor: inout V) throws { + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + if let v = _storage._igpResponse { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } + if _storage._igpRoomID != 0 { + try visitor.visitSingularInt64Field(value: _storage._igpRoomID, fieldNumber: 2) + } + if _storage._igpPinID != 0 { + try visitor.visitSingularInt64Field(value: _storage._igpPinID, fieldNumber: 3) + } + } + try unknownFields.traverse(visitor: &visitor) + } + + fileprivate var _storage = _StorageClass.defaultInstance +} + +// MARK: - Code below here is support for the SwiftProtobuf runtime. + +extension IGPClientPinRoom: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "IGP_request"), + 2: .standard(proto: "IGP_room_id"), + 3: .standard(proto: "IGP_pin"), + ] + + fileprivate class _StorageClass { + var _igpRequest: IGPRequest? = nil + var _igpRoomID: Int64 = 0 + var _igpPin: Bool = false + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _igpRequest = source._igpRequest + _igpRoomID = source._igpRoomID + _igpPin = source._igpPin + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + public func _protobuf_generated_isEqualTo(other: IGPClientPinRoom) -> Bool { + if _storage !== other._storage { + let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_args: (_StorageClass, _StorageClass)) in + let _storage = _args.0 + let other_storage = _args.1 + if _storage._igpRequest != other_storage._igpRequest {return false} + if _storage._igpRoomID != other_storage._igpRoomID {return false} + if _storage._igpPin != other_storage._igpPin {return false} + return true + } + if !storagesAreEqual {return false} + } + if unknownFields != other.unknownFields {return false} + return true + } +} + +extension IGPClientPinRoomResponse: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "IGP_response"), + 2: .standard(proto: "IGP_room_id"), + 3: .standard(proto: "IGP_pin_id"), + ] + + fileprivate class _StorageClass { + var _igpResponse: IGPResponse? = nil + var _igpRoomID: Int64 = 0 + var _igpPinID: Int64 = 0 + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _igpResponse = source._igpResponse + _igpRoomID = source._igpRoomID + _igpPinID = source._igpPinID + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + public func _protobuf_generated_isEqualTo(other: IGPClientPinRoomResponse) -> Bool { + if _storage !== other._storage { + let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_args: (_StorageClass, _StorageClass)) in + let _storage = _args.0 + let other_storage = _args.1 + if _storage._igpResponse != other_storage._igpResponse {return false} + if _storage._igpRoomID != other_storage._igpRoomID {return false} + if _storage._igpPinID != other_storage._igpPinID {return false} + return true + } + if !storagesAreEqual {return false} + } + if unknownFields != other.unknownFields {return false} + return true + } +} diff --git a/IGProtoBuff/ProtoBuffs/ClientRoomReport.pb.swift b/IGProtoBuff/ProtoBuffs/ClientRoomReport.pb.swift new file mode 100644 index 0000000..1e9679a --- /dev/null +++ b/IGProtoBuff/ProtoBuffs/ClientRoomReport.pb.swift @@ -0,0 +1,295 @@ +// DO NOT EDIT. +// +// Generated by the Swift generator plugin for the protocol buffer compiler. +// Source: ClientRoomReport.proto +// +// For information on using the generated types, please see the documenation: +// https://github.com/apple/swift-protobuf/ + +import Foundation +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 your 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 +} + +public struct IGPClientRoomReport: SwiftProtobuf.RequestMessage { + public static let protoMessageName: String = "IGPClientRoomReport" + + public var igpRequest: IGPRequest { + get {return _storage._igpRequest ?? IGPRequest()} + set {_uniqueStorage()._igpRequest = newValue} + } + /// Returns true if `igpRequest` has been explicitly set. + public var hasIgpRequest: Bool {return _storage._igpRequest != nil} + /// Clears the value of `igpRequest`. Subsequent reads from it will return its default value. + public mutating func clearIgpRequest() {_storage._igpRequest = nil} + + public var igpRoomID: Int64 { + get {return _storage._igpRoomID} + set {_uniqueStorage()._igpRoomID = newValue} + } + + public var igpMessageID: Int64 { + get {return _storage._igpMessageID} + set {_uniqueStorage()._igpMessageID = newValue} + } + + public var igpReason: IGPClientRoomReport.IGPReason { + get {return _storage._igpReason} + set {_uniqueStorage()._igpReason = newValue} + } + + public var igpDescription: String { + get {return _storage._igpDescription} + set {_uniqueStorage()._igpDescription = newValue} + } + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public enum IGPReason: SwiftProtobuf.Enum { + public typealias RawValue = Int + case other // = 0 + case spam // = 1 + case pornography // = 2 + case violence // = 3 + case abuse // = 4 + case UNRECOGNIZED(Int) + + public init() { + self = .other + } + + public init?(rawValue: Int) { + switch rawValue { + case 0: self = .other + case 1: self = .spam + case 2: self = .pornography + case 3: self = .violence + case 4: self = .abuse + default: self = .UNRECOGNIZED(rawValue) + } + } + + public var rawValue: Int { + switch self { + case .other: return 0 + case .spam: return 1 + case .pornography: return 2 + case .violence: return 3 + case .abuse: return 4 + case .UNRECOGNIZED(let i): return i + } + } + + } + + public init() {} + + /// Used by the decoding initializers in the SwiftProtobuf library, not generally + /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding + /// initializers are defined in the SwiftProtobuf library. See the Message and + /// Message+*Additions` files. + public mutating func decodeMessage(decoder: inout D) throws { + _ = _uniqueStorage() + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + while let fieldNumber = try decoder.nextFieldNumber() { + switch fieldNumber { + case 1: try decoder.decodeSingularMessageField(value: &_storage._igpRequest) + case 2: try decoder.decodeSingularInt64Field(value: &_storage._igpRoomID) + case 3: try decoder.decodeSingularInt64Field(value: &_storage._igpMessageID) + case 4: try decoder.decodeSingularEnumField(value: &_storage._igpReason) + case 5: try decoder.decodeSingularStringField(value: &_storage._igpDescription) + default: break + } + } + } + } + + /// Used by the encoding methods of the SwiftProtobuf library, not generally + /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and + /// other serializer methods are defined in the SwiftProtobuf library. See the + /// `Message` and `Message+*Additions` files. + public func traverse(visitor: inout V) throws { + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + if let v = _storage._igpRequest { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } + if _storage._igpRoomID != 0 { + try visitor.visitSingularInt64Field(value: _storage._igpRoomID, fieldNumber: 2) + } + if _storage._igpMessageID != 0 { + try visitor.visitSingularInt64Field(value: _storage._igpMessageID, fieldNumber: 3) + } + if _storage._igpReason != .other { + try visitor.visitSingularEnumField(value: _storage._igpReason, fieldNumber: 4) + } + if !_storage._igpDescription.isEmpty { + try visitor.visitSingularStringField(value: _storage._igpDescription, fieldNumber: 5) + } + } + try unknownFields.traverse(visitor: &visitor) + } + + fileprivate var _storage = _StorageClass.defaultInstance +} + +public struct IGPClientRoomReportResponse: SwiftProtobuf.ResponseMessage { + public static let protoMessageName: String = "IGPClientRoomReportResponse" + + public var igpResponse: IGPResponse { + get {return _storage._igpResponse ?? IGPResponse()} + set {_uniqueStorage()._igpResponse = newValue} + } + /// Returns true if `igpResponse` has been explicitly set. + public var hasIgpResponse: Bool {return _storage._igpResponse != nil} + /// Clears the value of `igpResponse`. Subsequent reads from it will return its default value. + public mutating func clearIgpResponse() {_storage._igpResponse = nil} + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + + /// Used by the decoding initializers in the SwiftProtobuf library, not generally + /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding + /// initializers are defined in the SwiftProtobuf library. See the Message and + /// Message+*Additions` files. + public mutating func decodeMessage(decoder: inout D) throws { + _ = _uniqueStorage() + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + while let fieldNumber = try decoder.nextFieldNumber() { + switch fieldNumber { + case 1: try decoder.decodeSingularMessageField(value: &_storage._igpResponse) + default: break + } + } + } + } + + /// Used by the encoding methods of the SwiftProtobuf library, not generally + /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and + /// other serializer methods are defined in the SwiftProtobuf library. See the + /// `Message` and `Message+*Additions` files. + public func traverse(visitor: inout V) throws { + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + if let v = _storage._igpResponse { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } + } + try unknownFields.traverse(visitor: &visitor) + } + + fileprivate var _storage = _StorageClass.defaultInstance +} + +// MARK: - Code below here is support for the SwiftProtobuf runtime. + +extension IGPClientRoomReport: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "IGP_request"), + 2: .standard(proto: "IGP_room_id"), + 3: .standard(proto: "IGP_message_id"), + 4: .standard(proto: "IGP_reason"), + 5: .standard(proto: "IGP_description"), + ] + + fileprivate class _StorageClass { + var _igpRequest: IGPRequest? = nil + var _igpRoomID: Int64 = 0 + var _igpMessageID: Int64 = 0 + var _igpReason: IGPClientRoomReport.IGPReason = .other + var _igpDescription: String = String() + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _igpRequest = source._igpRequest + _igpRoomID = source._igpRoomID + _igpMessageID = source._igpMessageID + _igpReason = source._igpReason + _igpDescription = source._igpDescription + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + public func _protobuf_generated_isEqualTo(other: IGPClientRoomReport) -> Bool { + if _storage !== other._storage { + let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_args: (_StorageClass, _StorageClass)) in + let _storage = _args.0 + let other_storage = _args.1 + if _storage._igpRequest != other_storage._igpRequest {return false} + if _storage._igpRoomID != other_storage._igpRoomID {return false} + if _storage._igpMessageID != other_storage._igpMessageID {return false} + if _storage._igpReason != other_storage._igpReason {return false} + if _storage._igpDescription != other_storage._igpDescription {return false} + return true + } + if !storagesAreEqual {return false} + } + if unknownFields != other.unknownFields {return false} + return true + } +} + +extension IGPClientRoomReport.IGPReason: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "OTHER"), + 1: .same(proto: "SPAM"), + 2: .same(proto: "PORNOGRAPHY"), + 3: .same(proto: "VIOLENCE"), + 4: .same(proto: "ABUSE"), + ] +} + +extension IGPClientRoomReportResponse: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "IGP_response"), + ] + + fileprivate class _StorageClass { + var _igpResponse: IGPResponse? = nil + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _igpResponse = source._igpResponse + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + public func _protobuf_generated_isEqualTo(other: IGPClientRoomReportResponse) -> Bool { + if _storage !== other._storage { + let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_args: (_StorageClass, _StorageClass)) in + let _storage = _args.0 + let other_storage = _args.1 + if _storage._igpResponse != other_storage._igpResponse {return false} + return true + } + if !storagesAreEqual {return false} + } + if unknownFields != other.unknownFields {return false} + return true + } +} diff --git a/IGProtoBuff/ProtoBuffs/Global.pb.swift b/IGProtoBuff/ProtoBuffs/Global.pb.swift index 292ffb7..ab93b69 100644 --- a/IGProtoBuff/ProtoBuffs/Global.pb.swift +++ b/IGProtoBuff/ProtoBuffs/Global.pb.swift @@ -357,6 +357,34 @@ public enum IGPClientAction: SwiftProtobuf.Enum { } +public enum IGPRoomMute: SwiftProtobuf.Enum { + public typealias RawValue = Int + case unmute // = 0 + case mute // = 1 + case UNRECOGNIZED(Int) + + public init() { + self = .unmute + } + + public init?(rawValue: Int) { + switch rawValue { + case 0: self = .unmute + case 1: self = .mute + default: self = .UNRECOGNIZED(rawValue) + } + } + + public var rawValue: Int { + switch self { + case .unmute: return 0 + case .mute: return 1 + case .UNRECOGNIZED(let i): return i + } + } + +} + public enum IGPPrivacyType: SwiftProtobuf.Enum { public typealias RawValue = Int case userStatus // = 0 @@ -846,6 +874,11 @@ public struct IGPRegisteredUser: SwiftProtobuf.Message { set {_uniqueStorage()._igpCacheID = newValue} } + public var igpBio: String { + get {return _storage._igpBio} + set {_uniqueStorage()._igpBio = newValue} + } + public var unknownFields = SwiftProtobuf.UnknownStorage() public enum IGPStatus: SwiftProtobuf.Enum { @@ -920,6 +953,7 @@ public struct IGPRegisteredUser: SwiftProtobuf.Message { case 13: try decoder.decodeSingularBoolField(value: &_storage._igpMutual) case 14: try decoder.decodeSingularBoolField(value: &_storage._igpDeleted) case 15: try decoder.decodeSingularStringField(value: &_storage._igpCacheID) + case 16: try decoder.decodeSingularStringField(value: &_storage._igpBio) default: break } } @@ -977,6 +1011,9 @@ public struct IGPRegisteredUser: SwiftProtobuf.Message { if !_storage._igpCacheID.isEmpty { try visitor.visitSingularStringField(value: _storage._igpCacheID, fieldNumber: 15) } + if !_storage._igpBio.isEmpty { + try visitor.visitSingularStringField(value: _storage._igpBio, fieldNumber: 16) + } } try unknownFields.traverse(visitor: &visitor) } @@ -1622,6 +1659,16 @@ public struct IGPRoom: SwiftProtobuf.Message { /// Clears the value of `igpFirstUnreadMessage`. Subsequent reads from it will return its default value. public mutating func clearIgpFirstUnreadMessage() {_storage._igpFirstUnreadMessage = nil} + public var igpRoomMute: IGPRoomMute { + get {return _storage._igpRoomMute} + set {_uniqueStorage()._igpRoomMute = newValue} + } + + public var igpPinID: Int64 { + get {return _storage._igpPinID} + set {_uniqueStorage()._igpPinID = newValue} + } + public var igpChatRoomExtra: IGPChatRoom { get {return _storage._igpChatRoomExtra ?? IGPChatRoom()} set {_uniqueStorage()._igpChatRoomExtra = newValue} @@ -1707,6 +1754,8 @@ public struct IGPRoom: SwiftProtobuf.Message { case 12: try decoder.decodeSingularMessageField(value: &_storage._igpGroupRoomExtra) case 13: try decoder.decodeSingularMessageField(value: &_storage._igpChannelRoomExtra) case 14: try decoder.decodeSingularMessageField(value: &_storage._igpFirstUnreadMessage) + case 15: try decoder.decodeSingularEnumField(value: &_storage._igpRoomMute) + case 16: try decoder.decodeSingularInt64Field(value: &_storage._igpPinID) default: break } } @@ -1761,6 +1810,12 @@ public struct IGPRoom: SwiftProtobuf.Message { if let v = _storage._igpFirstUnreadMessage { try visitor.visitSingularMessageField(value: v, fieldNumber: 14) } + if _storage._igpRoomMute != .unmute { + try visitor.visitSingularEnumField(value: _storage._igpRoomMute, fieldNumber: 15) + } + if _storage._igpPinID != 0 { + try visitor.visitSingularInt64Field(value: _storage._igpPinID, fieldNumber: 16) + } } try unknownFields.traverse(visitor: &visitor) } @@ -2391,6 +2446,10 @@ public struct IGPThumbnail: SwiftProtobuf.Message { public var igpCacheID: String = String() + public var igpName: String = String() + + public var igpMime: String = String() + public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} @@ -2406,6 +2465,8 @@ public struct IGPThumbnail: SwiftProtobuf.Message { case 2: try decoder.decodeSingularInt32Field(value: &self.igpWidth) case 3: try decoder.decodeSingularInt32Field(value: &self.igpHeight) case 4: try decoder.decodeSingularStringField(value: &self.igpCacheID) + case 5: try decoder.decodeSingularStringField(value: &self.igpName) + case 6: try decoder.decodeSingularStringField(value: &self.igpMime) default: break } } @@ -2428,6 +2489,12 @@ public struct IGPThumbnail: SwiftProtobuf.Message { if !self.igpCacheID.isEmpty { try visitor.visitSingularStringField(value: self.igpCacheID, fieldNumber: 4) } + if !self.igpName.isEmpty { + try visitor.visitSingularStringField(value: self.igpName, fieldNumber: 5) + } + if !self.igpMime.isEmpty { + try visitor.visitSingularStringField(value: self.igpMime, fieldNumber: 6) + } try unknownFields.traverse(visitor: &visitor) } } @@ -2497,6 +2564,11 @@ public struct IGPFile: SwiftProtobuf.Message { set {_uniqueStorage()._igpCacheID = newValue} } + public var igpMime: String { + get {return _storage._igpMime} + set {_uniqueStorage()._igpMime = newValue} + } + public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} @@ -2520,6 +2592,7 @@ public struct IGPFile: SwiftProtobuf.Message { case 8: try decoder.decodeSingularInt32Field(value: &_storage._igpHeight) case 9: try decoder.decodeSingularDoubleField(value: &_storage._igpDuration) case 10: try decoder.decodeSingularStringField(value: &_storage._igpCacheID) + case 11: try decoder.decodeSingularStringField(value: &_storage._igpMime) default: break } } @@ -2562,6 +2635,9 @@ public struct IGPFile: SwiftProtobuf.Message { if !_storage._igpCacheID.isEmpty { try visitor.visitSingularStringField(value: _storage._igpCacheID, fieldNumber: 10) } + if !_storage._igpMime.isEmpty { + try visitor.visitSingularStringField(value: _storage._igpMime, fieldNumber: 11) + } } try unknownFields.traverse(visitor: &visitor) } @@ -2762,6 +2838,13 @@ extension IGPClientAction: SwiftProtobuf._ProtoNameProviding { ] } +extension IGPRoomMute: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "UNMUTE"), + 1: .same(proto: "MUTE"), + ] +} + extension IGPPrivacyType: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 0: .same(proto: "USER_STATUS"), @@ -2933,6 +3016,7 @@ extension IGPRegisteredUser: SwiftProtobuf._MessageImplementationBase, SwiftProt 13: .standard(proto: "IGP_mutual"), 14: .standard(proto: "IGP_deleted"), 15: .standard(proto: "IGP_cache_id"), + 16: .standard(proto: "IGP_bio"), ] fileprivate class _StorageClass { @@ -2951,6 +3035,7 @@ extension IGPRegisteredUser: SwiftProtobuf._MessageImplementationBase, SwiftProt var _igpMutual: Bool = false var _igpDeleted: Bool = false var _igpCacheID: String = String() + var _igpBio: String = String() static let defaultInstance = _StorageClass() @@ -2972,6 +3057,7 @@ extension IGPRegisteredUser: SwiftProtobuf._MessageImplementationBase, SwiftProt _igpMutual = source._igpMutual _igpDeleted = source._igpDeleted _igpCacheID = source._igpCacheID + _igpBio = source._igpBio } } @@ -3002,6 +3088,7 @@ extension IGPRegisteredUser: SwiftProtobuf._MessageImplementationBase, SwiftProt if _storage._igpMutual != other_storage._igpMutual {return false} if _storage._igpDeleted != other_storage._igpDeleted {return false} if _storage._igpCacheID != other_storage._igpCacheID {return false} + if _storage._igpBio != other_storage._igpBio {return false} return true } if !storagesAreEqual {return false} @@ -3307,6 +3394,8 @@ extension IGPRoom: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._Prot 9: .standard(proto: "IGP_is_participant"), 10: .standard(proto: "IGP_draft"), 14: .standard(proto: "IGP_first_unread_message"), + 15: .standard(proto: "IGP_room_mute"), + 16: .standard(proto: "IGP_pin_id"), 11: .standard(proto: "IGP_chat_room_extra"), 12: .standard(proto: "IGP_group_room_extra"), 13: .standard(proto: "IGP_channel_room_extra"), @@ -3324,6 +3413,8 @@ extension IGPRoom: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._Prot var _igpIsParticipant: Bool = false var _igpDraft: IGPRoomDraft? = nil var _igpFirstUnreadMessage: IGPRoomMessage? = nil + var _igpRoomMute: IGPRoomMute = .unmute + var _igpPinID: Int64 = 0 var _igpChatRoomExtra: IGPChatRoom? = nil var _igpGroupRoomExtra: IGPGroupRoom? = nil var _igpChannelRoomExtra: IGPChannelRoom? = nil @@ -3344,6 +3435,8 @@ extension IGPRoom: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._Prot _igpIsParticipant = source._igpIsParticipant _igpDraft = source._igpDraft _igpFirstUnreadMessage = source._igpFirstUnreadMessage + _igpRoomMute = source._igpRoomMute + _igpPinID = source._igpPinID _igpChatRoomExtra = source._igpChatRoomExtra _igpGroupRoomExtra = source._igpGroupRoomExtra _igpChannelRoomExtra = source._igpChannelRoomExtra @@ -3373,6 +3466,8 @@ extension IGPRoom: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._Prot if _storage._igpIsParticipant != other_storage._igpIsParticipant {return false} if _storage._igpDraft != other_storage._igpDraft {return false} if _storage._igpFirstUnreadMessage != other_storage._igpFirstUnreadMessage {return false} + if _storage._igpRoomMute != other_storage._igpRoomMute {return false} + if _storage._igpPinID != other_storage._igpPinID {return false} if _storage._igpChatRoomExtra != other_storage._igpChatRoomExtra {return false} if _storage._igpGroupRoomExtra != other_storage._igpGroupRoomExtra {return false} if _storage._igpChannelRoomExtra != other_storage._igpChannelRoomExtra {return false} @@ -3680,6 +3775,8 @@ extension IGPThumbnail: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf. 2: .standard(proto: "IGP_width"), 3: .standard(proto: "IGP_height"), 4: .standard(proto: "IGP_cache_id"), + 5: .standard(proto: "IGP_name"), + 6: .standard(proto: "IGP_mime"), ] public func _protobuf_generated_isEqualTo(other: IGPThumbnail) -> Bool { @@ -3687,6 +3784,8 @@ extension IGPThumbnail: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf. if self.igpWidth != other.igpWidth {return false} if self.igpHeight != other.igpHeight {return false} if self.igpCacheID != other.igpCacheID {return false} + if self.igpName != other.igpName {return false} + if self.igpMime != other.igpMime {return false} if unknownFields != other.unknownFields {return false} return true } @@ -3704,6 +3803,7 @@ extension IGPFile: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._Prot 8: .standard(proto: "IGP_height"), 9: .standard(proto: "IGP_duration"), 10: .standard(proto: "IGP_cache_id"), + 11: .standard(proto: "IGP_mime"), ] fileprivate class _StorageClass { @@ -3717,6 +3817,7 @@ extension IGPFile: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._Prot var _igpHeight: Int32 = 0 var _igpDuration: Double = 0 var _igpCacheID: String = String() + var _igpMime: String = String() static let defaultInstance = _StorageClass() @@ -3733,6 +3834,7 @@ extension IGPFile: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._Prot _igpHeight = source._igpHeight _igpDuration = source._igpDuration _igpCacheID = source._igpCacheID + _igpMime = source._igpMime } } @@ -3758,6 +3860,7 @@ extension IGPFile: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._Prot if _storage._igpHeight != other_storage._igpHeight {return false} if _storage._igpDuration != other_storage._igpDuration {return false} if _storage._igpCacheID != other_storage._igpCacheID {return false} + if _storage._igpMime != other_storage._igpMime {return false} return true } if !storagesAreEqual {return false} diff --git a/IGProtoBuff/ProtoBuffs/UserContactsGetBlockedList.pb.swift b/IGProtoBuff/ProtoBuffs/UserContactsGetBlockedList.pb.swift index c83b903..dac10c2 100644 --- a/IGProtoBuff/ProtoBuffs/UserContactsGetBlockedList.pb.swift +++ b/IGProtoBuff/ProtoBuffs/UserContactsGetBlockedList.pb.swift @@ -91,6 +91,8 @@ public struct IGPUserContactsGetBlockedListResponse: SwiftProtobuf.ResponseMessa public var igpUserID: Int64 = 0 + public var igpCacheID: String = String() + public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} @@ -103,6 +105,7 @@ public struct IGPUserContactsGetBlockedListResponse: SwiftProtobuf.ResponseMessa while let fieldNumber = try decoder.nextFieldNumber() { switch fieldNumber { case 1: try decoder.decodeSingularInt64Field(value: &self.igpUserID) + case 2: try decoder.decodeSingularStringField(value: &self.igpCacheID) default: break } } @@ -116,6 +119,9 @@ public struct IGPUserContactsGetBlockedListResponse: SwiftProtobuf.ResponseMessa if self.igpUserID != 0 { try visitor.visitSingularInt64Field(value: self.igpUserID, fieldNumber: 1) } + if !self.igpCacheID.isEmpty { + try visitor.visitSingularStringField(value: self.igpCacheID, fieldNumber: 2) + } try unknownFields.traverse(visitor: &visitor) } } @@ -245,10 +251,12 @@ extension IGPUserContactsGetBlockedListResponse: SwiftProtobuf._MessageImplement extension IGPUserContactsGetBlockedListResponse.IGPUser: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .standard(proto: "IGP_user_id"), + 2: .standard(proto: "IGP_cache_id"), ] public func _protobuf_generated_isEqualTo(other: IGPUserContactsGetBlockedListResponse.IGPUser) -> Bool { if self.igpUserID != other.igpUserID {return false} + if self.igpCacheID != other.igpCacheID {return false} if unknownFields != other.unknownFields {return false} return true } diff --git a/IGProtoBuff/ProtoBuffs/UserLogin.pb.swift b/IGProtoBuff/ProtoBuffs/UserLogin.pb.swift index 601cfc9..65fdcf5 100644 --- a/IGProtoBuff/ProtoBuffs/UserLogin.pb.swift +++ b/IGProtoBuff/ProtoBuffs/UserLogin.pb.swift @@ -184,6 +184,11 @@ public struct IGPUserLoginResponse: SwiftProtobuf.ResponseMessage { set {_uniqueStorage()._igpUpdateAvailable = newValue} } + public var igpChatDeleteMessageForBothPeriod: Int32 { + get {return _storage._igpChatDeleteMessageForBothPeriod} + set {_uniqueStorage()._igpChatDeleteMessageForBothPeriod = newValue} + } + public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} @@ -201,6 +206,7 @@ public struct IGPUserLoginResponse: SwiftProtobuf.ResponseMessage { case 2: try decoder.decodeSingularBoolField(value: &_storage._igpDeprecatedClient) case 3: try decoder.decodeSingularStringField(value: &_storage._igpSecondaryNodeName) case 4: try decoder.decodeSingularBoolField(value: &_storage._igpUpdateAvailable) + case 5: try decoder.decodeSingularInt32Field(value: &_storage._igpChatDeleteMessageForBothPeriod) default: break } } @@ -225,6 +231,9 @@ public struct IGPUserLoginResponse: SwiftProtobuf.ResponseMessage { if _storage._igpUpdateAvailable != false { try visitor.visitSingularBoolField(value: _storage._igpUpdateAvailable, fieldNumber: 4) } + if _storage._igpChatDeleteMessageForBothPeriod != 0 { + try visitor.visitSingularInt32Field(value: _storage._igpChatDeleteMessageForBothPeriod, fieldNumber: 5) + } } try unknownFields.traverse(visitor: &visitor) } @@ -319,6 +328,7 @@ extension IGPUserLoginResponse: SwiftProtobuf._MessageImplementationBase, SwiftP 2: .standard(proto: "IGP_deprecated_client"), 3: .standard(proto: "IGP_secondary_node_name"), 4: .standard(proto: "IGP_update_available"), + 5: .standard(proto: "IGP_chat_delete_message_for_both_period"), ] fileprivate class _StorageClass { @@ -326,6 +336,7 @@ extension IGPUserLoginResponse: SwiftProtobuf._MessageImplementationBase, SwiftP var _igpDeprecatedClient: Bool = false var _igpSecondaryNodeName: String = String() var _igpUpdateAvailable: Bool = false + var _igpChatDeleteMessageForBothPeriod: Int32 = 0 static let defaultInstance = _StorageClass() @@ -336,6 +347,7 @@ extension IGPUserLoginResponse: SwiftProtobuf._MessageImplementationBase, SwiftP _igpDeprecatedClient = source._igpDeprecatedClient _igpSecondaryNodeName = source._igpSecondaryNodeName _igpUpdateAvailable = source._igpUpdateAvailable + _igpChatDeleteMessageForBothPeriod = source._igpChatDeleteMessageForBothPeriod } } @@ -355,6 +367,7 @@ extension IGPUserLoginResponse: SwiftProtobuf._MessageImplementationBase, SwiftP if _storage._igpDeprecatedClient != other_storage._igpDeprecatedClient {return false} if _storage._igpSecondaryNodeName != other_storage._igpSecondaryNodeName {return false} if _storage._igpUpdateAvailable != other_storage._igpUpdateAvailable {return false} + if _storage._igpChatDeleteMessageForBothPeriod != other_storage._igpChatDeleteMessageForBothPeriod {return false} return true } if !storagesAreEqual {return false} diff --git a/IGProtoBuff/ProtoBuffs/UserProfileGetBio.pb.swift b/IGProtoBuff/ProtoBuffs/UserProfileGetBio.pb.swift new file mode 100644 index 0000000..96aa8a5 --- /dev/null +++ b/IGProtoBuff/ProtoBuffs/UserProfileGetBio.pb.swift @@ -0,0 +1,209 @@ +// DO NOT EDIT. +// +// Generated by the Swift generator plugin for the protocol buffer compiler. +// Source: UserProfileGetBio.proto +// +// For information on using the generated types, please see the documenation: +// https://github.com/apple/swift-protobuf/ + +import Foundation +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 your 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 +} + +public struct IGPUserProfileGetBio: SwiftProtobuf.RequestMessage { + public static let protoMessageName: String = "IGPUserProfileGetBio" + + public var igpRequest: IGPRequest { + get {return _storage._igpRequest ?? IGPRequest()} + set {_uniqueStorage()._igpRequest = newValue} + } + /// Returns true if `igpRequest` has been explicitly set. + public var hasIgpRequest: Bool {return _storage._igpRequest != nil} + /// Clears the value of `igpRequest`. Subsequent reads from it will return its default value. + public mutating func clearIgpRequest() {_storage._igpRequest = nil} + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + + /// Used by the decoding initializers in the SwiftProtobuf library, not generally + /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding + /// initializers are defined in the SwiftProtobuf library. See the Message and + /// Message+*Additions` files. + public mutating func decodeMessage(decoder: inout D) throws { + _ = _uniqueStorage() + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + while let fieldNumber = try decoder.nextFieldNumber() { + switch fieldNumber { + case 1: try decoder.decodeSingularMessageField(value: &_storage._igpRequest) + default: break + } + } + } + } + + /// Used by the encoding methods of the SwiftProtobuf library, not generally + /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and + /// other serializer methods are defined in the SwiftProtobuf library. See the + /// `Message` and `Message+*Additions` files. + public func traverse(visitor: inout V) throws { + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + if let v = _storage._igpRequest { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } + } + try unknownFields.traverse(visitor: &visitor) + } + + fileprivate var _storage = _StorageClass.defaultInstance +} + +public struct IGPUserProfileGetBioResponse: SwiftProtobuf.ResponseMessage { + public static let protoMessageName: String = "IGPUserProfileGetBioResponse" + + public var igpResponse: IGPResponse { + get {return _storage._igpResponse ?? IGPResponse()} + set {_uniqueStorage()._igpResponse = newValue} + } + /// Returns true if `igpResponse` has been explicitly set. + public var hasIgpResponse: Bool {return _storage._igpResponse != nil} + /// Clears the value of `igpResponse`. Subsequent reads from it will return its default value. + public mutating func clearIgpResponse() {_storage._igpResponse = nil} + + public var igpBio: String { + get {return _storage._igpBio} + set {_uniqueStorage()._igpBio = newValue} + } + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + + /// Used by the decoding initializers in the SwiftProtobuf library, not generally + /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding + /// initializers are defined in the SwiftProtobuf library. See the Message and + /// Message+*Additions` files. + public mutating func decodeMessage(decoder: inout D) throws { + _ = _uniqueStorage() + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + while let fieldNumber = try decoder.nextFieldNumber() { + switch fieldNumber { + case 1: try decoder.decodeSingularMessageField(value: &_storage._igpResponse) + case 2: try decoder.decodeSingularStringField(value: &_storage._igpBio) + default: break + } + } + } + } + + /// Used by the encoding methods of the SwiftProtobuf library, not generally + /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and + /// other serializer methods are defined in the SwiftProtobuf library. See the + /// `Message` and `Message+*Additions` files. + public func traverse(visitor: inout V) throws { + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + if let v = _storage._igpResponse { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } + if !_storage._igpBio.isEmpty { + try visitor.visitSingularStringField(value: _storage._igpBio, fieldNumber: 2) + } + } + try unknownFields.traverse(visitor: &visitor) + } + + fileprivate var _storage = _StorageClass.defaultInstance +} + +// MARK: - Code below here is support for the SwiftProtobuf runtime. + +extension IGPUserProfileGetBio: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "IGP_request"), + ] + + fileprivate class _StorageClass { + var _igpRequest: IGPRequest? = nil + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _igpRequest = source._igpRequest + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + public func _protobuf_generated_isEqualTo(other: IGPUserProfileGetBio) -> Bool { + if _storage !== other._storage { + let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_args: (_StorageClass, _StorageClass)) in + let _storage = _args.0 + let other_storage = _args.1 + if _storage._igpRequest != other_storage._igpRequest {return false} + return true + } + if !storagesAreEqual {return false} + } + if unknownFields != other.unknownFields {return false} + return true + } +} + +extension IGPUserProfileGetBioResponse: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "IGP_response"), + 2: .standard(proto: "IGP_bio"), + ] + + fileprivate class _StorageClass { + var _igpResponse: IGPResponse? = nil + var _igpBio: String = String() + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _igpResponse = source._igpResponse + _igpBio = source._igpBio + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + public func _protobuf_generated_isEqualTo(other: IGPUserProfileGetBioResponse) -> Bool { + if _storage !== other._storage { + let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_args: (_StorageClass, _StorageClass)) in + let _storage = _args.0 + let other_storage = _args.1 + if _storage._igpResponse != other_storage._igpResponse {return false} + if _storage._igpBio != other_storage._igpBio {return false} + return true + } + if !storagesAreEqual {return false} + } + if unknownFields != other.unknownFields {return false} + return true + } +} diff --git a/IGProtoBuff/ProtoBuffs/UserProfileSetBio.pb.swift b/IGProtoBuff/ProtoBuffs/UserProfileSetBio.pb.swift new file mode 100644 index 0000000..d6faefe --- /dev/null +++ b/IGProtoBuff/ProtoBuffs/UserProfileSetBio.pb.swift @@ -0,0 +1,222 @@ +// DO NOT EDIT. +// +// Generated by the Swift generator plugin for the protocol buffer compiler. +// Source: UserProfileSetBio.proto +// +// For information on using the generated types, please see the documenation: +// https://github.com/apple/swift-protobuf/ + +import Foundation +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 your 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 +} + +public struct IGPUserProfileSetBio: SwiftProtobuf.RequestMessage { + public static let protoMessageName: String = "IGPUserProfileSetBio" + + public var igpRequest: IGPRequest { + get {return _storage._igpRequest ?? IGPRequest()} + set {_uniqueStorage()._igpRequest = newValue} + } + /// Returns true if `igpRequest` has been explicitly set. + public var hasIgpRequest: Bool {return _storage._igpRequest != nil} + /// Clears the value of `igpRequest`. Subsequent reads from it will return its default value. + public mutating func clearIgpRequest() {_storage._igpRequest = nil} + + public var igpBio: String { + get {return _storage._igpBio} + set {_uniqueStorage()._igpBio = newValue} + } + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + + /// Used by the decoding initializers in the SwiftProtobuf library, not generally + /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding + /// initializers are defined in the SwiftProtobuf library. See the Message and + /// Message+*Additions` files. + public mutating func decodeMessage(decoder: inout D) throws { + _ = _uniqueStorage() + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + while let fieldNumber = try decoder.nextFieldNumber() { + switch fieldNumber { + case 1: try decoder.decodeSingularMessageField(value: &_storage._igpRequest) + case 2: try decoder.decodeSingularStringField(value: &_storage._igpBio) + default: break + } + } + } + } + + /// Used by the encoding methods of the SwiftProtobuf library, not generally + /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and + /// other serializer methods are defined in the SwiftProtobuf library. See the + /// `Message` and `Message+*Additions` files. + public func traverse(visitor: inout V) throws { + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + if let v = _storage._igpRequest { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } + if !_storage._igpBio.isEmpty { + try visitor.visitSingularStringField(value: _storage._igpBio, fieldNumber: 2) + } + } + try unknownFields.traverse(visitor: &visitor) + } + + fileprivate var _storage = _StorageClass.defaultInstance +} + +public struct IGPUserProfileSetBioResponse: SwiftProtobuf.ResponseMessage { + public static let protoMessageName: String = "IGPUserProfileSetBioResponse" + + public var igpResponse: IGPResponse { + get {return _storage._igpResponse ?? IGPResponse()} + set {_uniqueStorage()._igpResponse = newValue} + } + /// Returns true if `igpResponse` has been explicitly set. + public var hasIgpResponse: Bool {return _storage._igpResponse != nil} + /// Clears the value of `igpResponse`. Subsequent reads from it will return its default value. + public mutating func clearIgpResponse() {_storage._igpResponse = nil} + + public var igpBio: String { + get {return _storage._igpBio} + set {_uniqueStorage()._igpBio = newValue} + } + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + + /// Used by the decoding initializers in the SwiftProtobuf library, not generally + /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding + /// initializers are defined in the SwiftProtobuf library. See the Message and + /// Message+*Additions` files. + public mutating func decodeMessage(decoder: inout D) throws { + _ = _uniqueStorage() + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + while let fieldNumber = try decoder.nextFieldNumber() { + switch fieldNumber { + case 1: try decoder.decodeSingularMessageField(value: &_storage._igpResponse) + case 2: try decoder.decodeSingularStringField(value: &_storage._igpBio) + default: break + } + } + } + } + + /// Used by the encoding methods of the SwiftProtobuf library, not generally + /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and + /// other serializer methods are defined in the SwiftProtobuf library. See the + /// `Message` and `Message+*Additions` files. + public func traverse(visitor: inout V) throws { + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + if let v = _storage._igpResponse { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } + if !_storage._igpBio.isEmpty { + try visitor.visitSingularStringField(value: _storage._igpBio, fieldNumber: 2) + } + } + try unknownFields.traverse(visitor: &visitor) + } + + fileprivate var _storage = _StorageClass.defaultInstance +} + +// MARK: - Code below here is support for the SwiftProtobuf runtime. + +extension IGPUserProfileSetBio: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "IGP_request"), + 2: .standard(proto: "IGP_bio"), + ] + + fileprivate class _StorageClass { + var _igpRequest: IGPRequest? = nil + var _igpBio: String = String() + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _igpRequest = source._igpRequest + _igpBio = source._igpBio + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + public func _protobuf_generated_isEqualTo(other: IGPUserProfileSetBio) -> Bool { + if _storage !== other._storage { + let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_args: (_StorageClass, _StorageClass)) in + let _storage = _args.0 + let other_storage = _args.1 + if _storage._igpRequest != other_storage._igpRequest {return false} + if _storage._igpBio != other_storage._igpBio {return false} + return true + } + if !storagesAreEqual {return false} + } + if unknownFields != other.unknownFields {return false} + return true + } +} + +extension IGPUserProfileSetBioResponse: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "IGP_response"), + 2: .standard(proto: "IGP_bio"), + ] + + fileprivate class _StorageClass { + var _igpResponse: IGPResponse? = nil + var _igpBio: String = String() + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _igpResponse = source._igpResponse + _igpBio = source._igpBio + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + public func _protobuf_generated_isEqualTo(other: IGPUserProfileSetBioResponse) -> Bool { + if _storage !== other._storage { + let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_args: (_StorageClass, _StorageClass)) in + let _storage = _args.0 + let other_storage = _args.1 + if _storage._igpResponse != other_storage._igpResponse {return false} + if _storage._igpBio != other_storage._igpBio {return false} + return true + } + if !storagesAreEqual {return false} + } + if unknownFields != other.unknownFields {return false} + return true + } +} diff --git a/IGProtoBuff/ProtoBuffs/UserReport.pb.swift b/IGProtoBuff/ProtoBuffs/UserReport.pb.swift new file mode 100644 index 0000000..14617f2 --- /dev/null +++ b/IGProtoBuff/ProtoBuffs/UserReport.pb.swift @@ -0,0 +1,278 @@ +// DO NOT EDIT. +// +// Generated by the Swift generator plugin for the protocol buffer compiler. +// Source: UserReport.proto +// +// For information on using the generated types, please see the documenation: +// https://github.com/apple/swift-protobuf/ + +import Foundation +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 your 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 +} + +public struct IGPUserReport: SwiftProtobuf.RequestMessage { + public static let protoMessageName: String = "IGPUserReport" + + public var igpRequest: IGPRequest { + get {return _storage._igpRequest ?? IGPRequest()} + set {_uniqueStorage()._igpRequest = newValue} + } + /// Returns true if `igpRequest` has been explicitly set. + public var hasIgpRequest: Bool {return _storage._igpRequest != nil} + /// Clears the value of `igpRequest`. Subsequent reads from it will return its default value. + public mutating func clearIgpRequest() {_storage._igpRequest = nil} + + public var igpUserID: Int64 { + get {return _storage._igpUserID} + set {_uniqueStorage()._igpUserID = newValue} + } + + public var igpReason: IGPUserReport.IGPReason { + get {return _storage._igpReason} + set {_uniqueStorage()._igpReason = newValue} + } + + public var igpDescription: String { + get {return _storage._igpDescription} + set {_uniqueStorage()._igpDescription = newValue} + } + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public enum IGPReason: SwiftProtobuf.Enum { + public typealias RawValue = Int + case other // = 0 + case spam // = 1 + case abuse // = 2 + case fakeAccount // = 3 + case UNRECOGNIZED(Int) + + public init() { + self = .other + } + + public init?(rawValue: Int) { + switch rawValue { + case 0: self = .other + case 1: self = .spam + case 2: self = .abuse + case 3: self = .fakeAccount + default: self = .UNRECOGNIZED(rawValue) + } + } + + public var rawValue: Int { + switch self { + case .other: return 0 + case .spam: return 1 + case .abuse: return 2 + case .fakeAccount: return 3 + case .UNRECOGNIZED(let i): return i + } + } + + } + + public init() {} + + /// Used by the decoding initializers in the SwiftProtobuf library, not generally + /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding + /// initializers are defined in the SwiftProtobuf library. See the Message and + /// Message+*Additions` files. + public mutating func decodeMessage(decoder: inout D) throws { + _ = _uniqueStorage() + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + while let fieldNumber = try decoder.nextFieldNumber() { + switch fieldNumber { + case 1: try decoder.decodeSingularMessageField(value: &_storage._igpRequest) + case 2: try decoder.decodeSingularInt64Field(value: &_storage._igpUserID) + case 3: try decoder.decodeSingularEnumField(value: &_storage._igpReason) + case 4: try decoder.decodeSingularStringField(value: &_storage._igpDescription) + default: break + } + } + } + } + + /// Used by the encoding methods of the SwiftProtobuf library, not generally + /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and + /// other serializer methods are defined in the SwiftProtobuf library. See the + /// `Message` and `Message+*Additions` files. + public func traverse(visitor: inout V) throws { + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + if let v = _storage._igpRequest { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } + if _storage._igpUserID != 0 { + try visitor.visitSingularInt64Field(value: _storage._igpUserID, fieldNumber: 2) + } + if _storage._igpReason != .other { + try visitor.visitSingularEnumField(value: _storage._igpReason, fieldNumber: 3) + } + if !_storage._igpDescription.isEmpty { + try visitor.visitSingularStringField(value: _storage._igpDescription, fieldNumber: 4) + } + } + try unknownFields.traverse(visitor: &visitor) + } + + fileprivate var _storage = _StorageClass.defaultInstance +} + +public struct IGPUserReportResponse: SwiftProtobuf.ResponseMessage { + public static let protoMessageName: String = "IGPUserReportResponse" + + public var igpResponse: IGPResponse { + get {return _storage._igpResponse ?? IGPResponse()} + set {_uniqueStorage()._igpResponse = newValue} + } + /// Returns true if `igpResponse` has been explicitly set. + public var hasIgpResponse: Bool {return _storage._igpResponse != nil} + /// Clears the value of `igpResponse`. Subsequent reads from it will return its default value. + public mutating func clearIgpResponse() {_storage._igpResponse = nil} + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + + /// Used by the decoding initializers in the SwiftProtobuf library, not generally + /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding + /// initializers are defined in the SwiftProtobuf library. See the Message and + /// Message+*Additions` files. + public mutating func decodeMessage(decoder: inout D) throws { + _ = _uniqueStorage() + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + while let fieldNumber = try decoder.nextFieldNumber() { + switch fieldNumber { + case 1: try decoder.decodeSingularMessageField(value: &_storage._igpResponse) + default: break + } + } + } + } + + /// Used by the encoding methods of the SwiftProtobuf library, not generally + /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and + /// other serializer methods are defined in the SwiftProtobuf library. See the + /// `Message` and `Message+*Additions` files. + public func traverse(visitor: inout V) throws { + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + if let v = _storage._igpResponse { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } + } + try unknownFields.traverse(visitor: &visitor) + } + + fileprivate var _storage = _StorageClass.defaultInstance +} + +// MARK: - Code below here is support for the SwiftProtobuf runtime. + +extension IGPUserReport: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "IGP_request"), + 2: .standard(proto: "IGP_user_id"), + 3: .standard(proto: "IGP_reason"), + 4: .standard(proto: "IGP_description"), + ] + + fileprivate class _StorageClass { + var _igpRequest: IGPRequest? = nil + var _igpUserID: Int64 = 0 + var _igpReason: IGPUserReport.IGPReason = .other + var _igpDescription: String = String() + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _igpRequest = source._igpRequest + _igpUserID = source._igpUserID + _igpReason = source._igpReason + _igpDescription = source._igpDescription + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + public func _protobuf_generated_isEqualTo(other: IGPUserReport) -> Bool { + if _storage !== other._storage { + let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_args: (_StorageClass, _StorageClass)) in + let _storage = _args.0 + let other_storage = _args.1 + if _storage._igpRequest != other_storage._igpRequest {return false} + if _storage._igpUserID != other_storage._igpUserID {return false} + if _storage._igpReason != other_storage._igpReason {return false} + if _storage._igpDescription != other_storage._igpDescription {return false} + return true + } + if !storagesAreEqual {return false} + } + if unknownFields != other.unknownFields {return false} + return true + } +} + +extension IGPUserReport.IGPReason: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "OTHER"), + 1: .same(proto: "SPAM"), + 2: .same(proto: "ABUSE"), + 3: .same(proto: "FAKE_ACCOUNT"), + ] +} + +extension IGPUserReportResponse: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "IGP_response"), + ] + + fileprivate class _StorageClass { + var _igpResponse: IGPResponse? = nil + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _igpResponse = source._igpResponse + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + public func _protobuf_generated_isEqualTo(other: IGPUserReportResponse) -> Bool { + if _storage !== other._storage { + let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_args: (_StorageClass, _StorageClass)) in + let _storage = _args.0 + let other_storage = _args.1 + if _storage._igpResponse != other_storage._igpResponse {return false} + return true + } + if !storagesAreEqual {return false} + } + if unknownFields != other.unknownFields {return false} + return true + } +}