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 78
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedmozaffariGithub committed May 23, 2018
1 parent a3d53fe commit 3333fdc
Show file tree
Hide file tree
Showing 7 changed files with 569 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 @@ -8,6 +8,9 @@

/* Begin PBXBuildFile section */
FA76382E1E2FFD5E00C24391 /* IGProtoBuff.h in Headers */ = {isa = PBXBuildFile; fileRef = FA76382C1E2FFD5E00C24391 /* IGProtoBuff.h */; settings = {ATTRIBUTES = (Public, ); }; };
FA90B73A20B59D9700043C89 /* ChannelUpdateReactionStatus.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA90B73720B59D9600043C89 /* ChannelUpdateReactionStatus.pb.swift */; };
FA90B73B20B59D9700043C89 /* GroupPinMessage.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA90B73820B59D9600043C89 /* GroupPinMessage.pb.swift */; };
FA90B73C20B59D9700043C89 /* ChannelPinMessage.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA90B73920B59D9700043C89 /* ChannelPinMessage.pb.swift */; };
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 */; };
Expand Down Expand Up @@ -188,6 +191,9 @@
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 = "<group>"; };
FA76382D1E2FFD5E00C24391 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
FA90B73720B59D9600043C89 /* ChannelUpdateReactionStatus.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChannelUpdateReactionStatus.pb.swift; sourceTree = "<group>"; };
FA90B73820B59D9600043C89 /* GroupPinMessage.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GroupPinMessage.pb.swift; sourceTree = "<group>"; };
FA90B73920B59D9700043C89 /* ChannelPinMessage.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChannelPinMessage.pb.swift; sourceTree = "<group>"; };
FAA1BDB11F98EDF70010FE8A /* ClientMuteRoom.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClientMuteRoom.pb.swift; sourceTree = "<group>"; };
FAA1BDB31F98EE220010FE8A /* ClientPinRoom.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClientPinRoom.pb.swift; sourceTree = "<group>"; };
FAA1BDB41F98EE220010FE8A /* UserProfileSetBio.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserProfileSetBio.pb.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -379,6 +385,9 @@
FA5A9FF11F71ECEF00D925F5 /* ProtoBuffs */ = {
isa = PBXGroup;
children = (
FA90B73920B59D9700043C89 /* ChannelPinMessage.pb.swift */,
FA90B73720B59D9600043C89 /* ChannelUpdateReactionStatus.pb.swift */,
FA90B73820B59D9600043C89 /* GroupPinMessage.pb.swift */,
FAA1BDB11F98EDF70010FE8A /* ClientMuteRoom.pb.swift */,
FAA1BDB31F98EE220010FE8A /* ClientPinRoom.pb.swift */,
FAA1BDB51F98EE220010FE8A /* ClientRoomReport.pb.swift */,
Expand Down Expand Up @@ -671,6 +680,9 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
FA90B73A20B59D9700043C89 /* ChannelUpdateReactionStatus.pb.swift in Sources */,
FA90B73B20B59D9700043C89 /* GroupPinMessage.pb.swift in Sources */,
FA90B73C20B59D9700043C89 /* ChannelPinMessage.pb.swift in Sources */,
FAF5D2861F8D6C2000A26EE1 /* GroupAddModerator.pb.swift in Sources */,
FAF5D25D1F8D6C2000A26EE1 /* ChatDeleteMessage.pb.swift in Sources */,
FAF5D28F1F8D6C2000A26EE1 /* GroupEdit.pb.swift in Sources */,
Expand Down
242 changes: 242 additions & 0 deletions IGProtoBuff/ProtoBuffs/ChannelPinMessage.pb.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,242 @@
// DO NOT EDIT.
//
// Generated by the Swift generator plugin for the protocol buffer compiler.
// Source: ChannelPinMessage.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 IGPChannelPinMessage: 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 igpRoomID: Int64 {
get {return _storage._igpRoomID}
set {_uniqueStorage()._igpRoomID = newValue}
}

public var igpMessageID: Int64 {
get {return _storage._igpMessageID}
set {_uniqueStorage()._igpMessageID = newValue}
}

public var unknownFields = SwiftProtobuf.UnknownStorage()

public init() {}

fileprivate var _storage = _StorageClass.defaultInstance
}

public struct IGPChannelPinMessageResponse: 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 igpRoomID: Int64 {
get {return _storage._igpRoomID}
set {_uniqueStorage()._igpRoomID = newValue}
}

public var igpPinnedMessage: IGPRoomMessage {
get {return _storage._igpPinnedMessage ?? IGPRoomMessage()}
set {_uniqueStorage()._igpPinnedMessage = newValue}
}
/// Returns true if `igpPinnedMessage` has been explicitly set.
public var hasIgpPinnedMessage: Bool {return _storage._igpPinnedMessage != nil}
/// Clears the value of `igpPinnedMessage`. Subsequent reads from it will return its default value.
public mutating func clearIgpPinnedMessage() {_storage._igpPinnedMessage = nil}

public var unknownFields = SwiftProtobuf.UnknownStorage()

public init() {}

fileprivate var _storage = _StorageClass.defaultInstance
}

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

extension IGPChannelPinMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = "IGPChannelPinMessage"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "IGP_request"),
2: .standard(proto: "IGP_room_id"),
3: .standard(proto: "IGP_message_id"),
]

fileprivate class _StorageClass {
var _igpRequest: IGPRequest? = nil
var _igpRoomID: Int64 = 0
var _igpMessageID: Int64 = 0

static let defaultInstance = _StorageClass()

private init() {}

init(copying source: _StorageClass) {
_igpRequest = source._igpRequest
_igpRoomID = source._igpRoomID
_igpMessageID = source._igpMessageID
}
}

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

public func _protobuf_generated_isEqualTo(other: IGPChannelPinMessage) -> 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}
return true
}
if !storagesAreEqual {return false}
}
if unknownFields != other.unknownFields {return false}
return true
}
}

extension IGPChannelPinMessageResponse: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = "IGPChannelPinMessageResponse"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "IGP_response"),
2: .standard(proto: "IGP_room_id"),
3: .standard(proto: "IGP_pinned_message"),
]

fileprivate class _StorageClass {
var _igpResponse: IGPResponse? = nil
var _igpRoomID: Int64 = 0
var _igpPinnedMessage: IGPRoomMessage? = nil

static let defaultInstance = _StorageClass()

private init() {}

init(copying source: _StorageClass) {
_igpResponse = source._igpResponse
_igpRoomID = source._igpRoomID
_igpPinnedMessage = source._igpPinnedMessage
}
}

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.decodeSingularInt64Field(value: &_storage._igpRoomID)
case 3: try decoder.decodeSingularMessageField(value: &_storage._igpPinnedMessage)
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 let v = _storage._igpPinnedMessage {
try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
}
}
try unknownFields.traverse(visitor: &visitor)
}

public func _protobuf_generated_isEqualTo(other: IGPChannelPinMessageResponse) -> 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._igpPinnedMessage != other_storage._igpPinnedMessage {return false}
return true
}
if !storagesAreEqual {return false}
}
if unknownFields != other.unknownFields {return false}
return true
}
}
13 changes: 13 additions & 0 deletions IGProtoBuff/ProtoBuffs/ChannelSendMessage.pb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ public struct IGPChannelSendMessage: SwiftProtobuf.RequestMessage {
/// Clears the value of `igpForwardFrom`. Subsequent reads from it will return its default value.
public mutating func clearIgpForwardFrom() {_storage._igpForwardFrom = nil}

public var igpRandomID: Int64 {
get {return _storage._igpRandomID}
set {_uniqueStorage()._igpRandomID = newValue}
}

public var unknownFields = SwiftProtobuf.UnknownStorage()

public init() {}
Expand Down Expand Up @@ -141,6 +146,7 @@ extension IGPChannelSendMessage: SwiftProtobuf._MessageImplementationBase, Swift
7: .standard(proto: "IGP_contact"),
8: .standard(proto: "IGP_reply_to"),
9: .standard(proto: "IGP_forward_from"),
10: .standard(proto: "IGP_random_id"),
]

fileprivate class _StorageClass {
Expand All @@ -153,6 +159,7 @@ extension IGPChannelSendMessage: SwiftProtobuf._MessageImplementationBase, Swift
var _igpContact: IGPRoomMessageContact? = nil
var _igpReplyTo: Int64 = 0
var _igpForwardFrom: IGPRoomMessageForwardFrom? = nil
var _igpRandomID: Int64 = 0

static let defaultInstance = _StorageClass()

Expand All @@ -168,6 +175,7 @@ extension IGPChannelSendMessage: SwiftProtobuf._MessageImplementationBase, Swift
_igpContact = source._igpContact
_igpReplyTo = source._igpReplyTo
_igpForwardFrom = source._igpForwardFrom
_igpRandomID = source._igpRandomID
}
}

Expand All @@ -192,6 +200,7 @@ extension IGPChannelSendMessage: SwiftProtobuf._MessageImplementationBase, Swift
case 7: try decoder.decodeSingularMessageField(value: &_storage._igpContact)
case 8: try decoder.decodeSingularInt64Field(value: &_storage._igpReplyTo)
case 9: try decoder.decodeSingularMessageField(value: &_storage._igpForwardFrom)
case 10: try decoder.decodeSingularInt64Field(value: &_storage._igpRandomID)
default: break
}
}
Expand Down Expand Up @@ -227,6 +236,9 @@ extension IGPChannelSendMessage: SwiftProtobuf._MessageImplementationBase, Swift
if let v = _storage._igpForwardFrom {
try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
}
if _storage._igpRandomID != 0 {
try visitor.visitSingularInt64Field(value: _storage._igpRandomID, fieldNumber: 10)
}
}
try unknownFields.traverse(visitor: &visitor)
}
Expand All @@ -245,6 +257,7 @@ extension IGPChannelSendMessage: SwiftProtobuf._MessageImplementationBase, Swift
if _storage._igpContact != other_storage._igpContact {return false}
if _storage._igpReplyTo != other_storage._igpReplyTo {return false}
if _storage._igpForwardFrom != other_storage._igpForwardFrom {return false}
if _storage._igpRandomID != other_storage._igpRandomID {return false}
return true
}
if !storagesAreEqual {return false}
Expand Down
Loading

0 comments on commit 3333fdc

Please sign in to comment.