Skip to content

Commit 0d07be3

Browse files
1 parent a152f85 commit 0d07be3

File tree

11 files changed

+381
-26
lines changed

11 files changed

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

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,22 @@ public class HangoutsChatScopes {
6868
/** View members in Google Chat conversations.. */
6969
public static final String CHAT_MEMBERSHIPS_READONLY = "https://www.googleapis.com/auth/chat.memberships.readonly";
7070

71-
/** See, compose, send, update, and delete messages and their associated attachments, and add, see, and delete reactions to messages.. */
71+
/** See, compose, send, update, and delete messages as well as their message content; add, see, and delete reactions to messages.. */
7272
public static final String CHAT_MESSAGES = "https://www.googleapis.com/auth/chat.messages";
7373

7474
/** Compose and send messages in Google Chat. */
7575
public static final String CHAT_MESSAGES_CREATE = "https://www.googleapis.com/auth/chat.messages.create";
7676

77-
/** See, add, and delete reactions to messages in Google Chat. */
77+
/** See, add, and delete reactions as well as their reaction content to messages in Google Chat. */
7878
public static final String CHAT_MESSAGES_REACTIONS = "https://www.googleapis.com/auth/chat.messages.reactions";
7979

8080
/** Add reactions to messages in Google Chat. */
8181
public static final String CHAT_MESSAGES_REACTIONS_CREATE = "https://www.googleapis.com/auth/chat.messages.reactions.create";
8282

83-
/** View reactions to messages in Google Chat. */
83+
/** View reactions as well as their reaction content to messages in Google Chat. */
8484
public static final String CHAT_MESSAGES_REACTIONS_READONLY = "https://www.googleapis.com/auth/chat.messages.reactions.readonly";
8585

86-
/** See messages and their associated reactions and attachments in Google Chat. */
86+
/** See messages as well as their reactions and message content in Google Chat. */
8787
public static final String CHAT_MESSAGES_READONLY = "https://www.googleapis.com/auth/chat.messages.readonly";
8888

8989
/** Create conversations and spaces and see or update metadata (including history settings and access settings) in Google Chat. */

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

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,22 @@
2424
* the following documentation: * For Google Chat apps, see [Design the components of a card or
2525
* dialog](https://developers.google.com/workspace/chat/design-components-card-dialog). * For Google
2626
* Workspace Add-ons, see [Card-based interfaces](https://developers.google.com/apps-script/add-
27-
* ons/concepts/cards). **Example: Card message for a Google Chat app** ![Example contact
28-
* card](https://developers.google.com/workspace/chat/images/card_api_reference.png) To create the
29-
* sample card message in Google Chat, use the following JSON: ``` { "cardsV2": [ { "cardId":
30-
* "unique-card-id", "card": { "header": { "title": "Sasha", "subtitle": "Software Engineer",
31-
* "imageUrl": "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png",
32-
* "imageType": "CIRCLE", "imageAltText": "Avatar for Sasha" }, "sections": [ { "header": "Contact
33-
* Info", "collapsible": true, "uncollapsibleWidgetsCount": 1, "widgets": [ { "decoratedText": {
34-
* "startIcon": { "knownIcon": "EMAIL" }, "text": "[email protected]" } }, { "decoratedText": {
35-
* "startIcon": { "knownIcon": "PERSON" }, "text": "Online" } }, { "decoratedText": { "startIcon": {
36-
* "knownIcon": "PHONE" }, "text": "+1 (555) 555-1234" } }, { "buttonList": { "buttons": [ { "text":
37-
* "Share", "onClick": { "openLink": { "url": "https://example.com/share" } } }, { "text": "Edit",
38-
* "onClick": { "action": { "function": "goToView", "parameters": [ { "key": "viewType", "value":
39-
* "EDIT" } ] } } } ] } } ] } ] } } ] } ```
27+
* ons/concepts/cards). Note: You can add up to 100 widgets per card. Any widgets beyond this limit
28+
* are ignored. This limit applies to both card messages and dialogs in Google Chat apps, and to
29+
* cards in Google Workspace Add-ons. **Example: Card message for a Google Chat app** ![Example
30+
* contact card](https://developers.google.com/workspace/chat/images/card_api_reference.png) To
31+
* create the sample card message in Google Chat, use the following JSON: ``` { "cardsV2": [ {
32+
* "cardId": "unique-card-id", "card": { "header": { "title": "Sasha", "subtitle": "Software
33+
* Engineer", "imageUrl": "https://developers.google.com/workspace/chat/images/quickstart-app-
34+
* avatar.png", "imageType": "CIRCLE", "imageAltText": "Avatar for Sasha" }, "sections": [ {
35+
* "header": "Contact Info", "collapsible": true, "uncollapsibleWidgetsCount": 1, "widgets": [ {
36+
* "decoratedText": { "startIcon": { "knownIcon": "EMAIL" }, "text": "[email protected]" } }, {
37+
* "decoratedText": { "startIcon": { "knownIcon": "PERSON" }, "text": "Online" } }, {
38+
* "decoratedText": { "startIcon": { "knownIcon": "PHONE" }, "text": "+1 (555) 555-1234" } }, {
39+
* "buttonList": { "buttons": [ { "text": "Share", "onClick": { "openLink": { "url":
40+
* "https://example.com/share" } } }, { "text": "Edit", "onClick": { "action": { "function":
41+
* "goToView", "parameters": [ { "key": "viewType", "value": "EDIT" } ] } } } ] } } ] } ] } } ] }
42+
* ```
4043
*
4144
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
4245
* transmitted over HTTP when working with the Google Chat API. For a detailed explanation see:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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+
* [Developer Preview](https://developers.google.com/workspace/preview): A carousel, also known as a
21+
* slider, rotates and displays a list of widgets in a slideshow format, with buttons navigating to
22+
* the previous or next widget. For example, this is a JSON representation of a carousel that
23+
* contains three text paragraph widgets. ``` { "carouselCards": [ { "widgets": [ { "textParagraph":
24+
* { "text": "First text paragraph in carousel", } } ] }, { "widgets": [ { "textParagraph": {
25+
* "text": "Second text paragraph in carousel", } } ] }, { "widgets": [ { "textParagraph": { "text":
26+
* "Third text paragraph in carousel", } } ] } ] } ``` [Google Chat
27+
* apps](https://developers.google.com/workspace/chat):
28+
*
29+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
30+
* transmitted over HTTP when working with the Google Chat API. For a detailed explanation see:
31+
* <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>
32+
* </p>
33+
*
34+
* @author Google, Inc.
35+
*/
36+
@SuppressWarnings("javadoc")
37+
public final class GoogleAppsCardV1Carousel extends com.google.api.client.json.GenericJson {
38+
39+
/**
40+
* A list of cards included in the carousel.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.util.List<GoogleAppsCardV1CarouselCard> carouselCards;
45+
46+
/**
47+
* A list of cards included in the carousel.
48+
* @return value or {@code null} for none
49+
*/
50+
public java.util.List<GoogleAppsCardV1CarouselCard> getCarouselCards() {
51+
return carouselCards;
52+
}
53+
54+
/**
55+
* A list of cards included in the carousel.
56+
* @param carouselCards carouselCards or {@code null} for none
57+
*/
58+
public GoogleAppsCardV1Carousel setCarouselCards(java.util.List<GoogleAppsCardV1CarouselCard> carouselCards) {
59+
this.carouselCards = carouselCards;
60+
return this;
61+
}
62+
63+
@Override
64+
public GoogleAppsCardV1Carousel set(String fieldName, Object value) {
65+
return (GoogleAppsCardV1Carousel) super.set(fieldName, value);
66+
}
67+
68+
@Override
69+
public GoogleAppsCardV1Carousel clone() {
70+
return (GoogleAppsCardV1Carousel) super.clone();
71+
}
72+
73+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
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+
* [Developer Preview](https://developers.google.com/workspace/preview): A card that can be
21+
* displayed as a carousel item. [Google Chat apps](https://developers.google.com/workspace/chat):
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Google Chat API. For a detailed explanation see:
25+
* <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>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class GoogleAppsCardV1CarouselCard extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* A list of widgets displayed at the bottom of the carousel card. The widgets are displayed in
35+
* the order that they are specified.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.util.List<GoogleAppsCardV1NestedWidget> footerWidgets;
40+
41+
/**
42+
* A list of widgets displayed in the carousel card. The widgets are displayed in the order that
43+
* they are specified.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.util.List<GoogleAppsCardV1NestedWidget> widgets;
48+
49+
/**
50+
* A list of widgets displayed at the bottom of the carousel card. The widgets are displayed in
51+
* the order that they are specified.
52+
* @return value or {@code null} for none
53+
*/
54+
public java.util.List<GoogleAppsCardV1NestedWidget> getFooterWidgets() {
55+
return footerWidgets;
56+
}
57+
58+
/**
59+
* A list of widgets displayed at the bottom of the carousel card. The widgets are displayed in
60+
* the order that they are specified.
61+
* @param footerWidgets footerWidgets or {@code null} for none
62+
*/
63+
public GoogleAppsCardV1CarouselCard setFooterWidgets(java.util.List<GoogleAppsCardV1NestedWidget> footerWidgets) {
64+
this.footerWidgets = footerWidgets;
65+
return this;
66+
}
67+
68+
/**
69+
* A list of widgets displayed in the carousel card. The widgets are displayed in the order that
70+
* they are specified.
71+
* @return value or {@code null} for none
72+
*/
73+
public java.util.List<GoogleAppsCardV1NestedWidget> getWidgets() {
74+
return widgets;
75+
}
76+
77+
/**
78+
* A list of widgets displayed in the carousel card. The widgets are displayed in the order that
79+
* they are specified.
80+
* @param widgets widgets or {@code null} for none
81+
*/
82+
public GoogleAppsCardV1CarouselCard setWidgets(java.util.List<GoogleAppsCardV1NestedWidget> widgets) {
83+
this.widgets = widgets;
84+
return this;
85+
}
86+
87+
@Override
88+
public GoogleAppsCardV1CarouselCard set(String fieldName, Object value) {
89+
return (GoogleAppsCardV1CarouselCard) super.set(fieldName, value);
90+
}
91+
92+
@Override
93+
public GoogleAppsCardV1CarouselCard clone() {
94+
return (GoogleAppsCardV1CarouselCard) super.clone();
95+
}
96+
97+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
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+
* [Developer Preview](https://developers.google.com/workspace/preview): A list of widgets that can
21+
* be displayed in a containing layout, such as a `CarouselCard`. [Google Chat
22+
* apps](https://developers.google.com/workspace/chat):
23+
*
24+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
25+
* transmitted over HTTP when working with the Google Chat API. For a detailed explanation see:
26+
* <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>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class GoogleAppsCardV1NestedWidget extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* A button list widget.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private GoogleAppsCardV1ButtonList buttonList;
40+
41+
/**
42+
* An image widget.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private GoogleAppsCardV1Image image;
47+
48+
/**
49+
* A text paragraph widget.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private GoogleAppsCardV1TextParagraph textParagraph;
54+
55+
/**
56+
* A button list widget.
57+
* @return value or {@code null} for none
58+
*/
59+
public GoogleAppsCardV1ButtonList getButtonList() {
60+
return buttonList;
61+
}
62+
63+
/**
64+
* A button list widget.
65+
* @param buttonList buttonList or {@code null} for none
66+
*/
67+
public GoogleAppsCardV1NestedWidget setButtonList(GoogleAppsCardV1ButtonList buttonList) {
68+
this.buttonList = buttonList;
69+
return this;
70+
}
71+
72+
/**
73+
* An image widget.
74+
* @return value or {@code null} for none
75+
*/
76+
public GoogleAppsCardV1Image getImage() {
77+
return image;
78+
}
79+
80+
/**
81+
* An image widget.
82+
* @param image image or {@code null} for none
83+
*/
84+
public GoogleAppsCardV1NestedWidget setImage(GoogleAppsCardV1Image image) {
85+
this.image = image;
86+
return this;
87+
}
88+
89+
/**
90+
* A text paragraph widget.
91+
* @return value or {@code null} for none
92+
*/
93+
public GoogleAppsCardV1TextParagraph getTextParagraph() {
94+
return textParagraph;
95+
}
96+
97+
/**
98+
* A text paragraph widget.
99+
* @param textParagraph textParagraph or {@code null} for none
100+
*/
101+
public GoogleAppsCardV1NestedWidget setTextParagraph(GoogleAppsCardV1TextParagraph textParagraph) {
102+
this.textParagraph = textParagraph;
103+
return this;
104+
}
105+
106+
@Override
107+
public GoogleAppsCardV1NestedWidget set(String fieldName, Object value) {
108+
return (GoogleAppsCardV1NestedWidget) super.set(fieldName, value);
109+
}
110+
111+
@Override
112+
public GoogleAppsCardV1NestedWidget clone() {
113+
return (GoogleAppsCardV1NestedWidget) super.clone();
114+
}
115+
116+
}

0 commit comments

Comments
 (0)