@@ -98,9 +98,9 @@ message Membership {
9898 oneof memberType {
9999 // The Google Chat user or app the membership corresponds to.
100100 // If your Chat app [authenticates as a
101- // user](https://developers.google.com/chat/api/guides/auth/users), the
102- // output populates the
103- // [user](https://developers.google.com/chat/api/reference/rest/v1/User)
101+ // user](https://developers.google.com/workspace/ chat/authenticate-authorize-chat-user),
102+ // the output populates the
103+ // [user](https://developers.google.com/workspace/ chat/api/reference/rest/v1/User)
104104 // `name` and `type`.
105105 User member = 3 ;
106106
@@ -127,6 +127,7 @@ message Membership {
127127 ];
128128}
129129
130+ // Request message for creating a membership.
130131message CreateMembershipRequest {
131132 // Required. The resource name of the space for which to create the
132133 // membership.
@@ -158,6 +159,7 @@ message CreateMembershipRequest {
158159 Membership membership = 2 [(google.api.field_behavior ) = REQUIRED ];
159160}
160161
162+ // Request message for listing memberships.
161163message ListMembershipsRequest {
162164 // Required. The resource name of the space for which to fetch a membership
163165 // list.
@@ -175,8 +177,8 @@ message ListMembershipsRequest {
175177 //
176178 // If unspecified, at most 100 memberships are returned.
177179 //
178- // The maximum value is 1,000 . If you use a value more than 1,000 , it's
179- // automatically changed to 1,000 .
180+ // The maximum value is 1000 . If you use a value more than 1000 , it's
181+ // automatically changed to 1000 .
180182 //
181183 // Negative values return an `INVALID_ARGUMENT` error.
182184 int32 page_size = 2 [(google.api.field_behavior ) = OPTIONAL ];
@@ -192,9 +194,9 @@ message ListMembershipsRequest {
192194 // Optional. A query filter.
193195 //
194196 // You can filter memberships by a member's role
195- // ([`role`](https://developers.google.com/chat/api/reference/rest/v1/spaces.members#membershiprole))
197+ // ([`role`](https://developers.google.com/workspace/ chat/api/reference/rest/v1/spaces.members#membershiprole))
196198 // and type
197- // ([`member.type`](https://developers.google.com/chat/api/reference/rest/v1/User#type)).
199+ // ([`member.type`](https://developers.google.com/workspace/ chat/api/reference/rest/v1/User#type)).
198200 //
199201 // To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`.
200202 //
@@ -217,6 +219,7 @@ message ListMembershipsRequest {
217219 // role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"
218220 // ```
219221 //
222+ //
220223 // Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
221224 // error.
222225 string filter = 5 [(google.api.field_behavior ) = OPTIONAL ];
@@ -237,10 +240,11 @@ message ListMembershipsRequest {
237240 // that don't match the filter criteria aren't returned.
238241 //
239242 // Currently requires [user
240- // authentication](https://developers.google.com/chat/api/guides/auth/users ).
243+ // authentication](https://developers.google.com/workspace/ chat/authenticate-authorize-chat-user ).
241244 bool show_invited = 7 [(google.api.field_behavior ) = OPTIONAL ];
242245}
243246
247+ // Response to list memberships of the space.
244248message ListMembershipsResponse {
245249 // Unordered list. List of memberships in the requested (or first) page.
246250 repeated Membership memberships = 1
@@ -251,6 +255,7 @@ message ListMembershipsResponse {
251255 string next_page_token = 2 ;
252256}
253257
258+ // Request to get a membership of a space.
254259message GetMembershipRequest {
255260 // Required. Resource name of the membership to retrieve.
256261 //
@@ -260,8 +265,8 @@ message GetMembershipRequest {
260265 // Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`
261266 //
262267 // When [authenticated as a
263- // user](https://developers.google.com/chat/api/guides/auth/users), you can
264- // use the user's email as an alias for `{member}`. For example,
268+ // user](https://developers.google.com/workspace/ chat/authenticate-authorize-chat-user),
269+ // you can use the user's email as an alias for `{member}`. For example,
265270 // `spaces/{space}/members/[email protected] ` where `[email protected] ` is the 266271 // email of the Google Chat user.
267272 string name = 1 [
@@ -270,6 +275,7 @@ message GetMembershipRequest {
270275 ];
271276}
272277
278+ // Request to delete a membership in a space.
273279message DeleteMembershipRequest {
274280 // Required. Resource name of the membership to delete. Chat apps can delete
275281 // human users' or their own memberships. Chat apps can't delete other apps'
0 commit comments