google-apps-chat-v1 0.1.1 → 0.2.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.
@@ -33,6 +33,9 @@ module Google
33
33
  # integrations on Google Chat Platform.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "chat.$UNIVERSE_DOMAIN$"
38
41
 
@@ -384,12 +387,13 @@ module Google
384
387
  # Customize the options with defaults
385
388
  call_metadata = @config.rpcs.create_message.metadata.to_h
386
389
 
387
- # Set x-goog-api-client and x-goog-user-project headers
390
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
388
391
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
389
392
  lib_name: @config.lib_name, lib_version: @config.lib_version,
390
393
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
391
394
  transports_version_send: [:rest]
392
395
 
396
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
393
397
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
394
398
 
395
399
  options.apply_defaults timeout: @config.rpcs.create_message.timeout,
@@ -543,12 +547,13 @@ module Google
543
547
  # Customize the options with defaults
544
548
  call_metadata = @config.rpcs.list_messages.metadata.to_h
545
549
 
546
- # Set x-goog-api-client and x-goog-user-project headers
550
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
547
551
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
548
552
  lib_name: @config.lib_name, lib_version: @config.lib_version,
549
553
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
550
554
  transports_version_send: [:rest]
551
555
 
556
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
552
557
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
553
558
 
554
559
  options.apply_defaults timeout: @config.rpcs.list_messages.timeout,
@@ -636,16 +641,23 @@ module Google
636
641
  #
637
642
  # To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`.
638
643
  #
639
- # To filter by type, set `member.type` to `HUMAN` or `BOT`.
644
+ # To filter by type, set `member.type` to `HUMAN` or `BOT`. Developer
645
+ # Preview: You can also filter for `member.type` using the `!=` operator.
640
646
  #
641
647
  # To filter by both role and type, use the `AND` operator. To filter by
642
648
  # either role or type, use the `OR` operator.
643
649
  #
650
+ # Either `member.type = "HUMAN"` or `member.type != "BOT"` is required
651
+ # when `use_admin_access` is set to true. Other member type filters will be
652
+ # rejected.
653
+ #
644
654
  # For example, the following queries are valid:
645
655
  #
646
656
  # ```
647
657
  # role = "ROLE_MANAGER" OR role = "ROLE_MEMBER"
648
658
  # member.type = "HUMAN" AND role = "ROLE_MANAGER"
659
+ #
660
+ # member.type != "BOT"
649
661
  # ```
650
662
  #
651
663
  # The following queries are invalid:
@@ -655,7 +667,6 @@ module Google
655
667
  # role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"
656
668
  # ```
657
669
  #
658
- #
659
670
  # Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
660
671
  # error.
661
672
  # @param show_groups [::Boolean]
@@ -713,12 +724,13 @@ module Google
713
724
  # Customize the options with defaults
714
725
  call_metadata = @config.rpcs.list_memberships.metadata.to_h
715
726
 
716
- # Set x-goog-api-client and x-goog-user-project headers
727
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
717
728
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
718
729
  lib_name: @config.lib_name, lib_version: @config.lib_version,
719
730
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
720
731
  transports_version_send: [:rest]
721
732
 
733
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
722
734
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
723
735
 
724
736
  options.apply_defaults timeout: @config.rpcs.list_memberships.timeout,
@@ -814,12 +826,13 @@ module Google
814
826
  # Customize the options with defaults
815
827
  call_metadata = @config.rpcs.get_membership.metadata.to_h
816
828
 
817
- # Set x-goog-api-client and x-goog-user-project headers
829
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
818
830
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
819
831
  lib_name: @config.lib_name, lib_version: @config.lib_version,
820
832
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
821
833
  transports_version_send: [:rest]
822
834
 
835
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
823
836
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
824
837
 
825
838
  options.apply_defaults timeout: @config.rpcs.get_membership.timeout,
@@ -911,12 +924,13 @@ module Google
911
924
  # Customize the options with defaults
912
925
  call_metadata = @config.rpcs.get_message.metadata.to_h
913
926
 
914
- # Set x-goog-api-client and x-goog-user-project headers
927
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
915
928
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
916
929
  lib_name: @config.lib_name, lib_version: @config.lib_version,
917
930
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
918
931
  transports_version_send: [:rest]
919
932
 
933
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
920
934
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
921
935
 
922
936
  options.apply_defaults timeout: @config.rpcs.get_message.timeout,
@@ -1027,12 +1041,13 @@ module Google
1027
1041
  # Customize the options with defaults
1028
1042
  call_metadata = @config.rpcs.update_message.metadata.to_h
1029
1043
 
1030
- # Set x-goog-api-client and x-goog-user-project headers
1044
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1031
1045
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1032
1046
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1033
1047
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
1034
1048
  transports_version_send: [:rest]
1035
1049
 
1050
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1036
1051
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1037
1052
 
1038
1053
  options.apply_defaults timeout: @config.rpcs.update_message.timeout,
@@ -1132,12 +1147,13 @@ module Google
1132
1147
  # Customize the options with defaults
1133
1148
  call_metadata = @config.rpcs.delete_message.metadata.to_h
1134
1149
 
1135
- # Set x-goog-api-client and x-goog-user-project headers
1150
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1136
1151
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1137
1152
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1138
1153
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
1139
1154
  transports_version_send: [:rest]
1140
1155
 
1156
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1141
1157
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1142
1158
 
1143
1159
  options.apply_defaults timeout: @config.rpcs.delete_message.timeout,
@@ -1183,7 +1199,7 @@ module Google
1183
1199
  #
1184
1200
  # @param name [::String]
1185
1201
  # Required. Resource name of the attachment, in the form
1186
- # `spaces/*/messages/*/attachments/*`.
1202
+ # `spaces/{space}/messages/{message}/attachments/{attachment}`.
1187
1203
  # @yield [result, operation] Access the result along with the TransportOperation object
1188
1204
  # @yieldparam result [::Google::Apps::Chat::V1::Attachment]
1189
1205
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1218,12 +1234,13 @@ module Google
1218
1234
  # Customize the options with defaults
1219
1235
  call_metadata = @config.rpcs.get_attachment.metadata.to_h
1220
1236
 
1221
- # Set x-goog-api-client and x-goog-user-project headers
1237
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1222
1238
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1223
1239
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1224
1240
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
1225
1241
  transports_version_send: [:rest]
1226
1242
 
1243
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1227
1244
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1228
1245
 
1229
1246
  options.apply_defaults timeout: @config.rpcs.get_attachment.timeout,
@@ -1307,12 +1324,13 @@ module Google
1307
1324
  # Customize the options with defaults
1308
1325
  call_metadata = @config.rpcs.upload_attachment.metadata.to_h
1309
1326
 
1310
- # Set x-goog-api-client and x-goog-user-project headers
1327
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1311
1328
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1312
1329
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1313
1330
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
1314
1331
  transports_version_send: [:rest]
1315
1332
 
1333
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1316
1334
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1317
1335
 
1318
1336
  options.apply_defaults timeout: @config.rpcs.upload_attachment.timeout,
@@ -1348,6 +1366,10 @@ module Google
1348
1366
  # Lists spaces visible to the caller or authenticated user. Group chats
1349
1367
  # and DMs aren't listed until the first message is sent.
1350
1368
  #
1369
+ # To list all named spaces by Google Workspace organization, use the
1370
+ # [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search)
1371
+ # method using Workspace administrator privileges instead.
1372
+ #
1351
1373
  # @overload list_spaces(request, options = nil)
1352
1374
  # Pass arguments to `list_spaces` via a request object, either of type
1353
1375
  # {::Google::Apps::Chat::V1::ListSpacesRequest} or an equivalent Hash.
@@ -1437,12 +1459,13 @@ module Google
1437
1459
  # Customize the options with defaults
1438
1460
  call_metadata = @config.rpcs.list_spaces.metadata.to_h
1439
1461
 
1440
- # Set x-goog-api-client and x-goog-user-project headers
1462
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1441
1463
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1442
1464
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1443
1465
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
1444
1466
  transports_version_send: [:rest]
1445
1467
 
1468
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1446
1469
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1447
1470
 
1448
1471
  options.apply_defaults timeout: @config.rpcs.list_spaces.timeout,
@@ -1491,7 +1514,7 @@ module Google
1491
1514
  # the default parameter values, pass an empty Hash as a request object (see above).
1492
1515
  #
1493
1516
  # @param name [::String]
1494
- # Required. Resource name of the space, in the form "spaces/*".
1517
+ # Required. Resource name of the space, in the form `spaces/{space}`.
1495
1518
  #
1496
1519
  # Format: `spaces/{space}`
1497
1520
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -1528,12 +1551,13 @@ module Google
1528
1551
  # Customize the options with defaults
1529
1552
  call_metadata = @config.rpcs.get_space.metadata.to_h
1530
1553
 
1531
- # Set x-goog-api-client and x-goog-user-project headers
1554
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1532
1555
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1533
1556
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1534
1557
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
1535
1558
  transports_version_send: [:rest]
1536
1559
 
1560
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1537
1561
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1538
1562
 
1539
1563
  options.apply_defaults timeout: @config.rpcs.get_space.timeout,
@@ -1630,12 +1654,13 @@ module Google
1630
1654
  # Customize the options with defaults
1631
1655
  call_metadata = @config.rpcs.create_space.metadata.to_h
1632
1656
 
1633
- # Set x-goog-api-client and x-goog-user-project headers
1657
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1634
1658
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1635
1659
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1636
1660
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
1637
1661
  transports_version_send: [:rest]
1638
1662
 
1663
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1639
1664
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1640
1665
 
1641
1666
  options.apply_defaults timeout: @config.rpcs.create_space.timeout,
@@ -1670,6 +1695,17 @@ module Google
1670
1695
  # you can add the user to the space by setting the `membership.member.name`
1671
1696
  # to `users/user@example.com` or `users/123456789`.
1672
1697
  #
1698
+ # To specify the Google groups to add, add memberships with the
1699
+ # appropriate `membership.group_member.name`. To add or invite a Google
1700
+ # group, use `groups/{group}`, where `{group}` is the `id` for the group from
1701
+ # the Cloud Identity Groups API. For example, you can use [Cloud Identity
1702
+ # Groups lookup
1703
+ # API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup)
1704
+ # to retrieve the ID `123456789` for group email `group@example.com`, then
1705
+ # you can add the group to the space by setting the
1706
+ # `membership.group_member.name` to `groups/123456789`. Group email is not
1707
+ # supported, and Google groups can only be added as members in named spaces.
1708
+ #
1673
1709
  # For a named space or group chat, if the caller blocks, or is blocked
1674
1710
  # by some members, or doesn't have permission to add some members, then
1675
1711
  # those members aren't added to the created space.
@@ -1744,8 +1780,8 @@ module Google
1744
1780
  # Specifying an existing request ID from the same Chat app with a different
1745
1781
  # authenticated user returns an error.
1746
1782
  # @param memberships [::Array<::Google::Apps::Chat::V1::Membership, ::Hash>]
1747
- # Optional. The Google Chat users to invite to join the space. Omit the
1748
- # calling user, as they are added automatically.
1783
+ # Optional. The Google Chat users or groups to invite to join the space. Omit
1784
+ # the calling user, as they are added automatically.
1749
1785
  #
1750
1786
  # The set currently allows up to 20 memberships (in addition to the caller).
1751
1787
  #
@@ -1758,6 +1794,10 @@ module Google
1758
1794
  # To invite Gmail users or users from external Google Workspace domains,
1759
1795
  # user's email must be used for `{user}`.
1760
1796
  #
1797
+ # For Google group membership, the `Membership.group_member` field must
1798
+ # contain a `group` with `name` populated (format `groups/{group}`). You
1799
+ # can only add Google groups when setting `Space.spaceType` to `SPACE`.
1800
+ #
1761
1801
  # Optional when setting `Space.spaceType` to `SPACE`.
1762
1802
  #
1763
1803
  # Required when setting `Space.spaceType` to `GROUP_CHAT`, along with at
@@ -1803,12 +1843,13 @@ module Google
1803
1843
  # Customize the options with defaults
1804
1844
  call_metadata = @config.rpcs.set_up_space.metadata.to_h
1805
1845
 
1806
- # Set x-goog-api-client and x-goog-user-project headers
1846
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1807
1847
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1808
1848
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1809
1849
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
1810
1850
  transports_version_send: [:rest]
1811
1851
 
1852
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1812
1853
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1813
1854
 
1814
1855
  options.apply_defaults timeout: @config.rpcs.set_up_space.timeout,
@@ -1880,6 +1921,7 @@ module Google
1880
1921
  # the display name is optional if the existing space already has the `SPACE`
1881
1922
  # type. Trying to update the space type in other ways results in an invalid
1882
1923
  # argument error).
1924
+ # `space_type` is not supported with admin access.
1883
1925
  #
1884
1926
  # - `space_details`
1885
1927
  #
@@ -1888,12 +1930,27 @@ module Google
1888
1930
  # allows users to change their history
1889
1931
  # setting](https://support.google.com/a/answer/7664184).
1890
1932
  # Warning: mutually exclusive with all other field paths.)
1891
- #
1892
- # - Developer Preview: `access_settings.audience` (Supports changing the
1893
- # [access setting](https://support.google.com/chat/answer/11971020) of a
1894
- # space. If no audience is specified in the access setting, the space's
1895
- # access setting is updated to restricted. Warning: mutually exclusive with
1896
- # all other field paths.)
1933
+ # `space_history_state` is not supported with admin access.
1934
+ #
1935
+ # - `access_settings.audience` (Supports changing the [access
1936
+ # setting](https://support.google.com/chat/answer/11971020) of who can
1937
+ # discover the space, join the space, and preview the messages in space. If
1938
+ # no audience is specified in the access setting, the space's access setting
1939
+ # is updated to private. Warning: mutually exclusive with all other field
1940
+ # paths.)
1941
+ # `access_settings.audience` is not supported with admin access.
1942
+ #
1943
+ # - Developer Preview: Supports changing the [permission
1944
+ # settings](https://support.google.com/chat/answer/13340792) of a space,
1945
+ # supported field paths
1946
+ # include: `permission_settings.manage_members_and_groups`,
1947
+ # `permission_settings.modify_space_details`,
1948
+ # `permission_settings.toggle_history`,
1949
+ # `permission_settings.use_at_mention_all`,
1950
+ # `permission_settings.manage_apps`, `permission_settings.manage_webhooks`,
1951
+ # `permission_settings.reply_messages`
1952
+ # (Warning: mutually exclusive with all other non-permission settings field
1953
+ # paths). `permission_settings` is not supported with admin access.
1897
1954
  # @yield [result, operation] Access the result along with the TransportOperation object
1898
1955
  # @yieldparam result [::Google::Apps::Chat::V1::Space]
1899
1956
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1928,12 +1985,13 @@ module Google
1928
1985
  # Customize the options with defaults
1929
1986
  call_metadata = @config.rpcs.update_space.metadata.to_h
1930
1987
 
1931
- # Set x-goog-api-client and x-goog-user-project headers
1988
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1932
1989
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1933
1990
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1934
1991
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
1935
1992
  transports_version_send: [:rest]
1936
1993
 
1994
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1937
1995
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1938
1996
 
1939
1997
  options.apply_defaults timeout: @config.rpcs.update_space.timeout,
@@ -2015,12 +2073,13 @@ module Google
2015
2073
  # Customize the options with defaults
2016
2074
  call_metadata = @config.rpcs.delete_space.metadata.to_h
2017
2075
 
2018
- # Set x-goog-api-client and x-goog-user-project headers
2076
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2019
2077
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2020
2078
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2021
2079
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
2022
2080
  transports_version_send: [:rest]
2023
2081
 
2082
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2024
2083
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2025
2084
 
2026
2085
  options.apply_defaults timeout: @config.rpcs.delete_space.timeout,
@@ -2100,12 +2159,13 @@ module Google
2100
2159
  # Customize the options with defaults
2101
2160
  call_metadata = @config.rpcs.complete_import_space.metadata.to_h
2102
2161
 
2103
- # Set x-goog-api-client and x-goog-user-project headers
2162
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2104
2163
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2105
2164
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2106
2165
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
2107
2166
  transports_version_send: [:rest]
2108
2167
 
2168
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2109
2169
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2110
2170
 
2111
2171
  options.apply_defaults timeout: @config.rpcs.complete_import_space.timeout,
@@ -2208,12 +2268,13 @@ module Google
2208
2268
  # Customize the options with defaults
2209
2269
  call_metadata = @config.rpcs.find_direct_message.metadata.to_h
2210
2270
 
2211
- # Set x-goog-api-client and x-goog-user-project headers
2271
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2212
2272
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2213
2273
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2214
2274
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
2215
2275
  transports_version_send: [:rest]
2216
2276
 
2277
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2217
2278
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2218
2279
 
2219
2280
  options.apply_defaults timeout: @config.rpcs.find_direct_message.timeout,
@@ -2244,7 +2305,8 @@ module Google
2244
2305
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
2245
2306
  #
2246
2307
  # To specify the member to add, set the `membership.member.name` for the
2247
- # human or app member.
2308
+ # human or app member, or set the `membership.group_member.name` for the
2309
+ # group member.
2248
2310
  #
2249
2311
  # - To add the calling app to a space or a direct message between two human
2250
2312
  # users, use `users/app`. Unable to add other
@@ -2258,6 +2320,15 @@ module Google
2258
2320
  # the space by setting the `membership.member.name` to
2259
2321
  # `users/user@example.com` or `users/123456789`.
2260
2322
  #
2323
+ # - To add or invite a Google group in a named space, use
2324
+ # `groups/{group}`, where `{group}` is the `id` for the group from the Cloud
2325
+ # Identity Groups API. For example, you can use [Cloud Identity Groups lookup
2326
+ # API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup)
2327
+ # to retrieve the ID `123456789` for group email `group@example.com`, then
2328
+ # you can add or invite the group to a named space by setting the
2329
+ # `membership.group_member.name` to `groups/123456789`. Group email is not
2330
+ # supported, and Google groups can only be added as members in named spaces.
2331
+ #
2261
2332
  # @overload create_membership(request, options = nil)
2262
2333
  # Pass arguments to `create_membership` via a request object, either of type
2263
2334
  # {::Google::Apps::Chat::V1::CreateMembershipRequest} or an equivalent Hash.
@@ -2329,12 +2400,13 @@ module Google
2329
2400
  # Customize the options with defaults
2330
2401
  call_metadata = @config.rpcs.create_membership.metadata.to_h
2331
2402
 
2332
- # Set x-goog-api-client and x-goog-user-project headers
2403
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2333
2404
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2334
2405
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2335
2406
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
2336
2407
  transports_version_send: [:rest]
2337
2408
 
2409
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2338
2410
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2339
2411
 
2340
2412
  options.apply_defaults timeout: @config.rpcs.create_membership.timeout,
@@ -2419,12 +2491,13 @@ module Google
2419
2491
  # Customize the options with defaults
2420
2492
  call_metadata = @config.rpcs.update_membership.metadata.to_h
2421
2493
 
2422
- # Set x-goog-api-client and x-goog-user-project headers
2494
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2423
2495
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2424
2496
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2425
2497
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
2426
2498
  transports_version_send: [:rest]
2427
2499
 
2500
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2428
2501
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2429
2502
 
2430
2503
  options.apply_defaults timeout: @config.rpcs.update_membership.timeout,
@@ -2515,12 +2588,13 @@ module Google
2515
2588
  # Customize the options with defaults
2516
2589
  call_metadata = @config.rpcs.delete_membership.metadata.to_h
2517
2590
 
2518
- # Set x-goog-api-client and x-goog-user-project headers
2591
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2519
2592
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2520
2593
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2521
2594
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
2522
2595
  transports_version_send: [:rest]
2523
2596
 
2597
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2524
2598
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2525
2599
 
2526
2600
  options.apply_defaults timeout: @config.rpcs.delete_membership.timeout,
@@ -2602,12 +2676,13 @@ module Google
2602
2676
  # Customize the options with defaults
2603
2677
  call_metadata = @config.rpcs.create_reaction.metadata.to_h
2604
2678
 
2605
- # Set x-goog-api-client and x-goog-user-project headers
2679
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2606
2680
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2607
2681
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2608
2682
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
2609
2683
  transports_version_send: [:rest]
2610
2684
 
2685
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2611
2686
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2612
2687
 
2613
2688
  options.apply_defaults timeout: @config.rpcs.create_reaction.timeout,
@@ -2747,12 +2822,13 @@ module Google
2747
2822
  # Customize the options with defaults
2748
2823
  call_metadata = @config.rpcs.list_reactions.metadata.to_h
2749
2824
 
2750
- # Set x-goog-api-client and x-goog-user-project headers
2825
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2751
2826
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2752
2827
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2753
2828
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
2754
2829
  transports_version_send: [:rest]
2755
2830
 
2831
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2756
2832
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2757
2833
 
2758
2834
  options.apply_defaults timeout: @config.rpcs.list_reactions.timeout,
@@ -2833,12 +2909,13 @@ module Google
2833
2909
  # Customize the options with defaults
2834
2910
  call_metadata = @config.rpcs.delete_reaction.metadata.to_h
2835
2911
 
2836
- # Set x-goog-api-client and x-goog-user-project headers
2912
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2837
2913
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2838
2914
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2839
2915
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
2840
2916
  transports_version_send: [:rest]
2841
2917
 
2918
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2842
2919
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2843
2920
 
2844
2921
  options.apply_defaults timeout: @config.rpcs.delete_reaction.timeout,
@@ -2931,12 +3008,13 @@ module Google
2931
3008
  # Customize the options with defaults
2932
3009
  call_metadata = @config.rpcs.get_space_read_state.metadata.to_h
2933
3010
 
2934
- # Set x-goog-api-client and x-goog-user-project headers
3011
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2935
3012
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2936
3013
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2937
3014
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
2938
3015
  transports_version_send: [:rest]
2939
3016
 
3017
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2940
3018
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2941
3019
 
2942
3020
  options.apply_defaults timeout: @config.rpcs.get_space_read_state.timeout,
@@ -3042,12 +3120,13 @@ module Google
3042
3120
  # Customize the options with defaults
3043
3121
  call_metadata = @config.rpcs.update_space_read_state.metadata.to_h
3044
3122
 
3045
- # Set x-goog-api-client and x-goog-user-project headers
3123
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3046
3124
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3047
3125
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3048
3126
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
3049
3127
  transports_version_send: [:rest]
3050
3128
 
3129
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3051
3130
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3052
3131
 
3053
3132
  options.apply_defaults timeout: @config.rpcs.update_space_read_state.timeout,
@@ -3141,12 +3220,13 @@ module Google
3141
3220
  # Customize the options with defaults
3142
3221
  call_metadata = @config.rpcs.get_thread_read_state.metadata.to_h
3143
3222
 
3144
- # Set x-goog-api-client and x-goog-user-project headers
3223
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3145
3224
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3146
3225
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3147
3226
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
3148
3227
  transports_version_send: [:rest]
3149
3228
 
3229
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3150
3230
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3151
3231
 
3152
3232
  options.apply_defaults timeout: @config.rpcs.get_thread_read_state.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Apps
22
22
  module Chat
23
23
  module V1
24
- VERSION = "0.1.1"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -17,7 +17,7 @@ require 'google/chat/v1/thread_read_state_pb'
17
17
  require 'google/protobuf/empty_pb'
18
18
 
19
19
 
20
- descriptor_data = "\n!google/chat/v1/chat_service.proto\x12\x0egoogle.chat.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/chat/v1/attachment.proto\x1a\x1fgoogle/chat/v1/membership.proto\x1a\x1cgoogle/chat/v1/message.proto\x1a\x1dgoogle/chat/v1/reaction.proto\x1a\x1agoogle/chat/v1/space.proto\x1a%google/chat/v1/space_read_state.proto\x1a google/chat/v1/space_setup.proto\x1a&google/chat/v1/thread_read_state.proto\x1a\x1bgoogle/protobuf/empty.proto2\xde$\n\x0b\x43hatService\x12\x9b\x01\n\rCreateMessage\x12$.google.chat.v1.CreateMessageRequest\x1a\x17.google.chat.v1.Message\"K\xda\x41\x19parent,message,message_id\x82\xd3\xe4\x93\x02)\"\x1e/v1/{parent=spaces/*}/messages:\x07message\x12\x8a\x01\n\x0cListMessages\x12#.google.chat.v1.ListMessagesRequest\x1a$.google.chat.v1.ListMessagesResponse\"/\xda\x41\x06parent\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{parent=spaces/*}/messages\x12\x92\x01\n\x0fListMemberships\x12&.google.chat.v1.ListMembershipsRequest\x1a\'.google.chat.v1.ListMembershipsResponse\".\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{parent=spaces/*}/members\x12\x7f\n\rGetMembership\x12$.google.chat.v1.GetMembershipRequest\x1a\x1a.google.chat.v1.Membership\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{name=spaces/*/members/*}\x12w\n\nGetMessage\x12!.google.chat.v1.GetMessageRequest\x1a\x17.google.chat.v1.Message\"-\xda\x41\x04name\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{name=spaces/*/messages/*}\x12\xd1\x01\n\rUpdateMessage\x12$.google.chat.v1.UpdateMessageRequest\x1a\x17.google.chat.v1.Message\"\x80\x01\xda\x41\x13message,update_mask\x82\xd3\xe4\x93\x02\x64\x1a&/v1/{message.name=spaces/*/messages/*}:\x07messageZ12&/v1/{message.name=spaces/*/messages/*}:\x07message\x12|\n\rDeleteMessage\x12$.google.chat.v1.DeleteMessageRequest\x1a\x16.google.protobuf.Empty\"-\xda\x41\x04name\x82\xd3\xe4\x93\x02 *\x1e/v1/{name=spaces/*/messages/*}\x12\x8e\x01\n\rGetAttachment\x12$.google.chat.v1.GetAttachmentRequest\x1a\x1a.google.chat.v1.Attachment\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1/{name=spaces/*/messages/*/attachments/*}\x12\x9a\x01\n\x10UploadAttachment\x12\'.google.chat.v1.UploadAttachmentRequest\x1a(.google.chat.v1.UploadAttachmentResponse\"3\x82\xd3\xe4\x93\x02-\"(/v1/{parent=spaces/*}/attachments:upload:\x01*\x12j\n\nListSpaces\x12!.google.chat.v1.ListSpacesRequest\x1a\".google.chat.v1.ListSpacesResponse\"\x15\xda\x41\x00\x82\xd3\xe4\x93\x02\x0c\x12\n/v1/spaces\x12\x66\n\x08GetSpace\x12\x1f.google.chat.v1.GetSpaceRequest\x1a\x15.google.chat.v1.Space\"\"\xda\x41\x04name\x82\xd3\xe4\x93\x02\x15\x12\x13/v1/{name=spaces/*}\x12k\n\x0b\x43reateSpace\x12\".google.chat.v1.CreateSpaceRequest\x1a\x15.google.chat.v1.Space\"!\xda\x41\x05space\x82\xd3\xe4\x93\x02\x13\"\n/v1/spaces:\x05space\x12\x63\n\nSetUpSpace\x12!.google.chat.v1.SetUpSpaceRequest\x1a\x15.google.chat.v1.Space\"\x1b\x82\xd3\xe4\x93\x02\x15\"\x10/v1/spaces:setup:\x01*\x12\x86\x01\n\x0bUpdateSpace\x12\".google.chat.v1.UpdateSpaceRequest\x1a\x15.google.chat.v1.Space\"<\xda\x41\x11space,update_mask\x82\xd3\xe4\x93\x02\"2\x19/v1/{space.name=spaces/*}:\x05space\x12m\n\x0b\x44\x65leteSpace\x12\".google.chat.v1.DeleteSpaceRequest\x1a\x16.google.protobuf.Empty\"\"\xda\x41\x04name\x82\xd3\xe4\x93\x02\x15*\x13/v1/{name=spaces/*}\x12\x9d\x01\n\x13\x43ompleteImportSpace\x12*.google.chat.v1.CompleteImportSpaceRequest\x1a+.google.chat.v1.CompleteImportSpaceResponse\"-\x82\xd3\xe4\x93\x02\'\"\"/v1/{name=spaces/*}:completeImport:\x01*\x12z\n\x11\x46indDirectMessage\x12(.google.chat.v1.FindDirectMessageRequest\x1a\x15.google.chat.v1.Space\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1/spaces:findDirectMessage\x12\x9e\x01\n\x10\x43reateMembership\x12\'.google.chat.v1.CreateMembershipRequest\x1a\x1a.google.chat.v1.Membership\"E\xda\x41\x11parent,membership\x82\xd3\xe4\x93\x02+\"\x1d/v1/{parent=spaces/*}/members:\nmembership\x12\xae\x01\n\x10UpdateMembership\x12\'.google.chat.v1.UpdateMembershipRequest\x1a\x1a.google.chat.v1.Membership\"U\xda\x41\x16membership,update_mask\x82\xd3\xe4\x93\x02\x36\x32(/v1/{membership.name=spaces/*/members/*}:\nmembership\x12\x85\x01\n\x10\x44\x65leteMembership\x12\'.google.chat.v1.DeleteMembershipRequest\x1a\x1a.google.chat.v1.Membership\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=spaces/*/members/*}\x12\xa1\x01\n\x0e\x43reateReaction\x12%.google.chat.v1.CreateReactionRequest\x1a\x18.google.chat.v1.Reaction\"N\xda\x41\x0fparent,reaction\x82\xd3\xe4\x93\x02\x36\"*/v1/{parent=spaces/*/messages/*}/reactions:\x08reaction\x12\x99\x01\n\rListReactions\x12$.google.chat.v1.ListReactionsRequest\x1a%.google.chat.v1.ListReactionsResponse\";\xda\x41\x06parent\x82\xd3\xe4\x93\x02,\x12*/v1/{parent=spaces/*/messages/*}/reactions\x12\x8a\x01\n\x0e\x44\x65leteReaction\x12%.google.chat.v1.DeleteReactionRequest\x1a\x16.google.protobuf.Empty\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,**/v1/{name=spaces/*/messages/*/reactions/*}\x12\x98\x01\n\x11GetSpaceReadState\x12(.google.chat.v1.GetSpaceReadStateRequest\x1a\x1e.google.chat.v1.SpaceReadState\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v1/{name=users/*/spaces/*/spaceReadState}\x12\xd9\x01\n\x14UpdateSpaceReadState\x12+.google.chat.v1.UpdateSpaceReadStateRequest\x1a\x1e.google.chat.v1.SpaceReadState\"t\xda\x41\x1cspace_read_state,update_mask\x82\xd3\xe4\x93\x02O2;/v1/{space_read_state.name=users/*/spaces/*/spaceReadState}:\x10space_read_state\x12\xa6\x01\n\x12GetThreadReadState\x12).google.chat.v1.GetThreadReadStateRequest\x1a\x1f.google.chat.v1.ThreadReadState\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{name=users/*/spaces/*/threads/*/threadReadState}\x1a\x93\x07\xca\x41\x13\x63hat.googleapis.com\xd2\x41\xf9\x06https://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.delete,https://www.googleapis.com/auth/chat.import,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis.com/auth/chat.memberships.app,https://www.googleapis.com/auth/chat.memberships.readonly,https://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.messages.create,https://www.googleapis.com/auth/chat.messages.reactions,https://www.googleapis.com/auth/chat.messages.reactions.create,https://www.googleapis.com/auth/chat.messages.reactions.readonly,https://www.googleapis.com/auth/chat.messages.readonly,https://www.googleapis.com/auth/chat.spaces,https://www.googleapis.com/auth/chat.spaces.create,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/chat.users.readstate,https://www.googleapis.com/auth/chat.users.readstate.readonlyB\xa9\x01\n\x12\x63om.google.chat.v1B\x10\x43hatServiceProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xa2\x02\x0b\x44YNAPIProto\xaa\x02\x13Google.Apps.Chat.V1\xca\x02\x13Google\\Apps\\Chat\\V1\xea\x02\x16Google::Apps::Chat::V1b\x06proto3"
20
+ descriptor_data = "\n!google/chat/v1/chat_service.proto\x12\x0egoogle.chat.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/chat/v1/attachment.proto\x1a\x1fgoogle/chat/v1/membership.proto\x1a\x1cgoogle/chat/v1/message.proto\x1a\x1dgoogle/chat/v1/reaction.proto\x1a\x1agoogle/chat/v1/space.proto\x1a%google/chat/v1/space_read_state.proto\x1a google/chat/v1/space_setup.proto\x1a&google/chat/v1/thread_read_state.proto\x1a\x1bgoogle/protobuf/empty.proto2\xf4&\n\x0b\x43hatService\x12\x9b\x01\n\rCreateMessage\x12$.google.chat.v1.CreateMessageRequest\x1a\x17.google.chat.v1.Message\"K\xda\x41\x19parent,message,message_id\x82\xd3\xe4\x93\x02)\"\x1e/v1/{parent=spaces/*}/messages:\x07message\x12\x8a\x01\n\x0cListMessages\x12#.google.chat.v1.ListMessagesRequest\x1a$.google.chat.v1.ListMessagesResponse\"/\xda\x41\x06parent\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{parent=spaces/*}/messages\x12\x92\x01\n\x0fListMemberships\x12&.google.chat.v1.ListMembershipsRequest\x1a\'.google.chat.v1.ListMembershipsResponse\".\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{parent=spaces/*}/members\x12\x7f\n\rGetMembership\x12$.google.chat.v1.GetMembershipRequest\x1a\x1a.google.chat.v1.Membership\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{name=spaces/*/members/*}\x12w\n\nGetMessage\x12!.google.chat.v1.GetMessageRequest\x1a\x17.google.chat.v1.Message\"-\xda\x41\x04name\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{name=spaces/*/messages/*}\x12\xd1\x01\n\rUpdateMessage\x12$.google.chat.v1.UpdateMessageRequest\x1a\x17.google.chat.v1.Message\"\x80\x01\xda\x41\x13message,update_mask\x82\xd3\xe4\x93\x02\x64\x1a&/v1/{message.name=spaces/*/messages/*}:\x07messageZ12&/v1/{message.name=spaces/*/messages/*}:\x07message\x12|\n\rDeleteMessage\x12$.google.chat.v1.DeleteMessageRequest\x1a\x16.google.protobuf.Empty\"-\xda\x41\x04name\x82\xd3\xe4\x93\x02 *\x1e/v1/{name=spaces/*/messages/*}\x12\x8e\x01\n\rGetAttachment\x12$.google.chat.v1.GetAttachmentRequest\x1a\x1a.google.chat.v1.Attachment\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1/{name=spaces/*/messages/*/attachments/*}\x12\x9a\x01\n\x10UploadAttachment\x12\'.google.chat.v1.UploadAttachmentRequest\x1a(.google.chat.v1.UploadAttachmentResponse\"3\x82\xd3\xe4\x93\x02-\"(/v1/{parent=spaces/*}/attachments:upload:\x01*\x12j\n\nListSpaces\x12!.google.chat.v1.ListSpacesRequest\x1a\".google.chat.v1.ListSpacesResponse\"\x15\xda\x41\x00\x82\xd3\xe4\x93\x02\x0c\x12\n/v1/spaces\x12\x66\n\x08GetSpace\x12\x1f.google.chat.v1.GetSpaceRequest\x1a\x15.google.chat.v1.Space\"\"\xda\x41\x04name\x82\xd3\xe4\x93\x02\x15\x12\x13/v1/{name=spaces/*}\x12k\n\x0b\x43reateSpace\x12\".google.chat.v1.CreateSpaceRequest\x1a\x15.google.chat.v1.Space\"!\xda\x41\x05space\x82\xd3\xe4\x93\x02\x13\"\n/v1/spaces:\x05space\x12\x63\n\nSetUpSpace\x12!.google.chat.v1.SetUpSpaceRequest\x1a\x15.google.chat.v1.Space\"\x1b\x82\xd3\xe4\x93\x02\x15\"\x10/v1/spaces:setup:\x01*\x12\x86\x01\n\x0bUpdateSpace\x12\".google.chat.v1.UpdateSpaceRequest\x1a\x15.google.chat.v1.Space\"<\xda\x41\x11space,update_mask\x82\xd3\xe4\x93\x02\"2\x19/v1/{space.name=spaces/*}:\x05space\x12m\n\x0b\x44\x65leteSpace\x12\".google.chat.v1.DeleteSpaceRequest\x1a\x16.google.protobuf.Empty\"\"\xda\x41\x04name\x82\xd3\xe4\x93\x02\x15*\x13/v1/{name=spaces/*}\x12\x9d\x01\n\x13\x43ompleteImportSpace\x12*.google.chat.v1.CompleteImportSpaceRequest\x1a+.google.chat.v1.CompleteImportSpaceResponse\"-\x82\xd3\xe4\x93\x02\'\"\"/v1/{name=spaces/*}:completeImport:\x01*\x12z\n\x11\x46indDirectMessage\x12(.google.chat.v1.FindDirectMessageRequest\x1a\x15.google.chat.v1.Space\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1/spaces:findDirectMessage\x12\x9e\x01\n\x10\x43reateMembership\x12\'.google.chat.v1.CreateMembershipRequest\x1a\x1a.google.chat.v1.Membership\"E\xda\x41\x11parent,membership\x82\xd3\xe4\x93\x02+\"\x1d/v1/{parent=spaces/*}/members:\nmembership\x12\xae\x01\n\x10UpdateMembership\x12\'.google.chat.v1.UpdateMembershipRequest\x1a\x1a.google.chat.v1.Membership\"U\xda\x41\x16membership,update_mask\x82\xd3\xe4\x93\x02\x36\x32(/v1/{membership.name=spaces/*/members/*}:\nmembership\x12\x85\x01\n\x10\x44\x65leteMembership\x12\'.google.chat.v1.DeleteMembershipRequest\x1a\x1a.google.chat.v1.Membership\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=spaces/*/members/*}\x12\xa1\x01\n\x0e\x43reateReaction\x12%.google.chat.v1.CreateReactionRequest\x1a\x18.google.chat.v1.Reaction\"N\xda\x41\x0fparent,reaction\x82\xd3\xe4\x93\x02\x36\"*/v1/{parent=spaces/*/messages/*}/reactions:\x08reaction\x12\x99\x01\n\rListReactions\x12$.google.chat.v1.ListReactionsRequest\x1a%.google.chat.v1.ListReactionsResponse\";\xda\x41\x06parent\x82\xd3\xe4\x93\x02,\x12*/v1/{parent=spaces/*/messages/*}/reactions\x12\x8a\x01\n\x0e\x44\x65leteReaction\x12%.google.chat.v1.DeleteReactionRequest\x1a\x16.google.protobuf.Empty\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,**/v1/{name=spaces/*/messages/*/reactions/*}\x12\x98\x01\n\x11GetSpaceReadState\x12(.google.chat.v1.GetSpaceReadStateRequest\x1a\x1e.google.chat.v1.SpaceReadState\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v1/{name=users/*/spaces/*/spaceReadState}\x12\xd9\x01\n\x14UpdateSpaceReadState\x12+.google.chat.v1.UpdateSpaceReadStateRequest\x1a\x1e.google.chat.v1.SpaceReadState\"t\xda\x41\x1cspace_read_state,update_mask\x82\xd3\xe4\x93\x02O2;/v1/{space_read_state.name=users/*/spaces/*/spaceReadState}:\x10space_read_state\x12\xa6\x01\n\x12GetThreadReadState\x12).google.chat.v1.GetThreadReadStateRequest\x1a\x1f.google.chat.v1.ThreadReadState\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{name=users/*/spaces/*/threads/*/threadReadState}\x1a\xa9\t\xca\x41\x13\x63hat.googleapis.com\xd2\x41\x8f\thttps://www.googleapis.com/auth/chat.admin.delete,https://www.googleapis.com/auth/chat.admin.memberships,https://www.googleapis.com/auth/chat.admin.memberships.readonly,https://www.googleapis.com/auth/chat.admin.spaces,https://www.googleapis.com/auth/chat.admin.spaces.readonly,https://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.delete,https://www.googleapis.com/auth/chat.import,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis.com/auth/chat.memberships.app,https://www.googleapis.com/auth/chat.memberships.readonly,https://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.messages.create,https://www.googleapis.com/auth/chat.messages.reactions,https://www.googleapis.com/auth/chat.messages.reactions.create,https://www.googleapis.com/auth/chat.messages.reactions.readonly,https://www.googleapis.com/auth/chat.messages.readonly,https://www.googleapis.com/auth/chat.spaces,https://www.googleapis.com/auth/chat.spaces.create,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/chat.users.readstate,https://www.googleapis.com/auth/chat.users.readstate.readonlyB\xa9\x01\n\x12\x63om.google.chat.v1B\x10\x43hatServiceProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xa2\x02\x0b\x44YNAPIProto\xaa\x02\x13Google.Apps.Chat.V1\xca\x02\x13Google\\Apps\\Chat\\V1\xea\x02\x16Google::Apps::Chat::V1b\x06proto3"
21
21
 
22
22
  pool = Google::Protobuf::DescriptorPool.generated_pool
23
23