google-apps-chat-v1 0.a → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/apps/chat/v1/chat_service/client.rb +3673 -0
  6. data/lib/google/apps/chat/v1/chat_service/credentials.rb +63 -0
  7. data/lib/google/apps/chat/v1/chat_service/paths.rb +191 -0
  8. data/lib/google/apps/chat/v1/chat_service/rest/client.rb +3497 -0
  9. data/lib/google/apps/chat/v1/chat_service/rest/service_stub.rb +1614 -0
  10. data/lib/google/apps/chat/v1/chat_service/rest.rb +53 -0
  11. data/lib/google/apps/chat/v1/chat_service.rb +56 -0
  12. data/lib/google/apps/chat/v1/rest.rb +37 -0
  13. data/lib/google/apps/chat/v1/version.rb +7 -2
  14. data/lib/google/apps/chat/v1.rb +45 -0
  15. data/lib/google/chat/v1/action_status_pb.rb +44 -0
  16. data/lib/google/chat/v1/annotation_pb.rb +56 -0
  17. data/lib/google/chat/v1/attachment_pb.rb +51 -0
  18. data/lib/google/chat/v1/chat_service_pb.rb +53 -0
  19. data/lib/google/chat/v1/chat_service_services_pb.rb +369 -0
  20. data/lib/google/chat/v1/contextual_addon_pb.rb +50 -0
  21. data/lib/google/chat/v1/deletion_metadata_pb.rb +43 -0
  22. data/lib/google/chat/v1/group_pb.rb +42 -0
  23. data/lib/google/chat/v1/history_state_pb.rb +42 -0
  24. data/lib/google/chat/v1/matched_url_pb.rb +44 -0
  25. data/lib/google/chat/v1/membership_pb.rb +61 -0
  26. data/lib/google/chat/v1/message_pb.rb +89 -0
  27. data/lib/google/chat/v1/reaction_pb.rb +54 -0
  28. data/lib/google/chat/v1/slash_command_pb.rb +42 -0
  29. data/lib/google/chat/v1/space_pb.rb +63 -0
  30. data/lib/google/chat/v1/space_read_state_pb.rb +51 -0
  31. data/lib/google/chat/v1/space_setup_pb.rb +48 -0
  32. data/lib/google/chat/v1/thread_read_state_pb.rb +48 -0
  33. data/lib/google/chat/v1/user_pb.rb +46 -0
  34. data/lib/google/chat/v1/widgets_pb.rb +53 -0
  35. data/lib/google-apps-chat-v1.rb +21 -0
  36. data/proto_docs/README.md +4 -0
  37. data/proto_docs/google/api/client.rb +399 -0
  38. data/proto_docs/google/api/field_behavior.rb +85 -0
  39. data/proto_docs/google/api/launch_stage.rb +71 -0
  40. data/proto_docs/google/api/resource.rb +222 -0
  41. data/proto_docs/google/apps/card/v1/card.rb +2076 -0
  42. data/proto_docs/google/chat/v1/action_status.rb +40 -0
  43. data/proto_docs/google/chat/v1/annotation.rb +186 -0
  44. data/proto_docs/google/chat/v1/attachment.rb +131 -0
  45. data/proto_docs/google/chat/v1/contextual_addon.rb +120 -0
  46. data/proto_docs/google/chat/v1/deletion_metadata.rb +60 -0
  47. data/proto_docs/google/chat/v1/group.rb +41 -0
  48. data/proto_docs/google/chat/v1/history_state.rb +42 -0
  49. data/proto_docs/google/chat/v1/matched_url.rb +37 -0
  50. data/proto_docs/google/chat/v1/membership.rb +295 -0
  51. data/proto_docs/google/chat/v1/message.rb +657 -0
  52. data/proto_docs/google/chat/v1/reaction.rb +185 -0
  53. data/proto_docs/google/chat/v1/slash_command.rb +37 -0
  54. data/proto_docs/google/chat/v1/space.rb +381 -0
  55. data/proto_docs/google/chat/v1/space_read_state.rb +104 -0
  56. data/proto_docs/google/chat/v1/space_setup.rb +92 -0
  57. data/proto_docs/google/chat/v1/thread_read_state.rb +66 -0
  58. data/proto_docs/google/chat/v1/user.rb +84 -0
  59. data/proto_docs/google/chat/v1/widgets.rb +293 -0
  60. data/proto_docs/google/protobuf/duration.rb +98 -0
  61. data/proto_docs/google/protobuf/empty.rb +34 -0
  62. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  63. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  64. data/proto_docs/google/protobuf/wrappers.rb +121 -0
  65. data/proto_docs/google/rpc/code.rb +185 -0
  66. data/proto_docs/google/type/color.rb +173 -0
  67. metadata +128 -10
@@ -0,0 +1,369 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/chat/v1/chat_service.proto for package 'Google.Apps.Chat.V1'
3
+ # Original file comments:
4
+ # Copyright 2023 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/chat/v1/chat_service_pb'
21
+
22
+ module Google
23
+ module Apps
24
+ module Chat
25
+ module V1
26
+ module ChatService
27
+ # Enables developers to build Chat apps and
28
+ # integrations on Google Chat Platform.
29
+ class Service
30
+
31
+ include ::GRPC::GenericService
32
+
33
+ self.marshal_class_method = :encode
34
+ self.unmarshal_class_method = :decode
35
+ self.service_name = 'google.chat.v1.ChatService'
36
+
37
+ # Creates a message in a Google Chat space. The maximum message size,
38
+ # including text and cards, is 32,000 bytes. For an example, see [Send a
39
+ # message](https://developers.google.com/workspace/chat/create-messages).
40
+ #
41
+ # Calling this method requires
42
+ # [authentication](https://developers.google.com/workspace/chat/authenticate-authorize)
43
+ # and supports the following authentication types:
44
+ #
45
+ # - For text messages, user authentication or app authentication are
46
+ # supported.
47
+ # - For card messages, only app authentication is supported. (Only Chat apps
48
+ # can create card messages.)
49
+ rpc :CreateMessage, ::Google::Apps::Chat::V1::CreateMessageRequest, ::Google::Apps::Chat::V1::Message
50
+ # Lists messages in a space that the caller is a member of, including
51
+ # messages from blocked members and spaces. For an example, see
52
+ # [List messages](/chat/api/guides/v1/messages/list).
53
+ # Requires [user
54
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
55
+ rpc :ListMessages, ::Google::Apps::Chat::V1::ListMessagesRequest, ::Google::Apps::Chat::V1::ListMessagesResponse
56
+ # Lists memberships in a space. For an example, see [List users and Google
57
+ # Chat apps in a
58
+ # space](https://developers.google.com/workspace/chat/list-members). Listing
59
+ # memberships with [app
60
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
61
+ # lists memberships in spaces that the Chat app has
62
+ # access to, but excludes Chat app memberships,
63
+ # including its own. Listing memberships with
64
+ # [User
65
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
66
+ # lists memberships in spaces that the authenticated user has access to.
67
+ #
68
+ # Requires
69
+ # [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
70
+ # Supports
71
+ # [app
72
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
73
+ # and [user
74
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
75
+ rpc :ListMemberships, ::Google::Apps::Chat::V1::ListMembershipsRequest, ::Google::Apps::Chat::V1::ListMembershipsResponse
76
+ # Returns details about a membership. For an example, see
77
+ # [Get details about a user's or Google Chat app's
78
+ # membership](https://developers.google.com/workspace/chat/get-members).
79
+ #
80
+ # Requires
81
+ # [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
82
+ # Supports
83
+ # [app
84
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
85
+ # and [user
86
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
87
+ rpc :GetMembership, ::Google::Apps::Chat::V1::GetMembershipRequest, ::Google::Apps::Chat::V1::Membership
88
+ # Returns details about a message.
89
+ # For an example, see [Get details about a
90
+ # message](https://developers.google.com/workspace/chat/get-messages).
91
+ #
92
+ # Requires
93
+ # [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
94
+ # Supports
95
+ # [app
96
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
97
+ # and [user
98
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
99
+ #
100
+ # Note: Might return a message from a blocked member or space.
101
+ rpc :GetMessage, ::Google::Apps::Chat::V1::GetMessageRequest, ::Google::Apps::Chat::V1::Message
102
+ # Updates a message. There's a difference between the `patch` and `update`
103
+ # methods. The `patch`
104
+ # method uses a `patch` request while the `update` method uses a `put`
105
+ # request. We recommend using the `patch` method. For an example, see
106
+ # [Update a
107
+ # message](https://developers.google.com/workspace/chat/update-messages).
108
+ #
109
+ # Requires
110
+ # [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
111
+ # Supports
112
+ # [app
113
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
114
+ # and [user
115
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
116
+ # When using app authentication, requests can only update messages
117
+ # created by the calling Chat app.
118
+ rpc :UpdateMessage, ::Google::Apps::Chat::V1::UpdateMessageRequest, ::Google::Apps::Chat::V1::Message
119
+ # Deletes a message.
120
+ # For an example, see [Delete a
121
+ # message](https://developers.google.com/workspace/chat/delete-messages).
122
+ #
123
+ # Requires
124
+ # [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
125
+ # Supports
126
+ # [app
127
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
128
+ # and [user
129
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
130
+ # When using app authentication, requests can only delete messages
131
+ # created by the calling Chat app.
132
+ rpc :DeleteMessage, ::Google::Apps::Chat::V1::DeleteMessageRequest, ::Google::Protobuf::Empty
133
+ # Gets the metadata of a message attachment. The attachment data is fetched
134
+ # using the [media
135
+ # API](https://developers.google.com/workspace/chat/api/reference/rest/v1/media/download).
136
+ # For an example, see
137
+ # [Get metadata about a message
138
+ # attachment](https://developers.google.com/workspace/chat/get-media-attachments).
139
+ # Requires [app
140
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
141
+ rpc :GetAttachment, ::Google::Apps::Chat::V1::GetAttachmentRequest, ::Google::Apps::Chat::V1::Attachment
142
+ # Uploads an attachment. For an example, see
143
+ # [Upload media as a file
144
+ # attachment](https://developers.google.com/workspace/chat/upload-media-attachments).
145
+ # Requires user
146
+ # [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
147
+ #
148
+ # You can upload attachments up to 200 MB. Certain file types aren't
149
+ # supported. For details, see [File types blocked by Google
150
+ # Chat](https://support.google.com/chat/answer/7651457?&co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat).
151
+ rpc :UploadAttachment, ::Google::Apps::Chat::V1::UploadAttachmentRequest, ::Google::Apps::Chat::V1::UploadAttachmentResponse
152
+ # Lists spaces the caller is a member of. Group chats and DMs aren't listed
153
+ # until the first message is sent. For an example, see
154
+ # [List
155
+ # spaces](https://developers.google.com/workspace/chat/list-spaces).
156
+ #
157
+ # Requires
158
+ # [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
159
+ # Supports
160
+ # [app
161
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
162
+ # and [user
163
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
164
+ #
165
+ # Lists spaces visible to the caller or authenticated user. Group chats
166
+ # and DMs aren't listed until the first message is sent.
167
+ #
168
+ rpc :ListSpaces, ::Google::Apps::Chat::V1::ListSpacesRequest, ::Google::Apps::Chat::V1::ListSpacesResponse
169
+ # Returns details about a space. For an example, see
170
+ # [Get details about a
171
+ # space](https://developers.google.com/workspace/chat/get-spaces).
172
+ #
173
+ # Requires
174
+ # [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
175
+ # Supports
176
+ # [app
177
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
178
+ # and [user
179
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
180
+ rpc :GetSpace, ::Google::Apps::Chat::V1::GetSpaceRequest, ::Google::Apps::Chat::V1::Space
181
+ # Creates a named space. Spaces grouped by topics aren't supported. For an
182
+ # example, see [Create a
183
+ # space](https://developers.google.com/workspace/chat/create-spaces).
184
+ #
185
+ # If you receive the error message `ALREADY_EXISTS` when creating
186
+ # a space, try a different `displayName`. An existing space within
187
+ # the Google Workspace organization might already use this display name.
188
+ #
189
+ # Requires [user
190
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
191
+ rpc :CreateSpace, ::Google::Apps::Chat::V1::CreateSpaceRequest, ::Google::Apps::Chat::V1::Space
192
+ # Creates a space and adds specified users to it. The calling user is
193
+ # automatically added to the space, and shouldn't be specified as a
194
+ # membership in the request. For an example, see
195
+ # [Set up a space with initial
196
+ # members](https://developers.google.com/workspace/chat/set-up-spaces).
197
+ #
198
+ # To specify the human members to add, add memberships with the appropriate
199
+ # `membership.member.name`. To add a human user, use `users/{user}`, where
200
+ # `{user}` can be the email address for the user. For users in the same
201
+ # Workspace organization `{user}` can also be the `id` for the person from
202
+ # the People API, or the `id` for the user in the Directory API. For example,
203
+ # if the People API Person profile ID for `user@example.com` is `123456789`,
204
+ # you can add the user to the space by setting the `membership.member.name`
205
+ # to `users/user@example.com` or `users/123456789`.
206
+ #
207
+ # For a named space or group chat, if the caller blocks, or is blocked
208
+ # by some members, or doesn't have permission to add some members, then
209
+ # those members aren't added to the created space.
210
+ #
211
+ # To create a direct message (DM) between the calling user and another human
212
+ # user, specify exactly one membership to represent the human user. If
213
+ # one user blocks the other, the request fails and the DM isn't created.
214
+ #
215
+ # To create a DM between the calling user and the calling app, set
216
+ # `Space.singleUserBotDm` to `true` and don't specify any memberships. You
217
+ # can only use this method to set up a DM with the calling app. To add the
218
+ # calling app as a member of a space or an existing DM between two human
219
+ # users, see
220
+ # [Invite or add a user or app to a
221
+ # space](https://developers.google.com/workspace/chat/create-members).
222
+ #
223
+ # If a DM already exists between two users, even when one user blocks the
224
+ # other at the time a request is made, then the existing DM is returned.
225
+ #
226
+ # Spaces with threaded replies aren't supported. If you receive the error
227
+ # message `ALREADY_EXISTS` when setting up a space, try a different
228
+ # `displayName`. An existing space within the Google Workspace organization
229
+ # might already use this display name.
230
+ #
231
+ # Requires [user
232
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
233
+ rpc :SetUpSpace, ::Google::Apps::Chat::V1::SetUpSpaceRequest, ::Google::Apps::Chat::V1::Space
234
+ # Updates a space. For an example, see
235
+ # [Update a
236
+ # space](https://developers.google.com/workspace/chat/update-spaces).
237
+ #
238
+ # If you're updating the `displayName` field and receive the error message
239
+ # `ALREADY_EXISTS`, try a different display name.. An existing space within
240
+ # the Google Workspace organization might already use this display name.
241
+ #
242
+ # Requires [user
243
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
244
+ rpc :UpdateSpace, ::Google::Apps::Chat::V1::UpdateSpaceRequest, ::Google::Apps::Chat::V1::Space
245
+ # Deletes a named space. Always performs a cascading delete, which means
246
+ # that the space's child resources—like messages posted in the space and
247
+ # memberships in the space—are also deleted. For an example, see
248
+ # [Delete a
249
+ # space](https://developers.google.com/workspace/chat/delete-spaces).
250
+ # Requires [user
251
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
252
+ # from a user who has permission to delete the space.
253
+ rpc :DeleteSpace, ::Google::Apps::Chat::V1::DeleteSpaceRequest, ::Google::Protobuf::Empty
254
+ # Completes the
255
+ # [import process](https://developers.google.com/workspace/chat/import-data)
256
+ # for the specified space and makes it visible to users.
257
+ # Requires app authentication and domain-wide delegation. For more
258
+ # information, see [Authorize Google Chat apps to import
259
+ # data](https://developers.google.com/workspace/chat/authorize-import).
260
+ rpc :CompleteImportSpace, ::Google::Apps::Chat::V1::CompleteImportSpaceRequest, ::Google::Apps::Chat::V1::CompleteImportSpaceResponse
261
+ # Returns the existing direct message with the specified user. If no direct
262
+ # message space is found, returns a `404 NOT_FOUND` error. For an example,
263
+ # see
264
+ # [Find a direct message](/chat/api/guides/v1/spaces/find-direct-message).
265
+ #
266
+ # With [user
267
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
268
+ # returns the direct message space between the specified user and the
269
+ # authenticated user.
270
+ #
271
+ # With [app
272
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
273
+ # returns the direct message space between the specified user and the calling
274
+ # Chat app.
275
+ #
276
+ # Requires [user
277
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
278
+ # or [app
279
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
280
+ rpc :FindDirectMessage, ::Google::Apps::Chat::V1::FindDirectMessageRequest, ::Google::Apps::Chat::V1::Space
281
+ # Creates a human membership or app membership for the calling app. Creating
282
+ # memberships for other apps isn't supported. For an example, see
283
+ # [Invite or add a user or a Google Chat app to a
284
+ # space](https://developers.google.com/workspace/chat/create-members).
285
+ # When creating a membership, if the specified member has their auto-accept
286
+ # policy turned off, then they're invited, and must accept the space
287
+ # invitation before joining. Otherwise, creating a membership adds the member
288
+ # directly to the specified space. Requires [user
289
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
290
+ #
291
+ # To specify the member to add, set the `membership.member.name` for the
292
+ # human or app member.
293
+ #
294
+ # - To add the calling app to a space or a direct message between two human
295
+ # users, use `users/app`. Unable to add other
296
+ # apps to the space.
297
+ #
298
+ # - To add a human user, use `users/{user}`, where `{user}` can be the email
299
+ # address for the user. For users in the same Workspace organization `{user}`
300
+ # can also be the `id` for the person from the People API, or the `id` for
301
+ # the user in the Directory API. For example, if the People API Person
302
+ # profile ID for `user@example.com` is `123456789`, you can add the user to
303
+ # the space by setting the `membership.member.name` to
304
+ # `users/user@example.com` or `users/123456789`.
305
+ rpc :CreateMembership, ::Google::Apps::Chat::V1::CreateMembershipRequest, ::Google::Apps::Chat::V1::Membership
306
+ # Updates a membership. For an example, see [Update a user's membership in
307
+ # a space](https://developers.google.com/workspace/chat/update-members).
308
+ #
309
+ # Requires [user
310
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
311
+ rpc :UpdateMembership, ::Google::Apps::Chat::V1::UpdateMembershipRequest, ::Google::Apps::Chat::V1::Membership
312
+ # Deletes a membership. For an example, see
313
+ # [Remove a user or a Google Chat app from a
314
+ # space](https://developers.google.com/workspace/chat/delete-members).
315
+ #
316
+ # Requires [user
317
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
318
+ rpc :DeleteMembership, ::Google::Apps::Chat::V1::DeleteMembershipRequest, ::Google::Apps::Chat::V1::Membership
319
+ # Creates a reaction and adds it to a message. Only unicode emojis are
320
+ # supported. For an example, see
321
+ # [Add a reaction to a
322
+ # message](https://developers.google.com/workspace/chat/create-reactions).
323
+ # Requires [user
324
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
325
+ rpc :CreateReaction, ::Google::Apps::Chat::V1::CreateReactionRequest, ::Google::Apps::Chat::V1::Reaction
326
+ # Lists reactions to a message. For an example, see
327
+ # [List reactions for a
328
+ # message](https://developers.google.com/workspace/chat/list-reactions).
329
+ # Requires [user
330
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
331
+ rpc :ListReactions, ::Google::Apps::Chat::V1::ListReactionsRequest, ::Google::Apps::Chat::V1::ListReactionsResponse
332
+ # Deletes a reaction to a message. Only unicode emojis are supported.
333
+ # For an example, see
334
+ # [Delete a
335
+ # reaction](https://developers.google.com/workspace/chat/delete-reactions).
336
+ # Requires [user
337
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
338
+ rpc :DeleteReaction, ::Google::Apps::Chat::V1::DeleteReactionRequest, ::Google::Protobuf::Empty
339
+ # Returns details about a user's read state within a space, used to identify
340
+ # read and unread messages. For an example, see [Get details about a user's
341
+ # space read
342
+ # state](https://developers.google.com/workspace/chat/get-space-read-state).
343
+ #
344
+ # Requires [user
345
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
346
+ rpc :GetSpaceReadState, ::Google::Apps::Chat::V1::GetSpaceReadStateRequest, ::Google::Apps::Chat::V1::SpaceReadState
347
+ # Updates a user's read state within a space, used to identify read and
348
+ # unread messages. For an example, see [Update a user's space read
349
+ # state](https://developers.google.com/workspace/chat/update-space-read-state).
350
+ #
351
+ # Requires [user
352
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
353
+ rpc :UpdateSpaceReadState, ::Google::Apps::Chat::V1::UpdateSpaceReadStateRequest, ::Google::Apps::Chat::V1::SpaceReadState
354
+ # Returns details about a user's read state within a thread, used to identify
355
+ # read and unread messages. For an example, see [Get details about a user's
356
+ # thread read
357
+ # state](https://developers.google.com/workspace/chat/get-thread-read-state).
358
+ #
359
+ # Requires [user
360
+ # authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
361
+ rpc :GetThreadReadState, ::Google::Apps::Chat::V1::GetThreadReadStateRequest, ::Google::Apps::Chat::V1::ThreadReadState
362
+ end
363
+
364
+ Stub = Service.rpc_stub_class
365
+ end
366
+ end
367
+ end
368
+ end
369
+ end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/chat/v1/contextual_addon.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/chat/v1/widgets_pb'
8
+
9
+
10
+ descriptor_data = "\n%google/chat/v1/contextual_addon.proto\x12\x0egoogle.chat.v1\x1a\x1cgoogle/chat/v1/widgets.proto\"\x8a\x05\n\x15\x43ontextualAddOnMarkup\x1a\xf0\x04\n\x04\x43\x61rd\x12\x45\n\x06header\x18\x01 \x01(\x0b\x32\x35.google.chat.v1.ContextualAddOnMarkup.Card.CardHeader\x12\x44\n\x08sections\x18\x02 \x03(\x0b\x32\x32.google.chat.v1.ContextualAddOnMarkup.Card.Section\x12K\n\x0c\x63\x61rd_actions\x18\x03 \x03(\x0b\x32\x35.google.chat.v1.ContextualAddOnMarkup.Card.CardAction\x12\x0c\n\x04name\x18\x04 \x01(\t\x1a\xd9\x01\n\nCardHeader\x12\r\n\x05title\x18\x01 \x01(\t\x12\x10\n\x08subtitle\x18\x02 \x01(\t\x12U\n\x0bimage_style\x18\x03 \x01(\x0e\x32@.google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle\x12\x11\n\timage_url\x18\x04 \x01(\t\"@\n\nImageStyle\x12\x1b\n\x17IMAGE_STYLE_UNSPECIFIED\x10\x00\x12\t\n\x05IMAGE\x10\x01\x12\n\n\x06\x41VATAR\x10\x02\x1aH\n\x07Section\x12\x0e\n\x06header\x18\x01 \x01(\t\x12-\n\x07widgets\x18\x02 \x03(\x0b\x32\x1c.google.chat.v1.WidgetMarkup\x1aZ\n\nCardAction\x12\x14\n\x0c\x61\x63tion_label\x18\x01 \x01(\t\x12\x36\n\x08on_click\x18\x02 \x01(\x0b\x32$.google.chat.v1.WidgetMarkup.OnClickB\xad\x01\n\x12\x63om.google.chat.v1B\x14\x43ontextualAddOnProtoP\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
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.chat.v1.WidgetMarkup", "google/chat/v1/widgets.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
31
+ end
32
+ end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
35
+ end
36
+
37
+ module Google
38
+ module Apps
39
+ module Chat
40
+ module V1
41
+ ContextualAddOnMarkup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ContextualAddOnMarkup").msgclass
42
+ ContextualAddOnMarkup::Card = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ContextualAddOnMarkup.Card").msgclass
43
+ ContextualAddOnMarkup::Card::CardHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ContextualAddOnMarkup.Card.CardHeader").msgclass
44
+ ContextualAddOnMarkup::Card::CardHeader::ImageStyle = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle").enummodule
45
+ ContextualAddOnMarkup::Card::Section = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ContextualAddOnMarkup.Card.Section").msgclass
46
+ ContextualAddOnMarkup::Card::CardAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ContextualAddOnMarkup.Card.CardAction").msgclass
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/chat/v1/deletion_metadata.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n&google/chat/v1/deletion_metadata.proto\x12\x0egoogle.chat.v1\"\xf7\x01\n\x10\x44\x65letionMetadata\x12\x44\n\rdeletion_type\x18\x01 \x01(\x0e\x32-.google.chat.v1.DeletionMetadata.DeletionType\"\x9c\x01\n\x0c\x44\x65letionType\x12\x1d\n\x19\x44\x45LETION_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATOR\x10\x01\x12\x0f\n\x0bSPACE_OWNER\x10\x02\x12\t\n\x05\x41\x44MIN\x10\x03\x12\x16\n\x12\x41PP_MESSAGE_EXPIRY\x10\x04\x12\x13\n\x0f\x43REATOR_VIA_APP\x10\x05\x12\x17\n\x13SPACE_OWNER_VIA_APP\x10\x06\x42\xae\x01\n\x12\x63om.google.chat.v1B\x15\x44\x65letionMetadataProtoP\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"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
+ end
29
+ end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
32
+ end
33
+
34
+ module Google
35
+ module Apps
36
+ module Chat
37
+ module V1
38
+ DeletionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.DeletionMetadata").msgclass
39
+ DeletionMetadata::DeletionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.DeletionMetadata.DeletionType").enummodule
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/chat/v1/group.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n\x1agoogle/chat/v1/group.proto\x12\x0egoogle.chat.v1\"\x15\n\x05Group\x12\x0c\n\x04name\x18\x01 \x01(\tB\xa3\x01\n\x12\x63om.google.chat.v1B\nGroupProtoP\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"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
+ end
29
+ end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
32
+ end
33
+
34
+ module Google
35
+ module Apps
36
+ module Chat
37
+ module V1
38
+ Group = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.Group").msgclass
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/chat/v1/history_state.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n\"google/chat/v1/history_state.proto\x12\x0egoogle.chat.v1*N\n\x0cHistoryState\x12\x1d\n\x19HISTORY_STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bHISTORY_OFF\x10\x01\x12\x0e\n\nHISTORY_ON\x10\x02\x42\xaa\x01\n\x12\x63om.google.chat.v1B\x11HistoryStateProtoP\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"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
+ end
29
+ end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
32
+ end
33
+
34
+ module Google
35
+ module Apps
36
+ module Chat
37
+ module V1
38
+ HistoryState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.HistoryState").enummodule
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/chat/v1/matched_url.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+
9
+
10
+ descriptor_data = "\n google/chat/v1/matched_url.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\"\x1e\n\nMatchedUrl\x12\x10\n\x03url\x18\x02 \x01(\tB\x03\xe0\x41\x03\x42\xa8\x01\n\x12\x63om.google.chat.v1B\x0fMatchedUrlProtoP\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
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
30
+ end
31
+ end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
34
+ end
35
+
36
+ module Google
37
+ module Apps
38
+ module Chat
39
+ module V1
40
+ MatchedUrl = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MatchedUrl").msgclass
41
+ end
42
+ end
43
+ end
44
+ end