Skip to content

Commit e785c92

Browse files
chore: regenerate chat client
1 parent c366c2f commit e785c92

File tree

9 files changed

+379
-25
lines changed

9 files changed

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

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
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 about the source space from which a message was forwarded.
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 ForwardedMetadata extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Output only. The resource name of the source space. Format: spaces/{space}
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String space;
38+
39+
/**
40+
* Output only. The display name of the source space or DM at the time of forwarding. For `SPACE`,
41+
* this is the space name. For `DIRECT_MESSAGE`, this is the other participant's name (e.g., "User
42+
* A"). For `GROUP_CHAT`, this is a generated name based on members' first names, limited to 5
43+
* including the creator (e.g., "User A, User B").
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.lang.String spaceDisplayName;
48+
49+
/**
50+
* Output only. The resource name of the source space. Format: spaces/{space}
51+
* @return value or {@code null} for none
52+
*/
53+
public java.lang.String getSpace() {
54+
return space;
55+
}
56+
57+
/**
58+
* Output only. The resource name of the source space. Format: spaces/{space}
59+
* @param space space or {@code null} for none
60+
*/
61+
public ForwardedMetadata setSpace(java.lang.String space) {
62+
this.space = space;
63+
return this;
64+
}
65+
66+
/**
67+
* Output only. The display name of the source space or DM at the time of forwarding. For `SPACE`,
68+
* this is the space name. For `DIRECT_MESSAGE`, this is the other participant's name (e.g., "User
69+
* A"). For `GROUP_CHAT`, this is a generated name based on members' first names, limited to 5
70+
* including the creator (e.g., "User A, User B").
71+
* @return value or {@code null} for none
72+
*/
73+
public java.lang.String getSpaceDisplayName() {
74+
return spaceDisplayName;
75+
}
76+
77+
/**
78+
* Output only. The display name of the source space or DM at the time of forwarding. For `SPACE`,
79+
* this is the space name. For `DIRECT_MESSAGE`, this is the other participant's name (e.g., "User
80+
* A"). For `GROUP_CHAT`, this is a generated name based on members' first names, limited to 5
81+
* including the creator (e.g., "User A, User B").
82+
* @param spaceDisplayName spaceDisplayName or {@code null} for none
83+
*/
84+
public ForwardedMetadata setSpaceDisplayName(java.lang.String spaceDisplayName) {
85+
this.spaceDisplayName = spaceDisplayName;
86+
return this;
87+
}
88+
89+
@Override
90+
public ForwardedMetadata set(String fieldName, Object value) {
91+
return (ForwardedMetadata) super.set(fieldName, value);
92+
}
93+
94+
@Override
95+
public ForwardedMetadata clone() {
96+
return (ForwardedMetadata) super.clone();
97+
}
98+
99+
}

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

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

1919
/**
2020
* A configuration object that helps configure the data sources for a widget. Available for Google
21-
* Workspace add-ons that extend Google Workspace Studio. Unavailable for Google Chat apps.
21+
* Chat apps and Google Workspace add-ons that extend Google Workspace Studio.
2222
*
2323
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2424
* 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/GoogleAppsCardV1SelectionInput.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public final class GoogleAppsCardV1SelectionInput extends com.google.api.client.
4444
* grained control over the data source. If specified, the `multi_select_max_selected_items`
4545
* field, `multi_select_min_query_length` field, `external_data_source` field and
4646
* `platform_data_source` field are ignored. Available for Google Workspace add-ons that extend
47-
* Google Workspace Studio. Available for the `Dropdown widget` widget in Google Chat apps as part
48-
* of the [Developer Preview Program](https://developers.google.com/workspace/preview). For the
47+
* Google Workspace Studio. Available for the `Dropdown widget` in Google Chat apps as part of the
48+
* [Developer Preview Program](https://developers.google.com/workspace/preview). For the
4949
* `Dropdown` widget in Google Chat apps, only one `DataSourceConfig` is supported. If multiple
5050
* `DataSourceConfig`s are set, only the first one is used.
5151
* The value may be {@code null}.
@@ -152,8 +152,8 @@ public final class GoogleAppsCardV1SelectionInput extends com.google.api.client.
152152
* grained control over the data source. If specified, the `multi_select_max_selected_items`
153153
* field, `multi_select_min_query_length` field, `external_data_source` field and
154154
* `platform_data_source` field are ignored. Available for Google Workspace add-ons that extend
155-
* Google Workspace Studio. Available for the `Dropdown widget` widget in Google Chat apps as part
156-
* of the [Developer Preview Program](https://developers.google.com/workspace/preview). For the
155+
* Google Workspace Studio. Available for the `Dropdown widget` in Google Chat apps as part of the
156+
* [Developer Preview Program](https://developers.google.com/workspace/preview). For the
157157
* `Dropdown` widget in Google Chat apps, only one `DataSourceConfig` is supported. If multiple
158158
* `DataSourceConfig`s are set, only the first one is used.
159159
* @return value or {@code null} for none
@@ -167,8 +167,8 @@ public java.util.List<GoogleAppsCardV1DataSourceConfig> getDataSourceConfigs() {
167167
* grained control over the data source. If specified, the `multi_select_max_selected_items`
168168
* field, `multi_select_min_query_length` field, `external_data_source` field and
169169
* `platform_data_source` field are ignored. Available for Google Workspace add-ons that extend
170-
* Google Workspace Studio. Available for the `Dropdown widget` widget in Google Chat apps as part
171-
* of the [Developer Preview Program](https://developers.google.com/workspace/preview). For the
170+
* Google Workspace Studio. Available for the `Dropdown widget` in Google Chat apps as part of the
171+
* [Developer Preview Program](https://developers.google.com/workspace/preview). For the
172172
* `Dropdown` widget in Google Chat apps, only one `DataSourceConfig` is supported. If multiple
173173
* `DataSourceConfig`s are set, only the first one is used.
174174
* @param dataSourceConfigs dataSourceConfigs or {@code null} for none

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

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,8 @@ public final class Message extends com.google.api.client.json.GenericJson {
249249
* the Chat app. To include this field in your request, you must call the Chat API using [app
250250
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
251251
* and omit the following: * [Attachments](https://developers.google.com/workspace/chat/api/refere
252-
* nce/rest/v1/spaces.messages.attachments) * [Accessory widgets](https://developers.google.com/wo
253-
* rkspace/chat/api/reference/rest/v1/spaces.messages#Message.AccessoryWidget) For details, see
254-
* [Send a message privately](https://developers.google.com/workspace/chat/create-
255-
* messages#private).
252+
* nce/rest/v1/spaces.messages.attachments) For details, see [Send a message
253+
* privately](https://developers.google.com/workspace/chat/create-messages#private).
256254
* The value may be {@code null}.
257255
*/
258256
@com.google.api.client.util.Key
@@ -731,10 +729,8 @@ public Message setName(java.lang.String name) {
731729
* the Chat app. To include this field in your request, you must call the Chat API using [app
732730
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
733731
* and omit the following: * [Attachments](https://developers.google.com/workspace/chat/api/refere
734-
* nce/rest/v1/spaces.messages.attachments) * [Accessory widgets](https://developers.google.com/wo
735-
* rkspace/chat/api/reference/rest/v1/spaces.messages#Message.AccessoryWidget) For details, see
736-
* [Send a message privately](https://developers.google.com/workspace/chat/create-
737-
* messages#private).
732+
* nce/rest/v1/spaces.messages.attachments) For details, see [Send a message
733+
* privately](https://developers.google.com/workspace/chat/create-messages#private).
738734
* @return value or {@code null} for none
739735
*/
740736
public User getPrivateMessageViewer() {
@@ -747,10 +743,8 @@ public User getPrivateMessageViewer() {
747743
* the Chat app. To include this field in your request, you must call the Chat API using [app
748744
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
749745
* and omit the following: * [Attachments](https://developers.google.com/workspace/chat/api/refere
750-
* nce/rest/v1/spaces.messages.attachments) * [Accessory widgets](https://developers.google.com/wo
751-
* rkspace/chat/api/reference/rest/v1/spaces.messages#Message.AccessoryWidget) For details, see
752-
* [Send a message privately](https://developers.google.com/workspace/chat/create-
753-
* messages#private).
746+
* nce/rest/v1/spaces.messages.attachments) For details, see [Send a message
747+
* privately](https://developers.google.com/workspace/chat/create-messages#private).
754748
* @param privateMessageViewer privateMessageViewer or {@code null} for none
755749
*/
756750
public Message setPrivateMessageViewer(User privateMessageViewer) {

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

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@
3434
@SuppressWarnings("javadoc")
3535
public final class QuotedMessageMetadata extends com.google.api.client.json.GenericJson {
3636

37+
/**
38+
* Output only. Metadata about the source space of the quoted message. Populated only for FORWARD
39+
* quote type.
40+
* The value may be {@code null}.
41+
*/
42+
@com.google.api.client.util.Key
43+
private ForwardedMetadata forwardedMetadata;
44+
3745
/**
3846
* Required. The timestamp when the quoted message was created or when the quoted message was last
3947
* updated. If the message was edited, use this field, `last_update_time`. If the message was
@@ -52,6 +60,40 @@ public final class QuotedMessageMetadata extends com.google.api.client.json.Gene
5260
@com.google.api.client.util.Key
5361
private java.lang.String name;
5462

63+
/**
64+
* Optional. Specifies the quote type. If not set, defaults to REPLY in the message read/write
65+
* path for backward compatibility.
66+
* The value may be {@code null}.
67+
*/
68+
@com.google.api.client.util.Key
69+
private java.lang.String quoteType;
70+
71+
/**
72+
* Output only. A snapshot of the quoted message's content.
73+
* The value may be {@code null}.
74+
*/
75+
@com.google.api.client.util.Key
76+
private QuotedMessageSnapshot quotedMessageSnapshot;
77+
78+
/**
79+
* Output only. Metadata about the source space of the quoted message. Populated only for FORWARD
80+
* quote type.
81+
* @return value or {@code null} for none
82+
*/
83+
public ForwardedMetadata getForwardedMetadata() {
84+
return forwardedMetadata;
85+
}
86+
87+
/**
88+
* Output only. Metadata about the source space of the quoted message. Populated only for FORWARD
89+
* quote type.
90+
* @param forwardedMetadata forwardedMetadata or {@code null} for none
91+
*/
92+
public QuotedMessageMetadata setForwardedMetadata(ForwardedMetadata forwardedMetadata) {
93+
this.forwardedMetadata = forwardedMetadata;
94+
return this;
95+
}
96+
5597
/**
5698
* Required. The timestamp when the quoted message was created or when the quoted message was last
5799
* updated. If the message was edited, use this field, `last_update_time`. If the message was
@@ -94,6 +136,42 @@ public QuotedMessageMetadata setName(java.lang.String name) {
94136
return this;
95137
}
96138

139+
/**
140+
* Optional. Specifies the quote type. If not set, defaults to REPLY in the message read/write
141+
* path for backward compatibility.
142+
* @return value or {@code null} for none
143+
*/
144+
public java.lang.String getQuoteType() {
145+
return quoteType;
146+
}
147+
148+
/**
149+
* Optional. Specifies the quote type. If not set, defaults to REPLY in the message read/write
150+
* path for backward compatibility.
151+
* @param quoteType quoteType or {@code null} for none
152+
*/
153+
public QuotedMessageMetadata setQuoteType(java.lang.String quoteType) {
154+
this.quoteType = quoteType;
155+
return this;
156+
}
157+
158+
/**
159+
* Output only. A snapshot of the quoted message's content.
160+
* @return value or {@code null} for none
161+
*/
162+
public QuotedMessageSnapshot getQuotedMessageSnapshot() {
163+
return quotedMessageSnapshot;
164+
}
165+
166+
/**
167+
* Output only. A snapshot of the quoted message's content.
168+
* @param quotedMessageSnapshot quotedMessageSnapshot or {@code null} for none
169+
*/
170+
public QuotedMessageMetadata setQuotedMessageSnapshot(QuotedMessageSnapshot quotedMessageSnapshot) {
171+
this.quotedMessageSnapshot = quotedMessageSnapshot;
172+
return this;
173+
}
174+
97175
@Override
98176
public QuotedMessageMetadata set(String fieldName, Object value) {
99177
return (QuotedMessageMetadata) super.set(fieldName, value);

0 commit comments

Comments
 (0)