From d541ad4e2cc21c93e4f4edbae61861755b51eead Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Thu, 17 Sep 2026 18:13:02 -0700 Subject: [PATCH] chore: regenerate chat client --- .../v1/2.0.0/README.md | 4 +- .../api/services/chat/v1/HangoutsChat.java | 25 +++++----- .../v1/model/AccessPermissionSettings.java | 39 +++++++++++++++ .../services/chat/v1/model/Membership.java | 15 +++--- .../api/services/chat/v1/model/Message.java | 15 +++--- .../chat/v1/model/PermissionSettings.java | 45 ++++++++++++++++++ .../api/services/chat/v1/model/User.java | 47 +++++++++++++++---- .../google-api-services-chat/v1/2.0.0/pom.xml | 4 +- clients/google-api-services-chat/v1/README.md | 4 +- 9 files changed, 160 insertions(+), 38 deletions(-) diff --git a/clients/google-api-services-chat/v1/2.0.0/README.md b/clients/google-api-services-chat/v1/2.0.0/README.md index d1547111060..ba386017f95 100644 --- a/clients/google-api-services-chat/v1/2.0.0/README.md +++ b/clients/google-api-services-chat/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-chat - v1-rev20260828-2.0.0 + v1-rev20260913-2.0.0 @@ -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' } ``` diff --git a/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/HangoutsChat.java b/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/HangoutsChat.java index e7013a09b91..4558b577b9b 100644 --- a/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/HangoutsChat.java +++ b/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/HangoutsChat.java @@ -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; @@ -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; @@ -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; diff --git a/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/AccessPermissionSettings.java b/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/AccessPermissionSettings.java index 222d0dc3d17..5e6fa469fd1 100644 --- a/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/AccessPermissionSettings.java +++ b/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/AccessPermissionSettings.java @@ -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 @@ -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); diff --git a/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/Membership.java b/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/Membership.java index 1e2b22ea335..b0f115c8ed2 100644 --- a/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/Membership.java +++ b/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/Membership.java @@ -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 @@ -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() { @@ -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) { diff --git a/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/Message.java b/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/Message.java index e502185f8d2..22592e6f185 100644 --- a/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/Message.java +++ b/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/Message.java @@ -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 @@ -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() { @@ -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) { diff --git a/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/PermissionSettings.java b/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/PermissionSettings.java index 34ac7ad0aef..dce0c4533c6 100644 --- a/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/PermissionSettings.java +++ b/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/PermissionSettings.java @@ -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 @@ -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); diff --git a/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/User.java b/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/User.java index 1f6c2d591e1..60f6607fe01 100644 --- a/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/User.java +++ b/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/User.java @@ -17,9 +17,11 @@ package com.google.api.services.chat.v1.model; /** - * A user in Google Chat. When returned as an output from a request, if your Chat app [authenticates - * as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the - * output for a `User` resource only populates the user's `name` and `type`. + * If your Chat app [authenticates as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output + * for a `User` resource (such as in the Messages and Memberships APIs) only populates the `name` + * and `type` fields for both internal and external users, unless they are members of the space or + * have prior affinity with the calling user. * *

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Google Chat API. For a detailed explanation see: @@ -32,7 +34,14 @@ public final class User extends com.google.api.client.json.GenericJson { /** - * Output only. The user's display name. + * Output only. The user's display name. Populated for both app authentication and user + * authentication. This field is always populated for requests made with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * When calling the Messages and Memberships APIs with [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * this field is populated for both internal and external users for the `sender` of a message, + * users within `annotations` (such as user mentions), and within `Membership` resources, provided + * the user is a member of the space or has prior affinity with the calling user. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -46,7 +55,9 @@ public final class User extends com.google.api.client.json.GenericJson { private java.lang.String domainId; /** - * Output only. When `true`, the user is deleted or their profile is not visible. + * Output only. When `true`, the user is deleted or their profile is not visible, such as when a + * user is mentioned in a space without being a member and without prior affinity with the calling + * user. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -76,7 +87,14 @@ public final class User extends com.google.api.client.json.GenericJson { private java.lang.String type; /** - * Output only. The user's display name. + * Output only. The user's display name. Populated for both app authentication and user + * authentication. This field is always populated for requests made with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * When calling the Messages and Memberships APIs with [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * this field is populated for both internal and external users for the `sender` of a message, + * users within `annotations` (such as user mentions), and within `Membership` resources, provided + * the user is a member of the space or has prior affinity with the calling user. * @return value or {@code null} for none */ public java.lang.String getDisplayName() { @@ -84,7 +102,14 @@ public java.lang.String getDisplayName() { } /** - * Output only. The user's display name. + * Output only. The user's display name. Populated for both app authentication and user + * authentication. This field is always populated for requests made with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * When calling the Messages and Memberships APIs with [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * this field is populated for both internal and external users for the `sender` of a message, + * users within `annotations` (such as user mentions), and within `Membership` resources, provided + * the user is a member of the space or has prior affinity with the calling user. * @param displayName displayName or {@code null} for none */ public User setDisplayName(java.lang.String displayName) { @@ -110,7 +135,9 @@ public User setDomainId(java.lang.String domainId) { } /** - * Output only. When `true`, the user is deleted or their profile is not visible. + * Output only. When `true`, the user is deleted or their profile is not visible, such as when a + * user is mentioned in a space without being a member and without prior affinity with the calling + * user. * @return value or {@code null} for none */ public java.lang.Boolean getIsAnonymous() { @@ -118,7 +145,9 @@ public java.lang.Boolean getIsAnonymous() { } /** - * Output only. When `true`, the user is deleted or their profile is not visible. + * Output only. When `true`, the user is deleted or their profile is not visible, such as when a + * user is mentioned in a space without being a member and without prior affinity with the calling + * user. * @param isAnonymous isAnonymous or {@code null} for none */ public User setIsAnonymous(java.lang.Boolean isAnonymous) { diff --git a/clients/google-api-services-chat/v1/2.0.0/pom.xml b/clients/google-api-services-chat/v1/2.0.0/pom.xml index 8e7baa9a149..92a895a739f 100644 --- a/clients/google-api-services-chat/v1/2.0.0/pom.xml +++ b/clients/google-api-services-chat/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-chat - v1-rev20260828-2.0.0 - Google Chat API v1-rev20260828-2.0.0 + v1-rev20260913-2.0.0 + Google Chat API v1-rev20260913-2.0.0 jar 2011 diff --git a/clients/google-api-services-chat/v1/README.md b/clients/google-api-services-chat/v1/README.md index d1547111060..ba386017f95 100644 --- a/clients/google-api-services-chat/v1/README.md +++ b/clients/google-api-services-chat/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-chat - v1-rev20260828-2.0.0 + v1-rev20260913-2.0.0 @@ -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' } ```