@miradorlabs/web-grpc 2.14.0 → 2.15.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.
@@ -25,15 +25,22 @@ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/time
25
25
  goog.object.extend(proto, google_protobuf_timestamp_pb);
26
26
  var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
27
27
  goog.object.extend(proto, proto_gateway_common_v1_status_pb);
28
+ goog.exportSymbol('proto.gateway.web.v1.CompletePagerDutyOAuthRequest', null, global);
29
+ goog.exportSymbol('proto.gateway.web.v1.CompletePagerDutyOAuthResponse', null, global);
28
30
  goog.exportSymbol('proto.gateway.web.v1.CompleteSlackOAuthRequest', null, global);
29
31
  goog.exportSymbol('proto.gateway.web.v1.CompleteSlackOAuthResponse', null, global);
30
32
  goog.exportSymbol('proto.gateway.web.v1.GetOAuthConnectionRequest', null, global);
31
33
  goog.exportSymbol('proto.gateway.web.v1.GetOAuthConnectionResponse', null, global);
34
+ goog.exportSymbol('proto.gateway.web.v1.InitiatePagerDutyOAuthRequest', null, global);
35
+ goog.exportSymbol('proto.gateway.web.v1.InitiatePagerDutyOAuthResponse', null, global);
32
36
  goog.exportSymbol('proto.gateway.web.v1.InitiateSlackOAuthRequest', null, global);
33
37
  goog.exportSymbol('proto.gateway.web.v1.InitiateSlackOAuthResponse', null, global);
38
+ goog.exportSymbol('proto.gateway.web.v1.ListPagerDutyServicesRequest', null, global);
39
+ goog.exportSymbol('proto.gateway.web.v1.ListPagerDutyServicesResponse', null, global);
34
40
  goog.exportSymbol('proto.gateway.web.v1.ListSlackChannelsRequest', null, global);
35
41
  goog.exportSymbol('proto.gateway.web.v1.ListSlackChannelsResponse', null, global);
36
42
  goog.exportSymbol('proto.gateway.web.v1.OAuthConnection', null, global);
43
+ goog.exportSymbol('proto.gateway.web.v1.PagerDutyService', null, global);
37
44
  goog.exportSymbol('proto.gateway.web.v1.SlackChannel', null, global);
38
45
  /**
39
46
  * Generated by JsPbCodeGenerator.
@@ -245,6 +252,153 @@ if (goog.DEBUG && !COMPILED) {
245
252
  */
246
253
  proto.gateway.web.v1.SlackChannel.displayName = 'proto.gateway.web.v1.SlackChannel';
247
254
  }
255
+ /**
256
+ * Generated by JsPbCodeGenerator.
257
+ * @param {Array=} opt_data Optional initial data array, typically from a
258
+ * server response, or constructed directly in Javascript. The array is used
259
+ * in place and becomes part of the constructed object. It is not cloned.
260
+ * If no data is provided, the constructed object will be empty, but still
261
+ * valid.
262
+ * @extends {jspb.Message}
263
+ * @constructor
264
+ */
265
+ proto.gateway.web.v1.InitiatePagerDutyOAuthRequest = function(opt_data) {
266
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
267
+ };
268
+ goog.inherits(proto.gateway.web.v1.InitiatePagerDutyOAuthRequest, jspb.Message);
269
+ if (goog.DEBUG && !COMPILED) {
270
+ /**
271
+ * @public
272
+ * @override
273
+ */
274
+ proto.gateway.web.v1.InitiatePagerDutyOAuthRequest.displayName = 'proto.gateway.web.v1.InitiatePagerDutyOAuthRequest';
275
+ }
276
+ /**
277
+ * Generated by JsPbCodeGenerator.
278
+ * @param {Array=} opt_data Optional initial data array, typically from a
279
+ * server response, or constructed directly in Javascript. The array is used
280
+ * in place and becomes part of the constructed object. It is not cloned.
281
+ * If no data is provided, the constructed object will be empty, but still
282
+ * valid.
283
+ * @extends {jspb.Message}
284
+ * @constructor
285
+ */
286
+ proto.gateway.web.v1.InitiatePagerDutyOAuthResponse = function(opt_data) {
287
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
288
+ };
289
+ goog.inherits(proto.gateway.web.v1.InitiatePagerDutyOAuthResponse, jspb.Message);
290
+ if (goog.DEBUG && !COMPILED) {
291
+ /**
292
+ * @public
293
+ * @override
294
+ */
295
+ proto.gateway.web.v1.InitiatePagerDutyOAuthResponse.displayName = 'proto.gateway.web.v1.InitiatePagerDutyOAuthResponse';
296
+ }
297
+ /**
298
+ * Generated by JsPbCodeGenerator.
299
+ * @param {Array=} opt_data Optional initial data array, typically from a
300
+ * server response, or constructed directly in Javascript. The array is used
301
+ * in place and becomes part of the constructed object. It is not cloned.
302
+ * If no data is provided, the constructed object will be empty, but still
303
+ * valid.
304
+ * @extends {jspb.Message}
305
+ * @constructor
306
+ */
307
+ proto.gateway.web.v1.CompletePagerDutyOAuthRequest = function(opt_data) {
308
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
309
+ };
310
+ goog.inherits(proto.gateway.web.v1.CompletePagerDutyOAuthRequest, jspb.Message);
311
+ if (goog.DEBUG && !COMPILED) {
312
+ /**
313
+ * @public
314
+ * @override
315
+ */
316
+ proto.gateway.web.v1.CompletePagerDutyOAuthRequest.displayName = 'proto.gateway.web.v1.CompletePagerDutyOAuthRequest';
317
+ }
318
+ /**
319
+ * Generated by JsPbCodeGenerator.
320
+ * @param {Array=} opt_data Optional initial data array, typically from a
321
+ * server response, or constructed directly in Javascript. The array is used
322
+ * in place and becomes part of the constructed object. It is not cloned.
323
+ * If no data is provided, the constructed object will be empty, but still
324
+ * valid.
325
+ * @extends {jspb.Message}
326
+ * @constructor
327
+ */
328
+ proto.gateway.web.v1.CompletePagerDutyOAuthResponse = function(opt_data) {
329
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
330
+ };
331
+ goog.inherits(proto.gateway.web.v1.CompletePagerDutyOAuthResponse, jspb.Message);
332
+ if (goog.DEBUG && !COMPILED) {
333
+ /**
334
+ * @public
335
+ * @override
336
+ */
337
+ proto.gateway.web.v1.CompletePagerDutyOAuthResponse.displayName = 'proto.gateway.web.v1.CompletePagerDutyOAuthResponse';
338
+ }
339
+ /**
340
+ * Generated by JsPbCodeGenerator.
341
+ * @param {Array=} opt_data Optional initial data array, typically from a
342
+ * server response, or constructed directly in Javascript. The array is used
343
+ * in place and becomes part of the constructed object. It is not cloned.
344
+ * If no data is provided, the constructed object will be empty, but still
345
+ * valid.
346
+ * @extends {jspb.Message}
347
+ * @constructor
348
+ */
349
+ proto.gateway.web.v1.ListPagerDutyServicesRequest = function(opt_data) {
350
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
351
+ };
352
+ goog.inherits(proto.gateway.web.v1.ListPagerDutyServicesRequest, jspb.Message);
353
+ if (goog.DEBUG && !COMPILED) {
354
+ /**
355
+ * @public
356
+ * @override
357
+ */
358
+ proto.gateway.web.v1.ListPagerDutyServicesRequest.displayName = 'proto.gateway.web.v1.ListPagerDutyServicesRequest';
359
+ }
360
+ /**
361
+ * Generated by JsPbCodeGenerator.
362
+ * @param {Array=} opt_data Optional initial data array, typically from a
363
+ * server response, or constructed directly in Javascript. The array is used
364
+ * in place and becomes part of the constructed object. It is not cloned.
365
+ * If no data is provided, the constructed object will be empty, but still
366
+ * valid.
367
+ * @extends {jspb.Message}
368
+ * @constructor
369
+ */
370
+ proto.gateway.web.v1.ListPagerDutyServicesResponse = function(opt_data) {
371
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListPagerDutyServicesResponse.repeatedFields_, null);
372
+ };
373
+ goog.inherits(proto.gateway.web.v1.ListPagerDutyServicesResponse, jspb.Message);
374
+ if (goog.DEBUG && !COMPILED) {
375
+ /**
376
+ * @public
377
+ * @override
378
+ */
379
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.displayName = 'proto.gateway.web.v1.ListPagerDutyServicesResponse';
380
+ }
381
+ /**
382
+ * Generated by JsPbCodeGenerator.
383
+ * @param {Array=} opt_data Optional initial data array, typically from a
384
+ * server response, or constructed directly in Javascript. The array is used
385
+ * in place and becomes part of the constructed object. It is not cloned.
386
+ * If no data is provided, the constructed object will be empty, but still
387
+ * valid.
388
+ * @extends {jspb.Message}
389
+ * @constructor
390
+ */
391
+ proto.gateway.web.v1.PagerDutyService = function(opt_data) {
392
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
393
+ };
394
+ goog.inherits(proto.gateway.web.v1.PagerDutyService, jspb.Message);
395
+ if (goog.DEBUG && !COMPILED) {
396
+ /**
397
+ * @public
398
+ * @override
399
+ */
400
+ proto.gateway.web.v1.PagerDutyService.displayName = 'proto.gateway.web.v1.PagerDutyService';
401
+ }
248
402
 
249
403
 
250
404
 
@@ -284,7 +438,10 @@ providerTeamId: jspb.Message.getFieldWithDefault(msg, 4, ""),
284
438
  providerTeamName: jspb.Message.getFieldWithDefault(msg, 5, ""),
285
439
  installedBy: jspb.Message.getFieldWithDefault(msg, 6, ""),
286
440
  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)
441
+ updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
442
+ providerAccountId: jspb.Message.getFieldWithDefault(msg, 9, ""),
443
+ providerAccountName: jspb.Message.getFieldWithDefault(msg, 10, ""),
444
+ providerRegion: jspb.Message.getFieldWithDefault(msg, 11, "")
288
445
  };
289
446
 
290
447
  if (includeInstance) {
@@ -355,6 +512,18 @@ proto.gateway.web.v1.OAuthConnection.deserializeBinaryFromReader = function(msg,
355
512
  reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
356
513
  msg.setUpdatedAt(value);
357
514
  break;
515
+ case 9:
516
+ var value = /** @type {string} */ (reader.readString());
517
+ msg.setProviderAccountId(value);
518
+ break;
519
+ case 10:
520
+ var value = /** @type {string} */ (reader.readString());
521
+ msg.setProviderAccountName(value);
522
+ break;
523
+ case 11:
524
+ var value = /** @type {string} */ (reader.readString());
525
+ msg.setProviderRegion(value);
526
+ break;
358
527
  default:
359
528
  reader.skipField();
360
529
  break;
@@ -442,6 +611,27 @@ proto.gateway.web.v1.OAuthConnection.serializeBinaryToWriter = function(message,
442
611
  google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
443
612
  );
444
613
  }
614
+ f = message.getProviderAccountId();
615
+ if (f.length > 0) {
616
+ writer.writeString(
617
+ 9,
618
+ f
619
+ );
620
+ }
621
+ f = message.getProviderAccountName();
622
+ if (f.length > 0) {
623
+ writer.writeString(
624
+ 10,
625
+ f
626
+ );
627
+ }
628
+ f = message.getProviderRegion();
629
+ if (f.length > 0) {
630
+ writer.writeString(
631
+ 11,
632
+ f
633
+ );
634
+ }
445
635
  };
446
636
 
447
637
 
@@ -627,6 +817,60 @@ proto.gateway.web.v1.OAuthConnection.prototype.hasUpdatedAt = function() {
627
817
  };
628
818
 
629
819
 
820
+ /**
821
+ * optional string provider_account_id = 9;
822
+ * @return {string}
823
+ */
824
+ proto.gateway.web.v1.OAuthConnection.prototype.getProviderAccountId = function() {
825
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
826
+ };
827
+
828
+
829
+ /**
830
+ * @param {string} value
831
+ * @return {!proto.gateway.web.v1.OAuthConnection} returns this
832
+ */
833
+ proto.gateway.web.v1.OAuthConnection.prototype.setProviderAccountId = function(value) {
834
+ return jspb.Message.setProto3StringField(this, 9, value);
835
+ };
836
+
837
+
838
+ /**
839
+ * optional string provider_account_name = 10;
840
+ * @return {string}
841
+ */
842
+ proto.gateway.web.v1.OAuthConnection.prototype.getProviderAccountName = function() {
843
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
844
+ };
845
+
846
+
847
+ /**
848
+ * @param {string} value
849
+ * @return {!proto.gateway.web.v1.OAuthConnection} returns this
850
+ */
851
+ proto.gateway.web.v1.OAuthConnection.prototype.setProviderAccountName = function(value) {
852
+ return jspb.Message.setProto3StringField(this, 10, value);
853
+ };
854
+
855
+
856
+ /**
857
+ * optional string provider_region = 11;
858
+ * @return {string}
859
+ */
860
+ proto.gateway.web.v1.OAuthConnection.prototype.getProviderRegion = function() {
861
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
862
+ };
863
+
864
+
865
+ /**
866
+ * @param {string} value
867
+ * @return {!proto.gateway.web.v1.OAuthConnection} returns this
868
+ */
869
+ proto.gateway.web.v1.OAuthConnection.prototype.setProviderRegion = function(value) {
870
+ return jspb.Message.setProto3StringField(this, 11, value);
871
+ };
872
+
873
+
630
874
 
631
875
 
632
876
 
@@ -2313,4 +2557,1478 @@ proto.gateway.web.v1.SlackChannel.prototype.setIsPrivate = function(value) {
2313
2557
  };
2314
2558
 
2315
2559
 
2560
+
2561
+
2562
+
2563
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2564
+ /**
2565
+ * Creates an object representation of this proto.
2566
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2567
+ * Optional fields that are not set will be set to undefined.
2568
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2569
+ * For the list of reserved names please see:
2570
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2571
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2572
+ * JSPB instance for transitional soy proto support:
2573
+ * http://goto/soy-param-migration
2574
+ * @return {!Object}
2575
+ */
2576
+ proto.gateway.web.v1.InitiatePagerDutyOAuthRequest.prototype.toObject = function(opt_includeInstance) {
2577
+ return proto.gateway.web.v1.InitiatePagerDutyOAuthRequest.toObject(opt_includeInstance, this);
2578
+ };
2579
+
2580
+
2581
+ /**
2582
+ * Static version of the {@see toObject} method.
2583
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2584
+ * the JSPB instance for transitional soy proto support:
2585
+ * http://goto/soy-param-migration
2586
+ * @param {!proto.gateway.web.v1.InitiatePagerDutyOAuthRequest} msg The msg instance to transform.
2587
+ * @return {!Object}
2588
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2589
+ */
2590
+ proto.gateway.web.v1.InitiatePagerDutyOAuthRequest.toObject = function(includeInstance, msg) {
2591
+ var f, obj = {
2592
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2593
+ redirectUri: jspb.Message.getFieldWithDefault(msg, 2, "")
2594
+ };
2595
+
2596
+ if (includeInstance) {
2597
+ obj.$jspbMessageInstance = msg;
2598
+ }
2599
+ return obj;
2600
+ };
2601
+ }
2602
+
2603
+
2604
+ /**
2605
+ * Deserializes binary data (in protobuf wire format).
2606
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2607
+ * @return {!proto.gateway.web.v1.InitiatePagerDutyOAuthRequest}
2608
+ */
2609
+ proto.gateway.web.v1.InitiatePagerDutyOAuthRequest.deserializeBinary = function(bytes) {
2610
+ var reader = new jspb.BinaryReader(bytes);
2611
+ var msg = new proto.gateway.web.v1.InitiatePagerDutyOAuthRequest;
2612
+ return proto.gateway.web.v1.InitiatePagerDutyOAuthRequest.deserializeBinaryFromReader(msg, reader);
2613
+ };
2614
+
2615
+
2616
+ /**
2617
+ * Deserializes binary data (in protobuf wire format) from the
2618
+ * given reader into the given message object.
2619
+ * @param {!proto.gateway.web.v1.InitiatePagerDutyOAuthRequest} msg The message object to deserialize into.
2620
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2621
+ * @return {!proto.gateway.web.v1.InitiatePagerDutyOAuthRequest}
2622
+ */
2623
+ proto.gateway.web.v1.InitiatePagerDutyOAuthRequest.deserializeBinaryFromReader = function(msg, reader) {
2624
+ while (reader.nextField()) {
2625
+ if (reader.isEndGroup()) {
2626
+ break;
2627
+ }
2628
+ var field = reader.getFieldNumber();
2629
+ switch (field) {
2630
+ case 1:
2631
+ var value = /** @type {string} */ (reader.readString());
2632
+ msg.setOrganizationId(value);
2633
+ break;
2634
+ case 2:
2635
+ var value = /** @type {string} */ (reader.readString());
2636
+ msg.setRedirectUri(value);
2637
+ break;
2638
+ default:
2639
+ reader.skipField();
2640
+ break;
2641
+ }
2642
+ }
2643
+ return msg;
2644
+ };
2645
+
2646
+
2647
+ /**
2648
+ * Serializes the message to binary data (in protobuf wire format).
2649
+ * @return {!Uint8Array}
2650
+ */
2651
+ proto.gateway.web.v1.InitiatePagerDutyOAuthRequest.prototype.serializeBinary = function() {
2652
+ var writer = new jspb.BinaryWriter();
2653
+ proto.gateway.web.v1.InitiatePagerDutyOAuthRequest.serializeBinaryToWriter(this, writer);
2654
+ return writer.getResultBuffer();
2655
+ };
2656
+
2657
+
2658
+ /**
2659
+ * Serializes the given message to binary data (in protobuf wire
2660
+ * format), writing to the given BinaryWriter.
2661
+ * @param {!proto.gateway.web.v1.InitiatePagerDutyOAuthRequest} message
2662
+ * @param {!jspb.BinaryWriter} writer
2663
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2664
+ */
2665
+ proto.gateway.web.v1.InitiatePagerDutyOAuthRequest.serializeBinaryToWriter = function(message, writer) {
2666
+ var f = undefined;
2667
+ f = message.getOrganizationId();
2668
+ if (f.length > 0) {
2669
+ writer.writeString(
2670
+ 1,
2671
+ f
2672
+ );
2673
+ }
2674
+ f = message.getRedirectUri();
2675
+ if (f.length > 0) {
2676
+ writer.writeString(
2677
+ 2,
2678
+ f
2679
+ );
2680
+ }
2681
+ };
2682
+
2683
+
2684
+ /**
2685
+ * optional string organization_id = 1;
2686
+ * @return {string}
2687
+ */
2688
+ proto.gateway.web.v1.InitiatePagerDutyOAuthRequest.prototype.getOrganizationId = function() {
2689
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2690
+ };
2691
+
2692
+
2693
+ /**
2694
+ * @param {string} value
2695
+ * @return {!proto.gateway.web.v1.InitiatePagerDutyOAuthRequest} returns this
2696
+ */
2697
+ proto.gateway.web.v1.InitiatePagerDutyOAuthRequest.prototype.setOrganizationId = function(value) {
2698
+ return jspb.Message.setProto3StringField(this, 1, value);
2699
+ };
2700
+
2701
+
2702
+ /**
2703
+ * optional string redirect_uri = 2;
2704
+ * @return {string}
2705
+ */
2706
+ proto.gateway.web.v1.InitiatePagerDutyOAuthRequest.prototype.getRedirectUri = function() {
2707
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2708
+ };
2709
+
2710
+
2711
+ /**
2712
+ * @param {string} value
2713
+ * @return {!proto.gateway.web.v1.InitiatePagerDutyOAuthRequest} returns this
2714
+ */
2715
+ proto.gateway.web.v1.InitiatePagerDutyOAuthRequest.prototype.setRedirectUri = function(value) {
2716
+ return jspb.Message.setProto3StringField(this, 2, value);
2717
+ };
2718
+
2719
+
2720
+
2721
+
2722
+
2723
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2724
+ /**
2725
+ * Creates an object representation of this proto.
2726
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2727
+ * Optional fields that are not set will be set to undefined.
2728
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2729
+ * For the list of reserved names please see:
2730
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2731
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2732
+ * JSPB instance for transitional soy proto support:
2733
+ * http://goto/soy-param-migration
2734
+ * @return {!Object}
2735
+ */
2736
+ proto.gateway.web.v1.InitiatePagerDutyOAuthResponse.prototype.toObject = function(opt_includeInstance) {
2737
+ return proto.gateway.web.v1.InitiatePagerDutyOAuthResponse.toObject(opt_includeInstance, this);
2738
+ };
2739
+
2740
+
2741
+ /**
2742
+ * Static version of the {@see toObject} method.
2743
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2744
+ * the JSPB instance for transitional soy proto support:
2745
+ * http://goto/soy-param-migration
2746
+ * @param {!proto.gateway.web.v1.InitiatePagerDutyOAuthResponse} msg The msg instance to transform.
2747
+ * @return {!Object}
2748
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2749
+ */
2750
+ proto.gateway.web.v1.InitiatePagerDutyOAuthResponse.toObject = function(includeInstance, msg) {
2751
+ var f, obj = {
2752
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
2753
+ oauthUrl: jspb.Message.getFieldWithDefault(msg, 2, ""),
2754
+ flowId: jspb.Message.getFieldWithDefault(msg, 3, "")
2755
+ };
2756
+
2757
+ if (includeInstance) {
2758
+ obj.$jspbMessageInstance = msg;
2759
+ }
2760
+ return obj;
2761
+ };
2762
+ }
2763
+
2764
+
2765
+ /**
2766
+ * Deserializes binary data (in protobuf wire format).
2767
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2768
+ * @return {!proto.gateway.web.v1.InitiatePagerDutyOAuthResponse}
2769
+ */
2770
+ proto.gateway.web.v1.InitiatePagerDutyOAuthResponse.deserializeBinary = function(bytes) {
2771
+ var reader = new jspb.BinaryReader(bytes);
2772
+ var msg = new proto.gateway.web.v1.InitiatePagerDutyOAuthResponse;
2773
+ return proto.gateway.web.v1.InitiatePagerDutyOAuthResponse.deserializeBinaryFromReader(msg, reader);
2774
+ };
2775
+
2776
+
2777
+ /**
2778
+ * Deserializes binary data (in protobuf wire format) from the
2779
+ * given reader into the given message object.
2780
+ * @param {!proto.gateway.web.v1.InitiatePagerDutyOAuthResponse} msg The message object to deserialize into.
2781
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2782
+ * @return {!proto.gateway.web.v1.InitiatePagerDutyOAuthResponse}
2783
+ */
2784
+ proto.gateway.web.v1.InitiatePagerDutyOAuthResponse.deserializeBinaryFromReader = function(msg, reader) {
2785
+ while (reader.nextField()) {
2786
+ if (reader.isEndGroup()) {
2787
+ break;
2788
+ }
2789
+ var field = reader.getFieldNumber();
2790
+ switch (field) {
2791
+ case 1:
2792
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
2793
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
2794
+ msg.setStatus(value);
2795
+ break;
2796
+ case 2:
2797
+ var value = /** @type {string} */ (reader.readString());
2798
+ msg.setOauthUrl(value);
2799
+ break;
2800
+ case 3:
2801
+ var value = /** @type {string} */ (reader.readString());
2802
+ msg.setFlowId(value);
2803
+ break;
2804
+ default:
2805
+ reader.skipField();
2806
+ break;
2807
+ }
2808
+ }
2809
+ return msg;
2810
+ };
2811
+
2812
+
2813
+ /**
2814
+ * Serializes the message to binary data (in protobuf wire format).
2815
+ * @return {!Uint8Array}
2816
+ */
2817
+ proto.gateway.web.v1.InitiatePagerDutyOAuthResponse.prototype.serializeBinary = function() {
2818
+ var writer = new jspb.BinaryWriter();
2819
+ proto.gateway.web.v1.InitiatePagerDutyOAuthResponse.serializeBinaryToWriter(this, writer);
2820
+ return writer.getResultBuffer();
2821
+ };
2822
+
2823
+
2824
+ /**
2825
+ * Serializes the given message to binary data (in protobuf wire
2826
+ * format), writing to the given BinaryWriter.
2827
+ * @param {!proto.gateway.web.v1.InitiatePagerDutyOAuthResponse} message
2828
+ * @param {!jspb.BinaryWriter} writer
2829
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2830
+ */
2831
+ proto.gateway.web.v1.InitiatePagerDutyOAuthResponse.serializeBinaryToWriter = function(message, writer) {
2832
+ var f = undefined;
2833
+ f = message.getStatus();
2834
+ if (f != null) {
2835
+ writer.writeMessage(
2836
+ 1,
2837
+ f,
2838
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
2839
+ );
2840
+ }
2841
+ f = message.getOauthUrl();
2842
+ if (f.length > 0) {
2843
+ writer.writeString(
2844
+ 2,
2845
+ f
2846
+ );
2847
+ }
2848
+ f = message.getFlowId();
2849
+ if (f.length > 0) {
2850
+ writer.writeString(
2851
+ 3,
2852
+ f
2853
+ );
2854
+ }
2855
+ };
2856
+
2857
+
2858
+ /**
2859
+ * optional gateway.common.v1.ResponseStatus status = 1;
2860
+ * @return {?proto.gateway.common.v1.ResponseStatus}
2861
+ */
2862
+ proto.gateway.web.v1.InitiatePagerDutyOAuthResponse.prototype.getStatus = function() {
2863
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
2864
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
2865
+ };
2866
+
2867
+
2868
+ /**
2869
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
2870
+ * @return {!proto.gateway.web.v1.InitiatePagerDutyOAuthResponse} returns this
2871
+ */
2872
+ proto.gateway.web.v1.InitiatePagerDutyOAuthResponse.prototype.setStatus = function(value) {
2873
+ return jspb.Message.setWrapperField(this, 1, value);
2874
+ };
2875
+
2876
+
2877
+ /**
2878
+ * Clears the message field making it undefined.
2879
+ * @return {!proto.gateway.web.v1.InitiatePagerDutyOAuthResponse} returns this
2880
+ */
2881
+ proto.gateway.web.v1.InitiatePagerDutyOAuthResponse.prototype.clearStatus = function() {
2882
+ return this.setStatus(undefined);
2883
+ };
2884
+
2885
+
2886
+ /**
2887
+ * Returns whether this field is set.
2888
+ * @return {boolean}
2889
+ */
2890
+ proto.gateway.web.v1.InitiatePagerDutyOAuthResponse.prototype.hasStatus = function() {
2891
+ return jspb.Message.getField(this, 1) != null;
2892
+ };
2893
+
2894
+
2895
+ /**
2896
+ * optional string oauth_url = 2;
2897
+ * @return {string}
2898
+ */
2899
+ proto.gateway.web.v1.InitiatePagerDutyOAuthResponse.prototype.getOauthUrl = function() {
2900
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2901
+ };
2902
+
2903
+
2904
+ /**
2905
+ * @param {string} value
2906
+ * @return {!proto.gateway.web.v1.InitiatePagerDutyOAuthResponse} returns this
2907
+ */
2908
+ proto.gateway.web.v1.InitiatePagerDutyOAuthResponse.prototype.setOauthUrl = function(value) {
2909
+ return jspb.Message.setProto3StringField(this, 2, value);
2910
+ };
2911
+
2912
+
2913
+ /**
2914
+ * optional string flow_id = 3;
2915
+ * @return {string}
2916
+ */
2917
+ proto.gateway.web.v1.InitiatePagerDutyOAuthResponse.prototype.getFlowId = function() {
2918
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2919
+ };
2920
+
2921
+
2922
+ /**
2923
+ * @param {string} value
2924
+ * @return {!proto.gateway.web.v1.InitiatePagerDutyOAuthResponse} returns this
2925
+ */
2926
+ proto.gateway.web.v1.InitiatePagerDutyOAuthResponse.prototype.setFlowId = function(value) {
2927
+ return jspb.Message.setProto3StringField(this, 3, value);
2928
+ };
2929
+
2930
+
2931
+
2932
+
2933
+
2934
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2935
+ /**
2936
+ * Creates an object representation of this proto.
2937
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2938
+ * Optional fields that are not set will be set to undefined.
2939
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2940
+ * For the list of reserved names please see:
2941
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2942
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2943
+ * JSPB instance for transitional soy proto support:
2944
+ * http://goto/soy-param-migration
2945
+ * @return {!Object}
2946
+ */
2947
+ proto.gateway.web.v1.CompletePagerDutyOAuthRequest.prototype.toObject = function(opt_includeInstance) {
2948
+ return proto.gateway.web.v1.CompletePagerDutyOAuthRequest.toObject(opt_includeInstance, this);
2949
+ };
2950
+
2951
+
2952
+ /**
2953
+ * Static version of the {@see toObject} method.
2954
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2955
+ * the JSPB instance for transitional soy proto support:
2956
+ * http://goto/soy-param-migration
2957
+ * @param {!proto.gateway.web.v1.CompletePagerDutyOAuthRequest} msg The msg instance to transform.
2958
+ * @return {!Object}
2959
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2960
+ */
2961
+ proto.gateway.web.v1.CompletePagerDutyOAuthRequest.toObject = function(includeInstance, msg) {
2962
+ var f, obj = {
2963
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2964
+ code: jspb.Message.getFieldWithDefault(msg, 2, ""),
2965
+ redirectUri: jspb.Message.getFieldWithDefault(msg, 3, ""),
2966
+ flowId: jspb.Message.getFieldWithDefault(msg, 4, "")
2967
+ };
2968
+
2969
+ if (includeInstance) {
2970
+ obj.$jspbMessageInstance = msg;
2971
+ }
2972
+ return obj;
2973
+ };
2974
+ }
2975
+
2976
+
2977
+ /**
2978
+ * Deserializes binary data (in protobuf wire format).
2979
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2980
+ * @return {!proto.gateway.web.v1.CompletePagerDutyOAuthRequest}
2981
+ */
2982
+ proto.gateway.web.v1.CompletePagerDutyOAuthRequest.deserializeBinary = function(bytes) {
2983
+ var reader = new jspb.BinaryReader(bytes);
2984
+ var msg = new proto.gateway.web.v1.CompletePagerDutyOAuthRequest;
2985
+ return proto.gateway.web.v1.CompletePagerDutyOAuthRequest.deserializeBinaryFromReader(msg, reader);
2986
+ };
2987
+
2988
+
2989
+ /**
2990
+ * Deserializes binary data (in protobuf wire format) from the
2991
+ * given reader into the given message object.
2992
+ * @param {!proto.gateway.web.v1.CompletePagerDutyOAuthRequest} msg The message object to deserialize into.
2993
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2994
+ * @return {!proto.gateway.web.v1.CompletePagerDutyOAuthRequest}
2995
+ */
2996
+ proto.gateway.web.v1.CompletePagerDutyOAuthRequest.deserializeBinaryFromReader = function(msg, reader) {
2997
+ while (reader.nextField()) {
2998
+ if (reader.isEndGroup()) {
2999
+ break;
3000
+ }
3001
+ var field = reader.getFieldNumber();
3002
+ switch (field) {
3003
+ case 1:
3004
+ var value = /** @type {string} */ (reader.readString());
3005
+ msg.setOrganizationId(value);
3006
+ break;
3007
+ case 2:
3008
+ var value = /** @type {string} */ (reader.readString());
3009
+ msg.setCode(value);
3010
+ break;
3011
+ case 3:
3012
+ var value = /** @type {string} */ (reader.readString());
3013
+ msg.setRedirectUri(value);
3014
+ break;
3015
+ case 4:
3016
+ var value = /** @type {string} */ (reader.readString());
3017
+ msg.setFlowId(value);
3018
+ break;
3019
+ default:
3020
+ reader.skipField();
3021
+ break;
3022
+ }
3023
+ }
3024
+ return msg;
3025
+ };
3026
+
3027
+
3028
+ /**
3029
+ * Serializes the message to binary data (in protobuf wire format).
3030
+ * @return {!Uint8Array}
3031
+ */
3032
+ proto.gateway.web.v1.CompletePagerDutyOAuthRequest.prototype.serializeBinary = function() {
3033
+ var writer = new jspb.BinaryWriter();
3034
+ proto.gateway.web.v1.CompletePagerDutyOAuthRequest.serializeBinaryToWriter(this, writer);
3035
+ return writer.getResultBuffer();
3036
+ };
3037
+
3038
+
3039
+ /**
3040
+ * Serializes the given message to binary data (in protobuf wire
3041
+ * format), writing to the given BinaryWriter.
3042
+ * @param {!proto.gateway.web.v1.CompletePagerDutyOAuthRequest} message
3043
+ * @param {!jspb.BinaryWriter} writer
3044
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3045
+ */
3046
+ proto.gateway.web.v1.CompletePagerDutyOAuthRequest.serializeBinaryToWriter = function(message, writer) {
3047
+ var f = undefined;
3048
+ f = message.getOrganizationId();
3049
+ if (f.length > 0) {
3050
+ writer.writeString(
3051
+ 1,
3052
+ f
3053
+ );
3054
+ }
3055
+ f = message.getCode();
3056
+ if (f.length > 0) {
3057
+ writer.writeString(
3058
+ 2,
3059
+ f
3060
+ );
3061
+ }
3062
+ f = message.getRedirectUri();
3063
+ if (f.length > 0) {
3064
+ writer.writeString(
3065
+ 3,
3066
+ f
3067
+ );
3068
+ }
3069
+ f = message.getFlowId();
3070
+ if (f.length > 0) {
3071
+ writer.writeString(
3072
+ 4,
3073
+ f
3074
+ );
3075
+ }
3076
+ };
3077
+
3078
+
3079
+ /**
3080
+ * optional string organization_id = 1;
3081
+ * @return {string}
3082
+ */
3083
+ proto.gateway.web.v1.CompletePagerDutyOAuthRequest.prototype.getOrganizationId = function() {
3084
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3085
+ };
3086
+
3087
+
3088
+ /**
3089
+ * @param {string} value
3090
+ * @return {!proto.gateway.web.v1.CompletePagerDutyOAuthRequest} returns this
3091
+ */
3092
+ proto.gateway.web.v1.CompletePagerDutyOAuthRequest.prototype.setOrganizationId = function(value) {
3093
+ return jspb.Message.setProto3StringField(this, 1, value);
3094
+ };
3095
+
3096
+
3097
+ /**
3098
+ * optional string code = 2;
3099
+ * @return {string}
3100
+ */
3101
+ proto.gateway.web.v1.CompletePagerDutyOAuthRequest.prototype.getCode = function() {
3102
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3103
+ };
3104
+
3105
+
3106
+ /**
3107
+ * @param {string} value
3108
+ * @return {!proto.gateway.web.v1.CompletePagerDutyOAuthRequest} returns this
3109
+ */
3110
+ proto.gateway.web.v1.CompletePagerDutyOAuthRequest.prototype.setCode = function(value) {
3111
+ return jspb.Message.setProto3StringField(this, 2, value);
3112
+ };
3113
+
3114
+
3115
+ /**
3116
+ * optional string redirect_uri = 3;
3117
+ * @return {string}
3118
+ */
3119
+ proto.gateway.web.v1.CompletePagerDutyOAuthRequest.prototype.getRedirectUri = function() {
3120
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3121
+ };
3122
+
3123
+
3124
+ /**
3125
+ * @param {string} value
3126
+ * @return {!proto.gateway.web.v1.CompletePagerDutyOAuthRequest} returns this
3127
+ */
3128
+ proto.gateway.web.v1.CompletePagerDutyOAuthRequest.prototype.setRedirectUri = function(value) {
3129
+ return jspb.Message.setProto3StringField(this, 3, value);
3130
+ };
3131
+
3132
+
3133
+ /**
3134
+ * optional string flow_id = 4;
3135
+ * @return {string}
3136
+ */
3137
+ proto.gateway.web.v1.CompletePagerDutyOAuthRequest.prototype.getFlowId = function() {
3138
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3139
+ };
3140
+
3141
+
3142
+ /**
3143
+ * @param {string} value
3144
+ * @return {!proto.gateway.web.v1.CompletePagerDutyOAuthRequest} returns this
3145
+ */
3146
+ proto.gateway.web.v1.CompletePagerDutyOAuthRequest.prototype.setFlowId = function(value) {
3147
+ return jspb.Message.setProto3StringField(this, 4, value);
3148
+ };
3149
+
3150
+
3151
+
3152
+
3153
+
3154
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3155
+ /**
3156
+ * Creates an object representation of this proto.
3157
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3158
+ * Optional fields that are not set will be set to undefined.
3159
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3160
+ * For the list of reserved names please see:
3161
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3162
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3163
+ * JSPB instance for transitional soy proto support:
3164
+ * http://goto/soy-param-migration
3165
+ * @return {!Object}
3166
+ */
3167
+ proto.gateway.web.v1.CompletePagerDutyOAuthResponse.prototype.toObject = function(opt_includeInstance) {
3168
+ return proto.gateway.web.v1.CompletePagerDutyOAuthResponse.toObject(opt_includeInstance, this);
3169
+ };
3170
+
3171
+
3172
+ /**
3173
+ * Static version of the {@see toObject} method.
3174
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3175
+ * the JSPB instance for transitional soy proto support:
3176
+ * http://goto/soy-param-migration
3177
+ * @param {!proto.gateway.web.v1.CompletePagerDutyOAuthResponse} msg The msg instance to transform.
3178
+ * @return {!Object}
3179
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3180
+ */
3181
+ proto.gateway.web.v1.CompletePagerDutyOAuthResponse.toObject = function(includeInstance, msg) {
3182
+ var f, obj = {
3183
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
3184
+ oauthConnection: (f = msg.getOauthConnection()) && proto.gateway.web.v1.OAuthConnection.toObject(includeInstance, f)
3185
+ };
3186
+
3187
+ if (includeInstance) {
3188
+ obj.$jspbMessageInstance = msg;
3189
+ }
3190
+ return obj;
3191
+ };
3192
+ }
3193
+
3194
+
3195
+ /**
3196
+ * Deserializes binary data (in protobuf wire format).
3197
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3198
+ * @return {!proto.gateway.web.v1.CompletePagerDutyOAuthResponse}
3199
+ */
3200
+ proto.gateway.web.v1.CompletePagerDutyOAuthResponse.deserializeBinary = function(bytes) {
3201
+ var reader = new jspb.BinaryReader(bytes);
3202
+ var msg = new proto.gateway.web.v1.CompletePagerDutyOAuthResponse;
3203
+ return proto.gateway.web.v1.CompletePagerDutyOAuthResponse.deserializeBinaryFromReader(msg, reader);
3204
+ };
3205
+
3206
+
3207
+ /**
3208
+ * Deserializes binary data (in protobuf wire format) from the
3209
+ * given reader into the given message object.
3210
+ * @param {!proto.gateway.web.v1.CompletePagerDutyOAuthResponse} msg The message object to deserialize into.
3211
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3212
+ * @return {!proto.gateway.web.v1.CompletePagerDutyOAuthResponse}
3213
+ */
3214
+ proto.gateway.web.v1.CompletePagerDutyOAuthResponse.deserializeBinaryFromReader = function(msg, reader) {
3215
+ while (reader.nextField()) {
3216
+ if (reader.isEndGroup()) {
3217
+ break;
3218
+ }
3219
+ var field = reader.getFieldNumber();
3220
+ switch (field) {
3221
+ case 1:
3222
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
3223
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
3224
+ msg.setStatus(value);
3225
+ break;
3226
+ case 2:
3227
+ var value = new proto.gateway.web.v1.OAuthConnection;
3228
+ reader.readMessage(value,proto.gateway.web.v1.OAuthConnection.deserializeBinaryFromReader);
3229
+ msg.setOauthConnection(value);
3230
+ break;
3231
+ default:
3232
+ reader.skipField();
3233
+ break;
3234
+ }
3235
+ }
3236
+ return msg;
3237
+ };
3238
+
3239
+
3240
+ /**
3241
+ * Serializes the message to binary data (in protobuf wire format).
3242
+ * @return {!Uint8Array}
3243
+ */
3244
+ proto.gateway.web.v1.CompletePagerDutyOAuthResponse.prototype.serializeBinary = function() {
3245
+ var writer = new jspb.BinaryWriter();
3246
+ proto.gateway.web.v1.CompletePagerDutyOAuthResponse.serializeBinaryToWriter(this, writer);
3247
+ return writer.getResultBuffer();
3248
+ };
3249
+
3250
+
3251
+ /**
3252
+ * Serializes the given message to binary data (in protobuf wire
3253
+ * format), writing to the given BinaryWriter.
3254
+ * @param {!proto.gateway.web.v1.CompletePagerDutyOAuthResponse} message
3255
+ * @param {!jspb.BinaryWriter} writer
3256
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3257
+ */
3258
+ proto.gateway.web.v1.CompletePagerDutyOAuthResponse.serializeBinaryToWriter = function(message, writer) {
3259
+ var f = undefined;
3260
+ f = message.getStatus();
3261
+ if (f != null) {
3262
+ writer.writeMessage(
3263
+ 1,
3264
+ f,
3265
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
3266
+ );
3267
+ }
3268
+ f = message.getOauthConnection();
3269
+ if (f != null) {
3270
+ writer.writeMessage(
3271
+ 2,
3272
+ f,
3273
+ proto.gateway.web.v1.OAuthConnection.serializeBinaryToWriter
3274
+ );
3275
+ }
3276
+ };
3277
+
3278
+
3279
+ /**
3280
+ * optional gateway.common.v1.ResponseStatus status = 1;
3281
+ * @return {?proto.gateway.common.v1.ResponseStatus}
3282
+ */
3283
+ proto.gateway.web.v1.CompletePagerDutyOAuthResponse.prototype.getStatus = function() {
3284
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
3285
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
3286
+ };
3287
+
3288
+
3289
+ /**
3290
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
3291
+ * @return {!proto.gateway.web.v1.CompletePagerDutyOAuthResponse} returns this
3292
+ */
3293
+ proto.gateway.web.v1.CompletePagerDutyOAuthResponse.prototype.setStatus = function(value) {
3294
+ return jspb.Message.setWrapperField(this, 1, value);
3295
+ };
3296
+
3297
+
3298
+ /**
3299
+ * Clears the message field making it undefined.
3300
+ * @return {!proto.gateway.web.v1.CompletePagerDutyOAuthResponse} returns this
3301
+ */
3302
+ proto.gateway.web.v1.CompletePagerDutyOAuthResponse.prototype.clearStatus = function() {
3303
+ return this.setStatus(undefined);
3304
+ };
3305
+
3306
+
3307
+ /**
3308
+ * Returns whether this field is set.
3309
+ * @return {boolean}
3310
+ */
3311
+ proto.gateway.web.v1.CompletePagerDutyOAuthResponse.prototype.hasStatus = function() {
3312
+ return jspb.Message.getField(this, 1) != null;
3313
+ };
3314
+
3315
+
3316
+ /**
3317
+ * optional OAuthConnection oauth_connection = 2;
3318
+ * @return {?proto.gateway.web.v1.OAuthConnection}
3319
+ */
3320
+ proto.gateway.web.v1.CompletePagerDutyOAuthResponse.prototype.getOauthConnection = function() {
3321
+ return /** @type{?proto.gateway.web.v1.OAuthConnection} */ (
3322
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.OAuthConnection, 2));
3323
+ };
3324
+
3325
+
3326
+ /**
3327
+ * @param {?proto.gateway.web.v1.OAuthConnection|undefined} value
3328
+ * @return {!proto.gateway.web.v1.CompletePagerDutyOAuthResponse} returns this
3329
+ */
3330
+ proto.gateway.web.v1.CompletePagerDutyOAuthResponse.prototype.setOauthConnection = function(value) {
3331
+ return jspb.Message.setWrapperField(this, 2, value);
3332
+ };
3333
+
3334
+
3335
+ /**
3336
+ * Clears the message field making it undefined.
3337
+ * @return {!proto.gateway.web.v1.CompletePagerDutyOAuthResponse} returns this
3338
+ */
3339
+ proto.gateway.web.v1.CompletePagerDutyOAuthResponse.prototype.clearOauthConnection = function() {
3340
+ return this.setOauthConnection(undefined);
3341
+ };
3342
+
3343
+
3344
+ /**
3345
+ * Returns whether this field is set.
3346
+ * @return {boolean}
3347
+ */
3348
+ proto.gateway.web.v1.CompletePagerDutyOAuthResponse.prototype.hasOauthConnection = function() {
3349
+ return jspb.Message.getField(this, 2) != null;
3350
+ };
3351
+
3352
+
3353
+
3354
+
3355
+
3356
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3357
+ /**
3358
+ * Creates an object representation of this proto.
3359
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3360
+ * Optional fields that are not set will be set to undefined.
3361
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3362
+ * For the list of reserved names please see:
3363
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3364
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3365
+ * JSPB instance for transitional soy proto support:
3366
+ * http://goto/soy-param-migration
3367
+ * @return {!Object}
3368
+ */
3369
+ proto.gateway.web.v1.ListPagerDutyServicesRequest.prototype.toObject = function(opt_includeInstance) {
3370
+ return proto.gateway.web.v1.ListPagerDutyServicesRequest.toObject(opt_includeInstance, this);
3371
+ };
3372
+
3373
+
3374
+ /**
3375
+ * Static version of the {@see toObject} method.
3376
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3377
+ * the JSPB instance for transitional soy proto support:
3378
+ * http://goto/soy-param-migration
3379
+ * @param {!proto.gateway.web.v1.ListPagerDutyServicesRequest} msg The msg instance to transform.
3380
+ * @return {!Object}
3381
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3382
+ */
3383
+ proto.gateway.web.v1.ListPagerDutyServicesRequest.toObject = function(includeInstance, msg) {
3384
+ var f, obj = {
3385
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3386
+ query: jspb.Message.getFieldWithDefault(msg, 2, ""),
3387
+ limit: jspb.Message.getFieldWithDefault(msg, 3, 0),
3388
+ offset: jspb.Message.getFieldWithDefault(msg, 4, 0)
3389
+ };
3390
+
3391
+ if (includeInstance) {
3392
+ obj.$jspbMessageInstance = msg;
3393
+ }
3394
+ return obj;
3395
+ };
3396
+ }
3397
+
3398
+
3399
+ /**
3400
+ * Deserializes binary data (in protobuf wire format).
3401
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3402
+ * @return {!proto.gateway.web.v1.ListPagerDutyServicesRequest}
3403
+ */
3404
+ proto.gateway.web.v1.ListPagerDutyServicesRequest.deserializeBinary = function(bytes) {
3405
+ var reader = new jspb.BinaryReader(bytes);
3406
+ var msg = new proto.gateway.web.v1.ListPagerDutyServicesRequest;
3407
+ return proto.gateway.web.v1.ListPagerDutyServicesRequest.deserializeBinaryFromReader(msg, reader);
3408
+ };
3409
+
3410
+
3411
+ /**
3412
+ * Deserializes binary data (in protobuf wire format) from the
3413
+ * given reader into the given message object.
3414
+ * @param {!proto.gateway.web.v1.ListPagerDutyServicesRequest} msg The message object to deserialize into.
3415
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3416
+ * @return {!proto.gateway.web.v1.ListPagerDutyServicesRequest}
3417
+ */
3418
+ proto.gateway.web.v1.ListPagerDutyServicesRequest.deserializeBinaryFromReader = function(msg, reader) {
3419
+ while (reader.nextField()) {
3420
+ if (reader.isEndGroup()) {
3421
+ break;
3422
+ }
3423
+ var field = reader.getFieldNumber();
3424
+ switch (field) {
3425
+ case 1:
3426
+ var value = /** @type {string} */ (reader.readString());
3427
+ msg.setOrganizationId(value);
3428
+ break;
3429
+ case 2:
3430
+ var value = /** @type {string} */ (reader.readString());
3431
+ msg.setQuery(value);
3432
+ break;
3433
+ case 3:
3434
+ var value = /** @type {number} */ (reader.readInt32());
3435
+ msg.setLimit(value);
3436
+ break;
3437
+ case 4:
3438
+ var value = /** @type {number} */ (reader.readInt32());
3439
+ msg.setOffset(value);
3440
+ break;
3441
+ default:
3442
+ reader.skipField();
3443
+ break;
3444
+ }
3445
+ }
3446
+ return msg;
3447
+ };
3448
+
3449
+
3450
+ /**
3451
+ * Serializes the message to binary data (in protobuf wire format).
3452
+ * @return {!Uint8Array}
3453
+ */
3454
+ proto.gateway.web.v1.ListPagerDutyServicesRequest.prototype.serializeBinary = function() {
3455
+ var writer = new jspb.BinaryWriter();
3456
+ proto.gateway.web.v1.ListPagerDutyServicesRequest.serializeBinaryToWriter(this, writer);
3457
+ return writer.getResultBuffer();
3458
+ };
3459
+
3460
+
3461
+ /**
3462
+ * Serializes the given message to binary data (in protobuf wire
3463
+ * format), writing to the given BinaryWriter.
3464
+ * @param {!proto.gateway.web.v1.ListPagerDutyServicesRequest} message
3465
+ * @param {!jspb.BinaryWriter} writer
3466
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3467
+ */
3468
+ proto.gateway.web.v1.ListPagerDutyServicesRequest.serializeBinaryToWriter = function(message, writer) {
3469
+ var f = undefined;
3470
+ f = message.getOrganizationId();
3471
+ if (f.length > 0) {
3472
+ writer.writeString(
3473
+ 1,
3474
+ f
3475
+ );
3476
+ }
3477
+ f = message.getQuery();
3478
+ if (f.length > 0) {
3479
+ writer.writeString(
3480
+ 2,
3481
+ f
3482
+ );
3483
+ }
3484
+ f = message.getLimit();
3485
+ if (f !== 0) {
3486
+ writer.writeInt32(
3487
+ 3,
3488
+ f
3489
+ );
3490
+ }
3491
+ f = message.getOffset();
3492
+ if (f !== 0) {
3493
+ writer.writeInt32(
3494
+ 4,
3495
+ f
3496
+ );
3497
+ }
3498
+ };
3499
+
3500
+
3501
+ /**
3502
+ * optional string organization_id = 1;
3503
+ * @return {string}
3504
+ */
3505
+ proto.gateway.web.v1.ListPagerDutyServicesRequest.prototype.getOrganizationId = function() {
3506
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3507
+ };
3508
+
3509
+
3510
+ /**
3511
+ * @param {string} value
3512
+ * @return {!proto.gateway.web.v1.ListPagerDutyServicesRequest} returns this
3513
+ */
3514
+ proto.gateway.web.v1.ListPagerDutyServicesRequest.prototype.setOrganizationId = function(value) {
3515
+ return jspb.Message.setProto3StringField(this, 1, value);
3516
+ };
3517
+
3518
+
3519
+ /**
3520
+ * optional string query = 2;
3521
+ * @return {string}
3522
+ */
3523
+ proto.gateway.web.v1.ListPagerDutyServicesRequest.prototype.getQuery = function() {
3524
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3525
+ };
3526
+
3527
+
3528
+ /**
3529
+ * @param {string} value
3530
+ * @return {!proto.gateway.web.v1.ListPagerDutyServicesRequest} returns this
3531
+ */
3532
+ proto.gateway.web.v1.ListPagerDutyServicesRequest.prototype.setQuery = function(value) {
3533
+ return jspb.Message.setProto3StringField(this, 2, value);
3534
+ };
3535
+
3536
+
3537
+ /**
3538
+ * optional int32 limit = 3;
3539
+ * @return {number}
3540
+ */
3541
+ proto.gateway.web.v1.ListPagerDutyServicesRequest.prototype.getLimit = function() {
3542
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
3543
+ };
3544
+
3545
+
3546
+ /**
3547
+ * @param {number} value
3548
+ * @return {!proto.gateway.web.v1.ListPagerDutyServicesRequest} returns this
3549
+ */
3550
+ proto.gateway.web.v1.ListPagerDutyServicesRequest.prototype.setLimit = function(value) {
3551
+ return jspb.Message.setProto3IntField(this, 3, value);
3552
+ };
3553
+
3554
+
3555
+ /**
3556
+ * optional int32 offset = 4;
3557
+ * @return {number}
3558
+ */
3559
+ proto.gateway.web.v1.ListPagerDutyServicesRequest.prototype.getOffset = function() {
3560
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
3561
+ };
3562
+
3563
+
3564
+ /**
3565
+ * @param {number} value
3566
+ * @return {!proto.gateway.web.v1.ListPagerDutyServicesRequest} returns this
3567
+ */
3568
+ proto.gateway.web.v1.ListPagerDutyServicesRequest.prototype.setOffset = function(value) {
3569
+ return jspb.Message.setProto3IntField(this, 4, value);
3570
+ };
3571
+
3572
+
3573
+
3574
+ /**
3575
+ * List of repeated fields within this message type.
3576
+ * @private {!Array<number>}
3577
+ * @const
3578
+ */
3579
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.repeatedFields_ = [2];
3580
+
3581
+
3582
+
3583
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3584
+ /**
3585
+ * Creates an object representation of this proto.
3586
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3587
+ * Optional fields that are not set will be set to undefined.
3588
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3589
+ * For the list of reserved names please see:
3590
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3591
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3592
+ * JSPB instance for transitional soy proto support:
3593
+ * http://goto/soy-param-migration
3594
+ * @return {!Object}
3595
+ */
3596
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.prototype.toObject = function(opt_includeInstance) {
3597
+ return proto.gateway.web.v1.ListPagerDutyServicesResponse.toObject(opt_includeInstance, this);
3598
+ };
3599
+
3600
+
3601
+ /**
3602
+ * Static version of the {@see toObject} method.
3603
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3604
+ * the JSPB instance for transitional soy proto support:
3605
+ * http://goto/soy-param-migration
3606
+ * @param {!proto.gateway.web.v1.ListPagerDutyServicesResponse} msg The msg instance to transform.
3607
+ * @return {!Object}
3608
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3609
+ */
3610
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.toObject = function(includeInstance, msg) {
3611
+ var f, obj = {
3612
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
3613
+ servicesList: jspb.Message.toObjectList(msg.getServicesList(),
3614
+ proto.gateway.web.v1.PagerDutyService.toObject, includeInstance),
3615
+ more: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
3616
+ limit: jspb.Message.getFieldWithDefault(msg, 4, 0),
3617
+ offset: jspb.Message.getFieldWithDefault(msg, 5, 0)
3618
+ };
3619
+
3620
+ if (includeInstance) {
3621
+ obj.$jspbMessageInstance = msg;
3622
+ }
3623
+ return obj;
3624
+ };
3625
+ }
3626
+
3627
+
3628
+ /**
3629
+ * Deserializes binary data (in protobuf wire format).
3630
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3631
+ * @return {!proto.gateway.web.v1.ListPagerDutyServicesResponse}
3632
+ */
3633
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.deserializeBinary = function(bytes) {
3634
+ var reader = new jspb.BinaryReader(bytes);
3635
+ var msg = new proto.gateway.web.v1.ListPagerDutyServicesResponse;
3636
+ return proto.gateway.web.v1.ListPagerDutyServicesResponse.deserializeBinaryFromReader(msg, reader);
3637
+ };
3638
+
3639
+
3640
+ /**
3641
+ * Deserializes binary data (in protobuf wire format) from the
3642
+ * given reader into the given message object.
3643
+ * @param {!proto.gateway.web.v1.ListPagerDutyServicesResponse} msg The message object to deserialize into.
3644
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3645
+ * @return {!proto.gateway.web.v1.ListPagerDutyServicesResponse}
3646
+ */
3647
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.deserializeBinaryFromReader = function(msg, reader) {
3648
+ while (reader.nextField()) {
3649
+ if (reader.isEndGroup()) {
3650
+ break;
3651
+ }
3652
+ var field = reader.getFieldNumber();
3653
+ switch (field) {
3654
+ case 1:
3655
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
3656
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
3657
+ msg.setStatus(value);
3658
+ break;
3659
+ case 2:
3660
+ var value = new proto.gateway.web.v1.PagerDutyService;
3661
+ reader.readMessage(value,proto.gateway.web.v1.PagerDutyService.deserializeBinaryFromReader);
3662
+ msg.addServices(value);
3663
+ break;
3664
+ case 3:
3665
+ var value = /** @type {boolean} */ (reader.readBool());
3666
+ msg.setMore(value);
3667
+ break;
3668
+ case 4:
3669
+ var value = /** @type {number} */ (reader.readInt32());
3670
+ msg.setLimit(value);
3671
+ break;
3672
+ case 5:
3673
+ var value = /** @type {number} */ (reader.readInt32());
3674
+ msg.setOffset(value);
3675
+ break;
3676
+ default:
3677
+ reader.skipField();
3678
+ break;
3679
+ }
3680
+ }
3681
+ return msg;
3682
+ };
3683
+
3684
+
3685
+ /**
3686
+ * Serializes the message to binary data (in protobuf wire format).
3687
+ * @return {!Uint8Array}
3688
+ */
3689
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.prototype.serializeBinary = function() {
3690
+ var writer = new jspb.BinaryWriter();
3691
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.serializeBinaryToWriter(this, writer);
3692
+ return writer.getResultBuffer();
3693
+ };
3694
+
3695
+
3696
+ /**
3697
+ * Serializes the given message to binary data (in protobuf wire
3698
+ * format), writing to the given BinaryWriter.
3699
+ * @param {!proto.gateway.web.v1.ListPagerDutyServicesResponse} message
3700
+ * @param {!jspb.BinaryWriter} writer
3701
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3702
+ */
3703
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.serializeBinaryToWriter = function(message, writer) {
3704
+ var f = undefined;
3705
+ f = message.getStatus();
3706
+ if (f != null) {
3707
+ writer.writeMessage(
3708
+ 1,
3709
+ f,
3710
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
3711
+ );
3712
+ }
3713
+ f = message.getServicesList();
3714
+ if (f.length > 0) {
3715
+ writer.writeRepeatedMessage(
3716
+ 2,
3717
+ f,
3718
+ proto.gateway.web.v1.PagerDutyService.serializeBinaryToWriter
3719
+ );
3720
+ }
3721
+ f = message.getMore();
3722
+ if (f) {
3723
+ writer.writeBool(
3724
+ 3,
3725
+ f
3726
+ );
3727
+ }
3728
+ f = message.getLimit();
3729
+ if (f !== 0) {
3730
+ writer.writeInt32(
3731
+ 4,
3732
+ f
3733
+ );
3734
+ }
3735
+ f = message.getOffset();
3736
+ if (f !== 0) {
3737
+ writer.writeInt32(
3738
+ 5,
3739
+ f
3740
+ );
3741
+ }
3742
+ };
3743
+
3744
+
3745
+ /**
3746
+ * optional gateway.common.v1.ResponseStatus status = 1;
3747
+ * @return {?proto.gateway.common.v1.ResponseStatus}
3748
+ */
3749
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.prototype.getStatus = function() {
3750
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
3751
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
3752
+ };
3753
+
3754
+
3755
+ /**
3756
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
3757
+ * @return {!proto.gateway.web.v1.ListPagerDutyServicesResponse} returns this
3758
+ */
3759
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.prototype.setStatus = function(value) {
3760
+ return jspb.Message.setWrapperField(this, 1, value);
3761
+ };
3762
+
3763
+
3764
+ /**
3765
+ * Clears the message field making it undefined.
3766
+ * @return {!proto.gateway.web.v1.ListPagerDutyServicesResponse} returns this
3767
+ */
3768
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.prototype.clearStatus = function() {
3769
+ return this.setStatus(undefined);
3770
+ };
3771
+
3772
+
3773
+ /**
3774
+ * Returns whether this field is set.
3775
+ * @return {boolean}
3776
+ */
3777
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.prototype.hasStatus = function() {
3778
+ return jspb.Message.getField(this, 1) != null;
3779
+ };
3780
+
3781
+
3782
+ /**
3783
+ * repeated PagerDutyService services = 2;
3784
+ * @return {!Array<!proto.gateway.web.v1.PagerDutyService>}
3785
+ */
3786
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.prototype.getServicesList = function() {
3787
+ return /** @type{!Array<!proto.gateway.web.v1.PagerDutyService>} */ (
3788
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.PagerDutyService, 2));
3789
+ };
3790
+
3791
+
3792
+ /**
3793
+ * @param {!Array<!proto.gateway.web.v1.PagerDutyService>} value
3794
+ * @return {!proto.gateway.web.v1.ListPagerDutyServicesResponse} returns this
3795
+ */
3796
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.prototype.setServicesList = function(value) {
3797
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
3798
+ };
3799
+
3800
+
3801
+ /**
3802
+ * @param {!proto.gateway.web.v1.PagerDutyService=} opt_value
3803
+ * @param {number=} opt_index
3804
+ * @return {!proto.gateway.web.v1.PagerDutyService}
3805
+ */
3806
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.prototype.addServices = function(opt_value, opt_index) {
3807
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.PagerDutyService, opt_index);
3808
+ };
3809
+
3810
+
3811
+ /**
3812
+ * Clears the list making it empty but non-null.
3813
+ * @return {!proto.gateway.web.v1.ListPagerDutyServicesResponse} returns this
3814
+ */
3815
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.prototype.clearServicesList = function() {
3816
+ return this.setServicesList([]);
3817
+ };
3818
+
3819
+
3820
+ /**
3821
+ * optional bool more = 3;
3822
+ * @return {boolean}
3823
+ */
3824
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.prototype.getMore = function() {
3825
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
3826
+ };
3827
+
3828
+
3829
+ /**
3830
+ * @param {boolean} value
3831
+ * @return {!proto.gateway.web.v1.ListPagerDutyServicesResponse} returns this
3832
+ */
3833
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.prototype.setMore = function(value) {
3834
+ return jspb.Message.setProto3BooleanField(this, 3, value);
3835
+ };
3836
+
3837
+
3838
+ /**
3839
+ * optional int32 limit = 4;
3840
+ * @return {number}
3841
+ */
3842
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.prototype.getLimit = function() {
3843
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
3844
+ };
3845
+
3846
+
3847
+ /**
3848
+ * @param {number} value
3849
+ * @return {!proto.gateway.web.v1.ListPagerDutyServicesResponse} returns this
3850
+ */
3851
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.prototype.setLimit = function(value) {
3852
+ return jspb.Message.setProto3IntField(this, 4, value);
3853
+ };
3854
+
3855
+
3856
+ /**
3857
+ * optional int32 offset = 5;
3858
+ * @return {number}
3859
+ */
3860
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.prototype.getOffset = function() {
3861
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
3862
+ };
3863
+
3864
+
3865
+ /**
3866
+ * @param {number} value
3867
+ * @return {!proto.gateway.web.v1.ListPagerDutyServicesResponse} returns this
3868
+ */
3869
+ proto.gateway.web.v1.ListPagerDutyServicesResponse.prototype.setOffset = function(value) {
3870
+ return jspb.Message.setProto3IntField(this, 5, value);
3871
+ };
3872
+
3873
+
3874
+
3875
+
3876
+
3877
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3878
+ /**
3879
+ * Creates an object representation of this proto.
3880
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3881
+ * Optional fields that are not set will be set to undefined.
3882
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3883
+ * For the list of reserved names please see:
3884
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3885
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3886
+ * JSPB instance for transitional soy proto support:
3887
+ * http://goto/soy-param-migration
3888
+ * @return {!Object}
3889
+ */
3890
+ proto.gateway.web.v1.PagerDutyService.prototype.toObject = function(opt_includeInstance) {
3891
+ return proto.gateway.web.v1.PagerDutyService.toObject(opt_includeInstance, this);
3892
+ };
3893
+
3894
+
3895
+ /**
3896
+ * Static version of the {@see toObject} method.
3897
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3898
+ * the JSPB instance for transitional soy proto support:
3899
+ * http://goto/soy-param-migration
3900
+ * @param {!proto.gateway.web.v1.PagerDutyService} msg The msg instance to transform.
3901
+ * @return {!Object}
3902
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3903
+ */
3904
+ proto.gateway.web.v1.PagerDutyService.toObject = function(includeInstance, msg) {
3905
+ var f, obj = {
3906
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
3907
+ name: jspb.Message.getFieldWithDefault(msg, 2, "")
3908
+ };
3909
+
3910
+ if (includeInstance) {
3911
+ obj.$jspbMessageInstance = msg;
3912
+ }
3913
+ return obj;
3914
+ };
3915
+ }
3916
+
3917
+
3918
+ /**
3919
+ * Deserializes binary data (in protobuf wire format).
3920
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3921
+ * @return {!proto.gateway.web.v1.PagerDutyService}
3922
+ */
3923
+ proto.gateway.web.v1.PagerDutyService.deserializeBinary = function(bytes) {
3924
+ var reader = new jspb.BinaryReader(bytes);
3925
+ var msg = new proto.gateway.web.v1.PagerDutyService;
3926
+ return proto.gateway.web.v1.PagerDutyService.deserializeBinaryFromReader(msg, reader);
3927
+ };
3928
+
3929
+
3930
+ /**
3931
+ * Deserializes binary data (in protobuf wire format) from the
3932
+ * given reader into the given message object.
3933
+ * @param {!proto.gateway.web.v1.PagerDutyService} msg The message object to deserialize into.
3934
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3935
+ * @return {!proto.gateway.web.v1.PagerDutyService}
3936
+ */
3937
+ proto.gateway.web.v1.PagerDutyService.deserializeBinaryFromReader = function(msg, reader) {
3938
+ while (reader.nextField()) {
3939
+ if (reader.isEndGroup()) {
3940
+ break;
3941
+ }
3942
+ var field = reader.getFieldNumber();
3943
+ switch (field) {
3944
+ case 1:
3945
+ var value = /** @type {string} */ (reader.readString());
3946
+ msg.setId(value);
3947
+ break;
3948
+ case 2:
3949
+ var value = /** @type {string} */ (reader.readString());
3950
+ msg.setName(value);
3951
+ break;
3952
+ default:
3953
+ reader.skipField();
3954
+ break;
3955
+ }
3956
+ }
3957
+ return msg;
3958
+ };
3959
+
3960
+
3961
+ /**
3962
+ * Serializes the message to binary data (in protobuf wire format).
3963
+ * @return {!Uint8Array}
3964
+ */
3965
+ proto.gateway.web.v1.PagerDutyService.prototype.serializeBinary = function() {
3966
+ var writer = new jspb.BinaryWriter();
3967
+ proto.gateway.web.v1.PagerDutyService.serializeBinaryToWriter(this, writer);
3968
+ return writer.getResultBuffer();
3969
+ };
3970
+
3971
+
3972
+ /**
3973
+ * Serializes the given message to binary data (in protobuf wire
3974
+ * format), writing to the given BinaryWriter.
3975
+ * @param {!proto.gateway.web.v1.PagerDutyService} message
3976
+ * @param {!jspb.BinaryWriter} writer
3977
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3978
+ */
3979
+ proto.gateway.web.v1.PagerDutyService.serializeBinaryToWriter = function(message, writer) {
3980
+ var f = undefined;
3981
+ f = message.getId();
3982
+ if (f.length > 0) {
3983
+ writer.writeString(
3984
+ 1,
3985
+ f
3986
+ );
3987
+ }
3988
+ f = message.getName();
3989
+ if (f.length > 0) {
3990
+ writer.writeString(
3991
+ 2,
3992
+ f
3993
+ );
3994
+ }
3995
+ };
3996
+
3997
+
3998
+ /**
3999
+ * optional string id = 1;
4000
+ * @return {string}
4001
+ */
4002
+ proto.gateway.web.v1.PagerDutyService.prototype.getId = function() {
4003
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4004
+ };
4005
+
4006
+
4007
+ /**
4008
+ * @param {string} value
4009
+ * @return {!proto.gateway.web.v1.PagerDutyService} returns this
4010
+ */
4011
+ proto.gateway.web.v1.PagerDutyService.prototype.setId = function(value) {
4012
+ return jspb.Message.setProto3StringField(this, 1, value);
4013
+ };
4014
+
4015
+
4016
+ /**
4017
+ * optional string name = 2;
4018
+ * @return {string}
4019
+ */
4020
+ proto.gateway.web.v1.PagerDutyService.prototype.getName = function() {
4021
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4022
+ };
4023
+
4024
+
4025
+ /**
4026
+ * @param {string} value
4027
+ * @return {!proto.gateway.web.v1.PagerDutyService} returns this
4028
+ */
4029
+ proto.gateway.web.v1.PagerDutyService.prototype.setName = function(value) {
4030
+ return jspb.Message.setProto3StringField(this, 2, value);
4031
+ };
4032
+
4033
+
2316
4034
  goog.object.extend(exports, proto.gateway.web.v1);