@sniipwebmaster/email-import-service-client-grpcweb 0.2.502 → 0.2.521

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1624 @@
1
+ /**
2
+ * @fileoverview
3
+ * @enhanceable
4
+ * @public
5
+ */
6
+ // GENERATED CODE -- DO NOT EDIT!
7
+
8
+ var jspb = require('google-protobuf');
9
+ var goog = jspb;
10
+ var global = Function('return this')();
11
+
12
+ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
13
+ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
14
+ goog.exportSymbol('proto.sniipemailimportapi.AuthRequest', null, global);
15
+ goog.exportSymbol('proto.sniipemailimportapi.AuthResponse', null, global);
16
+ goog.exportSymbol('proto.sniipemailimportapi.GetConnectedEmailsResponse', null, global);
17
+ goog.exportSymbol('proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage', null, global);
18
+ goog.exportSymbol('proto.sniipemailimportapi.MakeAuthRequestRequest', null, global);
19
+ goog.exportSymbol('proto.sniipemailimportapi.RemoveTokenRequest', null, global);
20
+ goog.exportSymbol('proto.sniipemailimportapi.ResponseCode', null, global);
21
+ goog.exportSymbol('proto.sniipemailimportapi.RevokeRequest', null, global);
22
+
23
+ /**
24
+ * Generated by JsPbCodeGenerator.
25
+ * @param {Array=} opt_data Optional initial data array, typically from a
26
+ * server response, or constructed directly in Javascript. The array is used
27
+ * in place and becomes part of the constructed object. It is not cloned.
28
+ * If no data is provided, the constructed object will be empty, but still
29
+ * valid.
30
+ * @extends {jspb.Message}
31
+ * @constructor
32
+ */
33
+ proto.sniipemailimportapi.AuthRequest = function(opt_data) {
34
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
35
+ };
36
+ goog.inherits(proto.sniipemailimportapi.AuthRequest, jspb.Message);
37
+ if (goog.DEBUG && !COMPILED) {
38
+ proto.sniipemailimportapi.AuthRequest.displayName = 'proto.sniipemailimportapi.AuthRequest';
39
+ }
40
+
41
+
42
+ if (jspb.Message.GENERATE_TO_OBJECT) {
43
+ /**
44
+ * Creates an object representation of this proto suitable for use in Soy templates.
45
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
46
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
47
+ * For the list of reserved names please see:
48
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
49
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
50
+ * for transitional soy proto support: http://goto/soy-param-migration
51
+ * @return {!Object}
52
+ */
53
+ proto.sniipemailimportapi.AuthRequest.prototype.toObject = function(opt_includeInstance) {
54
+ return proto.sniipemailimportapi.AuthRequest.toObject(opt_includeInstance, this);
55
+ };
56
+
57
+
58
+ /**
59
+ * Static version of the {@see toObject} method.
60
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
61
+ * instance for transitional soy proto support:
62
+ * http://goto/soy-param-migration
63
+ * @param {!proto.sniipemailimportapi.AuthRequest} msg The msg instance to transform.
64
+ * @return {!Object}
65
+ */
66
+ proto.sniipemailimportapi.AuthRequest.toObject = function(includeInstance, msg) {
67
+ var f, obj = {
68
+ provider: msg.getProvider(),
69
+ authcode: msg.getAuthcode(),
70
+ idtoken: msg.getIdtoken()
71
+ };
72
+
73
+ if (includeInstance) {
74
+ obj.$jspbMessageInstance = msg;
75
+ }
76
+ return obj;
77
+ };
78
+ }
79
+
80
+
81
+ /**
82
+ * Deserializes binary data (in protobuf wire format).
83
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
84
+ * @return {!proto.sniipemailimportapi.AuthRequest}
85
+ */
86
+ proto.sniipemailimportapi.AuthRequest.deserializeBinary = function(bytes) {
87
+ var reader = new jspb.BinaryReader(bytes);
88
+ var msg = new proto.sniipemailimportapi.AuthRequest;
89
+ return proto.sniipemailimportapi.AuthRequest.deserializeBinaryFromReader(msg, reader);
90
+ };
91
+
92
+
93
+ /**
94
+ * Deserializes binary data (in protobuf wire format) from the
95
+ * given reader into the given message object.
96
+ * @param {!proto.sniipemailimportapi.AuthRequest} msg The message object to deserialize into.
97
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
98
+ * @return {!proto.sniipemailimportapi.AuthRequest}
99
+ */
100
+ proto.sniipemailimportapi.AuthRequest.deserializeBinaryFromReader = function(msg, reader) {
101
+ while (reader.nextField()) {
102
+ if (reader.isEndGroup()) {
103
+ break;
104
+ }
105
+ var field = reader.getFieldNumber();
106
+ switch (field) {
107
+ case 1:
108
+ var value = /** @type {string} */ (reader.readString());
109
+ msg.setProvider(value);
110
+ break;
111
+ case 2:
112
+ var value = /** @type {string} */ (reader.readString());
113
+ msg.setAuthcode(value);
114
+ break;
115
+ case 3:
116
+ var value = /** @type {string} */ (reader.readString());
117
+ msg.setIdtoken(value);
118
+ break;
119
+ default:
120
+ reader.skipField();
121
+ break;
122
+ }
123
+ }
124
+ return msg;
125
+ };
126
+
127
+
128
+ /**
129
+ * Class method variant: serializes the given message to binary data
130
+ * (in protobuf wire format), writing to the given BinaryWriter.
131
+ * @param {!proto.sniipemailimportapi.AuthRequest} message
132
+ * @param {!jspb.BinaryWriter} writer
133
+ */
134
+ proto.sniipemailimportapi.AuthRequest.serializeBinaryToWriter = function(message, writer) {
135
+ message.serializeBinaryToWriter(writer);
136
+ };
137
+
138
+
139
+ /**
140
+ * Serializes the message to binary data (in protobuf wire format).
141
+ * @return {!Uint8Array}
142
+ */
143
+ proto.sniipemailimportapi.AuthRequest.prototype.serializeBinary = function() {
144
+ var writer = new jspb.BinaryWriter();
145
+ this.serializeBinaryToWriter(writer);
146
+ return writer.getResultBuffer();
147
+ };
148
+
149
+
150
+ /**
151
+ * Serializes the message to binary data (in protobuf wire format),
152
+ * writing to the given BinaryWriter.
153
+ * @param {!jspb.BinaryWriter} writer
154
+ */
155
+ proto.sniipemailimportapi.AuthRequest.prototype.serializeBinaryToWriter = function (writer) {
156
+ var f = undefined;
157
+ f = this.getProvider();
158
+ if (f.length > 0) {
159
+ writer.writeString(
160
+ 1,
161
+ f
162
+ );
163
+ }
164
+ f = this.getAuthcode();
165
+ if (f.length > 0) {
166
+ writer.writeString(
167
+ 2,
168
+ f
169
+ );
170
+ }
171
+ f = this.getIdtoken();
172
+ if (f.length > 0) {
173
+ writer.writeString(
174
+ 3,
175
+ f
176
+ );
177
+ }
178
+ };
179
+
180
+
181
+ /**
182
+ * Creates a deep clone of this proto. No data is shared with the original.
183
+ * @return {!proto.sniipemailimportapi.AuthRequest} The clone.
184
+ */
185
+ proto.sniipemailimportapi.AuthRequest.prototype.cloneMessage = function() {
186
+ return /** @type {!proto.sniipemailimportapi.AuthRequest} */ (jspb.Message.cloneMessage(this));
187
+ };
188
+
189
+
190
+ /**
191
+ * optional string provider = 1;
192
+ * @return {string}
193
+ */
194
+ proto.sniipemailimportapi.AuthRequest.prototype.getProvider = function() {
195
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
196
+ };
197
+
198
+
199
+ /** @param {string} value */
200
+ proto.sniipemailimportapi.AuthRequest.prototype.setProvider = function(value) {
201
+ jspb.Message.setField(this, 1, value);
202
+ };
203
+
204
+
205
+ /**
206
+ * optional string authCode = 2;
207
+ * @return {string}
208
+ */
209
+ proto.sniipemailimportapi.AuthRequest.prototype.getAuthcode = function() {
210
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
211
+ };
212
+
213
+
214
+ /** @param {string} value */
215
+ proto.sniipemailimportapi.AuthRequest.prototype.setAuthcode = function(value) {
216
+ jspb.Message.setField(this, 2, value);
217
+ };
218
+
219
+
220
+ /**
221
+ * optional string idToken = 3;
222
+ * @return {string}
223
+ */
224
+ proto.sniipemailimportapi.AuthRequest.prototype.getIdtoken = function() {
225
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
226
+ };
227
+
228
+
229
+ /** @param {string} value */
230
+ proto.sniipemailimportapi.AuthRequest.prototype.setIdtoken = function(value) {
231
+ jspb.Message.setField(this, 3, value);
232
+ };
233
+
234
+
235
+
236
+ /**
237
+ * Generated by JsPbCodeGenerator.
238
+ * @param {Array=} opt_data Optional initial data array, typically from a
239
+ * server response, or constructed directly in Javascript. The array is used
240
+ * in place and becomes part of the constructed object. It is not cloned.
241
+ * If no data is provided, the constructed object will be empty, but still
242
+ * valid.
243
+ * @extends {jspb.Message}
244
+ * @constructor
245
+ */
246
+ proto.sniipemailimportapi.AuthResponse = function(opt_data) {
247
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
248
+ };
249
+ goog.inherits(proto.sniipemailimportapi.AuthResponse, jspb.Message);
250
+ if (goog.DEBUG && !COMPILED) {
251
+ proto.sniipemailimportapi.AuthResponse.displayName = 'proto.sniipemailimportapi.AuthResponse';
252
+ }
253
+
254
+
255
+ if (jspb.Message.GENERATE_TO_OBJECT) {
256
+ /**
257
+ * Creates an object representation of this proto suitable for use in Soy templates.
258
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
259
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
260
+ * For the list of reserved names please see:
261
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
262
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
263
+ * for transitional soy proto support: http://goto/soy-param-migration
264
+ * @return {!Object}
265
+ */
266
+ proto.sniipemailimportapi.AuthResponse.prototype.toObject = function(opt_includeInstance) {
267
+ return proto.sniipemailimportapi.AuthResponse.toObject(opt_includeInstance, this);
268
+ };
269
+
270
+
271
+ /**
272
+ * Static version of the {@see toObject} method.
273
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
274
+ * instance for transitional soy proto support:
275
+ * http://goto/soy-param-migration
276
+ * @param {!proto.sniipemailimportapi.AuthResponse} msg The msg instance to transform.
277
+ * @return {!Object}
278
+ */
279
+ proto.sniipemailimportapi.AuthResponse.toObject = function(includeInstance, msg) {
280
+ var f, obj = {
281
+ responsecode: (f = msg.getResponsecode()) && proto.sniipemailimportapi.ResponseCode.toObject(includeInstance, f),
282
+ accesstoken: msg.getAccesstoken(),
283
+ refreshtoken: msg.getRefreshtoken()
284
+ };
285
+
286
+ if (includeInstance) {
287
+ obj.$jspbMessageInstance = msg;
288
+ }
289
+ return obj;
290
+ };
291
+ }
292
+
293
+
294
+ /**
295
+ * Deserializes binary data (in protobuf wire format).
296
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
297
+ * @return {!proto.sniipemailimportapi.AuthResponse}
298
+ */
299
+ proto.sniipemailimportapi.AuthResponse.deserializeBinary = function(bytes) {
300
+ var reader = new jspb.BinaryReader(bytes);
301
+ var msg = new proto.sniipemailimportapi.AuthResponse;
302
+ return proto.sniipemailimportapi.AuthResponse.deserializeBinaryFromReader(msg, reader);
303
+ };
304
+
305
+
306
+ /**
307
+ * Deserializes binary data (in protobuf wire format) from the
308
+ * given reader into the given message object.
309
+ * @param {!proto.sniipemailimportapi.AuthResponse} msg The message object to deserialize into.
310
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
311
+ * @return {!proto.sniipemailimportapi.AuthResponse}
312
+ */
313
+ proto.sniipemailimportapi.AuthResponse.deserializeBinaryFromReader = function(msg, reader) {
314
+ while (reader.nextField()) {
315
+ if (reader.isEndGroup()) {
316
+ break;
317
+ }
318
+ var field = reader.getFieldNumber();
319
+ switch (field) {
320
+ case 1:
321
+ var value = new proto.sniipemailimportapi.ResponseCode;
322
+ reader.readMessage(value,proto.sniipemailimportapi.ResponseCode.deserializeBinaryFromReader);
323
+ msg.setResponsecode(value);
324
+ break;
325
+ case 2:
326
+ var value = /** @type {string} */ (reader.readString());
327
+ msg.setAccesstoken(value);
328
+ break;
329
+ case 3:
330
+ var value = /** @type {string} */ (reader.readString());
331
+ msg.setRefreshtoken(value);
332
+ break;
333
+ default:
334
+ reader.skipField();
335
+ break;
336
+ }
337
+ }
338
+ return msg;
339
+ };
340
+
341
+
342
+ /**
343
+ * Class method variant: serializes the given message to binary data
344
+ * (in protobuf wire format), writing to the given BinaryWriter.
345
+ * @param {!proto.sniipemailimportapi.AuthResponse} message
346
+ * @param {!jspb.BinaryWriter} writer
347
+ */
348
+ proto.sniipemailimportapi.AuthResponse.serializeBinaryToWriter = function(message, writer) {
349
+ message.serializeBinaryToWriter(writer);
350
+ };
351
+
352
+
353
+ /**
354
+ * Serializes the message to binary data (in protobuf wire format).
355
+ * @return {!Uint8Array}
356
+ */
357
+ proto.sniipemailimportapi.AuthResponse.prototype.serializeBinary = function() {
358
+ var writer = new jspb.BinaryWriter();
359
+ this.serializeBinaryToWriter(writer);
360
+ return writer.getResultBuffer();
361
+ };
362
+
363
+
364
+ /**
365
+ * Serializes the message to binary data (in protobuf wire format),
366
+ * writing to the given BinaryWriter.
367
+ * @param {!jspb.BinaryWriter} writer
368
+ */
369
+ proto.sniipemailimportapi.AuthResponse.prototype.serializeBinaryToWriter = function (writer) {
370
+ var f = undefined;
371
+ f = this.getResponsecode();
372
+ if (f != null) {
373
+ writer.writeMessage(
374
+ 1,
375
+ f,
376
+ proto.sniipemailimportapi.ResponseCode.serializeBinaryToWriter
377
+ );
378
+ }
379
+ f = this.getAccesstoken();
380
+ if (f.length > 0) {
381
+ writer.writeString(
382
+ 2,
383
+ f
384
+ );
385
+ }
386
+ f = this.getRefreshtoken();
387
+ if (f.length > 0) {
388
+ writer.writeString(
389
+ 3,
390
+ f
391
+ );
392
+ }
393
+ };
394
+
395
+
396
+ /**
397
+ * Creates a deep clone of this proto. No data is shared with the original.
398
+ * @return {!proto.sniipemailimportapi.AuthResponse} The clone.
399
+ */
400
+ proto.sniipemailimportapi.AuthResponse.prototype.cloneMessage = function() {
401
+ return /** @type {!proto.sniipemailimportapi.AuthResponse} */ (jspb.Message.cloneMessage(this));
402
+ };
403
+
404
+
405
+ /**
406
+ * optional ResponseCode responseCode = 1;
407
+ * @return {proto.sniipemailimportapi.ResponseCode}
408
+ */
409
+ proto.sniipemailimportapi.AuthResponse.prototype.getResponsecode = function() {
410
+ return /** @type{proto.sniipemailimportapi.ResponseCode} */ (
411
+ jspb.Message.getWrapperField(this, proto.sniipemailimportapi.ResponseCode, 1));
412
+ };
413
+
414
+
415
+ /** @param {proto.sniipemailimportapi.ResponseCode|undefined} value */
416
+ proto.sniipemailimportapi.AuthResponse.prototype.setResponsecode = function(value) {
417
+ jspb.Message.setWrapperField(this, 1, value);
418
+ };
419
+
420
+
421
+ proto.sniipemailimportapi.AuthResponse.prototype.clearResponsecode = function() {
422
+ this.setResponsecode(undefined);
423
+ };
424
+
425
+
426
+ /**
427
+ * Returns whether this field is set.
428
+ * @return{!boolean}
429
+ */
430
+ proto.sniipemailimportapi.AuthResponse.prototype.hasResponsecode = function() {
431
+ return jspb.Message.getField(this, 1) != null;
432
+ };
433
+
434
+
435
+ /**
436
+ * optional string accessToken = 2;
437
+ * @return {string}
438
+ */
439
+ proto.sniipemailimportapi.AuthResponse.prototype.getAccesstoken = function() {
440
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
441
+ };
442
+
443
+
444
+ /** @param {string} value */
445
+ proto.sniipemailimportapi.AuthResponse.prototype.setAccesstoken = function(value) {
446
+ jspb.Message.setField(this, 2, value);
447
+ };
448
+
449
+
450
+ /**
451
+ * optional string refreshToken = 3;
452
+ * @return {string}
453
+ */
454
+ proto.sniipemailimportapi.AuthResponse.prototype.getRefreshtoken = function() {
455
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
456
+ };
457
+
458
+
459
+ /** @param {string} value */
460
+ proto.sniipemailimportapi.AuthResponse.prototype.setRefreshtoken = function(value) {
461
+ jspb.Message.setField(this, 3, value);
462
+ };
463
+
464
+
465
+
466
+ /**
467
+ * Generated by JsPbCodeGenerator.
468
+ * @param {Array=} opt_data Optional initial data array, typically from a
469
+ * server response, or constructed directly in Javascript. The array is used
470
+ * in place and becomes part of the constructed object. It is not cloned.
471
+ * If no data is provided, the constructed object will be empty, but still
472
+ * valid.
473
+ * @extends {jspb.Message}
474
+ * @constructor
475
+ */
476
+ proto.sniipemailimportapi.GetConnectedEmailsResponse = function(opt_data) {
477
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.sniipemailimportapi.GetConnectedEmailsResponse.repeatedFields_, null);
478
+ };
479
+ goog.inherits(proto.sniipemailimportapi.GetConnectedEmailsResponse, jspb.Message);
480
+ if (goog.DEBUG && !COMPILED) {
481
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.displayName = 'proto.sniipemailimportapi.GetConnectedEmailsResponse';
482
+ }
483
+ /**
484
+ * List of repeated fields within this message type.
485
+ * @private {!Array<number>}
486
+ * @const
487
+ */
488
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.repeatedFields_ = [2];
489
+
490
+
491
+
492
+ if (jspb.Message.GENERATE_TO_OBJECT) {
493
+ /**
494
+ * Creates an object representation of this proto suitable for use in Soy templates.
495
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
496
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
497
+ * For the list of reserved names please see:
498
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
499
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
500
+ * for transitional soy proto support: http://goto/soy-param-migration
501
+ * @return {!Object}
502
+ */
503
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.toObject = function(opt_includeInstance) {
504
+ return proto.sniipemailimportapi.GetConnectedEmailsResponse.toObject(opt_includeInstance, this);
505
+ };
506
+
507
+
508
+ /**
509
+ * Static version of the {@see toObject} method.
510
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
511
+ * instance for transitional soy proto support:
512
+ * http://goto/soy-param-migration
513
+ * @param {!proto.sniipemailimportapi.GetConnectedEmailsResponse} msg The msg instance to transform.
514
+ * @return {!Object}
515
+ */
516
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.toObject = function(includeInstance, msg) {
517
+ var f, obj = {
518
+ responsecode: (f = msg.getResponsecode()) && proto.sniipemailimportapi.ResponseCode.toObject(includeInstance, f),
519
+ emailsList: jspb.Message.toObjectList(msg.getEmailsList(),
520
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.toObject, includeInstance)
521
+ };
522
+
523
+ if (includeInstance) {
524
+ obj.$jspbMessageInstance = msg;
525
+ }
526
+ return obj;
527
+ };
528
+ }
529
+
530
+
531
+ /**
532
+ * Deserializes binary data (in protobuf wire format).
533
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
534
+ * @return {!proto.sniipemailimportapi.GetConnectedEmailsResponse}
535
+ */
536
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.deserializeBinary = function(bytes) {
537
+ var reader = new jspb.BinaryReader(bytes);
538
+ var msg = new proto.sniipemailimportapi.GetConnectedEmailsResponse;
539
+ return proto.sniipemailimportapi.GetConnectedEmailsResponse.deserializeBinaryFromReader(msg, reader);
540
+ };
541
+
542
+
543
+ /**
544
+ * Deserializes binary data (in protobuf wire format) from the
545
+ * given reader into the given message object.
546
+ * @param {!proto.sniipemailimportapi.GetConnectedEmailsResponse} msg The message object to deserialize into.
547
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
548
+ * @return {!proto.sniipemailimportapi.GetConnectedEmailsResponse}
549
+ */
550
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.deserializeBinaryFromReader = function(msg, reader) {
551
+ while (reader.nextField()) {
552
+ if (reader.isEndGroup()) {
553
+ break;
554
+ }
555
+ var field = reader.getFieldNumber();
556
+ switch (field) {
557
+ case 1:
558
+ var value = new proto.sniipemailimportapi.ResponseCode;
559
+ reader.readMessage(value,proto.sniipemailimportapi.ResponseCode.deserializeBinaryFromReader);
560
+ msg.setResponsecode(value);
561
+ break;
562
+ case 2:
563
+ var value = new proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage;
564
+ reader.readMessage(value,proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.deserializeBinaryFromReader);
565
+ msg.getEmailsList().push(value);
566
+ msg.setEmailsList(msg.getEmailsList());
567
+ break;
568
+ default:
569
+ reader.skipField();
570
+ break;
571
+ }
572
+ }
573
+ return msg;
574
+ };
575
+
576
+
577
+ /**
578
+ * Class method variant: serializes the given message to binary data
579
+ * (in protobuf wire format), writing to the given BinaryWriter.
580
+ * @param {!proto.sniipemailimportapi.GetConnectedEmailsResponse} message
581
+ * @param {!jspb.BinaryWriter} writer
582
+ */
583
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.serializeBinaryToWriter = function(message, writer) {
584
+ message.serializeBinaryToWriter(writer);
585
+ };
586
+
587
+
588
+ /**
589
+ * Serializes the message to binary data (in protobuf wire format).
590
+ * @return {!Uint8Array}
591
+ */
592
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.serializeBinary = function() {
593
+ var writer = new jspb.BinaryWriter();
594
+ this.serializeBinaryToWriter(writer);
595
+ return writer.getResultBuffer();
596
+ };
597
+
598
+
599
+ /**
600
+ * Serializes the message to binary data (in protobuf wire format),
601
+ * writing to the given BinaryWriter.
602
+ * @param {!jspb.BinaryWriter} writer
603
+ */
604
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.serializeBinaryToWriter = function (writer) {
605
+ var f = undefined;
606
+ f = this.getResponsecode();
607
+ if (f != null) {
608
+ writer.writeMessage(
609
+ 1,
610
+ f,
611
+ proto.sniipemailimportapi.ResponseCode.serializeBinaryToWriter
612
+ );
613
+ }
614
+ f = this.getEmailsList();
615
+ if (f.length > 0) {
616
+ writer.writeRepeatedMessage(
617
+ 2,
618
+ f,
619
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.serializeBinaryToWriter
620
+ );
621
+ }
622
+ };
623
+
624
+
625
+ /**
626
+ * Creates a deep clone of this proto. No data is shared with the original.
627
+ * @return {!proto.sniipemailimportapi.GetConnectedEmailsResponse} The clone.
628
+ */
629
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.cloneMessage = function() {
630
+ return /** @type {!proto.sniipemailimportapi.GetConnectedEmailsResponse} */ (jspb.Message.cloneMessage(this));
631
+ };
632
+
633
+
634
+ /**
635
+ * optional ResponseCode responseCode = 1;
636
+ * @return {proto.sniipemailimportapi.ResponseCode}
637
+ */
638
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.getResponsecode = function() {
639
+ return /** @type{proto.sniipemailimportapi.ResponseCode} */ (
640
+ jspb.Message.getWrapperField(this, proto.sniipemailimportapi.ResponseCode, 1));
641
+ };
642
+
643
+
644
+ /** @param {proto.sniipemailimportapi.ResponseCode|undefined} value */
645
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.setResponsecode = function(value) {
646
+ jspb.Message.setWrapperField(this, 1, value);
647
+ };
648
+
649
+
650
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.clearResponsecode = function() {
651
+ this.setResponsecode(undefined);
652
+ };
653
+
654
+
655
+ /**
656
+ * Returns whether this field is set.
657
+ * @return{!boolean}
658
+ */
659
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.hasResponsecode = function() {
660
+ return jspb.Message.getField(this, 1) != null;
661
+ };
662
+
663
+
664
+ /**
665
+ * repeated EmailsMessage emails = 2;
666
+ * If you change this array by adding, removing or replacing elements, or if you
667
+ * replace the array itself, then you must call the setter to update it.
668
+ * @return {!Array.<!proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage>}
669
+ */
670
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.getEmailsList = function() {
671
+ return /** @type{!Array.<!proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage>} */ (
672
+ jspb.Message.getRepeatedWrapperField(this, proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage, 2));
673
+ };
674
+
675
+
676
+ /** @param {Array.<!proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage>} value */
677
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.setEmailsList = function(value) {
678
+ jspb.Message.setRepeatedWrapperField(this, 2, value);
679
+ };
680
+
681
+
682
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.clearEmailsList = function() {
683
+ this.setEmailsList([]);
684
+ };
685
+
686
+
687
+
688
+ /**
689
+ * Generated by JsPbCodeGenerator.
690
+ * @param {Array=} opt_data Optional initial data array, typically from a
691
+ * server response, or constructed directly in Javascript. The array is used
692
+ * in place and becomes part of the constructed object. It is not cloned.
693
+ * If no data is provided, the constructed object will be empty, but still
694
+ * valid.
695
+ * @extends {jspb.Message}
696
+ * @constructor
697
+ */
698
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage = function(opt_data) {
699
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
700
+ };
701
+ goog.inherits(proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage, jspb.Message);
702
+ if (goog.DEBUG && !COMPILED) {
703
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.displayName = 'proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage';
704
+ }
705
+
706
+
707
+ if (jspb.Message.GENERATE_TO_OBJECT) {
708
+ /**
709
+ * Creates an object representation of this proto suitable for use in Soy templates.
710
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
711
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
712
+ * For the list of reserved names please see:
713
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
714
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
715
+ * for transitional soy proto support: http://goto/soy-param-migration
716
+ * @return {!Object}
717
+ */
718
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.prototype.toObject = function(opt_includeInstance) {
719
+ return proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.toObject(opt_includeInstance, this);
720
+ };
721
+
722
+
723
+ /**
724
+ * Static version of the {@see toObject} method.
725
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
726
+ * instance for transitional soy proto support:
727
+ * http://goto/soy-param-migration
728
+ * @param {!proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage} msg The msg instance to transform.
729
+ * @return {!Object}
730
+ */
731
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.toObject = function(includeInstance, msg) {
732
+ var f, obj = {
733
+ email: msg.getEmail(),
734
+ lastsyncedtime: msg.getLastsyncedtime(),
735
+ provider: msg.getProvider(),
736
+ tokenid: msg.getTokenid()
737
+ };
738
+
739
+ if (includeInstance) {
740
+ obj.$jspbMessageInstance = msg;
741
+ }
742
+ return obj;
743
+ };
744
+ }
745
+
746
+
747
+ /**
748
+ * Deserializes binary data (in protobuf wire format).
749
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
750
+ * @return {!proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage}
751
+ */
752
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.deserializeBinary = function(bytes) {
753
+ var reader = new jspb.BinaryReader(bytes);
754
+ var msg = new proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage;
755
+ return proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.deserializeBinaryFromReader(msg, reader);
756
+ };
757
+
758
+
759
+ /**
760
+ * Deserializes binary data (in protobuf wire format) from the
761
+ * given reader into the given message object.
762
+ * @param {!proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage} msg The message object to deserialize into.
763
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
764
+ * @return {!proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage}
765
+ */
766
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.deserializeBinaryFromReader = function(msg, reader) {
767
+ while (reader.nextField()) {
768
+ if (reader.isEndGroup()) {
769
+ break;
770
+ }
771
+ var field = reader.getFieldNumber();
772
+ switch (field) {
773
+ case 1:
774
+ var value = /** @type {string} */ (reader.readString());
775
+ msg.setEmail(value);
776
+ break;
777
+ case 2:
778
+ var value = /** @type {string} */ (reader.readString());
779
+ msg.setLastsyncedtime(value);
780
+ break;
781
+ case 3:
782
+ var value = /** @type {string} */ (reader.readString());
783
+ msg.setProvider(value);
784
+ break;
785
+ case 4:
786
+ var value = /** @type {number} */ (reader.readInt64());
787
+ msg.setTokenid(value);
788
+ break;
789
+ default:
790
+ reader.skipField();
791
+ break;
792
+ }
793
+ }
794
+ return msg;
795
+ };
796
+
797
+
798
+ /**
799
+ * Class method variant: serializes the given message to binary data
800
+ * (in protobuf wire format), writing to the given BinaryWriter.
801
+ * @param {!proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage} message
802
+ * @param {!jspb.BinaryWriter} writer
803
+ */
804
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.serializeBinaryToWriter = function(message, writer) {
805
+ message.serializeBinaryToWriter(writer);
806
+ };
807
+
808
+
809
+ /**
810
+ * Serializes the message to binary data (in protobuf wire format).
811
+ * @return {!Uint8Array}
812
+ */
813
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.prototype.serializeBinary = function() {
814
+ var writer = new jspb.BinaryWriter();
815
+ this.serializeBinaryToWriter(writer);
816
+ return writer.getResultBuffer();
817
+ };
818
+
819
+
820
+ /**
821
+ * Serializes the message to binary data (in protobuf wire format),
822
+ * writing to the given BinaryWriter.
823
+ * @param {!jspb.BinaryWriter} writer
824
+ */
825
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.prototype.serializeBinaryToWriter = function (writer) {
826
+ var f = undefined;
827
+ f = this.getEmail();
828
+ if (f.length > 0) {
829
+ writer.writeString(
830
+ 1,
831
+ f
832
+ );
833
+ }
834
+ f = this.getLastsyncedtime();
835
+ if (f.length > 0) {
836
+ writer.writeString(
837
+ 2,
838
+ f
839
+ );
840
+ }
841
+ f = this.getProvider();
842
+ if (f.length > 0) {
843
+ writer.writeString(
844
+ 3,
845
+ f
846
+ );
847
+ }
848
+ f = this.getTokenid();
849
+ if (f !== 0) {
850
+ writer.writeInt64(
851
+ 4,
852
+ f
853
+ );
854
+ }
855
+ };
856
+
857
+
858
+ /**
859
+ * Creates a deep clone of this proto. No data is shared with the original.
860
+ * @return {!proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage} The clone.
861
+ */
862
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.prototype.cloneMessage = function() {
863
+ return /** @type {!proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage} */ (jspb.Message.cloneMessage(this));
864
+ };
865
+
866
+
867
+ /**
868
+ * optional string email = 1;
869
+ * @return {string}
870
+ */
871
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.prototype.getEmail = function() {
872
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
873
+ };
874
+
875
+
876
+ /** @param {string} value */
877
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.prototype.setEmail = function(value) {
878
+ jspb.Message.setField(this, 1, value);
879
+ };
880
+
881
+
882
+ /**
883
+ * optional string lastSyncedTime = 2;
884
+ * @return {string}
885
+ */
886
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.prototype.getLastsyncedtime = function() {
887
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
888
+ };
889
+
890
+
891
+ /** @param {string} value */
892
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.prototype.setLastsyncedtime = function(value) {
893
+ jspb.Message.setField(this, 2, value);
894
+ };
895
+
896
+
897
+ /**
898
+ * optional string provider = 3;
899
+ * @return {string}
900
+ */
901
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.prototype.getProvider = function() {
902
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
903
+ };
904
+
905
+
906
+ /** @param {string} value */
907
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.prototype.setProvider = function(value) {
908
+ jspb.Message.setField(this, 3, value);
909
+ };
910
+
911
+
912
+ /**
913
+ * optional int64 tokenId = 4;
914
+ * @return {number}
915
+ */
916
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.prototype.getTokenid = function() {
917
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 4, 0));
918
+ };
919
+
920
+
921
+ /** @param {number} value */
922
+ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.prototype.setTokenid = function(value) {
923
+ jspb.Message.setField(this, 4, value);
924
+ };
925
+
926
+
927
+
928
+ /**
929
+ * Generated by JsPbCodeGenerator.
930
+ * @param {Array=} opt_data Optional initial data array, typically from a
931
+ * server response, or constructed directly in Javascript. The array is used
932
+ * in place and becomes part of the constructed object. It is not cloned.
933
+ * If no data is provided, the constructed object will be empty, but still
934
+ * valid.
935
+ * @extends {jspb.Message}
936
+ * @constructor
937
+ */
938
+ proto.sniipemailimportapi.MakeAuthRequestRequest = function(opt_data) {
939
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
940
+ };
941
+ goog.inherits(proto.sniipemailimportapi.MakeAuthRequestRequest, jspb.Message);
942
+ if (goog.DEBUG && !COMPILED) {
943
+ proto.sniipemailimportapi.MakeAuthRequestRequest.displayName = 'proto.sniipemailimportapi.MakeAuthRequestRequest';
944
+ }
945
+
946
+
947
+ if (jspb.Message.GENERATE_TO_OBJECT) {
948
+ /**
949
+ * Creates an object representation of this proto suitable for use in Soy templates.
950
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
951
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
952
+ * For the list of reserved names please see:
953
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
954
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
955
+ * for transitional soy proto support: http://goto/soy-param-migration
956
+ * @return {!Object}
957
+ */
958
+ proto.sniipemailimportapi.MakeAuthRequestRequest.prototype.toObject = function(opt_includeInstance) {
959
+ return proto.sniipemailimportapi.MakeAuthRequestRequest.toObject(opt_includeInstance, this);
960
+ };
961
+
962
+
963
+ /**
964
+ * Static version of the {@see toObject} method.
965
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
966
+ * instance for transitional soy proto support:
967
+ * http://goto/soy-param-migration
968
+ * @param {!proto.sniipemailimportapi.MakeAuthRequestRequest} msg The msg instance to transform.
969
+ * @return {!Object}
970
+ */
971
+ proto.sniipemailimportapi.MakeAuthRequestRequest.toObject = function(includeInstance, msg) {
972
+ var f, obj = {
973
+ data: (f = msg.getData()) && proto.sniipemailimportapi.AuthRequest.toObject(includeInstance, f)
974
+ };
975
+
976
+ if (includeInstance) {
977
+ obj.$jspbMessageInstance = msg;
978
+ }
979
+ return obj;
980
+ };
981
+ }
982
+
983
+
984
+ /**
985
+ * Deserializes binary data (in protobuf wire format).
986
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
987
+ * @return {!proto.sniipemailimportapi.MakeAuthRequestRequest}
988
+ */
989
+ proto.sniipemailimportapi.MakeAuthRequestRequest.deserializeBinary = function(bytes) {
990
+ var reader = new jspb.BinaryReader(bytes);
991
+ var msg = new proto.sniipemailimportapi.MakeAuthRequestRequest;
992
+ return proto.sniipemailimportapi.MakeAuthRequestRequest.deserializeBinaryFromReader(msg, reader);
993
+ };
994
+
995
+
996
+ /**
997
+ * Deserializes binary data (in protobuf wire format) from the
998
+ * given reader into the given message object.
999
+ * @param {!proto.sniipemailimportapi.MakeAuthRequestRequest} msg The message object to deserialize into.
1000
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1001
+ * @return {!proto.sniipemailimportapi.MakeAuthRequestRequest}
1002
+ */
1003
+ proto.sniipemailimportapi.MakeAuthRequestRequest.deserializeBinaryFromReader = function(msg, reader) {
1004
+ while (reader.nextField()) {
1005
+ if (reader.isEndGroup()) {
1006
+ break;
1007
+ }
1008
+ var field = reader.getFieldNumber();
1009
+ switch (field) {
1010
+ case 1:
1011
+ var value = new proto.sniipemailimportapi.AuthRequest;
1012
+ reader.readMessage(value,proto.sniipemailimportapi.AuthRequest.deserializeBinaryFromReader);
1013
+ msg.setData(value);
1014
+ break;
1015
+ default:
1016
+ reader.skipField();
1017
+ break;
1018
+ }
1019
+ }
1020
+ return msg;
1021
+ };
1022
+
1023
+
1024
+ /**
1025
+ * Class method variant: serializes the given message to binary data
1026
+ * (in protobuf wire format), writing to the given BinaryWriter.
1027
+ * @param {!proto.sniipemailimportapi.MakeAuthRequestRequest} message
1028
+ * @param {!jspb.BinaryWriter} writer
1029
+ */
1030
+ proto.sniipemailimportapi.MakeAuthRequestRequest.serializeBinaryToWriter = function(message, writer) {
1031
+ message.serializeBinaryToWriter(writer);
1032
+ };
1033
+
1034
+
1035
+ /**
1036
+ * Serializes the message to binary data (in protobuf wire format).
1037
+ * @return {!Uint8Array}
1038
+ */
1039
+ proto.sniipemailimportapi.MakeAuthRequestRequest.prototype.serializeBinary = function() {
1040
+ var writer = new jspb.BinaryWriter();
1041
+ this.serializeBinaryToWriter(writer);
1042
+ return writer.getResultBuffer();
1043
+ };
1044
+
1045
+
1046
+ /**
1047
+ * Serializes the message to binary data (in protobuf wire format),
1048
+ * writing to the given BinaryWriter.
1049
+ * @param {!jspb.BinaryWriter} writer
1050
+ */
1051
+ proto.sniipemailimportapi.MakeAuthRequestRequest.prototype.serializeBinaryToWriter = function (writer) {
1052
+ var f = undefined;
1053
+ f = this.getData();
1054
+ if (f != null) {
1055
+ writer.writeMessage(
1056
+ 1,
1057
+ f,
1058
+ proto.sniipemailimportapi.AuthRequest.serializeBinaryToWriter
1059
+ );
1060
+ }
1061
+ };
1062
+
1063
+
1064
+ /**
1065
+ * Creates a deep clone of this proto. No data is shared with the original.
1066
+ * @return {!proto.sniipemailimportapi.MakeAuthRequestRequest} The clone.
1067
+ */
1068
+ proto.sniipemailimportapi.MakeAuthRequestRequest.prototype.cloneMessage = function() {
1069
+ return /** @type {!proto.sniipemailimportapi.MakeAuthRequestRequest} */ (jspb.Message.cloneMessage(this));
1070
+ };
1071
+
1072
+
1073
+ /**
1074
+ * optional AuthRequest data = 1;
1075
+ * @return {proto.sniipemailimportapi.AuthRequest}
1076
+ */
1077
+ proto.sniipemailimportapi.MakeAuthRequestRequest.prototype.getData = function() {
1078
+ return /** @type{proto.sniipemailimportapi.AuthRequest} */ (
1079
+ jspb.Message.getWrapperField(this, proto.sniipemailimportapi.AuthRequest, 1));
1080
+ };
1081
+
1082
+
1083
+ /** @param {proto.sniipemailimportapi.AuthRequest|undefined} value */
1084
+ proto.sniipemailimportapi.MakeAuthRequestRequest.prototype.setData = function(value) {
1085
+ jspb.Message.setWrapperField(this, 1, value);
1086
+ };
1087
+
1088
+
1089
+ proto.sniipemailimportapi.MakeAuthRequestRequest.prototype.clearData = function() {
1090
+ this.setData(undefined);
1091
+ };
1092
+
1093
+
1094
+ /**
1095
+ * Returns whether this field is set.
1096
+ * @return{!boolean}
1097
+ */
1098
+ proto.sniipemailimportapi.MakeAuthRequestRequest.prototype.hasData = function() {
1099
+ return jspb.Message.getField(this, 1) != null;
1100
+ };
1101
+
1102
+
1103
+
1104
+ /**
1105
+ * Generated by JsPbCodeGenerator.
1106
+ * @param {Array=} opt_data Optional initial data array, typically from a
1107
+ * server response, or constructed directly in Javascript. The array is used
1108
+ * in place and becomes part of the constructed object. It is not cloned.
1109
+ * If no data is provided, the constructed object will be empty, but still
1110
+ * valid.
1111
+ * @extends {jspb.Message}
1112
+ * @constructor
1113
+ */
1114
+ proto.sniipemailimportapi.RemoveTokenRequest = function(opt_data) {
1115
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1116
+ };
1117
+ goog.inherits(proto.sniipemailimportapi.RemoveTokenRequest, jspb.Message);
1118
+ if (goog.DEBUG && !COMPILED) {
1119
+ proto.sniipemailimportapi.RemoveTokenRequest.displayName = 'proto.sniipemailimportapi.RemoveTokenRequest';
1120
+ }
1121
+
1122
+
1123
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1124
+ /**
1125
+ * Creates an object representation of this proto suitable for use in Soy templates.
1126
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1127
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1128
+ * For the list of reserved names please see:
1129
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1130
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1131
+ * for transitional soy proto support: http://goto/soy-param-migration
1132
+ * @return {!Object}
1133
+ */
1134
+ proto.sniipemailimportapi.RemoveTokenRequest.prototype.toObject = function(opt_includeInstance) {
1135
+ return proto.sniipemailimportapi.RemoveTokenRequest.toObject(opt_includeInstance, this);
1136
+ };
1137
+
1138
+
1139
+ /**
1140
+ * Static version of the {@see toObject} method.
1141
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
1142
+ * instance for transitional soy proto support:
1143
+ * http://goto/soy-param-migration
1144
+ * @param {!proto.sniipemailimportapi.RemoveTokenRequest} msg The msg instance to transform.
1145
+ * @return {!Object}
1146
+ */
1147
+ proto.sniipemailimportapi.RemoveTokenRequest.toObject = function(includeInstance, msg) {
1148
+ var f, obj = {
1149
+ data: (f = msg.getData()) && proto.sniipemailimportapi.RevokeRequest.toObject(includeInstance, f)
1150
+ };
1151
+
1152
+ if (includeInstance) {
1153
+ obj.$jspbMessageInstance = msg;
1154
+ }
1155
+ return obj;
1156
+ };
1157
+ }
1158
+
1159
+
1160
+ /**
1161
+ * Deserializes binary data (in protobuf wire format).
1162
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1163
+ * @return {!proto.sniipemailimportapi.RemoveTokenRequest}
1164
+ */
1165
+ proto.sniipemailimportapi.RemoveTokenRequest.deserializeBinary = function(bytes) {
1166
+ var reader = new jspb.BinaryReader(bytes);
1167
+ var msg = new proto.sniipemailimportapi.RemoveTokenRequest;
1168
+ return proto.sniipemailimportapi.RemoveTokenRequest.deserializeBinaryFromReader(msg, reader);
1169
+ };
1170
+
1171
+
1172
+ /**
1173
+ * Deserializes binary data (in protobuf wire format) from the
1174
+ * given reader into the given message object.
1175
+ * @param {!proto.sniipemailimportapi.RemoveTokenRequest} msg The message object to deserialize into.
1176
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1177
+ * @return {!proto.sniipemailimportapi.RemoveTokenRequest}
1178
+ */
1179
+ proto.sniipemailimportapi.RemoveTokenRequest.deserializeBinaryFromReader = function(msg, reader) {
1180
+ while (reader.nextField()) {
1181
+ if (reader.isEndGroup()) {
1182
+ break;
1183
+ }
1184
+ var field = reader.getFieldNumber();
1185
+ switch (field) {
1186
+ case 1:
1187
+ var value = new proto.sniipemailimportapi.RevokeRequest;
1188
+ reader.readMessage(value,proto.sniipemailimportapi.RevokeRequest.deserializeBinaryFromReader);
1189
+ msg.setData(value);
1190
+ break;
1191
+ default:
1192
+ reader.skipField();
1193
+ break;
1194
+ }
1195
+ }
1196
+ return msg;
1197
+ };
1198
+
1199
+
1200
+ /**
1201
+ * Class method variant: serializes the given message to binary data
1202
+ * (in protobuf wire format), writing to the given BinaryWriter.
1203
+ * @param {!proto.sniipemailimportapi.RemoveTokenRequest} message
1204
+ * @param {!jspb.BinaryWriter} writer
1205
+ */
1206
+ proto.sniipemailimportapi.RemoveTokenRequest.serializeBinaryToWriter = function(message, writer) {
1207
+ message.serializeBinaryToWriter(writer);
1208
+ };
1209
+
1210
+
1211
+ /**
1212
+ * Serializes the message to binary data (in protobuf wire format).
1213
+ * @return {!Uint8Array}
1214
+ */
1215
+ proto.sniipemailimportapi.RemoveTokenRequest.prototype.serializeBinary = function() {
1216
+ var writer = new jspb.BinaryWriter();
1217
+ this.serializeBinaryToWriter(writer);
1218
+ return writer.getResultBuffer();
1219
+ };
1220
+
1221
+
1222
+ /**
1223
+ * Serializes the message to binary data (in protobuf wire format),
1224
+ * writing to the given BinaryWriter.
1225
+ * @param {!jspb.BinaryWriter} writer
1226
+ */
1227
+ proto.sniipemailimportapi.RemoveTokenRequest.prototype.serializeBinaryToWriter = function (writer) {
1228
+ var f = undefined;
1229
+ f = this.getData();
1230
+ if (f != null) {
1231
+ writer.writeMessage(
1232
+ 1,
1233
+ f,
1234
+ proto.sniipemailimportapi.RevokeRequest.serializeBinaryToWriter
1235
+ );
1236
+ }
1237
+ };
1238
+
1239
+
1240
+ /**
1241
+ * Creates a deep clone of this proto. No data is shared with the original.
1242
+ * @return {!proto.sniipemailimportapi.RemoveTokenRequest} The clone.
1243
+ */
1244
+ proto.sniipemailimportapi.RemoveTokenRequest.prototype.cloneMessage = function() {
1245
+ return /** @type {!proto.sniipemailimportapi.RemoveTokenRequest} */ (jspb.Message.cloneMessage(this));
1246
+ };
1247
+
1248
+
1249
+ /**
1250
+ * optional RevokeRequest data = 1;
1251
+ * @return {proto.sniipemailimportapi.RevokeRequest}
1252
+ */
1253
+ proto.sniipemailimportapi.RemoveTokenRequest.prototype.getData = function() {
1254
+ return /** @type{proto.sniipemailimportapi.RevokeRequest} */ (
1255
+ jspb.Message.getWrapperField(this, proto.sniipemailimportapi.RevokeRequest, 1));
1256
+ };
1257
+
1258
+
1259
+ /** @param {proto.sniipemailimportapi.RevokeRequest|undefined} value */
1260
+ proto.sniipemailimportapi.RemoveTokenRequest.prototype.setData = function(value) {
1261
+ jspb.Message.setWrapperField(this, 1, value);
1262
+ };
1263
+
1264
+
1265
+ proto.sniipemailimportapi.RemoveTokenRequest.prototype.clearData = function() {
1266
+ this.setData(undefined);
1267
+ };
1268
+
1269
+
1270
+ /**
1271
+ * Returns whether this field is set.
1272
+ * @return{!boolean}
1273
+ */
1274
+ proto.sniipemailimportapi.RemoveTokenRequest.prototype.hasData = function() {
1275
+ return jspb.Message.getField(this, 1) != null;
1276
+ };
1277
+
1278
+
1279
+
1280
+ /**
1281
+ * Generated by JsPbCodeGenerator.
1282
+ * @param {Array=} opt_data Optional initial data array, typically from a
1283
+ * server response, or constructed directly in Javascript. The array is used
1284
+ * in place and becomes part of the constructed object. It is not cloned.
1285
+ * If no data is provided, the constructed object will be empty, but still
1286
+ * valid.
1287
+ * @extends {jspb.Message}
1288
+ * @constructor
1289
+ */
1290
+ proto.sniipemailimportapi.ResponseCode = function(opt_data) {
1291
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1292
+ };
1293
+ goog.inherits(proto.sniipemailimportapi.ResponseCode, jspb.Message);
1294
+ if (goog.DEBUG && !COMPILED) {
1295
+ proto.sniipemailimportapi.ResponseCode.displayName = 'proto.sniipemailimportapi.ResponseCode';
1296
+ }
1297
+
1298
+
1299
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1300
+ /**
1301
+ * Creates an object representation of this proto suitable for use in Soy templates.
1302
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1303
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1304
+ * For the list of reserved names please see:
1305
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1306
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1307
+ * for transitional soy proto support: http://goto/soy-param-migration
1308
+ * @return {!Object}
1309
+ */
1310
+ proto.sniipemailimportapi.ResponseCode.prototype.toObject = function(opt_includeInstance) {
1311
+ return proto.sniipemailimportapi.ResponseCode.toObject(opt_includeInstance, this);
1312
+ };
1313
+
1314
+
1315
+ /**
1316
+ * Static version of the {@see toObject} method.
1317
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
1318
+ * instance for transitional soy proto support:
1319
+ * http://goto/soy-param-migration
1320
+ * @param {!proto.sniipemailimportapi.ResponseCode} msg The msg instance to transform.
1321
+ * @return {!Object}
1322
+ */
1323
+ proto.sniipemailimportapi.ResponseCode.toObject = function(includeInstance, msg) {
1324
+ var f, obj = {
1325
+ code: msg.getCode(),
1326
+ message: msg.getMessage()
1327
+ };
1328
+
1329
+ if (includeInstance) {
1330
+ obj.$jspbMessageInstance = msg;
1331
+ }
1332
+ return obj;
1333
+ };
1334
+ }
1335
+
1336
+
1337
+ /**
1338
+ * Deserializes binary data (in protobuf wire format).
1339
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1340
+ * @return {!proto.sniipemailimportapi.ResponseCode}
1341
+ */
1342
+ proto.sniipemailimportapi.ResponseCode.deserializeBinary = function(bytes) {
1343
+ var reader = new jspb.BinaryReader(bytes);
1344
+ var msg = new proto.sniipemailimportapi.ResponseCode;
1345
+ return proto.sniipemailimportapi.ResponseCode.deserializeBinaryFromReader(msg, reader);
1346
+ };
1347
+
1348
+
1349
+ /**
1350
+ * Deserializes binary data (in protobuf wire format) from the
1351
+ * given reader into the given message object.
1352
+ * @param {!proto.sniipemailimportapi.ResponseCode} msg The message object to deserialize into.
1353
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1354
+ * @return {!proto.sniipemailimportapi.ResponseCode}
1355
+ */
1356
+ proto.sniipemailimportapi.ResponseCode.deserializeBinaryFromReader = function(msg, reader) {
1357
+ while (reader.nextField()) {
1358
+ if (reader.isEndGroup()) {
1359
+ break;
1360
+ }
1361
+ var field = reader.getFieldNumber();
1362
+ switch (field) {
1363
+ case 1:
1364
+ var value = /** @type {number} */ (reader.readInt32());
1365
+ msg.setCode(value);
1366
+ break;
1367
+ case 2:
1368
+ var value = /** @type {string} */ (reader.readString());
1369
+ msg.setMessage(value);
1370
+ break;
1371
+ default:
1372
+ reader.skipField();
1373
+ break;
1374
+ }
1375
+ }
1376
+ return msg;
1377
+ };
1378
+
1379
+
1380
+ /**
1381
+ * Class method variant: serializes the given message to binary data
1382
+ * (in protobuf wire format), writing to the given BinaryWriter.
1383
+ * @param {!proto.sniipemailimportapi.ResponseCode} message
1384
+ * @param {!jspb.BinaryWriter} writer
1385
+ */
1386
+ proto.sniipemailimportapi.ResponseCode.serializeBinaryToWriter = function(message, writer) {
1387
+ message.serializeBinaryToWriter(writer);
1388
+ };
1389
+
1390
+
1391
+ /**
1392
+ * Serializes the message to binary data (in protobuf wire format).
1393
+ * @return {!Uint8Array}
1394
+ */
1395
+ proto.sniipemailimportapi.ResponseCode.prototype.serializeBinary = function() {
1396
+ var writer = new jspb.BinaryWriter();
1397
+ this.serializeBinaryToWriter(writer);
1398
+ return writer.getResultBuffer();
1399
+ };
1400
+
1401
+
1402
+ /**
1403
+ * Serializes the message to binary data (in protobuf wire format),
1404
+ * writing to the given BinaryWriter.
1405
+ * @param {!jspb.BinaryWriter} writer
1406
+ */
1407
+ proto.sniipemailimportapi.ResponseCode.prototype.serializeBinaryToWriter = function (writer) {
1408
+ var f = undefined;
1409
+ f = this.getCode();
1410
+ if (f !== 0) {
1411
+ writer.writeInt32(
1412
+ 1,
1413
+ f
1414
+ );
1415
+ }
1416
+ f = this.getMessage();
1417
+ if (f.length > 0) {
1418
+ writer.writeString(
1419
+ 2,
1420
+ f
1421
+ );
1422
+ }
1423
+ };
1424
+
1425
+
1426
+ /**
1427
+ * Creates a deep clone of this proto. No data is shared with the original.
1428
+ * @return {!proto.sniipemailimportapi.ResponseCode} The clone.
1429
+ */
1430
+ proto.sniipemailimportapi.ResponseCode.prototype.cloneMessage = function() {
1431
+ return /** @type {!proto.sniipemailimportapi.ResponseCode} */ (jspb.Message.cloneMessage(this));
1432
+ };
1433
+
1434
+
1435
+ /**
1436
+ * optional int32 code = 1;
1437
+ * @return {number}
1438
+ */
1439
+ proto.sniipemailimportapi.ResponseCode.prototype.getCode = function() {
1440
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
1441
+ };
1442
+
1443
+
1444
+ /** @param {number} value */
1445
+ proto.sniipemailimportapi.ResponseCode.prototype.setCode = function(value) {
1446
+ jspb.Message.setField(this, 1, value);
1447
+ };
1448
+
1449
+
1450
+ /**
1451
+ * optional string message = 2;
1452
+ * @return {string}
1453
+ */
1454
+ proto.sniipemailimportapi.ResponseCode.prototype.getMessage = function() {
1455
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
1456
+ };
1457
+
1458
+
1459
+ /** @param {string} value */
1460
+ proto.sniipemailimportapi.ResponseCode.prototype.setMessage = function(value) {
1461
+ jspb.Message.setField(this, 2, value);
1462
+ };
1463
+
1464
+
1465
+
1466
+ /**
1467
+ * Generated by JsPbCodeGenerator.
1468
+ * @param {Array=} opt_data Optional initial data array, typically from a
1469
+ * server response, or constructed directly in Javascript. The array is used
1470
+ * in place and becomes part of the constructed object. It is not cloned.
1471
+ * If no data is provided, the constructed object will be empty, but still
1472
+ * valid.
1473
+ * @extends {jspb.Message}
1474
+ * @constructor
1475
+ */
1476
+ proto.sniipemailimportapi.RevokeRequest = function(opt_data) {
1477
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1478
+ };
1479
+ goog.inherits(proto.sniipemailimportapi.RevokeRequest, jspb.Message);
1480
+ if (goog.DEBUG && !COMPILED) {
1481
+ proto.sniipemailimportapi.RevokeRequest.displayName = 'proto.sniipemailimportapi.RevokeRequest';
1482
+ }
1483
+
1484
+
1485
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1486
+ /**
1487
+ * Creates an object representation of this proto suitable for use in Soy templates.
1488
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1489
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1490
+ * For the list of reserved names please see:
1491
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1492
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1493
+ * for transitional soy proto support: http://goto/soy-param-migration
1494
+ * @return {!Object}
1495
+ */
1496
+ proto.sniipemailimportapi.RevokeRequest.prototype.toObject = function(opt_includeInstance) {
1497
+ return proto.sniipemailimportapi.RevokeRequest.toObject(opt_includeInstance, this);
1498
+ };
1499
+
1500
+
1501
+ /**
1502
+ * Static version of the {@see toObject} method.
1503
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
1504
+ * instance for transitional soy proto support:
1505
+ * http://goto/soy-param-migration
1506
+ * @param {!proto.sniipemailimportapi.RevokeRequest} msg The msg instance to transform.
1507
+ * @return {!Object}
1508
+ */
1509
+ proto.sniipemailimportapi.RevokeRequest.toObject = function(includeInstance, msg) {
1510
+ var f, obj = {
1511
+ tokenid: msg.getTokenid()
1512
+ };
1513
+
1514
+ if (includeInstance) {
1515
+ obj.$jspbMessageInstance = msg;
1516
+ }
1517
+ return obj;
1518
+ };
1519
+ }
1520
+
1521
+
1522
+ /**
1523
+ * Deserializes binary data (in protobuf wire format).
1524
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1525
+ * @return {!proto.sniipemailimportapi.RevokeRequest}
1526
+ */
1527
+ proto.sniipemailimportapi.RevokeRequest.deserializeBinary = function(bytes) {
1528
+ var reader = new jspb.BinaryReader(bytes);
1529
+ var msg = new proto.sniipemailimportapi.RevokeRequest;
1530
+ return proto.sniipemailimportapi.RevokeRequest.deserializeBinaryFromReader(msg, reader);
1531
+ };
1532
+
1533
+
1534
+ /**
1535
+ * Deserializes binary data (in protobuf wire format) from the
1536
+ * given reader into the given message object.
1537
+ * @param {!proto.sniipemailimportapi.RevokeRequest} msg The message object to deserialize into.
1538
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1539
+ * @return {!proto.sniipemailimportapi.RevokeRequest}
1540
+ */
1541
+ proto.sniipemailimportapi.RevokeRequest.deserializeBinaryFromReader = function(msg, reader) {
1542
+ while (reader.nextField()) {
1543
+ if (reader.isEndGroup()) {
1544
+ break;
1545
+ }
1546
+ var field = reader.getFieldNumber();
1547
+ switch (field) {
1548
+ case 1:
1549
+ var value = /** @type {number} */ (reader.readInt64());
1550
+ msg.setTokenid(value);
1551
+ break;
1552
+ default:
1553
+ reader.skipField();
1554
+ break;
1555
+ }
1556
+ }
1557
+ return msg;
1558
+ };
1559
+
1560
+
1561
+ /**
1562
+ * Class method variant: serializes the given message to binary data
1563
+ * (in protobuf wire format), writing to the given BinaryWriter.
1564
+ * @param {!proto.sniipemailimportapi.RevokeRequest} message
1565
+ * @param {!jspb.BinaryWriter} writer
1566
+ */
1567
+ proto.sniipemailimportapi.RevokeRequest.serializeBinaryToWriter = function(message, writer) {
1568
+ message.serializeBinaryToWriter(writer);
1569
+ };
1570
+
1571
+
1572
+ /**
1573
+ * Serializes the message to binary data (in protobuf wire format).
1574
+ * @return {!Uint8Array}
1575
+ */
1576
+ proto.sniipemailimportapi.RevokeRequest.prototype.serializeBinary = function() {
1577
+ var writer = new jspb.BinaryWriter();
1578
+ this.serializeBinaryToWriter(writer);
1579
+ return writer.getResultBuffer();
1580
+ };
1581
+
1582
+
1583
+ /**
1584
+ * Serializes the message to binary data (in protobuf wire format),
1585
+ * writing to the given BinaryWriter.
1586
+ * @param {!jspb.BinaryWriter} writer
1587
+ */
1588
+ proto.sniipemailimportapi.RevokeRequest.prototype.serializeBinaryToWriter = function (writer) {
1589
+ var f = undefined;
1590
+ f = this.getTokenid();
1591
+ if (f !== 0) {
1592
+ writer.writeInt64(
1593
+ 1,
1594
+ f
1595
+ );
1596
+ }
1597
+ };
1598
+
1599
+
1600
+ /**
1601
+ * Creates a deep clone of this proto. No data is shared with the original.
1602
+ * @return {!proto.sniipemailimportapi.RevokeRequest} The clone.
1603
+ */
1604
+ proto.sniipemailimportapi.RevokeRequest.prototype.cloneMessage = function() {
1605
+ return /** @type {!proto.sniipemailimportapi.RevokeRequest} */ (jspb.Message.cloneMessage(this));
1606
+ };
1607
+
1608
+
1609
+ /**
1610
+ * optional int64 tokenId = 1;
1611
+ * @return {number}
1612
+ */
1613
+ proto.sniipemailimportapi.RevokeRequest.prototype.getTokenid = function() {
1614
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
1615
+ };
1616
+
1617
+
1618
+ /** @param {number} value */
1619
+ proto.sniipemailimportapi.RevokeRequest.prototype.setTokenid = function(value) {
1620
+ jspb.Message.setField(this, 1, value);
1621
+ };
1622
+
1623
+
1624
+ goog.object.extend(exports, proto.sniipemailimportapi);