@google-apps/chat 0.12.0 → 0.14.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 (35) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +4 -2
  3. package/build/protos/google/apps/card/v1/card.proto +1 -1
  4. package/build/protos/google/chat/v1/action_status.proto +1 -1
  5. package/build/protos/google/chat/v1/annotation.proto +1 -1
  6. package/build/protos/google/chat/v1/attachment.proto +1 -1
  7. package/build/protos/google/chat/v1/chat_service.proto +34 -2
  8. package/build/protos/google/chat/v1/contextual_addon.proto +1 -1
  9. package/build/protos/google/chat/v1/deletion_metadata.proto +5 -1
  10. package/build/protos/google/chat/v1/event_payload.proto +1 -1
  11. package/build/protos/google/chat/v1/group.proto +1 -1
  12. package/build/protos/google/chat/v1/history_state.proto +1 -1
  13. package/build/protos/google/chat/v1/matched_url.proto +1 -1
  14. package/build/protos/google/chat/v1/membership.proto +1 -1
  15. package/build/protos/google/chat/v1/message.proto +1 -1
  16. package/build/protos/google/chat/v1/reaction.proto +1 -1
  17. package/build/protos/google/chat/v1/slash_command.proto +2 -2
  18. package/build/protos/google/chat/v1/space.proto +1 -1
  19. package/build/protos/google/chat/v1/space_event.proto +1 -1
  20. package/build/protos/google/chat/v1/space_notification_setting.proto +122 -0
  21. package/build/protos/google/chat/v1/space_read_state.proto +1 -1
  22. package/build/protos/google/chat/v1/space_setup.proto +1 -1
  23. package/build/protos/google/chat/v1/thread_read_state.proto +1 -1
  24. package/build/protos/google/chat/v1/user.proto +1 -1
  25. package/build/protos/google/chat/v1/widgets.proto +1 -1
  26. package/build/protos/protos.d.ts +378 -1
  27. package/build/protos/protos.js +890 -0
  28. package/build/protos/protos.json +131 -5
  29. package/build/src/v1/chat_service_client.d.ts +102 -7
  30. package/build/src/v1/chat_service_client.js +565 -117
  31. package/build/src/v1/chat_service_client.js.map +1 -1
  32. package/build/src/v1/chat_service_client_config.json +10 -0
  33. package/build/src/v1/chat_service_proto_list.json +25 -0
  34. package/build/src/v1/gapic_metadata.json +357 -0
  35. package/package.json +16 -16
@@ -33387,6 +33387,72 @@
33387
33387
  * @variation 2
33388
33388
  */
33389
33389
 
33390
+ /**
33391
+ * Callback as used by {@link google.chat.v1.ChatService|getSpaceNotificationSetting}.
33392
+ * @memberof google.chat.v1.ChatService
33393
+ * @typedef GetSpaceNotificationSettingCallback
33394
+ * @type {function}
33395
+ * @param {Error|null} error Error, if any
33396
+ * @param {google.chat.v1.SpaceNotificationSetting} [response] SpaceNotificationSetting
33397
+ */
33398
+
33399
+ /**
33400
+ * Calls GetSpaceNotificationSetting.
33401
+ * @function getSpaceNotificationSetting
33402
+ * @memberof google.chat.v1.ChatService
33403
+ * @instance
33404
+ * @param {google.chat.v1.IGetSpaceNotificationSettingRequest} request GetSpaceNotificationSettingRequest message or plain object
33405
+ * @param {google.chat.v1.ChatService.GetSpaceNotificationSettingCallback} callback Node-style callback called with the error, if any, and SpaceNotificationSetting
33406
+ * @returns {undefined}
33407
+ * @variation 1
33408
+ */
33409
+ Object.defineProperty(ChatService.prototype.getSpaceNotificationSetting = function getSpaceNotificationSetting(request, callback) {
33410
+ return this.rpcCall(getSpaceNotificationSetting, $root.google.chat.v1.GetSpaceNotificationSettingRequest, $root.google.chat.v1.SpaceNotificationSetting, request, callback);
33411
+ }, "name", { value: "GetSpaceNotificationSetting" });
33412
+
33413
+ /**
33414
+ * Calls GetSpaceNotificationSetting.
33415
+ * @function getSpaceNotificationSetting
33416
+ * @memberof google.chat.v1.ChatService
33417
+ * @instance
33418
+ * @param {google.chat.v1.IGetSpaceNotificationSettingRequest} request GetSpaceNotificationSettingRequest message or plain object
33419
+ * @returns {Promise<google.chat.v1.SpaceNotificationSetting>} Promise
33420
+ * @variation 2
33421
+ */
33422
+
33423
+ /**
33424
+ * Callback as used by {@link google.chat.v1.ChatService|updateSpaceNotificationSetting}.
33425
+ * @memberof google.chat.v1.ChatService
33426
+ * @typedef UpdateSpaceNotificationSettingCallback
33427
+ * @type {function}
33428
+ * @param {Error|null} error Error, if any
33429
+ * @param {google.chat.v1.SpaceNotificationSetting} [response] SpaceNotificationSetting
33430
+ */
33431
+
33432
+ /**
33433
+ * Calls UpdateSpaceNotificationSetting.
33434
+ * @function updateSpaceNotificationSetting
33435
+ * @memberof google.chat.v1.ChatService
33436
+ * @instance
33437
+ * @param {google.chat.v1.IUpdateSpaceNotificationSettingRequest} request UpdateSpaceNotificationSettingRequest message or plain object
33438
+ * @param {google.chat.v1.ChatService.UpdateSpaceNotificationSettingCallback} callback Node-style callback called with the error, if any, and SpaceNotificationSetting
33439
+ * @returns {undefined}
33440
+ * @variation 1
33441
+ */
33442
+ Object.defineProperty(ChatService.prototype.updateSpaceNotificationSetting = function updateSpaceNotificationSetting(request, callback) {
33443
+ return this.rpcCall(updateSpaceNotificationSetting, $root.google.chat.v1.UpdateSpaceNotificationSettingRequest, $root.google.chat.v1.SpaceNotificationSetting, request, callback);
33444
+ }, "name", { value: "UpdateSpaceNotificationSetting" });
33445
+
33446
+ /**
33447
+ * Calls UpdateSpaceNotificationSetting.
33448
+ * @function updateSpaceNotificationSetting
33449
+ * @memberof google.chat.v1.ChatService
33450
+ * @instance
33451
+ * @param {google.chat.v1.IUpdateSpaceNotificationSettingRequest} request UpdateSpaceNotificationSettingRequest message or plain object
33452
+ * @returns {Promise<google.chat.v1.SpaceNotificationSetting>} Promise
33453
+ * @variation 2
33454
+ */
33455
+
33390
33456
  return ChatService;
33391
33457
  })();
33392
33458
 
@@ -45433,6 +45499,7 @@
45433
45499
  case 4:
45434
45500
  case 5:
45435
45501
  case 6:
45502
+ case 7:
45436
45503
  break;
45437
45504
  }
45438
45505
  return null;
@@ -45485,6 +45552,10 @@
45485
45552
  case 6:
45486
45553
  message.deletionType = 6;
45487
45554
  break;
45555
+ case "SPACE_MEMBER":
45556
+ case 7:
45557
+ message.deletionType = 7;
45558
+ break;
45488
45559
  }
45489
45560
  return message;
45490
45561
  };
@@ -45546,6 +45617,7 @@
45546
45617
  * @property {number} APP_MESSAGE_EXPIRY=4 APP_MESSAGE_EXPIRY value
45547
45618
  * @property {number} CREATOR_VIA_APP=5 CREATOR_VIA_APP value
45548
45619
  * @property {number} SPACE_OWNER_VIA_APP=6 SPACE_OWNER_VIA_APP value
45620
+ * @property {number} SPACE_MEMBER=7 SPACE_MEMBER value
45549
45621
  */
45550
45622
  DeletionMetadata.DeletionType = (function() {
45551
45623
  var valuesById = {}, values = Object.create(valuesById);
@@ -45556,6 +45628,7 @@
45556
45628
  values[valuesById[4] = "APP_MESSAGE_EXPIRY"] = 4;
45557
45629
  values[valuesById[5] = "CREATOR_VIA_APP"] = 5;
45558
45630
  values[valuesById[6] = "SPACE_OWNER_VIA_APP"] = 6;
45631
+ values[valuesById[7] = "SPACE_MEMBER"] = 7;
45559
45632
  return values;
45560
45633
  })();
45561
45634
 
@@ -56517,6 +56590,823 @@
56517
56590
  return ReactionBatchDeletedEventData;
56518
56591
  })();
56519
56592
 
56593
+ v1.SpaceNotificationSetting = (function() {
56594
+
56595
+ /**
56596
+ * Properties of a SpaceNotificationSetting.
56597
+ * @memberof google.chat.v1
56598
+ * @interface ISpaceNotificationSetting
56599
+ * @property {string|null} [name] SpaceNotificationSetting name
56600
+ * @property {google.chat.v1.SpaceNotificationSetting.NotificationSetting|null} [notificationSetting] SpaceNotificationSetting notificationSetting
56601
+ * @property {google.chat.v1.SpaceNotificationSetting.MuteSetting|null} [muteSetting] SpaceNotificationSetting muteSetting
56602
+ */
56603
+
56604
+ /**
56605
+ * Constructs a new SpaceNotificationSetting.
56606
+ * @memberof google.chat.v1
56607
+ * @classdesc Represents a SpaceNotificationSetting.
56608
+ * @implements ISpaceNotificationSetting
56609
+ * @constructor
56610
+ * @param {google.chat.v1.ISpaceNotificationSetting=} [properties] Properties to set
56611
+ */
56612
+ function SpaceNotificationSetting(properties) {
56613
+ if (properties)
56614
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
56615
+ if (properties[keys[i]] != null)
56616
+ this[keys[i]] = properties[keys[i]];
56617
+ }
56618
+
56619
+ /**
56620
+ * SpaceNotificationSetting name.
56621
+ * @member {string} name
56622
+ * @memberof google.chat.v1.SpaceNotificationSetting
56623
+ * @instance
56624
+ */
56625
+ SpaceNotificationSetting.prototype.name = "";
56626
+
56627
+ /**
56628
+ * SpaceNotificationSetting notificationSetting.
56629
+ * @member {google.chat.v1.SpaceNotificationSetting.NotificationSetting|null|undefined} notificationSetting
56630
+ * @memberof google.chat.v1.SpaceNotificationSetting
56631
+ * @instance
56632
+ */
56633
+ SpaceNotificationSetting.prototype.notificationSetting = null;
56634
+
56635
+ /**
56636
+ * SpaceNotificationSetting muteSetting.
56637
+ * @member {google.chat.v1.SpaceNotificationSetting.MuteSetting|null|undefined} muteSetting
56638
+ * @memberof google.chat.v1.SpaceNotificationSetting
56639
+ * @instance
56640
+ */
56641
+ SpaceNotificationSetting.prototype.muteSetting = null;
56642
+
56643
+ // OneOf field names bound to virtual getters and setters
56644
+ var $oneOfFields;
56645
+
56646
+ /**
56647
+ * SpaceNotificationSetting _notificationSetting.
56648
+ * @member {"notificationSetting"|undefined} _notificationSetting
56649
+ * @memberof google.chat.v1.SpaceNotificationSetting
56650
+ * @instance
56651
+ */
56652
+ Object.defineProperty(SpaceNotificationSetting.prototype, "_notificationSetting", {
56653
+ get: $util.oneOfGetter($oneOfFields = ["notificationSetting"]),
56654
+ set: $util.oneOfSetter($oneOfFields)
56655
+ });
56656
+
56657
+ /**
56658
+ * SpaceNotificationSetting _muteSetting.
56659
+ * @member {"muteSetting"|undefined} _muteSetting
56660
+ * @memberof google.chat.v1.SpaceNotificationSetting
56661
+ * @instance
56662
+ */
56663
+ Object.defineProperty(SpaceNotificationSetting.prototype, "_muteSetting", {
56664
+ get: $util.oneOfGetter($oneOfFields = ["muteSetting"]),
56665
+ set: $util.oneOfSetter($oneOfFields)
56666
+ });
56667
+
56668
+ /**
56669
+ * Creates a new SpaceNotificationSetting instance using the specified properties.
56670
+ * @function create
56671
+ * @memberof google.chat.v1.SpaceNotificationSetting
56672
+ * @static
56673
+ * @param {google.chat.v1.ISpaceNotificationSetting=} [properties] Properties to set
56674
+ * @returns {google.chat.v1.SpaceNotificationSetting} SpaceNotificationSetting instance
56675
+ */
56676
+ SpaceNotificationSetting.create = function create(properties) {
56677
+ return new SpaceNotificationSetting(properties);
56678
+ };
56679
+
56680
+ /**
56681
+ * Encodes the specified SpaceNotificationSetting message. Does not implicitly {@link google.chat.v1.SpaceNotificationSetting.verify|verify} messages.
56682
+ * @function encode
56683
+ * @memberof google.chat.v1.SpaceNotificationSetting
56684
+ * @static
56685
+ * @param {google.chat.v1.ISpaceNotificationSetting} message SpaceNotificationSetting message or plain object to encode
56686
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56687
+ * @returns {$protobuf.Writer} Writer
56688
+ */
56689
+ SpaceNotificationSetting.encode = function encode(message, writer) {
56690
+ if (!writer)
56691
+ writer = $Writer.create();
56692
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
56693
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
56694
+ if (message.notificationSetting != null && Object.hasOwnProperty.call(message, "notificationSetting"))
56695
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.notificationSetting);
56696
+ if (message.muteSetting != null && Object.hasOwnProperty.call(message, "muteSetting"))
56697
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.muteSetting);
56698
+ return writer;
56699
+ };
56700
+
56701
+ /**
56702
+ * Encodes the specified SpaceNotificationSetting message, length delimited. Does not implicitly {@link google.chat.v1.SpaceNotificationSetting.verify|verify} messages.
56703
+ * @function encodeDelimited
56704
+ * @memberof google.chat.v1.SpaceNotificationSetting
56705
+ * @static
56706
+ * @param {google.chat.v1.ISpaceNotificationSetting} message SpaceNotificationSetting message or plain object to encode
56707
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56708
+ * @returns {$protobuf.Writer} Writer
56709
+ */
56710
+ SpaceNotificationSetting.encodeDelimited = function encodeDelimited(message, writer) {
56711
+ return this.encode(message, writer).ldelim();
56712
+ };
56713
+
56714
+ /**
56715
+ * Decodes a SpaceNotificationSetting message from the specified reader or buffer.
56716
+ * @function decode
56717
+ * @memberof google.chat.v1.SpaceNotificationSetting
56718
+ * @static
56719
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56720
+ * @param {number} [length] Message length if known beforehand
56721
+ * @returns {google.chat.v1.SpaceNotificationSetting} SpaceNotificationSetting
56722
+ * @throws {Error} If the payload is not a reader or valid buffer
56723
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56724
+ */
56725
+ SpaceNotificationSetting.decode = function decode(reader, length) {
56726
+ if (!(reader instanceof $Reader))
56727
+ reader = $Reader.create(reader);
56728
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.SpaceNotificationSetting();
56729
+ while (reader.pos < end) {
56730
+ var tag = reader.uint32();
56731
+ switch (tag >>> 3) {
56732
+ case 1: {
56733
+ message.name = reader.string();
56734
+ break;
56735
+ }
56736
+ case 2: {
56737
+ message.notificationSetting = reader.int32();
56738
+ break;
56739
+ }
56740
+ case 3: {
56741
+ message.muteSetting = reader.int32();
56742
+ break;
56743
+ }
56744
+ default:
56745
+ reader.skipType(tag & 7);
56746
+ break;
56747
+ }
56748
+ }
56749
+ return message;
56750
+ };
56751
+
56752
+ /**
56753
+ * Decodes a SpaceNotificationSetting message from the specified reader or buffer, length delimited.
56754
+ * @function decodeDelimited
56755
+ * @memberof google.chat.v1.SpaceNotificationSetting
56756
+ * @static
56757
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56758
+ * @returns {google.chat.v1.SpaceNotificationSetting} SpaceNotificationSetting
56759
+ * @throws {Error} If the payload is not a reader or valid buffer
56760
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56761
+ */
56762
+ SpaceNotificationSetting.decodeDelimited = function decodeDelimited(reader) {
56763
+ if (!(reader instanceof $Reader))
56764
+ reader = new $Reader(reader);
56765
+ return this.decode(reader, reader.uint32());
56766
+ };
56767
+
56768
+ /**
56769
+ * Verifies a SpaceNotificationSetting message.
56770
+ * @function verify
56771
+ * @memberof google.chat.v1.SpaceNotificationSetting
56772
+ * @static
56773
+ * @param {Object.<string,*>} message Plain object to verify
56774
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
56775
+ */
56776
+ SpaceNotificationSetting.verify = function verify(message) {
56777
+ if (typeof message !== "object" || message === null)
56778
+ return "object expected";
56779
+ var properties = {};
56780
+ if (message.name != null && message.hasOwnProperty("name"))
56781
+ if (!$util.isString(message.name))
56782
+ return "name: string expected";
56783
+ if (message.notificationSetting != null && message.hasOwnProperty("notificationSetting")) {
56784
+ properties._notificationSetting = 1;
56785
+ switch (message.notificationSetting) {
56786
+ default:
56787
+ return "notificationSetting: enum value expected";
56788
+ case 0:
56789
+ case 1:
56790
+ case 2:
56791
+ case 3:
56792
+ case 4:
56793
+ break;
56794
+ }
56795
+ }
56796
+ if (message.muteSetting != null && message.hasOwnProperty("muteSetting")) {
56797
+ properties._muteSetting = 1;
56798
+ switch (message.muteSetting) {
56799
+ default:
56800
+ return "muteSetting: enum value expected";
56801
+ case 0:
56802
+ case 1:
56803
+ case 2:
56804
+ break;
56805
+ }
56806
+ }
56807
+ return null;
56808
+ };
56809
+
56810
+ /**
56811
+ * Creates a SpaceNotificationSetting message from a plain object. Also converts values to their respective internal types.
56812
+ * @function fromObject
56813
+ * @memberof google.chat.v1.SpaceNotificationSetting
56814
+ * @static
56815
+ * @param {Object.<string,*>} object Plain object
56816
+ * @returns {google.chat.v1.SpaceNotificationSetting} SpaceNotificationSetting
56817
+ */
56818
+ SpaceNotificationSetting.fromObject = function fromObject(object) {
56819
+ if (object instanceof $root.google.chat.v1.SpaceNotificationSetting)
56820
+ return object;
56821
+ var message = new $root.google.chat.v1.SpaceNotificationSetting();
56822
+ if (object.name != null)
56823
+ message.name = String(object.name);
56824
+ switch (object.notificationSetting) {
56825
+ default:
56826
+ if (typeof object.notificationSetting === "number") {
56827
+ message.notificationSetting = object.notificationSetting;
56828
+ break;
56829
+ }
56830
+ break;
56831
+ case "NOTIFICATION_SETTING_UNSPECIFIED":
56832
+ case 0:
56833
+ message.notificationSetting = 0;
56834
+ break;
56835
+ case "ALL":
56836
+ case 1:
56837
+ message.notificationSetting = 1;
56838
+ break;
56839
+ case "MAIN_CONVERSATIONS":
56840
+ case 2:
56841
+ message.notificationSetting = 2;
56842
+ break;
56843
+ case "FOR_YOU":
56844
+ case 3:
56845
+ message.notificationSetting = 3;
56846
+ break;
56847
+ case "OFF":
56848
+ case 4:
56849
+ message.notificationSetting = 4;
56850
+ break;
56851
+ }
56852
+ switch (object.muteSetting) {
56853
+ default:
56854
+ if (typeof object.muteSetting === "number") {
56855
+ message.muteSetting = object.muteSetting;
56856
+ break;
56857
+ }
56858
+ break;
56859
+ case "MUTE_SETTING_UNSPECIFIED":
56860
+ case 0:
56861
+ message.muteSetting = 0;
56862
+ break;
56863
+ case "UNMUTED":
56864
+ case 1:
56865
+ message.muteSetting = 1;
56866
+ break;
56867
+ case "MUTED":
56868
+ case 2:
56869
+ message.muteSetting = 2;
56870
+ break;
56871
+ }
56872
+ return message;
56873
+ };
56874
+
56875
+ /**
56876
+ * Creates a plain object from a SpaceNotificationSetting message. Also converts values to other types if specified.
56877
+ * @function toObject
56878
+ * @memberof google.chat.v1.SpaceNotificationSetting
56879
+ * @static
56880
+ * @param {google.chat.v1.SpaceNotificationSetting} message SpaceNotificationSetting
56881
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
56882
+ * @returns {Object.<string,*>} Plain object
56883
+ */
56884
+ SpaceNotificationSetting.toObject = function toObject(message, options) {
56885
+ if (!options)
56886
+ options = {};
56887
+ var object = {};
56888
+ if (options.defaults)
56889
+ object.name = "";
56890
+ if (message.name != null && message.hasOwnProperty("name"))
56891
+ object.name = message.name;
56892
+ if (message.notificationSetting != null && message.hasOwnProperty("notificationSetting")) {
56893
+ object.notificationSetting = options.enums === String ? $root.google.chat.v1.SpaceNotificationSetting.NotificationSetting[message.notificationSetting] === undefined ? message.notificationSetting : $root.google.chat.v1.SpaceNotificationSetting.NotificationSetting[message.notificationSetting] : message.notificationSetting;
56894
+ if (options.oneofs)
56895
+ object._notificationSetting = "notificationSetting";
56896
+ }
56897
+ if (message.muteSetting != null && message.hasOwnProperty("muteSetting")) {
56898
+ object.muteSetting = options.enums === String ? $root.google.chat.v1.SpaceNotificationSetting.MuteSetting[message.muteSetting] === undefined ? message.muteSetting : $root.google.chat.v1.SpaceNotificationSetting.MuteSetting[message.muteSetting] : message.muteSetting;
56899
+ if (options.oneofs)
56900
+ object._muteSetting = "muteSetting";
56901
+ }
56902
+ return object;
56903
+ };
56904
+
56905
+ /**
56906
+ * Converts this SpaceNotificationSetting to JSON.
56907
+ * @function toJSON
56908
+ * @memberof google.chat.v1.SpaceNotificationSetting
56909
+ * @instance
56910
+ * @returns {Object.<string,*>} JSON object
56911
+ */
56912
+ SpaceNotificationSetting.prototype.toJSON = function toJSON() {
56913
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
56914
+ };
56915
+
56916
+ /**
56917
+ * Gets the default type url for SpaceNotificationSetting
56918
+ * @function getTypeUrl
56919
+ * @memberof google.chat.v1.SpaceNotificationSetting
56920
+ * @static
56921
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
56922
+ * @returns {string} The default type url
56923
+ */
56924
+ SpaceNotificationSetting.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
56925
+ if (typeUrlPrefix === undefined) {
56926
+ typeUrlPrefix = "type.googleapis.com";
56927
+ }
56928
+ return typeUrlPrefix + "/google.chat.v1.SpaceNotificationSetting";
56929
+ };
56930
+
56931
+ /**
56932
+ * NotificationSetting enum.
56933
+ * @name google.chat.v1.SpaceNotificationSetting.NotificationSetting
56934
+ * @enum {number}
56935
+ * @property {number} NOTIFICATION_SETTING_UNSPECIFIED=0 NOTIFICATION_SETTING_UNSPECIFIED value
56936
+ * @property {number} ALL=1 ALL value
56937
+ * @property {number} MAIN_CONVERSATIONS=2 MAIN_CONVERSATIONS value
56938
+ * @property {number} FOR_YOU=3 FOR_YOU value
56939
+ * @property {number} OFF=4 OFF value
56940
+ */
56941
+ SpaceNotificationSetting.NotificationSetting = (function() {
56942
+ var valuesById = {}, values = Object.create(valuesById);
56943
+ values[valuesById[0] = "NOTIFICATION_SETTING_UNSPECIFIED"] = 0;
56944
+ values[valuesById[1] = "ALL"] = 1;
56945
+ values[valuesById[2] = "MAIN_CONVERSATIONS"] = 2;
56946
+ values[valuesById[3] = "FOR_YOU"] = 3;
56947
+ values[valuesById[4] = "OFF"] = 4;
56948
+ return values;
56949
+ })();
56950
+
56951
+ /**
56952
+ * MuteSetting enum.
56953
+ * @name google.chat.v1.SpaceNotificationSetting.MuteSetting
56954
+ * @enum {number}
56955
+ * @property {number} MUTE_SETTING_UNSPECIFIED=0 MUTE_SETTING_UNSPECIFIED value
56956
+ * @property {number} UNMUTED=1 UNMUTED value
56957
+ * @property {number} MUTED=2 MUTED value
56958
+ */
56959
+ SpaceNotificationSetting.MuteSetting = (function() {
56960
+ var valuesById = {}, values = Object.create(valuesById);
56961
+ values[valuesById[0] = "MUTE_SETTING_UNSPECIFIED"] = 0;
56962
+ values[valuesById[1] = "UNMUTED"] = 1;
56963
+ values[valuesById[2] = "MUTED"] = 2;
56964
+ return values;
56965
+ })();
56966
+
56967
+ return SpaceNotificationSetting;
56968
+ })();
56969
+
56970
+ v1.GetSpaceNotificationSettingRequest = (function() {
56971
+
56972
+ /**
56973
+ * Properties of a GetSpaceNotificationSettingRequest.
56974
+ * @memberof google.chat.v1
56975
+ * @interface IGetSpaceNotificationSettingRequest
56976
+ * @property {string|null} [name] GetSpaceNotificationSettingRequest name
56977
+ */
56978
+
56979
+ /**
56980
+ * Constructs a new GetSpaceNotificationSettingRequest.
56981
+ * @memberof google.chat.v1
56982
+ * @classdesc Represents a GetSpaceNotificationSettingRequest.
56983
+ * @implements IGetSpaceNotificationSettingRequest
56984
+ * @constructor
56985
+ * @param {google.chat.v1.IGetSpaceNotificationSettingRequest=} [properties] Properties to set
56986
+ */
56987
+ function GetSpaceNotificationSettingRequest(properties) {
56988
+ if (properties)
56989
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
56990
+ if (properties[keys[i]] != null)
56991
+ this[keys[i]] = properties[keys[i]];
56992
+ }
56993
+
56994
+ /**
56995
+ * GetSpaceNotificationSettingRequest name.
56996
+ * @member {string} name
56997
+ * @memberof google.chat.v1.GetSpaceNotificationSettingRequest
56998
+ * @instance
56999
+ */
57000
+ GetSpaceNotificationSettingRequest.prototype.name = "";
57001
+
57002
+ /**
57003
+ * Creates a new GetSpaceNotificationSettingRequest instance using the specified properties.
57004
+ * @function create
57005
+ * @memberof google.chat.v1.GetSpaceNotificationSettingRequest
57006
+ * @static
57007
+ * @param {google.chat.v1.IGetSpaceNotificationSettingRequest=} [properties] Properties to set
57008
+ * @returns {google.chat.v1.GetSpaceNotificationSettingRequest} GetSpaceNotificationSettingRequest instance
57009
+ */
57010
+ GetSpaceNotificationSettingRequest.create = function create(properties) {
57011
+ return new GetSpaceNotificationSettingRequest(properties);
57012
+ };
57013
+
57014
+ /**
57015
+ * Encodes the specified GetSpaceNotificationSettingRequest message. Does not implicitly {@link google.chat.v1.GetSpaceNotificationSettingRequest.verify|verify} messages.
57016
+ * @function encode
57017
+ * @memberof google.chat.v1.GetSpaceNotificationSettingRequest
57018
+ * @static
57019
+ * @param {google.chat.v1.IGetSpaceNotificationSettingRequest} message GetSpaceNotificationSettingRequest message or plain object to encode
57020
+ * @param {$protobuf.Writer} [writer] Writer to encode to
57021
+ * @returns {$protobuf.Writer} Writer
57022
+ */
57023
+ GetSpaceNotificationSettingRequest.encode = function encode(message, writer) {
57024
+ if (!writer)
57025
+ writer = $Writer.create();
57026
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
57027
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
57028
+ return writer;
57029
+ };
57030
+
57031
+ /**
57032
+ * Encodes the specified GetSpaceNotificationSettingRequest message, length delimited. Does not implicitly {@link google.chat.v1.GetSpaceNotificationSettingRequest.verify|verify} messages.
57033
+ * @function encodeDelimited
57034
+ * @memberof google.chat.v1.GetSpaceNotificationSettingRequest
57035
+ * @static
57036
+ * @param {google.chat.v1.IGetSpaceNotificationSettingRequest} message GetSpaceNotificationSettingRequest message or plain object to encode
57037
+ * @param {$protobuf.Writer} [writer] Writer to encode to
57038
+ * @returns {$protobuf.Writer} Writer
57039
+ */
57040
+ GetSpaceNotificationSettingRequest.encodeDelimited = function encodeDelimited(message, writer) {
57041
+ return this.encode(message, writer).ldelim();
57042
+ };
57043
+
57044
+ /**
57045
+ * Decodes a GetSpaceNotificationSettingRequest message from the specified reader or buffer.
57046
+ * @function decode
57047
+ * @memberof google.chat.v1.GetSpaceNotificationSettingRequest
57048
+ * @static
57049
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
57050
+ * @param {number} [length] Message length if known beforehand
57051
+ * @returns {google.chat.v1.GetSpaceNotificationSettingRequest} GetSpaceNotificationSettingRequest
57052
+ * @throws {Error} If the payload is not a reader or valid buffer
57053
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57054
+ */
57055
+ GetSpaceNotificationSettingRequest.decode = function decode(reader, length) {
57056
+ if (!(reader instanceof $Reader))
57057
+ reader = $Reader.create(reader);
57058
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.GetSpaceNotificationSettingRequest();
57059
+ while (reader.pos < end) {
57060
+ var tag = reader.uint32();
57061
+ switch (tag >>> 3) {
57062
+ case 1: {
57063
+ message.name = reader.string();
57064
+ break;
57065
+ }
57066
+ default:
57067
+ reader.skipType(tag & 7);
57068
+ break;
57069
+ }
57070
+ }
57071
+ return message;
57072
+ };
57073
+
57074
+ /**
57075
+ * Decodes a GetSpaceNotificationSettingRequest message from the specified reader or buffer, length delimited.
57076
+ * @function decodeDelimited
57077
+ * @memberof google.chat.v1.GetSpaceNotificationSettingRequest
57078
+ * @static
57079
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
57080
+ * @returns {google.chat.v1.GetSpaceNotificationSettingRequest} GetSpaceNotificationSettingRequest
57081
+ * @throws {Error} If the payload is not a reader or valid buffer
57082
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57083
+ */
57084
+ GetSpaceNotificationSettingRequest.decodeDelimited = function decodeDelimited(reader) {
57085
+ if (!(reader instanceof $Reader))
57086
+ reader = new $Reader(reader);
57087
+ return this.decode(reader, reader.uint32());
57088
+ };
57089
+
57090
+ /**
57091
+ * Verifies a GetSpaceNotificationSettingRequest message.
57092
+ * @function verify
57093
+ * @memberof google.chat.v1.GetSpaceNotificationSettingRequest
57094
+ * @static
57095
+ * @param {Object.<string,*>} message Plain object to verify
57096
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
57097
+ */
57098
+ GetSpaceNotificationSettingRequest.verify = function verify(message) {
57099
+ if (typeof message !== "object" || message === null)
57100
+ return "object expected";
57101
+ if (message.name != null && message.hasOwnProperty("name"))
57102
+ if (!$util.isString(message.name))
57103
+ return "name: string expected";
57104
+ return null;
57105
+ };
57106
+
57107
+ /**
57108
+ * Creates a GetSpaceNotificationSettingRequest message from a plain object. Also converts values to their respective internal types.
57109
+ * @function fromObject
57110
+ * @memberof google.chat.v1.GetSpaceNotificationSettingRequest
57111
+ * @static
57112
+ * @param {Object.<string,*>} object Plain object
57113
+ * @returns {google.chat.v1.GetSpaceNotificationSettingRequest} GetSpaceNotificationSettingRequest
57114
+ */
57115
+ GetSpaceNotificationSettingRequest.fromObject = function fromObject(object) {
57116
+ if (object instanceof $root.google.chat.v1.GetSpaceNotificationSettingRequest)
57117
+ return object;
57118
+ var message = new $root.google.chat.v1.GetSpaceNotificationSettingRequest();
57119
+ if (object.name != null)
57120
+ message.name = String(object.name);
57121
+ return message;
57122
+ };
57123
+
57124
+ /**
57125
+ * Creates a plain object from a GetSpaceNotificationSettingRequest message. Also converts values to other types if specified.
57126
+ * @function toObject
57127
+ * @memberof google.chat.v1.GetSpaceNotificationSettingRequest
57128
+ * @static
57129
+ * @param {google.chat.v1.GetSpaceNotificationSettingRequest} message GetSpaceNotificationSettingRequest
57130
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
57131
+ * @returns {Object.<string,*>} Plain object
57132
+ */
57133
+ GetSpaceNotificationSettingRequest.toObject = function toObject(message, options) {
57134
+ if (!options)
57135
+ options = {};
57136
+ var object = {};
57137
+ if (options.defaults)
57138
+ object.name = "";
57139
+ if (message.name != null && message.hasOwnProperty("name"))
57140
+ object.name = message.name;
57141
+ return object;
57142
+ };
57143
+
57144
+ /**
57145
+ * Converts this GetSpaceNotificationSettingRequest to JSON.
57146
+ * @function toJSON
57147
+ * @memberof google.chat.v1.GetSpaceNotificationSettingRequest
57148
+ * @instance
57149
+ * @returns {Object.<string,*>} JSON object
57150
+ */
57151
+ GetSpaceNotificationSettingRequest.prototype.toJSON = function toJSON() {
57152
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
57153
+ };
57154
+
57155
+ /**
57156
+ * Gets the default type url for GetSpaceNotificationSettingRequest
57157
+ * @function getTypeUrl
57158
+ * @memberof google.chat.v1.GetSpaceNotificationSettingRequest
57159
+ * @static
57160
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
57161
+ * @returns {string} The default type url
57162
+ */
57163
+ GetSpaceNotificationSettingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
57164
+ if (typeUrlPrefix === undefined) {
57165
+ typeUrlPrefix = "type.googleapis.com";
57166
+ }
57167
+ return typeUrlPrefix + "/google.chat.v1.GetSpaceNotificationSettingRequest";
57168
+ };
57169
+
57170
+ return GetSpaceNotificationSettingRequest;
57171
+ })();
57172
+
57173
+ v1.UpdateSpaceNotificationSettingRequest = (function() {
57174
+
57175
+ /**
57176
+ * Properties of an UpdateSpaceNotificationSettingRequest.
57177
+ * @memberof google.chat.v1
57178
+ * @interface IUpdateSpaceNotificationSettingRequest
57179
+ * @property {google.chat.v1.ISpaceNotificationSetting|null} [spaceNotificationSetting] UpdateSpaceNotificationSettingRequest spaceNotificationSetting
57180
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSpaceNotificationSettingRequest updateMask
57181
+ */
57182
+
57183
+ /**
57184
+ * Constructs a new UpdateSpaceNotificationSettingRequest.
57185
+ * @memberof google.chat.v1
57186
+ * @classdesc Represents an UpdateSpaceNotificationSettingRequest.
57187
+ * @implements IUpdateSpaceNotificationSettingRequest
57188
+ * @constructor
57189
+ * @param {google.chat.v1.IUpdateSpaceNotificationSettingRequest=} [properties] Properties to set
57190
+ */
57191
+ function UpdateSpaceNotificationSettingRequest(properties) {
57192
+ if (properties)
57193
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
57194
+ if (properties[keys[i]] != null)
57195
+ this[keys[i]] = properties[keys[i]];
57196
+ }
57197
+
57198
+ /**
57199
+ * UpdateSpaceNotificationSettingRequest spaceNotificationSetting.
57200
+ * @member {google.chat.v1.ISpaceNotificationSetting|null|undefined} spaceNotificationSetting
57201
+ * @memberof google.chat.v1.UpdateSpaceNotificationSettingRequest
57202
+ * @instance
57203
+ */
57204
+ UpdateSpaceNotificationSettingRequest.prototype.spaceNotificationSetting = null;
57205
+
57206
+ /**
57207
+ * UpdateSpaceNotificationSettingRequest updateMask.
57208
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
57209
+ * @memberof google.chat.v1.UpdateSpaceNotificationSettingRequest
57210
+ * @instance
57211
+ */
57212
+ UpdateSpaceNotificationSettingRequest.prototype.updateMask = null;
57213
+
57214
+ /**
57215
+ * Creates a new UpdateSpaceNotificationSettingRequest instance using the specified properties.
57216
+ * @function create
57217
+ * @memberof google.chat.v1.UpdateSpaceNotificationSettingRequest
57218
+ * @static
57219
+ * @param {google.chat.v1.IUpdateSpaceNotificationSettingRequest=} [properties] Properties to set
57220
+ * @returns {google.chat.v1.UpdateSpaceNotificationSettingRequest} UpdateSpaceNotificationSettingRequest instance
57221
+ */
57222
+ UpdateSpaceNotificationSettingRequest.create = function create(properties) {
57223
+ return new UpdateSpaceNotificationSettingRequest(properties);
57224
+ };
57225
+
57226
+ /**
57227
+ * Encodes the specified UpdateSpaceNotificationSettingRequest message. Does not implicitly {@link google.chat.v1.UpdateSpaceNotificationSettingRequest.verify|verify} messages.
57228
+ * @function encode
57229
+ * @memberof google.chat.v1.UpdateSpaceNotificationSettingRequest
57230
+ * @static
57231
+ * @param {google.chat.v1.IUpdateSpaceNotificationSettingRequest} message UpdateSpaceNotificationSettingRequest message or plain object to encode
57232
+ * @param {$protobuf.Writer} [writer] Writer to encode to
57233
+ * @returns {$protobuf.Writer} Writer
57234
+ */
57235
+ UpdateSpaceNotificationSettingRequest.encode = function encode(message, writer) {
57236
+ if (!writer)
57237
+ writer = $Writer.create();
57238
+ if (message.spaceNotificationSetting != null && Object.hasOwnProperty.call(message, "spaceNotificationSetting"))
57239
+ $root.google.chat.v1.SpaceNotificationSetting.encode(message.spaceNotificationSetting, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
57240
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
57241
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
57242
+ return writer;
57243
+ };
57244
+
57245
+ /**
57246
+ * Encodes the specified UpdateSpaceNotificationSettingRequest message, length delimited. Does not implicitly {@link google.chat.v1.UpdateSpaceNotificationSettingRequest.verify|verify} messages.
57247
+ * @function encodeDelimited
57248
+ * @memberof google.chat.v1.UpdateSpaceNotificationSettingRequest
57249
+ * @static
57250
+ * @param {google.chat.v1.IUpdateSpaceNotificationSettingRequest} message UpdateSpaceNotificationSettingRequest message or plain object to encode
57251
+ * @param {$protobuf.Writer} [writer] Writer to encode to
57252
+ * @returns {$protobuf.Writer} Writer
57253
+ */
57254
+ UpdateSpaceNotificationSettingRequest.encodeDelimited = function encodeDelimited(message, writer) {
57255
+ return this.encode(message, writer).ldelim();
57256
+ };
57257
+
57258
+ /**
57259
+ * Decodes an UpdateSpaceNotificationSettingRequest message from the specified reader or buffer.
57260
+ * @function decode
57261
+ * @memberof google.chat.v1.UpdateSpaceNotificationSettingRequest
57262
+ * @static
57263
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
57264
+ * @param {number} [length] Message length if known beforehand
57265
+ * @returns {google.chat.v1.UpdateSpaceNotificationSettingRequest} UpdateSpaceNotificationSettingRequest
57266
+ * @throws {Error} If the payload is not a reader or valid buffer
57267
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57268
+ */
57269
+ UpdateSpaceNotificationSettingRequest.decode = function decode(reader, length) {
57270
+ if (!(reader instanceof $Reader))
57271
+ reader = $Reader.create(reader);
57272
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.UpdateSpaceNotificationSettingRequest();
57273
+ while (reader.pos < end) {
57274
+ var tag = reader.uint32();
57275
+ switch (tag >>> 3) {
57276
+ case 1: {
57277
+ message.spaceNotificationSetting = $root.google.chat.v1.SpaceNotificationSetting.decode(reader, reader.uint32());
57278
+ break;
57279
+ }
57280
+ case 2: {
57281
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
57282
+ break;
57283
+ }
57284
+ default:
57285
+ reader.skipType(tag & 7);
57286
+ break;
57287
+ }
57288
+ }
57289
+ return message;
57290
+ };
57291
+
57292
+ /**
57293
+ * Decodes an UpdateSpaceNotificationSettingRequest message from the specified reader or buffer, length delimited.
57294
+ * @function decodeDelimited
57295
+ * @memberof google.chat.v1.UpdateSpaceNotificationSettingRequest
57296
+ * @static
57297
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
57298
+ * @returns {google.chat.v1.UpdateSpaceNotificationSettingRequest} UpdateSpaceNotificationSettingRequest
57299
+ * @throws {Error} If the payload is not a reader or valid buffer
57300
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57301
+ */
57302
+ UpdateSpaceNotificationSettingRequest.decodeDelimited = function decodeDelimited(reader) {
57303
+ if (!(reader instanceof $Reader))
57304
+ reader = new $Reader(reader);
57305
+ return this.decode(reader, reader.uint32());
57306
+ };
57307
+
57308
+ /**
57309
+ * Verifies an UpdateSpaceNotificationSettingRequest message.
57310
+ * @function verify
57311
+ * @memberof google.chat.v1.UpdateSpaceNotificationSettingRequest
57312
+ * @static
57313
+ * @param {Object.<string,*>} message Plain object to verify
57314
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
57315
+ */
57316
+ UpdateSpaceNotificationSettingRequest.verify = function verify(message) {
57317
+ if (typeof message !== "object" || message === null)
57318
+ return "object expected";
57319
+ if (message.spaceNotificationSetting != null && message.hasOwnProperty("spaceNotificationSetting")) {
57320
+ var error = $root.google.chat.v1.SpaceNotificationSetting.verify(message.spaceNotificationSetting);
57321
+ if (error)
57322
+ return "spaceNotificationSetting." + error;
57323
+ }
57324
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
57325
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
57326
+ if (error)
57327
+ return "updateMask." + error;
57328
+ }
57329
+ return null;
57330
+ };
57331
+
57332
+ /**
57333
+ * Creates an UpdateSpaceNotificationSettingRequest message from a plain object. Also converts values to their respective internal types.
57334
+ * @function fromObject
57335
+ * @memberof google.chat.v1.UpdateSpaceNotificationSettingRequest
57336
+ * @static
57337
+ * @param {Object.<string,*>} object Plain object
57338
+ * @returns {google.chat.v1.UpdateSpaceNotificationSettingRequest} UpdateSpaceNotificationSettingRequest
57339
+ */
57340
+ UpdateSpaceNotificationSettingRequest.fromObject = function fromObject(object) {
57341
+ if (object instanceof $root.google.chat.v1.UpdateSpaceNotificationSettingRequest)
57342
+ return object;
57343
+ var message = new $root.google.chat.v1.UpdateSpaceNotificationSettingRequest();
57344
+ if (object.spaceNotificationSetting != null) {
57345
+ if (typeof object.spaceNotificationSetting !== "object")
57346
+ throw TypeError(".google.chat.v1.UpdateSpaceNotificationSettingRequest.spaceNotificationSetting: object expected");
57347
+ message.spaceNotificationSetting = $root.google.chat.v1.SpaceNotificationSetting.fromObject(object.spaceNotificationSetting);
57348
+ }
57349
+ if (object.updateMask != null) {
57350
+ if (typeof object.updateMask !== "object")
57351
+ throw TypeError(".google.chat.v1.UpdateSpaceNotificationSettingRequest.updateMask: object expected");
57352
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
57353
+ }
57354
+ return message;
57355
+ };
57356
+
57357
+ /**
57358
+ * Creates a plain object from an UpdateSpaceNotificationSettingRequest message. Also converts values to other types if specified.
57359
+ * @function toObject
57360
+ * @memberof google.chat.v1.UpdateSpaceNotificationSettingRequest
57361
+ * @static
57362
+ * @param {google.chat.v1.UpdateSpaceNotificationSettingRequest} message UpdateSpaceNotificationSettingRequest
57363
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
57364
+ * @returns {Object.<string,*>} Plain object
57365
+ */
57366
+ UpdateSpaceNotificationSettingRequest.toObject = function toObject(message, options) {
57367
+ if (!options)
57368
+ options = {};
57369
+ var object = {};
57370
+ if (options.defaults) {
57371
+ object.spaceNotificationSetting = null;
57372
+ object.updateMask = null;
57373
+ }
57374
+ if (message.spaceNotificationSetting != null && message.hasOwnProperty("spaceNotificationSetting"))
57375
+ object.spaceNotificationSetting = $root.google.chat.v1.SpaceNotificationSetting.toObject(message.spaceNotificationSetting, options);
57376
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
57377
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
57378
+ return object;
57379
+ };
57380
+
57381
+ /**
57382
+ * Converts this UpdateSpaceNotificationSettingRequest to JSON.
57383
+ * @function toJSON
57384
+ * @memberof google.chat.v1.UpdateSpaceNotificationSettingRequest
57385
+ * @instance
57386
+ * @returns {Object.<string,*>} JSON object
57387
+ */
57388
+ UpdateSpaceNotificationSettingRequest.prototype.toJSON = function toJSON() {
57389
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
57390
+ };
57391
+
57392
+ /**
57393
+ * Gets the default type url for UpdateSpaceNotificationSettingRequest
57394
+ * @function getTypeUrl
57395
+ * @memberof google.chat.v1.UpdateSpaceNotificationSettingRequest
57396
+ * @static
57397
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
57398
+ * @returns {string} The default type url
57399
+ */
57400
+ UpdateSpaceNotificationSettingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
57401
+ if (typeUrlPrefix === undefined) {
57402
+ typeUrlPrefix = "type.googleapis.com";
57403
+ }
57404
+ return typeUrlPrefix + "/google.chat.v1.UpdateSpaceNotificationSettingRequest";
57405
+ };
57406
+
57407
+ return UpdateSpaceNotificationSettingRequest;
57408
+ })();
57409
+
56520
57410
  v1.SpaceReadState = (function() {
56521
57411
 
56522
57412
  /**