google-apps-chat-v1 0.a → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +144 -8
- data/lib/google/apps/chat/v1/chat_service/client.rb +3663 -0
- data/lib/google/apps/chat/v1/chat_service/credentials.rb +63 -0
- data/lib/google/apps/chat/v1/chat_service/paths.rb +191 -0
- data/lib/google/apps/chat/v1/chat_service/rest/client.rb +3487 -0
- data/lib/google/apps/chat/v1/chat_service/rest/service_stub.rb +1614 -0
- data/lib/google/apps/chat/v1/chat_service/rest.rb +53 -0
- data/lib/google/apps/chat/v1/chat_service.rb +56 -0
- data/lib/google/apps/chat/v1/rest.rb +37 -0
- data/lib/google/apps/chat/v1/version.rb +7 -2
- data/lib/google/apps/chat/v1.rb +45 -0
- data/lib/google/chat/v1/action_status_pb.rb +44 -0
- data/lib/google/chat/v1/annotation_pb.rb +55 -0
- data/lib/google/chat/v1/attachment_pb.rb +51 -0
- data/lib/google/chat/v1/chat_service_pb.rb +53 -0
- data/lib/google/chat/v1/chat_service_services_pb.rb +359 -0
- data/lib/google/chat/v1/contextual_addon_pb.rb +50 -0
- data/lib/google/chat/v1/deletion_metadata_pb.rb +43 -0
- data/lib/google/chat/v1/group_pb.rb +42 -0
- data/lib/google/chat/v1/history_state_pb.rb +42 -0
- data/lib/google/chat/v1/matched_url_pb.rb +44 -0
- data/lib/google/chat/v1/membership_pb.rb +61 -0
- data/lib/google/chat/v1/message_pb.rb +89 -0
- data/lib/google/chat/v1/reaction_pb.rb +54 -0
- data/lib/google/chat/v1/slash_command_pb.rb +42 -0
- data/lib/google/chat/v1/space_pb.rb +63 -0
- data/lib/google/chat/v1/space_read_state_pb.rb +51 -0
- data/lib/google/chat/v1/space_setup_pb.rb +48 -0
- data/lib/google/chat/v1/thread_read_state_pb.rb +48 -0
- data/lib/google/chat/v1/user_pb.rb +46 -0
- data/lib/google/chat/v1/widgets_pb.rb +53 -0
- data/lib/google-apps-chat-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +399 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/apps/card/v1/card.rb +2076 -0
- data/proto_docs/google/chat/v1/action_status.rb +40 -0
- data/proto_docs/google/chat/v1/annotation.rb +186 -0
- data/proto_docs/google/chat/v1/attachment.rb +131 -0
- data/proto_docs/google/chat/v1/contextual_addon.rb +120 -0
- data/proto_docs/google/chat/v1/deletion_metadata.rb +60 -0
- data/proto_docs/google/chat/v1/group.rb +41 -0
- data/proto_docs/google/chat/v1/history_state.rb +42 -0
- data/proto_docs/google/chat/v1/matched_url.rb +37 -0
- data/proto_docs/google/chat/v1/membership.rb +294 -0
- data/proto_docs/google/chat/v1/message.rb +657 -0
- data/proto_docs/google/chat/v1/reaction.rb +185 -0
- data/proto_docs/google/chat/v1/slash_command.rb +37 -0
- data/proto_docs/google/chat/v1/space.rb +382 -0
- data/proto_docs/google/chat/v1/space_read_state.rb +104 -0
- data/proto_docs/google/chat/v1/space_setup.rb +92 -0
- data/proto_docs/google/chat/v1/thread_read_state.rb +66 -0
- data/proto_docs/google/chat/v1/user.rb +84 -0
- data/proto_docs/google/chat/v1/widgets.rb +293 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- data/proto_docs/google/rpc/code.rb +185 -0
- data/proto_docs/google/type/color.rb +173 -0
- metadata +128 -10
@@ -0,0 +1,359 @@
|
|
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. For an example, see [Send a
|
38
|
+
# message](https://developers.google.com/workspace/chat/create-messages).
|
39
|
+
#
|
40
|
+
# Calling this method requires
|
41
|
+
# [authentication](https://developers.google.com/workspace/chat/authenticate-authorize)
|
42
|
+
# and supports the following authentication types:
|
43
|
+
#
|
44
|
+
# - For text messages, user authentication or app authentication are
|
45
|
+
# supported.
|
46
|
+
# - For card messages, only app authentication is supported. (Only Chat apps
|
47
|
+
# can create card messages.)
|
48
|
+
rpc :CreateMessage, ::Google::Apps::Chat::V1::CreateMessageRequest, ::Google::Apps::Chat::V1::Message
|
49
|
+
# Lists messages in a space that the caller is a member of, including
|
50
|
+
# messages from blocked members and spaces. For an example, see
|
51
|
+
# [List messages](/chat/api/guides/v1/messages/list).
|
52
|
+
# Requires [user
|
53
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
54
|
+
rpc :ListMessages, ::Google::Apps::Chat::V1::ListMessagesRequest, ::Google::Apps::Chat::V1::ListMessagesResponse
|
55
|
+
# Lists memberships in a space. For an example, see [List users and Google
|
56
|
+
# Chat apps in a
|
57
|
+
# space](https://developers.google.com/workspace/chat/list-members). Listing
|
58
|
+
# memberships with [app
|
59
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
60
|
+
# lists memberships in spaces that the Chat app has
|
61
|
+
# access to, but excludes Chat app memberships,
|
62
|
+
# including its own. Listing memberships with
|
63
|
+
# [User
|
64
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
65
|
+
# lists memberships in spaces that the authenticated user has access to.
|
66
|
+
#
|
67
|
+
# Requires
|
68
|
+
# [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
|
69
|
+
# Supports
|
70
|
+
# [app
|
71
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
72
|
+
# and [user
|
73
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
74
|
+
rpc :ListMemberships, ::Google::Apps::Chat::V1::ListMembershipsRequest, ::Google::Apps::Chat::V1::ListMembershipsResponse
|
75
|
+
# Returns details about a membership. For an example, see
|
76
|
+
# [Get details about a user's or Google Chat app's
|
77
|
+
# membership](https://developers.google.com/workspace/chat/get-members).
|
78
|
+
#
|
79
|
+
# Requires
|
80
|
+
# [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
|
81
|
+
# Supports
|
82
|
+
# [app
|
83
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
84
|
+
# and [user
|
85
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
86
|
+
rpc :GetMembership, ::Google::Apps::Chat::V1::GetMembershipRequest, ::Google::Apps::Chat::V1::Membership
|
87
|
+
# Returns details about a message.
|
88
|
+
# For an example, see [Get details about a
|
89
|
+
# message](https://developers.google.com/workspace/chat/get-messages).
|
90
|
+
#
|
91
|
+
# Requires
|
92
|
+
# [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
|
93
|
+
# Supports
|
94
|
+
# [app
|
95
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
96
|
+
# and [user
|
97
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
98
|
+
#
|
99
|
+
# Note: Might return a message from a blocked member or space.
|
100
|
+
rpc :GetMessage, ::Google::Apps::Chat::V1::GetMessageRequest, ::Google::Apps::Chat::V1::Message
|
101
|
+
# Updates a message. There's a difference between the `patch` and `update`
|
102
|
+
# methods. The `patch`
|
103
|
+
# method uses a `patch` request while the `update` method uses a `put`
|
104
|
+
# request. We recommend using the `patch` method. For an example, see
|
105
|
+
# [Update a
|
106
|
+
# message](https://developers.google.com/workspace/chat/update-messages).
|
107
|
+
#
|
108
|
+
# Requires
|
109
|
+
# [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
|
110
|
+
# Supports
|
111
|
+
# [app
|
112
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
113
|
+
# and [user
|
114
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
115
|
+
# When using app authentication, requests can only update messages
|
116
|
+
# created by the calling Chat app.
|
117
|
+
rpc :UpdateMessage, ::Google::Apps::Chat::V1::UpdateMessageRequest, ::Google::Apps::Chat::V1::Message
|
118
|
+
# Deletes a message.
|
119
|
+
# For an example, see [Delete a
|
120
|
+
# message](https://developers.google.com/workspace/chat/delete-messages).
|
121
|
+
#
|
122
|
+
# Requires
|
123
|
+
# [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
|
124
|
+
# Supports
|
125
|
+
# [app
|
126
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
127
|
+
# and [user
|
128
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
129
|
+
# When using app authentication, requests can only delete messages
|
130
|
+
# created by the calling Chat app.
|
131
|
+
rpc :DeleteMessage, ::Google::Apps::Chat::V1::DeleteMessageRequest, ::Google::Protobuf::Empty
|
132
|
+
# Gets the metadata of a message attachment. The attachment data is fetched
|
133
|
+
# using the [media
|
134
|
+
# API](https://developers.google.com/workspace/chat/api/reference/rest/v1/media/download).
|
135
|
+
# For an example, see
|
136
|
+
# [Get metadata about a message
|
137
|
+
# attachment](https://developers.google.com/workspace/chat/get-media-attachments).
|
138
|
+
# Requires [app
|
139
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
|
140
|
+
rpc :GetAttachment, ::Google::Apps::Chat::V1::GetAttachmentRequest, ::Google::Apps::Chat::V1::Attachment
|
141
|
+
# Uploads an attachment. For an example, see
|
142
|
+
# [Upload media as a file
|
143
|
+
# attachment](https://developers.google.com/workspace/chat/upload-media-attachments).
|
144
|
+
# Requires user
|
145
|
+
# [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
146
|
+
#
|
147
|
+
# You can upload attachments up to 200 MB. Certain file types aren't
|
148
|
+
# supported. For details, see [File types blocked by Google
|
149
|
+
# Chat](https://support.google.com/chat/answer/7651457?&co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat).
|
150
|
+
rpc :UploadAttachment, ::Google::Apps::Chat::V1::UploadAttachmentRequest, ::Google::Apps::Chat::V1::UploadAttachmentResponse
|
151
|
+
# Lists spaces the caller is a member of. Group chats and DMs aren't listed
|
152
|
+
# until the first message is sent. For an example, see
|
153
|
+
# [List
|
154
|
+
# spaces](https://developers.google.com/workspace/chat/list-spaces).
|
155
|
+
#
|
156
|
+
# Requires
|
157
|
+
# [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
|
158
|
+
# Supports
|
159
|
+
# [app
|
160
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
161
|
+
# and [user
|
162
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
163
|
+
#
|
164
|
+
# Lists spaces visible to the caller or authenticated user. Group chats
|
165
|
+
# and DMs aren't listed until the first message is sent.
|
166
|
+
rpc :ListSpaces, ::Google::Apps::Chat::V1::ListSpacesRequest, ::Google::Apps::Chat::V1::ListSpacesResponse
|
167
|
+
# Returns details about a space. For an example, see
|
168
|
+
# [Get details about a
|
169
|
+
# space](https://developers.google.com/workspace/chat/get-spaces).
|
170
|
+
#
|
171
|
+
# Requires
|
172
|
+
# [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
|
173
|
+
# Supports
|
174
|
+
# [app
|
175
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
176
|
+
# and [user
|
177
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
178
|
+
rpc :GetSpace, ::Google::Apps::Chat::V1::GetSpaceRequest, ::Google::Apps::Chat::V1::Space
|
179
|
+
# Creates a named space. Spaces grouped by topics aren't supported. For an
|
180
|
+
# example, see [Create a
|
181
|
+
# space](https://developers.google.com/workspace/chat/create-spaces).
|
182
|
+
#
|
183
|
+
# If you receive the error message `ALREADY_EXISTS` when creating
|
184
|
+
# a space, try a different `displayName`. An existing space within
|
185
|
+
# the Google Workspace organization might already use this display name.
|
186
|
+
#
|
187
|
+
# Requires [user
|
188
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
189
|
+
rpc :CreateSpace, ::Google::Apps::Chat::V1::CreateSpaceRequest, ::Google::Apps::Chat::V1::Space
|
190
|
+
# Creates a space and adds specified users to it. The calling user is
|
191
|
+
# automatically added to the space, and shouldn't be specified as a
|
192
|
+
# membership in the request. For an example, see
|
193
|
+
# [Set up a space with initial
|
194
|
+
# members](https://developers.google.com/workspace/chat/set-up-spaces).
|
195
|
+
#
|
196
|
+
# To specify the human members to add, add memberships with the appropriate
|
197
|
+
# `member.name` in the `SetUpSpaceRequest`. To add a human user, use
|
198
|
+
# `users/{user}`, where `{user}` can be the email address for the user. For
|
199
|
+
# users in the same Workspace organization `{user}` can also be the `id` for
|
200
|
+
# the person from the People API, or the `id` for the user in the Directory
|
201
|
+
# API. For example, if the People API Person profile ID for
|
202
|
+
# `user@example.com` is `123456789`, you can add the user to the space by
|
203
|
+
# setting the `membership.member.name` to `users/user@example.com` or
|
204
|
+
# `users/123456789`.
|
205
|
+
#
|
206
|
+
# For a space or group chat, if the caller blocks or is blocked by some
|
207
|
+
# members, then those members aren't added to the created space.
|
208
|
+
#
|
209
|
+
# To create a direct message (DM) between the calling user and another human
|
210
|
+
# user, specify exactly one membership to represent the human user. If
|
211
|
+
# one user blocks the other, the request fails and the DM isn't created.
|
212
|
+
#
|
213
|
+
# To create a DM between the calling user and the calling app, set
|
214
|
+
# `Space.singleUserBotDm` to `true` and don't specify any memberships. You
|
215
|
+
# can only use this method to set up a DM with the calling app. To add the
|
216
|
+
# calling app as a member of a space or an existing DM between two human
|
217
|
+
# users, see
|
218
|
+
# [Invite or add a user or app to a
|
219
|
+
# space](https://developers.google.com/workspace/chat/create-members).
|
220
|
+
#
|
221
|
+
# If a DM already exists between two users, even when one user blocks the
|
222
|
+
# other at the time a request is made, then the existing DM is returned.
|
223
|
+
#
|
224
|
+
# Spaces with threaded replies aren't supported. If you receive the error
|
225
|
+
# message `ALREADY_EXISTS` when setting up a space, try a different
|
226
|
+
# `displayName`. An existing space within the Google Workspace organization
|
227
|
+
# might already use this display name.
|
228
|
+
#
|
229
|
+
# Requires [user
|
230
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
231
|
+
rpc :SetUpSpace, ::Google::Apps::Chat::V1::SetUpSpaceRequest, ::Google::Apps::Chat::V1::Space
|
232
|
+
# Updates a space. For an example, see
|
233
|
+
# [Update a
|
234
|
+
# space](https://developers.google.com/workspace/chat/update-spaces).
|
235
|
+
#
|
236
|
+
# If you're updating the `displayName` field and receive the error message
|
237
|
+
# `ALREADY_EXISTS`, try a different display name.. An existing space within
|
238
|
+
# the Google Workspace organization might already use this display name.
|
239
|
+
#
|
240
|
+
# Requires [user
|
241
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
242
|
+
rpc :UpdateSpace, ::Google::Apps::Chat::V1::UpdateSpaceRequest, ::Google::Apps::Chat::V1::Space
|
243
|
+
# Deletes a named space. Always performs a cascading delete, which means
|
244
|
+
# that the space's child resources—like messages posted in the space and
|
245
|
+
# memberships in the space—are also deleted. For an example, see
|
246
|
+
# [Delete a
|
247
|
+
# space](https://developers.google.com/workspace/chat/delete-spaces).
|
248
|
+
# Requires [user
|
249
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
250
|
+
# from a user who has permission to delete the space.
|
251
|
+
rpc :DeleteSpace, ::Google::Apps::Chat::V1::DeleteSpaceRequest, ::Google::Protobuf::Empty
|
252
|
+
# Completes the
|
253
|
+
# [import process](https://developers.google.com/workspace/chat/import-data)
|
254
|
+
# for the specified space and makes it visible to users.
|
255
|
+
# Requires app authentication and domain-wide delegation. For more
|
256
|
+
# information, see [Authorize Google Chat apps to import
|
257
|
+
# data](https://developers.google.com/workspace/chat/authorize-import).
|
258
|
+
rpc :CompleteImportSpace, ::Google::Apps::Chat::V1::CompleteImportSpaceRequest, ::Google::Apps::Chat::V1::CompleteImportSpaceResponse
|
259
|
+
# Returns the existing direct message with the specified user. If no direct
|
260
|
+
# message space is found, returns a `404 NOT_FOUND` error. For an example,
|
261
|
+
# see
|
262
|
+
# [Find a direct message](/chat/api/guides/v1/spaces/find-direct-message).
|
263
|
+
#
|
264
|
+
# With [user
|
265
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
|
266
|
+
# returns the direct message space between the specified user and the
|
267
|
+
# authenticated user.
|
268
|
+
#
|
269
|
+
# With [app
|
270
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
|
271
|
+
# returns the direct message space between the specified user and the calling
|
272
|
+
# Chat app.
|
273
|
+
#
|
274
|
+
# Requires [user
|
275
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
276
|
+
# or [app
|
277
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
|
278
|
+
rpc :FindDirectMessage, ::Google::Apps::Chat::V1::FindDirectMessageRequest, ::Google::Apps::Chat::V1::Space
|
279
|
+
# Creates a human membership or app membership for the calling app. Creating
|
280
|
+
# memberships for other apps isn't supported. For an example, see
|
281
|
+
# [Invite or add a user or a Google Chat app to a
|
282
|
+
# space](https://developers.google.com/workspace/chat/create-members).
|
283
|
+
# When creating a membership, if the specified member has their auto-accept
|
284
|
+
# policy turned off, then they're invited, and must accept the space
|
285
|
+
# invitation before joining. Otherwise, creating a membership adds the member
|
286
|
+
# directly to the specified space. Requires [user
|
287
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
288
|
+
#
|
289
|
+
# To specify the member to add, set the `membership.member.name` in the
|
290
|
+
# `CreateMembershipRequest`:
|
291
|
+
#
|
292
|
+
# - To add the calling app to a space or a direct message between two human
|
293
|
+
# users, use `users/app`. Unable to add other
|
294
|
+
# apps to the space.
|
295
|
+
#
|
296
|
+
# - To add a human user, use `users/{user}`, where `{user}` can be the email
|
297
|
+
# address for the user. For users in the same Workspace organization `{user}`
|
298
|
+
# can also be the `id` for the person from the People API, or the `id` for
|
299
|
+
# the user in the Directory API. For example, if the People API Person
|
300
|
+
# profile ID for `user@example.com` is `123456789`, you can add the user to
|
301
|
+
# the space by setting the `membership.member.name` to
|
302
|
+
# `users/user@example.com` or `users/123456789`.
|
303
|
+
rpc :CreateMembership, ::Google::Apps::Chat::V1::CreateMembershipRequest, ::Google::Apps::Chat::V1::Membership
|
304
|
+
# Updates a membership. Requires [user
|
305
|
+
# authentication](https://developers.google.com/chat/api/guides/auth/users).
|
306
|
+
rpc :UpdateMembership, ::Google::Apps::Chat::V1::UpdateMembershipRequest, ::Google::Apps::Chat::V1::Membership
|
307
|
+
# Deletes a membership. For an example, see
|
308
|
+
# [Remove a user or a Google Chat app from a
|
309
|
+
# space](https://developers.google.com/workspace/chat/delete-members).
|
310
|
+
#
|
311
|
+
# Requires [user
|
312
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
313
|
+
rpc :DeleteMembership, ::Google::Apps::Chat::V1::DeleteMembershipRequest, ::Google::Apps::Chat::V1::Membership
|
314
|
+
# Creates a reaction and adds it to a message. Only unicode emojis are
|
315
|
+
# supported. For an example, see
|
316
|
+
# [Add a reaction to a
|
317
|
+
# message](https://developers.google.com/workspace/chat/create-reactions).
|
318
|
+
# Requires [user
|
319
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
320
|
+
rpc :CreateReaction, ::Google::Apps::Chat::V1::CreateReactionRequest, ::Google::Apps::Chat::V1::Reaction
|
321
|
+
# Lists reactions to a message. For an example, see
|
322
|
+
# [List reactions for a
|
323
|
+
# message](https://developers.google.com/workspace/chat/list-reactions).
|
324
|
+
# Requires [user
|
325
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
326
|
+
rpc :ListReactions, ::Google::Apps::Chat::V1::ListReactionsRequest, ::Google::Apps::Chat::V1::ListReactionsResponse
|
327
|
+
# Deletes a reaction to a message. Only unicode emojis are supported.
|
328
|
+
# For an example, see
|
329
|
+
# [Delete a
|
330
|
+
# reaction](https://developers.google.com/workspace/chat/delete-reactions).
|
331
|
+
# Requires [user
|
332
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
333
|
+
rpc :DeleteReaction, ::Google::Apps::Chat::V1::DeleteReactionRequest, ::Google::Protobuf::Empty
|
334
|
+
# Returns details about a user's read state within a space, used to identify
|
335
|
+
# read and unread messages.
|
336
|
+
#
|
337
|
+
# Requires [user
|
338
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
339
|
+
rpc :GetSpaceReadState, ::Google::Apps::Chat::V1::GetSpaceReadStateRequest, ::Google::Apps::Chat::V1::SpaceReadState
|
340
|
+
# Updates a user's read state within a space, used to identify read and
|
341
|
+
# unread messages.
|
342
|
+
#
|
343
|
+
# Requires [user
|
344
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
345
|
+
rpc :UpdateSpaceReadState, ::Google::Apps::Chat::V1::UpdateSpaceReadStateRequest, ::Google::Apps::Chat::V1::SpaceReadState
|
346
|
+
# Returns details about a user's read state within a thread, used to identify
|
347
|
+
# read and unread messages.
|
348
|
+
#
|
349
|
+
# Requires [user
|
350
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
351
|
+
rpc :GetThreadReadState, ::Google::Apps::Chat::V1::GetThreadReadStateRequest, ::Google::Apps::Chat::V1::ThreadReadState
|
352
|
+
end
|
353
|
+
|
354
|
+
Stub = Service.rpc_stub_class
|
355
|
+
end
|
356
|
+
end
|
357
|
+
end
|
358
|
+
end
|
359
|
+
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\x9f\x01\n\x12\x63om.google.chat.v1B\x14\x43ontextualAddOnProtoP\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
|
+
|
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\xa0\x01\n\x12\x63om.google.chat.v1B\x15\x44\x65letionMetadataProtoP\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"
|
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\x95\x01\n\x12\x63om.google.chat.v1B\nGroupProtoP\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"
|
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\x9c\x01\n\x12\x63om.google.chat.v1B\x11HistoryStateProtoP\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"
|
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\x9a\x01\n\x12\x63om.google.chat.v1B\x0fMatchedUrlProtoP\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
|
+
|
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
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/chat/v1/membership.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
require 'google/api/resource_pb'
|
9
|
+
require 'google/chat/v1/group_pb'
|
10
|
+
require 'google/chat/v1/user_pb'
|
11
|
+
require 'google/protobuf/field_mask_pb'
|
12
|
+
require 'google/protobuf/timestamp_pb'
|
13
|
+
|
14
|
+
|
15
|
+
descriptor_data = "\n\x1fgoogle/chat/v1/membership.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1agoogle/chat/v1/group.proto\x1a\x19google/chat/v1/user.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x90\x05\n\nMembership\x12\x31\n\x04name\x18\x01 \x01(\tB#\xfa\x41 \n\x1e\x63hat.googleapis.com/Membership\x12>\n\x05state\x18\x02 \x01(\x0e\x32*.google.chat.v1.Membership.MembershipStateB\x03\xe0\x41\x03\x12<\n\x04role\x18\x07 \x01(\x0e\x32).google.chat.v1.Membership.MembershipRoleB\x03\xe0\x41\x01\x12&\n\x06member\x18\x03 \x01(\x0b\x32\x14.google.chat.v1.UserH\x00\x12-\n\x0cgroup_member\x18\x05 \x01(\x0b\x32\x15.google.chat.v1.GroupH\x00\x12\x37\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\xe0\x41\x05\xe0\x41\x01\x12\x37\n\x0b\x64\x65lete_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\xe0\x41\x05\xe0\x41\x01\"^\n\x0fMembershipState\x12 \n\x1cMEMBERSHIP_STATE_UNSPECIFIED\x10\x00\x12\n\n\x06JOINED\x10\x01\x12\x0b\n\x07INVITED\x10\x02\x12\x10\n\x0cNOT_A_MEMBER\x10\x03\"T\n\x0eMembershipRole\x12\x1f\n\x1bMEMBERSHIP_ROLE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bROLE_MEMBER\x10\x01\x12\x10\n\x0cROLE_MANAGER\x10\x02:D\xea\x41\x41\n\x1e\x63hat.googleapis.com/Membership\x12\x1fspaces/{space}/members/{member}B\x0c\n\nmemberType\"\x86\x01\n\x17\x43reateMembershipRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x63hat.googleapis.com/Membership\x12\x33\n\nmembership\x18\x02 \x01(\x0b\x32\x1a.google.chat.v1.MembershipB\x03\xe0\x41\x02\"\x84\x01\n\x17UpdateMembershipRequest\x12\x33\n\nmembership\x18\x01 \x01(\x0b\x32\x1a.google.chat.v1.MembershipB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xcb\x01\n\x16ListMembershipsRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x63hat.googleapis.com/Membership\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bshow_groups\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x12\x19\n\x0cshow_invited\x18\x07 \x01(\x08\x42\x03\xe0\x41\x01\"h\n\x17ListMembershipsResponse\x12\x34\n\x0bmemberships\x18\x01 \x03(\x0b\x32\x1a.google.chat.v1.MembershipB\x03\xe0\x41\x06\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"L\n\x14GetMembershipRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63hat.googleapis.com/Membership\"O\n\x17\x44\x65leteMembershipRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63hat.googleapis.com/MembershipB\x9a\x01\n\x12\x63om.google.chat.v1B\x0fMembershipProtoP\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"
|
16
|
+
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
|
+
|
19
|
+
begin
|
20
|
+
pool.add_serialized_file(descriptor_data)
|
21
|
+
rescue TypeError
|
22
|
+
# Compatibility code: will be removed in the next major version.
|
23
|
+
require 'google/protobuf/descriptor_pb'
|
24
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
25
|
+
parsed.clear_dependency
|
26
|
+
serialized = parsed.class.encode(parsed)
|
27
|
+
file = pool.add_serialized_file(serialized)
|
28
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
29
|
+
imports = [
|
30
|
+
["google.chat.v1.User", "google/chat/v1/user.proto"],
|
31
|
+
["google.chat.v1.Group", "google/chat/v1/group.proto"],
|
32
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
33
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
34
|
+
]
|
35
|
+
imports.each do |type_name, expected_filename|
|
36
|
+
import_file = pool.lookup(type_name).file_descriptor
|
37
|
+
if import_file.name != expected_filename
|
38
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
42
|
+
warn "This will become an error in the next major version."
|
43
|
+
end
|
44
|
+
|
45
|
+
module Google
|
46
|
+
module Apps
|
47
|
+
module Chat
|
48
|
+
module V1
|
49
|
+
Membership = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.Membership").msgclass
|
50
|
+
Membership::MembershipState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.Membership.MembershipState").enummodule
|
51
|
+
Membership::MembershipRole = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.Membership.MembershipRole").enummodule
|
52
|
+
CreateMembershipRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.CreateMembershipRequest").msgclass
|
53
|
+
UpdateMembershipRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.UpdateMembershipRequest").msgclass
|
54
|
+
ListMembershipsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ListMembershipsRequest").msgclass
|
55
|
+
ListMembershipsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ListMembershipsResponse").msgclass
|
56
|
+
GetMembershipRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.GetMembershipRequest").msgclass
|
57
|
+
DeleteMembershipRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.DeleteMembershipRequest").msgclass
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|