@@ -66,18 +66,30 @@ service ChatService {
6666 "https://www.googleapis.com/auth/chat.users.readstate,"
6767 "https://www.googleapis.com/auth/chat.users.readstate.readonly" ;
6868
69- // Creates a message in a Google Chat space. The maximum message size,
70- // including text and cards, is 32,000 bytes. For an example, see [Send a
69+ // Creates a message in a Google Chat space. For an example, see [Send a
7170 // message](https://developers.google.com/workspace/chat/create-messages).
7271 //
73- // Calling this method requires
74- // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize)
75- // and supports the following authentication types:
72+ // The `create()` method requires either user or app authentication. Chat
73+ // attributes the message sender differently depending on the type of
74+ // authentication that you use in your request.
7675 //
77- // - For text messages, user authentication or app authentication are
78- // supported.
79- // - For card messages, only app authentication is supported. (Only Chat apps
80- // can create card messages.)
76+ // The following image shows how Chat attributes a message when you use app
77+ // authentication. Chat displays the Chat app as the message
78+ // sender. The content of the message can contain text (`text`), cards
79+ // (`cardsV2`), and accessory widgets (`accessoryWidgets`).
80+ //
81+ // 
83+ //
84+ // The following image shows how Chat attributes a message when you use user
85+ // authentication. Chat displays the user as the message sender and attributes
86+ // the Chat app to the message by displaying its name. The content of message
87+ // can only contain text (`text`).
88+ //
89+ // 
91+ //
92+ // The maximum message size, including the message contents, is 32,000 bytes.
8193 rpc CreateMessage (CreateMessageRequest ) returns (Message ) {
8294 option (google.api.http ) = {
8395 post : "/v1/{parent=spaces/*}/messages"
@@ -87,8 +99,12 @@ service ChatService {
8799 }
88100
89101 // Lists messages in a space that the caller is a member of, including
90- // messages from blocked members and spaces. For an example, see
91- // [List messages](/chat/api/guides/v1/messages/list).
102+ // messages from blocked members and spaces. If you list messages from a
103+ // space with no messages, the response is an empty object. When using a
104+ // REST/HTTP interface, the response contains an empty JSON object, `{}`.
105+ // For an example, see
106+ // [List
107+ // messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list).
92108 // Requires [user
93109 // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
94110 rpc ListMessages (ListMessagesRequest ) returns (ListMessagesResponse ) {
@@ -299,14 +315,19 @@ service ChatService {
299315 option (google.api.method_signature ) = "name" ;
300316 }
301317
302- // Creates a named space. Spaces grouped by topics aren't supported. For an
303- // example, see [Create a
318+ // Creates a space with no members. Can be used to create a named space.
319+ // Spaces grouped by topics aren't supported. For an example, see
320+ // [Create a
304321 // space](https://developers.google.com/workspace/chat/create-spaces).
305322 //
306323 // If you receive the error message `ALREADY_EXISTS` when creating
307324 // a space, try a different `displayName`. An existing space within
308325 // the Google Workspace organization might already use this display name.
309326 //
327+ // If you're a member of the [Developer Preview
328+ // program](https://developers.google.com/workspace/preview), you can create a
329+ // group chat in import mode using `spaceType.GROUP_CHAT`.
330+ //
310331 // Requires [user
311332 // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
312333 rpc CreateSpace (CreateSpaceRequest ) returns (Space ) {
@@ -448,40 +469,25 @@ service ChatService {
448469 };
449470 }
450471
451- // Creates a human membership or app membership for the calling app. Creating
452- // memberships for other apps isn't supported. For an example, see
453- // [Invite or add a user or a Google Chat app to a
454- // space](https://developers.google.com/workspace/chat/create-members).
472+ // Creates a membership for the calling Chat app, a user, or a Google Group.
473+ // Creating memberships for other Chat apps isn't supported.
455474 // When creating a membership, if the specified member has their auto-accept
456475 // policy turned off, then they're invited, and must accept the space
457476 // invitation before joining. Otherwise, creating a membership adds the member
458- // directly to the specified space. Requires [user
477+ // directly to the specified space.
478+ // Requires [user
459479 // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
460480 //
461- // To specify the member to add, set the `membership.member.name` for the
462- // human or app member, or set the `membership.group_member.name` for the
463- // group member.
464- //
465- // - To add the calling app to a space or a direct message between two human
466- // users, use `users/app`. Unable to add other
467- // apps to the space.
468- //
469- // - To add a human user, use `users/{user}`, where `{user}` can be the email
470- // address for the user. For users in the same Workspace organization `{user}`
471- // can also be the `id` for the person from the People API, or the `id` for
472- // the user in the Directory API. For example, if the People API Person
473- // profile ID for `[email protected] ` is `123456789`, you can add the user to 474- // the space by setting the `membership.member.name` to
475- // `users/[email protected] ` or `users/123456789`. 476- //
477- // - To add or invite a Google group in a named space, use
478- // `groups/{group}`, where `{group}` is the `id` for the group from the Cloud
479- // Identity Groups API. For example, you can use [Cloud Identity Groups lookup
480- // API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup)
481- // to retrieve the ID `123456789` for group email `[email protected] `, then 482- // you can add or invite the group to a named space by setting the
483- // `membership.group_member.name` to `groups/123456789`. Group email is not
484- // supported, and Google groups can only be added as members in named spaces.
481+ // For example usage, see:
482+ //
483+ // - [Invite or add a user to a
484+ // space](https://developers.google.com/workspace/chat/create-members#create-user-membership).
485+ //
486+ // - [Invite or add a Google Group to a
487+ // space](https://developers.google.com/workspace/chat/create-members#create-group-membership).
488+ //
489+ // - [Add the Chat app to a
490+ // space](https://developers.google.com/workspace/chat/create-members#create-membership-calling-api).
485491 rpc CreateMembership (CreateMembershipRequest ) returns (Membership ) {
486492 option (google.api.http ) = {
487493 post : "/v1/{parent=spaces/*}/members"
@@ -605,6 +611,9 @@ service ChatService {
605611 // updated, the server returns the updated `Message` resource in the event
606612 // payload.
607613 //
614+ // Note: The `permissionSettings` field is not returned in the Space
615+ // object of the Space event data for this request.
616+ //
608617 // Requires [user
609618 // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
610619 // To get an event, the authenticated user must be a member of the space.
0 commit comments