Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clients/google-api-services-chat/v1/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-chat</artifactId>
<version>v1-rev20260828-2.0.0</version>
<version>v1-rev20260913-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-chat:v1-rev20260828-2.0.0'
implementation 'com.google.apis:google-api-services-chat:v1-rev20260913-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2857,15 +2857,16 @@ public Patch setName(java.lang.String name) {
* `access_settings.access_permission_settings` is not supported with `useAdminAccess`. The
* supported field masks include: -
* `access_settings.access_permission_settings.discoverSpaceSetting` -
* `access_settings.access_permission_settings.joinSpaceSetting` `permission_settings`:
* Supports changing the [permission
* `access_settings.access_permission_settings.joinSpaceSetting` -
* `access_settings.access_permission_settings.viewSpaceMembershipSetting`
* `permission_settings`: Supports changing the [permission
* settings](https://support.google.com/chat/answer/13340792) of a space. When updating
* permission settings, you can only specify `permissionSettings` field masks; you cannot
* update other field masks at the same time. The supported field masks include: -
* `permission_settings.manageMembersAndGroups` - `permission_settings.modifySpaceDetails` -
* `permission_settings.toggleHistory` - `permission_settings.useAtMentionAll` -
* `permission_settings.manageApps` - `permission_settings.manageWebhooks` -
* `permission_settings.replyMessages`
* `permission_settings.replyMessages` - `permission_settings.viewSpaceMembership`
*/
@com.google.api.client.util.Key
private String updateMask;
Expand Down Expand Up @@ -2906,14 +2907,15 @@ public Patch setName(java.lang.String name) {
users](https://developers.google.com/workspace/chat/space-target-audience).
`access_settings.access_permission_settings` is not supported with `useAdminAccess`. The supported
field masks include: - `access_settings.access_permission_settings.discoverSpaceSetting` -
`access_settings.access_permission_settings.joinSpaceSetting` `permission_settings`: Supports
changing the [permission settings](https://support.google.com/chat/answer/13340792) of a space.
When updating permission settings, you can only specify `permissionSettings` field masks; you
cannot update other field masks at the same time. The supported field masks include: -
`access_settings.access_permission_settings.joinSpaceSetting` -
`access_settings.access_permission_settings.viewSpaceMembershipSetting` `permission_settings`:
Supports changing the [permission settings](https://support.google.com/chat/answer/13340792) of a
space. When updating permission settings, you can only specify `permissionSettings` field masks;
you cannot update other field masks at the same time. The supported field masks include: -
`permission_settings.manageMembersAndGroups` - `permission_settings.modifySpaceDetails` -
`permission_settings.toggleHistory` - `permission_settings.useAtMentionAll` -
`permission_settings.manageApps` - `permission_settings.manageWebhooks` -
`permission_settings.replyMessages`
`permission_settings.replyMessages` - `permission_settings.viewSpaceMembership`
*/
public String getUpdateMask() {
return updateMask;
Expand Down Expand Up @@ -2961,15 +2963,16 @@ public String getUpdateMask() {
* `access_settings.access_permission_settings` is not supported with `useAdminAccess`. The
* supported field masks include: -
* `access_settings.access_permission_settings.discoverSpaceSetting` -
* `access_settings.access_permission_settings.joinSpaceSetting` `permission_settings`:
* Supports changing the [permission
* `access_settings.access_permission_settings.joinSpaceSetting` -
* `access_settings.access_permission_settings.viewSpaceMembershipSetting`
* `permission_settings`: Supports changing the [permission
* settings](https://support.google.com/chat/answer/13340792) of a space. When updating
* permission settings, you can only specify `permissionSettings` field masks; you cannot
* update other field masks at the same time. The supported field masks include: -
* `permission_settings.manageMembersAndGroups` - `permission_settings.modifySpaceDetails` -
* `permission_settings.toggleHistory` - `permission_settings.useAtMentionAll` -
* `permission_settings.manageApps` - `permission_settings.manageWebhooks` -
* `permission_settings.replyMessages`
* `permission_settings.replyMessages` - `permission_settings.viewSpaceMembership`
*/
public Patch setUpdateMask(String updateMask) {
this.updateMask = updateMask;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,18 @@ public final class AccessPermissionSettings extends com.google.api.client.json.G
@com.google.api.client.util.Key
private AccessPermissionSetting joinSpaceSetting;

/**
* Optional. Access permission setting for viewing space membership. Must be specified together
* with `PermissionSettings.view_space_membership` in the update mask and request body when
* updating who can view space membership. When granting view access to a target audience, you
* must also grant `PermissionSettings.view_space_membership` to all members in the same request.
* To remove an existing target audience (for example, to restrict view access to space managers
* or assistant managers only), specify an empty `AccessPermissionSetting` (with no `principals`).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private AccessPermissionSetting viewSpaceMembershipSetting;

/**
* Optional. Access permission setting for discovering the space.
* @return value or {@code null} for none
Expand Down Expand Up @@ -77,6 +89,33 @@ public AccessPermissionSettings setJoinSpaceSetting(AccessPermissionSetting join
return this;
}

/**
* Optional. Access permission setting for viewing space membership. Must be specified together
* with `PermissionSettings.view_space_membership` in the update mask and request body when
* updating who can view space membership. When granting view access to a target audience, you
* must also grant `PermissionSettings.view_space_membership` to all members in the same request.
* To remove an existing target audience (for example, to restrict view access to space managers
* or assistant managers only), specify an empty `AccessPermissionSetting` (with no `principals`).
* @return value or {@code null} for none
*/
public AccessPermissionSetting getViewSpaceMembershipSetting() {
return viewSpaceMembershipSetting;
}

/**
* Optional. Access permission setting for viewing space membership. Must be specified together
* with `PermissionSettings.view_space_membership` in the update mask and request body when
* updating who can view space membership. When granting view access to a target audience, you
* must also grant `PermissionSettings.view_space_membership` to all members in the same request.
* To remove an existing target audience (for example, to restrict view access to space managers
* or assistant managers only), specify an empty `AccessPermissionSetting` (with no `principals`).
* @param viewSpaceMembershipSetting viewSpaceMembershipSetting or {@code null} for none
*/
public AccessPermissionSettings setViewSpaceMembershipSetting(AccessPermissionSetting viewSpaceMembershipSetting) {
this.viewSpaceMembershipSetting = viewSpaceMembershipSetting;
return this;
}

@Override
public AccessPermissionSettings set(String fieldName, Object value) {
return (AccessPermissionSettings) super.set(fieldName, value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ public final class Membership extends com.google.api.client.json.GenericJson {
/**
* Optional. The Google Chat user or app the membership corresponds to. If your Chat app
* [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-
* chat-user), the output populates the
* chat-user), the output only populates the
* [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) `name` and
* `type`.
* `type` fields for both internal and external users, unless they are members of the space or
* have a prior affinity, like a direct message (DM) conversation, with the calling user.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -184,9 +185,10 @@ public Membership setGroupMember(Group groupMember) {
/**
* Optional. The Google Chat user or app the membership corresponds to. If your Chat app
* [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-
* chat-user), the output populates the
* chat-user), the output only populates the
* [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) `name` and
* `type`.
* `type` fields for both internal and external users, unless they are members of the space or
* have a prior affinity, like a direct message (DM) conversation, with the calling user.
* @return value or {@code null} for none
*/
public User getMember() {
Expand All @@ -196,9 +198,10 @@ public User getMember() {
/**
* Optional. The Google Chat user or app the membership corresponds to. If your Chat app
* [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-
* chat-user), the output populates the
* chat-user), the output only populates the
* [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) `name` and
* `type`.
* `type` fields for both internal and external users, unless they are members of the space or
* have a prior affinity, like a direct message (DM) conversation, with the calling user.
* @param member member or {@code null} for none
*/
public Membership setMember(User member) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,10 @@ public final class Message extends com.google.api.client.json.GenericJson {
/**
* Output only. The user who created the message. If your Chat app [authenticates as a
* user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the
* output populates the
* output only populates the
* [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) `name` and
* `type`.
* `type` fields for both internal and external users, unless they are members of the space or
* have a prior affinity, like a direct message (DM) conversation, with the calling user.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -829,9 +830,10 @@ public Message setQuotedMessageMetadata(QuotedMessageMetadata quotedMessageMetad
/**
* Output only. The user who created the message. If your Chat app [authenticates as a
* user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the
* output populates the
* output only populates the
* [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) `name` and
* `type`.
* `type` fields for both internal and external users, unless they are members of the space or
* have a prior affinity, like a direct message (DM) conversation, with the calling user.
* @return value or {@code null} for none
*/
public User getSender() {
Expand All @@ -841,9 +843,10 @@ public User getSender() {
/**
* Output only. The user who created the message. If your Chat app [authenticates as a
* user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the
* output populates the
* output only populates the
* [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) `name` and
* `type`.
* `type` fields for both internal and external users, unless they are members of the space or
* have a prior affinity, like a direct message (DM) conversation, with the calling user.
* @param sender sender or {@code null} for none
*/
public Message setSender(User sender) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,20 @@ public final class PermissionSettings extends com.google.api.client.json.Generic
@com.google.api.client.util.Key
private PermissionSetting useAtMentionAll;

/**
* Optional. Setting for viewing space membership. Must be specified together with
* `AccessPermissionSettings.view_space_membership_setting` in the update mask and request body
* when updating who can view space membership. When restricting view access to specific roles
* (for example, space managers or assistant managers only), specify the desired role permissions
* here and provide an empty `AccessPermissionSettings.view_space_membership_setting` in the same
* request. If a target audience is configured in
* `AccessPermissionSettings.view_space_membership_setting`, this setting must be granted to all
* members.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private PermissionSetting viewSpaceMembership;

/**
* Optional. Setting for managing apps in a space.
* @return value or {@code null} for none
Expand Down Expand Up @@ -223,6 +237,37 @@ public PermissionSettings setUseAtMentionAll(PermissionSetting useAtMentionAll)
return this;
}

/**
* Optional. Setting for viewing space membership. Must be specified together with
* `AccessPermissionSettings.view_space_membership_setting` in the update mask and request body
* when updating who can view space membership. When restricting view access to specific roles
* (for example, space managers or assistant managers only), specify the desired role permissions
* here and provide an empty `AccessPermissionSettings.view_space_membership_setting` in the same
* request. If a target audience is configured in
* `AccessPermissionSettings.view_space_membership_setting`, this setting must be granted to all
* members.
* @return value or {@code null} for none
*/
public PermissionSetting getViewSpaceMembership() {
return viewSpaceMembership;
}

/**
* Optional. Setting for viewing space membership. Must be specified together with
* `AccessPermissionSettings.view_space_membership_setting` in the update mask and request body
* when updating who can view space membership. When restricting view access to specific roles
* (for example, space managers or assistant managers only), specify the desired role permissions
* here and provide an empty `AccessPermissionSettings.view_space_membership_setting` in the same
* request. If a target audience is configured in
* `AccessPermissionSettings.view_space_membership_setting`, this setting must be granted to all
* members.
* @param viewSpaceMembership viewSpaceMembership or {@code null} for none
*/
public PermissionSettings setViewSpaceMembership(PermissionSetting viewSpaceMembership) {
this.viewSpaceMembership = viewSpaceMembership;
return this;
}

@Override
public PermissionSettings set(String fieldName, Object value) {
return (PermissionSettings) super.set(fieldName, value);
Expand Down
Loading
Loading