Skip to content

Commit 2bf93f0

Browse files
1 parent c78efa6 commit 2bf93f0

14 files changed

Lines changed: 2069 additions & 9 deletions

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-rev20260317-2.0.0</version>
25+
<version>v1-rev20260320-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-rev20260317-2.0.0'
38+
implementation 'com.google.apis:google-api-services-chat:v1-rev20260320-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: 1299 additions & 0 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 last read time for Google Chat conversations. */
111111
public static final String CHAT_USERS_READSTATE_READONLY = "https://www.googleapis.com/auth/chat.users.readstate.readonly";
112112

113+
/** View, create, update, and delete your sections in Google Chat; move and list your section items in Google Chat. */
114+
public static final String CHAT_USERS_SECTIONS = "https://www.googleapis.com/auth/chat.users.sections";
115+
116+
/** View your sections and their section items in Google Chat. */
117+
public static final String CHAT_USERS_SECTIONS_READONLY = "https://www.googleapis.com/auth/chat.users.sections.readonly";
118+
113119
/** Read and update your space settings. */
114120
public static final String CHAT_USERS_SPACESETTINGS = "https://www.googleapis.com/auth/chat.users.spacesettings";
115121

@@ -149,6 +155,8 @@ public static java.util.Set<String> all() {
149155
set.add(CHAT_SPACES_READONLY);
150156
set.add(CHAT_USERS_READSTATE);
151157
set.add(CHAT_USERS_READSTATE_READONLY);
158+
set.add(CHAT_USERS_SECTIONS);
159+
set.add(CHAT_USERS_SECTIONS_READONLY);
152160
set.add(CHAT_USERS_SPACESETTINGS);
153161
return java.util.Collections.unmodifiableSet(set);
154162
}
Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
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 [section](https://support.google.com/chat/answer/16059854) in Google Chat. Sections
21+
* help users organize their spaces. There are two types of sections: 1. **System Sections:** These
22+
* are predefined sections managed by Google Chat. Their resource names are fixed, and they cannot
23+
* be created, deleted, or have their `display_name` modified. Examples include: *
24+
* `users/{user}/sections/default-direct-messages` * `users/{user}/sections/default-spaces` *
25+
* `users/{user}/sections/default-apps` 2. **Custom Sections:** These are sections created and
26+
* managed by the user. Creating a custom section using `CreateSection` **requires** a
27+
* `display_name`. Custom sections can be updated using `UpdateSection` and deleted using
28+
* `DeleteSection`. [Developer Preview](https://developers.google.com/workspace/preview).
29+
*
30+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
31+
* transmitted over HTTP when working with the Google Chat API. For a detailed explanation see:
32+
* <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>
33+
* </p>
34+
*
35+
* @author Google, Inc.
36+
*/
37+
@SuppressWarnings("javadoc")
38+
public final class GoogleChatV1Section extends com.google.api.client.json.GenericJson {
39+
40+
/**
41+
* Optional. The section's display name. Only populated for sections of type `CUSTOM_SECTION`.
42+
* Supports up to 80 characters. Required when creating a `CUSTOM_SECTION`.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String displayName;
47+
48+
/**
49+
* Identifier. Resource name of the section. For system sections, the section ID is a constant
50+
* string: - DEFAULT_DIRECT_MESSAGES: `users/{user}/sections/default-direct-messages` -
51+
* DEFAULT_SPACES: `users/{user}/sections/default-spaces` - DEFAULT_APPS:
52+
* `users/{user}/sections/default-apps` Format: `users/{user}/sections/{section}`
53+
* The value may be {@code null}.
54+
*/
55+
@com.google.api.client.util.Key
56+
private java.lang.String name;
57+
58+
/**
59+
* Output only. The order of the section in relation to other sections. Sections with a lower
60+
* `sort_order` value appear before sections with a higher value.
61+
* The value may be {@code null}.
62+
*/
63+
@com.google.api.client.util.Key
64+
private java.lang.Integer sortOrder;
65+
66+
/**
67+
* Required. The type of the section.
68+
* The value may be {@code null}.
69+
*/
70+
@com.google.api.client.util.Key
71+
private java.lang.String type;
72+
73+
/**
74+
* Optional. The section's display name. Only populated for sections of type `CUSTOM_SECTION`.
75+
* Supports up to 80 characters. Required when creating a `CUSTOM_SECTION`.
76+
* @return value or {@code null} for none
77+
*/
78+
public java.lang.String getDisplayName() {
79+
return displayName;
80+
}
81+
82+
/**
83+
* Optional. The section's display name. Only populated for sections of type `CUSTOM_SECTION`.
84+
* Supports up to 80 characters. Required when creating a `CUSTOM_SECTION`.
85+
* @param displayName displayName or {@code null} for none
86+
*/
87+
public GoogleChatV1Section setDisplayName(java.lang.String displayName) {
88+
this.displayName = displayName;
89+
return this;
90+
}
91+
92+
/**
93+
* Identifier. Resource name of the section. For system sections, the section ID is a constant
94+
* string: - DEFAULT_DIRECT_MESSAGES: `users/{user}/sections/default-direct-messages` -
95+
* DEFAULT_SPACES: `users/{user}/sections/default-spaces` - DEFAULT_APPS:
96+
* `users/{user}/sections/default-apps` Format: `users/{user}/sections/{section}`
97+
* @return value or {@code null} for none
98+
*/
99+
public java.lang.String getName() {
100+
return name;
101+
}
102+
103+
/**
104+
* Identifier. Resource name of the section. For system sections, the section ID is a constant
105+
* string: - DEFAULT_DIRECT_MESSAGES: `users/{user}/sections/default-direct-messages` -
106+
* DEFAULT_SPACES: `users/{user}/sections/default-spaces` - DEFAULT_APPS:
107+
* `users/{user}/sections/default-apps` Format: `users/{user}/sections/{section}`
108+
* @param name name or {@code null} for none
109+
*/
110+
public GoogleChatV1Section setName(java.lang.String name) {
111+
this.name = name;
112+
return this;
113+
}
114+
115+
/**
116+
* Output only. The order of the section in relation to other sections. Sections with a lower
117+
* `sort_order` value appear before sections with a higher value.
118+
* @return value or {@code null} for none
119+
*/
120+
public java.lang.Integer getSortOrder() {
121+
return sortOrder;
122+
}
123+
124+
/**
125+
* Output only. The order of the section in relation to other sections. Sections with a lower
126+
* `sort_order` value appear before sections with a higher value.
127+
* @param sortOrder sortOrder or {@code null} for none
128+
*/
129+
public GoogleChatV1Section setSortOrder(java.lang.Integer sortOrder) {
130+
this.sortOrder = sortOrder;
131+
return this;
132+
}
133+
134+
/**
135+
* Required. The type of the section.
136+
* @return value or {@code null} for none
137+
*/
138+
public java.lang.String getType() {
139+
return type;
140+
}
141+
142+
/**
143+
* Required. The type of the section.
144+
* @param type type or {@code null} for none
145+
*/
146+
public GoogleChatV1Section setType(java.lang.String type) {
147+
this.type = type;
148+
return this;
149+
}
150+
151+
@Override
152+
public GoogleChatV1Section set(String fieldName, Object value) {
153+
return (GoogleChatV1Section) super.set(fieldName, value);
154+
}
155+
156+
@Override
157+
public GoogleChatV1Section clone() {
158+
return (GoogleChatV1Section) super.clone();
159+
}
160+
161+
}
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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+
* Response message for listing section items. [Developer
21+
* Preview](https://developers.google.com/workspace/preview).
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 ListSectionItemsResponse extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted,
35+
* there are no subsequent pages.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String nextPageToken;
40+
41+
/**
42+
* The section items from the specified section.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.util.List<SectionItem> sectionItems;
47+
48+
/**
49+
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted,
50+
* there are no subsequent pages.
51+
* @return value or {@code null} for none
52+
*/
53+
public java.lang.String getNextPageToken() {
54+
return nextPageToken;
55+
}
56+
57+
/**
58+
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted,
59+
* there are no subsequent pages.
60+
* @param nextPageToken nextPageToken or {@code null} for none
61+
*/
62+
public ListSectionItemsResponse setNextPageToken(java.lang.String nextPageToken) {
63+
this.nextPageToken = nextPageToken;
64+
return this;
65+
}
66+
67+
/**
68+
* The section items from the specified section.
69+
* @return value or {@code null} for none
70+
*/
71+
public java.util.List<SectionItem> getSectionItems() {
72+
return sectionItems;
73+
}
74+
75+
/**
76+
* The section items from the specified section.
77+
* @param sectionItems sectionItems or {@code null} for none
78+
*/
79+
public ListSectionItemsResponse setSectionItems(java.util.List<SectionItem> sectionItems) {
80+
this.sectionItems = sectionItems;
81+
return this;
82+
}
83+
84+
@Override
85+
public ListSectionItemsResponse set(String fieldName, Object value) {
86+
return (ListSectionItemsResponse) super.set(fieldName, value);
87+
}
88+
89+
@Override
90+
public ListSectionItemsResponse clone() {
91+
return (ListSectionItemsResponse) super.clone();
92+
}
93+
94+
}
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
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+
* Response message for listing sections. [Developer
21+
* Preview](https://developers.google.com/workspace/preview).
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 ListSectionsResponse extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted,
35+
* there are no subsequent pages.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String nextPageToken;
40+
41+
/**
42+
* The sections from the specified user.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.util.List<GoogleChatV1Section> sections;
47+
48+
static {
49+
// hack to force ProGuard to consider GoogleChatV1Section used, since otherwise it would be stripped out
50+
// see https://github.com/google/google-api-java-client/issues/543
51+
com.google.api.client.util.Data.nullOf(GoogleChatV1Section.class);
52+
}
53+
54+
/**
55+
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted,
56+
* there are no subsequent pages.
57+
* @return value or {@code null} for none
58+
*/
59+
public java.lang.String getNextPageToken() {
60+
return nextPageToken;
61+
}
62+
63+
/**
64+
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted,
65+
* there are no subsequent pages.
66+
* @param nextPageToken nextPageToken or {@code null} for none
67+
*/
68+
public ListSectionsResponse setNextPageToken(java.lang.String nextPageToken) {
69+
this.nextPageToken = nextPageToken;
70+
return this;
71+
}
72+
73+
/**
74+
* The sections from the specified user.
75+
* @return value or {@code null} for none
76+
*/
77+
public java.util.List<GoogleChatV1Section> getSections() {
78+
return sections;
79+
}
80+
81+
/**
82+
* The sections from the specified user.
83+
* @param sections sections or {@code null} for none
84+
*/
85+
public ListSectionsResponse setSections(java.util.List<GoogleChatV1Section> sections) {
86+
this.sections = sections;
87+
return this;
88+
}
89+
90+
@Override
91+
public ListSectionsResponse set(String fieldName, Object value) {
92+
return (ListSectionsResponse) super.set(fieldName, value);
93+
}
94+
95+
@Override
96+
public ListSectionsResponse clone() {
97+
return (ListSectionsResponse) super.clone();
98+
}
99+
100+
}

0 commit comments

Comments
 (0)