google-apps-chat-v1 0.1.0 → 0.1.2

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
 
@@ -285,7 +288,8 @@ module Google
285
288
  # Service calls
286
289
 
287
290
  ##
288
- # Creates a message in a Google Chat space. For an example, see [Send a
291
+ # Creates a message in a Google Chat space. The maximum message size,
292
+ # including text and cards, is 32,000 bytes. For an example, see [Send a
289
293
  # message](https://developers.google.com/workspace/chat/create-messages).
290
294
  #
291
295
  # Calling this method requires
@@ -383,12 +387,13 @@ module Google
383
387
  # Customize the options with defaults
384
388
  call_metadata = @config.rpcs.create_message.metadata.to_h
385
389
 
386
- # 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
387
391
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
388
392
  lib_name: @config.lib_name, lib_version: @config.lib_version,
389
393
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
390
394
  transports_version_send: [:rest]
391
395
 
396
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
392
397
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
393
398
 
394
399
  options.apply_defaults timeout: @config.rpcs.create_message.timeout,
@@ -542,12 +547,13 @@ module Google
542
547
  # Customize the options with defaults
543
548
  call_metadata = @config.rpcs.list_messages.metadata.to_h
544
549
 
545
- # 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
546
551
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
547
552
  lib_name: @config.lib_name, lib_version: @config.lib_version,
548
553
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
549
554
  transports_version_send: [:rest]
550
555
 
556
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
551
557
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
552
558
 
553
559
  options.apply_defaults timeout: @config.rpcs.list_messages.timeout,
@@ -712,12 +718,13 @@ module Google
712
718
  # Customize the options with defaults
713
719
  call_metadata = @config.rpcs.list_memberships.metadata.to_h
714
720
 
715
- # Set x-goog-api-client and x-goog-user-project headers
721
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
716
722
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
717
723
  lib_name: @config.lib_name, lib_version: @config.lib_version,
718
724
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
719
725
  transports_version_send: [:rest]
720
726
 
727
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
721
728
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
722
729
 
723
730
  options.apply_defaults timeout: @config.rpcs.list_memberships.timeout,
@@ -768,8 +775,9 @@ module Google
768
775
  # @param name [::String]
769
776
  # Required. Resource name of the membership to retrieve.
770
777
  #
771
- # To get the app's own membership, you can optionally use
772
- # `spaces/{space}/members/app`.
778
+ # To get the app's own membership [by using user
779
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
780
+ # you can optionally use `spaces/{space}/members/app`.
773
781
  #
774
782
  # Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`
775
783
  #
@@ -812,12 +820,13 @@ module Google
812
820
  # Customize the options with defaults
813
821
  call_metadata = @config.rpcs.get_membership.metadata.to_h
814
822
 
815
- # Set x-goog-api-client and x-goog-user-project headers
823
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
816
824
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
817
825
  lib_name: @config.lib_name, lib_version: @config.lib_version,
818
826
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
819
827
  transports_version_send: [:rest]
820
828
 
829
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
821
830
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
822
831
 
823
832
  options.apply_defaults timeout: @config.rpcs.get_membership.timeout,
@@ -909,12 +918,13 @@ module Google
909
918
  # Customize the options with defaults
910
919
  call_metadata = @config.rpcs.get_message.metadata.to_h
911
920
 
912
- # Set x-goog-api-client and x-goog-user-project headers
921
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
913
922
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
914
923
  lib_name: @config.lib_name, lib_version: @config.lib_version,
915
924
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
916
925
  transports_version_send: [:rest]
917
926
 
927
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
918
928
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
919
929
 
920
930
  options.apply_defaults timeout: @config.rpcs.get_message.timeout,
@@ -1025,12 +1035,13 @@ module Google
1025
1035
  # Customize the options with defaults
1026
1036
  call_metadata = @config.rpcs.update_message.metadata.to_h
1027
1037
 
1028
- # Set x-goog-api-client and x-goog-user-project headers
1038
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1029
1039
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1030
1040
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1031
1041
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
1032
1042
  transports_version_send: [:rest]
1033
1043
 
1044
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1034
1045
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1035
1046
 
1036
1047
  options.apply_defaults timeout: @config.rpcs.update_message.timeout,
@@ -1130,12 +1141,13 @@ module Google
1130
1141
  # Customize the options with defaults
1131
1142
  call_metadata = @config.rpcs.delete_message.metadata.to_h
1132
1143
 
1133
- # Set x-goog-api-client and x-goog-user-project headers
1144
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1134
1145
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1135
1146
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1136
1147
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
1137
1148
  transports_version_send: [:rest]
1138
1149
 
1150
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1139
1151
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1140
1152
 
1141
1153
  options.apply_defaults timeout: @config.rpcs.delete_message.timeout,
@@ -1216,12 +1228,13 @@ module Google
1216
1228
  # Customize the options with defaults
1217
1229
  call_metadata = @config.rpcs.get_attachment.metadata.to_h
1218
1230
 
1219
- # Set x-goog-api-client and x-goog-user-project headers
1231
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1220
1232
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1221
1233
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1222
1234
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
1223
1235
  transports_version_send: [:rest]
1224
1236
 
1237
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1225
1238
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1226
1239
 
1227
1240
  options.apply_defaults timeout: @config.rpcs.get_attachment.timeout,
@@ -1305,12 +1318,13 @@ module Google
1305
1318
  # Customize the options with defaults
1306
1319
  call_metadata = @config.rpcs.upload_attachment.metadata.to_h
1307
1320
 
1308
- # Set x-goog-api-client and x-goog-user-project headers
1321
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1309
1322
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1310
1323
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1311
1324
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
1312
1325
  transports_version_send: [:rest]
1313
1326
 
1327
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1314
1328
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1315
1329
 
1316
1330
  options.apply_defaults timeout: @config.rpcs.upload_attachment.timeout,
@@ -1435,12 +1449,13 @@ module Google
1435
1449
  # Customize the options with defaults
1436
1450
  call_metadata = @config.rpcs.list_spaces.metadata.to_h
1437
1451
 
1438
- # Set x-goog-api-client and x-goog-user-project headers
1452
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1439
1453
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1440
1454
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1441
1455
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
1442
1456
  transports_version_send: [:rest]
1443
1457
 
1458
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1444
1459
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1445
1460
 
1446
1461
  options.apply_defaults timeout: @config.rpcs.list_spaces.timeout,
@@ -1526,12 +1541,13 @@ module Google
1526
1541
  # Customize the options with defaults
1527
1542
  call_metadata = @config.rpcs.get_space.metadata.to_h
1528
1543
 
1529
- # Set x-goog-api-client and x-goog-user-project headers
1544
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1530
1545
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1531
1546
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1532
1547
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
1533
1548
  transports_version_send: [:rest]
1534
1549
 
1550
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1535
1551
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1536
1552
 
1537
1553
  options.apply_defaults timeout: @config.rpcs.get_space.timeout,
@@ -1628,12 +1644,13 @@ module Google
1628
1644
  # Customize the options with defaults
1629
1645
  call_metadata = @config.rpcs.create_space.metadata.to_h
1630
1646
 
1631
- # Set x-goog-api-client and x-goog-user-project headers
1647
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1632
1648
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1633
1649
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1634
1650
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
1635
1651
  transports_version_send: [:rest]
1636
1652
 
1653
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1637
1654
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1638
1655
 
1639
1656
  options.apply_defaults timeout: @config.rpcs.create_space.timeout,
@@ -1660,17 +1677,28 @@ module Google
1660
1677
  # members](https://developers.google.com/workspace/chat/set-up-spaces).
1661
1678
  #
1662
1679
  # To specify the human members to add, add memberships with the appropriate
1663
- # `member.name` in the `SetUpSpaceRequest`. To add a human user, use
1664
- # `users/{user}`, where `{user}` can be the email address for the user. For
1665
- # users in the same Workspace organization `{user}` can also be the `id` for
1666
- # the person from the People API, or the `id` for the user in the Directory
1667
- # API. For example, if the People API Person profile ID for
1668
- # `user@example.com` is `123456789`, you can add the user to the space by
1669
- # setting the `membership.member.name` to `users/user@example.com` or
1670
- # `users/123456789`.
1671
- #
1672
- # For a space or group chat, if the caller blocks or is blocked by some
1673
- # members, then those members aren't added to the created space.
1680
+ # `membership.member.name`. To add a human user, use `users/{user}`, where
1681
+ # `{user}` can be the email address for the user. For users in the same
1682
+ # Workspace organization `{user}` can also be the `id` for the person from
1683
+ # the People API, or the `id` for the user in the Directory API. For example,
1684
+ # if the People API Person profile ID for `user@example.com` is `123456789`,
1685
+ # you can add the user to the space by setting the `membership.member.name`
1686
+ # to `users/user@example.com` or `users/123456789`.
1687
+ #
1688
+ # To specify the Google groups to add, add memberships with the
1689
+ # appropriate `membership.group_member.name`. To add or invite a Google
1690
+ # group, use `groups/{group}`, where `{group}` is the `id` for the group from
1691
+ # the Cloud Identity Groups API. For example, you can use [Cloud Identity
1692
+ # Groups lookup
1693
+ # API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup)
1694
+ # to retrieve the ID `123456789` for group email `group@example.com`, then
1695
+ # you can add the group to the space by setting the
1696
+ # `membership.group_member.name` to `groups/123456789`. Group email is not
1697
+ # supported, and Google groups can only be added as members in named spaces.
1698
+ #
1699
+ # For a named space or group chat, if the caller blocks, or is blocked
1700
+ # by some members, or doesn't have permission to add some members, then
1701
+ # those members aren't added to the created space.
1674
1702
  #
1675
1703
  # To create a direct message (DM) between the calling user and another human
1676
1704
  # user, specify exactly one membership to represent the human user. If
@@ -1742,19 +1770,23 @@ module Google
1742
1770
  # Specifying an existing request ID from the same Chat app with a different
1743
1771
  # authenticated user returns an error.
1744
1772
  # @param memberships [::Array<::Google::Apps::Chat::V1::Membership, ::Hash>]
1745
- # Optional. The Google Chat users to invite to join the space. Omit the
1746
- # calling user, as they are added automatically.
1773
+ # Optional. The Google Chat users or groups to invite to join the space. Omit
1774
+ # the calling user, as they are added automatically.
1747
1775
  #
1748
1776
  # The set currently allows up to 20 memberships (in addition to the caller).
1749
1777
  #
1750
- # The `Membership.member` field must contain a `user` with `name` populated
1751
- # (format: `users/{user}`) and `type` set to `User.Type.HUMAN`. You can only
1752
- # add human users when setting up a space (adding Chat apps is only supported
1753
- # for direct message setup with the calling app). You can also add members
1754
- # using the user's email as an alias for \\{user}. For example, the `user.name`
1755
- # can be `users/example@gmail.com`." To invite Gmail users or users from
1756
- # external Google Workspace domains, user's email must be used for
1757
- # `{user}`.
1778
+ # For human membership, the `Membership.member` field must contain a `user`
1779
+ # with `name` populated (format: `users/{user}`) and `type` set to
1780
+ # `User.Type.HUMAN`. You can only add human users when setting up a space
1781
+ # (adding Chat apps is only supported for direct message setup with the
1782
+ # calling app). You can also add members using the user's email as an alias
1783
+ # for \\{user}. For example, the `user.name` can be `users/example@gmail.com`.
1784
+ # To invite Gmail users or users from external Google Workspace domains,
1785
+ # user's email must be used for `{user}`.
1786
+ #
1787
+ # For Google group membership, the `Membership.group_member` field must
1788
+ # contain a `group` with `name` populated (format `groups/{group}`). You
1789
+ # can only add Google groups when setting `Space.spaceType` to `SPACE`.
1758
1790
  #
1759
1791
  # Optional when setting `Space.spaceType` to `SPACE`.
1760
1792
  #
@@ -1801,12 +1833,13 @@ module Google
1801
1833
  # Customize the options with defaults
1802
1834
  call_metadata = @config.rpcs.set_up_space.metadata.to_h
1803
1835
 
1804
- # Set x-goog-api-client and x-goog-user-project headers
1836
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1805
1837
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1806
1838
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1807
1839
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
1808
1840
  transports_version_send: [:rest]
1809
1841
 
1842
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1810
1843
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1811
1844
 
1812
1845
  options.apply_defaults timeout: @config.rpcs.set_up_space.timeout,
@@ -1926,12 +1959,13 @@ module Google
1926
1959
  # Customize the options with defaults
1927
1960
  call_metadata = @config.rpcs.update_space.metadata.to_h
1928
1961
 
1929
- # Set x-goog-api-client and x-goog-user-project headers
1962
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1930
1963
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1931
1964
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1932
1965
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
1933
1966
  transports_version_send: [:rest]
1934
1967
 
1968
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1935
1969
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1936
1970
 
1937
1971
  options.apply_defaults timeout: @config.rpcs.update_space.timeout,
@@ -2013,12 +2047,13 @@ module Google
2013
2047
  # Customize the options with defaults
2014
2048
  call_metadata = @config.rpcs.delete_space.metadata.to_h
2015
2049
 
2016
- # Set x-goog-api-client and x-goog-user-project headers
2050
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2017
2051
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2018
2052
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2019
2053
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
2020
2054
  transports_version_send: [:rest]
2021
2055
 
2056
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2022
2057
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2023
2058
 
2024
2059
  options.apply_defaults timeout: @config.rpcs.delete_space.timeout,
@@ -2098,12 +2133,13 @@ module Google
2098
2133
  # Customize the options with defaults
2099
2134
  call_metadata = @config.rpcs.complete_import_space.metadata.to_h
2100
2135
 
2101
- # Set x-goog-api-client and x-goog-user-project headers
2136
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2102
2137
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2103
2138
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2104
2139
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
2105
2140
  transports_version_send: [:rest]
2106
2141
 
2142
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2107
2143
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2108
2144
 
2109
2145
  options.apply_defaults timeout: @config.rpcs.complete_import_space.timeout,
@@ -2206,12 +2242,13 @@ module Google
2206
2242
  # Customize the options with defaults
2207
2243
  call_metadata = @config.rpcs.find_direct_message.metadata.to_h
2208
2244
 
2209
- # Set x-goog-api-client and x-goog-user-project headers
2245
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2210
2246
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2211
2247
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2212
2248
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
2213
2249
  transports_version_send: [:rest]
2214
2250
 
2251
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2215
2252
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2216
2253
 
2217
2254
  options.apply_defaults timeout: @config.rpcs.find_direct_message.timeout,
@@ -2241,8 +2278,9 @@ module Google
2241
2278
  # directly to the specified space. Requires [user
2242
2279
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
2243
2280
  #
2244
- # To specify the member to add, set the `membership.member.name` in the
2245
- # `CreateMembershipRequest`:
2281
+ # To specify the member to add, set the `membership.member.name` for the
2282
+ # human or app member, or set the `membership.group_member.name` for the
2283
+ # group member.
2246
2284
  #
2247
2285
  # - To add the calling app to a space or a direct message between two human
2248
2286
  # users, use `users/app`. Unable to add other
@@ -2256,6 +2294,15 @@ module Google
2256
2294
  # the space by setting the `membership.member.name` to
2257
2295
  # `users/user@example.com` or `users/123456789`.
2258
2296
  #
2297
+ # - To add or invite a Google group in a named space, use
2298
+ # `groups/{group}`, where `{group}` is the `id` for the group from the Cloud
2299
+ # Identity Groups API. For example, you can use [Cloud Identity Groups lookup
2300
+ # API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup)
2301
+ # to retrieve the ID `123456789` for group email `group@example.com`, then
2302
+ # you can add or invite the group to a named space by setting the
2303
+ # `membership.group_member.name` to `groups/123456789`. Group email is not
2304
+ # supported, and Google groups can only be added as members in named spaces.
2305
+ #
2259
2306
  # @overload create_membership(request, options = nil)
2260
2307
  # Pass arguments to `create_membership` via a request object, either of type
2261
2308
  # {::Google::Apps::Chat::V1::CreateMembershipRequest} or an equivalent Hash.
@@ -2327,12 +2374,13 @@ module Google
2327
2374
  # Customize the options with defaults
2328
2375
  call_metadata = @config.rpcs.create_membership.metadata.to_h
2329
2376
 
2330
- # Set x-goog-api-client and x-goog-user-project headers
2377
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2331
2378
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2332
2379
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2333
2380
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
2334
2381
  transports_version_send: [:rest]
2335
2382
 
2383
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2336
2384
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2337
2385
 
2338
2386
  options.apply_defaults timeout: @config.rpcs.create_membership.timeout,
@@ -2352,8 +2400,11 @@ module Google
2352
2400
  end
2353
2401
 
2354
2402
  ##
2355
- # Updates a membership. Requires [user
2356
- # authentication](https://developers.google.com/chat/api/guides/auth/users).
2403
+ # Updates a membership. For an example, see [Update a user's membership in
2404
+ # a space](https://developers.google.com/workspace/chat/update-members).
2405
+ #
2406
+ # Requires [user
2407
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
2357
2408
  #
2358
2409
  # @overload update_membership(request, options = nil)
2359
2410
  # Pass arguments to `update_membership` via a request object, either of type
@@ -2414,12 +2465,13 @@ module Google
2414
2465
  # Customize the options with defaults
2415
2466
  call_metadata = @config.rpcs.update_membership.metadata.to_h
2416
2467
 
2417
- # Set x-goog-api-client and x-goog-user-project headers
2468
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2418
2469
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2419
2470
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2420
2471
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
2421
2472
  transports_version_send: [:rest]
2422
2473
 
2474
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2423
2475
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2424
2476
 
2425
2477
  options.apply_defaults timeout: @config.rpcs.update_membership.timeout,
@@ -2510,12 +2562,13 @@ module Google
2510
2562
  # Customize the options with defaults
2511
2563
  call_metadata = @config.rpcs.delete_membership.metadata.to_h
2512
2564
 
2513
- # Set x-goog-api-client and x-goog-user-project headers
2565
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2514
2566
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2515
2567
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2516
2568
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
2517
2569
  transports_version_send: [:rest]
2518
2570
 
2571
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2519
2572
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2520
2573
 
2521
2574
  options.apply_defaults timeout: @config.rpcs.delete_membership.timeout,
@@ -2597,12 +2650,13 @@ module Google
2597
2650
  # Customize the options with defaults
2598
2651
  call_metadata = @config.rpcs.create_reaction.metadata.to_h
2599
2652
 
2600
- # Set x-goog-api-client and x-goog-user-project headers
2653
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2601
2654
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2602
2655
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2603
2656
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
2604
2657
  transports_version_send: [:rest]
2605
2658
 
2659
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2606
2660
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2607
2661
 
2608
2662
  options.apply_defaults timeout: @config.rpcs.create_reaction.timeout,
@@ -2742,12 +2796,13 @@ module Google
2742
2796
  # Customize the options with defaults
2743
2797
  call_metadata = @config.rpcs.list_reactions.metadata.to_h
2744
2798
 
2745
- # Set x-goog-api-client and x-goog-user-project headers
2799
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2746
2800
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2747
2801
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2748
2802
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
2749
2803
  transports_version_send: [:rest]
2750
2804
 
2805
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2751
2806
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2752
2807
 
2753
2808
  options.apply_defaults timeout: @config.rpcs.list_reactions.timeout,
@@ -2828,12 +2883,13 @@ module Google
2828
2883
  # Customize the options with defaults
2829
2884
  call_metadata = @config.rpcs.delete_reaction.metadata.to_h
2830
2885
 
2831
- # Set x-goog-api-client and x-goog-user-project headers
2886
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2832
2887
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2833
2888
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2834
2889
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
2835
2890
  transports_version_send: [:rest]
2836
2891
 
2892
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2837
2893
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2838
2894
 
2839
2895
  options.apply_defaults timeout: @config.rpcs.delete_reaction.timeout,
@@ -2854,7 +2910,9 @@ module Google
2854
2910
 
2855
2911
  ##
2856
2912
  # Returns details about a user's read state within a space, used to identify
2857
- # read and unread messages.
2913
+ # read and unread messages. For an example, see [Get details about a user's
2914
+ # space read
2915
+ # state](https://developers.google.com/workspace/chat/get-space-read-state).
2858
2916
  #
2859
2917
  # Requires [user
2860
2918
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
@@ -2924,12 +2982,13 @@ module Google
2924
2982
  # Customize the options with defaults
2925
2983
  call_metadata = @config.rpcs.get_space_read_state.metadata.to_h
2926
2984
 
2927
- # Set x-goog-api-client and x-goog-user-project headers
2985
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2928
2986
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2929
2987
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2930
2988
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
2931
2989
  transports_version_send: [:rest]
2932
2990
 
2991
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2933
2992
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2934
2993
 
2935
2994
  options.apply_defaults timeout: @config.rpcs.get_space_read_state.timeout,
@@ -2950,7 +3009,8 @@ module Google
2950
3009
 
2951
3010
  ##
2952
3011
  # Updates a user's read state within a space, used to identify read and
2953
- # unread messages.
3012
+ # unread messages. For an example, see [Update a user's space read
3013
+ # state](https://developers.google.com/workspace/chat/update-space-read-state).
2954
3014
  #
2955
3015
  # Requires [user
2956
3016
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
@@ -3034,12 +3094,13 @@ module Google
3034
3094
  # Customize the options with defaults
3035
3095
  call_metadata = @config.rpcs.update_space_read_state.metadata.to_h
3036
3096
 
3037
- # Set x-goog-api-client and x-goog-user-project headers
3097
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3038
3098
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3039
3099
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3040
3100
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
3041
3101
  transports_version_send: [:rest]
3042
3102
 
3103
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3043
3104
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3044
3105
 
3045
3106
  options.apply_defaults timeout: @config.rpcs.update_space_read_state.timeout,
@@ -3060,7 +3121,9 @@ module Google
3060
3121
 
3061
3122
  ##
3062
3123
  # Returns details about a user's read state within a thread, used to identify
3063
- # read and unread messages.
3124
+ # read and unread messages. For an example, see [Get details about a user's
3125
+ # thread read
3126
+ # state](https://developers.google.com/workspace/chat/get-thread-read-state).
3064
3127
  #
3065
3128
  # Requires [user
3066
3129
  # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
@@ -3131,12 +3194,13 @@ module Google
3131
3194
  # Customize the options with defaults
3132
3195
  call_metadata = @config.rpcs.get_thread_read_state.metadata.to_h
3133
3196
 
3134
- # Set x-goog-api-client and x-goog-user-project headers
3197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3135
3198
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3136
3199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3137
3200
  gapic_version: ::Google::Apps::Chat::V1::VERSION,
3138
3201
  transports_version_send: [:rest]
3139
3202
 
3203
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3140
3204
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3141
3205
 
3142
3206
  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.0"
24
+ VERSION = "0.1.2"
25
25
  end
26
26
  end
27
27
  end
@@ -7,7 +7,7 @@ require 'google/protobuf'
7
7
  require 'google/rpc/code_pb'
8
8
 
9
9
 
10
- descriptor_data = "\n\"google/chat/v1/action_status.proto\x12\x0egoogle.chat.v1\x1a\x15google/rpc/code.proto\"R\n\x0c\x41\x63tionStatus\x12%\n\x0bstatus_code\x18\x01 \x01(\x0e\x32\x10.google.rpc.Code\x12\x1b\n\x13user_facing_message\x18\x02 \x01(\tB\x9c\x01\n\x12\x63om.google.chat.v1B\x11\x41\x63tionStatusProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xaa\x02\x13Google.Apps.Chat.V1\xca\x02\x13Google\\Apps\\Chat\\V1\xea\x02\x16Google::Apps::Chat::V1b\x06proto3"
10
+ descriptor_data = "\n\"google/chat/v1/action_status.proto\x12\x0egoogle.chat.v1\x1a\x15google/rpc/code.proto\"R\n\x0c\x41\x63tionStatus\x12%\n\x0bstatus_code\x18\x01 \x01(\x0e\x32\x10.google.rpc.Code\x12\x1b\n\x13user_facing_message\x18\x02 \x01(\tB\xaa\x01\n\x12\x63om.google.chat.v1B\x11\x41\x63tionStatusProtoP\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"
11
11
 
12
12
  pool = Google::Protobuf::DescriptorPool.generated_pool
13
13
 
@@ -4,11 +4,12 @@
4
4
 
5
5
  require 'google/protobuf'
6
6
 
7
+ require 'google/api/resource_pb'
7
8
  require 'google/chat/v1/attachment_pb'
8
9
  require 'google/chat/v1/user_pb'
9
10
 
10
11
 
11
- descriptor_data = "\n\x1fgoogle/chat/v1/annotation.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/chat/v1/attachment.proto\x1a\x19google/chat/v1/user.proto\"\xbc\x02\n\nAnnotation\x12,\n\x04type\x18\x01 \x01(\x0e\x32\x1e.google.chat.v1.AnnotationType\x12\x18\n\x0bstart_index\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x0e\n\x06length\x18\x03 \x01(\x05\x12;\n\x0cuser_mention\x18\x04 \x01(\x0b\x32#.google.chat.v1.UserMentionMetadataH\x00\x12=\n\rslash_command\x18\x05 \x01(\x0b\x32$.google.chat.v1.SlashCommandMetadataH\x00\x12>\n\x12rich_link_metadata\x18\x06 \x01(\x0b\x32 .google.chat.v1.RichLinkMetadataH\x00\x42\n\n\x08metadataB\x0e\n\x0c_start_index\"\xa5\x01\n\x13UserMentionMetadata\x12\"\n\x04user\x18\x01 \x01(\x0b\x32\x14.google.chat.v1.User\x12\x36\n\x04type\x18\x02 \x01(\x0e\x32(.google.chat.v1.UserMentionMetadata.Type\"2\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\x0b\n\x07MENTION\x10\x02\"\xe8\x01\n\x14SlashCommandMetadata\x12!\n\x03\x62ot\x18\x01 \x01(\x0b\x32\x14.google.chat.v1.User\x12\x37\n\x04type\x18\x02 \x01(\x0e\x32).google.chat.v1.SlashCommandMetadata.Type\x12\x14\n\x0c\x63ommand_name\x18\x03 \x01(\t\x12\x12\n\ncommand_id\x18\x04 \x01(\x03\x12\x17\n\x0ftriggers_dialog\x18\x05 \x01(\x08\"1\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\n\n\x06INVOKE\x10\x02\"\xe8\x01\n\x10RichLinkMetadata\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x45\n\x0erich_link_type\x18\x02 \x01(\x0e\x32-.google.chat.v1.RichLinkMetadata.RichLinkType\x12\x38\n\x0f\x64rive_link_data\x18\x03 \x01(\x0b\x32\x1d.google.chat.v1.DriveLinkDataH\x00\">\n\x0cRichLinkType\x12\x1e\n\x1aRICH_LINK_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nDRIVE_FILE\x10\x01\x42\x06\n\x04\x64\x61ta\"X\n\rDriveLinkData\x12\x34\n\x0e\x64rive_data_ref\x18\x01 \x01(\x0b\x32\x1c.google.chat.v1.DriveDataRef\x12\x11\n\tmime_type\x18\x02 \x01(\t*e\n\x0e\x41nnotationType\x12\x1f\n\x1b\x41NNOTATION_TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0cUSER_MENTION\x10\x01\x12\x11\n\rSLASH_COMMAND\x10\x02\x12\r\n\tRICH_LINK\x10\x03\x42\x9a\x01\n\x12\x63om.google.chat.v1B\x0f\x41nnotationProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xaa\x02\x13Google.Apps.Chat.V1\xca\x02\x13Google\\Apps\\Chat\\V1\xea\x02\x16Google::Apps::Chat::V1b\x06proto3"
12
+ descriptor_data = "\n\x1fgoogle/chat/v1/annotation.proto\x12\x0egoogle.chat.v1\x1a\x19google/api/resource.proto\x1a\x1fgoogle/chat/v1/attachment.proto\x1a\x19google/chat/v1/user.proto\"\xbc\x02\n\nAnnotation\x12,\n\x04type\x18\x01 \x01(\x0e\x32\x1e.google.chat.v1.AnnotationType\x12\x18\n\x0bstart_index\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x0e\n\x06length\x18\x03 \x01(\x05\x12;\n\x0cuser_mention\x18\x04 \x01(\x0b\x32#.google.chat.v1.UserMentionMetadataH\x00\x12=\n\rslash_command\x18\x05 \x01(\x0b\x32$.google.chat.v1.SlashCommandMetadataH\x00\x12>\n\x12rich_link_metadata\x18\x06 \x01(\x0b\x32 .google.chat.v1.RichLinkMetadataH\x00\x42\n\n\x08metadataB\x0e\n\x0c_start_index\"\xa5\x01\n\x13UserMentionMetadata\x12\"\n\x04user\x18\x01 \x01(\x0b\x32\x14.google.chat.v1.User\x12\x36\n\x04type\x18\x02 \x01(\x0e\x32(.google.chat.v1.UserMentionMetadata.Type\"2\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\x0b\n\x07MENTION\x10\x02\"\xe8\x01\n\x14SlashCommandMetadata\x12!\n\x03\x62ot\x18\x01 \x01(\x0b\x32\x14.google.chat.v1.User\x12\x37\n\x04type\x18\x02 \x01(\x0e\x32).google.chat.v1.SlashCommandMetadata.Type\x12\x14\n\x0c\x63ommand_name\x18\x03 \x01(\t\x12\x12\n\ncommand_id\x18\x04 \x01(\x03\x12\x17\n\x0ftriggers_dialog\x18\x05 \x01(\x08\"1\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\n\n\x06INVOKE\x10\x02\"\xe8\x01\n\x10RichLinkMetadata\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x45\n\x0erich_link_type\x18\x02 \x01(\x0e\x32-.google.chat.v1.RichLinkMetadata.RichLinkType\x12\x38\n\x0f\x64rive_link_data\x18\x03 \x01(\x0b\x32\x1d.google.chat.v1.DriveLinkDataH\x00\">\n\x0cRichLinkType\x12\x1e\n\x1aRICH_LINK_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nDRIVE_FILE\x10\x01\x42\x06\n\x04\x64\x61ta\"X\n\rDriveLinkData\x12\x34\n\x0e\x64rive_data_ref\x18\x01 \x01(\x0b\x32\x1c.google.chat.v1.DriveDataRef\x12\x11\n\tmime_type\x18\x02 \x01(\t*e\n\x0e\x41nnotationType\x12\x1f\n\x1b\x41NNOTATION_TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0cUSER_MENTION\x10\x01\x12\x11\n\rSLASH_COMMAND\x10\x02\x12\r\n\tRICH_LINK\x10\x03\x42\xa8\x01\n\x12\x63om.google.chat.v1B\x0f\x41nnotationProtoP\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"
12
13
 
13
14
  pool = Google::Protobuf::DescriptorPool.generated_pool
14
15
 
@@ -8,7 +8,7 @@ require 'google/api/field_behavior_pb'
8
8
  require 'google/api/resource_pb'
9
9
 
10
10
 
11
- descriptor_data = "\n\x1fgoogle/chat/v1/attachment.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf3\x03\n\nAttachment\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x63ontent_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x63ontent_type\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12@\n\x13\x61ttachment_data_ref\x18\x04 \x01(\x0b\x32!.google.chat.v1.AttachmentDataRefH\x00\x12;\n\x0e\x64rive_data_ref\x18\x07 \x01(\x0b\x32\x1c.google.chat.v1.DriveDataRefB\x03\xe0\x41\x03H\x00\x12\x1a\n\rthumbnail_uri\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64ownload_uri\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x36\n\x06source\x18\t \x01(\x0e\x32!.google.chat.v1.Attachment.SourceB\x03\xe0\x41\x03\"F\n\x06Source\x12\x16\n\x12SOURCE_UNSPECIFIED\x10\x00\x12\x0e\n\nDRIVE_FILE\x10\x01\x12\x14\n\x10UPLOADED_CONTENT\x10\x02:_\xea\x41\\\n\x1e\x63hat.googleapis.com/Attachment\x12:spaces/{space}/messages/{message}/attachments/{attachment}B\n\n\x08\x64\x61ta_ref\"%\n\x0c\x44riveDataRef\x12\x15\n\rdrive_file_id\x18\x02 \x01(\t\"K\n\x11\x41ttachmentDataRef\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x1f\n\x17\x61ttachment_upload_token\x18\x02 \x01(\t\"L\n\x14GetAttachmentRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63hat.googleapis.com/Attachment\"e\n\x17UploadAttachmentRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1b\x63hat.googleapis.com/Message\x12\x15\n\x08\x66ilename\x18\x04 \x01(\tB\x03\xe0\x41\x02\"Z\n\x18UploadAttachmentResponse\x12>\n\x13\x61ttachment_data_ref\x18\x01 \x01(\x0b\x32!.google.chat.v1.AttachmentDataRefB\x9a\x01\n\x12\x63om.google.chat.v1B\x0f\x41ttachmentProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xaa\x02\x13Google.Apps.Chat.V1\xca\x02\x13Google\\Apps\\Chat\\V1\xea\x02\x16Google::Apps::Chat::V1b\x06proto3"
11
+ descriptor_data = "\n\x1fgoogle/chat/v1/attachment.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf3\x03\n\nAttachment\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x63ontent_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x63ontent_type\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12@\n\x13\x61ttachment_data_ref\x18\x04 \x01(\x0b\x32!.google.chat.v1.AttachmentDataRefH\x00\x12;\n\x0e\x64rive_data_ref\x18\x07 \x01(\x0b\x32\x1c.google.chat.v1.DriveDataRefB\x03\xe0\x41\x03H\x00\x12\x1a\n\rthumbnail_uri\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64ownload_uri\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x36\n\x06source\x18\t \x01(\x0e\x32!.google.chat.v1.Attachment.SourceB\x03\xe0\x41\x03\"F\n\x06Source\x12\x16\n\x12SOURCE_UNSPECIFIED\x10\x00\x12\x0e\n\nDRIVE_FILE\x10\x01\x12\x14\n\x10UPLOADED_CONTENT\x10\x02:_\xea\x41\\\n\x1e\x63hat.googleapis.com/Attachment\x12:spaces/{space}/messages/{message}/attachments/{attachment}B\n\n\x08\x64\x61ta_ref\"%\n\x0c\x44riveDataRef\x12\x15\n\rdrive_file_id\x18\x02 \x01(\t\"K\n\x11\x41ttachmentDataRef\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x1f\n\x17\x61ttachment_upload_token\x18\x02 \x01(\t\"L\n\x14GetAttachmentRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63hat.googleapis.com/Attachment\"e\n\x17UploadAttachmentRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1b\x63hat.googleapis.com/Message\x12\x15\n\x08\x66ilename\x18\x04 \x01(\tB\x03\xe0\x41\x02\"Z\n\x18UploadAttachmentResponse\x12>\n\x13\x61ttachment_data_ref\x18\x01 \x01(\x0b\x32!.google.chat.v1.AttachmentDataRefB\xa8\x01\n\x12\x63om.google.chat.v1B\x0f\x41ttachmentProtoP\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"
12
12
 
13
13
  pool = Google::Protobuf::DescriptorPool.generated_pool
14
14