@miradorlabs/web-grpc 1.0.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.
Files changed (33) hide show
  1. package/README.md +5 -0
  2. package/google/protobuf/timestamp.ts +229 -0
  3. package/package.json +11 -0
  4. package/proto/gateway/common/v1/status.ts +179 -0
  5. package/proto/gateway/common/v1/status_grpc_pb.js +1 -0
  6. package/proto/gateway/common/v1/status_pb.js +237 -0
  7. package/proto/gateway/common/v1/types.ts +176 -0
  8. package/proto/gateway/common/v1/types_grpc_pb.js +1 -0
  9. package/proto/gateway/common/v1/types_pb.js +216 -0
  10. package/proto/gateway/web/v1/account_gateway.ts +7037 -0
  11. package/proto/gateway/web/v1/account_gateway_grpc_pb.js +813 -0
  12. package/proto/gateway/web/v1/account_gateway_pb.js +14338 -0
  13. package/proto/gateway/web/v1/automation_gateway.ts +5605 -0
  14. package/proto/gateway/web/v1/automation_gateway_grpc_pb.js +485 -0
  15. package/proto/gateway/web/v1/automation_gateway_pb.js +11618 -0
  16. package/proto/gateway/web/v1/chain_gateway.ts +3805 -0
  17. package/proto/gateway/web/v1/chain_gateway_grpc_pb.js +115 -0
  18. package/proto/gateway/web/v1/chain_gateway_pb.js +7049 -0
  19. package/proto/gateway/web/v1/market_gateway.ts +492 -0
  20. package/proto/gateway/web/v1/market_gateway_grpc_pb.js +45 -0
  21. package/proto/gateway/web/v1/market_gateway_pb.js +1063 -0
  22. package/proto/gateway/web/v1/oauth_gateway.ts +1163 -0
  23. package/proto/gateway/web/v1/oauth_gateway_grpc_pb.js +150 -0
  24. package/proto/gateway/web/v1/oauth_gateway_pb.js +2316 -0
  25. package/proto/gateway/web/v1/plan_gateway.ts +2463 -0
  26. package/proto/gateway/web/v1/plan_gateway_grpc_pb.js +152 -0
  27. package/proto/gateway/web/v1/plan_gateway_pb.js +4840 -0
  28. package/proto/gateway/web/v1/stream_gateway.ts +2354 -0
  29. package/proto/gateway/web/v1/stream_gateway_grpc_pb.js +145 -0
  30. package/proto/gateway/web/v1/stream_gateway_pb.js +4593 -0
  31. package/proto/gateway/web/v1/trace_gateway.ts +16320 -0
  32. package/proto/gateway/web/v1/trace_gateway_grpc_pb.js +280 -0
  33. package/proto/gateway/web/v1/trace_gateway_pb.js +28667 -0
@@ -0,0 +1,2316 @@
1
+ // source: proto/gateway/web/v1/oauth_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 =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
26
+ var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
27
+ goog.object.extend(proto, proto_gateway_common_v1_status_pb);
28
+ goog.exportSymbol('proto.gateway.web.v1.CompleteSlackOAuthRequest', null, global);
29
+ goog.exportSymbol('proto.gateway.web.v1.CompleteSlackOAuthResponse', null, global);
30
+ goog.exportSymbol('proto.gateway.web.v1.GetOAuthConnectionRequest', null, global);
31
+ goog.exportSymbol('proto.gateway.web.v1.GetOAuthConnectionResponse', null, global);
32
+ goog.exportSymbol('proto.gateway.web.v1.InitiateSlackOAuthRequest', null, global);
33
+ goog.exportSymbol('proto.gateway.web.v1.InitiateSlackOAuthResponse', null, global);
34
+ goog.exportSymbol('proto.gateway.web.v1.ListSlackChannelsRequest', null, global);
35
+ goog.exportSymbol('proto.gateway.web.v1.ListSlackChannelsResponse', null, global);
36
+ goog.exportSymbol('proto.gateway.web.v1.OAuthConnection', null, global);
37
+ goog.exportSymbol('proto.gateway.web.v1.SlackChannel', null, global);
38
+ /**
39
+ * Generated by JsPbCodeGenerator.
40
+ * @param {Array=} opt_data Optional initial data array, typically from a
41
+ * server response, or constructed directly in Javascript. The array is used
42
+ * in place and becomes part of the constructed object. It is not cloned.
43
+ * If no data is provided, the constructed object will be empty, but still
44
+ * valid.
45
+ * @extends {jspb.Message}
46
+ * @constructor
47
+ */
48
+ proto.gateway.web.v1.OAuthConnection = function(opt_data) {
49
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
50
+ };
51
+ goog.inherits(proto.gateway.web.v1.OAuthConnection, jspb.Message);
52
+ if (goog.DEBUG && !COMPILED) {
53
+ /**
54
+ * @public
55
+ * @override
56
+ */
57
+ proto.gateway.web.v1.OAuthConnection.displayName = 'proto.gateway.web.v1.OAuthConnection';
58
+ }
59
+ /**
60
+ * Generated by JsPbCodeGenerator.
61
+ * @param {Array=} opt_data Optional initial data array, typically from a
62
+ * server response, or constructed directly in Javascript. The array is used
63
+ * in place and becomes part of the constructed object. It is not cloned.
64
+ * If no data is provided, the constructed object will be empty, but still
65
+ * valid.
66
+ * @extends {jspb.Message}
67
+ * @constructor
68
+ */
69
+ proto.gateway.web.v1.InitiateSlackOAuthRequest = function(opt_data) {
70
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
71
+ };
72
+ goog.inherits(proto.gateway.web.v1.InitiateSlackOAuthRequest, jspb.Message);
73
+ if (goog.DEBUG && !COMPILED) {
74
+ /**
75
+ * @public
76
+ * @override
77
+ */
78
+ proto.gateway.web.v1.InitiateSlackOAuthRequest.displayName = 'proto.gateway.web.v1.InitiateSlackOAuthRequest';
79
+ }
80
+ /**
81
+ * Generated by JsPbCodeGenerator.
82
+ * @param {Array=} opt_data Optional initial data array, typically from a
83
+ * server response, or constructed directly in Javascript. The array is used
84
+ * in place and becomes part of the constructed object. It is not cloned.
85
+ * If no data is provided, the constructed object will be empty, but still
86
+ * valid.
87
+ * @extends {jspb.Message}
88
+ * @constructor
89
+ */
90
+ proto.gateway.web.v1.InitiateSlackOAuthResponse = function(opt_data) {
91
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
92
+ };
93
+ goog.inherits(proto.gateway.web.v1.InitiateSlackOAuthResponse, jspb.Message);
94
+ if (goog.DEBUG && !COMPILED) {
95
+ /**
96
+ * @public
97
+ * @override
98
+ */
99
+ proto.gateway.web.v1.InitiateSlackOAuthResponse.displayName = 'proto.gateway.web.v1.InitiateSlackOAuthResponse';
100
+ }
101
+ /**
102
+ * Generated by JsPbCodeGenerator.
103
+ * @param {Array=} opt_data Optional initial data array, typically from a
104
+ * server response, or constructed directly in Javascript. The array is used
105
+ * in place and becomes part of the constructed object. It is not cloned.
106
+ * If no data is provided, the constructed object will be empty, but still
107
+ * valid.
108
+ * @extends {jspb.Message}
109
+ * @constructor
110
+ */
111
+ proto.gateway.web.v1.CompleteSlackOAuthRequest = function(opt_data) {
112
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
113
+ };
114
+ goog.inherits(proto.gateway.web.v1.CompleteSlackOAuthRequest, jspb.Message);
115
+ if (goog.DEBUG && !COMPILED) {
116
+ /**
117
+ * @public
118
+ * @override
119
+ */
120
+ proto.gateway.web.v1.CompleteSlackOAuthRequest.displayName = 'proto.gateway.web.v1.CompleteSlackOAuthRequest';
121
+ }
122
+ /**
123
+ * Generated by JsPbCodeGenerator.
124
+ * @param {Array=} opt_data Optional initial data array, typically from a
125
+ * server response, or constructed directly in Javascript. The array is used
126
+ * in place and becomes part of the constructed object. It is not cloned.
127
+ * If no data is provided, the constructed object will be empty, but still
128
+ * valid.
129
+ * @extends {jspb.Message}
130
+ * @constructor
131
+ */
132
+ proto.gateway.web.v1.CompleteSlackOAuthResponse = function(opt_data) {
133
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
134
+ };
135
+ goog.inherits(proto.gateway.web.v1.CompleteSlackOAuthResponse, jspb.Message);
136
+ if (goog.DEBUG && !COMPILED) {
137
+ /**
138
+ * @public
139
+ * @override
140
+ */
141
+ proto.gateway.web.v1.CompleteSlackOAuthResponse.displayName = 'proto.gateway.web.v1.CompleteSlackOAuthResponse';
142
+ }
143
+ /**
144
+ * Generated by JsPbCodeGenerator.
145
+ * @param {Array=} opt_data Optional initial data array, typically from a
146
+ * server response, or constructed directly in Javascript. The array is used
147
+ * in place and becomes part of the constructed object. It is not cloned.
148
+ * If no data is provided, the constructed object will be empty, but still
149
+ * valid.
150
+ * @extends {jspb.Message}
151
+ * @constructor
152
+ */
153
+ proto.gateway.web.v1.GetOAuthConnectionRequest = function(opt_data) {
154
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
155
+ };
156
+ goog.inherits(proto.gateway.web.v1.GetOAuthConnectionRequest, jspb.Message);
157
+ if (goog.DEBUG && !COMPILED) {
158
+ /**
159
+ * @public
160
+ * @override
161
+ */
162
+ proto.gateway.web.v1.GetOAuthConnectionRequest.displayName = 'proto.gateway.web.v1.GetOAuthConnectionRequest';
163
+ }
164
+ /**
165
+ * Generated by JsPbCodeGenerator.
166
+ * @param {Array=} opt_data Optional initial data array, typically from a
167
+ * server response, or constructed directly in Javascript. The array is used
168
+ * in place and becomes part of the constructed object. It is not cloned.
169
+ * If no data is provided, the constructed object will be empty, but still
170
+ * valid.
171
+ * @extends {jspb.Message}
172
+ * @constructor
173
+ */
174
+ proto.gateway.web.v1.GetOAuthConnectionResponse = function(opt_data) {
175
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
176
+ };
177
+ goog.inherits(proto.gateway.web.v1.GetOAuthConnectionResponse, jspb.Message);
178
+ if (goog.DEBUG && !COMPILED) {
179
+ /**
180
+ * @public
181
+ * @override
182
+ */
183
+ proto.gateway.web.v1.GetOAuthConnectionResponse.displayName = 'proto.gateway.web.v1.GetOAuthConnectionResponse';
184
+ }
185
+ /**
186
+ * Generated by JsPbCodeGenerator.
187
+ * @param {Array=} opt_data Optional initial data array, typically from a
188
+ * server response, or constructed directly in Javascript. The array is used
189
+ * in place and becomes part of the constructed object. It is not cloned.
190
+ * If no data is provided, the constructed object will be empty, but still
191
+ * valid.
192
+ * @extends {jspb.Message}
193
+ * @constructor
194
+ */
195
+ proto.gateway.web.v1.ListSlackChannelsRequest = function(opt_data) {
196
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
197
+ };
198
+ goog.inherits(proto.gateway.web.v1.ListSlackChannelsRequest, jspb.Message);
199
+ if (goog.DEBUG && !COMPILED) {
200
+ /**
201
+ * @public
202
+ * @override
203
+ */
204
+ proto.gateway.web.v1.ListSlackChannelsRequest.displayName = 'proto.gateway.web.v1.ListSlackChannelsRequest';
205
+ }
206
+ /**
207
+ * Generated by JsPbCodeGenerator.
208
+ * @param {Array=} opt_data Optional initial data array, typically from a
209
+ * server response, or constructed directly in Javascript. The array is used
210
+ * in place and becomes part of the constructed object. It is not cloned.
211
+ * If no data is provided, the constructed object will be empty, but still
212
+ * valid.
213
+ * @extends {jspb.Message}
214
+ * @constructor
215
+ */
216
+ proto.gateway.web.v1.ListSlackChannelsResponse = function(opt_data) {
217
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListSlackChannelsResponse.repeatedFields_, null);
218
+ };
219
+ goog.inherits(proto.gateway.web.v1.ListSlackChannelsResponse, jspb.Message);
220
+ if (goog.DEBUG && !COMPILED) {
221
+ /**
222
+ * @public
223
+ * @override
224
+ */
225
+ proto.gateway.web.v1.ListSlackChannelsResponse.displayName = 'proto.gateway.web.v1.ListSlackChannelsResponse';
226
+ }
227
+ /**
228
+ * Generated by JsPbCodeGenerator.
229
+ * @param {Array=} opt_data Optional initial data array, typically from a
230
+ * server response, or constructed directly in Javascript. The array is used
231
+ * in place and becomes part of the constructed object. It is not cloned.
232
+ * If no data is provided, the constructed object will be empty, but still
233
+ * valid.
234
+ * @extends {jspb.Message}
235
+ * @constructor
236
+ */
237
+ proto.gateway.web.v1.SlackChannel = function(opt_data) {
238
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
239
+ };
240
+ goog.inherits(proto.gateway.web.v1.SlackChannel, jspb.Message);
241
+ if (goog.DEBUG && !COMPILED) {
242
+ /**
243
+ * @public
244
+ * @override
245
+ */
246
+ proto.gateway.web.v1.SlackChannel.displayName = 'proto.gateway.web.v1.SlackChannel';
247
+ }
248
+
249
+
250
+
251
+ if (jspb.Message.GENERATE_TO_OBJECT) {
252
+ /**
253
+ * Creates an object representation of this proto.
254
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
255
+ * Optional fields that are not set will be set to undefined.
256
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
257
+ * For the list of reserved names please see:
258
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
259
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
260
+ * JSPB instance for transitional soy proto support:
261
+ * http://goto/soy-param-migration
262
+ * @return {!Object}
263
+ */
264
+ proto.gateway.web.v1.OAuthConnection.prototype.toObject = function(opt_includeInstance) {
265
+ return proto.gateway.web.v1.OAuthConnection.toObject(opt_includeInstance, this);
266
+ };
267
+
268
+
269
+ /**
270
+ * Static version of the {@see toObject} method.
271
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
272
+ * the JSPB instance for transitional soy proto support:
273
+ * http://goto/soy-param-migration
274
+ * @param {!proto.gateway.web.v1.OAuthConnection} msg The msg instance to transform.
275
+ * @return {!Object}
276
+ * @suppress {unusedLocalVariables} f is only used for nested messages
277
+ */
278
+ proto.gateway.web.v1.OAuthConnection.toObject = function(includeInstance, msg) {
279
+ var f, obj = {
280
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
281
+ organizationId: jspb.Message.getFieldWithDefault(msg, 2, ""),
282
+ provider: jspb.Message.getFieldWithDefault(msg, 3, ""),
283
+ providerTeamId: jspb.Message.getFieldWithDefault(msg, 4, ""),
284
+ providerTeamName: jspb.Message.getFieldWithDefault(msg, 5, ""),
285
+ installedBy: jspb.Message.getFieldWithDefault(msg, 6, ""),
286
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
287
+ updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
288
+ };
289
+
290
+ if (includeInstance) {
291
+ obj.$jspbMessageInstance = msg;
292
+ }
293
+ return obj;
294
+ };
295
+ }
296
+
297
+
298
+ /**
299
+ * Deserializes binary data (in protobuf wire format).
300
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
301
+ * @return {!proto.gateway.web.v1.OAuthConnection}
302
+ */
303
+ proto.gateway.web.v1.OAuthConnection.deserializeBinary = function(bytes) {
304
+ var reader = new jspb.BinaryReader(bytes);
305
+ var msg = new proto.gateway.web.v1.OAuthConnection;
306
+ return proto.gateway.web.v1.OAuthConnection.deserializeBinaryFromReader(msg, reader);
307
+ };
308
+
309
+
310
+ /**
311
+ * Deserializes binary data (in protobuf wire format) from the
312
+ * given reader into the given message object.
313
+ * @param {!proto.gateway.web.v1.OAuthConnection} msg The message object to deserialize into.
314
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
315
+ * @return {!proto.gateway.web.v1.OAuthConnection}
316
+ */
317
+ proto.gateway.web.v1.OAuthConnection.deserializeBinaryFromReader = function(msg, reader) {
318
+ while (reader.nextField()) {
319
+ if (reader.isEndGroup()) {
320
+ break;
321
+ }
322
+ var field = reader.getFieldNumber();
323
+ switch (field) {
324
+ case 1:
325
+ var value = /** @type {string} */ (reader.readString());
326
+ msg.setId(value);
327
+ break;
328
+ case 2:
329
+ var value = /** @type {string} */ (reader.readString());
330
+ msg.setOrganizationId(value);
331
+ break;
332
+ case 3:
333
+ var value = /** @type {string} */ (reader.readString());
334
+ msg.setProvider(value);
335
+ break;
336
+ case 4:
337
+ var value = /** @type {string} */ (reader.readString());
338
+ msg.setProviderTeamId(value);
339
+ break;
340
+ case 5:
341
+ var value = /** @type {string} */ (reader.readString());
342
+ msg.setProviderTeamName(value);
343
+ break;
344
+ case 6:
345
+ var value = /** @type {string} */ (reader.readString());
346
+ msg.setInstalledBy(value);
347
+ break;
348
+ case 7:
349
+ var value = new google_protobuf_timestamp_pb.Timestamp;
350
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
351
+ msg.setCreatedAt(value);
352
+ break;
353
+ case 8:
354
+ var value = new google_protobuf_timestamp_pb.Timestamp;
355
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
356
+ msg.setUpdatedAt(value);
357
+ break;
358
+ default:
359
+ reader.skipField();
360
+ break;
361
+ }
362
+ }
363
+ return msg;
364
+ };
365
+
366
+
367
+ /**
368
+ * Serializes the message to binary data (in protobuf wire format).
369
+ * @return {!Uint8Array}
370
+ */
371
+ proto.gateway.web.v1.OAuthConnection.prototype.serializeBinary = function() {
372
+ var writer = new jspb.BinaryWriter();
373
+ proto.gateway.web.v1.OAuthConnection.serializeBinaryToWriter(this, writer);
374
+ return writer.getResultBuffer();
375
+ };
376
+
377
+
378
+ /**
379
+ * Serializes the given message to binary data (in protobuf wire
380
+ * format), writing to the given BinaryWriter.
381
+ * @param {!proto.gateway.web.v1.OAuthConnection} message
382
+ * @param {!jspb.BinaryWriter} writer
383
+ * @suppress {unusedLocalVariables} f is only used for nested messages
384
+ */
385
+ proto.gateway.web.v1.OAuthConnection.serializeBinaryToWriter = function(message, writer) {
386
+ var f = undefined;
387
+ f = message.getId();
388
+ if (f.length > 0) {
389
+ writer.writeString(
390
+ 1,
391
+ f
392
+ );
393
+ }
394
+ f = message.getOrganizationId();
395
+ if (f.length > 0) {
396
+ writer.writeString(
397
+ 2,
398
+ f
399
+ );
400
+ }
401
+ f = message.getProvider();
402
+ if (f.length > 0) {
403
+ writer.writeString(
404
+ 3,
405
+ f
406
+ );
407
+ }
408
+ f = message.getProviderTeamId();
409
+ if (f.length > 0) {
410
+ writer.writeString(
411
+ 4,
412
+ f
413
+ );
414
+ }
415
+ f = message.getProviderTeamName();
416
+ if (f.length > 0) {
417
+ writer.writeString(
418
+ 5,
419
+ f
420
+ );
421
+ }
422
+ f = message.getInstalledBy();
423
+ if (f.length > 0) {
424
+ writer.writeString(
425
+ 6,
426
+ f
427
+ );
428
+ }
429
+ f = message.getCreatedAt();
430
+ if (f != null) {
431
+ writer.writeMessage(
432
+ 7,
433
+ f,
434
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
435
+ );
436
+ }
437
+ f = message.getUpdatedAt();
438
+ if (f != null) {
439
+ writer.writeMessage(
440
+ 8,
441
+ f,
442
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
443
+ );
444
+ }
445
+ };
446
+
447
+
448
+ /**
449
+ * optional string id = 1;
450
+ * @return {string}
451
+ */
452
+ proto.gateway.web.v1.OAuthConnection.prototype.getId = function() {
453
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
454
+ };
455
+
456
+
457
+ /**
458
+ * @param {string} value
459
+ * @return {!proto.gateway.web.v1.OAuthConnection} returns this
460
+ */
461
+ proto.gateway.web.v1.OAuthConnection.prototype.setId = function(value) {
462
+ return jspb.Message.setProto3StringField(this, 1, value);
463
+ };
464
+
465
+
466
+ /**
467
+ * optional string organization_id = 2;
468
+ * @return {string}
469
+ */
470
+ proto.gateway.web.v1.OAuthConnection.prototype.getOrganizationId = function() {
471
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
472
+ };
473
+
474
+
475
+ /**
476
+ * @param {string} value
477
+ * @return {!proto.gateway.web.v1.OAuthConnection} returns this
478
+ */
479
+ proto.gateway.web.v1.OAuthConnection.prototype.setOrganizationId = function(value) {
480
+ return jspb.Message.setProto3StringField(this, 2, value);
481
+ };
482
+
483
+
484
+ /**
485
+ * optional string provider = 3;
486
+ * @return {string}
487
+ */
488
+ proto.gateway.web.v1.OAuthConnection.prototype.getProvider = function() {
489
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
490
+ };
491
+
492
+
493
+ /**
494
+ * @param {string} value
495
+ * @return {!proto.gateway.web.v1.OAuthConnection} returns this
496
+ */
497
+ proto.gateway.web.v1.OAuthConnection.prototype.setProvider = function(value) {
498
+ return jspb.Message.setProto3StringField(this, 3, value);
499
+ };
500
+
501
+
502
+ /**
503
+ * optional string provider_team_id = 4;
504
+ * @return {string}
505
+ */
506
+ proto.gateway.web.v1.OAuthConnection.prototype.getProviderTeamId = function() {
507
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
508
+ };
509
+
510
+
511
+ /**
512
+ * @param {string} value
513
+ * @return {!proto.gateway.web.v1.OAuthConnection} returns this
514
+ */
515
+ proto.gateway.web.v1.OAuthConnection.prototype.setProviderTeamId = function(value) {
516
+ return jspb.Message.setProto3StringField(this, 4, value);
517
+ };
518
+
519
+
520
+ /**
521
+ * optional string provider_team_name = 5;
522
+ * @return {string}
523
+ */
524
+ proto.gateway.web.v1.OAuthConnection.prototype.getProviderTeamName = function() {
525
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
526
+ };
527
+
528
+
529
+ /**
530
+ * @param {string} value
531
+ * @return {!proto.gateway.web.v1.OAuthConnection} returns this
532
+ */
533
+ proto.gateway.web.v1.OAuthConnection.prototype.setProviderTeamName = function(value) {
534
+ return jspb.Message.setProto3StringField(this, 5, value);
535
+ };
536
+
537
+
538
+ /**
539
+ * optional string installed_by = 6;
540
+ * @return {string}
541
+ */
542
+ proto.gateway.web.v1.OAuthConnection.prototype.getInstalledBy = function() {
543
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
544
+ };
545
+
546
+
547
+ /**
548
+ * @param {string} value
549
+ * @return {!proto.gateway.web.v1.OAuthConnection} returns this
550
+ */
551
+ proto.gateway.web.v1.OAuthConnection.prototype.setInstalledBy = function(value) {
552
+ return jspb.Message.setProto3StringField(this, 6, value);
553
+ };
554
+
555
+
556
+ /**
557
+ * optional google.protobuf.Timestamp created_at = 7;
558
+ * @return {?proto.google.protobuf.Timestamp}
559
+ */
560
+ proto.gateway.web.v1.OAuthConnection.prototype.getCreatedAt = function() {
561
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
562
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
563
+ };
564
+
565
+
566
+ /**
567
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
568
+ * @return {!proto.gateway.web.v1.OAuthConnection} returns this
569
+ */
570
+ proto.gateway.web.v1.OAuthConnection.prototype.setCreatedAt = function(value) {
571
+ return jspb.Message.setWrapperField(this, 7, value);
572
+ };
573
+
574
+
575
+ /**
576
+ * Clears the message field making it undefined.
577
+ * @return {!proto.gateway.web.v1.OAuthConnection} returns this
578
+ */
579
+ proto.gateway.web.v1.OAuthConnection.prototype.clearCreatedAt = function() {
580
+ return this.setCreatedAt(undefined);
581
+ };
582
+
583
+
584
+ /**
585
+ * Returns whether this field is set.
586
+ * @return {boolean}
587
+ */
588
+ proto.gateway.web.v1.OAuthConnection.prototype.hasCreatedAt = function() {
589
+ return jspb.Message.getField(this, 7) != null;
590
+ };
591
+
592
+
593
+ /**
594
+ * optional google.protobuf.Timestamp updated_at = 8;
595
+ * @return {?proto.google.protobuf.Timestamp}
596
+ */
597
+ proto.gateway.web.v1.OAuthConnection.prototype.getUpdatedAt = function() {
598
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
599
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
600
+ };
601
+
602
+
603
+ /**
604
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
605
+ * @return {!proto.gateway.web.v1.OAuthConnection} returns this
606
+ */
607
+ proto.gateway.web.v1.OAuthConnection.prototype.setUpdatedAt = function(value) {
608
+ return jspb.Message.setWrapperField(this, 8, value);
609
+ };
610
+
611
+
612
+ /**
613
+ * Clears the message field making it undefined.
614
+ * @return {!proto.gateway.web.v1.OAuthConnection} returns this
615
+ */
616
+ proto.gateway.web.v1.OAuthConnection.prototype.clearUpdatedAt = function() {
617
+ return this.setUpdatedAt(undefined);
618
+ };
619
+
620
+
621
+ /**
622
+ * Returns whether this field is set.
623
+ * @return {boolean}
624
+ */
625
+ proto.gateway.web.v1.OAuthConnection.prototype.hasUpdatedAt = function() {
626
+ return jspb.Message.getField(this, 8) != null;
627
+ };
628
+
629
+
630
+
631
+
632
+
633
+ if (jspb.Message.GENERATE_TO_OBJECT) {
634
+ /**
635
+ * Creates an object representation of this proto.
636
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
637
+ * Optional fields that are not set will be set to undefined.
638
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
639
+ * For the list of reserved names please see:
640
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
641
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
642
+ * JSPB instance for transitional soy proto support:
643
+ * http://goto/soy-param-migration
644
+ * @return {!Object}
645
+ */
646
+ proto.gateway.web.v1.InitiateSlackOAuthRequest.prototype.toObject = function(opt_includeInstance) {
647
+ return proto.gateway.web.v1.InitiateSlackOAuthRequest.toObject(opt_includeInstance, this);
648
+ };
649
+
650
+
651
+ /**
652
+ * Static version of the {@see toObject} method.
653
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
654
+ * the JSPB instance for transitional soy proto support:
655
+ * http://goto/soy-param-migration
656
+ * @param {!proto.gateway.web.v1.InitiateSlackOAuthRequest} msg The msg instance to transform.
657
+ * @return {!Object}
658
+ * @suppress {unusedLocalVariables} f is only used for nested messages
659
+ */
660
+ proto.gateway.web.v1.InitiateSlackOAuthRequest.toObject = function(includeInstance, msg) {
661
+ var f, obj = {
662
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
663
+ redirectUri: jspb.Message.getFieldWithDefault(msg, 2, "")
664
+ };
665
+
666
+ if (includeInstance) {
667
+ obj.$jspbMessageInstance = msg;
668
+ }
669
+ return obj;
670
+ };
671
+ }
672
+
673
+
674
+ /**
675
+ * Deserializes binary data (in protobuf wire format).
676
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
677
+ * @return {!proto.gateway.web.v1.InitiateSlackOAuthRequest}
678
+ */
679
+ proto.gateway.web.v1.InitiateSlackOAuthRequest.deserializeBinary = function(bytes) {
680
+ var reader = new jspb.BinaryReader(bytes);
681
+ var msg = new proto.gateway.web.v1.InitiateSlackOAuthRequest;
682
+ return proto.gateway.web.v1.InitiateSlackOAuthRequest.deserializeBinaryFromReader(msg, reader);
683
+ };
684
+
685
+
686
+ /**
687
+ * Deserializes binary data (in protobuf wire format) from the
688
+ * given reader into the given message object.
689
+ * @param {!proto.gateway.web.v1.InitiateSlackOAuthRequest} msg The message object to deserialize into.
690
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
691
+ * @return {!proto.gateway.web.v1.InitiateSlackOAuthRequest}
692
+ */
693
+ proto.gateway.web.v1.InitiateSlackOAuthRequest.deserializeBinaryFromReader = function(msg, reader) {
694
+ while (reader.nextField()) {
695
+ if (reader.isEndGroup()) {
696
+ break;
697
+ }
698
+ var field = reader.getFieldNumber();
699
+ switch (field) {
700
+ case 1:
701
+ var value = /** @type {string} */ (reader.readString());
702
+ msg.setOrganizationId(value);
703
+ break;
704
+ case 2:
705
+ var value = /** @type {string} */ (reader.readString());
706
+ msg.setRedirectUri(value);
707
+ break;
708
+ default:
709
+ reader.skipField();
710
+ break;
711
+ }
712
+ }
713
+ return msg;
714
+ };
715
+
716
+
717
+ /**
718
+ * Serializes the message to binary data (in protobuf wire format).
719
+ * @return {!Uint8Array}
720
+ */
721
+ proto.gateway.web.v1.InitiateSlackOAuthRequest.prototype.serializeBinary = function() {
722
+ var writer = new jspb.BinaryWriter();
723
+ proto.gateway.web.v1.InitiateSlackOAuthRequest.serializeBinaryToWriter(this, writer);
724
+ return writer.getResultBuffer();
725
+ };
726
+
727
+
728
+ /**
729
+ * Serializes the given message to binary data (in protobuf wire
730
+ * format), writing to the given BinaryWriter.
731
+ * @param {!proto.gateway.web.v1.InitiateSlackOAuthRequest} message
732
+ * @param {!jspb.BinaryWriter} writer
733
+ * @suppress {unusedLocalVariables} f is only used for nested messages
734
+ */
735
+ proto.gateway.web.v1.InitiateSlackOAuthRequest.serializeBinaryToWriter = function(message, writer) {
736
+ var f = undefined;
737
+ f = message.getOrganizationId();
738
+ if (f.length > 0) {
739
+ writer.writeString(
740
+ 1,
741
+ f
742
+ );
743
+ }
744
+ f = message.getRedirectUri();
745
+ if (f.length > 0) {
746
+ writer.writeString(
747
+ 2,
748
+ f
749
+ );
750
+ }
751
+ };
752
+
753
+
754
+ /**
755
+ * optional string organization_id = 1;
756
+ * @return {string}
757
+ */
758
+ proto.gateway.web.v1.InitiateSlackOAuthRequest.prototype.getOrganizationId = function() {
759
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
760
+ };
761
+
762
+
763
+ /**
764
+ * @param {string} value
765
+ * @return {!proto.gateway.web.v1.InitiateSlackOAuthRequest} returns this
766
+ */
767
+ proto.gateway.web.v1.InitiateSlackOAuthRequest.prototype.setOrganizationId = function(value) {
768
+ return jspb.Message.setProto3StringField(this, 1, value);
769
+ };
770
+
771
+
772
+ /**
773
+ * optional string redirect_uri = 2;
774
+ * @return {string}
775
+ */
776
+ proto.gateway.web.v1.InitiateSlackOAuthRequest.prototype.getRedirectUri = function() {
777
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
778
+ };
779
+
780
+
781
+ /**
782
+ * @param {string} value
783
+ * @return {!proto.gateway.web.v1.InitiateSlackOAuthRequest} returns this
784
+ */
785
+ proto.gateway.web.v1.InitiateSlackOAuthRequest.prototype.setRedirectUri = function(value) {
786
+ return jspb.Message.setProto3StringField(this, 2, value);
787
+ };
788
+
789
+
790
+
791
+
792
+
793
+ if (jspb.Message.GENERATE_TO_OBJECT) {
794
+ /**
795
+ * Creates an object representation of this proto.
796
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
797
+ * Optional fields that are not set will be set to undefined.
798
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
799
+ * For the list of reserved names please see:
800
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
801
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
802
+ * JSPB instance for transitional soy proto support:
803
+ * http://goto/soy-param-migration
804
+ * @return {!Object}
805
+ */
806
+ proto.gateway.web.v1.InitiateSlackOAuthResponse.prototype.toObject = function(opt_includeInstance) {
807
+ return proto.gateway.web.v1.InitiateSlackOAuthResponse.toObject(opt_includeInstance, this);
808
+ };
809
+
810
+
811
+ /**
812
+ * Static version of the {@see toObject} method.
813
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
814
+ * the JSPB instance for transitional soy proto support:
815
+ * http://goto/soy-param-migration
816
+ * @param {!proto.gateway.web.v1.InitiateSlackOAuthResponse} msg The msg instance to transform.
817
+ * @return {!Object}
818
+ * @suppress {unusedLocalVariables} f is only used for nested messages
819
+ */
820
+ proto.gateway.web.v1.InitiateSlackOAuthResponse.toObject = function(includeInstance, msg) {
821
+ var f, obj = {
822
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
823
+ oauthUrl: jspb.Message.getFieldWithDefault(msg, 2, ""),
824
+ state: jspb.Message.getFieldWithDefault(msg, 3, "")
825
+ };
826
+
827
+ if (includeInstance) {
828
+ obj.$jspbMessageInstance = msg;
829
+ }
830
+ return obj;
831
+ };
832
+ }
833
+
834
+
835
+ /**
836
+ * Deserializes binary data (in protobuf wire format).
837
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
838
+ * @return {!proto.gateway.web.v1.InitiateSlackOAuthResponse}
839
+ */
840
+ proto.gateway.web.v1.InitiateSlackOAuthResponse.deserializeBinary = function(bytes) {
841
+ var reader = new jspb.BinaryReader(bytes);
842
+ var msg = new proto.gateway.web.v1.InitiateSlackOAuthResponse;
843
+ return proto.gateway.web.v1.InitiateSlackOAuthResponse.deserializeBinaryFromReader(msg, reader);
844
+ };
845
+
846
+
847
+ /**
848
+ * Deserializes binary data (in protobuf wire format) from the
849
+ * given reader into the given message object.
850
+ * @param {!proto.gateway.web.v1.InitiateSlackOAuthResponse} msg The message object to deserialize into.
851
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
852
+ * @return {!proto.gateway.web.v1.InitiateSlackOAuthResponse}
853
+ */
854
+ proto.gateway.web.v1.InitiateSlackOAuthResponse.deserializeBinaryFromReader = function(msg, reader) {
855
+ while (reader.nextField()) {
856
+ if (reader.isEndGroup()) {
857
+ break;
858
+ }
859
+ var field = reader.getFieldNumber();
860
+ switch (field) {
861
+ case 1:
862
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
863
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
864
+ msg.setStatus(value);
865
+ break;
866
+ case 2:
867
+ var value = /** @type {string} */ (reader.readString());
868
+ msg.setOauthUrl(value);
869
+ break;
870
+ case 3:
871
+ var value = /** @type {string} */ (reader.readString());
872
+ msg.setState(value);
873
+ break;
874
+ default:
875
+ reader.skipField();
876
+ break;
877
+ }
878
+ }
879
+ return msg;
880
+ };
881
+
882
+
883
+ /**
884
+ * Serializes the message to binary data (in protobuf wire format).
885
+ * @return {!Uint8Array}
886
+ */
887
+ proto.gateway.web.v1.InitiateSlackOAuthResponse.prototype.serializeBinary = function() {
888
+ var writer = new jspb.BinaryWriter();
889
+ proto.gateway.web.v1.InitiateSlackOAuthResponse.serializeBinaryToWriter(this, writer);
890
+ return writer.getResultBuffer();
891
+ };
892
+
893
+
894
+ /**
895
+ * Serializes the given message to binary data (in protobuf wire
896
+ * format), writing to the given BinaryWriter.
897
+ * @param {!proto.gateway.web.v1.InitiateSlackOAuthResponse} message
898
+ * @param {!jspb.BinaryWriter} writer
899
+ * @suppress {unusedLocalVariables} f is only used for nested messages
900
+ */
901
+ proto.gateway.web.v1.InitiateSlackOAuthResponse.serializeBinaryToWriter = function(message, writer) {
902
+ var f = undefined;
903
+ f = message.getStatus();
904
+ if (f != null) {
905
+ writer.writeMessage(
906
+ 1,
907
+ f,
908
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
909
+ );
910
+ }
911
+ f = message.getOauthUrl();
912
+ if (f.length > 0) {
913
+ writer.writeString(
914
+ 2,
915
+ f
916
+ );
917
+ }
918
+ f = message.getState();
919
+ if (f.length > 0) {
920
+ writer.writeString(
921
+ 3,
922
+ f
923
+ );
924
+ }
925
+ };
926
+
927
+
928
+ /**
929
+ * optional gateway.common.v1.ResponseStatus status = 1;
930
+ * @return {?proto.gateway.common.v1.ResponseStatus}
931
+ */
932
+ proto.gateway.web.v1.InitiateSlackOAuthResponse.prototype.getStatus = function() {
933
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
934
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
935
+ };
936
+
937
+
938
+ /**
939
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
940
+ * @return {!proto.gateway.web.v1.InitiateSlackOAuthResponse} returns this
941
+ */
942
+ proto.gateway.web.v1.InitiateSlackOAuthResponse.prototype.setStatus = function(value) {
943
+ return jspb.Message.setWrapperField(this, 1, value);
944
+ };
945
+
946
+
947
+ /**
948
+ * Clears the message field making it undefined.
949
+ * @return {!proto.gateway.web.v1.InitiateSlackOAuthResponse} returns this
950
+ */
951
+ proto.gateway.web.v1.InitiateSlackOAuthResponse.prototype.clearStatus = function() {
952
+ return this.setStatus(undefined);
953
+ };
954
+
955
+
956
+ /**
957
+ * Returns whether this field is set.
958
+ * @return {boolean}
959
+ */
960
+ proto.gateway.web.v1.InitiateSlackOAuthResponse.prototype.hasStatus = function() {
961
+ return jspb.Message.getField(this, 1) != null;
962
+ };
963
+
964
+
965
+ /**
966
+ * optional string oauth_url = 2;
967
+ * @return {string}
968
+ */
969
+ proto.gateway.web.v1.InitiateSlackOAuthResponse.prototype.getOauthUrl = function() {
970
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
971
+ };
972
+
973
+
974
+ /**
975
+ * @param {string} value
976
+ * @return {!proto.gateway.web.v1.InitiateSlackOAuthResponse} returns this
977
+ */
978
+ proto.gateway.web.v1.InitiateSlackOAuthResponse.prototype.setOauthUrl = function(value) {
979
+ return jspb.Message.setProto3StringField(this, 2, value);
980
+ };
981
+
982
+
983
+ /**
984
+ * optional string state = 3;
985
+ * @return {string}
986
+ */
987
+ proto.gateway.web.v1.InitiateSlackOAuthResponse.prototype.getState = function() {
988
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
989
+ };
990
+
991
+
992
+ /**
993
+ * @param {string} value
994
+ * @return {!proto.gateway.web.v1.InitiateSlackOAuthResponse} returns this
995
+ */
996
+ proto.gateway.web.v1.InitiateSlackOAuthResponse.prototype.setState = function(value) {
997
+ return jspb.Message.setProto3StringField(this, 3, value);
998
+ };
999
+
1000
+
1001
+
1002
+
1003
+
1004
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1005
+ /**
1006
+ * Creates an object representation of this proto.
1007
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1008
+ * Optional fields that are not set will be set to undefined.
1009
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1010
+ * For the list of reserved names please see:
1011
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1012
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1013
+ * JSPB instance for transitional soy proto support:
1014
+ * http://goto/soy-param-migration
1015
+ * @return {!Object}
1016
+ */
1017
+ proto.gateway.web.v1.CompleteSlackOAuthRequest.prototype.toObject = function(opt_includeInstance) {
1018
+ return proto.gateway.web.v1.CompleteSlackOAuthRequest.toObject(opt_includeInstance, this);
1019
+ };
1020
+
1021
+
1022
+ /**
1023
+ * Static version of the {@see toObject} method.
1024
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1025
+ * the JSPB instance for transitional soy proto support:
1026
+ * http://goto/soy-param-migration
1027
+ * @param {!proto.gateway.web.v1.CompleteSlackOAuthRequest} msg The msg instance to transform.
1028
+ * @return {!Object}
1029
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1030
+ */
1031
+ proto.gateway.web.v1.CompleteSlackOAuthRequest.toObject = function(includeInstance, msg) {
1032
+ var f, obj = {
1033
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1034
+ code: jspb.Message.getFieldWithDefault(msg, 2, ""),
1035
+ redirectUri: jspb.Message.getFieldWithDefault(msg, 3, ""),
1036
+ state: jspb.Message.getFieldWithDefault(msg, 4, "")
1037
+ };
1038
+
1039
+ if (includeInstance) {
1040
+ obj.$jspbMessageInstance = msg;
1041
+ }
1042
+ return obj;
1043
+ };
1044
+ }
1045
+
1046
+
1047
+ /**
1048
+ * Deserializes binary data (in protobuf wire format).
1049
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1050
+ * @return {!proto.gateway.web.v1.CompleteSlackOAuthRequest}
1051
+ */
1052
+ proto.gateway.web.v1.CompleteSlackOAuthRequest.deserializeBinary = function(bytes) {
1053
+ var reader = new jspb.BinaryReader(bytes);
1054
+ var msg = new proto.gateway.web.v1.CompleteSlackOAuthRequest;
1055
+ return proto.gateway.web.v1.CompleteSlackOAuthRequest.deserializeBinaryFromReader(msg, reader);
1056
+ };
1057
+
1058
+
1059
+ /**
1060
+ * Deserializes binary data (in protobuf wire format) from the
1061
+ * given reader into the given message object.
1062
+ * @param {!proto.gateway.web.v1.CompleteSlackOAuthRequest} msg The message object to deserialize into.
1063
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1064
+ * @return {!proto.gateway.web.v1.CompleteSlackOAuthRequest}
1065
+ */
1066
+ proto.gateway.web.v1.CompleteSlackOAuthRequest.deserializeBinaryFromReader = function(msg, reader) {
1067
+ while (reader.nextField()) {
1068
+ if (reader.isEndGroup()) {
1069
+ break;
1070
+ }
1071
+ var field = reader.getFieldNumber();
1072
+ switch (field) {
1073
+ case 1:
1074
+ var value = /** @type {string} */ (reader.readString());
1075
+ msg.setOrganizationId(value);
1076
+ break;
1077
+ case 2:
1078
+ var value = /** @type {string} */ (reader.readString());
1079
+ msg.setCode(value);
1080
+ break;
1081
+ case 3:
1082
+ var value = /** @type {string} */ (reader.readString());
1083
+ msg.setRedirectUri(value);
1084
+ break;
1085
+ case 4:
1086
+ var value = /** @type {string} */ (reader.readString());
1087
+ msg.setState(value);
1088
+ break;
1089
+ default:
1090
+ reader.skipField();
1091
+ break;
1092
+ }
1093
+ }
1094
+ return msg;
1095
+ };
1096
+
1097
+
1098
+ /**
1099
+ * Serializes the message to binary data (in protobuf wire format).
1100
+ * @return {!Uint8Array}
1101
+ */
1102
+ proto.gateway.web.v1.CompleteSlackOAuthRequest.prototype.serializeBinary = function() {
1103
+ var writer = new jspb.BinaryWriter();
1104
+ proto.gateway.web.v1.CompleteSlackOAuthRequest.serializeBinaryToWriter(this, writer);
1105
+ return writer.getResultBuffer();
1106
+ };
1107
+
1108
+
1109
+ /**
1110
+ * Serializes the given message to binary data (in protobuf wire
1111
+ * format), writing to the given BinaryWriter.
1112
+ * @param {!proto.gateway.web.v1.CompleteSlackOAuthRequest} message
1113
+ * @param {!jspb.BinaryWriter} writer
1114
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1115
+ */
1116
+ proto.gateway.web.v1.CompleteSlackOAuthRequest.serializeBinaryToWriter = function(message, writer) {
1117
+ var f = undefined;
1118
+ f = message.getOrganizationId();
1119
+ if (f.length > 0) {
1120
+ writer.writeString(
1121
+ 1,
1122
+ f
1123
+ );
1124
+ }
1125
+ f = message.getCode();
1126
+ if (f.length > 0) {
1127
+ writer.writeString(
1128
+ 2,
1129
+ f
1130
+ );
1131
+ }
1132
+ f = message.getRedirectUri();
1133
+ if (f.length > 0) {
1134
+ writer.writeString(
1135
+ 3,
1136
+ f
1137
+ );
1138
+ }
1139
+ f = message.getState();
1140
+ if (f.length > 0) {
1141
+ writer.writeString(
1142
+ 4,
1143
+ f
1144
+ );
1145
+ }
1146
+ };
1147
+
1148
+
1149
+ /**
1150
+ * optional string organization_id = 1;
1151
+ * @return {string}
1152
+ */
1153
+ proto.gateway.web.v1.CompleteSlackOAuthRequest.prototype.getOrganizationId = function() {
1154
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1155
+ };
1156
+
1157
+
1158
+ /**
1159
+ * @param {string} value
1160
+ * @return {!proto.gateway.web.v1.CompleteSlackOAuthRequest} returns this
1161
+ */
1162
+ proto.gateway.web.v1.CompleteSlackOAuthRequest.prototype.setOrganizationId = function(value) {
1163
+ return jspb.Message.setProto3StringField(this, 1, value);
1164
+ };
1165
+
1166
+
1167
+ /**
1168
+ * optional string code = 2;
1169
+ * @return {string}
1170
+ */
1171
+ proto.gateway.web.v1.CompleteSlackOAuthRequest.prototype.getCode = function() {
1172
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1173
+ };
1174
+
1175
+
1176
+ /**
1177
+ * @param {string} value
1178
+ * @return {!proto.gateway.web.v1.CompleteSlackOAuthRequest} returns this
1179
+ */
1180
+ proto.gateway.web.v1.CompleteSlackOAuthRequest.prototype.setCode = function(value) {
1181
+ return jspb.Message.setProto3StringField(this, 2, value);
1182
+ };
1183
+
1184
+
1185
+ /**
1186
+ * optional string redirect_uri = 3;
1187
+ * @return {string}
1188
+ */
1189
+ proto.gateway.web.v1.CompleteSlackOAuthRequest.prototype.getRedirectUri = function() {
1190
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1191
+ };
1192
+
1193
+
1194
+ /**
1195
+ * @param {string} value
1196
+ * @return {!proto.gateway.web.v1.CompleteSlackOAuthRequest} returns this
1197
+ */
1198
+ proto.gateway.web.v1.CompleteSlackOAuthRequest.prototype.setRedirectUri = function(value) {
1199
+ return jspb.Message.setProto3StringField(this, 3, value);
1200
+ };
1201
+
1202
+
1203
+ /**
1204
+ * optional string state = 4;
1205
+ * @return {string}
1206
+ */
1207
+ proto.gateway.web.v1.CompleteSlackOAuthRequest.prototype.getState = function() {
1208
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1209
+ };
1210
+
1211
+
1212
+ /**
1213
+ * @param {string} value
1214
+ * @return {!proto.gateway.web.v1.CompleteSlackOAuthRequest} returns this
1215
+ */
1216
+ proto.gateway.web.v1.CompleteSlackOAuthRequest.prototype.setState = function(value) {
1217
+ return jspb.Message.setProto3StringField(this, 4, value);
1218
+ };
1219
+
1220
+
1221
+
1222
+
1223
+
1224
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1225
+ /**
1226
+ * Creates an object representation of this proto.
1227
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1228
+ * Optional fields that are not set will be set to undefined.
1229
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1230
+ * For the list of reserved names please see:
1231
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1232
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1233
+ * JSPB instance for transitional soy proto support:
1234
+ * http://goto/soy-param-migration
1235
+ * @return {!Object}
1236
+ */
1237
+ proto.gateway.web.v1.CompleteSlackOAuthResponse.prototype.toObject = function(opt_includeInstance) {
1238
+ return proto.gateway.web.v1.CompleteSlackOAuthResponse.toObject(opt_includeInstance, this);
1239
+ };
1240
+
1241
+
1242
+ /**
1243
+ * Static version of the {@see toObject} method.
1244
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1245
+ * the JSPB instance for transitional soy proto support:
1246
+ * http://goto/soy-param-migration
1247
+ * @param {!proto.gateway.web.v1.CompleteSlackOAuthResponse} msg The msg instance to transform.
1248
+ * @return {!Object}
1249
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1250
+ */
1251
+ proto.gateway.web.v1.CompleteSlackOAuthResponse.toObject = function(includeInstance, msg) {
1252
+ var f, obj = {
1253
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
1254
+ oauthConnection: (f = msg.getOauthConnection()) && proto.gateway.web.v1.OAuthConnection.toObject(includeInstance, f)
1255
+ };
1256
+
1257
+ if (includeInstance) {
1258
+ obj.$jspbMessageInstance = msg;
1259
+ }
1260
+ return obj;
1261
+ };
1262
+ }
1263
+
1264
+
1265
+ /**
1266
+ * Deserializes binary data (in protobuf wire format).
1267
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1268
+ * @return {!proto.gateway.web.v1.CompleteSlackOAuthResponse}
1269
+ */
1270
+ proto.gateway.web.v1.CompleteSlackOAuthResponse.deserializeBinary = function(bytes) {
1271
+ var reader = new jspb.BinaryReader(bytes);
1272
+ var msg = new proto.gateway.web.v1.CompleteSlackOAuthResponse;
1273
+ return proto.gateway.web.v1.CompleteSlackOAuthResponse.deserializeBinaryFromReader(msg, reader);
1274
+ };
1275
+
1276
+
1277
+ /**
1278
+ * Deserializes binary data (in protobuf wire format) from the
1279
+ * given reader into the given message object.
1280
+ * @param {!proto.gateway.web.v1.CompleteSlackOAuthResponse} msg The message object to deserialize into.
1281
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1282
+ * @return {!proto.gateway.web.v1.CompleteSlackOAuthResponse}
1283
+ */
1284
+ proto.gateway.web.v1.CompleteSlackOAuthResponse.deserializeBinaryFromReader = function(msg, reader) {
1285
+ while (reader.nextField()) {
1286
+ if (reader.isEndGroup()) {
1287
+ break;
1288
+ }
1289
+ var field = reader.getFieldNumber();
1290
+ switch (field) {
1291
+ case 1:
1292
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
1293
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
1294
+ msg.setStatus(value);
1295
+ break;
1296
+ case 2:
1297
+ var value = new proto.gateway.web.v1.OAuthConnection;
1298
+ reader.readMessage(value,proto.gateway.web.v1.OAuthConnection.deserializeBinaryFromReader);
1299
+ msg.setOauthConnection(value);
1300
+ break;
1301
+ default:
1302
+ reader.skipField();
1303
+ break;
1304
+ }
1305
+ }
1306
+ return msg;
1307
+ };
1308
+
1309
+
1310
+ /**
1311
+ * Serializes the message to binary data (in protobuf wire format).
1312
+ * @return {!Uint8Array}
1313
+ */
1314
+ proto.gateway.web.v1.CompleteSlackOAuthResponse.prototype.serializeBinary = function() {
1315
+ var writer = new jspb.BinaryWriter();
1316
+ proto.gateway.web.v1.CompleteSlackOAuthResponse.serializeBinaryToWriter(this, writer);
1317
+ return writer.getResultBuffer();
1318
+ };
1319
+
1320
+
1321
+ /**
1322
+ * Serializes the given message to binary data (in protobuf wire
1323
+ * format), writing to the given BinaryWriter.
1324
+ * @param {!proto.gateway.web.v1.CompleteSlackOAuthResponse} message
1325
+ * @param {!jspb.BinaryWriter} writer
1326
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1327
+ */
1328
+ proto.gateway.web.v1.CompleteSlackOAuthResponse.serializeBinaryToWriter = function(message, writer) {
1329
+ var f = undefined;
1330
+ f = message.getStatus();
1331
+ if (f != null) {
1332
+ writer.writeMessage(
1333
+ 1,
1334
+ f,
1335
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
1336
+ );
1337
+ }
1338
+ f = message.getOauthConnection();
1339
+ if (f != null) {
1340
+ writer.writeMessage(
1341
+ 2,
1342
+ f,
1343
+ proto.gateway.web.v1.OAuthConnection.serializeBinaryToWriter
1344
+ );
1345
+ }
1346
+ };
1347
+
1348
+
1349
+ /**
1350
+ * optional gateway.common.v1.ResponseStatus status = 1;
1351
+ * @return {?proto.gateway.common.v1.ResponseStatus}
1352
+ */
1353
+ proto.gateway.web.v1.CompleteSlackOAuthResponse.prototype.getStatus = function() {
1354
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
1355
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
1356
+ };
1357
+
1358
+
1359
+ /**
1360
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
1361
+ * @return {!proto.gateway.web.v1.CompleteSlackOAuthResponse} returns this
1362
+ */
1363
+ proto.gateway.web.v1.CompleteSlackOAuthResponse.prototype.setStatus = function(value) {
1364
+ return jspb.Message.setWrapperField(this, 1, value);
1365
+ };
1366
+
1367
+
1368
+ /**
1369
+ * Clears the message field making it undefined.
1370
+ * @return {!proto.gateway.web.v1.CompleteSlackOAuthResponse} returns this
1371
+ */
1372
+ proto.gateway.web.v1.CompleteSlackOAuthResponse.prototype.clearStatus = function() {
1373
+ return this.setStatus(undefined);
1374
+ };
1375
+
1376
+
1377
+ /**
1378
+ * Returns whether this field is set.
1379
+ * @return {boolean}
1380
+ */
1381
+ proto.gateway.web.v1.CompleteSlackOAuthResponse.prototype.hasStatus = function() {
1382
+ return jspb.Message.getField(this, 1) != null;
1383
+ };
1384
+
1385
+
1386
+ /**
1387
+ * optional OAuthConnection oauth_connection = 2;
1388
+ * @return {?proto.gateway.web.v1.OAuthConnection}
1389
+ */
1390
+ proto.gateway.web.v1.CompleteSlackOAuthResponse.prototype.getOauthConnection = function() {
1391
+ return /** @type{?proto.gateway.web.v1.OAuthConnection} */ (
1392
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.OAuthConnection, 2));
1393
+ };
1394
+
1395
+
1396
+ /**
1397
+ * @param {?proto.gateway.web.v1.OAuthConnection|undefined} value
1398
+ * @return {!proto.gateway.web.v1.CompleteSlackOAuthResponse} returns this
1399
+ */
1400
+ proto.gateway.web.v1.CompleteSlackOAuthResponse.prototype.setOauthConnection = function(value) {
1401
+ return jspb.Message.setWrapperField(this, 2, value);
1402
+ };
1403
+
1404
+
1405
+ /**
1406
+ * Clears the message field making it undefined.
1407
+ * @return {!proto.gateway.web.v1.CompleteSlackOAuthResponse} returns this
1408
+ */
1409
+ proto.gateway.web.v1.CompleteSlackOAuthResponse.prototype.clearOauthConnection = function() {
1410
+ return this.setOauthConnection(undefined);
1411
+ };
1412
+
1413
+
1414
+ /**
1415
+ * Returns whether this field is set.
1416
+ * @return {boolean}
1417
+ */
1418
+ proto.gateway.web.v1.CompleteSlackOAuthResponse.prototype.hasOauthConnection = function() {
1419
+ return jspb.Message.getField(this, 2) != null;
1420
+ };
1421
+
1422
+
1423
+
1424
+
1425
+
1426
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1427
+ /**
1428
+ * Creates an object representation of this proto.
1429
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1430
+ * Optional fields that are not set will be set to undefined.
1431
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1432
+ * For the list of reserved names please see:
1433
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1434
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1435
+ * JSPB instance for transitional soy proto support:
1436
+ * http://goto/soy-param-migration
1437
+ * @return {!Object}
1438
+ */
1439
+ proto.gateway.web.v1.GetOAuthConnectionRequest.prototype.toObject = function(opt_includeInstance) {
1440
+ return proto.gateway.web.v1.GetOAuthConnectionRequest.toObject(opt_includeInstance, this);
1441
+ };
1442
+
1443
+
1444
+ /**
1445
+ * Static version of the {@see toObject} method.
1446
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1447
+ * the JSPB instance for transitional soy proto support:
1448
+ * http://goto/soy-param-migration
1449
+ * @param {!proto.gateway.web.v1.GetOAuthConnectionRequest} msg The msg instance to transform.
1450
+ * @return {!Object}
1451
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1452
+ */
1453
+ proto.gateway.web.v1.GetOAuthConnectionRequest.toObject = function(includeInstance, msg) {
1454
+ var f, obj = {
1455
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1456
+ provider: jspb.Message.getFieldWithDefault(msg, 2, "")
1457
+ };
1458
+
1459
+ if (includeInstance) {
1460
+ obj.$jspbMessageInstance = msg;
1461
+ }
1462
+ return obj;
1463
+ };
1464
+ }
1465
+
1466
+
1467
+ /**
1468
+ * Deserializes binary data (in protobuf wire format).
1469
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1470
+ * @return {!proto.gateway.web.v1.GetOAuthConnectionRequest}
1471
+ */
1472
+ proto.gateway.web.v1.GetOAuthConnectionRequest.deserializeBinary = function(bytes) {
1473
+ var reader = new jspb.BinaryReader(bytes);
1474
+ var msg = new proto.gateway.web.v1.GetOAuthConnectionRequest;
1475
+ return proto.gateway.web.v1.GetOAuthConnectionRequest.deserializeBinaryFromReader(msg, reader);
1476
+ };
1477
+
1478
+
1479
+ /**
1480
+ * Deserializes binary data (in protobuf wire format) from the
1481
+ * given reader into the given message object.
1482
+ * @param {!proto.gateway.web.v1.GetOAuthConnectionRequest} msg The message object to deserialize into.
1483
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1484
+ * @return {!proto.gateway.web.v1.GetOAuthConnectionRequest}
1485
+ */
1486
+ proto.gateway.web.v1.GetOAuthConnectionRequest.deserializeBinaryFromReader = function(msg, reader) {
1487
+ while (reader.nextField()) {
1488
+ if (reader.isEndGroup()) {
1489
+ break;
1490
+ }
1491
+ var field = reader.getFieldNumber();
1492
+ switch (field) {
1493
+ case 1:
1494
+ var value = /** @type {string} */ (reader.readString());
1495
+ msg.setOrganizationId(value);
1496
+ break;
1497
+ case 2:
1498
+ var value = /** @type {string} */ (reader.readString());
1499
+ msg.setProvider(value);
1500
+ break;
1501
+ default:
1502
+ reader.skipField();
1503
+ break;
1504
+ }
1505
+ }
1506
+ return msg;
1507
+ };
1508
+
1509
+
1510
+ /**
1511
+ * Serializes the message to binary data (in protobuf wire format).
1512
+ * @return {!Uint8Array}
1513
+ */
1514
+ proto.gateway.web.v1.GetOAuthConnectionRequest.prototype.serializeBinary = function() {
1515
+ var writer = new jspb.BinaryWriter();
1516
+ proto.gateway.web.v1.GetOAuthConnectionRequest.serializeBinaryToWriter(this, writer);
1517
+ return writer.getResultBuffer();
1518
+ };
1519
+
1520
+
1521
+ /**
1522
+ * Serializes the given message to binary data (in protobuf wire
1523
+ * format), writing to the given BinaryWriter.
1524
+ * @param {!proto.gateway.web.v1.GetOAuthConnectionRequest} message
1525
+ * @param {!jspb.BinaryWriter} writer
1526
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1527
+ */
1528
+ proto.gateway.web.v1.GetOAuthConnectionRequest.serializeBinaryToWriter = function(message, writer) {
1529
+ var f = undefined;
1530
+ f = message.getOrganizationId();
1531
+ if (f.length > 0) {
1532
+ writer.writeString(
1533
+ 1,
1534
+ f
1535
+ );
1536
+ }
1537
+ f = message.getProvider();
1538
+ if (f.length > 0) {
1539
+ writer.writeString(
1540
+ 2,
1541
+ f
1542
+ );
1543
+ }
1544
+ };
1545
+
1546
+
1547
+ /**
1548
+ * optional string organization_id = 1;
1549
+ * @return {string}
1550
+ */
1551
+ proto.gateway.web.v1.GetOAuthConnectionRequest.prototype.getOrganizationId = function() {
1552
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1553
+ };
1554
+
1555
+
1556
+ /**
1557
+ * @param {string} value
1558
+ * @return {!proto.gateway.web.v1.GetOAuthConnectionRequest} returns this
1559
+ */
1560
+ proto.gateway.web.v1.GetOAuthConnectionRequest.prototype.setOrganizationId = function(value) {
1561
+ return jspb.Message.setProto3StringField(this, 1, value);
1562
+ };
1563
+
1564
+
1565
+ /**
1566
+ * optional string provider = 2;
1567
+ * @return {string}
1568
+ */
1569
+ proto.gateway.web.v1.GetOAuthConnectionRequest.prototype.getProvider = function() {
1570
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1571
+ };
1572
+
1573
+
1574
+ /**
1575
+ * @param {string} value
1576
+ * @return {!proto.gateway.web.v1.GetOAuthConnectionRequest} returns this
1577
+ */
1578
+ proto.gateway.web.v1.GetOAuthConnectionRequest.prototype.setProvider = function(value) {
1579
+ return jspb.Message.setProto3StringField(this, 2, value);
1580
+ };
1581
+
1582
+
1583
+
1584
+
1585
+
1586
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1587
+ /**
1588
+ * Creates an object representation of this proto.
1589
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1590
+ * Optional fields that are not set will be set to undefined.
1591
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1592
+ * For the list of reserved names please see:
1593
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1594
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1595
+ * JSPB instance for transitional soy proto support:
1596
+ * http://goto/soy-param-migration
1597
+ * @return {!Object}
1598
+ */
1599
+ proto.gateway.web.v1.GetOAuthConnectionResponse.prototype.toObject = function(opt_includeInstance) {
1600
+ return proto.gateway.web.v1.GetOAuthConnectionResponse.toObject(opt_includeInstance, this);
1601
+ };
1602
+
1603
+
1604
+ /**
1605
+ * Static version of the {@see toObject} method.
1606
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1607
+ * the JSPB instance for transitional soy proto support:
1608
+ * http://goto/soy-param-migration
1609
+ * @param {!proto.gateway.web.v1.GetOAuthConnectionResponse} msg The msg instance to transform.
1610
+ * @return {!Object}
1611
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1612
+ */
1613
+ proto.gateway.web.v1.GetOAuthConnectionResponse.toObject = function(includeInstance, msg) {
1614
+ var f, obj = {
1615
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
1616
+ oauthConnection: (f = msg.getOauthConnection()) && proto.gateway.web.v1.OAuthConnection.toObject(includeInstance, f)
1617
+ };
1618
+
1619
+ if (includeInstance) {
1620
+ obj.$jspbMessageInstance = msg;
1621
+ }
1622
+ return obj;
1623
+ };
1624
+ }
1625
+
1626
+
1627
+ /**
1628
+ * Deserializes binary data (in protobuf wire format).
1629
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1630
+ * @return {!proto.gateway.web.v1.GetOAuthConnectionResponse}
1631
+ */
1632
+ proto.gateway.web.v1.GetOAuthConnectionResponse.deserializeBinary = function(bytes) {
1633
+ var reader = new jspb.BinaryReader(bytes);
1634
+ var msg = new proto.gateway.web.v1.GetOAuthConnectionResponse;
1635
+ return proto.gateway.web.v1.GetOAuthConnectionResponse.deserializeBinaryFromReader(msg, reader);
1636
+ };
1637
+
1638
+
1639
+ /**
1640
+ * Deserializes binary data (in protobuf wire format) from the
1641
+ * given reader into the given message object.
1642
+ * @param {!proto.gateway.web.v1.GetOAuthConnectionResponse} msg The message object to deserialize into.
1643
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1644
+ * @return {!proto.gateway.web.v1.GetOAuthConnectionResponse}
1645
+ */
1646
+ proto.gateway.web.v1.GetOAuthConnectionResponse.deserializeBinaryFromReader = function(msg, reader) {
1647
+ while (reader.nextField()) {
1648
+ if (reader.isEndGroup()) {
1649
+ break;
1650
+ }
1651
+ var field = reader.getFieldNumber();
1652
+ switch (field) {
1653
+ case 1:
1654
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
1655
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
1656
+ msg.setStatus(value);
1657
+ break;
1658
+ case 2:
1659
+ var value = new proto.gateway.web.v1.OAuthConnection;
1660
+ reader.readMessage(value,proto.gateway.web.v1.OAuthConnection.deserializeBinaryFromReader);
1661
+ msg.setOauthConnection(value);
1662
+ break;
1663
+ default:
1664
+ reader.skipField();
1665
+ break;
1666
+ }
1667
+ }
1668
+ return msg;
1669
+ };
1670
+
1671
+
1672
+ /**
1673
+ * Serializes the message to binary data (in protobuf wire format).
1674
+ * @return {!Uint8Array}
1675
+ */
1676
+ proto.gateway.web.v1.GetOAuthConnectionResponse.prototype.serializeBinary = function() {
1677
+ var writer = new jspb.BinaryWriter();
1678
+ proto.gateway.web.v1.GetOAuthConnectionResponse.serializeBinaryToWriter(this, writer);
1679
+ return writer.getResultBuffer();
1680
+ };
1681
+
1682
+
1683
+ /**
1684
+ * Serializes the given message to binary data (in protobuf wire
1685
+ * format), writing to the given BinaryWriter.
1686
+ * @param {!proto.gateway.web.v1.GetOAuthConnectionResponse} message
1687
+ * @param {!jspb.BinaryWriter} writer
1688
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1689
+ */
1690
+ proto.gateway.web.v1.GetOAuthConnectionResponse.serializeBinaryToWriter = function(message, writer) {
1691
+ var f = undefined;
1692
+ f = message.getStatus();
1693
+ if (f != null) {
1694
+ writer.writeMessage(
1695
+ 1,
1696
+ f,
1697
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
1698
+ );
1699
+ }
1700
+ f = message.getOauthConnection();
1701
+ if (f != null) {
1702
+ writer.writeMessage(
1703
+ 2,
1704
+ f,
1705
+ proto.gateway.web.v1.OAuthConnection.serializeBinaryToWriter
1706
+ );
1707
+ }
1708
+ };
1709
+
1710
+
1711
+ /**
1712
+ * optional gateway.common.v1.ResponseStatus status = 1;
1713
+ * @return {?proto.gateway.common.v1.ResponseStatus}
1714
+ */
1715
+ proto.gateway.web.v1.GetOAuthConnectionResponse.prototype.getStatus = function() {
1716
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
1717
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
1718
+ };
1719
+
1720
+
1721
+ /**
1722
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
1723
+ * @return {!proto.gateway.web.v1.GetOAuthConnectionResponse} returns this
1724
+ */
1725
+ proto.gateway.web.v1.GetOAuthConnectionResponse.prototype.setStatus = function(value) {
1726
+ return jspb.Message.setWrapperField(this, 1, value);
1727
+ };
1728
+
1729
+
1730
+ /**
1731
+ * Clears the message field making it undefined.
1732
+ * @return {!proto.gateway.web.v1.GetOAuthConnectionResponse} returns this
1733
+ */
1734
+ proto.gateway.web.v1.GetOAuthConnectionResponse.prototype.clearStatus = function() {
1735
+ return this.setStatus(undefined);
1736
+ };
1737
+
1738
+
1739
+ /**
1740
+ * Returns whether this field is set.
1741
+ * @return {boolean}
1742
+ */
1743
+ proto.gateway.web.v1.GetOAuthConnectionResponse.prototype.hasStatus = function() {
1744
+ return jspb.Message.getField(this, 1) != null;
1745
+ };
1746
+
1747
+
1748
+ /**
1749
+ * optional OAuthConnection oauth_connection = 2;
1750
+ * @return {?proto.gateway.web.v1.OAuthConnection}
1751
+ */
1752
+ proto.gateway.web.v1.GetOAuthConnectionResponse.prototype.getOauthConnection = function() {
1753
+ return /** @type{?proto.gateway.web.v1.OAuthConnection} */ (
1754
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.OAuthConnection, 2));
1755
+ };
1756
+
1757
+
1758
+ /**
1759
+ * @param {?proto.gateway.web.v1.OAuthConnection|undefined} value
1760
+ * @return {!proto.gateway.web.v1.GetOAuthConnectionResponse} returns this
1761
+ */
1762
+ proto.gateway.web.v1.GetOAuthConnectionResponse.prototype.setOauthConnection = function(value) {
1763
+ return jspb.Message.setWrapperField(this, 2, value);
1764
+ };
1765
+
1766
+
1767
+ /**
1768
+ * Clears the message field making it undefined.
1769
+ * @return {!proto.gateway.web.v1.GetOAuthConnectionResponse} returns this
1770
+ */
1771
+ proto.gateway.web.v1.GetOAuthConnectionResponse.prototype.clearOauthConnection = function() {
1772
+ return this.setOauthConnection(undefined);
1773
+ };
1774
+
1775
+
1776
+ /**
1777
+ * Returns whether this field is set.
1778
+ * @return {boolean}
1779
+ */
1780
+ proto.gateway.web.v1.GetOAuthConnectionResponse.prototype.hasOauthConnection = function() {
1781
+ return jspb.Message.getField(this, 2) != null;
1782
+ };
1783
+
1784
+
1785
+
1786
+
1787
+
1788
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1789
+ /**
1790
+ * Creates an object representation of this proto.
1791
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1792
+ * Optional fields that are not set will be set to undefined.
1793
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1794
+ * For the list of reserved names please see:
1795
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1796
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1797
+ * JSPB instance for transitional soy proto support:
1798
+ * http://goto/soy-param-migration
1799
+ * @return {!Object}
1800
+ */
1801
+ proto.gateway.web.v1.ListSlackChannelsRequest.prototype.toObject = function(opt_includeInstance) {
1802
+ return proto.gateway.web.v1.ListSlackChannelsRequest.toObject(opt_includeInstance, this);
1803
+ };
1804
+
1805
+
1806
+ /**
1807
+ * Static version of the {@see toObject} method.
1808
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1809
+ * the JSPB instance for transitional soy proto support:
1810
+ * http://goto/soy-param-migration
1811
+ * @param {!proto.gateway.web.v1.ListSlackChannelsRequest} msg The msg instance to transform.
1812
+ * @return {!Object}
1813
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1814
+ */
1815
+ proto.gateway.web.v1.ListSlackChannelsRequest.toObject = function(includeInstance, msg) {
1816
+ var f, obj = {
1817
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, "")
1818
+ };
1819
+
1820
+ if (includeInstance) {
1821
+ obj.$jspbMessageInstance = msg;
1822
+ }
1823
+ return obj;
1824
+ };
1825
+ }
1826
+
1827
+
1828
+ /**
1829
+ * Deserializes binary data (in protobuf wire format).
1830
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1831
+ * @return {!proto.gateway.web.v1.ListSlackChannelsRequest}
1832
+ */
1833
+ proto.gateway.web.v1.ListSlackChannelsRequest.deserializeBinary = function(bytes) {
1834
+ var reader = new jspb.BinaryReader(bytes);
1835
+ var msg = new proto.gateway.web.v1.ListSlackChannelsRequest;
1836
+ return proto.gateway.web.v1.ListSlackChannelsRequest.deserializeBinaryFromReader(msg, reader);
1837
+ };
1838
+
1839
+
1840
+ /**
1841
+ * Deserializes binary data (in protobuf wire format) from the
1842
+ * given reader into the given message object.
1843
+ * @param {!proto.gateway.web.v1.ListSlackChannelsRequest} msg The message object to deserialize into.
1844
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1845
+ * @return {!proto.gateway.web.v1.ListSlackChannelsRequest}
1846
+ */
1847
+ proto.gateway.web.v1.ListSlackChannelsRequest.deserializeBinaryFromReader = function(msg, reader) {
1848
+ while (reader.nextField()) {
1849
+ if (reader.isEndGroup()) {
1850
+ break;
1851
+ }
1852
+ var field = reader.getFieldNumber();
1853
+ switch (field) {
1854
+ case 1:
1855
+ var value = /** @type {string} */ (reader.readString());
1856
+ msg.setOrganizationId(value);
1857
+ break;
1858
+ default:
1859
+ reader.skipField();
1860
+ break;
1861
+ }
1862
+ }
1863
+ return msg;
1864
+ };
1865
+
1866
+
1867
+ /**
1868
+ * Serializes the message to binary data (in protobuf wire format).
1869
+ * @return {!Uint8Array}
1870
+ */
1871
+ proto.gateway.web.v1.ListSlackChannelsRequest.prototype.serializeBinary = function() {
1872
+ var writer = new jspb.BinaryWriter();
1873
+ proto.gateway.web.v1.ListSlackChannelsRequest.serializeBinaryToWriter(this, writer);
1874
+ return writer.getResultBuffer();
1875
+ };
1876
+
1877
+
1878
+ /**
1879
+ * Serializes the given message to binary data (in protobuf wire
1880
+ * format), writing to the given BinaryWriter.
1881
+ * @param {!proto.gateway.web.v1.ListSlackChannelsRequest} message
1882
+ * @param {!jspb.BinaryWriter} writer
1883
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1884
+ */
1885
+ proto.gateway.web.v1.ListSlackChannelsRequest.serializeBinaryToWriter = function(message, writer) {
1886
+ var f = undefined;
1887
+ f = message.getOrganizationId();
1888
+ if (f.length > 0) {
1889
+ writer.writeString(
1890
+ 1,
1891
+ f
1892
+ );
1893
+ }
1894
+ };
1895
+
1896
+
1897
+ /**
1898
+ * optional string organization_id = 1;
1899
+ * @return {string}
1900
+ */
1901
+ proto.gateway.web.v1.ListSlackChannelsRequest.prototype.getOrganizationId = function() {
1902
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1903
+ };
1904
+
1905
+
1906
+ /**
1907
+ * @param {string} value
1908
+ * @return {!proto.gateway.web.v1.ListSlackChannelsRequest} returns this
1909
+ */
1910
+ proto.gateway.web.v1.ListSlackChannelsRequest.prototype.setOrganizationId = function(value) {
1911
+ return jspb.Message.setProto3StringField(this, 1, value);
1912
+ };
1913
+
1914
+
1915
+
1916
+ /**
1917
+ * List of repeated fields within this message type.
1918
+ * @private {!Array<number>}
1919
+ * @const
1920
+ */
1921
+ proto.gateway.web.v1.ListSlackChannelsResponse.repeatedFields_ = [2];
1922
+
1923
+
1924
+
1925
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1926
+ /**
1927
+ * Creates an object representation of this proto.
1928
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1929
+ * Optional fields that are not set will be set to undefined.
1930
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1931
+ * For the list of reserved names please see:
1932
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1933
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1934
+ * JSPB instance for transitional soy proto support:
1935
+ * http://goto/soy-param-migration
1936
+ * @return {!Object}
1937
+ */
1938
+ proto.gateway.web.v1.ListSlackChannelsResponse.prototype.toObject = function(opt_includeInstance) {
1939
+ return proto.gateway.web.v1.ListSlackChannelsResponse.toObject(opt_includeInstance, this);
1940
+ };
1941
+
1942
+
1943
+ /**
1944
+ * Static version of the {@see toObject} method.
1945
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1946
+ * the JSPB instance for transitional soy proto support:
1947
+ * http://goto/soy-param-migration
1948
+ * @param {!proto.gateway.web.v1.ListSlackChannelsResponse} msg The msg instance to transform.
1949
+ * @return {!Object}
1950
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1951
+ */
1952
+ proto.gateway.web.v1.ListSlackChannelsResponse.toObject = function(includeInstance, msg) {
1953
+ var f, obj = {
1954
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
1955
+ channelsList: jspb.Message.toObjectList(msg.getChannelsList(),
1956
+ proto.gateway.web.v1.SlackChannel.toObject, includeInstance)
1957
+ };
1958
+
1959
+ if (includeInstance) {
1960
+ obj.$jspbMessageInstance = msg;
1961
+ }
1962
+ return obj;
1963
+ };
1964
+ }
1965
+
1966
+
1967
+ /**
1968
+ * Deserializes binary data (in protobuf wire format).
1969
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1970
+ * @return {!proto.gateway.web.v1.ListSlackChannelsResponse}
1971
+ */
1972
+ proto.gateway.web.v1.ListSlackChannelsResponse.deserializeBinary = function(bytes) {
1973
+ var reader = new jspb.BinaryReader(bytes);
1974
+ var msg = new proto.gateway.web.v1.ListSlackChannelsResponse;
1975
+ return proto.gateway.web.v1.ListSlackChannelsResponse.deserializeBinaryFromReader(msg, reader);
1976
+ };
1977
+
1978
+
1979
+ /**
1980
+ * Deserializes binary data (in protobuf wire format) from the
1981
+ * given reader into the given message object.
1982
+ * @param {!proto.gateway.web.v1.ListSlackChannelsResponse} msg The message object to deserialize into.
1983
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1984
+ * @return {!proto.gateway.web.v1.ListSlackChannelsResponse}
1985
+ */
1986
+ proto.gateway.web.v1.ListSlackChannelsResponse.deserializeBinaryFromReader = function(msg, reader) {
1987
+ while (reader.nextField()) {
1988
+ if (reader.isEndGroup()) {
1989
+ break;
1990
+ }
1991
+ var field = reader.getFieldNumber();
1992
+ switch (field) {
1993
+ case 1:
1994
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
1995
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
1996
+ msg.setStatus(value);
1997
+ break;
1998
+ case 2:
1999
+ var value = new proto.gateway.web.v1.SlackChannel;
2000
+ reader.readMessage(value,proto.gateway.web.v1.SlackChannel.deserializeBinaryFromReader);
2001
+ msg.addChannels(value);
2002
+ break;
2003
+ default:
2004
+ reader.skipField();
2005
+ break;
2006
+ }
2007
+ }
2008
+ return msg;
2009
+ };
2010
+
2011
+
2012
+ /**
2013
+ * Serializes the message to binary data (in protobuf wire format).
2014
+ * @return {!Uint8Array}
2015
+ */
2016
+ proto.gateway.web.v1.ListSlackChannelsResponse.prototype.serializeBinary = function() {
2017
+ var writer = new jspb.BinaryWriter();
2018
+ proto.gateway.web.v1.ListSlackChannelsResponse.serializeBinaryToWriter(this, writer);
2019
+ return writer.getResultBuffer();
2020
+ };
2021
+
2022
+
2023
+ /**
2024
+ * Serializes the given message to binary data (in protobuf wire
2025
+ * format), writing to the given BinaryWriter.
2026
+ * @param {!proto.gateway.web.v1.ListSlackChannelsResponse} message
2027
+ * @param {!jspb.BinaryWriter} writer
2028
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2029
+ */
2030
+ proto.gateway.web.v1.ListSlackChannelsResponse.serializeBinaryToWriter = function(message, writer) {
2031
+ var f = undefined;
2032
+ f = message.getStatus();
2033
+ if (f != null) {
2034
+ writer.writeMessage(
2035
+ 1,
2036
+ f,
2037
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
2038
+ );
2039
+ }
2040
+ f = message.getChannelsList();
2041
+ if (f.length > 0) {
2042
+ writer.writeRepeatedMessage(
2043
+ 2,
2044
+ f,
2045
+ proto.gateway.web.v1.SlackChannel.serializeBinaryToWriter
2046
+ );
2047
+ }
2048
+ };
2049
+
2050
+
2051
+ /**
2052
+ * optional gateway.common.v1.ResponseStatus status = 1;
2053
+ * @return {?proto.gateway.common.v1.ResponseStatus}
2054
+ */
2055
+ proto.gateway.web.v1.ListSlackChannelsResponse.prototype.getStatus = function() {
2056
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
2057
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
2058
+ };
2059
+
2060
+
2061
+ /**
2062
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
2063
+ * @return {!proto.gateway.web.v1.ListSlackChannelsResponse} returns this
2064
+ */
2065
+ proto.gateway.web.v1.ListSlackChannelsResponse.prototype.setStatus = function(value) {
2066
+ return jspb.Message.setWrapperField(this, 1, value);
2067
+ };
2068
+
2069
+
2070
+ /**
2071
+ * Clears the message field making it undefined.
2072
+ * @return {!proto.gateway.web.v1.ListSlackChannelsResponse} returns this
2073
+ */
2074
+ proto.gateway.web.v1.ListSlackChannelsResponse.prototype.clearStatus = function() {
2075
+ return this.setStatus(undefined);
2076
+ };
2077
+
2078
+
2079
+ /**
2080
+ * Returns whether this field is set.
2081
+ * @return {boolean}
2082
+ */
2083
+ proto.gateway.web.v1.ListSlackChannelsResponse.prototype.hasStatus = function() {
2084
+ return jspb.Message.getField(this, 1) != null;
2085
+ };
2086
+
2087
+
2088
+ /**
2089
+ * repeated SlackChannel channels = 2;
2090
+ * @return {!Array<!proto.gateway.web.v1.SlackChannel>}
2091
+ */
2092
+ proto.gateway.web.v1.ListSlackChannelsResponse.prototype.getChannelsList = function() {
2093
+ return /** @type{!Array<!proto.gateway.web.v1.SlackChannel>} */ (
2094
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SlackChannel, 2));
2095
+ };
2096
+
2097
+
2098
+ /**
2099
+ * @param {!Array<!proto.gateway.web.v1.SlackChannel>} value
2100
+ * @return {!proto.gateway.web.v1.ListSlackChannelsResponse} returns this
2101
+ */
2102
+ proto.gateway.web.v1.ListSlackChannelsResponse.prototype.setChannelsList = function(value) {
2103
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
2104
+ };
2105
+
2106
+
2107
+ /**
2108
+ * @param {!proto.gateway.web.v1.SlackChannel=} opt_value
2109
+ * @param {number=} opt_index
2110
+ * @return {!proto.gateway.web.v1.SlackChannel}
2111
+ */
2112
+ proto.gateway.web.v1.ListSlackChannelsResponse.prototype.addChannels = function(opt_value, opt_index) {
2113
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.SlackChannel, opt_index);
2114
+ };
2115
+
2116
+
2117
+ /**
2118
+ * Clears the list making it empty but non-null.
2119
+ * @return {!proto.gateway.web.v1.ListSlackChannelsResponse} returns this
2120
+ */
2121
+ proto.gateway.web.v1.ListSlackChannelsResponse.prototype.clearChannelsList = function() {
2122
+ return this.setChannelsList([]);
2123
+ };
2124
+
2125
+
2126
+
2127
+
2128
+
2129
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2130
+ /**
2131
+ * Creates an object representation of this proto.
2132
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2133
+ * Optional fields that are not set will be set to undefined.
2134
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2135
+ * For the list of reserved names please see:
2136
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2137
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2138
+ * JSPB instance for transitional soy proto support:
2139
+ * http://goto/soy-param-migration
2140
+ * @return {!Object}
2141
+ */
2142
+ proto.gateway.web.v1.SlackChannel.prototype.toObject = function(opt_includeInstance) {
2143
+ return proto.gateway.web.v1.SlackChannel.toObject(opt_includeInstance, this);
2144
+ };
2145
+
2146
+
2147
+ /**
2148
+ * Static version of the {@see toObject} method.
2149
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2150
+ * the JSPB instance for transitional soy proto support:
2151
+ * http://goto/soy-param-migration
2152
+ * @param {!proto.gateway.web.v1.SlackChannel} msg The msg instance to transform.
2153
+ * @return {!Object}
2154
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2155
+ */
2156
+ proto.gateway.web.v1.SlackChannel.toObject = function(includeInstance, msg) {
2157
+ var f, obj = {
2158
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
2159
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
2160
+ isPrivate: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
2161
+ };
2162
+
2163
+ if (includeInstance) {
2164
+ obj.$jspbMessageInstance = msg;
2165
+ }
2166
+ return obj;
2167
+ };
2168
+ }
2169
+
2170
+
2171
+ /**
2172
+ * Deserializes binary data (in protobuf wire format).
2173
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2174
+ * @return {!proto.gateway.web.v1.SlackChannel}
2175
+ */
2176
+ proto.gateway.web.v1.SlackChannel.deserializeBinary = function(bytes) {
2177
+ var reader = new jspb.BinaryReader(bytes);
2178
+ var msg = new proto.gateway.web.v1.SlackChannel;
2179
+ return proto.gateway.web.v1.SlackChannel.deserializeBinaryFromReader(msg, reader);
2180
+ };
2181
+
2182
+
2183
+ /**
2184
+ * Deserializes binary data (in protobuf wire format) from the
2185
+ * given reader into the given message object.
2186
+ * @param {!proto.gateway.web.v1.SlackChannel} msg The message object to deserialize into.
2187
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2188
+ * @return {!proto.gateway.web.v1.SlackChannel}
2189
+ */
2190
+ proto.gateway.web.v1.SlackChannel.deserializeBinaryFromReader = function(msg, reader) {
2191
+ while (reader.nextField()) {
2192
+ if (reader.isEndGroup()) {
2193
+ break;
2194
+ }
2195
+ var field = reader.getFieldNumber();
2196
+ switch (field) {
2197
+ case 1:
2198
+ var value = /** @type {string} */ (reader.readString());
2199
+ msg.setId(value);
2200
+ break;
2201
+ case 2:
2202
+ var value = /** @type {string} */ (reader.readString());
2203
+ msg.setName(value);
2204
+ break;
2205
+ case 3:
2206
+ var value = /** @type {boolean} */ (reader.readBool());
2207
+ msg.setIsPrivate(value);
2208
+ break;
2209
+ default:
2210
+ reader.skipField();
2211
+ break;
2212
+ }
2213
+ }
2214
+ return msg;
2215
+ };
2216
+
2217
+
2218
+ /**
2219
+ * Serializes the message to binary data (in protobuf wire format).
2220
+ * @return {!Uint8Array}
2221
+ */
2222
+ proto.gateway.web.v1.SlackChannel.prototype.serializeBinary = function() {
2223
+ var writer = new jspb.BinaryWriter();
2224
+ proto.gateway.web.v1.SlackChannel.serializeBinaryToWriter(this, writer);
2225
+ return writer.getResultBuffer();
2226
+ };
2227
+
2228
+
2229
+ /**
2230
+ * Serializes the given message to binary data (in protobuf wire
2231
+ * format), writing to the given BinaryWriter.
2232
+ * @param {!proto.gateway.web.v1.SlackChannel} message
2233
+ * @param {!jspb.BinaryWriter} writer
2234
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2235
+ */
2236
+ proto.gateway.web.v1.SlackChannel.serializeBinaryToWriter = function(message, writer) {
2237
+ var f = undefined;
2238
+ f = message.getId();
2239
+ if (f.length > 0) {
2240
+ writer.writeString(
2241
+ 1,
2242
+ f
2243
+ );
2244
+ }
2245
+ f = message.getName();
2246
+ if (f.length > 0) {
2247
+ writer.writeString(
2248
+ 2,
2249
+ f
2250
+ );
2251
+ }
2252
+ f = message.getIsPrivate();
2253
+ if (f) {
2254
+ writer.writeBool(
2255
+ 3,
2256
+ f
2257
+ );
2258
+ }
2259
+ };
2260
+
2261
+
2262
+ /**
2263
+ * optional string id = 1;
2264
+ * @return {string}
2265
+ */
2266
+ proto.gateway.web.v1.SlackChannel.prototype.getId = function() {
2267
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2268
+ };
2269
+
2270
+
2271
+ /**
2272
+ * @param {string} value
2273
+ * @return {!proto.gateway.web.v1.SlackChannel} returns this
2274
+ */
2275
+ proto.gateway.web.v1.SlackChannel.prototype.setId = function(value) {
2276
+ return jspb.Message.setProto3StringField(this, 1, value);
2277
+ };
2278
+
2279
+
2280
+ /**
2281
+ * optional string name = 2;
2282
+ * @return {string}
2283
+ */
2284
+ proto.gateway.web.v1.SlackChannel.prototype.getName = function() {
2285
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2286
+ };
2287
+
2288
+
2289
+ /**
2290
+ * @param {string} value
2291
+ * @return {!proto.gateway.web.v1.SlackChannel} returns this
2292
+ */
2293
+ proto.gateway.web.v1.SlackChannel.prototype.setName = function(value) {
2294
+ return jspb.Message.setProto3StringField(this, 2, value);
2295
+ };
2296
+
2297
+
2298
+ /**
2299
+ * optional bool is_private = 3;
2300
+ * @return {boolean}
2301
+ */
2302
+ proto.gateway.web.v1.SlackChannel.prototype.getIsPrivate = function() {
2303
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
2304
+ };
2305
+
2306
+
2307
+ /**
2308
+ * @param {boolean} value
2309
+ * @return {!proto.gateway.web.v1.SlackChannel} returns this
2310
+ */
2311
+ proto.gateway.web.v1.SlackChannel.prototype.setIsPrivate = function(value) {
2312
+ return jspb.Message.setProto3BooleanField(this, 3, value);
2313
+ };
2314
+
2315
+
2316
+ goog.object.extend(exports, proto.gateway.web.v1);