Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clients/google-api-services-chat/v1/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-chat</artifactId>
<version>v1-rev20260317-2.0.0</version>
<version>v1-rev20260320-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-chat:v1-rev20260317-2.0.0'
implementation 'com.google.apis:google-api-services-chat:v1-rev20260320-2.0.0'
}
```

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ public class HangoutsChatScopes {
/** View last read time for Google Chat conversations. */
public static final String CHAT_USERS_READSTATE_READONLY = "https://www.googleapis.com/auth/chat.users.readstate.readonly";

/** View, create, update, and delete your sections in Google Chat; move and list your section items in Google Chat. */
public static final String CHAT_USERS_SECTIONS = "https://www.googleapis.com/auth/chat.users.sections";

/** View your sections and their section items in Google Chat. */
public static final String CHAT_USERS_SECTIONS_READONLY = "https://www.googleapis.com/auth/chat.users.sections.readonly";

/** Read and update your space settings. */
public static final String CHAT_USERS_SPACESETTINGS = "https://www.googleapis.com/auth/chat.users.spacesettings";

Expand Down Expand Up @@ -149,6 +155,8 @@ public static java.util.Set<String> all() {
set.add(CHAT_SPACES_READONLY);
set.add(CHAT_USERS_READSTATE);
set.add(CHAT_USERS_READSTATE_READONLY);
set.add(CHAT_USERS_SECTIONS);
set.add(CHAT_USERS_SECTIONS_READONLY);
set.add(CHAT_USERS_SPACESETTINGS);
return java.util.Collections.unmodifiableSet(set);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.chat.v1.model;

/**
* Represents a [section](https://support.google.com/chat/answer/16059854) in Google Chat. Sections
* help users organize their spaces. There are two types of sections: 1. **System Sections:** These
* are predefined sections managed by Google Chat. Their resource names are fixed, and they cannot
* be created, deleted, or have their `display_name` modified. Examples include: *
* `users/{user}/sections/default-direct-messages` * `users/{user}/sections/default-spaces` *
* `users/{user}/sections/default-apps` 2. **Custom Sections:** These are sections created and
* managed by the user. Creating a custom section using `CreateSection` **requires** a
* `display_name`. Custom sections can be updated using `UpdateSection` and deleted using
* `DeleteSection`. [Developer Preview](https://developers.google.com/workspace/preview).
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Google Chat API. For a detailed explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class GoogleChatV1Section extends com.google.api.client.json.GenericJson {

/**
* Optional. The section's display name. Only populated for sections of type `CUSTOM_SECTION`.
* Supports up to 80 characters. Required when creating a `CUSTOM_SECTION`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String displayName;

/**
* Identifier. Resource name of the section. For system sections, the section ID is a constant
* string: - DEFAULT_DIRECT_MESSAGES: `users/{user}/sections/default-direct-messages` -
* DEFAULT_SPACES: `users/{user}/sections/default-spaces` - DEFAULT_APPS:
* `users/{user}/sections/default-apps` Format: `users/{user}/sections/{section}`
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;

/**
* Output only. The order of the section in relation to other sections. Sections with a lower
* `sort_order` value appear before sections with a higher value.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer sortOrder;

/**
* Required. The type of the section.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String type;

/**
* Optional. The section's display name. Only populated for sections of type `CUSTOM_SECTION`.
* Supports up to 80 characters. Required when creating a `CUSTOM_SECTION`.
* @return value or {@code null} for none
*/
public java.lang.String getDisplayName() {
return displayName;
}

/**
* Optional. The section's display name. Only populated for sections of type `CUSTOM_SECTION`.
* Supports up to 80 characters. Required when creating a `CUSTOM_SECTION`.
* @param displayName displayName or {@code null} for none
*/
public GoogleChatV1Section setDisplayName(java.lang.String displayName) {
this.displayName = displayName;
return this;
}

/**
* Identifier. Resource name of the section. For system sections, the section ID is a constant
* string: - DEFAULT_DIRECT_MESSAGES: `users/{user}/sections/default-direct-messages` -
* DEFAULT_SPACES: `users/{user}/sections/default-spaces` - DEFAULT_APPS:
* `users/{user}/sections/default-apps` Format: `users/{user}/sections/{section}`
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}

/**
* Identifier. Resource name of the section. For system sections, the section ID is a constant
* string: - DEFAULT_DIRECT_MESSAGES: `users/{user}/sections/default-direct-messages` -
* DEFAULT_SPACES: `users/{user}/sections/default-spaces` - DEFAULT_APPS:
* `users/{user}/sections/default-apps` Format: `users/{user}/sections/{section}`
* @param name name or {@code null} for none
*/
public GoogleChatV1Section setName(java.lang.String name) {
this.name = name;
return this;
}

/**
* Output only. The order of the section in relation to other sections. Sections with a lower
* `sort_order` value appear before sections with a higher value.
* @return value or {@code null} for none
*/
public java.lang.Integer getSortOrder() {
return sortOrder;
}

/**
* Output only. The order of the section in relation to other sections. Sections with a lower
* `sort_order` value appear before sections with a higher value.
* @param sortOrder sortOrder or {@code null} for none
*/
public GoogleChatV1Section setSortOrder(java.lang.Integer sortOrder) {
this.sortOrder = sortOrder;
return this;
}

/**
* Required. The type of the section.
* @return value or {@code null} for none
*/
public java.lang.String getType() {
return type;
}

/**
* Required. The type of the section.
* @param type type or {@code null} for none
*/
public GoogleChatV1Section setType(java.lang.String type) {
this.type = type;
return this;
}

@Override
public GoogleChatV1Section set(String fieldName, Object value) {
return (GoogleChatV1Section) super.set(fieldName, value);
}

@Override
public GoogleChatV1Section clone() {
return (GoogleChatV1Section) super.clone();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.chat.v1.model;

/**
* Response message for listing section items. [Developer
* Preview](https://developers.google.com/workspace/preview).
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Google Chat API. For a detailed explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class ListSectionItemsResponse extends com.google.api.client.json.GenericJson {

/**
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted,
* there are no subsequent pages.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String nextPageToken;

/**
* The section items from the specified section.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<SectionItem> sectionItems;

/**
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted,
* there are no subsequent pages.
* @return value or {@code null} for none
*/
public java.lang.String getNextPageToken() {
return nextPageToken;
}

/**
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted,
* there are no subsequent pages.
* @param nextPageToken nextPageToken or {@code null} for none
*/
public ListSectionItemsResponse setNextPageToken(java.lang.String nextPageToken) {
this.nextPageToken = nextPageToken;
return this;
}

/**
* The section items from the specified section.
* @return value or {@code null} for none
*/
public java.util.List<SectionItem> getSectionItems() {
return sectionItems;
}

/**
* The section items from the specified section.
* @param sectionItems sectionItems or {@code null} for none
*/
public ListSectionItemsResponse setSectionItems(java.util.List<SectionItem> sectionItems) {
this.sectionItems = sectionItems;
return this;
}

@Override
public ListSectionItemsResponse set(String fieldName, Object value) {
return (ListSectionItemsResponse) super.set(fieldName, value);
}

@Override
public ListSectionItemsResponse clone() {
return (ListSectionItemsResponse) super.clone();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.chat.v1.model;

/**
* Response message for listing sections. [Developer
* Preview](https://developers.google.com/workspace/preview).
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Google Chat API. For a detailed explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class ListSectionsResponse extends com.google.api.client.json.GenericJson {

/**
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted,
* there are no subsequent pages.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String nextPageToken;

/**
* The sections from the specified user.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<GoogleChatV1Section> sections;

static {
// hack to force ProGuard to consider GoogleChatV1Section used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(GoogleChatV1Section.class);
}

/**
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted,
* there are no subsequent pages.
* @return value or {@code null} for none
*/
public java.lang.String getNextPageToken() {
return nextPageToken;
}

/**
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted,
* there are no subsequent pages.
* @param nextPageToken nextPageToken or {@code null} for none
*/
public ListSectionsResponse setNextPageToken(java.lang.String nextPageToken) {
this.nextPageToken = nextPageToken;
return this;
}

/**
* The sections from the specified user.
* @return value or {@code null} for none
*/
public java.util.List<GoogleChatV1Section> getSections() {
return sections;
}

/**
* The sections from the specified user.
* @param sections sections or {@code null} for none
*/
public ListSectionsResponse setSections(java.util.List<GoogleChatV1Section> sections) {
this.sections = sections;
return this;
}

@Override
public ListSectionsResponse set(String fieldName, Object value) {
return (ListSectionsResponse) super.set(fieldName, value);
}

@Override
public ListSectionsResponse clone() {
return (ListSectionsResponse) super.clone();
}

}
Loading