memberships property

List<Membership>? memberships
getter/setter pair

The Google Chat users to invite to join the space.

Omit the calling user, as they are added automatically. The set currently allows up to 20 memberships (in addition to the caller). The Membership.member field must contain a user with name populated (format: users/{user}) and type set to User.Type.HUMAN. You can only add human users when setting up a space (adding Chat apps is only supported for direct message setup with the calling app). You can also add members using the user's email as an alias for {user}. For example, the user.name can be users/[email protected]." To invite Gmail users or users from external Google Workspace domains, user's email must be used for {user}. Optional when setting Space.spaceType to SPACE. Required when setting Space.spaceType to GROUP_CHAT, along with at least two memberships. Required when setting Space.spaceType to DIRECT_MESSAGE with a human user, along with exactly one membership. Must be empty when creating a 1:1 conversation between a human and the calling Chat app (when setting Space.spaceType to DIRECT_MESSAGE and Space.singleUserBotDm to true).

Optional.

Implementation

core.List<Membership>? memberships;