Skip to content

Commit 4260a38

Browse files
1 parent 083c3d3 commit 4260a38

File tree

9 files changed

+148
-94
lines changed

9 files changed

+148
-94
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-rev20240818-2.0.0</version>
25+
<version>v1-rev20240825-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-rev20240818-2.0.0'
38+
implementation 'com.google.apis:google-api-services-chat:v1-rev20240825-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: 55 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,11 @@ public List set(String parameterName, Object value) {
15791579
* This request holds the parameters needed by the chat server. After setting any optional
15801580
* parameters, call the {@link Patch#execute()} method to invoke the remote operation.
15811581
*
1582-
* @param name Resource name of the space. Format: `spaces/{space}`
1582+
* @param name Resource name of the space. Format: `spaces/{space}` Where `{space}` represents the system-assigned
1583+
* ID for the space. You can obtain the space ID by calling the [`spaces.list()`](https://dev
1584+
* elopers.google.com/workspace/chat/api/reference/rest/v1/spaces/list) method or from the
1585+
* space URL. For example, if the space URL is
1586+
* `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`, the space ID is `AAAAAAAAA`.
15831587
* @param content the {@link com.google.api.services.chat.v1.model.Space}
15841588
* @return the request
15851589
*/
@@ -1611,7 +1615,11 @@ public class Patch extends HangoutsChatRequest<com.google.api.services.chat.v1.m
16111615
* Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
16121616
* be called to initialize this instance immediately after invoking the constructor. </p>
16131617
*
1614-
* @param name Resource name of the space. Format: `spaces/{space}`
1618+
* @param name Resource name of the space. Format: `spaces/{space}` Where `{space}` represents the system-assigned
1619+
* ID for the space. You can obtain the space ID by calling the [`spaces.list()`](https://dev
1620+
* elopers.google.com/workspace/chat/api/reference/rest/v1/spaces/list) method or from the
1621+
* space URL. For example, if the space URL is
1622+
* `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`, the space ID is `AAAAAAAAA`.
16151623
* @param content the {@link com.google.api.services.chat.v1.model.Space}
16161624
* @since 1.13
16171625
*/
@@ -1680,17 +1688,33 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) {
16801688
return (Patch) super.setUploadProtocol(uploadProtocol);
16811689
}
16821690

1683-
/** Resource name of the space. Format: `spaces/{space}` */
1691+
/**
1692+
* Resource name of the space. Format: `spaces/{space}` Where `{space}` represents the system-
1693+
* assigned ID for the space. You can obtain the space ID by calling the [`spaces.list()`](htt
1694+
* ps://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/list) method or from
1695+
* the space URL. For example, if the space URL is
1696+
* `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`, the space ID is `AAAAAAAAA`.
1697+
*/
16841698
@com.google.api.client.util.Key
16851699
private java.lang.String name;
16861700

1687-
/** Resource name of the space. Format: `spaces/{space}`
1701+
/** Resource name of the space. Format: `spaces/{space}` Where `{space}` represents the system-assigned
1702+
ID for the space. You can obtain the space ID by calling the
1703+
[`spaces.list()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/list)
1704+
method or from the space URL. For example, if the space URL is
1705+
`https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`, the space ID is `AAAAAAAAA`.
16881706
*/
16891707
public java.lang.String getName() {
16901708
return name;
16911709
}
16921710

1693-
/** Resource name of the space. Format: `spaces/{space}` */
1711+
/**
1712+
* Resource name of the space. Format: `spaces/{space}` Where `{space}` represents the system-
1713+
* assigned ID for the space. You can obtain the space ID by calling the [`spaces.list()`](htt
1714+
* ps://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/list) method or from
1715+
* the space URL. For example, if the space URL is
1716+
* `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`, the space ID is `AAAAAAAAA`.
1717+
*/
16941718
public Patch setName(java.lang.String name) {
16951719
if (!getSuppressPatternChecks()) {
16961720
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
@@ -3638,13 +3662,19 @@ public Messages messages() {
36383662
public class Messages {
36393663

36403664
/**
3641-
* Creates a message in a Google Chat space. The maximum message size, including text and cards, is
3642-
* 32,000 bytes. For an example, see [Send a
3643-
* message](https://developers.google.com/workspace/chat/create-messages). Calling this method
3644-
* requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize)
3645-
* and supports the following authentication types: - For text messages, user authentication or app
3646-
* authentication are supported. - For card messages, only app authentication is supported. (Only
3647-
* Chat apps can create card messages.)
3665+
* Creates a message in a Google Chat space. For an example, see [Send a
3666+
* message](https://developers.google.com/workspace/chat/create-messages). The `create()` method
3667+
* requires either user or app authentication. Chat attributes the message sender differently
3668+
* depending on the type of authentication that you use in your request. The following image shows
3669+
* how Chat attributes a message when you use app authentication. Chat displays the Chat app as the
3670+
* message sender. The content of the message can contain text (`text`), cards (`cardsV2`), and
3671+
* accessory widgets (`accessoryWidgets`). ![Message sent with app
3672+
* authentication](https://developers.google.com/workspace/chat/images/message-app-auth.svg) The
3673+
* following image shows how Chat attributes a message when you use user authentication. Chat
3674+
* displays the user as the message sender and attributes the Chat app to the message by displaying
3675+
* its name. The content of message can only contain text (`text`). ![Message sent with user
3676+
* authentication](https://developers.google.com/workspace/chat/images/message-user-auth.svg) The
3677+
* maximum message size, including the message contents, is 32,000 bytes.
36483678
*
36493679
* Create a request for the method "messages.create".
36503680
*
@@ -3669,13 +3699,19 @@ public class Create extends HangoutsChatRequest<com.google.api.services.chat.v1.
36693699
java.util.regex.Pattern.compile("^spaces/[^/]+$");
36703700

36713701
/**
3672-
* Creates a message in a Google Chat space. The maximum message size, including text and cards,
3673-
* is 32,000 bytes. For an example, see [Send a
3674-
* message](https://developers.google.com/workspace/chat/create-messages). Calling this method
3675-
* requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize)
3676-
* and supports the following authentication types: - For text messages, user authentication or
3677-
* app authentication are supported. - For card messages, only app authentication is supported.
3678-
* (Only Chat apps can create card messages.)
3702+
* Creates a message in a Google Chat space. For an example, see [Send a
3703+
* message](https://developers.google.com/workspace/chat/create-messages). The `create()` method
3704+
* requires either user or app authentication. Chat attributes the message sender differently
3705+
* depending on the type of authentication that you use in your request. The following image shows
3706+
* how Chat attributes a message when you use app authentication. Chat displays the Chat app as
3707+
* the message sender. The content of the message can contain text (`text`), cards (`cardsV2`),
3708+
* and accessory widgets (`accessoryWidgets`). ![Message sent with app
3709+
* authentication](https://developers.google.com/workspace/chat/images/message-app-auth.svg) The
3710+
* following image shows how Chat attributes a message when you use user authentication. Chat
3711+
* displays the user as the message sender and attributes the Chat app to the message by
3712+
* displaying its name. The content of message can only contain text (`text`). ![Message sent with
3713+
* user authentication](https://developers.google.com/workspace/chat/images/message-user-auth.svg)
3714+
* The maximum message size, including the message contents, is 32,000 bytes.
36793715
*
36803716
* Create a request for the method "messages.create".
36813717
*

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

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ public final class GoogleAppsCardV1BorderStyle extends com.google.api.client.jso
3838
private java.lang.Integer cornerRadius;
3939

4040
/**
41-
* The colors to use when the type is `BORDER_TYPE_STROKE`.
41+
* The colors to use when the type is `BORDER_TYPE_STROKE`. To set the stroke color, specify a
42+
* value for the `red`, `green`, and `blue` fields. The value must be a float number between 0 and
43+
* 1 based on the RGB color value, where `0` (0/255) represents the absence of color and `1`
44+
* (255/255) represents the maximum intensity of the color. For example, the following sets the
45+
* color to red at its maximum intensity: ``` "color": { "red": 1, "green": 0, "blue": 0, } ```
46+
* The `alpha` field is unavailable for stroke color. If specified, this field is ignored.
4247
* The value may be {@code null}.
4348
*/
4449
@com.google.api.client.util.Key
@@ -69,15 +74,25 @@ public GoogleAppsCardV1BorderStyle setCornerRadius(java.lang.Integer cornerRadiu
6974
}
7075

7176
/**
72-
* The colors to use when the type is `BORDER_TYPE_STROKE`.
77+
* The colors to use when the type is `BORDER_TYPE_STROKE`. To set the stroke color, specify a
78+
* value for the `red`, `green`, and `blue` fields. The value must be a float number between 0 and
79+
* 1 based on the RGB color value, where `0` (0/255) represents the absence of color and `1`
80+
* (255/255) represents the maximum intensity of the color. For example, the following sets the
81+
* color to red at its maximum intensity: ``` "color": { "red": 1, "green": 0, "blue": 0, } ```
82+
* The `alpha` field is unavailable for stroke color. If specified, this field is ignored.
7383
* @return value or {@code null} for none
7484
*/
7585
public Color getStrokeColor() {
7686
return strokeColor;
7787
}
7888

7989
/**
80-
* The colors to use when the type is `BORDER_TYPE_STROKE`.
90+
* The colors to use when the type is `BORDER_TYPE_STROKE`. To set the stroke color, specify a
91+
* value for the `red`, `green`, and `blue` fields. The value must be a float number between 0 and
92+
* 1 based on the RGB color value, where `0` (0/255) represents the absence of color and `1`
93+
* (255/255) represents the maximum intensity of the color. For example, the following sets the
94+
* color to red at its maximum intensity: ``` "color": { "red": 1, "green": 0, "blue": 0, } ```
95+
* The `alpha` field is unavailable for stroke color. If specified, this field is ignored.
8196
* @param strokeColor strokeColor or {@code null} for none
8297
*/
8398
public GoogleAppsCardV1BorderStyle setStrokeColor(Color strokeColor) {

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

Lines changed: 33 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,15 @@ public final class GoogleAppsCardV1Button extends com.google.api.client.json.Gen
4444
private java.lang.String altText;
4545

4646
/**
47-
* If set, the button is filled with a solid background color and the font color changes to
48-
* maintain contrast with the background color. For example, setting a blue background likely
49-
* results in white text. If unset, the image background is white and the font color is blue. For
50-
* red, green, and blue, the value of each field is a `float` number that you can express in
51-
* either of two ways: as a number between 0 and 255 divided by 255 (153/255), or as a value
52-
* between 0 and 1 (0.6). 0 represents the absence of a color and 1 or 255/255 represent the full
53-
* presence of that color on the RGB scale. Optionally set `alpha`, which sets a level of
54-
* transparency using this equation: ``` pixel color = alpha * (this color) + (1.0 - alpha) *
55-
* (background color) ``` For `alpha`, a value of `1` corresponds with a solid color, and a value
56-
* of `0` corresponds with a completely transparent color. For example, the following color
57-
* represents a half transparent red: ``` "color": { "red": 1, "green": 0, "blue": 0, "alpha": 0.5
58-
* } ```
47+
* Optional. The color of the button. If set, the button `type` is set to `FILLED` and the color
48+
* of `text` and `icon` fields are set to a contrasting color for readability. For example, if the
49+
* button color is set to blue, any text or icons in the button are set to white. To set the
50+
* button color, specify a value for the `red`, `green`, and `blue` fields. The value must be a
51+
* float number between 0 and 1 based on the RGB color value, where `0` (0/255) represents the
52+
* absence of color and `1` (255/255) represents the maximum intensity of the color. For example,
53+
* the following sets the color to red at its maximum intensity: ``` "color": { "red": 1, "green":
54+
* 0, "blue": 0, } ``` The `alpha` field is unavailable for button color. If specified, this field
55+
* is ignored.
5956
* The value may be {@code null}.
6057
*/
6158
@com.google.api.client.util.Key
@@ -69,7 +66,8 @@ public final class GoogleAppsCardV1Button extends com.google.api.client.json.Gen
6966
private java.lang.Boolean disabled;
7067

7168
/**
72-
* The icon image. If both `icon` and `text` are set, then the icon appears before the text.
69+
* An icon displayed inside the button. If both `icon` and `text` are set, then the icon appears
70+
* before the text.
7371
* The value may be {@code null}.
7472
*/
7573
@com.google.api.client.util.Key
@@ -114,37 +112,31 @@ public GoogleAppsCardV1Button setAltText(java.lang.String altText) {
114112
}
115113

116114
/**
117-
* If set, the button is filled with a solid background color and the font color changes to
118-
* maintain contrast with the background color. For example, setting a blue background likely
119-
* results in white text. If unset, the image background is white and the font color is blue. For
120-
* red, green, and blue, the value of each field is a `float` number that you can express in
121-
* either of two ways: as a number between 0 and 255 divided by 255 (153/255), or as a value
122-
* between 0 and 1 (0.6). 0 represents the absence of a color and 1 or 255/255 represent the full
123-
* presence of that color on the RGB scale. Optionally set `alpha`, which sets a level of
124-
* transparency using this equation: ``` pixel color = alpha * (this color) + (1.0 - alpha) *
125-
* (background color) ``` For `alpha`, a value of `1` corresponds with a solid color, and a value
126-
* of `0` corresponds with a completely transparent color. For example, the following color
127-
* represents a half transparent red: ``` "color": { "red": 1, "green": 0, "blue": 0, "alpha": 0.5
128-
* } ```
115+
* Optional. The color of the button. If set, the button `type` is set to `FILLED` and the color
116+
* of `text` and `icon` fields are set to a contrasting color for readability. For example, if the
117+
* button color is set to blue, any text or icons in the button are set to white. To set the
118+
* button color, specify a value for the `red`, `green`, and `blue` fields. The value must be a
119+
* float number between 0 and 1 based on the RGB color value, where `0` (0/255) represents the
120+
* absence of color and `1` (255/255) represents the maximum intensity of the color. For example,
121+
* the following sets the color to red at its maximum intensity: ``` "color": { "red": 1, "green":
122+
* 0, "blue": 0, } ``` The `alpha` field is unavailable for button color. If specified, this field
123+
* is ignored.
129124
* @return value or {@code null} for none
130125
*/
131126
public Color getColor() {
132127
return color;
133128
}
134129

135130
/**
136-
* If set, the button is filled with a solid background color and the font color changes to
137-
* maintain contrast with the background color. For example, setting a blue background likely
138-
* results in white text. If unset, the image background is white and the font color is blue. For
139-
* red, green, and blue, the value of each field is a `float` number that you can express in
140-
* either of two ways: as a number between 0 and 255 divided by 255 (153/255), or as a value
141-
* between 0 and 1 (0.6). 0 represents the absence of a color and 1 or 255/255 represent the full
142-
* presence of that color on the RGB scale. Optionally set `alpha`, which sets a level of
143-
* transparency using this equation: ``` pixel color = alpha * (this color) + (1.0 - alpha) *
144-
* (background color) ``` For `alpha`, a value of `1` corresponds with a solid color, and a value
145-
* of `0` corresponds with a completely transparent color. For example, the following color
146-
* represents a half transparent red: ``` "color": { "red": 1, "green": 0, "blue": 0, "alpha": 0.5
147-
* } ```
131+
* Optional. The color of the button. If set, the button `type` is set to `FILLED` and the color
132+
* of `text` and `icon` fields are set to a contrasting color for readability. For example, if the
133+
* button color is set to blue, any text or icons in the button are set to white. To set the
134+
* button color, specify a value for the `red`, `green`, and `blue` fields. The value must be a
135+
* float number between 0 and 1 based on the RGB color value, where `0` (0/255) represents the
136+
* absence of color and `1` (255/255) represents the maximum intensity of the color. For example,
137+
* the following sets the color to red at its maximum intensity: ``` "color": { "red": 1, "green":
138+
* 0, "blue": 0, } ``` The `alpha` field is unavailable for button color. If specified, this field
139+
* is ignored.
148140
* @param color color or {@code null} for none
149141
*/
150142
public GoogleAppsCardV1Button setColor(Color color) {
@@ -170,15 +162,17 @@ public GoogleAppsCardV1Button setDisabled(java.lang.Boolean disabled) {
170162
}
171163

172164
/**
173-
* The icon image. If both `icon` and `text` are set, then the icon appears before the text.
165+
* An icon displayed inside the button. If both `icon` and `text` are set, then the icon appears
166+
* before the text.
174167
* @return value or {@code null} for none
175168
*/
176169
public GoogleAppsCardV1Icon getIcon() {
177170
return icon;
178171
}
179172

180173
/**
181-
* The icon image. If both `icon` and `text` are set, then the icon appears before the text.
174+
* An icon displayed inside the button. If both `icon` and `text` are set, then the icon appears
175+
* before the text.
182176
* @param icon icon or {@code null} for none
183177
*/
184178
public GoogleAppsCardV1Button setIcon(GoogleAppsCardV1Icon icon) {

0 commit comments

Comments
 (0)