@miradorlabs/web-grpc 4.20.0 → 4.22.0

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,1341 @@
1
+ // source: proto/gateway/web/v1/desktop_auth_gateway.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = globalThis;
17
+
18
+ var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
19
+ goog.object.extend(proto, google_api_field_behavior_pb);
20
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
21
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
22
+ var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
23
+ goog.object.extend(proto, proto_gateway_common_v1_status_pb);
24
+ goog.exportSymbol('proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest', null, global);
25
+ goog.exportSymbol('proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse', null, global);
26
+ goog.exportSymbol('proto.gateway.web.v1.AuthorizeDesktopLoginRequest', null, global);
27
+ goog.exportSymbol('proto.gateway.web.v1.AuthorizeDesktopLoginResponse', null, global);
28
+ goog.exportSymbol('proto.gateway.web.v1.RevokeCliSessionFamilyRequest', null, global);
29
+ goog.exportSymbol('proto.gateway.web.v1.RevokeCliSessionFamilyResponse', null, global);
30
+ /**
31
+ * Generated by JsPbCodeGenerator.
32
+ * @param {Array=} opt_data Optional initial data array, typically from a
33
+ * server response, or constructed directly in Javascript. The array is used
34
+ * in place and becomes part of the constructed object. It is not cloned.
35
+ * If no data is provided, the constructed object will be empty, but still
36
+ * valid.
37
+ * @extends {jspb.Message}
38
+ * @constructor
39
+ */
40
+ proto.gateway.web.v1.AuthorizeDesktopLoginRequest = function(opt_data) {
41
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
42
+ };
43
+ goog.inherits(proto.gateway.web.v1.AuthorizeDesktopLoginRequest, jspb.Message);
44
+ if (goog.DEBUG && !COMPILED) {
45
+ /**
46
+ * @public
47
+ * @override
48
+ */
49
+ proto.gateway.web.v1.AuthorizeDesktopLoginRequest.displayName = 'proto.gateway.web.v1.AuthorizeDesktopLoginRequest';
50
+ }
51
+ /**
52
+ * Generated by JsPbCodeGenerator.
53
+ * @param {Array=} opt_data Optional initial data array, typically from a
54
+ * server response, or constructed directly in Javascript. The array is used
55
+ * in place and becomes part of the constructed object. It is not cloned.
56
+ * If no data is provided, the constructed object will be empty, but still
57
+ * valid.
58
+ * @extends {jspb.Message}
59
+ * @constructor
60
+ */
61
+ proto.gateway.web.v1.AuthorizeDesktopLoginResponse = function(opt_data) {
62
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
63
+ };
64
+ goog.inherits(proto.gateway.web.v1.AuthorizeDesktopLoginResponse, jspb.Message);
65
+ if (goog.DEBUG && !COMPILED) {
66
+ /**
67
+ * @public
68
+ * @override
69
+ */
70
+ proto.gateway.web.v1.AuthorizeDesktopLoginResponse.displayName = 'proto.gateway.web.v1.AuthorizeDesktopLoginResponse';
71
+ }
72
+ /**
73
+ * Generated by JsPbCodeGenerator.
74
+ * @param {Array=} opt_data Optional initial data array, typically from a
75
+ * server response, or constructed directly in Javascript. The array is used
76
+ * in place and becomes part of the constructed object. It is not cloned.
77
+ * If no data is provided, the constructed object will be empty, but still
78
+ * valid.
79
+ * @extends {jspb.Message}
80
+ * @constructor
81
+ */
82
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest = function(opt_data) {
83
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
84
+ };
85
+ goog.inherits(proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest, jspb.Message);
86
+ if (goog.DEBUG && !COMPILED) {
87
+ /**
88
+ * @public
89
+ * @override
90
+ */
91
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest.displayName = 'proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest';
92
+ }
93
+ /**
94
+ * Generated by JsPbCodeGenerator.
95
+ * @param {Array=} opt_data Optional initial data array, typically from a
96
+ * server response, or constructed directly in Javascript. The array is used
97
+ * in place and becomes part of the constructed object. It is not cloned.
98
+ * If no data is provided, the constructed object will be empty, but still
99
+ * valid.
100
+ * @extends {jspb.Message}
101
+ * @constructor
102
+ */
103
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse = function(opt_data) {
104
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
105
+ };
106
+ goog.inherits(proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse, jspb.Message);
107
+ if (goog.DEBUG && !COMPILED) {
108
+ /**
109
+ * @public
110
+ * @override
111
+ */
112
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse.displayName = 'proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse';
113
+ }
114
+ /**
115
+ * Generated by JsPbCodeGenerator.
116
+ * @param {Array=} opt_data Optional initial data array, typically from a
117
+ * server response, or constructed directly in Javascript. The array is used
118
+ * in place and becomes part of the constructed object. It is not cloned.
119
+ * If no data is provided, the constructed object will be empty, but still
120
+ * valid.
121
+ * @extends {jspb.Message}
122
+ * @constructor
123
+ */
124
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest = function(opt_data) {
125
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
126
+ };
127
+ goog.inherits(proto.gateway.web.v1.RevokeCliSessionFamilyRequest, jspb.Message);
128
+ if (goog.DEBUG && !COMPILED) {
129
+ /**
130
+ * @public
131
+ * @override
132
+ */
133
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.displayName = 'proto.gateway.web.v1.RevokeCliSessionFamilyRequest';
134
+ }
135
+ /**
136
+ * Generated by JsPbCodeGenerator.
137
+ * @param {Array=} opt_data Optional initial data array, typically from a
138
+ * server response, or constructed directly in Javascript. The array is used
139
+ * in place and becomes part of the constructed object. It is not cloned.
140
+ * If no data is provided, the constructed object will be empty, but still
141
+ * valid.
142
+ * @extends {jspb.Message}
143
+ * @constructor
144
+ */
145
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse = function(opt_data) {
146
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
147
+ };
148
+ goog.inherits(proto.gateway.web.v1.RevokeCliSessionFamilyResponse, jspb.Message);
149
+ if (goog.DEBUG && !COMPILED) {
150
+ /**
151
+ * @public
152
+ * @override
153
+ */
154
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.displayName = 'proto.gateway.web.v1.RevokeCliSessionFamilyResponse';
155
+ }
156
+
157
+
158
+
159
+ if (jspb.Message.GENERATE_TO_OBJECT) {
160
+ /**
161
+ * Creates an object representation of this proto.
162
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
163
+ * Optional fields that are not set will be set to undefined.
164
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
165
+ * For the list of reserved names please see:
166
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
167
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
168
+ * JSPB instance for transitional soy proto support:
169
+ * http://goto/soy-param-migration
170
+ * @return {!Object}
171
+ */
172
+ proto.gateway.web.v1.AuthorizeDesktopLoginRequest.prototype.toObject = function(opt_includeInstance) {
173
+ return proto.gateway.web.v1.AuthorizeDesktopLoginRequest.toObject(opt_includeInstance, this);
174
+ };
175
+
176
+
177
+ /**
178
+ * Static version of the {@see toObject} method.
179
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
180
+ * the JSPB instance for transitional soy proto support:
181
+ * http://goto/soy-param-migration
182
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopLoginRequest} msg The msg instance to transform.
183
+ * @return {!Object}
184
+ * @suppress {unusedLocalVariables} f is only used for nested messages
185
+ */
186
+ proto.gateway.web.v1.AuthorizeDesktopLoginRequest.toObject = function(includeInstance, msg) {
187
+ var f, obj = {
188
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
189
+ codeChallenge: jspb.Message.getFieldWithDefault(msg, 2, ""),
190
+ redirectPort: jspb.Message.getFieldWithDefault(msg, 3, 0),
191
+ label: jspb.Message.getFieldWithDefault(msg, 4, "")
192
+ };
193
+
194
+ if (includeInstance) {
195
+ obj.$jspbMessageInstance = msg;
196
+ }
197
+ return obj;
198
+ };
199
+ }
200
+
201
+
202
+ /**
203
+ * Deserializes binary data (in protobuf wire format).
204
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
205
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopLoginRequest}
206
+ */
207
+ proto.gateway.web.v1.AuthorizeDesktopLoginRequest.deserializeBinary = function(bytes) {
208
+ var reader = new jspb.BinaryReader(bytes);
209
+ var msg = new proto.gateway.web.v1.AuthorizeDesktopLoginRequest;
210
+ return proto.gateway.web.v1.AuthorizeDesktopLoginRequest.deserializeBinaryFromReader(msg, reader);
211
+ };
212
+
213
+
214
+ /**
215
+ * Deserializes binary data (in protobuf wire format) from the
216
+ * given reader into the given message object.
217
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopLoginRequest} msg The message object to deserialize into.
218
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
219
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopLoginRequest}
220
+ */
221
+ proto.gateway.web.v1.AuthorizeDesktopLoginRequest.deserializeBinaryFromReader = function(msg, reader) {
222
+ while (reader.nextField()) {
223
+ if (reader.isEndGroup()) {
224
+ break;
225
+ }
226
+ var field = reader.getFieldNumber();
227
+ switch (field) {
228
+ case 1:
229
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
230
+ msg.setOrganizationId(value);
231
+ break;
232
+ case 2:
233
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
234
+ msg.setCodeChallenge(value);
235
+ break;
236
+ case 3:
237
+ var value = /** @type {number} */ (reader.readInt32());
238
+ msg.setRedirectPort(value);
239
+ break;
240
+ case 4:
241
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
242
+ msg.setLabel(value);
243
+ break;
244
+ default:
245
+ reader.skipField();
246
+ break;
247
+ }
248
+ }
249
+ return msg;
250
+ };
251
+
252
+
253
+ /**
254
+ * Serializes the message to binary data (in protobuf wire format).
255
+ * @return {!Uint8Array}
256
+ */
257
+ proto.gateway.web.v1.AuthorizeDesktopLoginRequest.prototype.serializeBinary = function() {
258
+ var writer = new jspb.BinaryWriter();
259
+ proto.gateway.web.v1.AuthorizeDesktopLoginRequest.serializeBinaryToWriter(this, writer);
260
+ return writer.getResultBuffer();
261
+ };
262
+
263
+
264
+ /**
265
+ * Serializes the given message to binary data (in protobuf wire
266
+ * format), writing to the given BinaryWriter.
267
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopLoginRequest} message
268
+ * @param {!jspb.BinaryWriter} writer
269
+ * @suppress {unusedLocalVariables} f is only used for nested messages
270
+ */
271
+ proto.gateway.web.v1.AuthorizeDesktopLoginRequest.serializeBinaryToWriter = function(message, writer) {
272
+ var f = undefined;
273
+ f = message.getOrganizationId();
274
+ if (f.length > 0) {
275
+ writer.writeString(
276
+ 1,
277
+ f
278
+ );
279
+ }
280
+ f = message.getCodeChallenge();
281
+ if (f.length > 0) {
282
+ writer.writeString(
283
+ 2,
284
+ f
285
+ );
286
+ }
287
+ f = message.getRedirectPort();
288
+ if (f !== 0) {
289
+ writer.writeInt32(
290
+ 3,
291
+ f
292
+ );
293
+ }
294
+ f = message.getLabel();
295
+ if (f.length > 0) {
296
+ writer.writeString(
297
+ 4,
298
+ f
299
+ );
300
+ }
301
+ };
302
+
303
+
304
+ /**
305
+ * optional string organization_id = 1;
306
+ * @return {string}
307
+ */
308
+ proto.gateway.web.v1.AuthorizeDesktopLoginRequest.prototype.getOrganizationId = function() {
309
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
310
+ };
311
+
312
+
313
+ /**
314
+ * @param {string} value
315
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopLoginRequest} returns this
316
+ */
317
+ proto.gateway.web.v1.AuthorizeDesktopLoginRequest.prototype.setOrganizationId = function(value) {
318
+ return jspb.Message.setProto3StringField(this, 1, value);
319
+ };
320
+
321
+
322
+ /**
323
+ * optional string code_challenge = 2;
324
+ * @return {string}
325
+ */
326
+ proto.gateway.web.v1.AuthorizeDesktopLoginRequest.prototype.getCodeChallenge = function() {
327
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
328
+ };
329
+
330
+
331
+ /**
332
+ * @param {string} value
333
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopLoginRequest} returns this
334
+ */
335
+ proto.gateway.web.v1.AuthorizeDesktopLoginRequest.prototype.setCodeChallenge = function(value) {
336
+ return jspb.Message.setProto3StringField(this, 2, value);
337
+ };
338
+
339
+
340
+ /**
341
+ * optional int32 redirect_port = 3;
342
+ * @return {number}
343
+ */
344
+ proto.gateway.web.v1.AuthorizeDesktopLoginRequest.prototype.getRedirectPort = function() {
345
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
346
+ };
347
+
348
+
349
+ /**
350
+ * @param {number} value
351
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopLoginRequest} returns this
352
+ */
353
+ proto.gateway.web.v1.AuthorizeDesktopLoginRequest.prototype.setRedirectPort = function(value) {
354
+ return jspb.Message.setProto3IntField(this, 3, value);
355
+ };
356
+
357
+
358
+ /**
359
+ * optional string label = 4;
360
+ * @return {string}
361
+ */
362
+ proto.gateway.web.v1.AuthorizeDesktopLoginRequest.prototype.getLabel = function() {
363
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
364
+ };
365
+
366
+
367
+ /**
368
+ * @param {string} value
369
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopLoginRequest} returns this
370
+ */
371
+ proto.gateway.web.v1.AuthorizeDesktopLoginRequest.prototype.setLabel = function(value) {
372
+ return jspb.Message.setProto3StringField(this, 4, value);
373
+ };
374
+
375
+
376
+
377
+
378
+
379
+ if (jspb.Message.GENERATE_TO_OBJECT) {
380
+ /**
381
+ * Creates an object representation of this proto.
382
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
383
+ * Optional fields that are not set will be set to undefined.
384
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
385
+ * For the list of reserved names please see:
386
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
387
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
388
+ * JSPB instance for transitional soy proto support:
389
+ * http://goto/soy-param-migration
390
+ * @return {!Object}
391
+ */
392
+ proto.gateway.web.v1.AuthorizeDesktopLoginResponse.prototype.toObject = function(opt_includeInstance) {
393
+ return proto.gateway.web.v1.AuthorizeDesktopLoginResponse.toObject(opt_includeInstance, this);
394
+ };
395
+
396
+
397
+ /**
398
+ * Static version of the {@see toObject} method.
399
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
400
+ * the JSPB instance for transitional soy proto support:
401
+ * http://goto/soy-param-migration
402
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopLoginResponse} msg The msg instance to transform.
403
+ * @return {!Object}
404
+ * @suppress {unusedLocalVariables} f is only used for nested messages
405
+ */
406
+ proto.gateway.web.v1.AuthorizeDesktopLoginResponse.toObject = function(includeInstance, msg) {
407
+ var f, obj = {
408
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
409
+ code: jspb.Message.getFieldWithDefault(msg, 2, ""),
410
+ expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
411
+ };
412
+
413
+ if (includeInstance) {
414
+ obj.$jspbMessageInstance = msg;
415
+ }
416
+ return obj;
417
+ };
418
+ }
419
+
420
+
421
+ /**
422
+ * Deserializes binary data (in protobuf wire format).
423
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
424
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopLoginResponse}
425
+ */
426
+ proto.gateway.web.v1.AuthorizeDesktopLoginResponse.deserializeBinary = function(bytes) {
427
+ var reader = new jspb.BinaryReader(bytes);
428
+ var msg = new proto.gateway.web.v1.AuthorizeDesktopLoginResponse;
429
+ return proto.gateway.web.v1.AuthorizeDesktopLoginResponse.deserializeBinaryFromReader(msg, reader);
430
+ };
431
+
432
+
433
+ /**
434
+ * Deserializes binary data (in protobuf wire format) from the
435
+ * given reader into the given message object.
436
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopLoginResponse} msg The message object to deserialize into.
437
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
438
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopLoginResponse}
439
+ */
440
+ proto.gateway.web.v1.AuthorizeDesktopLoginResponse.deserializeBinaryFromReader = function(msg, reader) {
441
+ while (reader.nextField()) {
442
+ if (reader.isEndGroup()) {
443
+ break;
444
+ }
445
+ var field = reader.getFieldNumber();
446
+ switch (field) {
447
+ case 1:
448
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
449
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
450
+ msg.setStatus(value);
451
+ break;
452
+ case 2:
453
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
454
+ msg.setCode(value);
455
+ break;
456
+ case 3:
457
+ var value = new google_protobuf_timestamp_pb.Timestamp;
458
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
459
+ msg.setExpiresAt(value);
460
+ break;
461
+ default:
462
+ reader.skipField();
463
+ break;
464
+ }
465
+ }
466
+ return msg;
467
+ };
468
+
469
+
470
+ /**
471
+ * Serializes the message to binary data (in protobuf wire format).
472
+ * @return {!Uint8Array}
473
+ */
474
+ proto.gateway.web.v1.AuthorizeDesktopLoginResponse.prototype.serializeBinary = function() {
475
+ var writer = new jspb.BinaryWriter();
476
+ proto.gateway.web.v1.AuthorizeDesktopLoginResponse.serializeBinaryToWriter(this, writer);
477
+ return writer.getResultBuffer();
478
+ };
479
+
480
+
481
+ /**
482
+ * Serializes the given message to binary data (in protobuf wire
483
+ * format), writing to the given BinaryWriter.
484
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopLoginResponse} message
485
+ * @param {!jspb.BinaryWriter} writer
486
+ * @suppress {unusedLocalVariables} f is only used for nested messages
487
+ */
488
+ proto.gateway.web.v1.AuthorizeDesktopLoginResponse.serializeBinaryToWriter = function(message, writer) {
489
+ var f = undefined;
490
+ f = message.getStatus();
491
+ if (f != null) {
492
+ writer.writeMessage(
493
+ 1,
494
+ f,
495
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
496
+ );
497
+ }
498
+ f = message.getCode();
499
+ if (f.length > 0) {
500
+ writer.writeString(
501
+ 2,
502
+ f
503
+ );
504
+ }
505
+ f = message.getExpiresAt();
506
+ if (f != null) {
507
+ writer.writeMessage(
508
+ 3,
509
+ f,
510
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
511
+ );
512
+ }
513
+ };
514
+
515
+
516
+ /**
517
+ * optional gateway.common.v1.ResponseStatus status = 1;
518
+ * @return {?proto.gateway.common.v1.ResponseStatus}
519
+ */
520
+ proto.gateway.web.v1.AuthorizeDesktopLoginResponse.prototype.getStatus = function() {
521
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
522
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
523
+ };
524
+
525
+
526
+ /**
527
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
528
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopLoginResponse} returns this
529
+ */
530
+ proto.gateway.web.v1.AuthorizeDesktopLoginResponse.prototype.setStatus = function(value) {
531
+ return jspb.Message.setWrapperField(this, 1, value);
532
+ };
533
+
534
+
535
+ /**
536
+ * Clears the message field making it undefined.
537
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopLoginResponse} returns this
538
+ */
539
+ proto.gateway.web.v1.AuthorizeDesktopLoginResponse.prototype.clearStatus = function() {
540
+ return this.setStatus(undefined);
541
+ };
542
+
543
+
544
+ /**
545
+ * Returns whether this field is set.
546
+ * @return {boolean}
547
+ */
548
+ proto.gateway.web.v1.AuthorizeDesktopLoginResponse.prototype.hasStatus = function() {
549
+ return jspb.Message.getField(this, 1) != null;
550
+ };
551
+
552
+
553
+ /**
554
+ * optional string code = 2;
555
+ * @return {string}
556
+ */
557
+ proto.gateway.web.v1.AuthorizeDesktopLoginResponse.prototype.getCode = function() {
558
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
559
+ };
560
+
561
+
562
+ /**
563
+ * @param {string} value
564
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopLoginResponse} returns this
565
+ */
566
+ proto.gateway.web.v1.AuthorizeDesktopLoginResponse.prototype.setCode = function(value) {
567
+ return jspb.Message.setProto3StringField(this, 2, value);
568
+ };
569
+
570
+
571
+ /**
572
+ * optional google.protobuf.Timestamp expires_at = 3;
573
+ * @return {?proto.google.protobuf.Timestamp}
574
+ */
575
+ proto.gateway.web.v1.AuthorizeDesktopLoginResponse.prototype.getExpiresAt = function() {
576
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
577
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
578
+ };
579
+
580
+
581
+ /**
582
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
583
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopLoginResponse} returns this
584
+ */
585
+ proto.gateway.web.v1.AuthorizeDesktopLoginResponse.prototype.setExpiresAt = function(value) {
586
+ return jspb.Message.setWrapperField(this, 3, value);
587
+ };
588
+
589
+
590
+ /**
591
+ * Clears the message field making it undefined.
592
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopLoginResponse} returns this
593
+ */
594
+ proto.gateway.web.v1.AuthorizeDesktopLoginResponse.prototype.clearExpiresAt = function() {
595
+ return this.setExpiresAt(undefined);
596
+ };
597
+
598
+
599
+ /**
600
+ * Returns whether this field is set.
601
+ * @return {boolean}
602
+ */
603
+ proto.gateway.web.v1.AuthorizeDesktopLoginResponse.prototype.hasExpiresAt = function() {
604
+ return jspb.Message.getField(this, 3) != null;
605
+ };
606
+
607
+
608
+
609
+
610
+
611
+ if (jspb.Message.GENERATE_TO_OBJECT) {
612
+ /**
613
+ * Creates an object representation of this proto.
614
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
615
+ * Optional fields that are not set will be set to undefined.
616
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
617
+ * For the list of reserved names please see:
618
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
619
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
620
+ * JSPB instance for transitional soy proto support:
621
+ * http://goto/soy-param-migration
622
+ * @return {!Object}
623
+ */
624
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest.prototype.toObject = function(opt_includeInstance) {
625
+ return proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest.toObject(opt_includeInstance, this);
626
+ };
627
+
628
+
629
+ /**
630
+ * Static version of the {@see toObject} method.
631
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
632
+ * the JSPB instance for transitional soy proto support:
633
+ * http://goto/soy-param-migration
634
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest} msg The msg instance to transform.
635
+ * @return {!Object}
636
+ * @suppress {unusedLocalVariables} f is only used for nested messages
637
+ */
638
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest.toObject = function(includeInstance, msg) {
639
+ var f, obj = {
640
+ codeChallenge: jspb.Message.getFieldWithDefault(msg, 1, ""),
641
+ redirectPort: jspb.Message.getFieldWithDefault(msg, 2, 0),
642
+ label: jspb.Message.getFieldWithDefault(msg, 3, "")
643
+ };
644
+
645
+ if (includeInstance) {
646
+ obj.$jspbMessageInstance = msg;
647
+ }
648
+ return obj;
649
+ };
650
+ }
651
+
652
+
653
+ /**
654
+ * Deserializes binary data (in protobuf wire format).
655
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
656
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest}
657
+ */
658
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest.deserializeBinary = function(bytes) {
659
+ var reader = new jspb.BinaryReader(bytes);
660
+ var msg = new proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest;
661
+ return proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest.deserializeBinaryFromReader(msg, reader);
662
+ };
663
+
664
+
665
+ /**
666
+ * Deserializes binary data (in protobuf wire format) from the
667
+ * given reader into the given message object.
668
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest} msg The message object to deserialize into.
669
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
670
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest}
671
+ */
672
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest.deserializeBinaryFromReader = function(msg, reader) {
673
+ while (reader.nextField()) {
674
+ if (reader.isEndGroup()) {
675
+ break;
676
+ }
677
+ var field = reader.getFieldNumber();
678
+ switch (field) {
679
+ case 1:
680
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
681
+ msg.setCodeChallenge(value);
682
+ break;
683
+ case 2:
684
+ var value = /** @type {number} */ (reader.readInt32());
685
+ msg.setRedirectPort(value);
686
+ break;
687
+ case 3:
688
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
689
+ msg.setLabel(value);
690
+ break;
691
+ default:
692
+ reader.skipField();
693
+ break;
694
+ }
695
+ }
696
+ return msg;
697
+ };
698
+
699
+
700
+ /**
701
+ * Serializes the message to binary data (in protobuf wire format).
702
+ * @return {!Uint8Array}
703
+ */
704
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest.prototype.serializeBinary = function() {
705
+ var writer = new jspb.BinaryWriter();
706
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest.serializeBinaryToWriter(this, writer);
707
+ return writer.getResultBuffer();
708
+ };
709
+
710
+
711
+ /**
712
+ * Serializes the given message to binary data (in protobuf wire
713
+ * format), writing to the given BinaryWriter.
714
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest} message
715
+ * @param {!jspb.BinaryWriter} writer
716
+ * @suppress {unusedLocalVariables} f is only used for nested messages
717
+ */
718
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest.serializeBinaryToWriter = function(message, writer) {
719
+ var f = undefined;
720
+ f = message.getCodeChallenge();
721
+ if (f.length > 0) {
722
+ writer.writeString(
723
+ 1,
724
+ f
725
+ );
726
+ }
727
+ f = message.getRedirectPort();
728
+ if (f !== 0) {
729
+ writer.writeInt32(
730
+ 2,
731
+ f
732
+ );
733
+ }
734
+ f = message.getLabel();
735
+ if (f.length > 0) {
736
+ writer.writeString(
737
+ 3,
738
+ f
739
+ );
740
+ }
741
+ };
742
+
743
+
744
+ /**
745
+ * optional string code_challenge = 1;
746
+ * @return {string}
747
+ */
748
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest.prototype.getCodeChallenge = function() {
749
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
750
+ };
751
+
752
+
753
+ /**
754
+ * @param {string} value
755
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest} returns this
756
+ */
757
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest.prototype.setCodeChallenge = function(value) {
758
+ return jspb.Message.setProto3StringField(this, 1, value);
759
+ };
760
+
761
+
762
+ /**
763
+ * optional int32 redirect_port = 2;
764
+ * @return {number}
765
+ */
766
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest.prototype.getRedirectPort = function() {
767
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
768
+ };
769
+
770
+
771
+ /**
772
+ * @param {number} value
773
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest} returns this
774
+ */
775
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest.prototype.setRedirectPort = function(value) {
776
+ return jspb.Message.setProto3IntField(this, 2, value);
777
+ };
778
+
779
+
780
+ /**
781
+ * optional string label = 3;
782
+ * @return {string}
783
+ */
784
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest.prototype.getLabel = function() {
785
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
786
+ };
787
+
788
+
789
+ /**
790
+ * @param {string} value
791
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest} returns this
792
+ */
793
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest.prototype.setLabel = function(value) {
794
+ return jspb.Message.setProto3StringField(this, 3, value);
795
+ };
796
+
797
+
798
+
799
+
800
+
801
+ if (jspb.Message.GENERATE_TO_OBJECT) {
802
+ /**
803
+ * Creates an object representation of this proto.
804
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
805
+ * Optional fields that are not set will be set to undefined.
806
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
807
+ * For the list of reserved names please see:
808
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
809
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
810
+ * JSPB instance for transitional soy proto support:
811
+ * http://goto/soy-param-migration
812
+ * @return {!Object}
813
+ */
814
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse.prototype.toObject = function(opt_includeInstance) {
815
+ return proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse.toObject(opt_includeInstance, this);
816
+ };
817
+
818
+
819
+ /**
820
+ * Static version of the {@see toObject} method.
821
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
822
+ * the JSPB instance for transitional soy proto support:
823
+ * http://goto/soy-param-migration
824
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse} msg The msg instance to transform.
825
+ * @return {!Object}
826
+ * @suppress {unusedLocalVariables} f is only used for nested messages
827
+ */
828
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse.toObject = function(includeInstance, msg) {
829
+ var f, obj = {
830
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
831
+ code: jspb.Message.getFieldWithDefault(msg, 2, ""),
832
+ expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
833
+ };
834
+
835
+ if (includeInstance) {
836
+ obj.$jspbMessageInstance = msg;
837
+ }
838
+ return obj;
839
+ };
840
+ }
841
+
842
+
843
+ /**
844
+ * Deserializes binary data (in protobuf wire format).
845
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
846
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse}
847
+ */
848
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse.deserializeBinary = function(bytes) {
849
+ var reader = new jspb.BinaryReader(bytes);
850
+ var msg = new proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse;
851
+ return proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse.deserializeBinaryFromReader(msg, reader);
852
+ };
853
+
854
+
855
+ /**
856
+ * Deserializes binary data (in protobuf wire format) from the
857
+ * given reader into the given message object.
858
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse} msg The message object to deserialize into.
859
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
860
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse}
861
+ */
862
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse.deserializeBinaryFromReader = function(msg, reader) {
863
+ while (reader.nextField()) {
864
+ if (reader.isEndGroup()) {
865
+ break;
866
+ }
867
+ var field = reader.getFieldNumber();
868
+ switch (field) {
869
+ case 1:
870
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
871
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
872
+ msg.setStatus(value);
873
+ break;
874
+ case 2:
875
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
876
+ msg.setCode(value);
877
+ break;
878
+ case 3:
879
+ var value = new google_protobuf_timestamp_pb.Timestamp;
880
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
881
+ msg.setExpiresAt(value);
882
+ break;
883
+ default:
884
+ reader.skipField();
885
+ break;
886
+ }
887
+ }
888
+ return msg;
889
+ };
890
+
891
+
892
+ /**
893
+ * Serializes the message to binary data (in protobuf wire format).
894
+ * @return {!Uint8Array}
895
+ */
896
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse.prototype.serializeBinary = function() {
897
+ var writer = new jspb.BinaryWriter();
898
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse.serializeBinaryToWriter(this, writer);
899
+ return writer.getResultBuffer();
900
+ };
901
+
902
+
903
+ /**
904
+ * Serializes the given message to binary data (in protobuf wire
905
+ * format), writing to the given BinaryWriter.
906
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse} message
907
+ * @param {!jspb.BinaryWriter} writer
908
+ * @suppress {unusedLocalVariables} f is only used for nested messages
909
+ */
910
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse.serializeBinaryToWriter = function(message, writer) {
911
+ var f = undefined;
912
+ f = message.getStatus();
913
+ if (f != null) {
914
+ writer.writeMessage(
915
+ 1,
916
+ f,
917
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
918
+ );
919
+ }
920
+ f = message.getCode();
921
+ if (f.length > 0) {
922
+ writer.writeString(
923
+ 2,
924
+ f
925
+ );
926
+ }
927
+ f = message.getExpiresAt();
928
+ if (f != null) {
929
+ writer.writeMessage(
930
+ 3,
931
+ f,
932
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
933
+ );
934
+ }
935
+ };
936
+
937
+
938
+ /**
939
+ * optional gateway.common.v1.ResponseStatus status = 1;
940
+ * @return {?proto.gateway.common.v1.ResponseStatus}
941
+ */
942
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse.prototype.getStatus = function() {
943
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
944
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
945
+ };
946
+
947
+
948
+ /**
949
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
950
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse} returns this
951
+ */
952
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse.prototype.setStatus = function(value) {
953
+ return jspb.Message.setWrapperField(this, 1, value);
954
+ };
955
+
956
+
957
+ /**
958
+ * Clears the message field making it undefined.
959
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse} returns this
960
+ */
961
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse.prototype.clearStatus = function() {
962
+ return this.setStatus(undefined);
963
+ };
964
+
965
+
966
+ /**
967
+ * Returns whether this field is set.
968
+ * @return {boolean}
969
+ */
970
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse.prototype.hasStatus = function() {
971
+ return jspb.Message.getField(this, 1) != null;
972
+ };
973
+
974
+
975
+ /**
976
+ * optional string code = 2;
977
+ * @return {string}
978
+ */
979
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse.prototype.getCode = function() {
980
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
981
+ };
982
+
983
+
984
+ /**
985
+ * @param {string} value
986
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse} returns this
987
+ */
988
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse.prototype.setCode = function(value) {
989
+ return jspb.Message.setProto3StringField(this, 2, value);
990
+ };
991
+
992
+
993
+ /**
994
+ * optional google.protobuf.Timestamp expires_at = 3;
995
+ * @return {?proto.google.protobuf.Timestamp}
996
+ */
997
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse.prototype.getExpiresAt = function() {
998
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
999
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
1000
+ };
1001
+
1002
+
1003
+ /**
1004
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1005
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse} returns this
1006
+ */
1007
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse.prototype.setExpiresAt = function(value) {
1008
+ return jspb.Message.setWrapperField(this, 3, value);
1009
+ };
1010
+
1011
+
1012
+ /**
1013
+ * Clears the message field making it undefined.
1014
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse} returns this
1015
+ */
1016
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse.prototype.clearExpiresAt = function() {
1017
+ return this.setExpiresAt(undefined);
1018
+ };
1019
+
1020
+
1021
+ /**
1022
+ * Returns whether this field is set.
1023
+ * @return {boolean}
1024
+ */
1025
+ proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse.prototype.hasExpiresAt = function() {
1026
+ return jspb.Message.getField(this, 3) != null;
1027
+ };
1028
+
1029
+
1030
+
1031
+
1032
+
1033
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1034
+ /**
1035
+ * Creates an object representation of this proto.
1036
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1037
+ * Optional fields that are not set will be set to undefined.
1038
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1039
+ * For the list of reserved names please see:
1040
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1041
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1042
+ * JSPB instance for transitional soy proto support:
1043
+ * http://goto/soy-param-migration
1044
+ * @return {!Object}
1045
+ */
1046
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.prototype.toObject = function(opt_includeInstance) {
1047
+ return proto.gateway.web.v1.RevokeCliSessionFamilyRequest.toObject(opt_includeInstance, this);
1048
+ };
1049
+
1050
+
1051
+ /**
1052
+ * Static version of the {@see toObject} method.
1053
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1054
+ * the JSPB instance for transitional soy proto support:
1055
+ * http://goto/soy-param-migration
1056
+ * @param {!proto.gateway.web.v1.RevokeCliSessionFamilyRequest} msg The msg instance to transform.
1057
+ * @return {!Object}
1058
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1059
+ */
1060
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.toObject = function(includeInstance, msg) {
1061
+ var f, obj = {
1062
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1063
+ sessionId: jspb.Message.getFieldWithDefault(msg, 2, "")
1064
+ };
1065
+
1066
+ if (includeInstance) {
1067
+ obj.$jspbMessageInstance = msg;
1068
+ }
1069
+ return obj;
1070
+ };
1071
+ }
1072
+
1073
+
1074
+ /**
1075
+ * Deserializes binary data (in protobuf wire format).
1076
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
1077
+ * @return {!proto.gateway.web.v1.RevokeCliSessionFamilyRequest}
1078
+ */
1079
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.deserializeBinary = function(bytes) {
1080
+ var reader = new jspb.BinaryReader(bytes);
1081
+ var msg = new proto.gateway.web.v1.RevokeCliSessionFamilyRequest;
1082
+ return proto.gateway.web.v1.RevokeCliSessionFamilyRequest.deserializeBinaryFromReader(msg, reader);
1083
+ };
1084
+
1085
+
1086
+ /**
1087
+ * Deserializes binary data (in protobuf wire format) from the
1088
+ * given reader into the given message object.
1089
+ * @param {!proto.gateway.web.v1.RevokeCliSessionFamilyRequest} msg The message object to deserialize into.
1090
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1091
+ * @return {!proto.gateway.web.v1.RevokeCliSessionFamilyRequest}
1092
+ */
1093
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.deserializeBinaryFromReader = function(msg, reader) {
1094
+ while (reader.nextField()) {
1095
+ if (reader.isEndGroup()) {
1096
+ break;
1097
+ }
1098
+ var field = reader.getFieldNumber();
1099
+ switch (field) {
1100
+ case 1:
1101
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1102
+ msg.setOrganizationId(value);
1103
+ break;
1104
+ case 2:
1105
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1106
+ msg.setSessionId(value);
1107
+ break;
1108
+ default:
1109
+ reader.skipField();
1110
+ break;
1111
+ }
1112
+ }
1113
+ return msg;
1114
+ };
1115
+
1116
+
1117
+ /**
1118
+ * Serializes the message to binary data (in protobuf wire format).
1119
+ * @return {!Uint8Array}
1120
+ */
1121
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.prototype.serializeBinary = function() {
1122
+ var writer = new jspb.BinaryWriter();
1123
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.serializeBinaryToWriter(this, writer);
1124
+ return writer.getResultBuffer();
1125
+ };
1126
+
1127
+
1128
+ /**
1129
+ * Serializes the given message to binary data (in protobuf wire
1130
+ * format), writing to the given BinaryWriter.
1131
+ * @param {!proto.gateway.web.v1.RevokeCliSessionFamilyRequest} message
1132
+ * @param {!jspb.BinaryWriter} writer
1133
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1134
+ */
1135
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.serializeBinaryToWriter = function(message, writer) {
1136
+ var f = undefined;
1137
+ f = message.getOrganizationId();
1138
+ if (f.length > 0) {
1139
+ writer.writeString(
1140
+ 1,
1141
+ f
1142
+ );
1143
+ }
1144
+ f = message.getSessionId();
1145
+ if (f.length > 0) {
1146
+ writer.writeString(
1147
+ 2,
1148
+ f
1149
+ );
1150
+ }
1151
+ };
1152
+
1153
+
1154
+ /**
1155
+ * optional string organization_id = 1;
1156
+ * @return {string}
1157
+ */
1158
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.prototype.getOrganizationId = function() {
1159
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1160
+ };
1161
+
1162
+
1163
+ /**
1164
+ * @param {string} value
1165
+ * @return {!proto.gateway.web.v1.RevokeCliSessionFamilyRequest} returns this
1166
+ */
1167
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.prototype.setOrganizationId = function(value) {
1168
+ return jspb.Message.setProto3StringField(this, 1, value);
1169
+ };
1170
+
1171
+
1172
+ /**
1173
+ * optional string session_id = 2;
1174
+ * @return {string}
1175
+ */
1176
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.prototype.getSessionId = function() {
1177
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1178
+ };
1179
+
1180
+
1181
+ /**
1182
+ * @param {string} value
1183
+ * @return {!proto.gateway.web.v1.RevokeCliSessionFamilyRequest} returns this
1184
+ */
1185
+ proto.gateway.web.v1.RevokeCliSessionFamilyRequest.prototype.setSessionId = function(value) {
1186
+ return jspb.Message.setProto3StringField(this, 2, value);
1187
+ };
1188
+
1189
+
1190
+
1191
+
1192
+
1193
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1194
+ /**
1195
+ * Creates an object representation of this proto.
1196
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1197
+ * Optional fields that are not set will be set to undefined.
1198
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1199
+ * For the list of reserved names please see:
1200
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1201
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1202
+ * JSPB instance for transitional soy proto support:
1203
+ * http://goto/soy-param-migration
1204
+ * @return {!Object}
1205
+ */
1206
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.prototype.toObject = function(opt_includeInstance) {
1207
+ return proto.gateway.web.v1.RevokeCliSessionFamilyResponse.toObject(opt_includeInstance, this);
1208
+ };
1209
+
1210
+
1211
+ /**
1212
+ * Static version of the {@see toObject} method.
1213
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1214
+ * the JSPB instance for transitional soy proto support:
1215
+ * http://goto/soy-param-migration
1216
+ * @param {!proto.gateway.web.v1.RevokeCliSessionFamilyResponse} msg The msg instance to transform.
1217
+ * @return {!Object}
1218
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1219
+ */
1220
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.toObject = function(includeInstance, msg) {
1221
+ var f, obj = {
1222
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
1223
+ };
1224
+
1225
+ if (includeInstance) {
1226
+ obj.$jspbMessageInstance = msg;
1227
+ }
1228
+ return obj;
1229
+ };
1230
+ }
1231
+
1232
+
1233
+ /**
1234
+ * Deserializes binary data (in protobuf wire format).
1235
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
1236
+ * @return {!proto.gateway.web.v1.RevokeCliSessionFamilyResponse}
1237
+ */
1238
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.deserializeBinary = function(bytes) {
1239
+ var reader = new jspb.BinaryReader(bytes);
1240
+ var msg = new proto.gateway.web.v1.RevokeCliSessionFamilyResponse;
1241
+ return proto.gateway.web.v1.RevokeCliSessionFamilyResponse.deserializeBinaryFromReader(msg, reader);
1242
+ };
1243
+
1244
+
1245
+ /**
1246
+ * Deserializes binary data (in protobuf wire format) from the
1247
+ * given reader into the given message object.
1248
+ * @param {!proto.gateway.web.v1.RevokeCliSessionFamilyResponse} msg The message object to deserialize into.
1249
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1250
+ * @return {!proto.gateway.web.v1.RevokeCliSessionFamilyResponse}
1251
+ */
1252
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.deserializeBinaryFromReader = function(msg, reader) {
1253
+ while (reader.nextField()) {
1254
+ if (reader.isEndGroup()) {
1255
+ break;
1256
+ }
1257
+ var field = reader.getFieldNumber();
1258
+ switch (field) {
1259
+ case 1:
1260
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
1261
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
1262
+ msg.setStatus(value);
1263
+ break;
1264
+ default:
1265
+ reader.skipField();
1266
+ break;
1267
+ }
1268
+ }
1269
+ return msg;
1270
+ };
1271
+
1272
+
1273
+ /**
1274
+ * Serializes the message to binary data (in protobuf wire format).
1275
+ * @return {!Uint8Array}
1276
+ */
1277
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.prototype.serializeBinary = function() {
1278
+ var writer = new jspb.BinaryWriter();
1279
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.serializeBinaryToWriter(this, writer);
1280
+ return writer.getResultBuffer();
1281
+ };
1282
+
1283
+
1284
+ /**
1285
+ * Serializes the given message to binary data (in protobuf wire
1286
+ * format), writing to the given BinaryWriter.
1287
+ * @param {!proto.gateway.web.v1.RevokeCliSessionFamilyResponse} message
1288
+ * @param {!jspb.BinaryWriter} writer
1289
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1290
+ */
1291
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.serializeBinaryToWriter = function(message, writer) {
1292
+ var f = undefined;
1293
+ f = message.getStatus();
1294
+ if (f != null) {
1295
+ writer.writeMessage(
1296
+ 1,
1297
+ f,
1298
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
1299
+ );
1300
+ }
1301
+ };
1302
+
1303
+
1304
+ /**
1305
+ * optional gateway.common.v1.ResponseStatus status = 1;
1306
+ * @return {?proto.gateway.common.v1.ResponseStatus}
1307
+ */
1308
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.prototype.getStatus = function() {
1309
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
1310
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
1311
+ };
1312
+
1313
+
1314
+ /**
1315
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
1316
+ * @return {!proto.gateway.web.v1.RevokeCliSessionFamilyResponse} returns this
1317
+ */
1318
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.prototype.setStatus = function(value) {
1319
+ return jspb.Message.setWrapperField(this, 1, value);
1320
+ };
1321
+
1322
+
1323
+ /**
1324
+ * Clears the message field making it undefined.
1325
+ * @return {!proto.gateway.web.v1.RevokeCliSessionFamilyResponse} returns this
1326
+ */
1327
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.prototype.clearStatus = function() {
1328
+ return this.setStatus(undefined);
1329
+ };
1330
+
1331
+
1332
+ /**
1333
+ * Returns whether this field is set.
1334
+ * @return {boolean}
1335
+ */
1336
+ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.prototype.hasStatus = function() {
1337
+ return jspb.Message.getField(this, 1) != null;
1338
+ };
1339
+
1340
+
1341
+ goog.object.extend(exports, proto.gateway.web.v1);