Skip to content

Commit 69ed115

Browse files
1 parent 00932dd commit 69ed115

14 files changed

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

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,15 @@ public final class GoogleAppsCardV1Button extends com.google.api.client.json.Gen
8888
@com.google.api.client.util.Key
8989
private java.lang.String text;
9090

91+
/**
92+
* Optional. The type of a button. If unset, button type defaults to `OUTLINED`. If the `color`
93+
* field is set, the button type is forced to `FILLED` and any value set for this field is
94+
* ignored. [Google Chat apps](https://developers.google.com/workspace/chat):
95+
* The value may be {@code null}.
96+
*/
97+
@com.google.api.client.util.Key
98+
private java.lang.String type;
99+
91100
/**
92101
* The alternative text that's used for accessibility. Set descriptive text that lets users know
93102
* what the button does. For example, if a button opens a hyperlink, you might write: "Opens a new
@@ -216,6 +225,27 @@ public GoogleAppsCardV1Button setText(java.lang.String text) {
216225
return this;
217226
}
218227

228+
/**
229+
* Optional. The type of a button. If unset, button type defaults to `OUTLINED`. If the `color`
230+
* field is set, the button type is forced to `FILLED` and any value set for this field is
231+
* ignored. [Google Chat apps](https://developers.google.com/workspace/chat):
232+
* @return value or {@code null} for none
233+
*/
234+
public java.lang.String getType() {
235+
return type;
236+
}
237+
238+
/**
239+
* Optional. The type of a button. If unset, button type defaults to `OUTLINED`. If the `color`
240+
* field is set, the button type is forced to `FILLED` and any value set for this field is
241+
* ignored. [Google Chat apps](https://developers.google.com/workspace/chat):
242+
* @param type type or {@code null} for none
243+
*/
244+
public GoogleAppsCardV1Button setType(java.lang.String type) {
245+
this.type = type;
246+
return this;
247+
}
248+
219249
@Override
220250
public GoogleAppsCardV1Button set(String fieldName, Object value) {
221251
return (GoogleAppsCardV1Button) super.set(fieldName, value);
Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
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+
* A text, icon, or text and icon chip that users can click. [Google Chat
21+
* 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 GoogleAppsCardV1Chip extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The alternative text that's used for accessibility. Set descriptive text that lets users know
35+
* what the chip does. For example, if a chip opens a hyperlink, write: "Opens a new browser tab
36+
* and navigates to the Google Chat developer documentation at
37+
* https://developers.google.com/workspace/chat".
38+
* The value may be {@code null}.
39+
*/
40+
@com.google.api.client.util.Key
41+
private java.lang.String altText;
42+
43+
/**
44+
* Whether the chip is in an inactive state and ignores user actions. Defaults to `false`.
45+
* The value may be {@code null}.
46+
*/
47+
@com.google.api.client.util.Key
48+
private java.lang.Boolean disabled;
49+
50+
/**
51+
* Whether the chip is in an active state and responds to user actions. Defaults to `true`.
52+
* Deprecated. Use `disabled` instead.
53+
* The value may be {@code null}.
54+
*/
55+
@com.google.api.client.util.Key
56+
private java.lang.Boolean enabled;
57+
58+
/**
59+
* The icon image. If both `icon` and `text` are set, then the icon appears before the text.
60+
* The value may be {@code null}.
61+
*/
62+
@com.google.api.client.util.Key
63+
private GoogleAppsCardV1Icon icon;
64+
65+
/**
66+
* The text displayed inside the chip.
67+
* The value may be {@code null}.
68+
*/
69+
@com.google.api.client.util.Key
70+
private java.lang.String label;
71+
72+
/**
73+
* Optional. The action to perform when a user clicks the chip, such as opening a hyperlink or
74+
* running a custom function.
75+
* The value may be {@code null}.
76+
*/
77+
@com.google.api.client.util.Key
78+
private GoogleAppsCardV1OnClick onClick;
79+
80+
/**
81+
* The alternative text that's used for accessibility. Set descriptive text that lets users know
82+
* what the chip does. For example, if a chip opens a hyperlink, write: "Opens a new browser tab
83+
* and navigates to the Google Chat developer documentation at
84+
* https://developers.google.com/workspace/chat".
85+
* @return value or {@code null} for none
86+
*/
87+
public java.lang.String getAltText() {
88+
return altText;
89+
}
90+
91+
/**
92+
* The alternative text that's used for accessibility. Set descriptive text that lets users know
93+
* what the chip does. For example, if a chip opens a hyperlink, write: "Opens a new browser tab
94+
* and navigates to the Google Chat developer documentation at
95+
* https://developers.google.com/workspace/chat".
96+
* @param altText altText or {@code null} for none
97+
*/
98+
public GoogleAppsCardV1Chip setAltText(java.lang.String altText) {
99+
this.altText = altText;
100+
return this;
101+
}
102+
103+
/**
104+
* Whether the chip is in an inactive state and ignores user actions. Defaults to `false`.
105+
* @return value or {@code null} for none
106+
*/
107+
public java.lang.Boolean getDisabled() {
108+
return disabled;
109+
}
110+
111+
/**
112+
* Whether the chip is in an inactive state and ignores user actions. Defaults to `false`.
113+
* @param disabled disabled or {@code null} for none
114+
*/
115+
public GoogleAppsCardV1Chip setDisabled(java.lang.Boolean disabled) {
116+
this.disabled = disabled;
117+
return this;
118+
}
119+
120+
/**
121+
* Whether the chip is in an active state and responds to user actions. Defaults to `true`.
122+
* Deprecated. Use `disabled` instead.
123+
* @return value or {@code null} for none
124+
*/
125+
public java.lang.Boolean getEnabled() {
126+
return enabled;
127+
}
128+
129+
/**
130+
* Whether the chip is in an active state and responds to user actions. Defaults to `true`.
131+
* Deprecated. Use `disabled` instead.
132+
* @param enabled enabled or {@code null} for none
133+
*/
134+
public GoogleAppsCardV1Chip setEnabled(java.lang.Boolean enabled) {
135+
this.enabled = enabled;
136+
return this;
137+
}
138+
139+
/**
140+
* The icon image. If both `icon` and `text` are set, then the icon appears before the text.
141+
* @return value or {@code null} for none
142+
*/
143+
public GoogleAppsCardV1Icon getIcon() {
144+
return icon;
145+
}
146+
147+
/**
148+
* The icon image. If both `icon` and `text` are set, then the icon appears before the text.
149+
* @param icon icon or {@code null} for none
150+
*/
151+
public GoogleAppsCardV1Chip setIcon(GoogleAppsCardV1Icon icon) {
152+
this.icon = icon;
153+
return this;
154+
}
155+
156+
/**
157+
* The text displayed inside the chip.
158+
* @return value or {@code null} for none
159+
*/
160+
public java.lang.String getLabel() {
161+
return label;
162+
}
163+
164+
/**
165+
* The text displayed inside the chip.
166+
* @param label label or {@code null} for none
167+
*/
168+
public GoogleAppsCardV1Chip setLabel(java.lang.String label) {
169+
this.label = label;
170+
return this;
171+
}
172+
173+
/**
174+
* Optional. The action to perform when a user clicks the chip, such as opening a hyperlink or
175+
* running a custom function.
176+
* @return value or {@code null} for none
177+
*/
178+
public GoogleAppsCardV1OnClick getOnClick() {
179+
return onClick;
180+
}
181+
182+
/**
183+
* Optional. The action to perform when a user clicks the chip, such as opening a hyperlink or
184+
* running a custom function.
185+
* @param onClick onClick or {@code null} for none
186+
*/
187+
public GoogleAppsCardV1Chip setOnClick(GoogleAppsCardV1OnClick onClick) {
188+
this.onClick = onClick;
189+
return this;
190+
}
191+
192+
@Override
193+
public GoogleAppsCardV1Chip set(String fieldName, Object value) {
194+
return (GoogleAppsCardV1Chip) super.set(fieldName, value);
195+
}
196+
197+
@Override
198+
public GoogleAppsCardV1Chip clone() {
199+
return (GoogleAppsCardV1Chip) super.clone();
200+
}
201+
202+
}
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+
* A list of chips layed out horizontally, which can either scroll horizontally or wrap to the next
21+
* line. [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 GoogleAppsCardV1ChipList extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* An array of chips.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.List<GoogleAppsCardV1Chip> chips;
39+
40+
static {
41+
// hack to force ProGuard to consider GoogleAppsCardV1Chip used, since otherwise it would be stripped out
42+
// see https://github.com/google/google-api-java-client/issues/543
43+
com.google.api.client.util.Data.nullOf(GoogleAppsCardV1Chip.class);
44+
}
45+
46+
/**
47+
* Specified chip list layout.
48+
* The value may be {@code null}.
49+
*/
50+
@com.google.api.client.util.Key
51+
private java.lang.String layout;
52+
53+
/**
54+
* An array of chips.
55+
* @return value or {@code null} for none
56+
*/
57+
public java.util.List<GoogleAppsCardV1Chip> getChips() {
58+
return chips;
59+
}
60+
61+
/**
62+
* An array of chips.
63+
* @param chips chips or {@code null} for none
64+
*/
65+
public GoogleAppsCardV1ChipList setChips(java.util.List<GoogleAppsCardV1Chip> chips) {
66+
this.chips = chips;
67+
return this;
68+
}
69+
70+
/**
71+
* Specified chip list layout.
72+
* @return value or {@code null} for none
73+
*/
74+
public java.lang.String getLayout() {
75+
return layout;
76+
}
77+
78+
/**
79+
* Specified chip list layout.
80+
* @param layout layout or {@code null} for none
81+
*/
82+
public GoogleAppsCardV1ChipList setLayout(java.lang.String layout) {
83+
this.layout = layout;
84+
return this;
85+
}
86+
87+
@Override
88+
public GoogleAppsCardV1ChipList set(String fieldName, Object value) {
89+
return (GoogleAppsCardV1ChipList) super.set(fieldName, value);
90+
}
91+
92+
@Override
93+
public GoogleAppsCardV1ChipList clone() {
94+
return (GoogleAppsCardV1ChipList) super.clone();
95+
}
96+
97+
}

0 commit comments

Comments
 (0)