@@ -1929,27 +1929,17 @@ public Members members() {
1929
1929
public class Members {
1930
1930
1931
1931
/**
1932
- * Creates a human membership or app membership for the calling app. Creating memberships for other
1933
- * apps isn't supported. For an example, see [Invite or add a user or a Google Chat app to a
1934
- * space](https://developers.google.com/workspace/chat/create-members). When creating a membership,
1935
- * if the specified member has their auto-accept policy turned off, then they're invited, and must
1936
- * accept the space invitation before joining. Otherwise, creating a membership adds the member
1937
- * directly to the specified space. Requires [user
1938
- * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
1939
- * To specify the member to add, set the `membership.member.name` for the human or app member, or
1940
- * set the `membership.group_member.name` for the group member. - To add the calling app to a space
1941
- * or a direct message between two human users, use `users/app`. Unable to add other apps to the
1942
- * space. - To add a human user, use `users/{user}`, where `{user}` can be the email address for the
1943
- * user. For users in the same Workspace organization `{user}` can also be the `id` for the person
1944
- * from the People API, or the `id` for the user in the Directory API. For example, if the People
1945
- * API Person profile ID for `[email protected] ` is `123456789`, you can add the user to the space by
1946
- * setting the `membership.member.name` to `users/[email protected] ` or `users/123456789`. - To add
1947
- * or invite a Google group in a named space, use `groups/{group}`, where `{group}` is the `id` for
1948
- * the group from the Cloud Identity Groups API. For example, you can use [Cloud Identity Groups
1949
- * lookup API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup) to retrieve
1950
- * the ID `123456789` for group email `[email protected] `, then you can add or invite the group to a
1951
- * named space by setting the `membership.group_member.name` to `groups/123456789`. Group email is
1952
- * not supported, and Google groups can only be added as members in named spaces.
1932
+ * Creates a membership for the calling Chat app, a user, or a Google Group. Creating memberships
1933
+ * for other Chat apps isn't supported. When creating a membership, if the specified member has
1934
+ * their auto-accept policy turned off, then they're invited, and must accept the space invitation
1935
+ * before joining. Otherwise, creating a membership adds the member directly to the specified space.
1936
+ * Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-
1937
+ * authorize-chat-user). For example usage, see: - [Invite or add a user to a
1938
+ * space](https://developers.google.com/workspace/chat/create-members#create-user-membership). -
1939
+ * [Invite or add a Google Group to a space](https://developers.google.com/workspace/chat/create-
1940
+ * members#create-group-membership). - [Add the Chat app to a
1941
+ * space](https://developers.google.com/workspace/chat/create-members#create-membership-calling-
1942
+ * api).
1953
1943
*
1954
1944
* Create a request for the method "members.create".
1955
1945
*
@@ -1974,28 +1964,18 @@ public class Create extends HangoutsChatRequest<com.google.api.services.chat.v1.
1974
1964
java .util .regex .Pattern .compile ("^spaces/[^/]+$" );
1975
1965
1976
1966
/**
1977
- * Creates a human membership or app membership for the calling app. Creating memberships for
1978
- * other apps isn't supported. For an example, see [Invite or add a user or a Google Chat app to a
1979
- * space](https://developers.google.com/workspace/chat/create-members). When creating a
1980
- * membership, if the specified member has their auto-accept policy turned off, then they're
1981
- * invited, and must accept the space invitation before joining. Otherwise, creating a membership
1982
- * adds the member directly to the specified space. Requires [user
1967
+ * Creates a membership for the calling Chat app, a user, or a Google Group. Creating memberships
1968
+ * for other Chat apps isn't supported. When creating a membership, if the specified member has
1969
+ * their auto-accept policy turned off, then they're invited, and must accept the space invitation
1970
+ * before joining. Otherwise, creating a membership adds the member directly to the specified
1971
+ * space. Requires [user
1983
1972
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
1984
- * To specify the member to add, set the `membership.member.name` for the human or app member, or
1985
- * set the `membership.group_member.name` for the group member. - To add the calling app to a
1986
- * space or a direct message between two human users, use `users/app`. Unable to add other apps to
1987
- * the space. - To add a human user, use `users/{user}`, where `{user}` can be the email address
1988
- * for the user. For users in the same Workspace organization `{user}` can also be the `id` for
1989
- * the person from the People API, or the `id` for the user in the Directory API. For example, if
1990
- * the People API Person profile ID for `[email protected] ` is `123456789`, you can add the user to
1991
- * the space by setting the `membership.member.name` to `users/[email protected] ` or
1992
- * `users/123456789`. - To add or invite a Google group in a named space, use `groups/{group}`,
1993
- * where `{group}` is the `id` for the group from the Cloud Identity Groups API. For example, you
1994
- * can use [Cloud Identity Groups lookup
1995
- * API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup) to retrieve the ID
1996
- * `123456789` for group email `[email protected] `, then you can add or invite the group to a
1997
- * named space by setting the `membership.group_member.name` to `groups/123456789`. Group email is
1998
- * not supported, and Google groups can only be added as members in named spaces.
1973
+ * For example usage, see: - [Invite or add a user to a
1974
+ * space](https://developers.google.com/workspace/chat/create-members#create-user-membership). -
1975
+ * [Invite or add a Google Group to a space](https://developers.google.com/workspace/chat/create-
1976
+ * members#create-group-membership). - [Add the Chat app to a
1977
+ * space](https://developers.google.com/workspace/chat/create-members#create-membership-calling-
1978
+ * api).
1999
1979
*
2000
1980
* Create a request for the method "members.create".
2001
1981
*
@@ -3613,7 +3593,10 @@ public Get set(String parameterName, Object value) {
3613
3593
}
3614
3594
/**
3615
3595
* Lists messages in a space that the caller is a member of, including messages from blocked members
3616
- * and spaces. For an example, see [List messages](/chat/api/guides/v1/messages/list). Requires
3596
+ * and spaces. If you list messages from a space with no messages, the response is an empty object.
3597
+ * When using a REST/HTTP interface, the response contains an empty JSON object, `{}`. For an
3598
+ * example, see [List
3599
+ * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list). Requires
3617
3600
* [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-
3618
3601
* user).
3619
3602
*
@@ -3640,9 +3623,12 @@ public class List extends HangoutsChatRequest<com.google.api.services.chat.v1.mo
3640
3623
3641
3624
/**
3642
3625
* Lists messages in a space that the caller is a member of, including messages from blocked
3643
- * members and spaces. For an example, see [List messages](/chat/api/guides/v1/messages/list).
3644
- * Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-
3645
- * authorize-chat-user).
3626
+ * members and spaces. If you list messages from a space with no messages, the response is an
3627
+ * empty object. When using a REST/HTTP interface, the response contains an empty JSON object,
3628
+ * `{}`. For an example, see [List
3629
+ * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list). Requires
3630
+ * [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-
3631
+ * user).
3646
3632
*
3647
3633
* Create a request for the method "messages.list".
3648
3634
*
0 commit comments