Skip to content

Commit f0b3bd8

Browse files
1 parent 544881e commit f0b3bd8

File tree

10 files changed

+299
-115
lines changed

10 files changed

+299
-115
lines changed

clients/google-api-services-chat/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-chat</artifactId>
25-
<version>v1-rev20240623-2.0.0</version>
25+
<version>v1-rev20240625-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-chat:v1-rev20240623-2.0.0'
38+
implementation 'com.google.apis:google-api-services-chat:v1-rev20240625-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/HangoutsChat.java

Lines changed: 87 additions & 60 deletions
Large diffs are not rendered by default.
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.chat.v1.model;
18+
19+
/**
20+
* Represents the [access setting](https://support.google.com/chat/answer/11971020) of the space.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Google Chat API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class AccessSettings extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Output only. Indicates the access state of the space.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String accessState;
38+
39+
/**
40+
* Optional. The resource name of the [target
41+
* audience](https://support.google.com/a/answer/9934697) who can discover the space, join the
42+
* space, and preview the messages in the space. For details, see [Make a space discoverable to a
43+
* target audience](https://developers.google.com/workspace/chat/space-target-audience). Format:
44+
* `audiences/{audience}` To use the default target audience for the Google Workspace
45+
* organization, set to `audiences/default`.
46+
* The value may be {@code null}.
47+
*/
48+
@com.google.api.client.util.Key
49+
private java.lang.String audience;
50+
51+
/**
52+
* Output only. Indicates the access state of the space.
53+
* @return value or {@code null} for none
54+
*/
55+
public java.lang.String getAccessState() {
56+
return accessState;
57+
}
58+
59+
/**
60+
* Output only. Indicates the access state of the space.
61+
* @param accessState accessState or {@code null} for none
62+
*/
63+
public AccessSettings setAccessState(java.lang.String accessState) {
64+
this.accessState = accessState;
65+
return this;
66+
}
67+
68+
/**
69+
* Optional. The resource name of the [target
70+
* audience](https://support.google.com/a/answer/9934697) who can discover the space, join the
71+
* space, and preview the messages in the space. For details, see [Make a space discoverable to a
72+
* target audience](https://developers.google.com/workspace/chat/space-target-audience). Format:
73+
* `audiences/{audience}` To use the default target audience for the Google Workspace
74+
* organization, set to `audiences/default`.
75+
* @return value or {@code null} for none
76+
*/
77+
public java.lang.String getAudience() {
78+
return audience;
79+
}
80+
81+
/**
82+
* Optional. The resource name of the [target
83+
* audience](https://support.google.com/a/answer/9934697) who can discover the space, join the
84+
* space, and preview the messages in the space. For details, see [Make a space discoverable to a
85+
* target audience](https://developers.google.com/workspace/chat/space-target-audience). Format:
86+
* `audiences/{audience}` To use the default target audience for the Google Workspace
87+
* organization, set to `audiences/default`.
88+
* @param audience audience or {@code null} for none
89+
*/
90+
public AccessSettings setAudience(java.lang.String audience) {
91+
this.audience = audience;
92+
return this;
93+
}
94+
95+
@Override
96+
public AccessSettings set(String fieldName, Object value) {
97+
return (AccessSettings) super.set(fieldName, value);
98+
}
99+
100+
@Override
101+
public AccessSettings clone() {
102+
return (AccessSettings) super.clone();
103+
}
104+
105+
}

clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/GoogleAppsCardV1Column.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818

1919
/**
2020
* A column. [Google Workspace Add-ons and Chat
21-
* apps](https://developers.google.com/workspace/extend): Columns for Google Workspace Add-ons are
22-
* in Developer Preview.
21+
* apps](https://developers.google.com/workspace/extend)
2322
*
2423
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2524
* transmitted over HTTP when working with the Google Chat API. For a detailed explanation see:

clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/GoogleAppsCardV1Widgets.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818

1919
/**
2020
* The supported widgets that you can include in a column. [Google Workspace Add-ons and Chat
21-
* apps](https://developers.google.com/workspace/extend): Columns for Google Workspace Add-ons are
22-
* in Developer Preview.
21+
* apps](https://developers.google.com/workspace/extend)
2322
*
2423
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2524
* transmitted over HTTP when working with the Google Chat API. For a detailed explanation see:

clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/Membership.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ public final class Membership extends com.google.api.client.json.GenericJson {
4949
private String deleteTime;
5050

5151
/**
52-
* The Google Group the membership corresponds to. Only supports read operations. Other
53-
* operations, like creating or updating a membership, aren't currently supported.
52+
* The Google Group the membership corresponds to.
5453
* The value may be {@code null}.
5554
*/
5655
@com.google.api.client.util.Key
@@ -133,17 +132,15 @@ public Membership setDeleteTime(String deleteTime) {
133132
}
134133

135134
/**
136-
* The Google Group the membership corresponds to. Only supports read operations. Other
137-
* operations, like creating or updating a membership, aren't currently supported.
135+
* The Google Group the membership corresponds to.
138136
* @return value or {@code null} for none
139137
*/
140138
public Group getGroupMember() {
141139
return groupMember;
142140
}
143141

144142
/**
145-
* The Google Group the membership corresponds to. Only supports read operations. Other
146-
* operations, like creating or updating a membership, aren't currently supported.
143+
* The Google Group the membership corresponds to.
147144
* @param groupMember groupMember or {@code null} for none
148145
*/
149146
public Membership setGroupMember(Group groupMember) {

clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/SetUpSpaceRequest.java

Lines changed: 45 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,21 @@
3030
public final class SetUpSpaceRequest extends com.google.api.client.json.GenericJson {
3131

3232
/**
33-
* Optional. The Google Chat users to invite to join the space. Omit the calling user, as they are
34-
* added automatically. The set currently allows up to 20 memberships (in addition to the caller).
35-
* For human membership, the `Membership.member` field must contain a `user` with `name` populated
36-
* (format: `users/{user}`) and `type` set to `User.Type.HUMAN`. You can only add human users when
37-
* setting up a space (adding Chat apps is only supported for direct message setup with the
38-
* calling app). You can also add members using the user's email as an alias for {user}. For
39-
* example, the `user.name` can be `users/[email protected]`. To invite Gmail users or users from
40-
* external Google Workspace domains, user's email must be used for `{user}`. Optional when
41-
* setting `Space.spaceType` to `SPACE`. Required when setting `Space.spaceType` to `GROUP_CHAT`,
42-
* along with at least two memberships. Required when setting `Space.spaceType` to
43-
* `DIRECT_MESSAGE` with a human user, along with exactly one membership. Must be empty when
44-
* creating a 1:1 conversation between a human and the calling Chat app (when setting
45-
* `Space.spaceType` to `DIRECT_MESSAGE` and `Space.singleUserBotDm` to `true`).
33+
* Optional. The Google Chat users or groups to invite to join the space. Omit the calling user,
34+
* as they are added automatically. The set currently allows up to 20 memberships (in addition to
35+
* the caller). For human membership, the `Membership.member` field must contain a `user` with
36+
* `name` populated (format: `users/{user}`) and `type` set to `User.Type.HUMAN`. You can only add
37+
* human users when setting up a space (adding Chat apps is only supported for direct message
38+
* setup with the calling app). You can also add members using the user's email as an alias for
39+
* {user}. For example, the `user.name` can be `users/[email protected]`. To invite Gmail users or
40+
* users from external Google Workspace domains, user's email must be used for `{user}`. For
41+
* Google group membership, the `Membership.group_member` field must contain a `group` with `name`
42+
* populated (format `groups/{group}`). You can only add Google groups when setting
43+
* `Space.spaceType` to `SPACE`. Optional when setting `Space.spaceType` to `SPACE`. Required when
44+
* setting `Space.spaceType` to `GROUP_CHAT`, along with at least two memberships. Required when
45+
* setting `Space.spaceType` to `DIRECT_MESSAGE` with a human user, along with exactly one
46+
* membership. Must be empty when creating a 1:1 conversation between a human and the calling Chat
47+
* app (when setting `Space.spaceType` to `DIRECT_MESSAGE` and `Space.singleUserBotDm` to `true`).
4648
* The value may be {@code null}.
4749
*/
4850
@com.google.api.client.util.Key
@@ -81,39 +83,43 @@ public final class SetUpSpaceRequest extends com.google.api.client.json.GenericJ
8183
private Space space;
8284

8385
/**
84-
* Optional. The Google Chat users to invite to join the space. Omit the calling user, as they are
85-
* added automatically. The set currently allows up to 20 memberships (in addition to the caller).
86-
* For human membership, the `Membership.member` field must contain a `user` with `name` populated
87-
* (format: `users/{user}`) and `type` set to `User.Type.HUMAN`. You can only add human users when
88-
* setting up a space (adding Chat apps is only supported for direct message setup with the
89-
* calling app). You can also add members using the user's email as an alias for {user}. For
90-
* example, the `user.name` can be `users/[email protected]`. To invite Gmail users or users from
91-
* external Google Workspace domains, user's email must be used for `{user}`. Optional when
92-
* setting `Space.spaceType` to `SPACE`. Required when setting `Space.spaceType` to `GROUP_CHAT`,
93-
* along with at least two memberships. Required when setting `Space.spaceType` to
94-
* `DIRECT_MESSAGE` with a human user, along with exactly one membership. Must be empty when
95-
* creating a 1:1 conversation between a human and the calling Chat app (when setting
96-
* `Space.spaceType` to `DIRECT_MESSAGE` and `Space.singleUserBotDm` to `true`).
86+
* Optional. The Google Chat users or groups to invite to join the space. Omit the calling user,
87+
* as they are added automatically. The set currently allows up to 20 memberships (in addition to
88+
* the caller). For human membership, the `Membership.member` field must contain a `user` with
89+
* `name` populated (format: `users/{user}`) and `type` set to `User.Type.HUMAN`. You can only add
90+
* human users when setting up a space (adding Chat apps is only supported for direct message
91+
* setup with the calling app). You can also add members using the user's email as an alias for
92+
* {user}. For example, the `user.name` can be `users/[email protected]`. To invite Gmail users or
93+
* users from external Google Workspace domains, user's email must be used for `{user}`. For
94+
* Google group membership, the `Membership.group_member` field must contain a `group` with `name`
95+
* populated (format `groups/{group}`). You can only add Google groups when setting
96+
* `Space.spaceType` to `SPACE`. Optional when setting `Space.spaceType` to `SPACE`. Required when
97+
* setting `Space.spaceType` to `GROUP_CHAT`, along with at least two memberships. Required when
98+
* setting `Space.spaceType` to `DIRECT_MESSAGE` with a human user, along with exactly one
99+
* membership. Must be empty when creating a 1:1 conversation between a human and the calling Chat
100+
* app (when setting `Space.spaceType` to `DIRECT_MESSAGE` and `Space.singleUserBotDm` to `true`).
97101
* @return value or {@code null} for none
98102
*/
99103
public java.util.List<Membership> getMemberships() {
100104
return memberships;
101105
}
102106

103107
/**
104-
* Optional. The Google Chat users to invite to join the space. Omit the calling user, as they are
105-
* added automatically. The set currently allows up to 20 memberships (in addition to the caller).
106-
* For human membership, the `Membership.member` field must contain a `user` with `name` populated
107-
* (format: `users/{user}`) and `type` set to `User.Type.HUMAN`. You can only add human users when
108-
* setting up a space (adding Chat apps is only supported for direct message setup with the
109-
* calling app). You can also add members using the user's email as an alias for {user}. For
110-
* example, the `user.name` can be `users/[email protected]`. To invite Gmail users or users from
111-
* external Google Workspace domains, user's email must be used for `{user}`. Optional when
112-
* setting `Space.spaceType` to `SPACE`. Required when setting `Space.spaceType` to `GROUP_CHAT`,
113-
* along with at least two memberships. Required when setting `Space.spaceType` to
114-
* `DIRECT_MESSAGE` with a human user, along with exactly one membership. Must be empty when
115-
* creating a 1:1 conversation between a human and the calling Chat app (when setting
116-
* `Space.spaceType` to `DIRECT_MESSAGE` and `Space.singleUserBotDm` to `true`).
108+
* Optional. The Google Chat users or groups to invite to join the space. Omit the calling user,
109+
* as they are added automatically. The set currently allows up to 20 memberships (in addition to
110+
* the caller). For human membership, the `Membership.member` field must contain a `user` with
111+
* `name` populated (format: `users/{user}`) and `type` set to `User.Type.HUMAN`. You can only add
112+
* human users when setting up a space (adding Chat apps is only supported for direct message
113+
* setup with the calling app). You can also add members using the user's email as an alias for
114+
* {user}. For example, the `user.name` can be `users/[email protected]`. To invite Gmail users or
115+
* users from external Google Workspace domains, user's email must be used for `{user}`. For
116+
* Google group membership, the `Membership.group_member` field must contain a `group` with `name`
117+
* populated (format `groups/{group}`). You can only add Google groups when setting
118+
* `Space.spaceType` to `SPACE`. Optional when setting `Space.spaceType` to `SPACE`. Required when
119+
* setting `Space.spaceType` to `GROUP_CHAT`, along with at least two memberships. Required when
120+
* setting `Space.spaceType` to `DIRECT_MESSAGE` with a human user, along with exactly one
121+
* membership. Must be empty when creating a 1:1 conversation between a human and the calling Chat
122+
* app (when setting `Space.spaceType` to `DIRECT_MESSAGE` and `Space.singleUserBotDm` to `true`).
117123
* @param memberships memberships or {@code null} for none
118124
*/
119125
public SetUpSpaceRequest setMemberships(java.util.List<Membership> memberships) {

clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/Space.java

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@
3030
@SuppressWarnings("javadoc")
3131
public final class Space extends com.google.api.client.json.GenericJson {
3232

33+
/**
34+
* Optional. Specifies the [access setting](https://support.google.com/chat/answer/11971020) of
35+
* the space. Only populated when the `space_type` is `SPACE`.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private AccessSettings accessSettings;
40+
3341
/**
3442
* Output only. For direct message (DM) spaces with a Chat app, whether the space was created by a
3543
* Google Workspace administrator. Administrators can install and set up a direct message with a
@@ -131,6 +139,13 @@ public final class Space extends com.google.api.client.json.GenericJson {
131139
@com.google.api.client.util.Key
132140
private java.lang.String spaceType;
133141

142+
/**
143+
* Output only. The URI for a user to access the space.
144+
* The value may be {@code null}.
145+
*/
146+
@com.google.api.client.util.Key
147+
private java.lang.String spaceUri;
148+
134149
/**
135150
* Output only. Deprecated: Use `spaceThreadingState` instead. Whether messages are threaded in
136151
* this space.
@@ -146,6 +161,25 @@ public final class Space extends com.google.api.client.json.GenericJson {
146161
@com.google.api.client.util.Key
147162
private java.lang.String type;
148163

164+
/**
165+
* Optional. Specifies the [access setting](https://support.google.com/chat/answer/11971020) of
166+
* the space. Only populated when the `space_type` is `SPACE`.
167+
* @return value or {@code null} for none
168+
*/
169+
public AccessSettings getAccessSettings() {
170+
return accessSettings;
171+
}
172+
173+
/**
174+
* Optional. Specifies the [access setting](https://support.google.com/chat/answer/11971020) of
175+
* the space. Only populated when the `space_type` is `SPACE`.
176+
* @param accessSettings accessSettings or {@code null} for none
177+
*/
178+
public Space setAccessSettings(AccessSettings accessSettings) {
179+
this.accessSettings = accessSettings;
180+
return this;
181+
}
182+
149183
/**
150184
* Output only. For direct message (DM) spaces with a Chat app, whether the space was created by a
151185
* Google Workspace administrator. Administrators can install and set up a direct message with a
@@ -381,6 +415,23 @@ public Space setSpaceType(java.lang.String spaceType) {
381415
return this;
382416
}
383417

418+
/**
419+
* Output only. The URI for a user to access the space.
420+
* @return value or {@code null} for none
421+
*/
422+
public java.lang.String getSpaceUri() {
423+
return spaceUri;
424+
}
425+
426+
/**
427+
* Output only. The URI for a user to access the space.
428+
* @param spaceUri spaceUri or {@code null} for none
429+
*/
430+
public Space setSpaceUri(java.lang.String spaceUri) {
431+
this.spaceUri = spaceUri;
432+
return this;
433+
}
434+
384435
/**
385436
* Output only. Deprecated: Use `spaceThreadingState` instead. Whether messages are threaded in
386437
* this space.

clients/google-api-services-chat/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-chat</artifactId>
11-
<version>v1-rev20240623-2.0.0</version>
12-
<name>Google Chat API v1-rev20240623-2.0.0</name>
11+
<version>v1-rev20240625-2.0.0</version>
12+
<name>Google Chat API v1-rev20240625-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-chat/v1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-chat</artifactId>
25-
<version>v1-rev20240623-2.0.0</version>
25+
<version>v1-rev20240625-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-chat:v1-rev20240623-2.0.0'
38+
implementation 'com.google.apis:google-api-services-chat:v1-rev20240625-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)