@miradorlabs/web-grpc 3.33.0 → 3.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/google/api/field_behavior.ts +1 -1
  2. package/google/protobuf/descriptor.ts +1 -1
  3. package/google/protobuf/duration.ts +1 -1
  4. package/google/protobuf/timestamp.ts +32 -10
  5. package/package.json +1 -1
  6. package/proto/gateway/common/v1/attribute_value.ts +1 -1
  7. package/proto/gateway/common/v1/status.ts +1 -1
  8. package/proto/gateway/common/v1/types.ts +1 -1
  9. package/proto/gateway/web/v1/account_gateway.ts +1 -1
  10. package/proto/gateway/web/v1/admin_gateway.ts +1773 -132
  11. package/proto/gateway/web/v1/admin_gateway_grpc_pb.js +146 -0
  12. package/proto/gateway/web/v1/admin_gateway_pb.js +2865 -0
  13. package/proto/gateway/web/v1/ai_gateway.ts +1016 -186
  14. package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +36 -0
  15. package/proto/gateway/web/v1/ai_gateway_pb.js +1593 -118
  16. package/proto/gateway/web/v1/attribute_value.ts +1 -1
  17. package/proto/gateway/web/v1/beta_gateway.ts +1 -1
  18. package/proto/gateway/web/v1/chain_gateway.ts +1 -1
  19. package/proto/gateway/web/v1/common.ts +1 -1
  20. package/proto/gateway/web/v1/derived_metric_gateway.ts +1 -1
  21. package/proto/gateway/web/v1/github_connector.ts +1 -1
  22. package/proto/gateway/web/v1/integration_gateway.ts +1 -1
  23. package/proto/gateway/web/v1/log_gateway.ts +1 -1
  24. package/proto/gateway/web/v1/market_gateway.ts +1 -1
  25. package/proto/gateway/web/v1/metric_gateway.ts +1 -1
  26. package/proto/gateway/web/v1/oauth_gateway.ts +1 -1
  27. package/proto/gateway/web/v1/plan_gateway.ts +1 -1
  28. package/proto/gateway/web/v1/policy_gateway.ts +1 -1
  29. package/proto/gateway/web/v1/reference_gateway.ts +1 -1
  30. package/proto/gateway/web/v1/rule_gateway.ts +1 -1
  31. package/proto/gateway/web/v1/slo_gateway.ts +1 -1
  32. package/proto/gateway/web/v1/trace_gateway.ts +1 -1
  33. package/proto/gateway/web/v1/trace_measure_gateway.ts +1 -1
@@ -21,10 +21,13 @@ 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
+ var proto_gateway_web_v1_ai_gateway_pb = require('../../../../proto/gateway/web/v1/ai_gateway_pb.js');
25
+ goog.object.extend(proto, proto_gateway_web_v1_ai_gateway_pb);
24
26
  var proto_gateway_web_v1_beta_gateway_pb = require('../../../../proto/gateway/web/v1/beta_gateway_pb.js');
25
27
  goog.object.extend(proto, proto_gateway_web_v1_beta_gateway_pb);
26
28
  var proto_gateway_web_v1_reference_gateway_pb = require('../../../../proto/gateway/web/v1/reference_gateway_pb.js');
27
29
  goog.object.extend(proto, proto_gateway_web_v1_reference_gateway_pb);
30
+ goog.exportSymbol('proto.gateway.web.v1.AdminRelayHeartbeat', null, global);
28
31
  goog.exportSymbol('proto.gateway.web.v1.ConfirmAIBillersRequest', null, global);
29
32
  goog.exportSymbol('proto.gateway.web.v1.ConfirmAIBillersResponse', null, global);
30
33
  goog.exportSymbol('proto.gateway.web.v1.ConfirmAIEffortsRequest', null, global);
@@ -38,8 +41,18 @@ goog.exportSymbol('proto.gateway.web.v1.GenerateInviteCodesResponse', null, glob
38
41
  goog.exportSymbol('proto.gateway.web.v1.GetAdminStatusRequest', null, global);
39
42
  goog.exportSymbol('proto.gateway.web.v1.GetAdminStatusResponse', null, global);
40
43
  goog.exportSymbol('proto.gateway.web.v1.InviteCode', null, global);
44
+ goog.exportSymbol('proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest', null, global);
45
+ goog.exportSymbol('proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse', null, global);
41
46
  goog.exportSymbol('proto.gateway.web.v1.ListInviteCodesRequest', null, global);
42
47
  goog.exportSymbol('proto.gateway.web.v1.ListInviteCodesResponse', null, global);
48
+ goog.exportSymbol('proto.gateway.web.v1.OrgDetails', null, global);
49
+ goog.exportSymbol('proto.gateway.web.v1.ProjectDetails', null, global);
50
+ goog.exportSymbol('proto.gateway.web.v1.ResolveOrgDetailsRequest', null, global);
51
+ goog.exportSymbol('proto.gateway.web.v1.ResolveOrgDetailsResponse', null, global);
52
+ goog.exportSymbol('proto.gateway.web.v1.ResolveProjectDetailsRequest', null, global);
53
+ goog.exportSymbol('proto.gateway.web.v1.ResolveProjectDetailsResponse', null, global);
54
+ goog.exportSymbol('proto.gateway.web.v1.ResolveUserDetailsRequest', null, global);
55
+ goog.exportSymbol('proto.gateway.web.v1.ResolveUserDetailsResponse', null, global);
43
56
  goog.exportSymbol('proto.gateway.web.v1.SendInviteCodeEmailRequest', null, global);
44
57
  goog.exportSymbol('proto.gateway.web.v1.SendInviteCodeEmailResponse', null, global);
45
58
  goog.exportSymbol('proto.gateway.web.v1.UpdateAIBillerRequest', null, global);
@@ -50,6 +63,7 @@ goog.exportSymbol('proto.gateway.web.v1.UpdateAIModelRequest', null, global);
50
63
  goog.exportSymbol('proto.gateway.web.v1.UpdateAIModelResponse', null, global);
51
64
  goog.exportSymbol('proto.gateway.web.v1.UpdateAIProviderRequest', null, global);
52
65
  goog.exportSymbol('proto.gateway.web.v1.UpdateAIProviderResponse', null, global);
66
+ goog.exportSymbol('proto.gateway.web.v1.UserDetails', null, global);
53
67
  /**
54
68
  * Generated by JsPbCodeGenerator.
55
69
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -575,6 +589,258 @@ if (goog.DEBUG && !COMPILED) {
575
589
  */
576
590
  proto.gateway.web.v1.ConfirmAIBillersResponse.displayName = 'proto.gateway.web.v1.ConfirmAIBillersResponse';
577
591
  }
592
+ /**
593
+ * Generated by JsPbCodeGenerator.
594
+ * @param {Array=} opt_data Optional initial data array, typically from a
595
+ * server response, or constructed directly in Javascript. The array is used
596
+ * in place and becomes part of the constructed object. It is not cloned.
597
+ * If no data is provided, the constructed object will be empty, but still
598
+ * valid.
599
+ * @extends {jspb.Message}
600
+ * @constructor
601
+ */
602
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest = function(opt_data) {
603
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
604
+ };
605
+ goog.inherits(proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest, jspb.Message);
606
+ if (goog.DEBUG && !COMPILED) {
607
+ /**
608
+ * @public
609
+ * @override
610
+ */
611
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest.displayName = 'proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest';
612
+ }
613
+ /**
614
+ * Generated by JsPbCodeGenerator.
615
+ * @param {Array=} opt_data Optional initial data array, typically from a
616
+ * server response, or constructed directly in Javascript. The array is used
617
+ * in place and becomes part of the constructed object. It is not cloned.
618
+ * If no data is provided, the constructed object will be empty, but still
619
+ * valid.
620
+ * @extends {jspb.Message}
621
+ * @constructor
622
+ */
623
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse = function(opt_data) {
624
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse.repeatedFields_, null);
625
+ };
626
+ goog.inherits(proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse, jspb.Message);
627
+ if (goog.DEBUG && !COMPILED) {
628
+ /**
629
+ * @public
630
+ * @override
631
+ */
632
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse.displayName = 'proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse';
633
+ }
634
+ /**
635
+ * Generated by JsPbCodeGenerator.
636
+ * @param {Array=} opt_data Optional initial data array, typically from a
637
+ * server response, or constructed directly in Javascript. The array is used
638
+ * in place and becomes part of the constructed object. It is not cloned.
639
+ * If no data is provided, the constructed object will be empty, but still
640
+ * valid.
641
+ * @extends {jspb.Message}
642
+ * @constructor
643
+ */
644
+ proto.gateway.web.v1.AdminRelayHeartbeat = function(opt_data) {
645
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
646
+ };
647
+ goog.inherits(proto.gateway.web.v1.AdminRelayHeartbeat, jspb.Message);
648
+ if (goog.DEBUG && !COMPILED) {
649
+ /**
650
+ * @public
651
+ * @override
652
+ */
653
+ proto.gateway.web.v1.AdminRelayHeartbeat.displayName = 'proto.gateway.web.v1.AdminRelayHeartbeat';
654
+ }
655
+ /**
656
+ * Generated by JsPbCodeGenerator.
657
+ * @param {Array=} opt_data Optional initial data array, typically from a
658
+ * server response, or constructed directly in Javascript. The array is used
659
+ * in place and becomes part of the constructed object. It is not cloned.
660
+ * If no data is provided, the constructed object will be empty, but still
661
+ * valid.
662
+ * @extends {jspb.Message}
663
+ * @constructor
664
+ */
665
+ proto.gateway.web.v1.ResolveOrgDetailsRequest = function(opt_data) {
666
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ResolveOrgDetailsRequest.repeatedFields_, null);
667
+ };
668
+ goog.inherits(proto.gateway.web.v1.ResolveOrgDetailsRequest, jspb.Message);
669
+ if (goog.DEBUG && !COMPILED) {
670
+ /**
671
+ * @public
672
+ * @override
673
+ */
674
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.displayName = 'proto.gateway.web.v1.ResolveOrgDetailsRequest';
675
+ }
676
+ /**
677
+ * Generated by JsPbCodeGenerator.
678
+ * @param {Array=} opt_data Optional initial data array, typically from a
679
+ * server response, or constructed directly in Javascript. The array is used
680
+ * in place and becomes part of the constructed object. It is not cloned.
681
+ * If no data is provided, the constructed object will be empty, but still
682
+ * valid.
683
+ * @extends {jspb.Message}
684
+ * @constructor
685
+ */
686
+ proto.gateway.web.v1.ResolveOrgDetailsResponse = function(opt_data) {
687
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ResolveOrgDetailsResponse.repeatedFields_, null);
688
+ };
689
+ goog.inherits(proto.gateway.web.v1.ResolveOrgDetailsResponse, jspb.Message);
690
+ if (goog.DEBUG && !COMPILED) {
691
+ /**
692
+ * @public
693
+ * @override
694
+ */
695
+ proto.gateway.web.v1.ResolveOrgDetailsResponse.displayName = 'proto.gateway.web.v1.ResolveOrgDetailsResponse';
696
+ }
697
+ /**
698
+ * Generated by JsPbCodeGenerator.
699
+ * @param {Array=} opt_data Optional initial data array, typically from a
700
+ * server response, or constructed directly in Javascript. The array is used
701
+ * in place and becomes part of the constructed object. It is not cloned.
702
+ * If no data is provided, the constructed object will be empty, but still
703
+ * valid.
704
+ * @extends {jspb.Message}
705
+ * @constructor
706
+ */
707
+ proto.gateway.web.v1.OrgDetails = function(opt_data) {
708
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
709
+ };
710
+ goog.inherits(proto.gateway.web.v1.OrgDetails, jspb.Message);
711
+ if (goog.DEBUG && !COMPILED) {
712
+ /**
713
+ * @public
714
+ * @override
715
+ */
716
+ proto.gateway.web.v1.OrgDetails.displayName = 'proto.gateway.web.v1.OrgDetails';
717
+ }
718
+ /**
719
+ * Generated by JsPbCodeGenerator.
720
+ * @param {Array=} opt_data Optional initial data array, typically from a
721
+ * server response, or constructed directly in Javascript. The array is used
722
+ * in place and becomes part of the constructed object. It is not cloned.
723
+ * If no data is provided, the constructed object will be empty, but still
724
+ * valid.
725
+ * @extends {jspb.Message}
726
+ * @constructor
727
+ */
728
+ proto.gateway.web.v1.ResolveProjectDetailsRequest = function(opt_data) {
729
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ResolveProjectDetailsRequest.repeatedFields_, null);
730
+ };
731
+ goog.inherits(proto.gateway.web.v1.ResolveProjectDetailsRequest, jspb.Message);
732
+ if (goog.DEBUG && !COMPILED) {
733
+ /**
734
+ * @public
735
+ * @override
736
+ */
737
+ proto.gateway.web.v1.ResolveProjectDetailsRequest.displayName = 'proto.gateway.web.v1.ResolveProjectDetailsRequest';
738
+ }
739
+ /**
740
+ * Generated by JsPbCodeGenerator.
741
+ * @param {Array=} opt_data Optional initial data array, typically from a
742
+ * server response, or constructed directly in Javascript. The array is used
743
+ * in place and becomes part of the constructed object. It is not cloned.
744
+ * If no data is provided, the constructed object will be empty, but still
745
+ * valid.
746
+ * @extends {jspb.Message}
747
+ * @constructor
748
+ */
749
+ proto.gateway.web.v1.ResolveProjectDetailsResponse = function(opt_data) {
750
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ResolveProjectDetailsResponse.repeatedFields_, null);
751
+ };
752
+ goog.inherits(proto.gateway.web.v1.ResolveProjectDetailsResponse, jspb.Message);
753
+ if (goog.DEBUG && !COMPILED) {
754
+ /**
755
+ * @public
756
+ * @override
757
+ */
758
+ proto.gateway.web.v1.ResolveProjectDetailsResponse.displayName = 'proto.gateway.web.v1.ResolveProjectDetailsResponse';
759
+ }
760
+ /**
761
+ * Generated by JsPbCodeGenerator.
762
+ * @param {Array=} opt_data Optional initial data array, typically from a
763
+ * server response, or constructed directly in Javascript. The array is used
764
+ * in place and becomes part of the constructed object. It is not cloned.
765
+ * If no data is provided, the constructed object will be empty, but still
766
+ * valid.
767
+ * @extends {jspb.Message}
768
+ * @constructor
769
+ */
770
+ proto.gateway.web.v1.ProjectDetails = function(opt_data) {
771
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
772
+ };
773
+ goog.inherits(proto.gateway.web.v1.ProjectDetails, jspb.Message);
774
+ if (goog.DEBUG && !COMPILED) {
775
+ /**
776
+ * @public
777
+ * @override
778
+ */
779
+ proto.gateway.web.v1.ProjectDetails.displayName = 'proto.gateway.web.v1.ProjectDetails';
780
+ }
781
+ /**
782
+ * Generated by JsPbCodeGenerator.
783
+ * @param {Array=} opt_data Optional initial data array, typically from a
784
+ * server response, or constructed directly in Javascript. The array is used
785
+ * in place and becomes part of the constructed object. It is not cloned.
786
+ * If no data is provided, the constructed object will be empty, but still
787
+ * valid.
788
+ * @extends {jspb.Message}
789
+ * @constructor
790
+ */
791
+ proto.gateway.web.v1.ResolveUserDetailsRequest = function(opt_data) {
792
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
793
+ };
794
+ goog.inherits(proto.gateway.web.v1.ResolveUserDetailsRequest, jspb.Message);
795
+ if (goog.DEBUG && !COMPILED) {
796
+ /**
797
+ * @public
798
+ * @override
799
+ */
800
+ proto.gateway.web.v1.ResolveUserDetailsRequest.displayName = 'proto.gateway.web.v1.ResolveUserDetailsRequest';
801
+ }
802
+ /**
803
+ * Generated by JsPbCodeGenerator.
804
+ * @param {Array=} opt_data Optional initial data array, typically from a
805
+ * server response, or constructed directly in Javascript. The array is used
806
+ * in place and becomes part of the constructed object. It is not cloned.
807
+ * If no data is provided, the constructed object will be empty, but still
808
+ * valid.
809
+ * @extends {jspb.Message}
810
+ * @constructor
811
+ */
812
+ proto.gateway.web.v1.ResolveUserDetailsResponse = function(opt_data) {
813
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
814
+ };
815
+ goog.inherits(proto.gateway.web.v1.ResolveUserDetailsResponse, jspb.Message);
816
+ if (goog.DEBUG && !COMPILED) {
817
+ /**
818
+ * @public
819
+ * @override
820
+ */
821
+ proto.gateway.web.v1.ResolveUserDetailsResponse.displayName = 'proto.gateway.web.v1.ResolveUserDetailsResponse';
822
+ }
823
+ /**
824
+ * Generated by JsPbCodeGenerator.
825
+ * @param {Array=} opt_data Optional initial data array, typically from a
826
+ * server response, or constructed directly in Javascript. The array is used
827
+ * in place and becomes part of the constructed object. It is not cloned.
828
+ * If no data is provided, the constructed object will be empty, but still
829
+ * valid.
830
+ * @extends {jspb.Message}
831
+ * @constructor
832
+ */
833
+ proto.gateway.web.v1.UserDetails = function(opt_data) {
834
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
835
+ };
836
+ goog.inherits(proto.gateway.web.v1.UserDetails, jspb.Message);
837
+ if (goog.DEBUG && !COMPILED) {
838
+ /**
839
+ * @public
840
+ * @override
841
+ */
842
+ proto.gateway.web.v1.UserDetails.displayName = 'proto.gateway.web.v1.UserDetails';
843
+ }
578
844
 
579
845
 
580
846
 
@@ -5488,4 +5754,2603 @@ proto.gateway.web.v1.ConfirmAIBillersResponse.prototype.setConfirmedNameCount =
5488
5754
  };
5489
5755
 
5490
5756
 
5757
+
5758
+
5759
+
5760
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5761
+ /**
5762
+ * Creates an object representation of this proto.
5763
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5764
+ * Optional fields that are not set will be set to undefined.
5765
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5766
+ * For the list of reserved names please see:
5767
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5768
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5769
+ * JSPB instance for transitional soy proto support:
5770
+ * http://goto/soy-param-migration
5771
+ * @return {!Object}
5772
+ */
5773
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest.prototype.toObject = function(opt_includeInstance) {
5774
+ return proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest.toObject(opt_includeInstance, this);
5775
+ };
5776
+
5777
+
5778
+ /**
5779
+ * Static version of the {@see toObject} method.
5780
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5781
+ * the JSPB instance for transitional soy proto support:
5782
+ * http://goto/soy-param-migration
5783
+ * @param {!proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest} msg The msg instance to transform.
5784
+ * @return {!Object}
5785
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5786
+ */
5787
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest.toObject = function(includeInstance, msg) {
5788
+ var f, obj = {
5789
+ filter: (f = msg.getFilter()) && proto_gateway_web_v1_ai_gateway_pb.RelayHeartbeatFilter.toObject(includeInstance, f),
5790
+ sort: jspb.Message.getFieldWithDefault(msg, 2, 0),
5791
+ pageSize: jspb.Message.getFieldWithDefault(msg, 3, 0),
5792
+ pageToken: jspb.Message.getFieldWithDefault(msg, 4, "")
5793
+ };
5794
+
5795
+ if (includeInstance) {
5796
+ obj.$jspbMessageInstance = msg;
5797
+ }
5798
+ return obj;
5799
+ };
5800
+ }
5801
+
5802
+
5803
+ /**
5804
+ * Deserializes binary data (in protobuf wire format).
5805
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
5806
+ * @return {!proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest}
5807
+ */
5808
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest.deserializeBinary = function(bytes) {
5809
+ var reader = new jspb.BinaryReader(bytes);
5810
+ var msg = new proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest;
5811
+ return proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest.deserializeBinaryFromReader(msg, reader);
5812
+ };
5813
+
5814
+
5815
+ /**
5816
+ * Deserializes binary data (in protobuf wire format) from the
5817
+ * given reader into the given message object.
5818
+ * @param {!proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest} msg The message object to deserialize into.
5819
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5820
+ * @return {!proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest}
5821
+ */
5822
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest.deserializeBinaryFromReader = function(msg, reader) {
5823
+ while (reader.nextField()) {
5824
+ if (reader.isEndGroup()) {
5825
+ break;
5826
+ }
5827
+ var field = reader.getFieldNumber();
5828
+ switch (field) {
5829
+ case 1:
5830
+ var value = new proto_gateway_web_v1_ai_gateway_pb.RelayHeartbeatFilter;
5831
+ reader.readMessage(value,proto_gateway_web_v1_ai_gateway_pb.RelayHeartbeatFilter.deserializeBinaryFromReader);
5832
+ msg.setFilter(value);
5833
+ break;
5834
+ case 2:
5835
+ var value = /** @type {!proto.gateway.web.v1.RelayHeartbeatSort} */ (reader.readEnum());
5836
+ msg.setSort(value);
5837
+ break;
5838
+ case 3:
5839
+ var value = /** @type {number} */ (reader.readInt32());
5840
+ msg.setPageSize(value);
5841
+ break;
5842
+ case 4:
5843
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5844
+ msg.setPageToken(value);
5845
+ break;
5846
+ default:
5847
+ reader.skipField();
5848
+ break;
5849
+ }
5850
+ }
5851
+ return msg;
5852
+ };
5853
+
5854
+
5855
+ /**
5856
+ * Serializes the message to binary data (in protobuf wire format).
5857
+ * @return {!Uint8Array}
5858
+ */
5859
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest.prototype.serializeBinary = function() {
5860
+ var writer = new jspb.BinaryWriter();
5861
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest.serializeBinaryToWriter(this, writer);
5862
+ return writer.getResultBuffer();
5863
+ };
5864
+
5865
+
5866
+ /**
5867
+ * Serializes the given message to binary data (in protobuf wire
5868
+ * format), writing to the given BinaryWriter.
5869
+ * @param {!proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest} message
5870
+ * @param {!jspb.BinaryWriter} writer
5871
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5872
+ */
5873
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest.serializeBinaryToWriter = function(message, writer) {
5874
+ var f = undefined;
5875
+ f = message.getFilter();
5876
+ if (f != null) {
5877
+ writer.writeMessage(
5878
+ 1,
5879
+ f,
5880
+ proto_gateway_web_v1_ai_gateway_pb.RelayHeartbeatFilter.serializeBinaryToWriter
5881
+ );
5882
+ }
5883
+ f = message.getSort();
5884
+ if (f !== 0.0) {
5885
+ writer.writeEnum(
5886
+ 2,
5887
+ f
5888
+ );
5889
+ }
5890
+ f = message.getPageSize();
5891
+ if (f !== 0) {
5892
+ writer.writeInt32(
5893
+ 3,
5894
+ f
5895
+ );
5896
+ }
5897
+ f = message.getPageToken();
5898
+ if (f.length > 0) {
5899
+ writer.writeString(
5900
+ 4,
5901
+ f
5902
+ );
5903
+ }
5904
+ };
5905
+
5906
+
5907
+ /**
5908
+ * optional RelayHeartbeatFilter filter = 1;
5909
+ * @return {?proto.gateway.web.v1.RelayHeartbeatFilter}
5910
+ */
5911
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest.prototype.getFilter = function() {
5912
+ return /** @type{?proto.gateway.web.v1.RelayHeartbeatFilter} */ (
5913
+ jspb.Message.getWrapperField(this, proto_gateway_web_v1_ai_gateway_pb.RelayHeartbeatFilter, 1));
5914
+ };
5915
+
5916
+
5917
+ /**
5918
+ * @param {?proto.gateway.web.v1.RelayHeartbeatFilter|undefined} value
5919
+ * @return {!proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest} returns this
5920
+ */
5921
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest.prototype.setFilter = function(value) {
5922
+ return jspb.Message.setWrapperField(this, 1, value);
5923
+ };
5924
+
5925
+
5926
+ /**
5927
+ * Clears the message field making it undefined.
5928
+ * @return {!proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest} returns this
5929
+ */
5930
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest.prototype.clearFilter = function() {
5931
+ return this.setFilter(undefined);
5932
+ };
5933
+
5934
+
5935
+ /**
5936
+ * Returns whether this field is set.
5937
+ * @return {boolean}
5938
+ */
5939
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest.prototype.hasFilter = function() {
5940
+ return jspb.Message.getField(this, 1) != null;
5941
+ };
5942
+
5943
+
5944
+ /**
5945
+ * optional RelayHeartbeatSort sort = 2;
5946
+ * @return {!proto.gateway.web.v1.RelayHeartbeatSort}
5947
+ */
5948
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest.prototype.getSort = function() {
5949
+ return /** @type {!proto.gateway.web.v1.RelayHeartbeatSort} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
5950
+ };
5951
+
5952
+
5953
+ /**
5954
+ * @param {!proto.gateway.web.v1.RelayHeartbeatSort} value
5955
+ * @return {!proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest} returns this
5956
+ */
5957
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest.prototype.setSort = function(value) {
5958
+ return jspb.Message.setProto3EnumField(this, 2, value);
5959
+ };
5960
+
5961
+
5962
+ /**
5963
+ * optional int32 page_size = 3;
5964
+ * @return {number}
5965
+ */
5966
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest.prototype.getPageSize = function() {
5967
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
5968
+ };
5969
+
5970
+
5971
+ /**
5972
+ * @param {number} value
5973
+ * @return {!proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest} returns this
5974
+ */
5975
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest.prototype.setPageSize = function(value) {
5976
+ return jspb.Message.setProto3IntField(this, 3, value);
5977
+ };
5978
+
5979
+
5980
+ /**
5981
+ * optional string page_token = 4;
5982
+ * @return {string}
5983
+ */
5984
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest.prototype.getPageToken = function() {
5985
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
5986
+ };
5987
+
5988
+
5989
+ /**
5990
+ * @param {string} value
5991
+ * @return {!proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest} returns this
5992
+ */
5993
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest.prototype.setPageToken = function(value) {
5994
+ return jspb.Message.setProto3StringField(this, 4, value);
5995
+ };
5996
+
5997
+
5998
+
5999
+ /**
6000
+ * List of repeated fields within this message type.
6001
+ * @private {!Array<number>}
6002
+ * @const
6003
+ */
6004
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse.repeatedFields_ = [2];
6005
+
6006
+
6007
+
6008
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6009
+ /**
6010
+ * Creates an object representation of this proto.
6011
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6012
+ * Optional fields that are not set will be set to undefined.
6013
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6014
+ * For the list of reserved names please see:
6015
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6016
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6017
+ * JSPB instance for transitional soy proto support:
6018
+ * http://goto/soy-param-migration
6019
+ * @return {!Object}
6020
+ */
6021
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse.prototype.toObject = function(opt_includeInstance) {
6022
+ return proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse.toObject(opt_includeInstance, this);
6023
+ };
6024
+
6025
+
6026
+ /**
6027
+ * Static version of the {@see toObject} method.
6028
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6029
+ * the JSPB instance for transitional soy proto support:
6030
+ * http://goto/soy-param-migration
6031
+ * @param {!proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse} msg The msg instance to transform.
6032
+ * @return {!Object}
6033
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6034
+ */
6035
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse.toObject = function(includeInstance, msg) {
6036
+ var f, obj = {
6037
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
6038
+ relayHeartbeatsList: jspb.Message.toObjectList(msg.getRelayHeartbeatsList(),
6039
+ proto.gateway.web.v1.AdminRelayHeartbeat.toObject, includeInstance),
6040
+ nextPageToken: jspb.Message.getFieldWithDefault(msg, 3, "")
6041
+ };
6042
+
6043
+ if (includeInstance) {
6044
+ obj.$jspbMessageInstance = msg;
6045
+ }
6046
+ return obj;
6047
+ };
6048
+ }
6049
+
6050
+
6051
+ /**
6052
+ * Deserializes binary data (in protobuf wire format).
6053
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
6054
+ * @return {!proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse}
6055
+ */
6056
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse.deserializeBinary = function(bytes) {
6057
+ var reader = new jspb.BinaryReader(bytes);
6058
+ var msg = new proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse;
6059
+ return proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse.deserializeBinaryFromReader(msg, reader);
6060
+ };
6061
+
6062
+
6063
+ /**
6064
+ * Deserializes binary data (in protobuf wire format) from the
6065
+ * given reader into the given message object.
6066
+ * @param {!proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse} msg The message object to deserialize into.
6067
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6068
+ * @return {!proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse}
6069
+ */
6070
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse.deserializeBinaryFromReader = function(msg, reader) {
6071
+ while (reader.nextField()) {
6072
+ if (reader.isEndGroup()) {
6073
+ break;
6074
+ }
6075
+ var field = reader.getFieldNumber();
6076
+ switch (field) {
6077
+ case 1:
6078
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
6079
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
6080
+ msg.setStatus(value);
6081
+ break;
6082
+ case 2:
6083
+ var value = new proto.gateway.web.v1.AdminRelayHeartbeat;
6084
+ reader.readMessage(value,proto.gateway.web.v1.AdminRelayHeartbeat.deserializeBinaryFromReader);
6085
+ msg.addRelayHeartbeats(value);
6086
+ break;
6087
+ case 3:
6088
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6089
+ msg.setNextPageToken(value);
6090
+ break;
6091
+ default:
6092
+ reader.skipField();
6093
+ break;
6094
+ }
6095
+ }
6096
+ return msg;
6097
+ };
6098
+
6099
+
6100
+ /**
6101
+ * Serializes the message to binary data (in protobuf wire format).
6102
+ * @return {!Uint8Array}
6103
+ */
6104
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse.prototype.serializeBinary = function() {
6105
+ var writer = new jspb.BinaryWriter();
6106
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse.serializeBinaryToWriter(this, writer);
6107
+ return writer.getResultBuffer();
6108
+ };
6109
+
6110
+
6111
+ /**
6112
+ * Serializes the given message to binary data (in protobuf wire
6113
+ * format), writing to the given BinaryWriter.
6114
+ * @param {!proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse} message
6115
+ * @param {!jspb.BinaryWriter} writer
6116
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6117
+ */
6118
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse.serializeBinaryToWriter = function(message, writer) {
6119
+ var f = undefined;
6120
+ f = message.getStatus();
6121
+ if (f != null) {
6122
+ writer.writeMessage(
6123
+ 1,
6124
+ f,
6125
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
6126
+ );
6127
+ }
6128
+ f = message.getRelayHeartbeatsList();
6129
+ if (f.length > 0) {
6130
+ writer.writeRepeatedMessage(
6131
+ 2,
6132
+ f,
6133
+ proto.gateway.web.v1.AdminRelayHeartbeat.serializeBinaryToWriter
6134
+ );
6135
+ }
6136
+ f = message.getNextPageToken();
6137
+ if (f.length > 0) {
6138
+ writer.writeString(
6139
+ 3,
6140
+ f
6141
+ );
6142
+ }
6143
+ };
6144
+
6145
+
6146
+ /**
6147
+ * optional gateway.common.v1.ResponseStatus status = 1;
6148
+ * @return {?proto.gateway.common.v1.ResponseStatus}
6149
+ */
6150
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse.prototype.getStatus = function() {
6151
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
6152
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
6153
+ };
6154
+
6155
+
6156
+ /**
6157
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
6158
+ * @return {!proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse} returns this
6159
+ */
6160
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse.prototype.setStatus = function(value) {
6161
+ return jspb.Message.setWrapperField(this, 1, value);
6162
+ };
6163
+
6164
+
6165
+ /**
6166
+ * Clears the message field making it undefined.
6167
+ * @return {!proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse} returns this
6168
+ */
6169
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse.prototype.clearStatus = function() {
6170
+ return this.setStatus(undefined);
6171
+ };
6172
+
6173
+
6174
+ /**
6175
+ * Returns whether this field is set.
6176
+ * @return {boolean}
6177
+ */
6178
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse.prototype.hasStatus = function() {
6179
+ return jspb.Message.getField(this, 1) != null;
6180
+ };
6181
+
6182
+
6183
+ /**
6184
+ * repeated AdminRelayHeartbeat relay_heartbeats = 2;
6185
+ * @return {!Array<!proto.gateway.web.v1.AdminRelayHeartbeat>}
6186
+ */
6187
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse.prototype.getRelayHeartbeatsList = function() {
6188
+ return /** @type{!Array<!proto.gateway.web.v1.AdminRelayHeartbeat>} */ (
6189
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AdminRelayHeartbeat, 2));
6190
+ };
6191
+
6192
+
6193
+ /**
6194
+ * @param {!Array<!proto.gateway.web.v1.AdminRelayHeartbeat>} value
6195
+ * @return {!proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse} returns this
6196
+ */
6197
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse.prototype.setRelayHeartbeatsList = function(value) {
6198
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
6199
+ };
6200
+
6201
+
6202
+ /**
6203
+ * @param {!proto.gateway.web.v1.AdminRelayHeartbeat=} opt_value
6204
+ * @param {number=} opt_index
6205
+ * @return {!proto.gateway.web.v1.AdminRelayHeartbeat}
6206
+ */
6207
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse.prototype.addRelayHeartbeats = function(opt_value, opt_index) {
6208
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.AdminRelayHeartbeat, opt_index);
6209
+ };
6210
+
6211
+
6212
+ /**
6213
+ * Clears the list making it empty but non-null.
6214
+ * @return {!proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse} returns this
6215
+ */
6216
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse.prototype.clearRelayHeartbeatsList = function() {
6217
+ return this.setRelayHeartbeatsList([]);
6218
+ };
6219
+
6220
+
6221
+ /**
6222
+ * optional string next_page_token = 3;
6223
+ * @return {string}
6224
+ */
6225
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse.prototype.getNextPageToken = function() {
6226
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
6227
+ };
6228
+
6229
+
6230
+ /**
6231
+ * @param {string} value
6232
+ * @return {!proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse} returns this
6233
+ */
6234
+ proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse.prototype.setNextPageToken = function(value) {
6235
+ return jspb.Message.setProto3StringField(this, 3, value);
6236
+ };
6237
+
6238
+
6239
+
6240
+
6241
+
6242
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6243
+ /**
6244
+ * Creates an object representation of this proto.
6245
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6246
+ * Optional fields that are not set will be set to undefined.
6247
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6248
+ * For the list of reserved names please see:
6249
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6250
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6251
+ * JSPB instance for transitional soy proto support:
6252
+ * http://goto/soy-param-migration
6253
+ * @return {!Object}
6254
+ */
6255
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.toObject = function(opt_includeInstance) {
6256
+ return proto.gateway.web.v1.AdminRelayHeartbeat.toObject(opt_includeInstance, this);
6257
+ };
6258
+
6259
+
6260
+ /**
6261
+ * Static version of the {@see toObject} method.
6262
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6263
+ * the JSPB instance for transitional soy proto support:
6264
+ * http://goto/soy-param-migration
6265
+ * @param {!proto.gateway.web.v1.AdminRelayHeartbeat} msg The msg instance to transform.
6266
+ * @return {!Object}
6267
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6268
+ */
6269
+ proto.gateway.web.v1.AdminRelayHeartbeat.toObject = function(includeInstance, msg) {
6270
+ var f, obj = {
6271
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
6272
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
6273
+ accountUserId: jspb.Message.getFieldWithDefault(msg, 3, ""),
6274
+ hostName: jspb.Message.getFieldWithDefault(msg, 4, ""),
6275
+ firstSeen: (f = msg.getFirstSeen()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
6276
+ lastSeen: (f = msg.getLastSeen()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
6277
+ termaVersion: jspb.Message.getFieldWithDefault(msg, 7, ""),
6278
+ launch: jspb.Message.getFieldWithDefault(msg, 8, ""),
6279
+ reason: jspb.Message.getFieldWithDefault(msg, 9, ""),
6280
+ exitReason: jspb.Message.getFieldWithDefault(msg, 10, ""),
6281
+ miradorApiKeyId: jspb.Message.getFieldWithDefault(msg, 11, ""),
6282
+ countersMap: (f = msg.getCountersMap()) ? f.toObject(includeInstance, undefined) : []
6283
+ };
6284
+
6285
+ if (includeInstance) {
6286
+ obj.$jspbMessageInstance = msg;
6287
+ }
6288
+ return obj;
6289
+ };
6290
+ }
6291
+
6292
+
6293
+ /**
6294
+ * Deserializes binary data (in protobuf wire format).
6295
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
6296
+ * @return {!proto.gateway.web.v1.AdminRelayHeartbeat}
6297
+ */
6298
+ proto.gateway.web.v1.AdminRelayHeartbeat.deserializeBinary = function(bytes) {
6299
+ var reader = new jspb.BinaryReader(bytes);
6300
+ var msg = new proto.gateway.web.v1.AdminRelayHeartbeat;
6301
+ return proto.gateway.web.v1.AdminRelayHeartbeat.deserializeBinaryFromReader(msg, reader);
6302
+ };
6303
+
6304
+
6305
+ /**
6306
+ * Deserializes binary data (in protobuf wire format) from the
6307
+ * given reader into the given message object.
6308
+ * @param {!proto.gateway.web.v1.AdminRelayHeartbeat} msg The message object to deserialize into.
6309
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6310
+ * @return {!proto.gateway.web.v1.AdminRelayHeartbeat}
6311
+ */
6312
+ proto.gateway.web.v1.AdminRelayHeartbeat.deserializeBinaryFromReader = function(msg, reader) {
6313
+ while (reader.nextField()) {
6314
+ if (reader.isEndGroup()) {
6315
+ break;
6316
+ }
6317
+ var field = reader.getFieldNumber();
6318
+ switch (field) {
6319
+ case 1:
6320
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6321
+ msg.setOrganizationId(value);
6322
+ break;
6323
+ case 2:
6324
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6325
+ msg.setProjectId(value);
6326
+ break;
6327
+ case 3:
6328
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6329
+ msg.setAccountUserId(value);
6330
+ break;
6331
+ case 4:
6332
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6333
+ msg.setHostName(value);
6334
+ break;
6335
+ case 5:
6336
+ var value = new google_protobuf_timestamp_pb.Timestamp;
6337
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
6338
+ msg.setFirstSeen(value);
6339
+ break;
6340
+ case 6:
6341
+ var value = new google_protobuf_timestamp_pb.Timestamp;
6342
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
6343
+ msg.setLastSeen(value);
6344
+ break;
6345
+ case 7:
6346
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6347
+ msg.setTermaVersion(value);
6348
+ break;
6349
+ case 8:
6350
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6351
+ msg.setLaunch(value);
6352
+ break;
6353
+ case 9:
6354
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6355
+ msg.setReason(value);
6356
+ break;
6357
+ case 10:
6358
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6359
+ msg.setExitReason(value);
6360
+ break;
6361
+ case 11:
6362
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6363
+ msg.setMiradorApiKeyId(value);
6364
+ break;
6365
+ case 12:
6366
+ var value = msg.getCountersMap();
6367
+ reader.readMessage(value, function(message, reader) {
6368
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readStringRequireUtf8, jspb.BinaryReader.prototype.readInt64, null, "", 0);
6369
+ });
6370
+ break;
6371
+ default:
6372
+ reader.skipField();
6373
+ break;
6374
+ }
6375
+ }
6376
+ return msg;
6377
+ };
6378
+
6379
+
6380
+ /**
6381
+ * Serializes the message to binary data (in protobuf wire format).
6382
+ * @return {!Uint8Array}
6383
+ */
6384
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.serializeBinary = function() {
6385
+ var writer = new jspb.BinaryWriter();
6386
+ proto.gateway.web.v1.AdminRelayHeartbeat.serializeBinaryToWriter(this, writer);
6387
+ return writer.getResultBuffer();
6388
+ };
6389
+
6390
+
6391
+ /**
6392
+ * Serializes the given message to binary data (in protobuf wire
6393
+ * format), writing to the given BinaryWriter.
6394
+ * @param {!proto.gateway.web.v1.AdminRelayHeartbeat} message
6395
+ * @param {!jspb.BinaryWriter} writer
6396
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6397
+ */
6398
+ proto.gateway.web.v1.AdminRelayHeartbeat.serializeBinaryToWriter = function(message, writer) {
6399
+ var f = undefined;
6400
+ f = message.getOrganizationId();
6401
+ if (f.length > 0) {
6402
+ writer.writeString(
6403
+ 1,
6404
+ f
6405
+ );
6406
+ }
6407
+ f = message.getProjectId();
6408
+ if (f.length > 0) {
6409
+ writer.writeString(
6410
+ 2,
6411
+ f
6412
+ );
6413
+ }
6414
+ f = message.getAccountUserId();
6415
+ if (f.length > 0) {
6416
+ writer.writeString(
6417
+ 3,
6418
+ f
6419
+ );
6420
+ }
6421
+ f = message.getHostName();
6422
+ if (f.length > 0) {
6423
+ writer.writeString(
6424
+ 4,
6425
+ f
6426
+ );
6427
+ }
6428
+ f = message.getFirstSeen();
6429
+ if (f != null) {
6430
+ writer.writeMessage(
6431
+ 5,
6432
+ f,
6433
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
6434
+ );
6435
+ }
6436
+ f = message.getLastSeen();
6437
+ if (f != null) {
6438
+ writer.writeMessage(
6439
+ 6,
6440
+ f,
6441
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
6442
+ );
6443
+ }
6444
+ f = message.getTermaVersion();
6445
+ if (f.length > 0) {
6446
+ writer.writeString(
6447
+ 7,
6448
+ f
6449
+ );
6450
+ }
6451
+ f = message.getLaunch();
6452
+ if (f.length > 0) {
6453
+ writer.writeString(
6454
+ 8,
6455
+ f
6456
+ );
6457
+ }
6458
+ f = message.getReason();
6459
+ if (f.length > 0) {
6460
+ writer.writeString(
6461
+ 9,
6462
+ f
6463
+ );
6464
+ }
6465
+ f = message.getExitReason();
6466
+ if (f.length > 0) {
6467
+ writer.writeString(
6468
+ 10,
6469
+ f
6470
+ );
6471
+ }
6472
+ f = message.getMiradorApiKeyId();
6473
+ if (f.length > 0) {
6474
+ writer.writeString(
6475
+ 11,
6476
+ f
6477
+ );
6478
+ }
6479
+ f = message.getCountersMap(true);
6480
+ if (f && f.getLength() > 0) {
6481
+ jspb.internal.public_for_gencode.serializeMapToBinary(
6482
+ message.getCountersMap(true),
6483
+ 12,
6484
+ writer,
6485
+ jspb.BinaryWriter.prototype.writeString,
6486
+ jspb.BinaryWriter.prototype.writeInt64);
6487
+ }
6488
+ };
6489
+
6490
+
6491
+ /**
6492
+ * optional string organization_id = 1;
6493
+ * @return {string}
6494
+ */
6495
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.getOrganizationId = function() {
6496
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6497
+ };
6498
+
6499
+
6500
+ /**
6501
+ * @param {string} value
6502
+ * @return {!proto.gateway.web.v1.AdminRelayHeartbeat} returns this
6503
+ */
6504
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.setOrganizationId = function(value) {
6505
+ return jspb.Message.setProto3StringField(this, 1, value);
6506
+ };
6507
+
6508
+
6509
+ /**
6510
+ * optional string project_id = 2;
6511
+ * @return {string}
6512
+ */
6513
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.getProjectId = function() {
6514
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
6515
+ };
6516
+
6517
+
6518
+ /**
6519
+ * @param {string} value
6520
+ * @return {!proto.gateway.web.v1.AdminRelayHeartbeat} returns this
6521
+ */
6522
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.setProjectId = function(value) {
6523
+ return jspb.Message.setProto3StringField(this, 2, value);
6524
+ };
6525
+
6526
+
6527
+ /**
6528
+ * optional string account_user_id = 3;
6529
+ * @return {string}
6530
+ */
6531
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.getAccountUserId = function() {
6532
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
6533
+ };
6534
+
6535
+
6536
+ /**
6537
+ * @param {string} value
6538
+ * @return {!proto.gateway.web.v1.AdminRelayHeartbeat} returns this
6539
+ */
6540
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.setAccountUserId = function(value) {
6541
+ return jspb.Message.setProto3StringField(this, 3, value);
6542
+ };
6543
+
6544
+
6545
+ /**
6546
+ * optional string host_name = 4;
6547
+ * @return {string}
6548
+ */
6549
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.getHostName = function() {
6550
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
6551
+ };
6552
+
6553
+
6554
+ /**
6555
+ * @param {string} value
6556
+ * @return {!proto.gateway.web.v1.AdminRelayHeartbeat} returns this
6557
+ */
6558
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.setHostName = function(value) {
6559
+ return jspb.Message.setProto3StringField(this, 4, value);
6560
+ };
6561
+
6562
+
6563
+ /**
6564
+ * optional google.protobuf.Timestamp first_seen = 5;
6565
+ * @return {?proto.google.protobuf.Timestamp}
6566
+ */
6567
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.getFirstSeen = function() {
6568
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
6569
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
6570
+ };
6571
+
6572
+
6573
+ /**
6574
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
6575
+ * @return {!proto.gateway.web.v1.AdminRelayHeartbeat} returns this
6576
+ */
6577
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.setFirstSeen = function(value) {
6578
+ return jspb.Message.setWrapperField(this, 5, value);
6579
+ };
6580
+
6581
+
6582
+ /**
6583
+ * Clears the message field making it undefined.
6584
+ * @return {!proto.gateway.web.v1.AdminRelayHeartbeat} returns this
6585
+ */
6586
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.clearFirstSeen = function() {
6587
+ return this.setFirstSeen(undefined);
6588
+ };
6589
+
6590
+
6591
+ /**
6592
+ * Returns whether this field is set.
6593
+ * @return {boolean}
6594
+ */
6595
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.hasFirstSeen = function() {
6596
+ return jspb.Message.getField(this, 5) != null;
6597
+ };
6598
+
6599
+
6600
+ /**
6601
+ * optional google.protobuf.Timestamp last_seen = 6;
6602
+ * @return {?proto.google.protobuf.Timestamp}
6603
+ */
6604
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.getLastSeen = function() {
6605
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
6606
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
6607
+ };
6608
+
6609
+
6610
+ /**
6611
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
6612
+ * @return {!proto.gateway.web.v1.AdminRelayHeartbeat} returns this
6613
+ */
6614
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.setLastSeen = function(value) {
6615
+ return jspb.Message.setWrapperField(this, 6, value);
6616
+ };
6617
+
6618
+
6619
+ /**
6620
+ * Clears the message field making it undefined.
6621
+ * @return {!proto.gateway.web.v1.AdminRelayHeartbeat} returns this
6622
+ */
6623
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.clearLastSeen = function() {
6624
+ return this.setLastSeen(undefined);
6625
+ };
6626
+
6627
+
6628
+ /**
6629
+ * Returns whether this field is set.
6630
+ * @return {boolean}
6631
+ */
6632
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.hasLastSeen = function() {
6633
+ return jspb.Message.getField(this, 6) != null;
6634
+ };
6635
+
6636
+
6637
+ /**
6638
+ * optional string terma_version = 7;
6639
+ * @return {string}
6640
+ */
6641
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.getTermaVersion = function() {
6642
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
6643
+ };
6644
+
6645
+
6646
+ /**
6647
+ * @param {string} value
6648
+ * @return {!proto.gateway.web.v1.AdminRelayHeartbeat} returns this
6649
+ */
6650
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.setTermaVersion = function(value) {
6651
+ return jspb.Message.setProto3StringField(this, 7, value);
6652
+ };
6653
+
6654
+
6655
+ /**
6656
+ * optional string launch = 8;
6657
+ * @return {string}
6658
+ */
6659
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.getLaunch = function() {
6660
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
6661
+ };
6662
+
6663
+
6664
+ /**
6665
+ * @param {string} value
6666
+ * @return {!proto.gateway.web.v1.AdminRelayHeartbeat} returns this
6667
+ */
6668
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.setLaunch = function(value) {
6669
+ return jspb.Message.setProto3StringField(this, 8, value);
6670
+ };
6671
+
6672
+
6673
+ /**
6674
+ * optional string reason = 9;
6675
+ * @return {string}
6676
+ */
6677
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.getReason = function() {
6678
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
6679
+ };
6680
+
6681
+
6682
+ /**
6683
+ * @param {string} value
6684
+ * @return {!proto.gateway.web.v1.AdminRelayHeartbeat} returns this
6685
+ */
6686
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.setReason = function(value) {
6687
+ return jspb.Message.setProto3StringField(this, 9, value);
6688
+ };
6689
+
6690
+
6691
+ /**
6692
+ * optional string exit_reason = 10;
6693
+ * @return {string}
6694
+ */
6695
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.getExitReason = function() {
6696
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
6697
+ };
6698
+
6699
+
6700
+ /**
6701
+ * @param {string} value
6702
+ * @return {!proto.gateway.web.v1.AdminRelayHeartbeat} returns this
6703
+ */
6704
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.setExitReason = function(value) {
6705
+ return jspb.Message.setProto3StringField(this, 10, value);
6706
+ };
6707
+
6708
+
6709
+ /**
6710
+ * optional string mirador_api_key_id = 11;
6711
+ * @return {string}
6712
+ */
6713
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.getMiradorApiKeyId = function() {
6714
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
6715
+ };
6716
+
6717
+
6718
+ /**
6719
+ * @param {string} value
6720
+ * @return {!proto.gateway.web.v1.AdminRelayHeartbeat} returns this
6721
+ */
6722
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.setMiradorApiKeyId = function(value) {
6723
+ return jspb.Message.setProto3StringField(this, 11, value);
6724
+ };
6725
+
6726
+
6727
+ /**
6728
+ * map<string, int64> counters = 12;
6729
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
6730
+ * empty, instead returning `undefined`
6731
+ * @return {!jspb.Map<string,number>}
6732
+ */
6733
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.getCountersMap = function(opt_noLazyCreate) {
6734
+ return /** @type {!jspb.Map<string,number>} */ (
6735
+ jspb.Message.getMapField(this, 12, opt_noLazyCreate,
6736
+ null));
6737
+ };
6738
+
6739
+
6740
+ /**
6741
+ * Clears values from the map. The map will be non-null.
6742
+ * @return {!proto.gateway.web.v1.AdminRelayHeartbeat} returns this
6743
+ */
6744
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.clearCountersMap = function() {
6745
+ this.getCountersMap().clear();
6746
+ return this;
6747
+ };
6748
+
6749
+
6750
+
6751
+ /**
6752
+ * List of repeated fields within this message type.
6753
+ * @private {!Array<number>}
6754
+ * @const
6755
+ */
6756
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.repeatedFields_ = [1];
6757
+
6758
+
6759
+
6760
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6761
+ /**
6762
+ * Creates an object representation of this proto.
6763
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6764
+ * Optional fields that are not set will be set to undefined.
6765
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6766
+ * For the list of reserved names please see:
6767
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6768
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6769
+ * JSPB instance for transitional soy proto support:
6770
+ * http://goto/soy-param-migration
6771
+ * @return {!Object}
6772
+ */
6773
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.prototype.toObject = function(opt_includeInstance) {
6774
+ return proto.gateway.web.v1.ResolveOrgDetailsRequest.toObject(opt_includeInstance, this);
6775
+ };
6776
+
6777
+
6778
+ /**
6779
+ * Static version of the {@see toObject} method.
6780
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6781
+ * the JSPB instance for transitional soy proto support:
6782
+ * http://goto/soy-param-migration
6783
+ * @param {!proto.gateway.web.v1.ResolveOrgDetailsRequest} msg The msg instance to transform.
6784
+ * @return {!Object}
6785
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6786
+ */
6787
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.toObject = function(includeInstance, msg) {
6788
+ var f, obj = {
6789
+ organizationIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
6790
+ };
6791
+
6792
+ if (includeInstance) {
6793
+ obj.$jspbMessageInstance = msg;
6794
+ }
6795
+ return obj;
6796
+ };
6797
+ }
6798
+
6799
+
6800
+ /**
6801
+ * Deserializes binary data (in protobuf wire format).
6802
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
6803
+ * @return {!proto.gateway.web.v1.ResolveOrgDetailsRequest}
6804
+ */
6805
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.deserializeBinary = function(bytes) {
6806
+ var reader = new jspb.BinaryReader(bytes);
6807
+ var msg = new proto.gateway.web.v1.ResolveOrgDetailsRequest;
6808
+ return proto.gateway.web.v1.ResolveOrgDetailsRequest.deserializeBinaryFromReader(msg, reader);
6809
+ };
6810
+
6811
+
6812
+ /**
6813
+ * Deserializes binary data (in protobuf wire format) from the
6814
+ * given reader into the given message object.
6815
+ * @param {!proto.gateway.web.v1.ResolveOrgDetailsRequest} msg The message object to deserialize into.
6816
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6817
+ * @return {!proto.gateway.web.v1.ResolveOrgDetailsRequest}
6818
+ */
6819
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.deserializeBinaryFromReader = function(msg, reader) {
6820
+ while (reader.nextField()) {
6821
+ if (reader.isEndGroup()) {
6822
+ break;
6823
+ }
6824
+ var field = reader.getFieldNumber();
6825
+ switch (field) {
6826
+ case 1:
6827
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6828
+ msg.addOrganizationIds(value);
6829
+ break;
6830
+ default:
6831
+ reader.skipField();
6832
+ break;
6833
+ }
6834
+ }
6835
+ return msg;
6836
+ };
6837
+
6838
+
6839
+ /**
6840
+ * Serializes the message to binary data (in protobuf wire format).
6841
+ * @return {!Uint8Array}
6842
+ */
6843
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.prototype.serializeBinary = function() {
6844
+ var writer = new jspb.BinaryWriter();
6845
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.serializeBinaryToWriter(this, writer);
6846
+ return writer.getResultBuffer();
6847
+ };
6848
+
6849
+
6850
+ /**
6851
+ * Serializes the given message to binary data (in protobuf wire
6852
+ * format), writing to the given BinaryWriter.
6853
+ * @param {!proto.gateway.web.v1.ResolveOrgDetailsRequest} message
6854
+ * @param {!jspb.BinaryWriter} writer
6855
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6856
+ */
6857
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.serializeBinaryToWriter = function(message, writer) {
6858
+ var f = undefined;
6859
+ f = message.getOrganizationIdsList();
6860
+ if (f.length > 0) {
6861
+ writer.writeRepeatedString(
6862
+ 1,
6863
+ f
6864
+ );
6865
+ }
6866
+ };
6867
+
6868
+
6869
+ /**
6870
+ * repeated string organization_ids = 1;
6871
+ * @return {!Array<string>}
6872
+ */
6873
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.prototype.getOrganizationIdsList = function() {
6874
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
6875
+ };
6876
+
6877
+
6878
+ /**
6879
+ * @param {!Array<string>} value
6880
+ * @return {!proto.gateway.web.v1.ResolveOrgDetailsRequest} returns this
6881
+ */
6882
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.prototype.setOrganizationIdsList = function(value) {
6883
+ return jspb.Message.setField(this, 1, value || []);
6884
+ };
6885
+
6886
+
6887
+ /**
6888
+ * @param {string} value
6889
+ * @param {number=} opt_index
6890
+ * @return {!proto.gateway.web.v1.ResolveOrgDetailsRequest} returns this
6891
+ */
6892
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.prototype.addOrganizationIds = function(value, opt_index) {
6893
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
6894
+ };
6895
+
6896
+
6897
+ /**
6898
+ * Clears the list making it empty but non-null.
6899
+ * @return {!proto.gateway.web.v1.ResolveOrgDetailsRequest} returns this
6900
+ */
6901
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.prototype.clearOrganizationIdsList = function() {
6902
+ return this.setOrganizationIdsList([]);
6903
+ };
6904
+
6905
+
6906
+
6907
+ /**
6908
+ * List of repeated fields within this message type.
6909
+ * @private {!Array<number>}
6910
+ * @const
6911
+ */
6912
+ proto.gateway.web.v1.ResolveOrgDetailsResponse.repeatedFields_ = [2];
6913
+
6914
+
6915
+
6916
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6917
+ /**
6918
+ * Creates an object representation of this proto.
6919
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6920
+ * Optional fields that are not set will be set to undefined.
6921
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6922
+ * For the list of reserved names please see:
6923
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6924
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6925
+ * JSPB instance for transitional soy proto support:
6926
+ * http://goto/soy-param-migration
6927
+ * @return {!Object}
6928
+ */
6929
+ proto.gateway.web.v1.ResolveOrgDetailsResponse.prototype.toObject = function(opt_includeInstance) {
6930
+ return proto.gateway.web.v1.ResolveOrgDetailsResponse.toObject(opt_includeInstance, this);
6931
+ };
6932
+
6933
+
6934
+ /**
6935
+ * Static version of the {@see toObject} method.
6936
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6937
+ * the JSPB instance for transitional soy proto support:
6938
+ * http://goto/soy-param-migration
6939
+ * @param {!proto.gateway.web.v1.ResolveOrgDetailsResponse} msg The msg instance to transform.
6940
+ * @return {!Object}
6941
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6942
+ */
6943
+ proto.gateway.web.v1.ResolveOrgDetailsResponse.toObject = function(includeInstance, msg) {
6944
+ var f, obj = {
6945
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
6946
+ organizationsList: jspb.Message.toObjectList(msg.getOrganizationsList(),
6947
+ proto.gateway.web.v1.OrgDetails.toObject, includeInstance)
6948
+ };
6949
+
6950
+ if (includeInstance) {
6951
+ obj.$jspbMessageInstance = msg;
6952
+ }
6953
+ return obj;
6954
+ };
6955
+ }
6956
+
6957
+
6958
+ /**
6959
+ * Deserializes binary data (in protobuf wire format).
6960
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
6961
+ * @return {!proto.gateway.web.v1.ResolveOrgDetailsResponse}
6962
+ */
6963
+ proto.gateway.web.v1.ResolveOrgDetailsResponse.deserializeBinary = function(bytes) {
6964
+ var reader = new jspb.BinaryReader(bytes);
6965
+ var msg = new proto.gateway.web.v1.ResolveOrgDetailsResponse;
6966
+ return proto.gateway.web.v1.ResolveOrgDetailsResponse.deserializeBinaryFromReader(msg, reader);
6967
+ };
6968
+
6969
+
6970
+ /**
6971
+ * Deserializes binary data (in protobuf wire format) from the
6972
+ * given reader into the given message object.
6973
+ * @param {!proto.gateway.web.v1.ResolveOrgDetailsResponse} msg The message object to deserialize into.
6974
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6975
+ * @return {!proto.gateway.web.v1.ResolveOrgDetailsResponse}
6976
+ */
6977
+ proto.gateway.web.v1.ResolveOrgDetailsResponse.deserializeBinaryFromReader = function(msg, reader) {
6978
+ while (reader.nextField()) {
6979
+ if (reader.isEndGroup()) {
6980
+ break;
6981
+ }
6982
+ var field = reader.getFieldNumber();
6983
+ switch (field) {
6984
+ case 1:
6985
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
6986
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
6987
+ msg.setStatus(value);
6988
+ break;
6989
+ case 2:
6990
+ var value = new proto.gateway.web.v1.OrgDetails;
6991
+ reader.readMessage(value,proto.gateway.web.v1.OrgDetails.deserializeBinaryFromReader);
6992
+ msg.addOrganizations(value);
6993
+ break;
6994
+ default:
6995
+ reader.skipField();
6996
+ break;
6997
+ }
6998
+ }
6999
+ return msg;
7000
+ };
7001
+
7002
+
7003
+ /**
7004
+ * Serializes the message to binary data (in protobuf wire format).
7005
+ * @return {!Uint8Array}
7006
+ */
7007
+ proto.gateway.web.v1.ResolveOrgDetailsResponse.prototype.serializeBinary = function() {
7008
+ var writer = new jspb.BinaryWriter();
7009
+ proto.gateway.web.v1.ResolveOrgDetailsResponse.serializeBinaryToWriter(this, writer);
7010
+ return writer.getResultBuffer();
7011
+ };
7012
+
7013
+
7014
+ /**
7015
+ * Serializes the given message to binary data (in protobuf wire
7016
+ * format), writing to the given BinaryWriter.
7017
+ * @param {!proto.gateway.web.v1.ResolveOrgDetailsResponse} message
7018
+ * @param {!jspb.BinaryWriter} writer
7019
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7020
+ */
7021
+ proto.gateway.web.v1.ResolveOrgDetailsResponse.serializeBinaryToWriter = function(message, writer) {
7022
+ var f = undefined;
7023
+ f = message.getStatus();
7024
+ if (f != null) {
7025
+ writer.writeMessage(
7026
+ 1,
7027
+ f,
7028
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
7029
+ );
7030
+ }
7031
+ f = message.getOrganizationsList();
7032
+ if (f.length > 0) {
7033
+ writer.writeRepeatedMessage(
7034
+ 2,
7035
+ f,
7036
+ proto.gateway.web.v1.OrgDetails.serializeBinaryToWriter
7037
+ );
7038
+ }
7039
+ };
7040
+
7041
+
7042
+ /**
7043
+ * optional gateway.common.v1.ResponseStatus status = 1;
7044
+ * @return {?proto.gateway.common.v1.ResponseStatus}
7045
+ */
7046
+ proto.gateway.web.v1.ResolveOrgDetailsResponse.prototype.getStatus = function() {
7047
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
7048
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
7049
+ };
7050
+
7051
+
7052
+ /**
7053
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
7054
+ * @return {!proto.gateway.web.v1.ResolveOrgDetailsResponse} returns this
7055
+ */
7056
+ proto.gateway.web.v1.ResolveOrgDetailsResponse.prototype.setStatus = function(value) {
7057
+ return jspb.Message.setWrapperField(this, 1, value);
7058
+ };
7059
+
7060
+
7061
+ /**
7062
+ * Clears the message field making it undefined.
7063
+ * @return {!proto.gateway.web.v1.ResolveOrgDetailsResponse} returns this
7064
+ */
7065
+ proto.gateway.web.v1.ResolveOrgDetailsResponse.prototype.clearStatus = function() {
7066
+ return this.setStatus(undefined);
7067
+ };
7068
+
7069
+
7070
+ /**
7071
+ * Returns whether this field is set.
7072
+ * @return {boolean}
7073
+ */
7074
+ proto.gateway.web.v1.ResolveOrgDetailsResponse.prototype.hasStatus = function() {
7075
+ return jspb.Message.getField(this, 1) != null;
7076
+ };
7077
+
7078
+
7079
+ /**
7080
+ * repeated OrgDetails organizations = 2;
7081
+ * @return {!Array<!proto.gateway.web.v1.OrgDetails>}
7082
+ */
7083
+ proto.gateway.web.v1.ResolveOrgDetailsResponse.prototype.getOrganizationsList = function() {
7084
+ return /** @type{!Array<!proto.gateway.web.v1.OrgDetails>} */ (
7085
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.OrgDetails, 2));
7086
+ };
7087
+
7088
+
7089
+ /**
7090
+ * @param {!Array<!proto.gateway.web.v1.OrgDetails>} value
7091
+ * @return {!proto.gateway.web.v1.ResolveOrgDetailsResponse} returns this
7092
+ */
7093
+ proto.gateway.web.v1.ResolveOrgDetailsResponse.prototype.setOrganizationsList = function(value) {
7094
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
7095
+ };
7096
+
7097
+
7098
+ /**
7099
+ * @param {!proto.gateway.web.v1.OrgDetails=} opt_value
7100
+ * @param {number=} opt_index
7101
+ * @return {!proto.gateway.web.v1.OrgDetails}
7102
+ */
7103
+ proto.gateway.web.v1.ResolveOrgDetailsResponse.prototype.addOrganizations = function(opt_value, opt_index) {
7104
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.OrgDetails, opt_index);
7105
+ };
7106
+
7107
+
7108
+ /**
7109
+ * Clears the list making it empty but non-null.
7110
+ * @return {!proto.gateway.web.v1.ResolveOrgDetailsResponse} returns this
7111
+ */
7112
+ proto.gateway.web.v1.ResolveOrgDetailsResponse.prototype.clearOrganizationsList = function() {
7113
+ return this.setOrganizationsList([]);
7114
+ };
7115
+
7116
+
7117
+
7118
+
7119
+
7120
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7121
+ /**
7122
+ * Creates an object representation of this proto.
7123
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7124
+ * Optional fields that are not set will be set to undefined.
7125
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7126
+ * For the list of reserved names please see:
7127
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7128
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7129
+ * JSPB instance for transitional soy proto support:
7130
+ * http://goto/soy-param-migration
7131
+ * @return {!Object}
7132
+ */
7133
+ proto.gateway.web.v1.OrgDetails.prototype.toObject = function(opt_includeInstance) {
7134
+ return proto.gateway.web.v1.OrgDetails.toObject(opt_includeInstance, this);
7135
+ };
7136
+
7137
+
7138
+ /**
7139
+ * Static version of the {@see toObject} method.
7140
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7141
+ * the JSPB instance for transitional soy proto support:
7142
+ * http://goto/soy-param-migration
7143
+ * @param {!proto.gateway.web.v1.OrgDetails} msg The msg instance to transform.
7144
+ * @return {!Object}
7145
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7146
+ */
7147
+ proto.gateway.web.v1.OrgDetails.toObject = function(includeInstance, msg) {
7148
+ var f, obj = {
7149
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
7150
+ name: jspb.Message.getFieldWithDefault(msg, 2, "")
7151
+ };
7152
+
7153
+ if (includeInstance) {
7154
+ obj.$jspbMessageInstance = msg;
7155
+ }
7156
+ return obj;
7157
+ };
7158
+ }
7159
+
7160
+
7161
+ /**
7162
+ * Deserializes binary data (in protobuf wire format).
7163
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
7164
+ * @return {!proto.gateway.web.v1.OrgDetails}
7165
+ */
7166
+ proto.gateway.web.v1.OrgDetails.deserializeBinary = function(bytes) {
7167
+ var reader = new jspb.BinaryReader(bytes);
7168
+ var msg = new proto.gateway.web.v1.OrgDetails;
7169
+ return proto.gateway.web.v1.OrgDetails.deserializeBinaryFromReader(msg, reader);
7170
+ };
7171
+
7172
+
7173
+ /**
7174
+ * Deserializes binary data (in protobuf wire format) from the
7175
+ * given reader into the given message object.
7176
+ * @param {!proto.gateway.web.v1.OrgDetails} msg The message object to deserialize into.
7177
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7178
+ * @return {!proto.gateway.web.v1.OrgDetails}
7179
+ */
7180
+ proto.gateway.web.v1.OrgDetails.deserializeBinaryFromReader = function(msg, reader) {
7181
+ while (reader.nextField()) {
7182
+ if (reader.isEndGroup()) {
7183
+ break;
7184
+ }
7185
+ var field = reader.getFieldNumber();
7186
+ switch (field) {
7187
+ case 1:
7188
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
7189
+ msg.setOrganizationId(value);
7190
+ break;
7191
+ case 2:
7192
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
7193
+ msg.setName(value);
7194
+ break;
7195
+ default:
7196
+ reader.skipField();
7197
+ break;
7198
+ }
7199
+ }
7200
+ return msg;
7201
+ };
7202
+
7203
+
7204
+ /**
7205
+ * Serializes the message to binary data (in protobuf wire format).
7206
+ * @return {!Uint8Array}
7207
+ */
7208
+ proto.gateway.web.v1.OrgDetails.prototype.serializeBinary = function() {
7209
+ var writer = new jspb.BinaryWriter();
7210
+ proto.gateway.web.v1.OrgDetails.serializeBinaryToWriter(this, writer);
7211
+ return writer.getResultBuffer();
7212
+ };
7213
+
7214
+
7215
+ /**
7216
+ * Serializes the given message to binary data (in protobuf wire
7217
+ * format), writing to the given BinaryWriter.
7218
+ * @param {!proto.gateway.web.v1.OrgDetails} message
7219
+ * @param {!jspb.BinaryWriter} writer
7220
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7221
+ */
7222
+ proto.gateway.web.v1.OrgDetails.serializeBinaryToWriter = function(message, writer) {
7223
+ var f = undefined;
7224
+ f = message.getOrganizationId();
7225
+ if (f.length > 0) {
7226
+ writer.writeString(
7227
+ 1,
7228
+ f
7229
+ );
7230
+ }
7231
+ f = message.getName();
7232
+ if (f.length > 0) {
7233
+ writer.writeString(
7234
+ 2,
7235
+ f
7236
+ );
7237
+ }
7238
+ };
7239
+
7240
+
7241
+ /**
7242
+ * optional string organization_id = 1;
7243
+ * @return {string}
7244
+ */
7245
+ proto.gateway.web.v1.OrgDetails.prototype.getOrganizationId = function() {
7246
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7247
+ };
7248
+
7249
+
7250
+ /**
7251
+ * @param {string} value
7252
+ * @return {!proto.gateway.web.v1.OrgDetails} returns this
7253
+ */
7254
+ proto.gateway.web.v1.OrgDetails.prototype.setOrganizationId = function(value) {
7255
+ return jspb.Message.setProto3StringField(this, 1, value);
7256
+ };
7257
+
7258
+
7259
+ /**
7260
+ * optional string name = 2;
7261
+ * @return {string}
7262
+ */
7263
+ proto.gateway.web.v1.OrgDetails.prototype.getName = function() {
7264
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7265
+ };
7266
+
7267
+
7268
+ /**
7269
+ * @param {string} value
7270
+ * @return {!proto.gateway.web.v1.OrgDetails} returns this
7271
+ */
7272
+ proto.gateway.web.v1.OrgDetails.prototype.setName = function(value) {
7273
+ return jspb.Message.setProto3StringField(this, 2, value);
7274
+ };
7275
+
7276
+
7277
+
7278
+ /**
7279
+ * List of repeated fields within this message type.
7280
+ * @private {!Array<number>}
7281
+ * @const
7282
+ */
7283
+ proto.gateway.web.v1.ResolveProjectDetailsRequest.repeatedFields_ = [1];
7284
+
7285
+
7286
+
7287
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7288
+ /**
7289
+ * Creates an object representation of this proto.
7290
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7291
+ * Optional fields that are not set will be set to undefined.
7292
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7293
+ * For the list of reserved names please see:
7294
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7295
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7296
+ * JSPB instance for transitional soy proto support:
7297
+ * http://goto/soy-param-migration
7298
+ * @return {!Object}
7299
+ */
7300
+ proto.gateway.web.v1.ResolveProjectDetailsRequest.prototype.toObject = function(opt_includeInstance) {
7301
+ return proto.gateway.web.v1.ResolveProjectDetailsRequest.toObject(opt_includeInstance, this);
7302
+ };
7303
+
7304
+
7305
+ /**
7306
+ * Static version of the {@see toObject} method.
7307
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7308
+ * the JSPB instance for transitional soy proto support:
7309
+ * http://goto/soy-param-migration
7310
+ * @param {!proto.gateway.web.v1.ResolveProjectDetailsRequest} msg The msg instance to transform.
7311
+ * @return {!Object}
7312
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7313
+ */
7314
+ proto.gateway.web.v1.ResolveProjectDetailsRequest.toObject = function(includeInstance, msg) {
7315
+ var f, obj = {
7316
+ projectIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
7317
+ };
7318
+
7319
+ if (includeInstance) {
7320
+ obj.$jspbMessageInstance = msg;
7321
+ }
7322
+ return obj;
7323
+ };
7324
+ }
7325
+
7326
+
7327
+ /**
7328
+ * Deserializes binary data (in protobuf wire format).
7329
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
7330
+ * @return {!proto.gateway.web.v1.ResolveProjectDetailsRequest}
7331
+ */
7332
+ proto.gateway.web.v1.ResolveProjectDetailsRequest.deserializeBinary = function(bytes) {
7333
+ var reader = new jspb.BinaryReader(bytes);
7334
+ var msg = new proto.gateway.web.v1.ResolveProjectDetailsRequest;
7335
+ return proto.gateway.web.v1.ResolveProjectDetailsRequest.deserializeBinaryFromReader(msg, reader);
7336
+ };
7337
+
7338
+
7339
+ /**
7340
+ * Deserializes binary data (in protobuf wire format) from the
7341
+ * given reader into the given message object.
7342
+ * @param {!proto.gateway.web.v1.ResolveProjectDetailsRequest} msg The message object to deserialize into.
7343
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7344
+ * @return {!proto.gateway.web.v1.ResolveProjectDetailsRequest}
7345
+ */
7346
+ proto.gateway.web.v1.ResolveProjectDetailsRequest.deserializeBinaryFromReader = function(msg, reader) {
7347
+ while (reader.nextField()) {
7348
+ if (reader.isEndGroup()) {
7349
+ break;
7350
+ }
7351
+ var field = reader.getFieldNumber();
7352
+ switch (field) {
7353
+ case 1:
7354
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
7355
+ msg.addProjectIds(value);
7356
+ break;
7357
+ default:
7358
+ reader.skipField();
7359
+ break;
7360
+ }
7361
+ }
7362
+ return msg;
7363
+ };
7364
+
7365
+
7366
+ /**
7367
+ * Serializes the message to binary data (in protobuf wire format).
7368
+ * @return {!Uint8Array}
7369
+ */
7370
+ proto.gateway.web.v1.ResolveProjectDetailsRequest.prototype.serializeBinary = function() {
7371
+ var writer = new jspb.BinaryWriter();
7372
+ proto.gateway.web.v1.ResolveProjectDetailsRequest.serializeBinaryToWriter(this, writer);
7373
+ return writer.getResultBuffer();
7374
+ };
7375
+
7376
+
7377
+ /**
7378
+ * Serializes the given message to binary data (in protobuf wire
7379
+ * format), writing to the given BinaryWriter.
7380
+ * @param {!proto.gateway.web.v1.ResolveProjectDetailsRequest} message
7381
+ * @param {!jspb.BinaryWriter} writer
7382
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7383
+ */
7384
+ proto.gateway.web.v1.ResolveProjectDetailsRequest.serializeBinaryToWriter = function(message, writer) {
7385
+ var f = undefined;
7386
+ f = message.getProjectIdsList();
7387
+ if (f.length > 0) {
7388
+ writer.writeRepeatedString(
7389
+ 1,
7390
+ f
7391
+ );
7392
+ }
7393
+ };
7394
+
7395
+
7396
+ /**
7397
+ * repeated string project_ids = 1;
7398
+ * @return {!Array<string>}
7399
+ */
7400
+ proto.gateway.web.v1.ResolveProjectDetailsRequest.prototype.getProjectIdsList = function() {
7401
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
7402
+ };
7403
+
7404
+
7405
+ /**
7406
+ * @param {!Array<string>} value
7407
+ * @return {!proto.gateway.web.v1.ResolveProjectDetailsRequest} returns this
7408
+ */
7409
+ proto.gateway.web.v1.ResolveProjectDetailsRequest.prototype.setProjectIdsList = function(value) {
7410
+ return jspb.Message.setField(this, 1, value || []);
7411
+ };
7412
+
7413
+
7414
+ /**
7415
+ * @param {string} value
7416
+ * @param {number=} opt_index
7417
+ * @return {!proto.gateway.web.v1.ResolveProjectDetailsRequest} returns this
7418
+ */
7419
+ proto.gateway.web.v1.ResolveProjectDetailsRequest.prototype.addProjectIds = function(value, opt_index) {
7420
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
7421
+ };
7422
+
7423
+
7424
+ /**
7425
+ * Clears the list making it empty but non-null.
7426
+ * @return {!proto.gateway.web.v1.ResolveProjectDetailsRequest} returns this
7427
+ */
7428
+ proto.gateway.web.v1.ResolveProjectDetailsRequest.prototype.clearProjectIdsList = function() {
7429
+ return this.setProjectIdsList([]);
7430
+ };
7431
+
7432
+
7433
+
7434
+ /**
7435
+ * List of repeated fields within this message type.
7436
+ * @private {!Array<number>}
7437
+ * @const
7438
+ */
7439
+ proto.gateway.web.v1.ResolveProjectDetailsResponse.repeatedFields_ = [2];
7440
+
7441
+
7442
+
7443
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7444
+ /**
7445
+ * Creates an object representation of this proto.
7446
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7447
+ * Optional fields that are not set will be set to undefined.
7448
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7449
+ * For the list of reserved names please see:
7450
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7451
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7452
+ * JSPB instance for transitional soy proto support:
7453
+ * http://goto/soy-param-migration
7454
+ * @return {!Object}
7455
+ */
7456
+ proto.gateway.web.v1.ResolveProjectDetailsResponse.prototype.toObject = function(opt_includeInstance) {
7457
+ return proto.gateway.web.v1.ResolveProjectDetailsResponse.toObject(opt_includeInstance, this);
7458
+ };
7459
+
7460
+
7461
+ /**
7462
+ * Static version of the {@see toObject} method.
7463
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7464
+ * the JSPB instance for transitional soy proto support:
7465
+ * http://goto/soy-param-migration
7466
+ * @param {!proto.gateway.web.v1.ResolveProjectDetailsResponse} msg The msg instance to transform.
7467
+ * @return {!Object}
7468
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7469
+ */
7470
+ proto.gateway.web.v1.ResolveProjectDetailsResponse.toObject = function(includeInstance, msg) {
7471
+ var f, obj = {
7472
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
7473
+ projectsList: jspb.Message.toObjectList(msg.getProjectsList(),
7474
+ proto.gateway.web.v1.ProjectDetails.toObject, includeInstance)
7475
+ };
7476
+
7477
+ if (includeInstance) {
7478
+ obj.$jspbMessageInstance = msg;
7479
+ }
7480
+ return obj;
7481
+ };
7482
+ }
7483
+
7484
+
7485
+ /**
7486
+ * Deserializes binary data (in protobuf wire format).
7487
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
7488
+ * @return {!proto.gateway.web.v1.ResolveProjectDetailsResponse}
7489
+ */
7490
+ proto.gateway.web.v1.ResolveProjectDetailsResponse.deserializeBinary = function(bytes) {
7491
+ var reader = new jspb.BinaryReader(bytes);
7492
+ var msg = new proto.gateway.web.v1.ResolveProjectDetailsResponse;
7493
+ return proto.gateway.web.v1.ResolveProjectDetailsResponse.deserializeBinaryFromReader(msg, reader);
7494
+ };
7495
+
7496
+
7497
+ /**
7498
+ * Deserializes binary data (in protobuf wire format) from the
7499
+ * given reader into the given message object.
7500
+ * @param {!proto.gateway.web.v1.ResolveProjectDetailsResponse} msg The message object to deserialize into.
7501
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7502
+ * @return {!proto.gateway.web.v1.ResolveProjectDetailsResponse}
7503
+ */
7504
+ proto.gateway.web.v1.ResolveProjectDetailsResponse.deserializeBinaryFromReader = function(msg, reader) {
7505
+ while (reader.nextField()) {
7506
+ if (reader.isEndGroup()) {
7507
+ break;
7508
+ }
7509
+ var field = reader.getFieldNumber();
7510
+ switch (field) {
7511
+ case 1:
7512
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
7513
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
7514
+ msg.setStatus(value);
7515
+ break;
7516
+ case 2:
7517
+ var value = new proto.gateway.web.v1.ProjectDetails;
7518
+ reader.readMessage(value,proto.gateway.web.v1.ProjectDetails.deserializeBinaryFromReader);
7519
+ msg.addProjects(value);
7520
+ break;
7521
+ default:
7522
+ reader.skipField();
7523
+ break;
7524
+ }
7525
+ }
7526
+ return msg;
7527
+ };
7528
+
7529
+
7530
+ /**
7531
+ * Serializes the message to binary data (in protobuf wire format).
7532
+ * @return {!Uint8Array}
7533
+ */
7534
+ proto.gateway.web.v1.ResolveProjectDetailsResponse.prototype.serializeBinary = function() {
7535
+ var writer = new jspb.BinaryWriter();
7536
+ proto.gateway.web.v1.ResolveProjectDetailsResponse.serializeBinaryToWriter(this, writer);
7537
+ return writer.getResultBuffer();
7538
+ };
7539
+
7540
+
7541
+ /**
7542
+ * Serializes the given message to binary data (in protobuf wire
7543
+ * format), writing to the given BinaryWriter.
7544
+ * @param {!proto.gateway.web.v1.ResolveProjectDetailsResponse} message
7545
+ * @param {!jspb.BinaryWriter} writer
7546
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7547
+ */
7548
+ proto.gateway.web.v1.ResolveProjectDetailsResponse.serializeBinaryToWriter = function(message, writer) {
7549
+ var f = undefined;
7550
+ f = message.getStatus();
7551
+ if (f != null) {
7552
+ writer.writeMessage(
7553
+ 1,
7554
+ f,
7555
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
7556
+ );
7557
+ }
7558
+ f = message.getProjectsList();
7559
+ if (f.length > 0) {
7560
+ writer.writeRepeatedMessage(
7561
+ 2,
7562
+ f,
7563
+ proto.gateway.web.v1.ProjectDetails.serializeBinaryToWriter
7564
+ );
7565
+ }
7566
+ };
7567
+
7568
+
7569
+ /**
7570
+ * optional gateway.common.v1.ResponseStatus status = 1;
7571
+ * @return {?proto.gateway.common.v1.ResponseStatus}
7572
+ */
7573
+ proto.gateway.web.v1.ResolveProjectDetailsResponse.prototype.getStatus = function() {
7574
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
7575
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
7576
+ };
7577
+
7578
+
7579
+ /**
7580
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
7581
+ * @return {!proto.gateway.web.v1.ResolveProjectDetailsResponse} returns this
7582
+ */
7583
+ proto.gateway.web.v1.ResolveProjectDetailsResponse.prototype.setStatus = function(value) {
7584
+ return jspb.Message.setWrapperField(this, 1, value);
7585
+ };
7586
+
7587
+
7588
+ /**
7589
+ * Clears the message field making it undefined.
7590
+ * @return {!proto.gateway.web.v1.ResolveProjectDetailsResponse} returns this
7591
+ */
7592
+ proto.gateway.web.v1.ResolveProjectDetailsResponse.prototype.clearStatus = function() {
7593
+ return this.setStatus(undefined);
7594
+ };
7595
+
7596
+
7597
+ /**
7598
+ * Returns whether this field is set.
7599
+ * @return {boolean}
7600
+ */
7601
+ proto.gateway.web.v1.ResolveProjectDetailsResponse.prototype.hasStatus = function() {
7602
+ return jspb.Message.getField(this, 1) != null;
7603
+ };
7604
+
7605
+
7606
+ /**
7607
+ * repeated ProjectDetails projects = 2;
7608
+ * @return {!Array<!proto.gateway.web.v1.ProjectDetails>}
7609
+ */
7610
+ proto.gateway.web.v1.ResolveProjectDetailsResponse.prototype.getProjectsList = function() {
7611
+ return /** @type{!Array<!proto.gateway.web.v1.ProjectDetails>} */ (
7612
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.ProjectDetails, 2));
7613
+ };
7614
+
7615
+
7616
+ /**
7617
+ * @param {!Array<!proto.gateway.web.v1.ProjectDetails>} value
7618
+ * @return {!proto.gateway.web.v1.ResolveProjectDetailsResponse} returns this
7619
+ */
7620
+ proto.gateway.web.v1.ResolveProjectDetailsResponse.prototype.setProjectsList = function(value) {
7621
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
7622
+ };
7623
+
7624
+
7625
+ /**
7626
+ * @param {!proto.gateway.web.v1.ProjectDetails=} opt_value
7627
+ * @param {number=} opt_index
7628
+ * @return {!proto.gateway.web.v1.ProjectDetails}
7629
+ */
7630
+ proto.gateway.web.v1.ResolveProjectDetailsResponse.prototype.addProjects = function(opt_value, opt_index) {
7631
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.ProjectDetails, opt_index);
7632
+ };
7633
+
7634
+
7635
+ /**
7636
+ * Clears the list making it empty but non-null.
7637
+ * @return {!proto.gateway.web.v1.ResolveProjectDetailsResponse} returns this
7638
+ */
7639
+ proto.gateway.web.v1.ResolveProjectDetailsResponse.prototype.clearProjectsList = function() {
7640
+ return this.setProjectsList([]);
7641
+ };
7642
+
7643
+
7644
+
7645
+
7646
+
7647
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7648
+ /**
7649
+ * Creates an object representation of this proto.
7650
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7651
+ * Optional fields that are not set will be set to undefined.
7652
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7653
+ * For the list of reserved names please see:
7654
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7655
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7656
+ * JSPB instance for transitional soy proto support:
7657
+ * http://goto/soy-param-migration
7658
+ * @return {!Object}
7659
+ */
7660
+ proto.gateway.web.v1.ProjectDetails.prototype.toObject = function(opt_includeInstance) {
7661
+ return proto.gateway.web.v1.ProjectDetails.toObject(opt_includeInstance, this);
7662
+ };
7663
+
7664
+
7665
+ /**
7666
+ * Static version of the {@see toObject} method.
7667
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7668
+ * the JSPB instance for transitional soy proto support:
7669
+ * http://goto/soy-param-migration
7670
+ * @param {!proto.gateway.web.v1.ProjectDetails} msg The msg instance to transform.
7671
+ * @return {!Object}
7672
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7673
+ */
7674
+ proto.gateway.web.v1.ProjectDetails.toObject = function(includeInstance, msg) {
7675
+ var f, obj = {
7676
+ projectId: jspb.Message.getFieldWithDefault(msg, 1, ""),
7677
+ organizationId: jspb.Message.getFieldWithDefault(msg, 2, ""),
7678
+ name: jspb.Message.getFieldWithDefault(msg, 3, "")
7679
+ };
7680
+
7681
+ if (includeInstance) {
7682
+ obj.$jspbMessageInstance = msg;
7683
+ }
7684
+ return obj;
7685
+ };
7686
+ }
7687
+
7688
+
7689
+ /**
7690
+ * Deserializes binary data (in protobuf wire format).
7691
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
7692
+ * @return {!proto.gateway.web.v1.ProjectDetails}
7693
+ */
7694
+ proto.gateway.web.v1.ProjectDetails.deserializeBinary = function(bytes) {
7695
+ var reader = new jspb.BinaryReader(bytes);
7696
+ var msg = new proto.gateway.web.v1.ProjectDetails;
7697
+ return proto.gateway.web.v1.ProjectDetails.deserializeBinaryFromReader(msg, reader);
7698
+ };
7699
+
7700
+
7701
+ /**
7702
+ * Deserializes binary data (in protobuf wire format) from the
7703
+ * given reader into the given message object.
7704
+ * @param {!proto.gateway.web.v1.ProjectDetails} msg The message object to deserialize into.
7705
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7706
+ * @return {!proto.gateway.web.v1.ProjectDetails}
7707
+ */
7708
+ proto.gateway.web.v1.ProjectDetails.deserializeBinaryFromReader = function(msg, reader) {
7709
+ while (reader.nextField()) {
7710
+ if (reader.isEndGroup()) {
7711
+ break;
7712
+ }
7713
+ var field = reader.getFieldNumber();
7714
+ switch (field) {
7715
+ case 1:
7716
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
7717
+ msg.setProjectId(value);
7718
+ break;
7719
+ case 2:
7720
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
7721
+ msg.setOrganizationId(value);
7722
+ break;
7723
+ case 3:
7724
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
7725
+ msg.setName(value);
7726
+ break;
7727
+ default:
7728
+ reader.skipField();
7729
+ break;
7730
+ }
7731
+ }
7732
+ return msg;
7733
+ };
7734
+
7735
+
7736
+ /**
7737
+ * Serializes the message to binary data (in protobuf wire format).
7738
+ * @return {!Uint8Array}
7739
+ */
7740
+ proto.gateway.web.v1.ProjectDetails.prototype.serializeBinary = function() {
7741
+ var writer = new jspb.BinaryWriter();
7742
+ proto.gateway.web.v1.ProjectDetails.serializeBinaryToWriter(this, writer);
7743
+ return writer.getResultBuffer();
7744
+ };
7745
+
7746
+
7747
+ /**
7748
+ * Serializes the given message to binary data (in protobuf wire
7749
+ * format), writing to the given BinaryWriter.
7750
+ * @param {!proto.gateway.web.v1.ProjectDetails} message
7751
+ * @param {!jspb.BinaryWriter} writer
7752
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7753
+ */
7754
+ proto.gateway.web.v1.ProjectDetails.serializeBinaryToWriter = function(message, writer) {
7755
+ var f = undefined;
7756
+ f = message.getProjectId();
7757
+ if (f.length > 0) {
7758
+ writer.writeString(
7759
+ 1,
7760
+ f
7761
+ );
7762
+ }
7763
+ f = message.getOrganizationId();
7764
+ if (f.length > 0) {
7765
+ writer.writeString(
7766
+ 2,
7767
+ f
7768
+ );
7769
+ }
7770
+ f = message.getName();
7771
+ if (f.length > 0) {
7772
+ writer.writeString(
7773
+ 3,
7774
+ f
7775
+ );
7776
+ }
7777
+ };
7778
+
7779
+
7780
+ /**
7781
+ * optional string project_id = 1;
7782
+ * @return {string}
7783
+ */
7784
+ proto.gateway.web.v1.ProjectDetails.prototype.getProjectId = function() {
7785
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7786
+ };
7787
+
7788
+
7789
+ /**
7790
+ * @param {string} value
7791
+ * @return {!proto.gateway.web.v1.ProjectDetails} returns this
7792
+ */
7793
+ proto.gateway.web.v1.ProjectDetails.prototype.setProjectId = function(value) {
7794
+ return jspb.Message.setProto3StringField(this, 1, value);
7795
+ };
7796
+
7797
+
7798
+ /**
7799
+ * optional string organization_id = 2;
7800
+ * @return {string}
7801
+ */
7802
+ proto.gateway.web.v1.ProjectDetails.prototype.getOrganizationId = function() {
7803
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7804
+ };
7805
+
7806
+
7807
+ /**
7808
+ * @param {string} value
7809
+ * @return {!proto.gateway.web.v1.ProjectDetails} returns this
7810
+ */
7811
+ proto.gateway.web.v1.ProjectDetails.prototype.setOrganizationId = function(value) {
7812
+ return jspb.Message.setProto3StringField(this, 2, value);
7813
+ };
7814
+
7815
+
7816
+ /**
7817
+ * optional string name = 3;
7818
+ * @return {string}
7819
+ */
7820
+ proto.gateway.web.v1.ProjectDetails.prototype.getName = function() {
7821
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
7822
+ };
7823
+
7824
+
7825
+ /**
7826
+ * @param {string} value
7827
+ * @return {!proto.gateway.web.v1.ProjectDetails} returns this
7828
+ */
7829
+ proto.gateway.web.v1.ProjectDetails.prototype.setName = function(value) {
7830
+ return jspb.Message.setProto3StringField(this, 3, value);
7831
+ };
7832
+
7833
+
7834
+
7835
+
7836
+
7837
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7838
+ /**
7839
+ * Creates an object representation of this proto.
7840
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7841
+ * Optional fields that are not set will be set to undefined.
7842
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7843
+ * For the list of reserved names please see:
7844
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7845
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7846
+ * JSPB instance for transitional soy proto support:
7847
+ * http://goto/soy-param-migration
7848
+ * @return {!Object}
7849
+ */
7850
+ proto.gateway.web.v1.ResolveUserDetailsRequest.prototype.toObject = function(opt_includeInstance) {
7851
+ return proto.gateway.web.v1.ResolveUserDetailsRequest.toObject(opt_includeInstance, this);
7852
+ };
7853
+
7854
+
7855
+ /**
7856
+ * Static version of the {@see toObject} method.
7857
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7858
+ * the JSPB instance for transitional soy proto support:
7859
+ * http://goto/soy-param-migration
7860
+ * @param {!proto.gateway.web.v1.ResolveUserDetailsRequest} msg The msg instance to transform.
7861
+ * @return {!Object}
7862
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7863
+ */
7864
+ proto.gateway.web.v1.ResolveUserDetailsRequest.toObject = function(includeInstance, msg) {
7865
+ var f, obj = {
7866
+ userId: jspb.Message.getFieldWithDefault(msg, 1, "")
7867
+ };
7868
+
7869
+ if (includeInstance) {
7870
+ obj.$jspbMessageInstance = msg;
7871
+ }
7872
+ return obj;
7873
+ };
7874
+ }
7875
+
7876
+
7877
+ /**
7878
+ * Deserializes binary data (in protobuf wire format).
7879
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
7880
+ * @return {!proto.gateway.web.v1.ResolveUserDetailsRequest}
7881
+ */
7882
+ proto.gateway.web.v1.ResolveUserDetailsRequest.deserializeBinary = function(bytes) {
7883
+ var reader = new jspb.BinaryReader(bytes);
7884
+ var msg = new proto.gateway.web.v1.ResolveUserDetailsRequest;
7885
+ return proto.gateway.web.v1.ResolveUserDetailsRequest.deserializeBinaryFromReader(msg, reader);
7886
+ };
7887
+
7888
+
7889
+ /**
7890
+ * Deserializes binary data (in protobuf wire format) from the
7891
+ * given reader into the given message object.
7892
+ * @param {!proto.gateway.web.v1.ResolveUserDetailsRequest} msg The message object to deserialize into.
7893
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7894
+ * @return {!proto.gateway.web.v1.ResolveUserDetailsRequest}
7895
+ */
7896
+ proto.gateway.web.v1.ResolveUserDetailsRequest.deserializeBinaryFromReader = function(msg, reader) {
7897
+ while (reader.nextField()) {
7898
+ if (reader.isEndGroup()) {
7899
+ break;
7900
+ }
7901
+ var field = reader.getFieldNumber();
7902
+ switch (field) {
7903
+ case 1:
7904
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
7905
+ msg.setUserId(value);
7906
+ break;
7907
+ default:
7908
+ reader.skipField();
7909
+ break;
7910
+ }
7911
+ }
7912
+ return msg;
7913
+ };
7914
+
7915
+
7916
+ /**
7917
+ * Serializes the message to binary data (in protobuf wire format).
7918
+ * @return {!Uint8Array}
7919
+ */
7920
+ proto.gateway.web.v1.ResolveUserDetailsRequest.prototype.serializeBinary = function() {
7921
+ var writer = new jspb.BinaryWriter();
7922
+ proto.gateway.web.v1.ResolveUserDetailsRequest.serializeBinaryToWriter(this, writer);
7923
+ return writer.getResultBuffer();
7924
+ };
7925
+
7926
+
7927
+ /**
7928
+ * Serializes the given message to binary data (in protobuf wire
7929
+ * format), writing to the given BinaryWriter.
7930
+ * @param {!proto.gateway.web.v1.ResolveUserDetailsRequest} message
7931
+ * @param {!jspb.BinaryWriter} writer
7932
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7933
+ */
7934
+ proto.gateway.web.v1.ResolveUserDetailsRequest.serializeBinaryToWriter = function(message, writer) {
7935
+ var f = undefined;
7936
+ f = message.getUserId();
7937
+ if (f.length > 0) {
7938
+ writer.writeString(
7939
+ 1,
7940
+ f
7941
+ );
7942
+ }
7943
+ };
7944
+
7945
+
7946
+ /**
7947
+ * optional string user_id = 1;
7948
+ * @return {string}
7949
+ */
7950
+ proto.gateway.web.v1.ResolveUserDetailsRequest.prototype.getUserId = function() {
7951
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7952
+ };
7953
+
7954
+
7955
+ /**
7956
+ * @param {string} value
7957
+ * @return {!proto.gateway.web.v1.ResolveUserDetailsRequest} returns this
7958
+ */
7959
+ proto.gateway.web.v1.ResolveUserDetailsRequest.prototype.setUserId = function(value) {
7960
+ return jspb.Message.setProto3StringField(this, 1, value);
7961
+ };
7962
+
7963
+
7964
+
7965
+
7966
+
7967
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7968
+ /**
7969
+ * Creates an object representation of this proto.
7970
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7971
+ * Optional fields that are not set will be set to undefined.
7972
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7973
+ * For the list of reserved names please see:
7974
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7975
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7976
+ * JSPB instance for transitional soy proto support:
7977
+ * http://goto/soy-param-migration
7978
+ * @return {!Object}
7979
+ */
7980
+ proto.gateway.web.v1.ResolveUserDetailsResponse.prototype.toObject = function(opt_includeInstance) {
7981
+ return proto.gateway.web.v1.ResolveUserDetailsResponse.toObject(opt_includeInstance, this);
7982
+ };
7983
+
7984
+
7985
+ /**
7986
+ * Static version of the {@see toObject} method.
7987
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7988
+ * the JSPB instance for transitional soy proto support:
7989
+ * http://goto/soy-param-migration
7990
+ * @param {!proto.gateway.web.v1.ResolveUserDetailsResponse} msg The msg instance to transform.
7991
+ * @return {!Object}
7992
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7993
+ */
7994
+ proto.gateway.web.v1.ResolveUserDetailsResponse.toObject = function(includeInstance, msg) {
7995
+ var f, obj = {
7996
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
7997
+ user: (f = msg.getUser()) && proto.gateway.web.v1.UserDetails.toObject(includeInstance, f)
7998
+ };
7999
+
8000
+ if (includeInstance) {
8001
+ obj.$jspbMessageInstance = msg;
8002
+ }
8003
+ return obj;
8004
+ };
8005
+ }
8006
+
8007
+
8008
+ /**
8009
+ * Deserializes binary data (in protobuf wire format).
8010
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
8011
+ * @return {!proto.gateway.web.v1.ResolveUserDetailsResponse}
8012
+ */
8013
+ proto.gateway.web.v1.ResolveUserDetailsResponse.deserializeBinary = function(bytes) {
8014
+ var reader = new jspb.BinaryReader(bytes);
8015
+ var msg = new proto.gateway.web.v1.ResolveUserDetailsResponse;
8016
+ return proto.gateway.web.v1.ResolveUserDetailsResponse.deserializeBinaryFromReader(msg, reader);
8017
+ };
8018
+
8019
+
8020
+ /**
8021
+ * Deserializes binary data (in protobuf wire format) from the
8022
+ * given reader into the given message object.
8023
+ * @param {!proto.gateway.web.v1.ResolveUserDetailsResponse} msg The message object to deserialize into.
8024
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8025
+ * @return {!proto.gateway.web.v1.ResolveUserDetailsResponse}
8026
+ */
8027
+ proto.gateway.web.v1.ResolveUserDetailsResponse.deserializeBinaryFromReader = function(msg, reader) {
8028
+ while (reader.nextField()) {
8029
+ if (reader.isEndGroup()) {
8030
+ break;
8031
+ }
8032
+ var field = reader.getFieldNumber();
8033
+ switch (field) {
8034
+ case 1:
8035
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
8036
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
8037
+ msg.setStatus(value);
8038
+ break;
8039
+ case 2:
8040
+ var value = new proto.gateway.web.v1.UserDetails;
8041
+ reader.readMessage(value,proto.gateway.web.v1.UserDetails.deserializeBinaryFromReader);
8042
+ msg.setUser(value);
8043
+ break;
8044
+ default:
8045
+ reader.skipField();
8046
+ break;
8047
+ }
8048
+ }
8049
+ return msg;
8050
+ };
8051
+
8052
+
8053
+ /**
8054
+ * Serializes the message to binary data (in protobuf wire format).
8055
+ * @return {!Uint8Array}
8056
+ */
8057
+ proto.gateway.web.v1.ResolveUserDetailsResponse.prototype.serializeBinary = function() {
8058
+ var writer = new jspb.BinaryWriter();
8059
+ proto.gateway.web.v1.ResolveUserDetailsResponse.serializeBinaryToWriter(this, writer);
8060
+ return writer.getResultBuffer();
8061
+ };
8062
+
8063
+
8064
+ /**
8065
+ * Serializes the given message to binary data (in protobuf wire
8066
+ * format), writing to the given BinaryWriter.
8067
+ * @param {!proto.gateway.web.v1.ResolveUserDetailsResponse} message
8068
+ * @param {!jspb.BinaryWriter} writer
8069
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8070
+ */
8071
+ proto.gateway.web.v1.ResolveUserDetailsResponse.serializeBinaryToWriter = function(message, writer) {
8072
+ var f = undefined;
8073
+ f = message.getStatus();
8074
+ if (f != null) {
8075
+ writer.writeMessage(
8076
+ 1,
8077
+ f,
8078
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
8079
+ );
8080
+ }
8081
+ f = message.getUser();
8082
+ if (f != null) {
8083
+ writer.writeMessage(
8084
+ 2,
8085
+ f,
8086
+ proto.gateway.web.v1.UserDetails.serializeBinaryToWriter
8087
+ );
8088
+ }
8089
+ };
8090
+
8091
+
8092
+ /**
8093
+ * optional gateway.common.v1.ResponseStatus status = 1;
8094
+ * @return {?proto.gateway.common.v1.ResponseStatus}
8095
+ */
8096
+ proto.gateway.web.v1.ResolveUserDetailsResponse.prototype.getStatus = function() {
8097
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
8098
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
8099
+ };
8100
+
8101
+
8102
+ /**
8103
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
8104
+ * @return {!proto.gateway.web.v1.ResolveUserDetailsResponse} returns this
8105
+ */
8106
+ proto.gateway.web.v1.ResolveUserDetailsResponse.prototype.setStatus = function(value) {
8107
+ return jspb.Message.setWrapperField(this, 1, value);
8108
+ };
8109
+
8110
+
8111
+ /**
8112
+ * Clears the message field making it undefined.
8113
+ * @return {!proto.gateway.web.v1.ResolveUserDetailsResponse} returns this
8114
+ */
8115
+ proto.gateway.web.v1.ResolveUserDetailsResponse.prototype.clearStatus = function() {
8116
+ return this.setStatus(undefined);
8117
+ };
8118
+
8119
+
8120
+ /**
8121
+ * Returns whether this field is set.
8122
+ * @return {boolean}
8123
+ */
8124
+ proto.gateway.web.v1.ResolveUserDetailsResponse.prototype.hasStatus = function() {
8125
+ return jspb.Message.getField(this, 1) != null;
8126
+ };
8127
+
8128
+
8129
+ /**
8130
+ * optional UserDetails user = 2;
8131
+ * @return {?proto.gateway.web.v1.UserDetails}
8132
+ */
8133
+ proto.gateway.web.v1.ResolveUserDetailsResponse.prototype.getUser = function() {
8134
+ return /** @type{?proto.gateway.web.v1.UserDetails} */ (
8135
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.UserDetails, 2));
8136
+ };
8137
+
8138
+
8139
+ /**
8140
+ * @param {?proto.gateway.web.v1.UserDetails|undefined} value
8141
+ * @return {!proto.gateway.web.v1.ResolveUserDetailsResponse} returns this
8142
+ */
8143
+ proto.gateway.web.v1.ResolveUserDetailsResponse.prototype.setUser = function(value) {
8144
+ return jspb.Message.setWrapperField(this, 2, value);
8145
+ };
8146
+
8147
+
8148
+ /**
8149
+ * Clears the message field making it undefined.
8150
+ * @return {!proto.gateway.web.v1.ResolveUserDetailsResponse} returns this
8151
+ */
8152
+ proto.gateway.web.v1.ResolveUserDetailsResponse.prototype.clearUser = function() {
8153
+ return this.setUser(undefined);
8154
+ };
8155
+
8156
+
8157
+ /**
8158
+ * Returns whether this field is set.
8159
+ * @return {boolean}
8160
+ */
8161
+ proto.gateway.web.v1.ResolveUserDetailsResponse.prototype.hasUser = function() {
8162
+ return jspb.Message.getField(this, 2) != null;
8163
+ };
8164
+
8165
+
8166
+
8167
+
8168
+
8169
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8170
+ /**
8171
+ * Creates an object representation of this proto.
8172
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8173
+ * Optional fields that are not set will be set to undefined.
8174
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8175
+ * For the list of reserved names please see:
8176
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8177
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8178
+ * JSPB instance for transitional soy proto support:
8179
+ * http://goto/soy-param-migration
8180
+ * @return {!Object}
8181
+ */
8182
+ proto.gateway.web.v1.UserDetails.prototype.toObject = function(opt_includeInstance) {
8183
+ return proto.gateway.web.v1.UserDetails.toObject(opt_includeInstance, this);
8184
+ };
8185
+
8186
+
8187
+ /**
8188
+ * Static version of the {@see toObject} method.
8189
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8190
+ * the JSPB instance for transitional soy proto support:
8191
+ * http://goto/soy-param-migration
8192
+ * @param {!proto.gateway.web.v1.UserDetails} msg The msg instance to transform.
8193
+ * @return {!Object}
8194
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8195
+ */
8196
+ proto.gateway.web.v1.UserDetails.toObject = function(includeInstance, msg) {
8197
+ var f, obj = {
8198
+ userId: jspb.Message.getFieldWithDefault(msg, 1, ""),
8199
+ email: jspb.Message.getFieldWithDefault(msg, 2, ""),
8200
+ name: jspb.Message.getFieldWithDefault(msg, 3, "")
8201
+ };
8202
+
8203
+ if (includeInstance) {
8204
+ obj.$jspbMessageInstance = msg;
8205
+ }
8206
+ return obj;
8207
+ };
8208
+ }
8209
+
8210
+
8211
+ /**
8212
+ * Deserializes binary data (in protobuf wire format).
8213
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
8214
+ * @return {!proto.gateway.web.v1.UserDetails}
8215
+ */
8216
+ proto.gateway.web.v1.UserDetails.deserializeBinary = function(bytes) {
8217
+ var reader = new jspb.BinaryReader(bytes);
8218
+ var msg = new proto.gateway.web.v1.UserDetails;
8219
+ return proto.gateway.web.v1.UserDetails.deserializeBinaryFromReader(msg, reader);
8220
+ };
8221
+
8222
+
8223
+ /**
8224
+ * Deserializes binary data (in protobuf wire format) from the
8225
+ * given reader into the given message object.
8226
+ * @param {!proto.gateway.web.v1.UserDetails} msg The message object to deserialize into.
8227
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8228
+ * @return {!proto.gateway.web.v1.UserDetails}
8229
+ */
8230
+ proto.gateway.web.v1.UserDetails.deserializeBinaryFromReader = function(msg, reader) {
8231
+ while (reader.nextField()) {
8232
+ if (reader.isEndGroup()) {
8233
+ break;
8234
+ }
8235
+ var field = reader.getFieldNumber();
8236
+ switch (field) {
8237
+ case 1:
8238
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
8239
+ msg.setUserId(value);
8240
+ break;
8241
+ case 2:
8242
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
8243
+ msg.setEmail(value);
8244
+ break;
8245
+ case 3:
8246
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
8247
+ msg.setName(value);
8248
+ break;
8249
+ default:
8250
+ reader.skipField();
8251
+ break;
8252
+ }
8253
+ }
8254
+ return msg;
8255
+ };
8256
+
8257
+
8258
+ /**
8259
+ * Serializes the message to binary data (in protobuf wire format).
8260
+ * @return {!Uint8Array}
8261
+ */
8262
+ proto.gateway.web.v1.UserDetails.prototype.serializeBinary = function() {
8263
+ var writer = new jspb.BinaryWriter();
8264
+ proto.gateway.web.v1.UserDetails.serializeBinaryToWriter(this, writer);
8265
+ return writer.getResultBuffer();
8266
+ };
8267
+
8268
+
8269
+ /**
8270
+ * Serializes the given message to binary data (in protobuf wire
8271
+ * format), writing to the given BinaryWriter.
8272
+ * @param {!proto.gateway.web.v1.UserDetails} message
8273
+ * @param {!jspb.BinaryWriter} writer
8274
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8275
+ */
8276
+ proto.gateway.web.v1.UserDetails.serializeBinaryToWriter = function(message, writer) {
8277
+ var f = undefined;
8278
+ f = message.getUserId();
8279
+ if (f.length > 0) {
8280
+ writer.writeString(
8281
+ 1,
8282
+ f
8283
+ );
8284
+ }
8285
+ f = message.getEmail();
8286
+ if (f.length > 0) {
8287
+ writer.writeString(
8288
+ 2,
8289
+ f
8290
+ );
8291
+ }
8292
+ f = message.getName();
8293
+ if (f.length > 0) {
8294
+ writer.writeString(
8295
+ 3,
8296
+ f
8297
+ );
8298
+ }
8299
+ };
8300
+
8301
+
8302
+ /**
8303
+ * optional string user_id = 1;
8304
+ * @return {string}
8305
+ */
8306
+ proto.gateway.web.v1.UserDetails.prototype.getUserId = function() {
8307
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8308
+ };
8309
+
8310
+
8311
+ /**
8312
+ * @param {string} value
8313
+ * @return {!proto.gateway.web.v1.UserDetails} returns this
8314
+ */
8315
+ proto.gateway.web.v1.UserDetails.prototype.setUserId = function(value) {
8316
+ return jspb.Message.setProto3StringField(this, 1, value);
8317
+ };
8318
+
8319
+
8320
+ /**
8321
+ * optional string email = 2;
8322
+ * @return {string}
8323
+ */
8324
+ proto.gateway.web.v1.UserDetails.prototype.getEmail = function() {
8325
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
8326
+ };
8327
+
8328
+
8329
+ /**
8330
+ * @param {string} value
8331
+ * @return {!proto.gateway.web.v1.UserDetails} returns this
8332
+ */
8333
+ proto.gateway.web.v1.UserDetails.prototype.setEmail = function(value) {
8334
+ return jspb.Message.setProto3StringField(this, 2, value);
8335
+ };
8336
+
8337
+
8338
+ /**
8339
+ * optional string name = 3;
8340
+ * @return {string}
8341
+ */
8342
+ proto.gateway.web.v1.UserDetails.prototype.getName = function() {
8343
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
8344
+ };
8345
+
8346
+
8347
+ /**
8348
+ * @param {string} value
8349
+ * @return {!proto.gateway.web.v1.UserDetails} returns this
8350
+ */
8351
+ proto.gateway.web.v1.UserDetails.prototype.setName = function(value) {
8352
+ return jspb.Message.setProto3StringField(this, 3, value);
8353
+ };
8354
+
8355
+
5491
8356
  goog.object.extend(exports, proto.gateway.web.v1);