From ac2e4dc7df031e365990d5e87847c6d69faaacf5 Mon Sep 17 00:00:00 2001 From: saeedrooyekhat Date: Wed, 4 Jul 2018 15:06:56 +0430 Subject: [PATCH] Update Proto To Build 90 --- IGProtoBuff.xcodeproj/project.pbxproj | 12 + .../ProtoBuffs/BillInquiryMci.pb.swift | 332 ++++++++++++++++++ .../ProtoBuffs/BillInquiryTelecom.pb.swift | 329 +++++++++++++++++ .../ProtoBuffs/MplGetBillToken.pb.swift | 13 + .../ProtoBuffs/MplGetTopupToken.pb.swift | 13 + IGProtoBuff/ProtoBuffs/UserLogin.pb.swift | 13 + .../ProtoBuffs/WalletRegister.pb.swift | 186 ++++++++++ 7 files changed, 898 insertions(+) create mode 100644 IGProtoBuff/ProtoBuffs/BillInquiryMci.pb.swift create mode 100644 IGProtoBuff/ProtoBuffs/BillInquiryTelecom.pb.swift create mode 100644 IGProtoBuff/ProtoBuffs/WalletRegister.pb.swift diff --git a/IGProtoBuff.xcodeproj/project.pbxproj b/IGProtoBuff.xcodeproj/project.pbxproj index 833ee27..c72cc82 100644 --- a/IGProtoBuff.xcodeproj/project.pbxproj +++ b/IGProtoBuff.xcodeproj/project.pbxproj @@ -7,6 +7,9 @@ objects = { /* Begin PBXBuildFile section */ + FA2A506D20ECDA75002C5322 /* WalletRegister.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA2A506A20ECDA74002C5322 /* WalletRegister.pb.swift */; }; + FA2A506E20ECDA75002C5322 /* BillInquiryMci.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA2A506B20ECDA74002C5322 /* BillInquiryMci.pb.swift */; }; + FA2A506F20ECDA75002C5322 /* BillInquiryTelecom.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA2A506C20ECDA75002C5322 /* BillInquiryTelecom.pb.swift */; }; FA416B8C20D8DE610013DB17 /* WalletGetAccessToken.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA416B8B20D8DE600013DB17 /* WalletGetAccessToken.pb.swift */; }; FA416B8E20D8DE890013DB17 /* ClientRegisterDevice.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA416B8D20D8DE890013DB17 /* ClientRegisterDevice.pb.swift */; }; FA416B9120D8DEB50013DB17 /* MplGetTopupToken.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA416B8F20D8DEB50013DB17 /* MplGetTopupToken.pb.swift */; }; @@ -193,6 +196,9 @@ /* End PBXBuildFile section */ /* Begin PBXFileReference section */ + FA2A506A20ECDA74002C5322 /* WalletRegister.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletRegister.pb.swift; sourceTree = ""; }; + FA2A506B20ECDA74002C5322 /* BillInquiryMci.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BillInquiryMci.pb.swift; sourceTree = ""; }; + FA2A506C20ECDA75002C5322 /* BillInquiryTelecom.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BillInquiryTelecom.pb.swift; sourceTree = ""; }; FA416B8B20D8DE600013DB17 /* WalletGetAccessToken.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletGetAccessToken.pb.swift; sourceTree = ""; }; FA416B8D20D8DE890013DB17 /* ClientRegisterDevice.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClientRegisterDevice.pb.swift; sourceTree = ""; }; FA416B8F20D8DEB50013DB17 /* MplGetTopupToken.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MplGetTopupToken.pb.swift; sourceTree = ""; }; @@ -395,6 +401,9 @@ FA5A9FF11F71ECEF00D925F5 /* ProtoBuffs */ = { isa = PBXGroup; children = ( + FA2A506B20ECDA74002C5322 /* BillInquiryMci.pb.swift */, + FA2A506C20ECDA75002C5322 /* BillInquiryTelecom.pb.swift */, + FA2A506A20ECDA74002C5322 /* WalletRegister.pb.swift */, FA8CF03620E2729400994811 /* WalletPaymentInit.pb.swift */, FA416B9020D8DEB50013DB17 /* MplGetBillToken.pb.swift */, FA416B8F20D8DEB50013DB17 /* MplGetTopupToken.pb.swift */, @@ -695,6 +704,9 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + FA2A506D20ECDA75002C5322 /* WalletRegister.pb.swift in Sources */, + FA2A506E20ECDA75002C5322 /* BillInquiryMci.pb.swift in Sources */, + FA2A506F20ECDA75002C5322 /* BillInquiryTelecom.pb.swift in Sources */, FA8CF03720E2729400994811 /* WalletPaymentInit.pb.swift in Sources */, FA90B73A20B59D9700043C89 /* ChannelUpdateReactionStatus.pb.swift in Sources */, FA90B73B20B59D9700043C89 /* GroupPinMessage.pb.swift in Sources */, diff --git a/IGProtoBuff/ProtoBuffs/BillInquiryMci.pb.swift b/IGProtoBuff/ProtoBuffs/BillInquiryMci.pb.swift new file mode 100644 index 0000000..d3b8c34 --- /dev/null +++ b/IGProtoBuff/ProtoBuffs/BillInquiryMci.pb.swift @@ -0,0 +1,332 @@ +// DO NOT EDIT. +// +// Generated by the Swift generator plugin for the protocol buffer compiler. +// Source: BillInquiryMci.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 IGPBillInquiryMci: SwiftProtobuf.RequestMessage { + // 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. + + 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 igpMobileNumber: Int64 { + get {return _storage._igpMobileNumber} + set {_uniqueStorage()._igpMobileNumber = newValue} + } + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + + fileprivate var _storage = _StorageClass.defaultInstance +} + +public struct IGPBillInquiryMciResponse: SwiftProtobuf.ResponseMessage { + // 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. + + 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 igpStatus: Int32 { + get {return _storage._igpStatus} + set {_uniqueStorage()._igpStatus = newValue} + } + + public var igpMessage: String { + get {return _storage._igpMessage} + set {_uniqueStorage()._igpMessage = newValue} + } + + public var igpMidTerm: IGPBillInquiryMciResponse.IGPBillInfo { + get {return _storage._igpMidTerm ?? IGPBillInquiryMciResponse.IGPBillInfo()} + set {_uniqueStorage()._igpMidTerm = newValue} + } + /// Returns true if `igpMidTerm` has been explicitly set. + public var hasIgpMidTerm: Bool {return _storage._igpMidTerm != nil} + /// Clears the value of `igpMidTerm`. Subsequent reads from it will return its default value. + public mutating func clearIgpMidTerm() {_storage._igpMidTerm = nil} + + public var igpLastTerm: IGPBillInquiryMciResponse.IGPBillInfo { + get {return _storage._igpLastTerm ?? IGPBillInquiryMciResponse.IGPBillInfo()} + set {_uniqueStorage()._igpLastTerm = newValue} + } + /// Returns true if `igpLastTerm` has been explicitly set. + public var hasIgpLastTerm: Bool {return _storage._igpLastTerm != nil} + /// Clears the value of `igpLastTerm`. Subsequent reads from it will return its default value. + public mutating func clearIgpLastTerm() {_storage._igpLastTerm = nil} + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public struct IGPBillInfo: SwiftProtobuf.Message { + // 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. + + public var igpStatus: Int32 = 0 + + public var igpBillID: Int64 = 0 + + public var igpPayID: Int64 = 0 + + public var igpAmount: Int64 = 0 + + public var igpMessage: String = String() + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + } + + public init() {} + + fileprivate var _storage = _StorageClass.defaultInstance +} + +// MARK: - Code below here is support for the SwiftProtobuf runtime. + +extension IGPBillInquiryMci: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = "IGPBillInquiryMci" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "IGP_request"), + 2: .standard(proto: "IGP_mobile_number"), + ] + + fileprivate class _StorageClass { + var _igpRequest: IGPRequest? = nil + var _igpMobileNumber: Int64 = 0 + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _igpRequest = source._igpRequest + _igpMobileNumber = source._igpMobileNumber + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + 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._igpMobileNumber) + default: break + } + } + } + } + + 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._igpMobileNumber != 0 { + try visitor.visitSingularInt64Field(value: _storage._igpMobileNumber, fieldNumber: 2) + } + } + try unknownFields.traverse(visitor: &visitor) + } + + public func _protobuf_generated_isEqualTo(other: IGPBillInquiryMci) -> 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._igpMobileNumber != other_storage._igpMobileNumber {return false} + return true + } + if !storagesAreEqual {return false} + } + if unknownFields != other.unknownFields {return false} + return true + } +} + +extension IGPBillInquiryMciResponse: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = "IGPBillInquiryMciResponse" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "IGP_response"), + 2: .standard(proto: "IGP_status"), + 3: .standard(proto: "IGP_message"), + 4: .standard(proto: "IGP_mid_term"), + 5: .standard(proto: "IGP_last_term"), + ] + + fileprivate class _StorageClass { + var _igpResponse: IGPResponse? = nil + var _igpStatus: Int32 = 0 + var _igpMessage: String = String() + var _igpMidTerm: IGPBillInquiryMciResponse.IGPBillInfo? = nil + var _igpLastTerm: IGPBillInquiryMciResponse.IGPBillInfo? = nil + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _igpResponse = source._igpResponse + _igpStatus = source._igpStatus + _igpMessage = source._igpMessage + _igpMidTerm = source._igpMidTerm + _igpLastTerm = source._igpLastTerm + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + 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.decodeSingularInt32Field(value: &_storage._igpStatus) + case 3: try decoder.decodeSingularStringField(value: &_storage._igpMessage) + case 4: try decoder.decodeSingularMessageField(value: &_storage._igpMidTerm) + case 5: try decoder.decodeSingularMessageField(value: &_storage._igpLastTerm) + default: break + } + } + } + } + + 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._igpStatus != 0 { + try visitor.visitSingularInt32Field(value: _storage._igpStatus, fieldNumber: 2) + } + if !_storage._igpMessage.isEmpty { + try visitor.visitSingularStringField(value: _storage._igpMessage, fieldNumber: 3) + } + if let v = _storage._igpMidTerm { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } + if let v = _storage._igpLastTerm { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } + } + try unknownFields.traverse(visitor: &visitor) + } + + public func _protobuf_generated_isEqualTo(other: IGPBillInquiryMciResponse) -> 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._igpStatus != other_storage._igpStatus {return false} + if _storage._igpMessage != other_storage._igpMessage {return false} + if _storage._igpMidTerm != other_storage._igpMidTerm {return false} + if _storage._igpLastTerm != other_storage._igpLastTerm {return false} + return true + } + if !storagesAreEqual {return false} + } + if unknownFields != other.unknownFields {return false} + return true + } +} + +extension IGPBillInquiryMciResponse.IGPBillInfo: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = IGPBillInquiryMciResponse.protoMessageName + ".IGPBillInfo" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "IGP_status"), + 2: .standard(proto: "IGP_bill_id"), + 3: .standard(proto: "IGP_pay_id"), + 4: .standard(proto: "IGP_amount"), + 5: .standard(proto: "IGP_message"), + ] + + public mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + switch fieldNumber { + case 1: try decoder.decodeSingularInt32Field(value: &self.igpStatus) + case 2: try decoder.decodeSingularInt64Field(value: &self.igpBillID) + case 3: try decoder.decodeSingularInt64Field(value: &self.igpPayID) + case 4: try decoder.decodeSingularInt64Field(value: &self.igpAmount) + case 5: try decoder.decodeSingularStringField(value: &self.igpMessage) + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if self.igpStatus != 0 { + try visitor.visitSingularInt32Field(value: self.igpStatus, fieldNumber: 1) + } + if self.igpBillID != 0 { + try visitor.visitSingularInt64Field(value: self.igpBillID, fieldNumber: 2) + } + if self.igpPayID != 0 { + try visitor.visitSingularInt64Field(value: self.igpPayID, fieldNumber: 3) + } + if self.igpAmount != 0 { + try visitor.visitSingularInt64Field(value: self.igpAmount, fieldNumber: 4) + } + if !self.igpMessage.isEmpty { + try visitor.visitSingularStringField(value: self.igpMessage, fieldNumber: 5) + } + try unknownFields.traverse(visitor: &visitor) + } + + public func _protobuf_generated_isEqualTo(other: IGPBillInquiryMciResponse.IGPBillInfo) -> Bool { + if self.igpStatus != other.igpStatus {return false} + if self.igpBillID != other.igpBillID {return false} + if self.igpPayID != other.igpPayID {return false} + if self.igpAmount != other.igpAmount {return false} + if self.igpMessage != other.igpMessage {return false} + if unknownFields != other.unknownFields {return false} + return true + } +} diff --git a/IGProtoBuff/ProtoBuffs/BillInquiryTelecom.pb.swift b/IGProtoBuff/ProtoBuffs/BillInquiryTelecom.pb.swift new file mode 100644 index 0000000..0fbd593 --- /dev/null +++ b/IGProtoBuff/ProtoBuffs/BillInquiryTelecom.pb.swift @@ -0,0 +1,329 @@ +// DO NOT EDIT. +// +// Generated by the Swift generator plugin for the protocol buffer compiler. +// Source: BillInquiryTelecom.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 IGPBillInquiryTelecom: SwiftProtobuf.RequestMessage { + // 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. + + 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 igpProvinceCode: Int32 { + get {return _storage._igpProvinceCode} + set {_uniqueStorage()._igpProvinceCode = newValue} + } + + public var igpTelephoneNumber: Int64 { + get {return _storage._igpTelephoneNumber} + set {_uniqueStorage()._igpTelephoneNumber = newValue} + } + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + + fileprivate var _storage = _StorageClass.defaultInstance +} + +public struct IGPBillInquiryTelecomResponse: SwiftProtobuf.ResponseMessage { + // 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. + + 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 igpStatus: Int32 { + get {return _storage._igpStatus} + set {_uniqueStorage()._igpStatus = newValue} + } + + public var igpMessage: String { + get {return _storage._igpMessage} + set {_uniqueStorage()._igpMessage = newValue} + } + + public var igpMidTerm: IGPBillInquiryTelecomResponse.IGPBillInfo { + get {return _storage._igpMidTerm ?? IGPBillInquiryTelecomResponse.IGPBillInfo()} + set {_uniqueStorage()._igpMidTerm = newValue} + } + /// Returns true if `igpMidTerm` has been explicitly set. + public var hasIgpMidTerm: Bool {return _storage._igpMidTerm != nil} + /// Clears the value of `igpMidTerm`. Subsequent reads from it will return its default value. + public mutating func clearIgpMidTerm() {_storage._igpMidTerm = nil} + + public var igpLastTerm: IGPBillInquiryTelecomResponse.IGPBillInfo { + get {return _storage._igpLastTerm ?? IGPBillInquiryTelecomResponse.IGPBillInfo()} + set {_uniqueStorage()._igpLastTerm = newValue} + } + /// Returns true if `igpLastTerm` has been explicitly set. + public var hasIgpLastTerm: Bool {return _storage._igpLastTerm != nil} + /// Clears the value of `igpLastTerm`. Subsequent reads from it will return its default value. + public mutating func clearIgpLastTerm() {_storage._igpLastTerm = nil} + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public struct IGPBillInfo: SwiftProtobuf.Message { + // 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. + + public var igpBillID: Int64 = 0 + + public var igpPayID: Int64 = 0 + + public var igpAmount: Int64 = 0 + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + } + + public init() {} + + fileprivate var _storage = _StorageClass.defaultInstance +} + +// MARK: - Code below here is support for the SwiftProtobuf runtime. + +extension IGPBillInquiryTelecom: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = "IGPBillInquiryTelecom" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "IGP_request"), + 2: .standard(proto: "IGP_province_code"), + 3: .standard(proto: "IGP_telephone_number"), + ] + + fileprivate class _StorageClass { + var _igpRequest: IGPRequest? = nil + var _igpProvinceCode: Int32 = 0 + var _igpTelephoneNumber: Int64 = 0 + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _igpRequest = source._igpRequest + _igpProvinceCode = source._igpProvinceCode + _igpTelephoneNumber = source._igpTelephoneNumber + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + 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.decodeSingularInt32Field(value: &_storage._igpProvinceCode) + case 3: try decoder.decodeSingularInt64Field(value: &_storage._igpTelephoneNumber) + default: break + } + } + } + } + + 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._igpProvinceCode != 0 { + try visitor.visitSingularInt32Field(value: _storage._igpProvinceCode, fieldNumber: 2) + } + if _storage._igpTelephoneNumber != 0 { + try visitor.visitSingularInt64Field(value: _storage._igpTelephoneNumber, fieldNumber: 3) + } + } + try unknownFields.traverse(visitor: &visitor) + } + + public func _protobuf_generated_isEqualTo(other: IGPBillInquiryTelecom) -> 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._igpProvinceCode != other_storage._igpProvinceCode {return false} + if _storage._igpTelephoneNumber != other_storage._igpTelephoneNumber {return false} + return true + } + if !storagesAreEqual {return false} + } + if unknownFields != other.unknownFields {return false} + return true + } +} + +extension IGPBillInquiryTelecomResponse: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = "IGPBillInquiryTelecomResponse" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "IGP_response"), + 2: .standard(proto: "IGP_status"), + 3: .standard(proto: "IGP_message"), + 4: .standard(proto: "IGP_mid_term"), + 5: .standard(proto: "IGP_last_term"), + ] + + fileprivate class _StorageClass { + var _igpResponse: IGPResponse? = nil + var _igpStatus: Int32 = 0 + var _igpMessage: String = String() + var _igpMidTerm: IGPBillInquiryTelecomResponse.IGPBillInfo? = nil + var _igpLastTerm: IGPBillInquiryTelecomResponse.IGPBillInfo? = nil + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _igpResponse = source._igpResponse + _igpStatus = source._igpStatus + _igpMessage = source._igpMessage + _igpMidTerm = source._igpMidTerm + _igpLastTerm = source._igpLastTerm + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + 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.decodeSingularInt32Field(value: &_storage._igpStatus) + case 3: try decoder.decodeSingularStringField(value: &_storage._igpMessage) + case 4: try decoder.decodeSingularMessageField(value: &_storage._igpMidTerm) + case 5: try decoder.decodeSingularMessageField(value: &_storage._igpLastTerm) + default: break + } + } + } + } + + 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._igpStatus != 0 { + try visitor.visitSingularInt32Field(value: _storage._igpStatus, fieldNumber: 2) + } + if !_storage._igpMessage.isEmpty { + try visitor.visitSingularStringField(value: _storage._igpMessage, fieldNumber: 3) + } + if let v = _storage._igpMidTerm { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } + if let v = _storage._igpLastTerm { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } + } + try unknownFields.traverse(visitor: &visitor) + } + + public func _protobuf_generated_isEqualTo(other: IGPBillInquiryTelecomResponse) -> 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._igpStatus != other_storage._igpStatus {return false} + if _storage._igpMessage != other_storage._igpMessage {return false} + if _storage._igpMidTerm != other_storage._igpMidTerm {return false} + if _storage._igpLastTerm != other_storage._igpLastTerm {return false} + return true + } + if !storagesAreEqual {return false} + } + if unknownFields != other.unknownFields {return false} + return true + } +} + +extension IGPBillInquiryTelecomResponse.IGPBillInfo: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = IGPBillInquiryTelecomResponse.protoMessageName + ".IGPBillInfo" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "IGP_bill_id"), + 2: .standard(proto: "IGP_pay_id"), + 3: .standard(proto: "IGP_amount"), + ] + + public mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + switch fieldNumber { + case 1: try decoder.decodeSingularInt64Field(value: &self.igpBillID) + case 2: try decoder.decodeSingularInt64Field(value: &self.igpPayID) + case 3: try decoder.decodeSingularInt64Field(value: &self.igpAmount) + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if self.igpBillID != 0 { + try visitor.visitSingularInt64Field(value: self.igpBillID, fieldNumber: 1) + } + if self.igpPayID != 0 { + try visitor.visitSingularInt64Field(value: self.igpPayID, fieldNumber: 2) + } + if self.igpAmount != 0 { + try visitor.visitSingularInt64Field(value: self.igpAmount, fieldNumber: 3) + } + try unknownFields.traverse(visitor: &visitor) + } + + public func _protobuf_generated_isEqualTo(other: IGPBillInquiryTelecomResponse.IGPBillInfo) -> Bool { + if self.igpBillID != other.igpBillID {return false} + if self.igpPayID != other.igpPayID {return false} + if self.igpAmount != other.igpAmount {return false} + if unknownFields != other.unknownFields {return false} + return true + } +} diff --git a/IGProtoBuff/ProtoBuffs/MplGetBillToken.pb.swift b/IGProtoBuff/ProtoBuffs/MplGetBillToken.pb.swift index 52bc6b4..3fac942 100644 --- a/IGProtoBuff/ProtoBuffs/MplGetBillToken.pb.swift +++ b/IGProtoBuff/ProtoBuffs/MplGetBillToken.pb.swift @@ -79,6 +79,11 @@ public struct IGPMplGetBillTokenResponse: SwiftProtobuf.ResponseMessage { set {_uniqueStorage()._igpExpireTime = newValue} } + public var igpMessage: String { + get {return _storage._igpMessage} + set {_uniqueStorage()._igpMessage = newValue} + } + public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} @@ -172,6 +177,7 @@ extension IGPMplGetBillTokenResponse: SwiftProtobuf._MessageImplementationBase, 2: .standard(proto: "IGP_status"), 3: .standard(proto: "IGP_token"), 4: .standard(proto: "IGP_expire_time"), + 5: .standard(proto: "IGP_message"), ] fileprivate class _StorageClass { @@ -179,6 +185,7 @@ extension IGPMplGetBillTokenResponse: SwiftProtobuf._MessageImplementationBase, var _igpStatus: Int32 = 0 var _igpToken: String = String() var _igpExpireTime: Int32 = 0 + var _igpMessage: String = String() static let defaultInstance = _StorageClass() @@ -189,6 +196,7 @@ extension IGPMplGetBillTokenResponse: SwiftProtobuf._MessageImplementationBase, _igpStatus = source._igpStatus _igpToken = source._igpToken _igpExpireTime = source._igpExpireTime + _igpMessage = source._igpMessage } } @@ -208,6 +216,7 @@ extension IGPMplGetBillTokenResponse: SwiftProtobuf._MessageImplementationBase, case 2: try decoder.decodeSingularInt32Field(value: &_storage._igpStatus) case 3: try decoder.decodeSingularStringField(value: &_storage._igpToken) case 4: try decoder.decodeSingularInt32Field(value: &_storage._igpExpireTime) + case 5: try decoder.decodeSingularStringField(value: &_storage._igpMessage) default: break } } @@ -228,6 +237,9 @@ extension IGPMplGetBillTokenResponse: SwiftProtobuf._MessageImplementationBase, if _storage._igpExpireTime != 0 { try visitor.visitSingularInt32Field(value: _storage._igpExpireTime, fieldNumber: 4) } + if !_storage._igpMessage.isEmpty { + try visitor.visitSingularStringField(value: _storage._igpMessage, fieldNumber: 5) + } } try unknownFields.traverse(visitor: &visitor) } @@ -241,6 +253,7 @@ extension IGPMplGetBillTokenResponse: SwiftProtobuf._MessageImplementationBase, if _storage._igpStatus != other_storage._igpStatus {return false} if _storage._igpToken != other_storage._igpToken {return false} if _storage._igpExpireTime != other_storage._igpExpireTime {return false} + if _storage._igpMessage != other_storage._igpMessage {return false} return true } if !storagesAreEqual {return false} diff --git a/IGProtoBuff/ProtoBuffs/MplGetTopupToken.pb.swift b/IGProtoBuff/ProtoBuffs/MplGetTopupToken.pb.swift index 3b74a1d..0e71016 100644 --- a/IGProtoBuff/ProtoBuffs/MplGetTopupToken.pb.swift +++ b/IGProtoBuff/ProtoBuffs/MplGetTopupToken.pb.swift @@ -124,6 +124,11 @@ public struct IGPMplGetTopupTokenResponse: SwiftProtobuf.ResponseMessage { set {_uniqueStorage()._igpExpireTime = newValue} } + public var igpMessage: String { + get {return _storage._igpMessage} + set {_uniqueStorage()._igpMessage = newValue} + } + public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} @@ -236,6 +241,7 @@ extension IGPMplGetTopupTokenResponse: SwiftProtobuf._MessageImplementationBase, 2: .standard(proto: "IGP_status"), 3: .standard(proto: "IGP_token"), 4: .standard(proto: "IGP_expire_time"), + 5: .standard(proto: "IGP_message"), ] fileprivate class _StorageClass { @@ -243,6 +249,7 @@ extension IGPMplGetTopupTokenResponse: SwiftProtobuf._MessageImplementationBase, var _igpStatus: Int32 = 0 var _igpToken: String = String() var _igpExpireTime: Int32 = 0 + var _igpMessage: String = String() static let defaultInstance = _StorageClass() @@ -253,6 +260,7 @@ extension IGPMplGetTopupTokenResponse: SwiftProtobuf._MessageImplementationBase, _igpStatus = source._igpStatus _igpToken = source._igpToken _igpExpireTime = source._igpExpireTime + _igpMessage = source._igpMessage } } @@ -272,6 +280,7 @@ extension IGPMplGetTopupTokenResponse: SwiftProtobuf._MessageImplementationBase, case 2: try decoder.decodeSingularInt32Field(value: &_storage._igpStatus) case 3: try decoder.decodeSingularStringField(value: &_storage._igpToken) case 4: try decoder.decodeSingularInt32Field(value: &_storage._igpExpireTime) + case 5: try decoder.decodeSingularStringField(value: &_storage._igpMessage) default: break } } @@ -292,6 +301,9 @@ extension IGPMplGetTopupTokenResponse: SwiftProtobuf._MessageImplementationBase, if _storage._igpExpireTime != 0 { try visitor.visitSingularInt32Field(value: _storage._igpExpireTime, fieldNumber: 4) } + if !_storage._igpMessage.isEmpty { + try visitor.visitSingularStringField(value: _storage._igpMessage, fieldNumber: 5) + } } try unknownFields.traverse(visitor: &visitor) } @@ -305,6 +317,7 @@ extension IGPMplGetTopupTokenResponse: SwiftProtobuf._MessageImplementationBase, if _storage._igpStatus != other_storage._igpStatus {return false} if _storage._igpToken != other_storage._igpToken {return false} if _storage._igpExpireTime != other_storage._igpExpireTime {return false} + if _storage._igpMessage != other_storage._igpMessage {return false} return true } if !storagesAreEqual {return false} diff --git a/IGProtoBuff/ProtoBuffs/UserLogin.pb.swift b/IGProtoBuff/ProtoBuffs/UserLogin.pb.swift index a0a824b..7d88634 100644 --- a/IGProtoBuff/ProtoBuffs/UserLogin.pb.swift +++ b/IGProtoBuff/ProtoBuffs/UserLogin.pb.swift @@ -134,6 +134,11 @@ public struct IGPUserLoginResponse: SwiftProtobuf.ResponseMessage { set {_uniqueStorage()._igpMplActive = newValue} } + public var igpWalletAgreementAccepted: Bool { + get {return _storage._igpWalletAgreementAccepted} + set {_uniqueStorage()._igpWalletAgreementAccepted = newValue} + } + public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} @@ -294,6 +299,7 @@ extension IGPUserLoginResponse: SwiftProtobuf._MessageImplementationBase, SwiftP 5: .standard(proto: "IGP_chat_delete_message_for_both_period"), 6: .standard(proto: "IGP_wallet_active"), 7: .standard(proto: "IGP_mpl_active"), + 8: .standard(proto: "IGP_wallet_agreement_accepted"), ] fileprivate class _StorageClass { @@ -304,6 +310,7 @@ extension IGPUserLoginResponse: SwiftProtobuf._MessageImplementationBase, SwiftP var _igpChatDeleteMessageForBothPeriod: Int32 = 0 var _igpWalletActive: Bool = false var _igpMplActive: Bool = false + var _igpWalletAgreementAccepted: Bool = false static let defaultInstance = _StorageClass() @@ -317,6 +324,7 @@ extension IGPUserLoginResponse: SwiftProtobuf._MessageImplementationBase, SwiftP _igpChatDeleteMessageForBothPeriod = source._igpChatDeleteMessageForBothPeriod _igpWalletActive = source._igpWalletActive _igpMplActive = source._igpMplActive + _igpWalletAgreementAccepted = source._igpWalletAgreementAccepted } } @@ -339,6 +347,7 @@ extension IGPUserLoginResponse: SwiftProtobuf._MessageImplementationBase, SwiftP case 5: try decoder.decodeSingularInt32Field(value: &_storage._igpChatDeleteMessageForBothPeriod) case 6: try decoder.decodeSingularBoolField(value: &_storage._igpWalletActive) case 7: try decoder.decodeSingularBoolField(value: &_storage._igpMplActive) + case 8: try decoder.decodeSingularBoolField(value: &_storage._igpWalletAgreementAccepted) default: break } } @@ -368,6 +377,9 @@ extension IGPUserLoginResponse: SwiftProtobuf._MessageImplementationBase, SwiftP if _storage._igpMplActive != false { try visitor.visitSingularBoolField(value: _storage._igpMplActive, fieldNumber: 7) } + if _storage._igpWalletAgreementAccepted != false { + try visitor.visitSingularBoolField(value: _storage._igpWalletAgreementAccepted, fieldNumber: 8) + } } try unknownFields.traverse(visitor: &visitor) } @@ -384,6 +396,7 @@ extension IGPUserLoginResponse: SwiftProtobuf._MessageImplementationBase, SwiftP if _storage._igpChatDeleteMessageForBothPeriod != other_storage._igpChatDeleteMessageForBothPeriod {return false} if _storage._igpWalletActive != other_storage._igpWalletActive {return false} if _storage._igpMplActive != other_storage._igpMplActive {return false} + if _storage._igpWalletAgreementAccepted != other_storage._igpWalletAgreementAccepted {return false} return true } if !storagesAreEqual {return false} diff --git a/IGProtoBuff/ProtoBuffs/WalletRegister.pb.swift b/IGProtoBuff/ProtoBuffs/WalletRegister.pb.swift new file mode 100644 index 0000000..ecc178b --- /dev/null +++ b/IGProtoBuff/ProtoBuffs/WalletRegister.pb.swift @@ -0,0 +1,186 @@ +// DO NOT EDIT. +// +// Generated by the Swift generator plugin for the protocol buffer compiler. +// Source: WalletRegister.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 IGPWalletRegister: SwiftProtobuf.RequestMessage { + // 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. + + 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() {} + + fileprivate var _storage = _StorageClass.defaultInstance +} + +public struct IGPWalletRegisterResponse: SwiftProtobuf.ResponseMessage { + // 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. + + 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() {} + + fileprivate var _storage = _StorageClass.defaultInstance +} + +// MARK: - Code below here is support for the SwiftProtobuf runtime. + +extension IGPWalletRegister: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = "IGPWalletRegister" + 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 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 + } + } + } + } + + 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) + } + + public func _protobuf_generated_isEqualTo(other: IGPWalletRegister) -> 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 IGPWalletRegisterResponse: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = "IGPWalletRegisterResponse" + 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 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 + } + } + } + } + + 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) + } + + public func _protobuf_generated_isEqualTo(other: IGPWalletRegisterResponse) -> 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 + } +}