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

Commit

Permalink
Update Proto Api To Build 77
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedmozaffariGithub committed May 21, 2018
1 parent b0373ac commit a3d53fe
Show file tree
Hide file tree
Showing 175 changed files with 12,815 additions and 14,453 deletions.
2 changes: 1 addition & 1 deletion Cartfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "RooyeKhat-Media/swift-protobuf"
github "RooyeKhat-Media/swift-protobuf" "1.0.3-iGap"
142 changes: 66 additions & 76 deletions IGProtoBuff/ProtoBuffs/ChannelAddAdmin.pb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP
}

public struct IGPChannelAddAdmin: SwiftProtobuf.RequestMessage {
public static let protoMessageName: String = "IGPChannelAddAdmin"
// 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()}
Expand All @@ -45,48 +47,13 @@ public struct IGPChannelAddAdmin: SwiftProtobuf.RequestMessage {

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<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._igpRoomID)
case 3: try decoder.decodeSingularInt64Field(value: &_storage._igpMemberID)
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<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._igpRoomID != 0 {
try visitor.visitSingularInt64Field(value: _storage._igpRoomID, fieldNumber: 2)
}
if _storage._igpMemberID != 0 {
try visitor.visitSingularInt64Field(value: _storage._igpMemberID, fieldNumber: 3)
}
}
try unknownFields.traverse(visitor: &visitor)
}

fileprivate var _storage = _StorageClass.defaultInstance
}

public struct IGPChannelAddAdminResponse: SwiftProtobuf.ResponseMessage {
public static let protoMessageName: String = "IGPChannelAddAdminResponse"
// 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()}
Expand All @@ -111,49 +78,13 @@ public struct IGPChannelAddAdminResponse: SwiftProtobuf.ResponseMessage {

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<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.decodeSingularInt64Field(value: &_storage._igpRoomID)
case 3: try decoder.decodeSingularInt64Field(value: &_storage._igpMemberID)
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<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._igpRoomID != 0 {
try visitor.visitSingularInt64Field(value: _storage._igpRoomID, fieldNumber: 2)
}
if _storage._igpMemberID != 0 {
try visitor.visitSingularInt64Field(value: _storage._igpMemberID, fieldNumber: 3)
}
}
try unknownFields.traverse(visitor: &visitor)
}

fileprivate var _storage = _StorageClass.defaultInstance
}

// MARK: - Code below here is support for the SwiftProtobuf runtime.

extension IGPChannelAddAdmin: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = "IGPChannelAddAdmin"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "IGP_request"),
2: .standard(proto: "IGP_room_id"),
Expand Down Expand Up @@ -183,6 +114,35 @@ extension IGPChannelAddAdmin: SwiftProtobuf._MessageImplementationBase, SwiftPro
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._igpRoomID)
case 3: try decoder.decodeSingularInt64Field(value: &_storage._igpMemberID)
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._igpRoomID != 0 {
try visitor.visitSingularInt64Field(value: _storage._igpRoomID, fieldNumber: 2)
}
if _storage._igpMemberID != 0 {
try visitor.visitSingularInt64Field(value: _storage._igpMemberID, fieldNumber: 3)
}
}
try unknownFields.traverse(visitor: &visitor)
}

public func _protobuf_generated_isEqualTo(other: IGPChannelAddAdmin) -> Bool {
if _storage !== other._storage {
let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_args: (_StorageClass, _StorageClass)) in
Expand All @@ -201,6 +161,7 @@ extension IGPChannelAddAdmin: SwiftProtobuf._MessageImplementationBase, SwiftPro
}

extension IGPChannelAddAdminResponse: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = "IGPChannelAddAdminResponse"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "IGP_response"),
2: .standard(proto: "IGP_room_id"),
Expand Down Expand Up @@ -230,6 +191,35 @@ extension IGPChannelAddAdminResponse: SwiftProtobuf._MessageImplementationBase,
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.decodeSingularInt64Field(value: &_storage._igpRoomID)
case 3: try decoder.decodeSingularInt64Field(value: &_storage._igpMemberID)
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._igpRoomID != 0 {
try visitor.visitSingularInt64Field(value: _storage._igpRoomID, fieldNumber: 2)
}
if _storage._igpMemberID != 0 {
try visitor.visitSingularInt64Field(value: _storage._igpMemberID, fieldNumber: 3)
}
}
try unknownFields.traverse(visitor: &visitor)
}

public func _protobuf_generated_isEqualTo(other: IGPChannelAddAdminResponse) -> Bool {
if _storage !== other._storage {
let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_args: (_StorageClass, _StorageClass)) in
Expand Down
Loading

0 comments on commit a3d53fe

Please sign in to comment.