GtalkCore.pbobjc.h 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344
  1. /*
  2. * Copyright 2017 Google
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. // Generated by the protocol buffer compiler. DO NOT EDIT!
  17. // source: buzz/mobile/proto/gtalk_core.proto
  18. // This CPP symbol can be defined to use imports that match up to the framework
  19. // imports needed when using CocoaPods.
  20. #if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS)
  21. #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0
  22. #endif
  23. #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
  24. #import <Protobuf/GPBProtocolBuffers.h>
  25. #else
  26. #import "GPBProtocolBuffers.h"
  27. #endif
  28. #if GOOGLE_PROTOBUF_OBJC_VERSION < 30002
  29. #error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
  30. #endif
  31. #if 30002 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION
  32. #error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
  33. #endif
  34. // @@protoc_insertion_point(imports)
  35. #pragma clang diagnostic push
  36. #pragma clang diagnostic ignored "-Wdeprecated-declarations"
  37. CF_EXTERN_C_BEGIN
  38. @class GtalkAppData;
  39. @class GtalkCellTower;
  40. @class GtalkClientEvent;
  41. @class GtalkErrorInfo;
  42. @class GtalkExtension;
  43. @class GtalkHeartbeatConfig;
  44. @class GtalkHeartbeatStat;
  45. @class GtalkPresenceStanza;
  46. @class GtalkSetting;
  47. NS_ASSUME_NONNULL_BEGIN
  48. #pragma mark - Enum GtalkLoginRequest_AuthService
  49. typedef GPB_ENUM(GtalkLoginRequest_AuthService) {
  50. GtalkLoginRequest_AuthService_Mail = 0,
  51. GtalkLoginRequest_AuthService_AndroidCloudToDeviceMessage = 1,
  52. GtalkLoginRequest_AuthService_AndroidId = 2,
  53. };
  54. GPBEnumDescriptor *GtalkLoginRequest_AuthService_EnumDescriptor(void);
  55. /**
  56. * Checks to see if the given value is defined by the enum or was not known at
  57. * the time this source was generated.
  58. **/
  59. BOOL GtalkLoginRequest_AuthService_IsValidValue(int32_t value);
  60. #pragma mark - Enum GtalkMessageStanza_MessageType
  61. typedef GPB_ENUM(GtalkMessageStanza_MessageType) {
  62. GtalkMessageStanza_MessageType_Normal = 0,
  63. GtalkMessageStanza_MessageType_Chat = 1,
  64. GtalkMessageStanza_MessageType_Groupchat = 2,
  65. GtalkMessageStanza_MessageType_Headline = 3,
  66. GtalkMessageStanza_MessageType_Error = 4,
  67. };
  68. GPBEnumDescriptor *GtalkMessageStanza_MessageType_EnumDescriptor(void);
  69. /**
  70. * Checks to see if the given value is defined by the enum or was not known at
  71. * the time this source was generated.
  72. **/
  73. BOOL GtalkMessageStanza_MessageType_IsValidValue(int32_t value);
  74. #pragma mark - Enum GtalkPresenceStanza_PresenceType
  75. typedef GPB_ENUM(GtalkPresenceStanza_PresenceType) {
  76. GtalkPresenceStanza_PresenceType_Unavailable = 0,
  77. GtalkPresenceStanza_PresenceType_Subscribe = 1,
  78. GtalkPresenceStanza_PresenceType_Subscribed = 2,
  79. GtalkPresenceStanza_PresenceType_Unsubscribe = 3,
  80. GtalkPresenceStanza_PresenceType_Unsubscribed = 4,
  81. GtalkPresenceStanza_PresenceType_Probe = 5,
  82. GtalkPresenceStanza_PresenceType_Error = 6,
  83. };
  84. GPBEnumDescriptor *GtalkPresenceStanza_PresenceType_EnumDescriptor(void);
  85. /**
  86. * Checks to see if the given value is defined by the enum or was not known at
  87. * the time this source was generated.
  88. **/
  89. BOOL GtalkPresenceStanza_PresenceType_IsValidValue(int32_t value);
  90. #pragma mark - Enum GtalkPresenceStanza_ShowType
  91. typedef GPB_ENUM(GtalkPresenceStanza_ShowType) {
  92. GtalkPresenceStanza_ShowType_Away = 0,
  93. GtalkPresenceStanza_ShowType_Chat = 1,
  94. GtalkPresenceStanza_ShowType_Dnd = 2,
  95. GtalkPresenceStanza_ShowType_Xa = 3,
  96. };
  97. GPBEnumDescriptor *GtalkPresenceStanza_ShowType_EnumDescriptor(void);
  98. /**
  99. * Checks to see if the given value is defined by the enum or was not known at
  100. * the time this source was generated.
  101. **/
  102. BOOL GtalkPresenceStanza_ShowType_IsValidValue(int32_t value);
  103. #pragma mark - Enum GtalkPresenceStanza_ClientType
  104. typedef GPB_ENUM(GtalkPresenceStanza_ClientType) {
  105. GtalkPresenceStanza_ClientType_Mobile = 0,
  106. GtalkPresenceStanza_ClientType_Android = 1,
  107. };
  108. GPBEnumDescriptor *GtalkPresenceStanza_ClientType_EnumDescriptor(void);
  109. /**
  110. * Checks to see if the given value is defined by the enum or was not known at
  111. * the time this source was generated.
  112. **/
  113. BOOL GtalkPresenceStanza_ClientType_IsValidValue(int32_t value);
  114. #pragma mark - Enum GtalkPresenceStanza_CapabilitiesFlags
  115. typedef GPB_ENUM(GtalkPresenceStanza_CapabilitiesFlags) {
  116. GtalkPresenceStanza_CapabilitiesFlags_HasVoiceV1 = 1,
  117. GtalkPresenceStanza_CapabilitiesFlags_HasVideoV1 = 2,
  118. GtalkPresenceStanza_CapabilitiesFlags_HasCameraV1 = 4,
  119. GtalkPresenceStanza_CapabilitiesFlags_HasPmucV1 = 8,
  120. };
  121. GPBEnumDescriptor *GtalkPresenceStanza_CapabilitiesFlags_EnumDescriptor(void);
  122. /**
  123. * Checks to see if the given value is defined by the enum or was not known at
  124. * the time this source was generated.
  125. **/
  126. BOOL GtalkPresenceStanza_CapabilitiesFlags_IsValidValue(int32_t value);
  127. #pragma mark - Enum GtalkBatchPresenceStanza_Type
  128. typedef GPB_ENUM(GtalkBatchPresenceStanza_Type) {
  129. GtalkBatchPresenceStanza_Type_Get = 0,
  130. GtalkBatchPresenceStanza_Type_Set = 1,
  131. };
  132. GPBEnumDescriptor *GtalkBatchPresenceStanza_Type_EnumDescriptor(void);
  133. /**
  134. * Checks to see if the given value is defined by the enum or was not known at
  135. * the time this source was generated.
  136. **/
  137. BOOL GtalkBatchPresenceStanza_Type_IsValidValue(int32_t value);
  138. #pragma mark - Enum GtalkIqStanza_IqType
  139. typedef GPB_ENUM(GtalkIqStanza_IqType) {
  140. GtalkIqStanza_IqType_Get = 0,
  141. GtalkIqStanza_IqType_Set = 1,
  142. GtalkIqStanza_IqType_Result = 2,
  143. GtalkIqStanza_IqType_Error = 3,
  144. };
  145. GPBEnumDescriptor *GtalkIqStanza_IqType_EnumDescriptor(void);
  146. /**
  147. * Checks to see if the given value is defined by the enum or was not known at
  148. * the time this source was generated.
  149. **/
  150. BOOL GtalkIqStanza_IqType_IsValidValue(int32_t value);
  151. #pragma mark - Enum GtalkClientEvent_Type
  152. typedef GPB_ENUM(GtalkClientEvent_Type) {
  153. GtalkClientEvent_Type_Unknown = 0,
  154. GtalkClientEvent_Type_DiscardedEvents = 1,
  155. GtalkClientEvent_Type_FailedConnection = 2,
  156. GtalkClientEvent_Type_SuccessfulConnection = 3,
  157. };
  158. GPBEnumDescriptor *GtalkClientEvent_Type_EnumDescriptor(void);
  159. /**
  160. * Checks to see if the given value is defined by the enum or was not known at
  161. * the time this source was generated.
  162. **/
  163. BOOL GtalkClientEvent_Type_IsValidValue(int32_t value);
  164. #pragma mark - GtalkGtalkCoreRoot
  165. /**
  166. * Exposes the extension registry for this file.
  167. *
  168. * The base class provides:
  169. * @code
  170. * + (GPBExtensionRegistry *)extensionRegistry;
  171. * @endcode
  172. * which is a @c GPBExtensionRegistry that includes all the extensions defined by
  173. * this file and all files that it depends on.
  174. **/
  175. @interface GtalkGtalkCoreRoot : GPBRootObject
  176. @end
  177. #pragma mark - GtalkHeartbeatPing
  178. typedef GPB_ENUM(GtalkHeartbeatPing_FieldNumber) {
  179. GtalkHeartbeatPing_FieldNumber_StreamId = 1,
  180. GtalkHeartbeatPing_FieldNumber_LastStreamIdReceived = 2,
  181. GtalkHeartbeatPing_FieldNumber_Status = 3,
  182. GtalkHeartbeatPing_FieldNumber_CellTower = 4,
  183. GtalkHeartbeatPing_FieldNumber_IntervalMs = 5,
  184. };
  185. @interface GtalkHeartbeatPing : GPBMessage
  186. @property(nonatomic, readwrite) int32_t streamId;
  187. @property(nonatomic, readwrite) BOOL hasStreamId;
  188. @property(nonatomic, readwrite) int32_t lastStreamIdReceived;
  189. @property(nonatomic, readwrite) BOOL hasLastStreamIdReceived;
  190. @property(nonatomic, readwrite) int64_t status;
  191. @property(nonatomic, readwrite) BOOL hasStatus;
  192. @property(nonatomic, readwrite, strong, null_resettable) GtalkCellTower *cellTower;
  193. /** Test to see if @c cellTower has been set. */
  194. @property(nonatomic, readwrite) BOOL hasCellTower;
  195. @property(nonatomic, readwrite) int32_t intervalMs;
  196. @property(nonatomic, readwrite) BOOL hasIntervalMs;
  197. @end
  198. #pragma mark - GtalkHeartbeatAck
  199. typedef GPB_ENUM(GtalkHeartbeatAck_FieldNumber) {
  200. GtalkHeartbeatAck_FieldNumber_StreamId = 1,
  201. GtalkHeartbeatAck_FieldNumber_LastStreamIdReceived = 2,
  202. GtalkHeartbeatAck_FieldNumber_Status = 3,
  203. GtalkHeartbeatAck_FieldNumber_CellTower = 4,
  204. GtalkHeartbeatAck_FieldNumber_IntervalMs = 5,
  205. };
  206. @interface GtalkHeartbeatAck : GPBMessage
  207. @property(nonatomic, readwrite) int32_t streamId;
  208. @property(nonatomic, readwrite) BOOL hasStreamId;
  209. @property(nonatomic, readwrite) int32_t lastStreamIdReceived;
  210. @property(nonatomic, readwrite) BOOL hasLastStreamIdReceived;
  211. @property(nonatomic, readwrite) int64_t status;
  212. @property(nonatomic, readwrite) BOOL hasStatus;
  213. @property(nonatomic, readwrite, strong, null_resettable) GtalkCellTower *cellTower;
  214. /** Test to see if @c cellTower has been set. */
  215. @property(nonatomic, readwrite) BOOL hasCellTower;
  216. @property(nonatomic, readwrite) int32_t intervalMs;
  217. @property(nonatomic, readwrite) BOOL hasIntervalMs;
  218. @end
  219. #pragma mark - GtalkErrorInfo
  220. typedef GPB_ENUM(GtalkErrorInfo_FieldNumber) {
  221. GtalkErrorInfo_FieldNumber_Code = 1,
  222. GtalkErrorInfo_FieldNumber_Message = 2,
  223. GtalkErrorInfo_FieldNumber_Type = 3,
  224. GtalkErrorInfo_FieldNumber_Extension = 4,
  225. };
  226. @interface GtalkErrorInfo : GPBMessage
  227. @property(nonatomic, readwrite) int32_t code;
  228. @property(nonatomic, readwrite) BOOL hasCode;
  229. @property(nonatomic, readwrite, copy, null_resettable) NSString *message;
  230. /** Test to see if @c message has been set. */
  231. @property(nonatomic, readwrite) BOOL hasMessage;
  232. @property(nonatomic, readwrite, copy, null_resettable) NSString *type;
  233. /** Test to see if @c type has been set. */
  234. @property(nonatomic, readwrite) BOOL hasType;
  235. @property(nonatomic, readwrite, strong, null_resettable) GtalkExtension *extension;
  236. /** Test to see if @c extension has been set. */
  237. @property(nonatomic, readwrite) BOOL hasExtension;
  238. @end
  239. #pragma mark - GtalkSetting
  240. typedef GPB_ENUM(GtalkSetting_FieldNumber) {
  241. GtalkSetting_FieldNumber_Name = 1,
  242. GtalkSetting_FieldNumber_Value = 2,
  243. };
  244. @interface GtalkSetting : GPBMessage
  245. @property(nonatomic, readwrite, copy, null_resettable) NSString *name;
  246. /** Test to see if @c name has been set. */
  247. @property(nonatomic, readwrite) BOOL hasName;
  248. @property(nonatomic, readwrite, copy, null_resettable) NSString *value;
  249. /** Test to see if @c value has been set. */
  250. @property(nonatomic, readwrite) BOOL hasValue;
  251. @end
  252. #pragma mark - GtalkHeartbeatStat
  253. typedef GPB_ENUM(GtalkHeartbeatStat_FieldNumber) {
  254. GtalkHeartbeatStat_FieldNumber_Ip = 1,
  255. GtalkHeartbeatStat_FieldNumber_Timeout = 2,
  256. GtalkHeartbeatStat_FieldNumber_IntervalMs = 3,
  257. };
  258. @interface GtalkHeartbeatStat : GPBMessage
  259. @property(nonatomic, readwrite, copy, null_resettable) NSString *ip;
  260. /** Test to see if @c ip has been set. */
  261. @property(nonatomic, readwrite) BOOL hasIp;
  262. @property(nonatomic, readwrite) BOOL timeout;
  263. @property(nonatomic, readwrite) BOOL hasTimeout;
  264. @property(nonatomic, readwrite) int32_t intervalMs;
  265. @property(nonatomic, readwrite) BOOL hasIntervalMs;
  266. @end
  267. #pragma mark - GtalkHeartbeatConfig
  268. typedef GPB_ENUM(GtalkHeartbeatConfig_FieldNumber) {
  269. GtalkHeartbeatConfig_FieldNumber_UploadStat = 1,
  270. GtalkHeartbeatConfig_FieldNumber_Ip = 2,
  271. GtalkHeartbeatConfig_FieldNumber_IntervalMs = 3,
  272. };
  273. @interface GtalkHeartbeatConfig : GPBMessage
  274. @property(nonatomic, readwrite) BOOL uploadStat;
  275. @property(nonatomic, readwrite) BOOL hasUploadStat;
  276. @property(nonatomic, readwrite, copy, null_resettable) NSString *ip;
  277. /** Test to see if @c ip has been set. */
  278. @property(nonatomic, readwrite) BOOL hasIp;
  279. @property(nonatomic, readwrite) int32_t intervalMs;
  280. @property(nonatomic, readwrite) BOOL hasIntervalMs;
  281. @end
  282. #pragma mark - GtalkLoginRequest
  283. typedef GPB_ENUM(GtalkLoginRequest_FieldNumber) {
  284. GtalkLoginRequest_FieldNumber_Id_p = 1,
  285. GtalkLoginRequest_FieldNumber_Domain = 2,
  286. GtalkLoginRequest_FieldNumber_User = 3,
  287. GtalkLoginRequest_FieldNumber_Resource = 4,
  288. GtalkLoginRequest_FieldNumber_AuthToken = 5,
  289. GtalkLoginRequest_FieldNumber_DeviceId = 6,
  290. GtalkLoginRequest_FieldNumber_LastRmqId = 7,
  291. GtalkLoginRequest_FieldNumber_SettingArray = 8,
  292. GtalkLoginRequest_FieldNumber_Compress = 9,
  293. GtalkLoginRequest_FieldNumber_ReceivedPersistentIdArray = 10,
  294. GtalkLoginRequest_FieldNumber_IncludeStreamIds = 11,
  295. GtalkLoginRequest_FieldNumber_HeartbeatStat = 13,
  296. GtalkLoginRequest_FieldNumber_UseRmq2 = 14,
  297. GtalkLoginRequest_FieldNumber_AccountId = 15,
  298. GtalkLoginRequest_FieldNumber_AuthService = 16,
  299. GtalkLoginRequest_FieldNumber_NetworkType = 17,
  300. GtalkLoginRequest_FieldNumber_Status = 18,
  301. GtalkLoginRequest_FieldNumber_TokenVersionInfo = 19,
  302. GtalkLoginRequest_FieldNumber_CellTower = 20,
  303. GtalkLoginRequest_FieldNumber_GcmStartTimeMs = 21,
  304. GtalkLoginRequest_FieldNumber_ClientEventArray = 22,
  305. GtalkLoginRequest_FieldNumber_OnFallback = 23,
  306. };
  307. @interface GtalkLoginRequest : GPBMessage
  308. @property(nonatomic, readwrite, copy, null_resettable) NSString *id_p;
  309. /** Test to see if @c id_p has been set. */
  310. @property(nonatomic, readwrite) BOOL hasId_p;
  311. @property(nonatomic, readwrite, copy, null_resettable) NSString *domain;
  312. /** Test to see if @c domain has been set. */
  313. @property(nonatomic, readwrite) BOOL hasDomain;
  314. @property(nonatomic, readwrite, copy, null_resettable) NSString *user;
  315. /** Test to see if @c user has been set. */
  316. @property(nonatomic, readwrite) BOOL hasUser;
  317. @property(nonatomic, readwrite, copy, null_resettable) NSString *resource;
  318. /** Test to see if @c resource has been set. */
  319. @property(nonatomic, readwrite) BOOL hasResource;
  320. @property(nonatomic, readwrite, copy, null_resettable) NSString *authToken;
  321. /** Test to see if @c authToken has been set. */
  322. @property(nonatomic, readwrite) BOOL hasAuthToken;
  323. @property(nonatomic, readwrite, copy, null_resettable) NSString *deviceId;
  324. /** Test to see if @c deviceId has been set. */
  325. @property(nonatomic, readwrite) BOOL hasDeviceId;
  326. @property(nonatomic, readwrite) int64_t lastRmqId;
  327. @property(nonatomic, readwrite) BOOL hasLastRmqId;
  328. @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GtalkSetting*> *settingArray;
  329. /** The number of items in @c settingArray without causing the array to be created. */
  330. @property(nonatomic, readonly) NSUInteger settingArray_Count;
  331. @property(nonatomic, readwrite) int32_t compress;
  332. @property(nonatomic, readwrite) BOOL hasCompress;
  333. @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<NSString*> *receivedPersistentIdArray;
  334. /** The number of items in @c receivedPersistentIdArray without causing the array to be created. */
  335. @property(nonatomic, readonly) NSUInteger receivedPersistentIdArray_Count;
  336. @property(nonatomic, readwrite) BOOL includeStreamIds;
  337. @property(nonatomic, readwrite) BOOL hasIncludeStreamIds;
  338. @property(nonatomic, readwrite, strong, null_resettable) GtalkHeartbeatStat *heartbeatStat;
  339. /** Test to see if @c heartbeatStat has been set. */
  340. @property(nonatomic, readwrite) BOOL hasHeartbeatStat;
  341. @property(nonatomic, readwrite) BOOL useRmq2;
  342. @property(nonatomic, readwrite) BOOL hasUseRmq2;
  343. @property(nonatomic, readwrite) int64_t accountId;
  344. @property(nonatomic, readwrite) BOOL hasAccountId;
  345. @property(nonatomic, readwrite) GtalkLoginRequest_AuthService authService;
  346. @property(nonatomic, readwrite) BOOL hasAuthService;
  347. @property(nonatomic, readwrite) int32_t networkType;
  348. @property(nonatomic, readwrite) BOOL hasNetworkType;
  349. @property(nonatomic, readwrite) int64_t status;
  350. @property(nonatomic, readwrite) BOOL hasStatus;
  351. @property(nonatomic, readwrite, copy, null_resettable) NSString *tokenVersionInfo;
  352. /** Test to see if @c tokenVersionInfo has been set. */
  353. @property(nonatomic, readwrite) BOOL hasTokenVersionInfo;
  354. @property(nonatomic, readwrite, strong, null_resettable) GtalkCellTower *cellTower;
  355. /** Test to see if @c cellTower has been set. */
  356. @property(nonatomic, readwrite) BOOL hasCellTower;
  357. @property(nonatomic, readwrite) uint64_t gcmStartTimeMs;
  358. @property(nonatomic, readwrite) BOOL hasGcmStartTimeMs;
  359. @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GtalkClientEvent*> *clientEventArray;
  360. /** The number of items in @c clientEventArray without causing the array to be created. */
  361. @property(nonatomic, readonly) NSUInteger clientEventArray_Count;
  362. @property(nonatomic, readwrite) BOOL onFallback;
  363. @property(nonatomic, readwrite) BOOL hasOnFallback;
  364. @end
  365. #pragma mark - GtalkLoginResponse
  366. typedef GPB_ENUM(GtalkLoginResponse_FieldNumber) {
  367. GtalkLoginResponse_FieldNumber_Id_p = 1,
  368. GtalkLoginResponse_FieldNumber_Jid = 2,
  369. GtalkLoginResponse_FieldNumber_Error = 3,
  370. GtalkLoginResponse_FieldNumber_SettingArray = 4,
  371. GtalkLoginResponse_FieldNumber_StreamId = 5,
  372. GtalkLoginResponse_FieldNumber_LastStreamIdReceived = 6,
  373. GtalkLoginResponse_FieldNumber_HeartbeatConfig = 7,
  374. GtalkLoginResponse_FieldNumber_ServerTimestamp = 8,
  375. };
  376. @interface GtalkLoginResponse : GPBMessage
  377. @property(nonatomic, readwrite, copy, null_resettable) NSString *id_p;
  378. /** Test to see if @c id_p has been set. */
  379. @property(nonatomic, readwrite) BOOL hasId_p;
  380. @property(nonatomic, readwrite, copy, null_resettable) NSString *jid;
  381. /** Test to see if @c jid has been set. */
  382. @property(nonatomic, readwrite) BOOL hasJid;
  383. @property(nonatomic, readwrite, strong, null_resettable) GtalkErrorInfo *error;
  384. /** Test to see if @c error has been set. */
  385. @property(nonatomic, readwrite) BOOL hasError;
  386. @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GtalkSetting*> *settingArray;
  387. /** The number of items in @c settingArray without causing the array to be created. */
  388. @property(nonatomic, readonly) NSUInteger settingArray_Count;
  389. @property(nonatomic, readwrite) int32_t streamId;
  390. @property(nonatomic, readwrite) BOOL hasStreamId;
  391. @property(nonatomic, readwrite) int32_t lastStreamIdReceived;
  392. @property(nonatomic, readwrite) BOOL hasLastStreamIdReceived;
  393. @property(nonatomic, readwrite, strong, null_resettable) GtalkHeartbeatConfig *heartbeatConfig;
  394. /** Test to see if @c heartbeatConfig has been set. */
  395. @property(nonatomic, readwrite) BOOL hasHeartbeatConfig;
  396. @property(nonatomic, readwrite) int64_t serverTimestamp;
  397. @property(nonatomic, readwrite) BOOL hasServerTimestamp;
  398. @end
  399. #pragma mark - GtalkBindAccountRequest
  400. typedef GPB_ENUM(GtalkBindAccountRequest_FieldNumber) {
  401. GtalkBindAccountRequest_FieldNumber_Id_p = 1,
  402. GtalkBindAccountRequest_FieldNumber_Domain = 2,
  403. GtalkBindAccountRequest_FieldNumber_User = 3,
  404. GtalkBindAccountRequest_FieldNumber_Resource = 4,
  405. GtalkBindAccountRequest_FieldNumber_AuthToken = 5,
  406. GtalkBindAccountRequest_FieldNumber_PersistentId = 6,
  407. GtalkBindAccountRequest_FieldNumber_StreamId = 7,
  408. GtalkBindAccountRequest_FieldNumber_LastStreamIdReceived = 8,
  409. GtalkBindAccountRequest_FieldNumber_AccountId = 9,
  410. };
  411. @interface GtalkBindAccountRequest : GPBMessage
  412. @property(nonatomic, readwrite, copy, null_resettable) NSString *id_p;
  413. /** Test to see if @c id_p has been set. */
  414. @property(nonatomic, readwrite) BOOL hasId_p;
  415. @property(nonatomic, readwrite, copy, null_resettable) NSString *domain;
  416. /** Test to see if @c domain has been set. */
  417. @property(nonatomic, readwrite) BOOL hasDomain;
  418. @property(nonatomic, readwrite, copy, null_resettable) NSString *user;
  419. /** Test to see if @c user has been set. */
  420. @property(nonatomic, readwrite) BOOL hasUser;
  421. @property(nonatomic, readwrite, copy, null_resettable) NSString *resource;
  422. /** Test to see if @c resource has been set. */
  423. @property(nonatomic, readwrite) BOOL hasResource;
  424. @property(nonatomic, readwrite, copy, null_resettable) NSString *authToken;
  425. /** Test to see if @c authToken has been set. */
  426. @property(nonatomic, readwrite) BOOL hasAuthToken;
  427. @property(nonatomic, readwrite, copy, null_resettable) NSString *persistentId;
  428. /** Test to see if @c persistentId has been set. */
  429. @property(nonatomic, readwrite) BOOL hasPersistentId;
  430. @property(nonatomic, readwrite) int32_t streamId;
  431. @property(nonatomic, readwrite) BOOL hasStreamId;
  432. @property(nonatomic, readwrite) int32_t lastStreamIdReceived;
  433. @property(nonatomic, readwrite) BOOL hasLastStreamIdReceived;
  434. @property(nonatomic, readwrite) int64_t accountId;
  435. @property(nonatomic, readwrite) BOOL hasAccountId;
  436. @end
  437. #pragma mark - GtalkBindAccountResponse
  438. typedef GPB_ENUM(GtalkBindAccountResponse_FieldNumber) {
  439. GtalkBindAccountResponse_FieldNumber_Id_p = 1,
  440. GtalkBindAccountResponse_FieldNumber_Jid = 2,
  441. GtalkBindAccountResponse_FieldNumber_Error = 3,
  442. GtalkBindAccountResponse_FieldNumber_StreamId = 4,
  443. GtalkBindAccountResponse_FieldNumber_LastStreamIdReceived = 5,
  444. };
  445. @interface GtalkBindAccountResponse : GPBMessage
  446. @property(nonatomic, readwrite, copy, null_resettable) NSString *id_p;
  447. /** Test to see if @c id_p has been set. */
  448. @property(nonatomic, readwrite) BOOL hasId_p;
  449. @property(nonatomic, readwrite, copy, null_resettable) NSString *jid;
  450. /** Test to see if @c jid has been set. */
  451. @property(nonatomic, readwrite) BOOL hasJid;
  452. @property(nonatomic, readwrite, strong, null_resettable) GtalkErrorInfo *error;
  453. /** Test to see if @c error has been set. */
  454. @property(nonatomic, readwrite) BOOL hasError;
  455. @property(nonatomic, readwrite) int32_t streamId;
  456. @property(nonatomic, readwrite) BOOL hasStreamId;
  457. @property(nonatomic, readwrite) int32_t lastStreamIdReceived;
  458. @property(nonatomic, readwrite) BOOL hasLastStreamIdReceived;
  459. @end
  460. #pragma mark - GtalkStreamErrorStanza
  461. typedef GPB_ENUM(GtalkStreamErrorStanza_FieldNumber) {
  462. GtalkStreamErrorStanza_FieldNumber_Type = 1,
  463. GtalkStreamErrorStanza_FieldNumber_Text = 2,
  464. };
  465. @interface GtalkStreamErrorStanza : GPBMessage
  466. @property(nonatomic, readwrite, copy, null_resettable) NSString *type;
  467. /** Test to see if @c type has been set. */
  468. @property(nonatomic, readwrite) BOOL hasType;
  469. @property(nonatomic, readwrite, copy, null_resettable) NSString *text;
  470. /** Test to see if @c text has been set. */
  471. @property(nonatomic, readwrite) BOOL hasText;
  472. @end
  473. #pragma mark - GtalkClose
  474. @interface GtalkClose : GPBMessage
  475. @end
  476. #pragma mark - GtalkExtension
  477. typedef GPB_ENUM(GtalkExtension_FieldNumber) {
  478. GtalkExtension_FieldNumber_Id_p = 1,
  479. GtalkExtension_FieldNumber_Data_p = 2,
  480. };
  481. @interface GtalkExtension : GPBMessage
  482. @property(nonatomic, readwrite) int32_t id_p;
  483. @property(nonatomic, readwrite) BOOL hasId_p;
  484. @property(nonatomic, readwrite, copy, null_resettable) NSString *data_p;
  485. /** Test to see if @c data_p has been set. */
  486. @property(nonatomic, readwrite) BOOL hasData_p;
  487. @end
  488. #pragma mark - GtalkMessageStanza
  489. typedef GPB_ENUM(GtalkMessageStanza_FieldNumber) {
  490. GtalkMessageStanza_FieldNumber_RmqId = 1,
  491. GtalkMessageStanza_FieldNumber_Type = 2,
  492. GtalkMessageStanza_FieldNumber_Id_p = 3,
  493. GtalkMessageStanza_FieldNumber_From = 4,
  494. GtalkMessageStanza_FieldNumber_To = 5,
  495. GtalkMessageStanza_FieldNumber_Subject = 6,
  496. GtalkMessageStanza_FieldNumber_Body = 7,
  497. GtalkMessageStanza_FieldNumber_Thread = 8,
  498. GtalkMessageStanza_FieldNumber_Error = 9,
  499. GtalkMessageStanza_FieldNumber_ExtensionArray = 10,
  500. GtalkMessageStanza_FieldNumber_Nosave = 11,
  501. GtalkMessageStanza_FieldNumber_Timestamp = 12,
  502. GtalkMessageStanza_FieldNumber_PersistentId = 13,
  503. GtalkMessageStanza_FieldNumber_StreamId = 14,
  504. GtalkMessageStanza_FieldNumber_LastStreamIdReceived = 15,
  505. GtalkMessageStanza_FieldNumber_Read = 16,
  506. GtalkMessageStanza_FieldNumber_AccountId = 17,
  507. };
  508. @interface GtalkMessageStanza : GPBMessage
  509. @property(nonatomic, readwrite) int64_t rmqId;
  510. @property(nonatomic, readwrite) BOOL hasRmqId;
  511. @property(nonatomic, readwrite) GtalkMessageStanza_MessageType type;
  512. @property(nonatomic, readwrite) BOOL hasType;
  513. @property(nonatomic, readwrite, copy, null_resettable) NSString *id_p;
  514. /** Test to see if @c id_p has been set. */
  515. @property(nonatomic, readwrite) BOOL hasId_p;
  516. @property(nonatomic, readwrite, copy, null_resettable) NSString *from;
  517. /** Test to see if @c from has been set. */
  518. @property(nonatomic, readwrite) BOOL hasFrom;
  519. @property(nonatomic, readwrite, copy, null_resettable) NSString *to;
  520. /** Test to see if @c to has been set. */
  521. @property(nonatomic, readwrite) BOOL hasTo;
  522. @property(nonatomic, readwrite, copy, null_resettable) NSString *subject;
  523. /** Test to see if @c subject has been set. */
  524. @property(nonatomic, readwrite) BOOL hasSubject;
  525. @property(nonatomic, readwrite, copy, null_resettable) NSString *body;
  526. /** Test to see if @c body has been set. */
  527. @property(nonatomic, readwrite) BOOL hasBody;
  528. @property(nonatomic, readwrite, copy, null_resettable) NSString *thread;
  529. /** Test to see if @c thread has been set. */
  530. @property(nonatomic, readwrite) BOOL hasThread;
  531. @property(nonatomic, readwrite, strong, null_resettable) GtalkErrorInfo *error;
  532. /** Test to see if @c error has been set. */
  533. @property(nonatomic, readwrite) BOOL hasError;
  534. @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GtalkExtension*> *extensionArray;
  535. /** The number of items in @c extensionArray without causing the array to be created. */
  536. @property(nonatomic, readonly) NSUInteger extensionArray_Count;
  537. @property(nonatomic, readwrite) BOOL nosave;
  538. @property(nonatomic, readwrite) BOOL hasNosave;
  539. @property(nonatomic, readwrite) int64_t timestamp;
  540. @property(nonatomic, readwrite) BOOL hasTimestamp;
  541. @property(nonatomic, readwrite, copy, null_resettable) NSString *persistentId;
  542. /** Test to see if @c persistentId has been set. */
  543. @property(nonatomic, readwrite) BOOL hasPersistentId;
  544. @property(nonatomic, readwrite) int32_t streamId;
  545. @property(nonatomic, readwrite) BOOL hasStreamId;
  546. @property(nonatomic, readwrite) int32_t lastStreamIdReceived;
  547. @property(nonatomic, readwrite) BOOL hasLastStreamIdReceived;
  548. @property(nonatomic, readwrite) BOOL read;
  549. @property(nonatomic, readwrite) BOOL hasRead;
  550. @property(nonatomic, readwrite) int64_t accountId;
  551. @property(nonatomic, readwrite) BOOL hasAccountId;
  552. @end
  553. #pragma mark - GtalkPresenceStanza
  554. typedef GPB_ENUM(GtalkPresenceStanza_FieldNumber) {
  555. GtalkPresenceStanza_FieldNumber_RmqId = 1,
  556. GtalkPresenceStanza_FieldNumber_Type = 2,
  557. GtalkPresenceStanza_FieldNumber_Id_p = 3,
  558. GtalkPresenceStanza_FieldNumber_From = 4,
  559. GtalkPresenceStanza_FieldNumber_To = 5,
  560. GtalkPresenceStanza_FieldNumber_Show = 6,
  561. GtalkPresenceStanza_FieldNumber_Status = 7,
  562. GtalkPresenceStanza_FieldNumber_Priority = 8,
  563. GtalkPresenceStanza_FieldNumber_Error = 9,
  564. GtalkPresenceStanza_FieldNumber_ExtensionArray = 10,
  565. GtalkPresenceStanza_FieldNumber_Client = 11,
  566. GtalkPresenceStanza_FieldNumber_AvatarHash = 12,
  567. GtalkPresenceStanza_FieldNumber_PersistentId = 13,
  568. GtalkPresenceStanza_FieldNumber_StreamId = 14,
  569. GtalkPresenceStanza_FieldNumber_LastStreamIdReceived = 15,
  570. GtalkPresenceStanza_FieldNumber_CapabilitiesFlags = 16,
  571. GtalkPresenceStanza_FieldNumber_AccountId = 17,
  572. };
  573. @interface GtalkPresenceStanza : GPBMessage
  574. @property(nonatomic, readwrite) int64_t rmqId;
  575. @property(nonatomic, readwrite) BOOL hasRmqId;
  576. @property(nonatomic, readwrite) GtalkPresenceStanza_PresenceType type;
  577. @property(nonatomic, readwrite) BOOL hasType;
  578. @property(nonatomic, readwrite, copy, null_resettable) NSString *id_p;
  579. /** Test to see if @c id_p has been set. */
  580. @property(nonatomic, readwrite) BOOL hasId_p;
  581. @property(nonatomic, readwrite, copy, null_resettable) NSString *from;
  582. /** Test to see if @c from has been set. */
  583. @property(nonatomic, readwrite) BOOL hasFrom;
  584. @property(nonatomic, readwrite, copy, null_resettable) NSString *to;
  585. /** Test to see if @c to has been set. */
  586. @property(nonatomic, readwrite) BOOL hasTo;
  587. @property(nonatomic, readwrite) GtalkPresenceStanza_ShowType show;
  588. @property(nonatomic, readwrite) BOOL hasShow;
  589. @property(nonatomic, readwrite, copy, null_resettable) NSString *status;
  590. /** Test to see if @c status has been set. */
  591. @property(nonatomic, readwrite) BOOL hasStatus;
  592. @property(nonatomic, readwrite) int32_t priority;
  593. @property(nonatomic, readwrite) BOOL hasPriority;
  594. @property(nonatomic, readwrite, strong, null_resettable) GtalkErrorInfo *error;
  595. /** Test to see if @c error has been set. */
  596. @property(nonatomic, readwrite) BOOL hasError;
  597. @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GtalkExtension*> *extensionArray;
  598. /** The number of items in @c extensionArray without causing the array to be created. */
  599. @property(nonatomic, readonly) NSUInteger extensionArray_Count;
  600. @property(nonatomic, readwrite) GtalkPresenceStanza_ClientType client;
  601. @property(nonatomic, readwrite) BOOL hasClient;
  602. @property(nonatomic, readwrite, copy, null_resettable) NSString *avatarHash;
  603. /** Test to see if @c avatarHash has been set. */
  604. @property(nonatomic, readwrite) BOOL hasAvatarHash;
  605. @property(nonatomic, readwrite, copy, null_resettable) NSString *persistentId;
  606. /** Test to see if @c persistentId has been set. */
  607. @property(nonatomic, readwrite) BOOL hasPersistentId;
  608. @property(nonatomic, readwrite) int32_t streamId;
  609. @property(nonatomic, readwrite) BOOL hasStreamId;
  610. @property(nonatomic, readwrite) int32_t lastStreamIdReceived;
  611. @property(nonatomic, readwrite) BOOL hasLastStreamIdReceived;
  612. @property(nonatomic, readwrite) int32_t capabilitiesFlags;
  613. @property(nonatomic, readwrite) BOOL hasCapabilitiesFlags;
  614. @property(nonatomic, readwrite) int64_t accountId;
  615. @property(nonatomic, readwrite) BOOL hasAccountId;
  616. @end
  617. #pragma mark - GtalkBatchPresenceStanza
  618. typedef GPB_ENUM(GtalkBatchPresenceStanza_FieldNumber) {
  619. GtalkBatchPresenceStanza_FieldNumber_Id_p = 1,
  620. GtalkBatchPresenceStanza_FieldNumber_To = 2,
  621. GtalkBatchPresenceStanza_FieldNumber_PresenceArray = 3,
  622. GtalkBatchPresenceStanza_FieldNumber_PersistentId = 4,
  623. GtalkBatchPresenceStanza_FieldNumber_StreamId = 5,
  624. GtalkBatchPresenceStanza_FieldNumber_LastStreamIdReceived = 6,
  625. GtalkBatchPresenceStanza_FieldNumber_AccountId = 7,
  626. GtalkBatchPresenceStanza_FieldNumber_Type = 8,
  627. GtalkBatchPresenceStanza_FieldNumber_Error = 9,
  628. };
  629. @interface GtalkBatchPresenceStanza : GPBMessage
  630. @property(nonatomic, readwrite, copy, null_resettable) NSString *id_p;
  631. /** Test to see if @c id_p has been set. */
  632. @property(nonatomic, readwrite) BOOL hasId_p;
  633. @property(nonatomic, readwrite, copy, null_resettable) NSString *to;
  634. /** Test to see if @c to has been set. */
  635. @property(nonatomic, readwrite) BOOL hasTo;
  636. @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GtalkPresenceStanza*> *presenceArray;
  637. /** The number of items in @c presenceArray without causing the array to be created. */
  638. @property(nonatomic, readonly) NSUInteger presenceArray_Count;
  639. @property(nonatomic, readwrite, copy, null_resettable) NSString *persistentId;
  640. /** Test to see if @c persistentId has been set. */
  641. @property(nonatomic, readwrite) BOOL hasPersistentId;
  642. @property(nonatomic, readwrite) int32_t streamId;
  643. @property(nonatomic, readwrite) BOOL hasStreamId;
  644. @property(nonatomic, readwrite) int32_t lastStreamIdReceived;
  645. @property(nonatomic, readwrite) BOOL hasLastStreamIdReceived;
  646. @property(nonatomic, readwrite) int64_t accountId;
  647. @property(nonatomic, readwrite) BOOL hasAccountId;
  648. @property(nonatomic, readwrite) GtalkBatchPresenceStanza_Type type;
  649. @property(nonatomic, readwrite) BOOL hasType;
  650. @property(nonatomic, readwrite, strong, null_resettable) GtalkErrorInfo *error;
  651. /** Test to see if @c error has been set. */
  652. @property(nonatomic, readwrite) BOOL hasError;
  653. @end
  654. #pragma mark - GtalkIqStanza
  655. typedef GPB_ENUM(GtalkIqStanza_FieldNumber) {
  656. GtalkIqStanza_FieldNumber_RmqId = 1,
  657. GtalkIqStanza_FieldNumber_Type = 2,
  658. GtalkIqStanza_FieldNumber_Id_p = 3,
  659. GtalkIqStanza_FieldNumber_From = 4,
  660. GtalkIqStanza_FieldNumber_To = 5,
  661. GtalkIqStanza_FieldNumber_Error = 6,
  662. GtalkIqStanza_FieldNumber_Extension = 7,
  663. GtalkIqStanza_FieldNumber_PersistentId = 8,
  664. GtalkIqStanza_FieldNumber_StreamId = 9,
  665. GtalkIqStanza_FieldNumber_LastStreamIdReceived = 10,
  666. GtalkIqStanza_FieldNumber_AccountId = 11,
  667. GtalkIqStanza_FieldNumber_Status = 12,
  668. };
  669. @interface GtalkIqStanza : GPBMessage
  670. @property(nonatomic, readwrite) int64_t rmqId;
  671. @property(nonatomic, readwrite) BOOL hasRmqId;
  672. @property(nonatomic, readwrite) GtalkIqStanza_IqType type;
  673. @property(nonatomic, readwrite) BOOL hasType;
  674. @property(nonatomic, readwrite, copy, null_resettable) NSString *id_p;
  675. /** Test to see if @c id_p has been set. */
  676. @property(nonatomic, readwrite) BOOL hasId_p;
  677. @property(nonatomic, readwrite, copy, null_resettable) NSString *from;
  678. /** Test to see if @c from has been set. */
  679. @property(nonatomic, readwrite) BOOL hasFrom;
  680. @property(nonatomic, readwrite, copy, null_resettable) NSString *to;
  681. /** Test to see if @c to has been set. */
  682. @property(nonatomic, readwrite) BOOL hasTo;
  683. @property(nonatomic, readwrite, strong, null_resettable) GtalkErrorInfo *error;
  684. /** Test to see if @c error has been set. */
  685. @property(nonatomic, readwrite) BOOL hasError;
  686. @property(nonatomic, readwrite, strong, null_resettable) GtalkExtension *extension;
  687. /** Test to see if @c extension has been set. */
  688. @property(nonatomic, readwrite) BOOL hasExtension;
  689. @property(nonatomic, readwrite, copy, null_resettable) NSString *persistentId;
  690. /** Test to see if @c persistentId has been set. */
  691. @property(nonatomic, readwrite) BOOL hasPersistentId;
  692. @property(nonatomic, readwrite) int32_t streamId;
  693. @property(nonatomic, readwrite) BOOL hasStreamId;
  694. @property(nonatomic, readwrite) int32_t lastStreamIdReceived;
  695. @property(nonatomic, readwrite) BOOL hasLastStreamIdReceived;
  696. @property(nonatomic, readwrite) int64_t accountId;
  697. @property(nonatomic, readwrite) BOOL hasAccountId;
  698. @property(nonatomic, readwrite) int64_t status;
  699. @property(nonatomic, readwrite) BOOL hasStatus;
  700. @end
  701. #pragma mark - GtalkAppData
  702. typedef GPB_ENUM(GtalkAppData_FieldNumber) {
  703. GtalkAppData_FieldNumber_Key = 1,
  704. GtalkAppData_FieldNumber_Value = 2,
  705. };
  706. @interface GtalkAppData : GPBMessage
  707. @property(nonatomic, readwrite, copy, null_resettable) NSString *key;
  708. /** Test to see if @c key has been set. */
  709. @property(nonatomic, readwrite) BOOL hasKey;
  710. @property(nonatomic, readwrite, copy, null_resettable) NSString *value;
  711. /** Test to see if @c value has been set. */
  712. @property(nonatomic, readwrite) BOOL hasValue;
  713. @end
  714. #pragma mark - GtalkDataMessageStanza
  715. typedef GPB_ENUM(GtalkDataMessageStanza_FieldNumber) {
  716. GtalkDataMessageStanza_FieldNumber_RmqId = 1,
  717. GtalkDataMessageStanza_FieldNumber_Id_p = 2,
  718. GtalkDataMessageStanza_FieldNumber_From = 3,
  719. GtalkDataMessageStanza_FieldNumber_To = 4,
  720. GtalkDataMessageStanza_FieldNumber_Category = 5,
  721. GtalkDataMessageStanza_FieldNumber_Token = 6,
  722. GtalkDataMessageStanza_FieldNumber_AppDataArray = 7,
  723. GtalkDataMessageStanza_FieldNumber_FromTrustedServer = 8,
  724. GtalkDataMessageStanza_FieldNumber_PersistentId = 9,
  725. GtalkDataMessageStanza_FieldNumber_StreamId = 10,
  726. GtalkDataMessageStanza_FieldNumber_LastStreamIdReceived = 11,
  727. GtalkDataMessageStanza_FieldNumber_Permission = 12,
  728. GtalkDataMessageStanza_FieldNumber_RegId = 13,
  729. GtalkDataMessageStanza_FieldNumber_PkgSignature = 14,
  730. GtalkDataMessageStanza_FieldNumber_ClientId = 15,
  731. GtalkDataMessageStanza_FieldNumber_DeviceUserId = 16,
  732. GtalkDataMessageStanza_FieldNumber_Ttl = 17,
  733. GtalkDataMessageStanza_FieldNumber_Sent = 18,
  734. GtalkDataMessageStanza_FieldNumber_Queued = 19,
  735. GtalkDataMessageStanza_FieldNumber_Status = 20,
  736. GtalkDataMessageStanza_FieldNumber_RawData = 21,
  737. GtalkDataMessageStanza_FieldNumber_MaxDelay = 22,
  738. GtalkDataMessageStanza_FieldNumber_ActualDelay = 23,
  739. GtalkDataMessageStanza_FieldNumber_ImmediateAck = 24,
  740. GtalkDataMessageStanza_FieldNumber_DeliveryReceiptRequested = 25,
  741. GtalkDataMessageStanza_FieldNumber_ExternalMessageId = 26,
  742. GtalkDataMessageStanza_FieldNumber_Flags = 27,
  743. GtalkDataMessageStanza_FieldNumber_CellTower = 28,
  744. GtalkDataMessageStanza_FieldNumber_Priority = 29,
  745. };
  746. @interface GtalkDataMessageStanza : GPBMessage
  747. @property(nonatomic, readwrite) int64_t rmqId;
  748. @property(nonatomic, readwrite) BOOL hasRmqId;
  749. @property(nonatomic, readwrite, copy, null_resettable) NSString *id_p;
  750. /** Test to see if @c id_p has been set. */
  751. @property(nonatomic, readwrite) BOOL hasId_p;
  752. @property(nonatomic, readwrite, copy, null_resettable) NSString *from;
  753. /** Test to see if @c from has been set. */
  754. @property(nonatomic, readwrite) BOOL hasFrom;
  755. @property(nonatomic, readwrite, copy, null_resettable) NSString *to;
  756. /** Test to see if @c to has been set. */
  757. @property(nonatomic, readwrite) BOOL hasTo;
  758. @property(nonatomic, readwrite, copy, null_resettable) NSString *category;
  759. /** Test to see if @c category has been set. */
  760. @property(nonatomic, readwrite) BOOL hasCategory;
  761. @property(nonatomic, readwrite, copy, null_resettable) NSString *token;
  762. /** Test to see if @c token has been set. */
  763. @property(nonatomic, readwrite) BOOL hasToken;
  764. @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GtalkAppData*> *appDataArray;
  765. /** The number of items in @c appDataArray without causing the array to be created. */
  766. @property(nonatomic, readonly) NSUInteger appDataArray_Count;
  767. @property(nonatomic, readwrite) BOOL fromTrustedServer;
  768. @property(nonatomic, readwrite) BOOL hasFromTrustedServer;
  769. @property(nonatomic, readwrite, copy, null_resettable) NSString *persistentId;
  770. /** Test to see if @c persistentId has been set. */
  771. @property(nonatomic, readwrite) BOOL hasPersistentId;
  772. @property(nonatomic, readwrite) int32_t streamId;
  773. @property(nonatomic, readwrite) BOOL hasStreamId;
  774. @property(nonatomic, readwrite) int32_t lastStreamIdReceived;
  775. @property(nonatomic, readwrite) BOOL hasLastStreamIdReceived;
  776. @property(nonatomic, readwrite, copy, null_resettable) NSString *permission;
  777. /** Test to see if @c permission has been set. */
  778. @property(nonatomic, readwrite) BOOL hasPermission;
  779. @property(nonatomic, readwrite, copy, null_resettable) NSString *regId;
  780. /** Test to see if @c regId has been set. */
  781. @property(nonatomic, readwrite) BOOL hasRegId;
  782. @property(nonatomic, readwrite, copy, null_resettable) NSString *pkgSignature;
  783. /** Test to see if @c pkgSignature has been set. */
  784. @property(nonatomic, readwrite) BOOL hasPkgSignature;
  785. @property(nonatomic, readwrite, copy, null_resettable) NSString *clientId;
  786. /** Test to see if @c clientId has been set. */
  787. @property(nonatomic, readwrite) BOOL hasClientId;
  788. @property(nonatomic, readwrite) int64_t deviceUserId;
  789. @property(nonatomic, readwrite) BOOL hasDeviceUserId;
  790. @property(nonatomic, readwrite) int32_t ttl;
  791. @property(nonatomic, readwrite) BOOL hasTtl;
  792. @property(nonatomic, readwrite) int64_t sent;
  793. @property(nonatomic, readwrite) BOOL hasSent;
  794. @property(nonatomic, readwrite) int32_t queued;
  795. @property(nonatomic, readwrite) BOOL hasQueued;
  796. @property(nonatomic, readwrite) int64_t status;
  797. @property(nonatomic, readwrite) BOOL hasStatus;
  798. @property(nonatomic, readwrite, copy, null_resettable) NSData *rawData;
  799. /** Test to see if @c rawData has been set. */
  800. @property(nonatomic, readwrite) BOOL hasRawData;
  801. @property(nonatomic, readwrite) int32_t maxDelay;
  802. @property(nonatomic, readwrite) BOOL hasMaxDelay;
  803. @property(nonatomic, readwrite) int32_t actualDelay;
  804. @property(nonatomic, readwrite) BOOL hasActualDelay;
  805. @property(nonatomic, readwrite) BOOL immediateAck;
  806. @property(nonatomic, readwrite) BOOL hasImmediateAck;
  807. @property(nonatomic, readwrite) BOOL deliveryReceiptRequested;
  808. @property(nonatomic, readwrite) BOOL hasDeliveryReceiptRequested;
  809. @property(nonatomic, readwrite, copy, null_resettable) NSString *externalMessageId;
  810. /** Test to see if @c externalMessageId has been set. */
  811. @property(nonatomic, readwrite) BOOL hasExternalMessageId;
  812. @property(nonatomic, readwrite) int64_t flags;
  813. @property(nonatomic, readwrite) BOOL hasFlags;
  814. @property(nonatomic, readwrite, strong, null_resettable) GtalkCellTower *cellTower;
  815. /** Test to see if @c cellTower has been set. */
  816. @property(nonatomic, readwrite) BOOL hasCellTower;
  817. @property(nonatomic, readwrite) int32_t priority;
  818. @property(nonatomic, readwrite) BOOL hasPriority;
  819. @end
  820. #pragma mark - GtalkTalkMetadata
  821. typedef GPB_ENUM(GtalkTalkMetadata_FieldNumber) {
  822. GtalkTalkMetadata_FieldNumber_Foreground = 1,
  823. };
  824. @interface GtalkTalkMetadata : GPBMessage
  825. @property(nonatomic, readwrite) BOOL foreground;
  826. @property(nonatomic, readwrite) BOOL hasForeground;
  827. @end
  828. #pragma mark - GtalkCellTower
  829. typedef GPB_ENUM(GtalkCellTower_FieldNumber) {
  830. GtalkCellTower_FieldNumber_Id_p = 1,
  831. GtalkCellTower_FieldNumber_KnownCongestionStatus = 2,
  832. };
  833. @interface GtalkCellTower : GPBMessage
  834. @property(nonatomic, readwrite, copy, null_resettable) NSString *id_p;
  835. /** Test to see if @c id_p has been set. */
  836. @property(nonatomic, readwrite) BOOL hasId_p;
  837. @property(nonatomic, readwrite) int32_t knownCongestionStatus;
  838. @property(nonatomic, readwrite) BOOL hasKnownCongestionStatus;
  839. @end
  840. #pragma mark - GtalkClientEvent
  841. typedef GPB_ENUM(GtalkClientEvent_FieldNumber) {
  842. GtalkClientEvent_FieldNumber_Type = 1,
  843. GtalkClientEvent_FieldNumber_NumberDiscardedEvents = 100,
  844. GtalkClientEvent_FieldNumber_NetworkType = 200,
  845. GtalkClientEvent_FieldNumber_NetworkPort = 201,
  846. GtalkClientEvent_FieldNumber_TimeConnectionStartedMs = 202,
  847. GtalkClientEvent_FieldNumber_TimeConnectionEndedMs = 203,
  848. GtalkClientEvent_FieldNumber_ErrorCode = 204,
  849. GtalkClientEvent_FieldNumber_TimeConnectionEstablishedMs = 300,
  850. };
  851. @interface GtalkClientEvent : GPBMessage
  852. @property(nonatomic, readwrite) GtalkClientEvent_Type type;
  853. @property(nonatomic, readwrite) BOOL hasType;
  854. @property(nonatomic, readwrite) uint32_t numberDiscardedEvents;
  855. @property(nonatomic, readwrite) BOOL hasNumberDiscardedEvents;
  856. @property(nonatomic, readwrite) int32_t networkType;
  857. @property(nonatomic, readwrite) BOOL hasNetworkType;
  858. @property(nonatomic, readwrite) int32_t networkPort;
  859. @property(nonatomic, readwrite) BOOL hasNetworkPort;
  860. @property(nonatomic, readwrite) uint64_t timeConnectionStartedMs;
  861. @property(nonatomic, readwrite) BOOL hasTimeConnectionStartedMs;
  862. @property(nonatomic, readwrite) uint64_t timeConnectionEndedMs;
  863. @property(nonatomic, readwrite) BOOL hasTimeConnectionEndedMs;
  864. @property(nonatomic, readwrite) int32_t errorCode;
  865. @property(nonatomic, readwrite) BOOL hasErrorCode;
  866. @property(nonatomic, readwrite) uint64_t timeConnectionEstablishedMs;
  867. @property(nonatomic, readwrite) BOOL hasTimeConnectionEstablishedMs;
  868. @end
  869. NS_ASSUME_NONNULL_END
  870. CF_EXTERN_C_END
  871. #pragma clang diagnostic pop
  872. // @@protoc_insertion_point(global_scope)