@miradorlabs/web-grpc 3.45.1 → 3.47.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.
@@ -21,12 +21,18 @@ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/time
21
21
  goog.object.extend(proto, google_protobuf_timestamp_pb);
22
22
  var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
23
23
  goog.object.extend(proto, proto_gateway_common_v1_status_pb);
24
+ goog.exportSymbol('proto.gateway.web.v1.CompleteLinearOAuthRequest', null, global);
25
+ goog.exportSymbol('proto.gateway.web.v1.CompleteLinearOAuthResponse', null, global);
24
26
  goog.exportSymbol('proto.gateway.web.v1.CompletePagerDutyOAuthRequest', null, global);
25
27
  goog.exportSymbol('proto.gateway.web.v1.CompletePagerDutyOAuthResponse', null, global);
26
28
  goog.exportSymbol('proto.gateway.web.v1.CompleteSlackOAuthRequest', null, global);
27
29
  goog.exportSymbol('proto.gateway.web.v1.CompleteSlackOAuthResponse', null, global);
30
+ goog.exportSymbol('proto.gateway.web.v1.DisconnectLinearRequest', null, global);
31
+ goog.exportSymbol('proto.gateway.web.v1.DisconnectLinearResponse', null, global);
28
32
  goog.exportSymbol('proto.gateway.web.v1.GetOAuthConnectionRequest', null, global);
29
33
  goog.exportSymbol('proto.gateway.web.v1.GetOAuthConnectionResponse', null, global);
34
+ goog.exportSymbol('proto.gateway.web.v1.InitiateLinearOAuthRequest', null, global);
35
+ goog.exportSymbol('proto.gateway.web.v1.InitiateLinearOAuthResponse', null, global);
30
36
  goog.exportSymbol('proto.gateway.web.v1.InitiatePagerDutyOAuthRequest', null, global);
31
37
  goog.exportSymbol('proto.gateway.web.v1.InitiatePagerDutyOAuthResponse', null, global);
32
38
  goog.exportSymbol('proto.gateway.web.v1.InitiateSlackOAuthRequest', null, global);
@@ -395,6 +401,132 @@ if (goog.DEBUG && !COMPILED) {
395
401
  */
396
402
  proto.gateway.web.v1.PagerDutyService.displayName = 'proto.gateway.web.v1.PagerDutyService';
397
403
  }
404
+ /**
405
+ * Generated by JsPbCodeGenerator.
406
+ * @param {Array=} opt_data Optional initial data array, typically from a
407
+ * server response, or constructed directly in Javascript. The array is used
408
+ * in place and becomes part of the constructed object. It is not cloned.
409
+ * If no data is provided, the constructed object will be empty, but still
410
+ * valid.
411
+ * @extends {jspb.Message}
412
+ * @constructor
413
+ */
414
+ proto.gateway.web.v1.InitiateLinearOAuthRequest = function(opt_data) {
415
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
416
+ };
417
+ goog.inherits(proto.gateway.web.v1.InitiateLinearOAuthRequest, jspb.Message);
418
+ if (goog.DEBUG && !COMPILED) {
419
+ /**
420
+ * @public
421
+ * @override
422
+ */
423
+ proto.gateway.web.v1.InitiateLinearOAuthRequest.displayName = 'proto.gateway.web.v1.InitiateLinearOAuthRequest';
424
+ }
425
+ /**
426
+ * Generated by JsPbCodeGenerator.
427
+ * @param {Array=} opt_data Optional initial data array, typically from a
428
+ * server response, or constructed directly in Javascript. The array is used
429
+ * in place and becomes part of the constructed object. It is not cloned.
430
+ * If no data is provided, the constructed object will be empty, but still
431
+ * valid.
432
+ * @extends {jspb.Message}
433
+ * @constructor
434
+ */
435
+ proto.gateway.web.v1.InitiateLinearOAuthResponse = function(opt_data) {
436
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
437
+ };
438
+ goog.inherits(proto.gateway.web.v1.InitiateLinearOAuthResponse, jspb.Message);
439
+ if (goog.DEBUG && !COMPILED) {
440
+ /**
441
+ * @public
442
+ * @override
443
+ */
444
+ proto.gateway.web.v1.InitiateLinearOAuthResponse.displayName = 'proto.gateway.web.v1.InitiateLinearOAuthResponse';
445
+ }
446
+ /**
447
+ * Generated by JsPbCodeGenerator.
448
+ * @param {Array=} opt_data Optional initial data array, typically from a
449
+ * server response, or constructed directly in Javascript. The array is used
450
+ * in place and becomes part of the constructed object. It is not cloned.
451
+ * If no data is provided, the constructed object will be empty, but still
452
+ * valid.
453
+ * @extends {jspb.Message}
454
+ * @constructor
455
+ */
456
+ proto.gateway.web.v1.CompleteLinearOAuthRequest = function(opt_data) {
457
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
458
+ };
459
+ goog.inherits(proto.gateway.web.v1.CompleteLinearOAuthRequest, jspb.Message);
460
+ if (goog.DEBUG && !COMPILED) {
461
+ /**
462
+ * @public
463
+ * @override
464
+ */
465
+ proto.gateway.web.v1.CompleteLinearOAuthRequest.displayName = 'proto.gateway.web.v1.CompleteLinearOAuthRequest';
466
+ }
467
+ /**
468
+ * Generated by JsPbCodeGenerator.
469
+ * @param {Array=} opt_data Optional initial data array, typically from a
470
+ * server response, or constructed directly in Javascript. The array is used
471
+ * in place and becomes part of the constructed object. It is not cloned.
472
+ * If no data is provided, the constructed object will be empty, but still
473
+ * valid.
474
+ * @extends {jspb.Message}
475
+ * @constructor
476
+ */
477
+ proto.gateway.web.v1.CompleteLinearOAuthResponse = function(opt_data) {
478
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
479
+ };
480
+ goog.inherits(proto.gateway.web.v1.CompleteLinearOAuthResponse, jspb.Message);
481
+ if (goog.DEBUG && !COMPILED) {
482
+ /**
483
+ * @public
484
+ * @override
485
+ */
486
+ proto.gateway.web.v1.CompleteLinearOAuthResponse.displayName = 'proto.gateway.web.v1.CompleteLinearOAuthResponse';
487
+ }
488
+ /**
489
+ * Generated by JsPbCodeGenerator.
490
+ * @param {Array=} opt_data Optional initial data array, typically from a
491
+ * server response, or constructed directly in Javascript. The array is used
492
+ * in place and becomes part of the constructed object. It is not cloned.
493
+ * If no data is provided, the constructed object will be empty, but still
494
+ * valid.
495
+ * @extends {jspb.Message}
496
+ * @constructor
497
+ */
498
+ proto.gateway.web.v1.DisconnectLinearRequest = function(opt_data) {
499
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
500
+ };
501
+ goog.inherits(proto.gateway.web.v1.DisconnectLinearRequest, jspb.Message);
502
+ if (goog.DEBUG && !COMPILED) {
503
+ /**
504
+ * @public
505
+ * @override
506
+ */
507
+ proto.gateway.web.v1.DisconnectLinearRequest.displayName = 'proto.gateway.web.v1.DisconnectLinearRequest';
508
+ }
509
+ /**
510
+ * Generated by JsPbCodeGenerator.
511
+ * @param {Array=} opt_data Optional initial data array, typically from a
512
+ * server response, or constructed directly in Javascript. The array is used
513
+ * in place and becomes part of the constructed object. It is not cloned.
514
+ * If no data is provided, the constructed object will be empty, but still
515
+ * valid.
516
+ * @extends {jspb.Message}
517
+ * @constructor
518
+ */
519
+ proto.gateway.web.v1.DisconnectLinearResponse = function(opt_data) {
520
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
521
+ };
522
+ goog.inherits(proto.gateway.web.v1.DisconnectLinearResponse, jspb.Message);
523
+ if (goog.DEBUG && !COMPILED) {
524
+ /**
525
+ * @public
526
+ * @override
527
+ */
528
+ proto.gateway.web.v1.DisconnectLinearResponse.displayName = 'proto.gateway.web.v1.DisconnectLinearResponse';
529
+ }
398
530
 
399
531
 
400
532
 
@@ -4027,4 +4159,1108 @@ proto.gateway.web.v1.PagerDutyService.prototype.setName = function(value) {
4027
4159
  };
4028
4160
 
4029
4161
 
4162
+
4163
+
4164
+
4165
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4166
+ /**
4167
+ * Creates an object representation of this proto.
4168
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4169
+ * Optional fields that are not set will be set to undefined.
4170
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4171
+ * For the list of reserved names please see:
4172
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4173
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4174
+ * JSPB instance for transitional soy proto support:
4175
+ * http://goto/soy-param-migration
4176
+ * @return {!Object}
4177
+ */
4178
+ proto.gateway.web.v1.InitiateLinearOAuthRequest.prototype.toObject = function(opt_includeInstance) {
4179
+ return proto.gateway.web.v1.InitiateLinearOAuthRequest.toObject(opt_includeInstance, this);
4180
+ };
4181
+
4182
+
4183
+ /**
4184
+ * Static version of the {@see toObject} method.
4185
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4186
+ * the JSPB instance for transitional soy proto support:
4187
+ * http://goto/soy-param-migration
4188
+ * @param {!proto.gateway.web.v1.InitiateLinearOAuthRequest} msg The msg instance to transform.
4189
+ * @return {!Object}
4190
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4191
+ */
4192
+ proto.gateway.web.v1.InitiateLinearOAuthRequest.toObject = function(includeInstance, msg) {
4193
+ var f, obj = {
4194
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
4195
+ redirectUri: jspb.Message.getFieldWithDefault(msg, 2, "")
4196
+ };
4197
+
4198
+ if (includeInstance) {
4199
+ obj.$jspbMessageInstance = msg;
4200
+ }
4201
+ return obj;
4202
+ };
4203
+ }
4204
+
4205
+
4206
+ /**
4207
+ * Deserializes binary data (in protobuf wire format).
4208
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
4209
+ * @return {!proto.gateway.web.v1.InitiateLinearOAuthRequest}
4210
+ */
4211
+ proto.gateway.web.v1.InitiateLinearOAuthRequest.deserializeBinary = function(bytes) {
4212
+ var reader = new jspb.BinaryReader(bytes);
4213
+ var msg = new proto.gateway.web.v1.InitiateLinearOAuthRequest;
4214
+ return proto.gateway.web.v1.InitiateLinearOAuthRequest.deserializeBinaryFromReader(msg, reader);
4215
+ };
4216
+
4217
+
4218
+ /**
4219
+ * Deserializes binary data (in protobuf wire format) from the
4220
+ * given reader into the given message object.
4221
+ * @param {!proto.gateway.web.v1.InitiateLinearOAuthRequest} msg The message object to deserialize into.
4222
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4223
+ * @return {!proto.gateway.web.v1.InitiateLinearOAuthRequest}
4224
+ */
4225
+ proto.gateway.web.v1.InitiateLinearOAuthRequest.deserializeBinaryFromReader = function(msg, reader) {
4226
+ while (reader.nextField()) {
4227
+ if (reader.isEndGroup()) {
4228
+ break;
4229
+ }
4230
+ var field = reader.getFieldNumber();
4231
+ switch (field) {
4232
+ case 1:
4233
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4234
+ msg.setOrganizationId(value);
4235
+ break;
4236
+ case 2:
4237
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4238
+ msg.setRedirectUri(value);
4239
+ break;
4240
+ default:
4241
+ reader.skipField();
4242
+ break;
4243
+ }
4244
+ }
4245
+ return msg;
4246
+ };
4247
+
4248
+
4249
+ /**
4250
+ * Serializes the message to binary data (in protobuf wire format).
4251
+ * @return {!Uint8Array}
4252
+ */
4253
+ proto.gateway.web.v1.InitiateLinearOAuthRequest.prototype.serializeBinary = function() {
4254
+ var writer = new jspb.BinaryWriter();
4255
+ proto.gateway.web.v1.InitiateLinearOAuthRequest.serializeBinaryToWriter(this, writer);
4256
+ return writer.getResultBuffer();
4257
+ };
4258
+
4259
+
4260
+ /**
4261
+ * Serializes the given message to binary data (in protobuf wire
4262
+ * format), writing to the given BinaryWriter.
4263
+ * @param {!proto.gateway.web.v1.InitiateLinearOAuthRequest} message
4264
+ * @param {!jspb.BinaryWriter} writer
4265
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4266
+ */
4267
+ proto.gateway.web.v1.InitiateLinearOAuthRequest.serializeBinaryToWriter = function(message, writer) {
4268
+ var f = undefined;
4269
+ f = message.getOrganizationId();
4270
+ if (f.length > 0) {
4271
+ writer.writeString(
4272
+ 1,
4273
+ f
4274
+ );
4275
+ }
4276
+ f = message.getRedirectUri();
4277
+ if (f.length > 0) {
4278
+ writer.writeString(
4279
+ 2,
4280
+ f
4281
+ );
4282
+ }
4283
+ };
4284
+
4285
+
4286
+ /**
4287
+ * optional string organization_id = 1;
4288
+ * @return {string}
4289
+ */
4290
+ proto.gateway.web.v1.InitiateLinearOAuthRequest.prototype.getOrganizationId = function() {
4291
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4292
+ };
4293
+
4294
+
4295
+ /**
4296
+ * @param {string} value
4297
+ * @return {!proto.gateway.web.v1.InitiateLinearOAuthRequest} returns this
4298
+ */
4299
+ proto.gateway.web.v1.InitiateLinearOAuthRequest.prototype.setOrganizationId = function(value) {
4300
+ return jspb.Message.setProto3StringField(this, 1, value);
4301
+ };
4302
+
4303
+
4304
+ /**
4305
+ * optional string redirect_uri = 2;
4306
+ * @return {string}
4307
+ */
4308
+ proto.gateway.web.v1.InitiateLinearOAuthRequest.prototype.getRedirectUri = function() {
4309
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4310
+ };
4311
+
4312
+
4313
+ /**
4314
+ * @param {string} value
4315
+ * @return {!proto.gateway.web.v1.InitiateLinearOAuthRequest} returns this
4316
+ */
4317
+ proto.gateway.web.v1.InitiateLinearOAuthRequest.prototype.setRedirectUri = function(value) {
4318
+ return jspb.Message.setProto3StringField(this, 2, value);
4319
+ };
4320
+
4321
+
4322
+
4323
+
4324
+
4325
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4326
+ /**
4327
+ * Creates an object representation of this proto.
4328
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4329
+ * Optional fields that are not set will be set to undefined.
4330
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4331
+ * For the list of reserved names please see:
4332
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4333
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4334
+ * JSPB instance for transitional soy proto support:
4335
+ * http://goto/soy-param-migration
4336
+ * @return {!Object}
4337
+ */
4338
+ proto.gateway.web.v1.InitiateLinearOAuthResponse.prototype.toObject = function(opt_includeInstance) {
4339
+ return proto.gateway.web.v1.InitiateLinearOAuthResponse.toObject(opt_includeInstance, this);
4340
+ };
4341
+
4342
+
4343
+ /**
4344
+ * Static version of the {@see toObject} method.
4345
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4346
+ * the JSPB instance for transitional soy proto support:
4347
+ * http://goto/soy-param-migration
4348
+ * @param {!proto.gateway.web.v1.InitiateLinearOAuthResponse} msg The msg instance to transform.
4349
+ * @return {!Object}
4350
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4351
+ */
4352
+ proto.gateway.web.v1.InitiateLinearOAuthResponse.toObject = function(includeInstance, msg) {
4353
+ var f, obj = {
4354
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
4355
+ oauthUrl: jspb.Message.getFieldWithDefault(msg, 2, ""),
4356
+ flowId: jspb.Message.getFieldWithDefault(msg, 3, "")
4357
+ };
4358
+
4359
+ if (includeInstance) {
4360
+ obj.$jspbMessageInstance = msg;
4361
+ }
4362
+ return obj;
4363
+ };
4364
+ }
4365
+
4366
+
4367
+ /**
4368
+ * Deserializes binary data (in protobuf wire format).
4369
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
4370
+ * @return {!proto.gateway.web.v1.InitiateLinearOAuthResponse}
4371
+ */
4372
+ proto.gateway.web.v1.InitiateLinearOAuthResponse.deserializeBinary = function(bytes) {
4373
+ var reader = new jspb.BinaryReader(bytes);
4374
+ var msg = new proto.gateway.web.v1.InitiateLinearOAuthResponse;
4375
+ return proto.gateway.web.v1.InitiateLinearOAuthResponse.deserializeBinaryFromReader(msg, reader);
4376
+ };
4377
+
4378
+
4379
+ /**
4380
+ * Deserializes binary data (in protobuf wire format) from the
4381
+ * given reader into the given message object.
4382
+ * @param {!proto.gateway.web.v1.InitiateLinearOAuthResponse} msg The message object to deserialize into.
4383
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4384
+ * @return {!proto.gateway.web.v1.InitiateLinearOAuthResponse}
4385
+ */
4386
+ proto.gateway.web.v1.InitiateLinearOAuthResponse.deserializeBinaryFromReader = function(msg, reader) {
4387
+ while (reader.nextField()) {
4388
+ if (reader.isEndGroup()) {
4389
+ break;
4390
+ }
4391
+ var field = reader.getFieldNumber();
4392
+ switch (field) {
4393
+ case 1:
4394
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
4395
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
4396
+ msg.setStatus(value);
4397
+ break;
4398
+ case 2:
4399
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4400
+ msg.setOauthUrl(value);
4401
+ break;
4402
+ case 3:
4403
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4404
+ msg.setFlowId(value);
4405
+ break;
4406
+ default:
4407
+ reader.skipField();
4408
+ break;
4409
+ }
4410
+ }
4411
+ return msg;
4412
+ };
4413
+
4414
+
4415
+ /**
4416
+ * Serializes the message to binary data (in protobuf wire format).
4417
+ * @return {!Uint8Array}
4418
+ */
4419
+ proto.gateway.web.v1.InitiateLinearOAuthResponse.prototype.serializeBinary = function() {
4420
+ var writer = new jspb.BinaryWriter();
4421
+ proto.gateway.web.v1.InitiateLinearOAuthResponse.serializeBinaryToWriter(this, writer);
4422
+ return writer.getResultBuffer();
4423
+ };
4424
+
4425
+
4426
+ /**
4427
+ * Serializes the given message to binary data (in protobuf wire
4428
+ * format), writing to the given BinaryWriter.
4429
+ * @param {!proto.gateway.web.v1.InitiateLinearOAuthResponse} message
4430
+ * @param {!jspb.BinaryWriter} writer
4431
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4432
+ */
4433
+ proto.gateway.web.v1.InitiateLinearOAuthResponse.serializeBinaryToWriter = function(message, writer) {
4434
+ var f = undefined;
4435
+ f = message.getStatus();
4436
+ if (f != null) {
4437
+ writer.writeMessage(
4438
+ 1,
4439
+ f,
4440
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
4441
+ );
4442
+ }
4443
+ f = message.getOauthUrl();
4444
+ if (f.length > 0) {
4445
+ writer.writeString(
4446
+ 2,
4447
+ f
4448
+ );
4449
+ }
4450
+ f = message.getFlowId();
4451
+ if (f.length > 0) {
4452
+ writer.writeString(
4453
+ 3,
4454
+ f
4455
+ );
4456
+ }
4457
+ };
4458
+
4459
+
4460
+ /**
4461
+ * optional gateway.common.v1.ResponseStatus status = 1;
4462
+ * @return {?proto.gateway.common.v1.ResponseStatus}
4463
+ */
4464
+ proto.gateway.web.v1.InitiateLinearOAuthResponse.prototype.getStatus = function() {
4465
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
4466
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
4467
+ };
4468
+
4469
+
4470
+ /**
4471
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
4472
+ * @return {!proto.gateway.web.v1.InitiateLinearOAuthResponse} returns this
4473
+ */
4474
+ proto.gateway.web.v1.InitiateLinearOAuthResponse.prototype.setStatus = function(value) {
4475
+ return jspb.Message.setWrapperField(this, 1, value);
4476
+ };
4477
+
4478
+
4479
+ /**
4480
+ * Clears the message field making it undefined.
4481
+ * @return {!proto.gateway.web.v1.InitiateLinearOAuthResponse} returns this
4482
+ */
4483
+ proto.gateway.web.v1.InitiateLinearOAuthResponse.prototype.clearStatus = function() {
4484
+ return this.setStatus(undefined);
4485
+ };
4486
+
4487
+
4488
+ /**
4489
+ * Returns whether this field is set.
4490
+ * @return {boolean}
4491
+ */
4492
+ proto.gateway.web.v1.InitiateLinearOAuthResponse.prototype.hasStatus = function() {
4493
+ return jspb.Message.getField(this, 1) != null;
4494
+ };
4495
+
4496
+
4497
+ /**
4498
+ * optional string oauth_url = 2;
4499
+ * @return {string}
4500
+ */
4501
+ proto.gateway.web.v1.InitiateLinearOAuthResponse.prototype.getOauthUrl = function() {
4502
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4503
+ };
4504
+
4505
+
4506
+ /**
4507
+ * @param {string} value
4508
+ * @return {!proto.gateway.web.v1.InitiateLinearOAuthResponse} returns this
4509
+ */
4510
+ proto.gateway.web.v1.InitiateLinearOAuthResponse.prototype.setOauthUrl = function(value) {
4511
+ return jspb.Message.setProto3StringField(this, 2, value);
4512
+ };
4513
+
4514
+
4515
+ /**
4516
+ * optional string flow_id = 3;
4517
+ * @return {string}
4518
+ */
4519
+ proto.gateway.web.v1.InitiateLinearOAuthResponse.prototype.getFlowId = function() {
4520
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4521
+ };
4522
+
4523
+
4524
+ /**
4525
+ * @param {string} value
4526
+ * @return {!proto.gateway.web.v1.InitiateLinearOAuthResponse} returns this
4527
+ */
4528
+ proto.gateway.web.v1.InitiateLinearOAuthResponse.prototype.setFlowId = function(value) {
4529
+ return jspb.Message.setProto3StringField(this, 3, value);
4530
+ };
4531
+
4532
+
4533
+
4534
+
4535
+
4536
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4537
+ /**
4538
+ * Creates an object representation of this proto.
4539
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4540
+ * Optional fields that are not set will be set to undefined.
4541
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4542
+ * For the list of reserved names please see:
4543
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4544
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4545
+ * JSPB instance for transitional soy proto support:
4546
+ * http://goto/soy-param-migration
4547
+ * @return {!Object}
4548
+ */
4549
+ proto.gateway.web.v1.CompleteLinearOAuthRequest.prototype.toObject = function(opt_includeInstance) {
4550
+ return proto.gateway.web.v1.CompleteLinearOAuthRequest.toObject(opt_includeInstance, this);
4551
+ };
4552
+
4553
+
4554
+ /**
4555
+ * Static version of the {@see toObject} method.
4556
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4557
+ * the JSPB instance for transitional soy proto support:
4558
+ * http://goto/soy-param-migration
4559
+ * @param {!proto.gateway.web.v1.CompleteLinearOAuthRequest} msg The msg instance to transform.
4560
+ * @return {!Object}
4561
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4562
+ */
4563
+ proto.gateway.web.v1.CompleteLinearOAuthRequest.toObject = function(includeInstance, msg) {
4564
+ var f, obj = {
4565
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
4566
+ code: jspb.Message.getFieldWithDefault(msg, 2, ""),
4567
+ redirectUri: jspb.Message.getFieldWithDefault(msg, 3, ""),
4568
+ flowId: jspb.Message.getFieldWithDefault(msg, 4, "")
4569
+ };
4570
+
4571
+ if (includeInstance) {
4572
+ obj.$jspbMessageInstance = msg;
4573
+ }
4574
+ return obj;
4575
+ };
4576
+ }
4577
+
4578
+
4579
+ /**
4580
+ * Deserializes binary data (in protobuf wire format).
4581
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
4582
+ * @return {!proto.gateway.web.v1.CompleteLinearOAuthRequest}
4583
+ */
4584
+ proto.gateway.web.v1.CompleteLinearOAuthRequest.deserializeBinary = function(bytes) {
4585
+ var reader = new jspb.BinaryReader(bytes);
4586
+ var msg = new proto.gateway.web.v1.CompleteLinearOAuthRequest;
4587
+ return proto.gateway.web.v1.CompleteLinearOAuthRequest.deserializeBinaryFromReader(msg, reader);
4588
+ };
4589
+
4590
+
4591
+ /**
4592
+ * Deserializes binary data (in protobuf wire format) from the
4593
+ * given reader into the given message object.
4594
+ * @param {!proto.gateway.web.v1.CompleteLinearOAuthRequest} msg The message object to deserialize into.
4595
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4596
+ * @return {!proto.gateway.web.v1.CompleteLinearOAuthRequest}
4597
+ */
4598
+ proto.gateway.web.v1.CompleteLinearOAuthRequest.deserializeBinaryFromReader = function(msg, reader) {
4599
+ while (reader.nextField()) {
4600
+ if (reader.isEndGroup()) {
4601
+ break;
4602
+ }
4603
+ var field = reader.getFieldNumber();
4604
+ switch (field) {
4605
+ case 1:
4606
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4607
+ msg.setOrganizationId(value);
4608
+ break;
4609
+ case 2:
4610
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4611
+ msg.setCode(value);
4612
+ break;
4613
+ case 3:
4614
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4615
+ msg.setRedirectUri(value);
4616
+ break;
4617
+ case 4:
4618
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4619
+ msg.setFlowId(value);
4620
+ break;
4621
+ default:
4622
+ reader.skipField();
4623
+ break;
4624
+ }
4625
+ }
4626
+ return msg;
4627
+ };
4628
+
4629
+
4630
+ /**
4631
+ * Serializes the message to binary data (in protobuf wire format).
4632
+ * @return {!Uint8Array}
4633
+ */
4634
+ proto.gateway.web.v1.CompleteLinearOAuthRequest.prototype.serializeBinary = function() {
4635
+ var writer = new jspb.BinaryWriter();
4636
+ proto.gateway.web.v1.CompleteLinearOAuthRequest.serializeBinaryToWriter(this, writer);
4637
+ return writer.getResultBuffer();
4638
+ };
4639
+
4640
+
4641
+ /**
4642
+ * Serializes the given message to binary data (in protobuf wire
4643
+ * format), writing to the given BinaryWriter.
4644
+ * @param {!proto.gateway.web.v1.CompleteLinearOAuthRequest} message
4645
+ * @param {!jspb.BinaryWriter} writer
4646
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4647
+ */
4648
+ proto.gateway.web.v1.CompleteLinearOAuthRequest.serializeBinaryToWriter = function(message, writer) {
4649
+ var f = undefined;
4650
+ f = message.getOrganizationId();
4651
+ if (f.length > 0) {
4652
+ writer.writeString(
4653
+ 1,
4654
+ f
4655
+ );
4656
+ }
4657
+ f = message.getCode();
4658
+ if (f.length > 0) {
4659
+ writer.writeString(
4660
+ 2,
4661
+ f
4662
+ );
4663
+ }
4664
+ f = message.getRedirectUri();
4665
+ if (f.length > 0) {
4666
+ writer.writeString(
4667
+ 3,
4668
+ f
4669
+ );
4670
+ }
4671
+ f = message.getFlowId();
4672
+ if (f.length > 0) {
4673
+ writer.writeString(
4674
+ 4,
4675
+ f
4676
+ );
4677
+ }
4678
+ };
4679
+
4680
+
4681
+ /**
4682
+ * optional string organization_id = 1;
4683
+ * @return {string}
4684
+ */
4685
+ proto.gateway.web.v1.CompleteLinearOAuthRequest.prototype.getOrganizationId = function() {
4686
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4687
+ };
4688
+
4689
+
4690
+ /**
4691
+ * @param {string} value
4692
+ * @return {!proto.gateway.web.v1.CompleteLinearOAuthRequest} returns this
4693
+ */
4694
+ proto.gateway.web.v1.CompleteLinearOAuthRequest.prototype.setOrganizationId = function(value) {
4695
+ return jspb.Message.setProto3StringField(this, 1, value);
4696
+ };
4697
+
4698
+
4699
+ /**
4700
+ * optional string code = 2;
4701
+ * @return {string}
4702
+ */
4703
+ proto.gateway.web.v1.CompleteLinearOAuthRequest.prototype.getCode = function() {
4704
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4705
+ };
4706
+
4707
+
4708
+ /**
4709
+ * @param {string} value
4710
+ * @return {!proto.gateway.web.v1.CompleteLinearOAuthRequest} returns this
4711
+ */
4712
+ proto.gateway.web.v1.CompleteLinearOAuthRequest.prototype.setCode = function(value) {
4713
+ return jspb.Message.setProto3StringField(this, 2, value);
4714
+ };
4715
+
4716
+
4717
+ /**
4718
+ * optional string redirect_uri = 3;
4719
+ * @return {string}
4720
+ */
4721
+ proto.gateway.web.v1.CompleteLinearOAuthRequest.prototype.getRedirectUri = function() {
4722
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4723
+ };
4724
+
4725
+
4726
+ /**
4727
+ * @param {string} value
4728
+ * @return {!proto.gateway.web.v1.CompleteLinearOAuthRequest} returns this
4729
+ */
4730
+ proto.gateway.web.v1.CompleteLinearOAuthRequest.prototype.setRedirectUri = function(value) {
4731
+ return jspb.Message.setProto3StringField(this, 3, value);
4732
+ };
4733
+
4734
+
4735
+ /**
4736
+ * optional string flow_id = 4;
4737
+ * @return {string}
4738
+ */
4739
+ proto.gateway.web.v1.CompleteLinearOAuthRequest.prototype.getFlowId = function() {
4740
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4741
+ };
4742
+
4743
+
4744
+ /**
4745
+ * @param {string} value
4746
+ * @return {!proto.gateway.web.v1.CompleteLinearOAuthRequest} returns this
4747
+ */
4748
+ proto.gateway.web.v1.CompleteLinearOAuthRequest.prototype.setFlowId = function(value) {
4749
+ return jspb.Message.setProto3StringField(this, 4, value);
4750
+ };
4751
+
4752
+
4753
+
4754
+
4755
+
4756
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4757
+ /**
4758
+ * Creates an object representation of this proto.
4759
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4760
+ * Optional fields that are not set will be set to undefined.
4761
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4762
+ * For the list of reserved names please see:
4763
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4764
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4765
+ * JSPB instance for transitional soy proto support:
4766
+ * http://goto/soy-param-migration
4767
+ * @return {!Object}
4768
+ */
4769
+ proto.gateway.web.v1.CompleteLinearOAuthResponse.prototype.toObject = function(opt_includeInstance) {
4770
+ return proto.gateway.web.v1.CompleteLinearOAuthResponse.toObject(opt_includeInstance, this);
4771
+ };
4772
+
4773
+
4774
+ /**
4775
+ * Static version of the {@see toObject} method.
4776
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4777
+ * the JSPB instance for transitional soy proto support:
4778
+ * http://goto/soy-param-migration
4779
+ * @param {!proto.gateway.web.v1.CompleteLinearOAuthResponse} msg The msg instance to transform.
4780
+ * @return {!Object}
4781
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4782
+ */
4783
+ proto.gateway.web.v1.CompleteLinearOAuthResponse.toObject = function(includeInstance, msg) {
4784
+ var f, obj = {
4785
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
4786
+ oauthConnection: (f = msg.getOauthConnection()) && proto.gateway.web.v1.OAuthConnection.toObject(includeInstance, f)
4787
+ };
4788
+
4789
+ if (includeInstance) {
4790
+ obj.$jspbMessageInstance = msg;
4791
+ }
4792
+ return obj;
4793
+ };
4794
+ }
4795
+
4796
+
4797
+ /**
4798
+ * Deserializes binary data (in protobuf wire format).
4799
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
4800
+ * @return {!proto.gateway.web.v1.CompleteLinearOAuthResponse}
4801
+ */
4802
+ proto.gateway.web.v1.CompleteLinearOAuthResponse.deserializeBinary = function(bytes) {
4803
+ var reader = new jspb.BinaryReader(bytes);
4804
+ var msg = new proto.gateway.web.v1.CompleteLinearOAuthResponse;
4805
+ return proto.gateway.web.v1.CompleteLinearOAuthResponse.deserializeBinaryFromReader(msg, reader);
4806
+ };
4807
+
4808
+
4809
+ /**
4810
+ * Deserializes binary data (in protobuf wire format) from the
4811
+ * given reader into the given message object.
4812
+ * @param {!proto.gateway.web.v1.CompleteLinearOAuthResponse} msg The message object to deserialize into.
4813
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4814
+ * @return {!proto.gateway.web.v1.CompleteLinearOAuthResponse}
4815
+ */
4816
+ proto.gateway.web.v1.CompleteLinearOAuthResponse.deserializeBinaryFromReader = function(msg, reader) {
4817
+ while (reader.nextField()) {
4818
+ if (reader.isEndGroup()) {
4819
+ break;
4820
+ }
4821
+ var field = reader.getFieldNumber();
4822
+ switch (field) {
4823
+ case 1:
4824
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
4825
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
4826
+ msg.setStatus(value);
4827
+ break;
4828
+ case 2:
4829
+ var value = new proto.gateway.web.v1.OAuthConnection;
4830
+ reader.readMessage(value,proto.gateway.web.v1.OAuthConnection.deserializeBinaryFromReader);
4831
+ msg.setOauthConnection(value);
4832
+ break;
4833
+ default:
4834
+ reader.skipField();
4835
+ break;
4836
+ }
4837
+ }
4838
+ return msg;
4839
+ };
4840
+
4841
+
4842
+ /**
4843
+ * Serializes the message to binary data (in protobuf wire format).
4844
+ * @return {!Uint8Array}
4845
+ */
4846
+ proto.gateway.web.v1.CompleteLinearOAuthResponse.prototype.serializeBinary = function() {
4847
+ var writer = new jspb.BinaryWriter();
4848
+ proto.gateway.web.v1.CompleteLinearOAuthResponse.serializeBinaryToWriter(this, writer);
4849
+ return writer.getResultBuffer();
4850
+ };
4851
+
4852
+
4853
+ /**
4854
+ * Serializes the given message to binary data (in protobuf wire
4855
+ * format), writing to the given BinaryWriter.
4856
+ * @param {!proto.gateway.web.v1.CompleteLinearOAuthResponse} message
4857
+ * @param {!jspb.BinaryWriter} writer
4858
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4859
+ */
4860
+ proto.gateway.web.v1.CompleteLinearOAuthResponse.serializeBinaryToWriter = function(message, writer) {
4861
+ var f = undefined;
4862
+ f = message.getStatus();
4863
+ if (f != null) {
4864
+ writer.writeMessage(
4865
+ 1,
4866
+ f,
4867
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
4868
+ );
4869
+ }
4870
+ f = message.getOauthConnection();
4871
+ if (f != null) {
4872
+ writer.writeMessage(
4873
+ 2,
4874
+ f,
4875
+ proto.gateway.web.v1.OAuthConnection.serializeBinaryToWriter
4876
+ );
4877
+ }
4878
+ };
4879
+
4880
+
4881
+ /**
4882
+ * optional gateway.common.v1.ResponseStatus status = 1;
4883
+ * @return {?proto.gateway.common.v1.ResponseStatus}
4884
+ */
4885
+ proto.gateway.web.v1.CompleteLinearOAuthResponse.prototype.getStatus = function() {
4886
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
4887
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
4888
+ };
4889
+
4890
+
4891
+ /**
4892
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
4893
+ * @return {!proto.gateway.web.v1.CompleteLinearOAuthResponse} returns this
4894
+ */
4895
+ proto.gateway.web.v1.CompleteLinearOAuthResponse.prototype.setStatus = function(value) {
4896
+ return jspb.Message.setWrapperField(this, 1, value);
4897
+ };
4898
+
4899
+
4900
+ /**
4901
+ * Clears the message field making it undefined.
4902
+ * @return {!proto.gateway.web.v1.CompleteLinearOAuthResponse} returns this
4903
+ */
4904
+ proto.gateway.web.v1.CompleteLinearOAuthResponse.prototype.clearStatus = function() {
4905
+ return this.setStatus(undefined);
4906
+ };
4907
+
4908
+
4909
+ /**
4910
+ * Returns whether this field is set.
4911
+ * @return {boolean}
4912
+ */
4913
+ proto.gateway.web.v1.CompleteLinearOAuthResponse.prototype.hasStatus = function() {
4914
+ return jspb.Message.getField(this, 1) != null;
4915
+ };
4916
+
4917
+
4918
+ /**
4919
+ * optional OAuthConnection oauth_connection = 2;
4920
+ * @return {?proto.gateway.web.v1.OAuthConnection}
4921
+ */
4922
+ proto.gateway.web.v1.CompleteLinearOAuthResponse.prototype.getOauthConnection = function() {
4923
+ return /** @type{?proto.gateway.web.v1.OAuthConnection} */ (
4924
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.OAuthConnection, 2));
4925
+ };
4926
+
4927
+
4928
+ /**
4929
+ * @param {?proto.gateway.web.v1.OAuthConnection|undefined} value
4930
+ * @return {!proto.gateway.web.v1.CompleteLinearOAuthResponse} returns this
4931
+ */
4932
+ proto.gateway.web.v1.CompleteLinearOAuthResponse.prototype.setOauthConnection = function(value) {
4933
+ return jspb.Message.setWrapperField(this, 2, value);
4934
+ };
4935
+
4936
+
4937
+ /**
4938
+ * Clears the message field making it undefined.
4939
+ * @return {!proto.gateway.web.v1.CompleteLinearOAuthResponse} returns this
4940
+ */
4941
+ proto.gateway.web.v1.CompleteLinearOAuthResponse.prototype.clearOauthConnection = function() {
4942
+ return this.setOauthConnection(undefined);
4943
+ };
4944
+
4945
+
4946
+ /**
4947
+ * Returns whether this field is set.
4948
+ * @return {boolean}
4949
+ */
4950
+ proto.gateway.web.v1.CompleteLinearOAuthResponse.prototype.hasOauthConnection = function() {
4951
+ return jspb.Message.getField(this, 2) != null;
4952
+ };
4953
+
4954
+
4955
+
4956
+
4957
+
4958
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4959
+ /**
4960
+ * Creates an object representation of this proto.
4961
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4962
+ * Optional fields that are not set will be set to undefined.
4963
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4964
+ * For the list of reserved names please see:
4965
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4966
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4967
+ * JSPB instance for transitional soy proto support:
4968
+ * http://goto/soy-param-migration
4969
+ * @return {!Object}
4970
+ */
4971
+ proto.gateway.web.v1.DisconnectLinearRequest.prototype.toObject = function(opt_includeInstance) {
4972
+ return proto.gateway.web.v1.DisconnectLinearRequest.toObject(opt_includeInstance, this);
4973
+ };
4974
+
4975
+
4976
+ /**
4977
+ * Static version of the {@see toObject} method.
4978
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4979
+ * the JSPB instance for transitional soy proto support:
4980
+ * http://goto/soy-param-migration
4981
+ * @param {!proto.gateway.web.v1.DisconnectLinearRequest} msg The msg instance to transform.
4982
+ * @return {!Object}
4983
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4984
+ */
4985
+ proto.gateway.web.v1.DisconnectLinearRequest.toObject = function(includeInstance, msg) {
4986
+ var f, obj = {
4987
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, "")
4988
+ };
4989
+
4990
+ if (includeInstance) {
4991
+ obj.$jspbMessageInstance = msg;
4992
+ }
4993
+ return obj;
4994
+ };
4995
+ }
4996
+
4997
+
4998
+ /**
4999
+ * Deserializes binary data (in protobuf wire format).
5000
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
5001
+ * @return {!proto.gateway.web.v1.DisconnectLinearRequest}
5002
+ */
5003
+ proto.gateway.web.v1.DisconnectLinearRequest.deserializeBinary = function(bytes) {
5004
+ var reader = new jspb.BinaryReader(bytes);
5005
+ var msg = new proto.gateway.web.v1.DisconnectLinearRequest;
5006
+ return proto.gateway.web.v1.DisconnectLinearRequest.deserializeBinaryFromReader(msg, reader);
5007
+ };
5008
+
5009
+
5010
+ /**
5011
+ * Deserializes binary data (in protobuf wire format) from the
5012
+ * given reader into the given message object.
5013
+ * @param {!proto.gateway.web.v1.DisconnectLinearRequest} msg The message object to deserialize into.
5014
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5015
+ * @return {!proto.gateway.web.v1.DisconnectLinearRequest}
5016
+ */
5017
+ proto.gateway.web.v1.DisconnectLinearRequest.deserializeBinaryFromReader = function(msg, reader) {
5018
+ while (reader.nextField()) {
5019
+ if (reader.isEndGroup()) {
5020
+ break;
5021
+ }
5022
+ var field = reader.getFieldNumber();
5023
+ switch (field) {
5024
+ case 1:
5025
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5026
+ msg.setOrganizationId(value);
5027
+ break;
5028
+ default:
5029
+ reader.skipField();
5030
+ break;
5031
+ }
5032
+ }
5033
+ return msg;
5034
+ };
5035
+
5036
+
5037
+ /**
5038
+ * Serializes the message to binary data (in protobuf wire format).
5039
+ * @return {!Uint8Array}
5040
+ */
5041
+ proto.gateway.web.v1.DisconnectLinearRequest.prototype.serializeBinary = function() {
5042
+ var writer = new jspb.BinaryWriter();
5043
+ proto.gateway.web.v1.DisconnectLinearRequest.serializeBinaryToWriter(this, writer);
5044
+ return writer.getResultBuffer();
5045
+ };
5046
+
5047
+
5048
+ /**
5049
+ * Serializes the given message to binary data (in protobuf wire
5050
+ * format), writing to the given BinaryWriter.
5051
+ * @param {!proto.gateway.web.v1.DisconnectLinearRequest} message
5052
+ * @param {!jspb.BinaryWriter} writer
5053
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5054
+ */
5055
+ proto.gateway.web.v1.DisconnectLinearRequest.serializeBinaryToWriter = function(message, writer) {
5056
+ var f = undefined;
5057
+ f = message.getOrganizationId();
5058
+ if (f.length > 0) {
5059
+ writer.writeString(
5060
+ 1,
5061
+ f
5062
+ );
5063
+ }
5064
+ };
5065
+
5066
+
5067
+ /**
5068
+ * optional string organization_id = 1;
5069
+ * @return {string}
5070
+ */
5071
+ proto.gateway.web.v1.DisconnectLinearRequest.prototype.getOrganizationId = function() {
5072
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5073
+ };
5074
+
5075
+
5076
+ /**
5077
+ * @param {string} value
5078
+ * @return {!proto.gateway.web.v1.DisconnectLinearRequest} returns this
5079
+ */
5080
+ proto.gateway.web.v1.DisconnectLinearRequest.prototype.setOrganizationId = function(value) {
5081
+ return jspb.Message.setProto3StringField(this, 1, value);
5082
+ };
5083
+
5084
+
5085
+
5086
+
5087
+
5088
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5089
+ /**
5090
+ * Creates an object representation of this proto.
5091
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5092
+ * Optional fields that are not set will be set to undefined.
5093
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5094
+ * For the list of reserved names please see:
5095
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5096
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5097
+ * JSPB instance for transitional soy proto support:
5098
+ * http://goto/soy-param-migration
5099
+ * @return {!Object}
5100
+ */
5101
+ proto.gateway.web.v1.DisconnectLinearResponse.prototype.toObject = function(opt_includeInstance) {
5102
+ return proto.gateway.web.v1.DisconnectLinearResponse.toObject(opt_includeInstance, this);
5103
+ };
5104
+
5105
+
5106
+ /**
5107
+ * Static version of the {@see toObject} method.
5108
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5109
+ * the JSPB instance for transitional soy proto support:
5110
+ * http://goto/soy-param-migration
5111
+ * @param {!proto.gateway.web.v1.DisconnectLinearResponse} msg The msg instance to transform.
5112
+ * @return {!Object}
5113
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5114
+ */
5115
+ proto.gateway.web.v1.DisconnectLinearResponse.toObject = function(includeInstance, msg) {
5116
+ var f, obj = {
5117
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
5118
+ deleted: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
5119
+ };
5120
+
5121
+ if (includeInstance) {
5122
+ obj.$jspbMessageInstance = msg;
5123
+ }
5124
+ return obj;
5125
+ };
5126
+ }
5127
+
5128
+
5129
+ /**
5130
+ * Deserializes binary data (in protobuf wire format).
5131
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
5132
+ * @return {!proto.gateway.web.v1.DisconnectLinearResponse}
5133
+ */
5134
+ proto.gateway.web.v1.DisconnectLinearResponse.deserializeBinary = function(bytes) {
5135
+ var reader = new jspb.BinaryReader(bytes);
5136
+ var msg = new proto.gateway.web.v1.DisconnectLinearResponse;
5137
+ return proto.gateway.web.v1.DisconnectLinearResponse.deserializeBinaryFromReader(msg, reader);
5138
+ };
5139
+
5140
+
5141
+ /**
5142
+ * Deserializes binary data (in protobuf wire format) from the
5143
+ * given reader into the given message object.
5144
+ * @param {!proto.gateway.web.v1.DisconnectLinearResponse} msg The message object to deserialize into.
5145
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5146
+ * @return {!proto.gateway.web.v1.DisconnectLinearResponse}
5147
+ */
5148
+ proto.gateway.web.v1.DisconnectLinearResponse.deserializeBinaryFromReader = function(msg, reader) {
5149
+ while (reader.nextField()) {
5150
+ if (reader.isEndGroup()) {
5151
+ break;
5152
+ }
5153
+ var field = reader.getFieldNumber();
5154
+ switch (field) {
5155
+ case 1:
5156
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
5157
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
5158
+ msg.setStatus(value);
5159
+ break;
5160
+ case 2:
5161
+ var value = /** @type {boolean} */ (reader.readBool());
5162
+ msg.setDeleted(value);
5163
+ break;
5164
+ default:
5165
+ reader.skipField();
5166
+ break;
5167
+ }
5168
+ }
5169
+ return msg;
5170
+ };
5171
+
5172
+
5173
+ /**
5174
+ * Serializes the message to binary data (in protobuf wire format).
5175
+ * @return {!Uint8Array}
5176
+ */
5177
+ proto.gateway.web.v1.DisconnectLinearResponse.prototype.serializeBinary = function() {
5178
+ var writer = new jspb.BinaryWriter();
5179
+ proto.gateway.web.v1.DisconnectLinearResponse.serializeBinaryToWriter(this, writer);
5180
+ return writer.getResultBuffer();
5181
+ };
5182
+
5183
+
5184
+ /**
5185
+ * Serializes the given message to binary data (in protobuf wire
5186
+ * format), writing to the given BinaryWriter.
5187
+ * @param {!proto.gateway.web.v1.DisconnectLinearResponse} message
5188
+ * @param {!jspb.BinaryWriter} writer
5189
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5190
+ */
5191
+ proto.gateway.web.v1.DisconnectLinearResponse.serializeBinaryToWriter = function(message, writer) {
5192
+ var f = undefined;
5193
+ f = message.getStatus();
5194
+ if (f != null) {
5195
+ writer.writeMessage(
5196
+ 1,
5197
+ f,
5198
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
5199
+ );
5200
+ }
5201
+ f = message.getDeleted();
5202
+ if (f) {
5203
+ writer.writeBool(
5204
+ 2,
5205
+ f
5206
+ );
5207
+ }
5208
+ };
5209
+
5210
+
5211
+ /**
5212
+ * optional gateway.common.v1.ResponseStatus status = 1;
5213
+ * @return {?proto.gateway.common.v1.ResponseStatus}
5214
+ */
5215
+ proto.gateway.web.v1.DisconnectLinearResponse.prototype.getStatus = function() {
5216
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
5217
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
5218
+ };
5219
+
5220
+
5221
+ /**
5222
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
5223
+ * @return {!proto.gateway.web.v1.DisconnectLinearResponse} returns this
5224
+ */
5225
+ proto.gateway.web.v1.DisconnectLinearResponse.prototype.setStatus = function(value) {
5226
+ return jspb.Message.setWrapperField(this, 1, value);
5227
+ };
5228
+
5229
+
5230
+ /**
5231
+ * Clears the message field making it undefined.
5232
+ * @return {!proto.gateway.web.v1.DisconnectLinearResponse} returns this
5233
+ */
5234
+ proto.gateway.web.v1.DisconnectLinearResponse.prototype.clearStatus = function() {
5235
+ return this.setStatus(undefined);
5236
+ };
5237
+
5238
+
5239
+ /**
5240
+ * Returns whether this field is set.
5241
+ * @return {boolean}
5242
+ */
5243
+ proto.gateway.web.v1.DisconnectLinearResponse.prototype.hasStatus = function() {
5244
+ return jspb.Message.getField(this, 1) != null;
5245
+ };
5246
+
5247
+
5248
+ /**
5249
+ * optional bool deleted = 2;
5250
+ * @return {boolean}
5251
+ */
5252
+ proto.gateway.web.v1.DisconnectLinearResponse.prototype.getDeleted = function() {
5253
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
5254
+ };
5255
+
5256
+
5257
+ /**
5258
+ * @param {boolean} value
5259
+ * @return {!proto.gateway.web.v1.DisconnectLinearResponse} returns this
5260
+ */
5261
+ proto.gateway.web.v1.DisconnectLinearResponse.prototype.setDeleted = function(value) {
5262
+ return jspb.Message.setProto3BooleanField(this, 2, value);
5263
+ };
5264
+
5265
+
4030
5266
  goog.object.extend(exports, proto.gateway.web.v1);