Skip to content

Commit ae692dd

Browse files
1 parent 7dcf3cb commit ae692dd

11 files changed

Lines changed: 1575 additions & 105 deletions

File tree

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-rev20260607-2.0.0</version>
25+
<version>v1-rev20260623-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-rev20260607-2.0.0'
38+
implementation 'com.google.apis:google-api-services-chat:v1-rev20260623-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: 976 additions & 99 deletions
Large diffs are not rendered by default.

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ public class HangoutsChatScopes {
110110
/** View chat and spaces in Google Chat. */
111111
public static final String CHAT_SPACES_READONLY = "https://www.googleapis.com/auth/chat.spaces.readonly";
112112

113+
/** See and change your availability status in Google Chat.. */
114+
public static final String CHAT_USERS_AVAILABILITY = "https://www.googleapis.com/auth/chat.users.availability";
115+
116+
/** See your availability status in Google Chat.. */
117+
public static final String CHAT_USERS_AVAILABILITY_READONLY = "https://www.googleapis.com/auth/chat.users.availability.readonly";
118+
113119
/** View and modify last read time for Google Chat conversations. */
114120
public static final String CHAT_USERS_READSTATE = "https://www.googleapis.com/auth/chat.users.readstate";
115121

@@ -161,6 +167,8 @@ public static java.util.Set<String> all() {
161167
set.add(CHAT_SPACES);
162168
set.add(CHAT_SPACES_CREATE);
163169
set.add(CHAT_SPACES_READONLY);
170+
set.add(CHAT_USERS_AVAILABILITY);
171+
set.add(CHAT_USERS_AVAILABILITY_READONLY);
164172
set.add(CHAT_USERS_READSTATE);
165173
set.add(CHAT_USERS_READSTATE_READONLY);
166174
set.add(CHAT_USERS_SECTIONS);
Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
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+
* Represents a user's current availability information in Google Chat, including their state (for
21+
* example, Active, Away, Do Not Disturb) and any custom status.
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 Availability extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. The user's custom status.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private CustomStatus customStatus;
39+
40+
/**
41+
* Output only. Metadata if the user state is set to DO_NOT_DISTURB.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private DoNotDisturbMetadata doNotDisturbMetadata;
46+
47+
/**
48+
* Identifier. Resource name of the user's availability. Format: `users/{user}/availability`
49+
* `{user}` is the id for the Person in the People API or Admin SDK directory API. For example,
50+
* `users/123456789`. The user's email address or `me` can also be used as an alias to refer to
51+
* the caller. For example, `users/user@example.com` or `users/me`.
52+
* The value may be {@code null}.
53+
*/
54+
@com.google.api.client.util.Key
55+
private java.lang.String name;
56+
57+
/**
58+
* Output only. The user's current availability state.
59+
* The value may be {@code null}.
60+
*/
61+
@com.google.api.client.util.Key
62+
private java.lang.String state;
63+
64+
/**
65+
* Optional. The user's custom status.
66+
* @return value or {@code null} for none
67+
*/
68+
public CustomStatus getCustomStatus() {
69+
return customStatus;
70+
}
71+
72+
/**
73+
* Optional. The user's custom status.
74+
* @param customStatus customStatus or {@code null} for none
75+
*/
76+
public Availability setCustomStatus(CustomStatus customStatus) {
77+
this.customStatus = customStatus;
78+
return this;
79+
}
80+
81+
/**
82+
* Output only. Metadata if the user state is set to DO_NOT_DISTURB.
83+
* @return value or {@code null} for none
84+
*/
85+
public DoNotDisturbMetadata getDoNotDisturbMetadata() {
86+
return doNotDisturbMetadata;
87+
}
88+
89+
/**
90+
* Output only. Metadata if the user state is set to DO_NOT_DISTURB.
91+
* @param doNotDisturbMetadata doNotDisturbMetadata or {@code null} for none
92+
*/
93+
public Availability setDoNotDisturbMetadata(DoNotDisturbMetadata doNotDisturbMetadata) {
94+
this.doNotDisturbMetadata = doNotDisturbMetadata;
95+
return this;
96+
}
97+
98+
/**
99+
* Identifier. Resource name of the user's availability. Format: `users/{user}/availability`
100+
* `{user}` is the id for the Person in the People API or Admin SDK directory API. For example,
101+
* `users/123456789`. The user's email address or `me` can also be used as an alias to refer to
102+
* the caller. For example, `users/user@example.com` or `users/me`.
103+
* @return value or {@code null} for none
104+
*/
105+
public java.lang.String getName() {
106+
return name;
107+
}
108+
109+
/**
110+
* Identifier. Resource name of the user's availability. Format: `users/{user}/availability`
111+
* `{user}` is the id for the Person in the People API or Admin SDK directory API. For example,
112+
* `users/123456789`. The user's email address or `me` can also be used as an alias to refer to
113+
* the caller. For example, `users/user@example.com` or `users/me`.
114+
* @param name name or {@code null} for none
115+
*/
116+
public Availability setName(java.lang.String name) {
117+
this.name = name;
118+
return this;
119+
}
120+
121+
/**
122+
* Output only. The user's current availability state.
123+
* @return value or {@code null} for none
124+
*/
125+
public java.lang.String getState() {
126+
return state;
127+
}
128+
129+
/**
130+
* Output only. The user's current availability state.
131+
* @param state state or {@code null} for none
132+
*/
133+
public Availability setState(java.lang.String state) {
134+
this.state = state;
135+
return this;
136+
}
137+
138+
@Override
139+
public Availability set(String fieldName, Object value) {
140+
return (Availability) super.set(fieldName, value);
141+
}
142+
143+
@Override
144+
public Availability clone() {
145+
return (Availability) super.clone();
146+
}
147+
148+
}
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
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+
* Represents a user's custom status in Google Chat. This includes a short text message with an
21+
* optional emoji that a user sets to give more context about their availability.
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 CustomStatus extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. The emoji of the custom status. Only Unicode emojis are supported; custom emojis are
35+
* not supported.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private Emoji emoji;
40+
41+
/**
42+
* The timestamp when the custom status expires.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private String expireTime;
47+
48+
/**
49+
* Required. The text of the custom status. This will be a string with maximum length of 64.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private java.lang.String text;
54+
55+
/**
56+
* Input only. The time-to-live duration after which the custom status expires.
57+
* The value may be {@code null}.
58+
*/
59+
@com.google.api.client.util.Key
60+
private String ttl;
61+
62+
/**
63+
* Required. The emoji of the custom status. Only Unicode emojis are supported; custom emojis are
64+
* not supported.
65+
* @return value or {@code null} for none
66+
*/
67+
public Emoji getEmoji() {
68+
return emoji;
69+
}
70+
71+
/**
72+
* Required. The emoji of the custom status. Only Unicode emojis are supported; custom emojis are
73+
* not supported.
74+
* @param emoji emoji or {@code null} for none
75+
*/
76+
public CustomStatus setEmoji(Emoji emoji) {
77+
this.emoji = emoji;
78+
return this;
79+
}
80+
81+
/**
82+
* The timestamp when the custom status expires.
83+
* @return value or {@code null} for none
84+
*/
85+
public String getExpireTime() {
86+
return expireTime;
87+
}
88+
89+
/**
90+
* The timestamp when the custom status expires.
91+
* @param expireTime expireTime or {@code null} for none
92+
*/
93+
public CustomStatus setExpireTime(String expireTime) {
94+
this.expireTime = expireTime;
95+
return this;
96+
}
97+
98+
/**
99+
* Required. The text of the custom status. This will be a string with maximum length of 64.
100+
* @return value or {@code null} for none
101+
*/
102+
public java.lang.String getText() {
103+
return text;
104+
}
105+
106+
/**
107+
* Required. The text of the custom status. This will be a string with maximum length of 64.
108+
* @param text text or {@code null} for none
109+
*/
110+
public CustomStatus setText(java.lang.String text) {
111+
this.text = text;
112+
return this;
113+
}
114+
115+
/**
116+
* Input only. The time-to-live duration after which the custom status expires.
117+
* @return value or {@code null} for none
118+
*/
119+
public String getTtl() {
120+
return ttl;
121+
}
122+
123+
/**
124+
* Input only. The time-to-live duration after which the custom status expires.
125+
* @param ttl ttl or {@code null} for none
126+
*/
127+
public CustomStatus setTtl(String ttl) {
128+
this.ttl = ttl;
129+
return this;
130+
}
131+
132+
@Override
133+
public CustomStatus set(String fieldName, Object value) {
134+
return (CustomStatus) super.set(fieldName, value);
135+
}
136+
137+
@Override
138+
public CustomStatus clone() {
139+
return (CustomStatus) super.clone();
140+
}
141+
142+
}

0 commit comments

Comments
 (0)