Skip to content

Commit 9f7b096

Browse files
1 parent 0833490 commit 9f7b096

File tree

5 files changed

+169
-28
lines changed

5 files changed

+169
-28
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-rev20250130-2.0.0</version>
25+
<version>v1-rev20250206-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-rev20250130-2.0.0'
38+
implementation 'com.google.apis:google-api-services-chat:v1-rev20250206-2.0.0'
3939
}
4040
```
4141

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
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+
* Metadata associated with app commands. App commands are a way for users to invoke and interact
21+
* with a Chat app. These can be slash commands typed in the compose box, or items directly selected
22+
* from the integration menu. For more information, see [Respond to quick
23+
* commands](https://developers.google.com/workspace/chat/quick-commands).
24+
*
25+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
26+
* transmitted over HTTP when working with the Google Chat API. For a detailed explanation see:
27+
* <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>
28+
* </p>
29+
*
30+
* @author Google, Inc.
31+
*/
32+
@SuppressWarnings("javadoc")
33+
public final class AppCommandMetadata extends com.google.api.client.json.GenericJson {
34+
35+
/**
36+
* The command ID for the given app interaction.
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private java.lang.Integer appCommandId;
41+
42+
/**
43+
* The type of the app command.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.lang.String appCommandType;
48+
49+
/**
50+
* The command ID for the given app interaction.
51+
* @return value or {@code null} for none
52+
*/
53+
public java.lang.Integer getAppCommandId() {
54+
return appCommandId;
55+
}
56+
57+
/**
58+
* The command ID for the given app interaction.
59+
* @param appCommandId appCommandId or {@code null} for none
60+
*/
61+
public AppCommandMetadata setAppCommandId(java.lang.Integer appCommandId) {
62+
this.appCommandId = appCommandId;
63+
return this;
64+
}
65+
66+
/**
67+
* The type of the app command.
68+
* @return value or {@code null} for none
69+
*/
70+
public java.lang.String getAppCommandType() {
71+
return appCommandType;
72+
}
73+
74+
/**
75+
* The type of the app command.
76+
* @param appCommandType appCommandType or {@code null} for none
77+
*/
78+
public AppCommandMetadata setAppCommandType(java.lang.String appCommandType) {
79+
this.appCommandType = appCommandType;
80+
return this;
81+
}
82+
83+
@Override
84+
public AppCommandMetadata set(String fieldName, Object value) {
85+
return (AppCommandMetadata) super.set(fieldName, value);
86+
}
87+
88+
@Override
89+
public AppCommandMetadata clone() {
90+
return (AppCommandMetadata) super.clone();
91+
}
92+
93+
}

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

Lines changed: 69 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ public final class DeprecatedEvent extends com.google.api.client.json.GenericJso
4444
@com.google.api.client.util.Key
4545
private FormAction action;
4646

47+
/**
48+
* Populated for app commands, including slash commands and quick commands.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private AppCommandMetadata appCommandMetadata;
53+
4754
/**
4855
* Represents information about the user's client, such as locale, host app, and platform. For
4956
* Chat apps, `CommonEventObject` includes information submitted by users interacting with
@@ -54,13 +61,11 @@ public final class DeprecatedEvent extends com.google.api.client.json.GenericJso
5461
private CommonEventObject common;
5562

5663
/**
57-
* This URL is populated for `MESSAGE` and `ADDED_TO_SPACE` interaction events. After completing
58-
* an authorization or configuration flow outside of Google Chat, users must be redirected to this
59-
* URL to signal to Google Chat that the authorization or configuration flow was successful. For
60-
* more information, see [Connect a Chat app with other services and
61-
* tools](https://developers.google.com/workspace/chat/connect-web-services-tools). In [Developer
62-
* Preview](https://developers.google.com/workspace/preview), this URL is also populated for
63-
* `APP_COMMAND` interaction events.
64+
* This URL is populated for `MESSAGE`, `ADDED_TO_SPACE`, and `APP_COMMAND` interaction events.
65+
* After completing an authorization or configuration flow outside of Google Chat, users must be
66+
* redirected to this URL to signal to Google Chat that the authorization or configuration flow
67+
* was successful. For more information, see [Connect a Chat app with other services and
68+
* tools](https://developers.google.com/workspace/chat/connect-web-services-tools).
6469
* The value may be {@code null}.
6570
*/
6671
@com.google.api.client.util.Key
@@ -104,6 +109,15 @@ public final class DeprecatedEvent extends com.google.api.client.json.GenericJso
104109
@com.google.api.client.util.Key
105110
private Space space;
106111

112+
/**
113+
* The thread in which the user interacted with the Chat app. This could be in a new thread
114+
* created by a newly sent message. This field is populated if the interaction event is associated
115+
* with a specific message or thread.
116+
* The value may be {@code null}.
117+
*/
118+
@com.google.api.client.util.Key
119+
private Thread thread;
120+
107121
/**
108122
* The Chat app-defined key for the thread related to the interaction event. See [`spaces.messages
109123
* .thread.threadKey`](/chat/api/reference/rest/v1/spaces.messages#Thread.FIELDS.thread_key) for
@@ -162,6 +176,23 @@ public DeprecatedEvent setAction(FormAction action) {
162176
return this;
163177
}
164178

179+
/**
180+
* Populated for app commands, including slash commands and quick commands.
181+
* @return value or {@code null} for none
182+
*/
183+
public AppCommandMetadata getAppCommandMetadata() {
184+
return appCommandMetadata;
185+
}
186+
187+
/**
188+
* Populated for app commands, including slash commands and quick commands.
189+
* @param appCommandMetadata appCommandMetadata or {@code null} for none
190+
*/
191+
public DeprecatedEvent setAppCommandMetadata(AppCommandMetadata appCommandMetadata) {
192+
this.appCommandMetadata = appCommandMetadata;
193+
return this;
194+
}
195+
165196
/**
166197
* Represents information about the user's client, such as locale, host app, and platform. For
167198
* Chat apps, `CommonEventObject` includes information submitted by users interacting with
@@ -184,27 +215,23 @@ public DeprecatedEvent setCommon(CommonEventObject common) {
184215
}
185216

186217
/**
187-
* This URL is populated for `MESSAGE` and `ADDED_TO_SPACE` interaction events. After completing
188-
* an authorization or configuration flow outside of Google Chat, users must be redirected to this
189-
* URL to signal to Google Chat that the authorization or configuration flow was successful. For
190-
* more information, see [Connect a Chat app with other services and
191-
* tools](https://developers.google.com/workspace/chat/connect-web-services-tools). In [Developer
192-
* Preview](https://developers.google.com/workspace/preview), this URL is also populated for
193-
* `APP_COMMAND` interaction events.
218+
* This URL is populated for `MESSAGE`, `ADDED_TO_SPACE`, and `APP_COMMAND` interaction events.
219+
* After completing an authorization or configuration flow outside of Google Chat, users must be
220+
* redirected to this URL to signal to Google Chat that the authorization or configuration flow
221+
* was successful. For more information, see [Connect a Chat app with other services and
222+
* tools](https://developers.google.com/workspace/chat/connect-web-services-tools).
194223
* @return value or {@code null} for none
195224
*/
196225
public java.lang.String getConfigCompleteRedirectUrl() {
197226
return configCompleteRedirectUrl;
198227
}
199228

200229
/**
201-
* This URL is populated for `MESSAGE` and `ADDED_TO_SPACE` interaction events. After completing
202-
* an authorization or configuration flow outside of Google Chat, users must be redirected to this
203-
* URL to signal to Google Chat that the authorization or configuration flow was successful. For
204-
* more information, see [Connect a Chat app with other services and
205-
* tools](https://developers.google.com/workspace/chat/connect-web-services-tools). In [Developer
206-
* Preview](https://developers.google.com/workspace/preview), this URL is also populated for
207-
* `APP_COMMAND` interaction events.
230+
* This URL is populated for `MESSAGE`, `ADDED_TO_SPACE`, and `APP_COMMAND` interaction events.
231+
* After completing an authorization or configuration flow outside of Google Chat, users must be
232+
* redirected to this URL to signal to Google Chat that the authorization or configuration flow
233+
* was successful. For more information, see [Connect a Chat app with other services and
234+
* tools](https://developers.google.com/workspace/chat/connect-web-services-tools).
208235
* @param configCompleteRedirectUrl configCompleteRedirectUrl or {@code null} for none
209236
*/
210237
public DeprecatedEvent setConfigCompleteRedirectUrl(java.lang.String configCompleteRedirectUrl) {
@@ -303,6 +330,27 @@ public DeprecatedEvent setSpace(Space space) {
303330
return this;
304331
}
305332

333+
/**
334+
* The thread in which the user interacted with the Chat app. This could be in a new thread
335+
* created by a newly sent message. This field is populated if the interaction event is associated
336+
* with a specific message or thread.
337+
* @return value or {@code null} for none
338+
*/
339+
public Thread getThread() {
340+
return thread;
341+
}
342+
343+
/**
344+
* The thread in which the user interacted with the Chat app. This could be in a new thread
345+
* created by a newly sent message. This field is populated if the interaction event is associated
346+
* with a specific message or thread.
347+
* @param thread thread or {@code null} for none
348+
*/
349+
public DeprecatedEvent setThread(Thread thread) {
350+
this.thread = thread;
351+
return this;
352+
}
353+
306354
/**
307355
* The Chat app-defined key for the thread related to the interaction event. See [`spaces.messages
308356
* .thread.threadKey`](/chat/api/reference/rest/v1/spaces.messages#Thread.FIELDS.thread_key) for

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

Lines changed: 3 additions & 3 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-rev20250130-2.0.0</version>
12-
<name>Google Chat API v1-rev20250130-2.0.0</name>
11+
<version>v1-rev20250206-2.0.0</version>
12+
<name>Google Chat API v1-rev20250206-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>
@@ -90,7 +90,7 @@
9090
<windowtitle>Google Chat API ${project.version}</windowtitle>
9191
<links>
9292
<link>http://docs.oracle.com/javase/7/docs/api</link>
93-
<link>https://googleapis.dev/java/google-http-client/1.45.3/</link>
93+
<link>https://googleapis.dev/java/google-http-client/1.46.1/</link>
9494
<link>https://googleapis.dev/java/google-oauth-client/1.37.0/</link>
9595
<link>https://googleapis.dev/java/google-api-client/2.7.2/</link>
9696
</links>

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-rev20250130-2.0.0</version>
25+
<version>v1-rev20250206-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-rev20250130-2.0.0'
38+
implementation 'com.google.apis:google-api-services-chat:v1-rev20250206-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)