Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
Update Proto To Build 90
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedmozaffariGithub committed Jul 4, 2018
1 parent 615a5fb commit ac2e4dc
Show file tree
Hide file tree
Showing 7 changed files with 898 additions and 0 deletions.
12 changes: 12 additions & 0 deletions IGProtoBuff.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 */; };
Expand Down Expand Up @@ -193,6 +196,9 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
FA2A506A20ECDA74002C5322 /* WalletRegister.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletRegister.pb.swift; sourceTree = "<group>"; };
FA2A506B20ECDA74002C5322 /* BillInquiryMci.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BillInquiryMci.pb.swift; sourceTree = "<group>"; };
FA2A506C20ECDA75002C5322 /* BillInquiryTelecom.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BillInquiryTelecom.pb.swift; sourceTree = "<group>"; };
FA416B8B20D8DE600013DB17 /* WalletGetAccessToken.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletGetAccessToken.pb.swift; sourceTree = "<group>"; };
FA416B8D20D8DE890013DB17 /* ClientRegisterDevice.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClientRegisterDevice.pb.swift; sourceTree = "<group>"; };
FA416B8F20D8DEB50013DB17 /* MplGetTopupToken.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MplGetTopupToken.pb.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -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 */,
Expand Down Expand Up @@ -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 */,
Expand Down
332 changes: 332 additions & 0 deletions IGProtoBuff/ProtoBuffs/BillInquiryMci.pb.swift
Original file line number Diff line number Diff line change
@@ -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<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularMessageField(value: &_storage._igpRequest)
case 2: try decoder.decodeSingularInt64Field(value: &_storage._igpMobileNumber)
default: break
}
}
}
}

public func traverse<V: SwiftProtobuf.Visitor>(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<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.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<V: SwiftProtobuf.Visitor>(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<D: SwiftProtobuf.Decoder>(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<V: SwiftProtobuf.Visitor>(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
}
}
Loading

0 comments on commit ac2e4dc

Please sign in to comment.