2 * Copyright 2017 Google
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 // Generated by the protocol buffer compiler. DO NOT EDIT!
18 // source: buzz/mobile/proto/gtalk_extensions.proto
20 // This CPP symbol can be defined to use imports that match up to the framework
21 // imports needed when using CocoaPods.
22 #if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS)
23 #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0
26 #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
27 #import <Protobuf/GPBProtocolBuffers.h>
29 #import "GPBProtocolBuffers.h"
32 #if GOOGLE_PROTOBUF_OBJC_VERSION < 30002
33 #error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
35 #if 30002 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION
36 #error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
39 // @@protoc_insertion_point(imports)
41 #pragma clang diagnostic push
42 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
48 @class GtalkRosterItem;
49 @class GtalkSharedStatus_StatusList;
51 NS_ASSUME_NONNULL_BEGIN
53 #pragma mark - Enum GtalkRosterItem_SubscriptionType
55 typedef GPB_ENUM(GtalkRosterItem_SubscriptionType) {
56 GtalkRosterItem_SubscriptionType_None = 0,
57 GtalkRosterItem_SubscriptionType_To = 1,
58 GtalkRosterItem_SubscriptionType_From = 2,
59 GtalkRosterItem_SubscriptionType_Both = 3,
60 GtalkRosterItem_SubscriptionType_Remove = 4,
63 GPBEnumDescriptor *GtalkRosterItem_SubscriptionType_EnumDescriptor(void);
66 * Checks to see if the given value is defined by the enum or was not known at
67 * the time this source was generated.
69 BOOL GtalkRosterItem_SubscriptionType_IsValidValue(int32_t value);
71 #pragma mark - Enum GtalkRosterItem_AskType
73 typedef GPB_ENUM(GtalkRosterItem_AskType) {
74 GtalkRosterItem_AskType_Subscribe = 0,
77 GPBEnumDescriptor *GtalkRosterItem_AskType_EnumDescriptor(void);
80 * Checks to see if the given value is defined by the enum or was not known at
81 * the time this source was generated.
83 BOOL GtalkRosterItem_AskType_IsValidValue(int32_t value);
85 #pragma mark - Enum GtalkRosterItem_DisplayType
87 typedef GPB_ENUM(GtalkRosterItem_DisplayType) {
88 GtalkRosterItem_DisplayType_Blocked = 0,
89 GtalkRosterItem_DisplayType_Hidden = 1,
90 GtalkRosterItem_DisplayType_Pinned = 2,
93 GPBEnumDescriptor *GtalkRosterItem_DisplayType_EnumDescriptor(void);
96 * Checks to see if the given value is defined by the enum or was not known at
97 * the time this source was generated.
99 BOOL GtalkRosterItem_DisplayType_IsValidValue(int32_t value);
101 #pragma mark - Enum GtalkSharedStatus_ShowType
103 typedef GPB_ENUM(GtalkSharedStatus_ShowType) {
104 GtalkSharedStatus_ShowType_Default = 0,
105 GtalkSharedStatus_ShowType_Dnd = 1,
108 GPBEnumDescriptor *GtalkSharedStatus_ShowType_EnumDescriptor(void);
111 * Checks to see if the given value is defined by the enum or was not known at
112 * the time this source was generated.
114 BOOL GtalkSharedStatus_ShowType_IsValidValue(int32_t value);
116 #pragma mark - Enum GtalkPostAuthBatchQuery_CapabilitiesExtFlags
118 typedef GPB_ENUM(GtalkPostAuthBatchQuery_CapabilitiesExtFlags) {
119 GtalkPostAuthBatchQuery_CapabilitiesExtFlags_HasVoiceV1 = 1,
120 GtalkPostAuthBatchQuery_CapabilitiesExtFlags_HasVideoV1 = 2,
121 GtalkPostAuthBatchQuery_CapabilitiesExtFlags_HasCameraV1 = 4,
122 GtalkPostAuthBatchQuery_CapabilitiesExtFlags_HasPmucV1 = 8,
125 GPBEnumDescriptor *GtalkPostAuthBatchQuery_CapabilitiesExtFlags_EnumDescriptor(void);
128 * Checks to see if the given value is defined by the enum or was not known at
129 * the time this source was generated.
131 BOOL GtalkPostAuthBatchQuery_CapabilitiesExtFlags_IsValidValue(int32_t value);
133 #pragma mark - GtalkGtalkExtensionsRoot
136 * Exposes the extension registry for this file.
138 * The base class provides:
140 * + (GPBExtensionRegistry *)extensionRegistry;
142 * which is a @c GPBExtensionRegistry that includes all the extensions defined by
143 * this file and all files that it depends on.
145 @interface GtalkGtalkExtensionsRoot : GPBRootObject
148 #pragma mark - GtalkRosterQuery
150 typedef GPB_ENUM(GtalkRosterQuery_FieldNumber) {
151 GtalkRosterQuery_FieldNumber_Etag = 1,
152 GtalkRosterQuery_FieldNumber_NotModified = 2,
153 GtalkRosterQuery_FieldNumber_ItemArray = 3,
154 GtalkRosterQuery_FieldNumber_AvatarWidth = 4,
155 GtalkRosterQuery_FieldNumber_AvatarHeight = 5,
158 @interface GtalkRosterQuery : GPBMessage
161 @property(nonatomic, readwrite, copy, null_resettable) NSString *etag;
162 /** Test to see if @c etag has been set. */
163 @property(nonatomic, readwrite) BOOL hasEtag;
166 @property(nonatomic, readwrite) BOOL notModified;
168 @property(nonatomic, readwrite) BOOL hasNotModified;
170 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GtalkRosterItem*> *itemArray;
171 /** The number of items in @c itemArray without causing the array to be created. */
172 @property(nonatomic, readonly) NSUInteger itemArray_Count;
175 @property(nonatomic, readwrite) int32_t avatarWidth;
177 @property(nonatomic, readwrite) BOOL hasAvatarWidth;
179 @property(nonatomic, readwrite) int32_t avatarHeight;
181 @property(nonatomic, readwrite) BOOL hasAvatarHeight;
184 #pragma mark - GtalkRosterItem
186 typedef GPB_ENUM(GtalkRosterItem_FieldNumber) {
187 GtalkRosterItem_FieldNumber_Jid = 1,
188 GtalkRosterItem_FieldNumber_Name = 2,
189 GtalkRosterItem_FieldNumber_Subscription = 3,
190 GtalkRosterItem_FieldNumber_Ask = 4,
191 GtalkRosterItem_FieldNumber_GroupArray = 5,
192 GtalkRosterItem_FieldNumber_QuickContact = 6,
193 GtalkRosterItem_FieldNumber_Display = 7,
194 GtalkRosterItem_FieldNumber_Rejected = 8,
197 @interface GtalkRosterItem : GPBMessage
200 @property(nonatomic, readwrite, copy, null_resettable) NSString *jid;
201 /** Test to see if @c jid has been set. */
202 @property(nonatomic, readwrite) BOOL hasJid;
205 @property(nonatomic, readwrite, copy, null_resettable) NSString *name;
206 /** Test to see if @c name has been set. */
207 @property(nonatomic, readwrite) BOOL hasName;
210 @property(nonatomic, readwrite) GtalkRosterItem_SubscriptionType subscription;
212 @property(nonatomic, readwrite) BOOL hasSubscription;
214 @property(nonatomic, readwrite) GtalkRosterItem_AskType ask;
216 @property(nonatomic, readwrite) BOOL hasAsk;
218 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<NSString*> *groupArray;
219 /** The number of items in @c groupArray without causing the array to be created. */
220 @property(nonatomic, readonly) NSUInteger groupArray_Count;
223 @property(nonatomic, readwrite) BOOL quickContact;
225 @property(nonatomic, readwrite) BOOL hasQuickContact;
227 @property(nonatomic, readwrite) GtalkRosterItem_DisplayType display;
229 @property(nonatomic, readwrite) BOOL hasDisplay;
231 @property(nonatomic, readwrite) BOOL rejected;
233 @property(nonatomic, readwrite) BOOL hasRejected;
236 #pragma mark - GtalkRmqLastId
238 typedef GPB_ENUM(GtalkRmqLastId_FieldNumber) {
239 GtalkRmqLastId_FieldNumber_Id_p = 1,
242 @interface GtalkRmqLastId : GPBMessage
245 @property(nonatomic, readwrite) int64_t id_p;
247 @property(nonatomic, readwrite) BOOL hasId_p;
250 #pragma mark - GtalkRmqAck
252 typedef GPB_ENUM(GtalkRmqAck_FieldNumber) {
253 GtalkRmqAck_FieldNumber_Id_p = 1,
256 @interface GtalkRmqAck : GPBMessage
259 @property(nonatomic, readwrite) int64_t id_p;
261 @property(nonatomic, readwrite) BOOL hasId_p;
264 #pragma mark - GtalkVCard
266 typedef GPB_ENUM(GtalkVCard_FieldNumber) {
267 GtalkVCard_FieldNumber_Version = 1,
268 GtalkVCard_FieldNumber_FullName = 2,
269 GtalkVCard_FieldNumber_Photo = 3,
270 GtalkVCard_FieldNumber_AvatarHash = 4,
271 GtalkVCard_FieldNumber_Modified = 5,
274 @interface GtalkVCard : GPBMessage
277 @property(nonatomic, readwrite, copy, null_resettable) NSString *version;
278 /** Test to see if @c version has been set. */
279 @property(nonatomic, readwrite) BOOL hasVersion;
282 @property(nonatomic, readwrite, copy, null_resettable) NSString *fullName;
283 /** Test to see if @c fullName has been set. */
284 @property(nonatomic, readwrite) BOOL hasFullName;
287 @property(nonatomic, readwrite, strong, null_resettable) GtalkPhoto *photo;
288 /** Test to see if @c photo has been set. */
289 @property(nonatomic, readwrite) BOOL hasPhoto;
292 @property(nonatomic, readwrite, copy, null_resettable) NSString *avatarHash;
293 /** Test to see if @c avatarHash has been set. */
294 @property(nonatomic, readwrite) BOOL hasAvatarHash;
297 @property(nonatomic, readwrite) BOOL modified;
299 @property(nonatomic, readwrite) BOOL hasModified;
302 #pragma mark - GtalkPhoto
304 typedef GPB_ENUM(GtalkPhoto_FieldNumber) {
305 GtalkPhoto_FieldNumber_Type = 1,
306 GtalkPhoto_FieldNumber_Data_p = 2,
309 @interface GtalkPhoto : GPBMessage
312 @property(nonatomic, readwrite, copy, null_resettable) NSString *type;
313 /** Test to see if @c type has been set. */
314 @property(nonatomic, readwrite) BOOL hasType;
317 @property(nonatomic, readwrite, copy, null_resettable) NSString *data_p;
318 /** Test to see if @c data_p has been set. */
319 @property(nonatomic, readwrite) BOOL hasData_p;
323 #pragma mark - GtalkChatRead
325 typedef GPB_ENUM(GtalkChatRead_FieldNumber) {
326 GtalkChatRead_FieldNumber_User = 1,
329 @interface GtalkChatRead : GPBMessage
332 @property(nonatomic, readwrite, copy, null_resettable) NSString *user;
333 /** Test to see if @c user has been set. */
334 @property(nonatomic, readwrite) BOOL hasUser;
338 #pragma mark - GtalkChatClosed
340 typedef GPB_ENUM(GtalkChatClosed_FieldNumber) {
341 GtalkChatClosed_FieldNumber_User = 1,
344 @interface GtalkChatClosed : GPBMessage
347 @property(nonatomic, readwrite, copy, null_resettable) NSString *user;
348 /** Test to see if @c user has been set. */
349 @property(nonatomic, readwrite) BOOL hasUser;
353 #pragma mark - GtalkCapabilities
355 typedef GPB_ENUM(GtalkCapabilities_FieldNumber) {
356 GtalkCapabilities_FieldNumber_Node = 1,
357 GtalkCapabilities_FieldNumber_Ver = 2,
358 GtalkCapabilities_FieldNumber_Ext = 3,
359 GtalkCapabilities_FieldNumber_Hash_p = 4,
362 @interface GtalkCapabilities : GPBMessage
365 @property(nonatomic, readwrite, copy, null_resettable) NSString *node;
366 /** Test to see if @c node has been set. */
367 @property(nonatomic, readwrite) BOOL hasNode;
370 @property(nonatomic, readwrite, copy, null_resettable) NSString *ver;
371 /** Test to see if @c ver has been set. */
372 @property(nonatomic, readwrite) BOOL hasVer;
375 @property(nonatomic, readwrite, copy, null_resettable) NSString *ext;
376 /** Test to see if @c ext has been set. */
377 @property(nonatomic, readwrite) BOOL hasExt;
380 @property(nonatomic, readwrite, copy, null_resettable) NSString *hash_p;
381 /** Test to see if @c hash_p has been set. */
382 @property(nonatomic, readwrite) BOOL hasHash_p;
386 #pragma mark - GtalkSharedStatus
388 typedef GPB_ENUM(GtalkSharedStatus_FieldNumber) {
389 GtalkSharedStatus_FieldNumber_StatusMax = 1,
390 GtalkSharedStatus_FieldNumber_StatusListMax = 2,
391 GtalkSharedStatus_FieldNumber_StatusListContentsMax = 3,
392 GtalkSharedStatus_FieldNumber_Status = 4,
393 GtalkSharedStatus_FieldNumber_Show = 5,
394 GtalkSharedStatus_FieldNumber_StatusListArray = 6,
395 GtalkSharedStatus_FieldNumber_Invisible = 9,
396 GtalkSharedStatus_FieldNumber_StatusMinVersion = 10,
399 @interface GtalkSharedStatus : GPBMessage
402 @property(nonatomic, readwrite) int32_t statusMax;
404 @property(nonatomic, readwrite) BOOL hasStatusMax;
406 @property(nonatomic, readwrite) int32_t statusListMax;
408 @property(nonatomic, readwrite) BOOL hasStatusListMax;
410 @property(nonatomic, readwrite) int32_t statusListContentsMax;
412 @property(nonatomic, readwrite) BOOL hasStatusListContentsMax;
414 @property(nonatomic, readwrite, copy, null_resettable) NSString *status;
415 /** Test to see if @c status has been set. */
416 @property(nonatomic, readwrite) BOOL hasStatus;
419 @property(nonatomic, readwrite) GtalkSharedStatus_ShowType show;
421 @property(nonatomic, readwrite) BOOL hasShow;
423 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GtalkSharedStatus_StatusList*> *statusListArray;
424 /** The number of items in @c statusListArray without causing the array to be created. */
425 @property(nonatomic, readonly) NSUInteger statusListArray_Count;
428 @property(nonatomic, readwrite) BOOL invisible;
430 @property(nonatomic, readwrite) BOOL hasInvisible;
432 @property(nonatomic, readwrite) int32_t statusMinVersion;
434 @property(nonatomic, readwrite) BOOL hasStatusMinVersion;
437 #pragma mark - GtalkSharedStatus_StatusList
439 typedef GPB_ENUM(GtalkSharedStatus_StatusList_FieldNumber) {
440 GtalkSharedStatus_StatusList_FieldNumber_Show = 7,
441 GtalkSharedStatus_StatusList_FieldNumber_StatusArray = 8,
444 @interface GtalkSharedStatus_StatusList : GPBMessage
447 @property(nonatomic, readwrite) GtalkSharedStatus_ShowType show;
449 @property(nonatomic, readwrite) BOOL hasShow;
451 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<NSString*> *statusArray;
452 /** The number of items in @c statusArray without causing the array to be created. */
453 @property(nonatomic, readonly) NSUInteger statusArray_Count;
457 #pragma mark - GtalkOtrQuery
459 typedef GPB_ENUM(GtalkOtrQuery_FieldNumber) {
460 GtalkOtrQuery_FieldNumber_NosaveDefault = 1,
461 GtalkOtrQuery_FieldNumber_ItemArray = 2,
462 GtalkOtrQuery_FieldNumber_Etag = 3,
463 GtalkOtrQuery_FieldNumber_NotModified = 4,
466 @interface GtalkOtrQuery : GPBMessage
469 @property(nonatomic, readwrite) BOOL nosaveDefault;
471 @property(nonatomic, readwrite) BOOL hasNosaveDefault;
473 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GtalkOtrItem*> *itemArray;
474 /** The number of items in @c itemArray without causing the array to be created. */
475 @property(nonatomic, readonly) NSUInteger itemArray_Count;
478 @property(nonatomic, readwrite, copy, null_resettable) NSString *etag;
479 /** Test to see if @c etag has been set. */
480 @property(nonatomic, readwrite) BOOL hasEtag;
483 @property(nonatomic, readwrite) BOOL notModified;
485 @property(nonatomic, readwrite) BOOL hasNotModified;
488 #pragma mark - GtalkOtrItem
490 typedef GPB_ENUM(GtalkOtrItem_FieldNumber) {
491 GtalkOtrItem_FieldNumber_Jid = 1,
492 GtalkOtrItem_FieldNumber_Nosave = 2,
493 GtalkOtrItem_FieldNumber_ChangedByBuddy = 3,
496 @interface GtalkOtrItem : GPBMessage
499 @property(nonatomic, readwrite, copy, null_resettable) NSString *jid;
500 /** Test to see if @c jid has been set. */
501 @property(nonatomic, readwrite) BOOL hasJid;
504 @property(nonatomic, readwrite) BOOL nosave;
506 @property(nonatomic, readwrite) BOOL hasNosave;
508 @property(nonatomic, readwrite) BOOL changedByBuddy;
510 @property(nonatomic, readwrite) BOOL hasChangedByBuddy;
513 #pragma mark - GtalkIdle
515 typedef GPB_ENUM(GtalkIdle_FieldNumber) {
516 GtalkIdle_FieldNumber_Idle = 1,
517 GtalkIdle_FieldNumber_Away = 2,
520 @interface GtalkIdle : GPBMessage
523 @property(nonatomic, readwrite) BOOL idle;
525 @property(nonatomic, readwrite) BOOL hasIdle;
527 @property(nonatomic, readwrite) BOOL away;
529 @property(nonatomic, readwrite) BOOL hasAway;
532 #pragma mark - GtalkPostAuthBatchQuery
534 typedef GPB_ENUM(GtalkPostAuthBatchQuery_FieldNumber) {
535 GtalkPostAuthBatchQuery_FieldNumber_Available = 1,
536 GtalkPostAuthBatchQuery_FieldNumber_DeviceIdle = 2,
537 GtalkPostAuthBatchQuery_FieldNumber_MobileIndicator = 3,
538 GtalkPostAuthBatchQuery_FieldNumber_SharedStatusVersion = 4,
539 GtalkPostAuthBatchQuery_FieldNumber_RosterEtag = 5,
540 GtalkPostAuthBatchQuery_FieldNumber_OtrEtag = 6,
541 GtalkPostAuthBatchQuery_FieldNumber_AvatarHash = 7,
542 GtalkPostAuthBatchQuery_FieldNumber_VcardQueryStanzaId = 8,
543 GtalkPostAuthBatchQuery_FieldNumber_CapabilitiesExtFlags = 9,
546 @interface GtalkPostAuthBatchQuery : GPBMessage
549 @property(nonatomic, readwrite) BOOL available;
551 @property(nonatomic, readwrite) BOOL hasAvailable;
553 @property(nonatomic, readwrite) BOOL deviceIdle;
555 @property(nonatomic, readwrite) BOOL hasDeviceIdle;
557 @property(nonatomic, readwrite) BOOL mobileIndicator;
559 @property(nonatomic, readwrite) BOOL hasMobileIndicator;
561 @property(nonatomic, readwrite) int32_t sharedStatusVersion;
563 @property(nonatomic, readwrite) BOOL hasSharedStatusVersion;
565 @property(nonatomic, readwrite, copy, null_resettable) NSString *rosterEtag;
566 /** Test to see if @c rosterEtag has been set. */
567 @property(nonatomic, readwrite) BOOL hasRosterEtag;
570 @property(nonatomic, readwrite, copy, null_resettable) NSString *otrEtag;
571 /** Test to see if @c otrEtag has been set. */
572 @property(nonatomic, readwrite) BOOL hasOtrEtag;
575 @property(nonatomic, readwrite, copy, null_resettable) NSString *avatarHash;
576 /** Test to see if @c avatarHash has been set. */
577 @property(nonatomic, readwrite) BOOL hasAvatarHash;
580 @property(nonatomic, readwrite, copy, null_resettable) NSString *vcardQueryStanzaId;
581 /** Test to see if @c vcardQueryStanzaId has been set. */
582 @property(nonatomic, readwrite) BOOL hasVcardQueryStanzaId;
585 @property(nonatomic, readwrite) int32_t capabilitiesExtFlags;
587 @property(nonatomic, readwrite) BOOL hasCapabilitiesExtFlags;
590 #pragma mark - GtalkStreamAck
592 @interface GtalkStreamAck : GPBMessage
596 #pragma mark - GtalkSelectiveAck
598 typedef GPB_ENUM(GtalkSelectiveAck_FieldNumber) {
599 GtalkSelectiveAck_FieldNumber_IdArray = 1,
602 @interface GtalkSelectiveAck : GPBMessage
605 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<NSString*> *idArray;
606 /** The number of items in @c idArray without causing the array to be created. */
607 @property(nonatomic, readonly) NSUInteger idArray_Count;
611 NS_ASSUME_NONNULL_END
615 #pragma clang diagnostic pop
617 // @@protoc_insertion_point(global_scope)