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-rev20261015-2.9.2</version>
<version>v1-rev20261022-2.9.2</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-chat:v1-rev20261015-2.9.2'
implementation 'com.google.apis:google-api-services-chat:v1-rev20261022-2.9.2'
}
```

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
/*
* 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;

/**
* Citations are inline references that can provide users more detailed information about the inline
* reference. Corresponding inline citations should be present in the message text in a markup
* format of `{text}`. Citations are only supported when the message's `markup_syntax` is set to
* `MARKDOWN`. Unreferenced citations in `Elements.citations` (those without a matching `` tag in
* the message text) are ignored and do not cause the message to be rejected.
*
* <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 Citation extends com.google.api.client.json.GenericJson {

/**
* Optional. A list of sources that are relevant to the citation. Sources are displayed in the
* citation hover card.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<CitedSource> citedSources;

/**
* Required. The ID of the citation. This ID is defined by the app creating the citation and must
* match the `data-id` attribute of the `` tag in the message text. Must contain only ASCII
* letters and numbers, and less than 63 characters.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String id;

/**
* Optional. A list of sources that are relevant to the citation. Sources are displayed in the
* citation hover card.
* @return value or {@code null} for none
*/
public java.util.List<CitedSource> getCitedSources() {
return citedSources;
}

/**
* Optional. A list of sources that are relevant to the citation. Sources are displayed in the
* citation hover card.
* @param citedSources citedSources or {@code null} for none
*/
public Citation setCitedSources(java.util.List<CitedSource> citedSources) {
this.citedSources = citedSources;
return this;
}

/**
* Required. The ID of the citation. This ID is defined by the app creating the citation and must
* match the `data-id` attribute of the `` tag in the message text. Must contain only ASCII
* letters and numbers, and less than 63 characters.
* @return value or {@code null} for none
*/
public java.lang.String getId() {
return id;
}

/**
* Required. The ID of the citation. This ID is defined by the app creating the citation and must
* match the `data-id` attribute of the `` tag in the message text. Must contain only ASCII
* letters and numbers, and less than 63 characters.
* @param id id or {@code null} for none
*/
public Citation setId(java.lang.String id) {
this.id = id;
return this;
}

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

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
/*
* 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;

/**
* A reference to a source of information.
*
* <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 CitedSource extends com.google.api.client.json.GenericJson {

/**
* Optional. Additional information to show alongside the snippet in the form of a footer.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Footer footer;

/**
* Optional. Snippet containing information directly from the source.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Snippet snippet;

/**
* Required. The plaintext title of the `CitedSource`. Does not support markdown format.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String title;

/**
* Required. The URI pointing to the resource referenced by this `CitedSource`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String uri;

/**
* Optional. Additional information to show alongside the snippet in the form of a footer.
* @return value or {@code null} for none
*/
public Footer getFooter() {
return footer;
}

/**
* Optional. Additional information to show alongside the snippet in the form of a footer.
* @param footer footer or {@code null} for none
*/
public CitedSource setFooter(Footer footer) {
this.footer = footer;
return this;
}

/**
* Optional. Snippet containing information directly from the source.
* @return value or {@code null} for none
*/
public Snippet getSnippet() {
return snippet;
}

/**
* Optional. Snippet containing information directly from the source.
* @param snippet snippet or {@code null} for none
*/
public CitedSource setSnippet(Snippet snippet) {
this.snippet = snippet;
return this;
}

/**
* Required. The plaintext title of the `CitedSource`. Does not support markdown format.
* @return value or {@code null} for none
*/
public java.lang.String getTitle() {
return title;
}

/**
* Required. The plaintext title of the `CitedSource`. Does not support markdown format.
* @param title title or {@code null} for none
*/
public CitedSource setTitle(java.lang.String title) {
this.title = title;
return this;
}

/**
* Required. The URI pointing to the resource referenced by this `CitedSource`.
* @return value or {@code null} for none
*/
public java.lang.String getUri() {
return uri;
}

/**
* Required. The URI pointing to the resource referenced by this `CitedSource`.
* @param uri uri or {@code null} for none
*/
public CitedSource setUri(java.lang.String uri) {
this.uri = uri;
return this;
}

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

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
/*
* 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;

/**
* Elements are additional message components, including inline `citations` (where each citation is
* associated with a specific portion of the message text) and `cited_sources` (which are general
* references used to generate the response and are not directly linked to specific segments of the
* text). Both `citations` and `cited_sources` can be provided as input when creating or updating a
* message and are populated on output when reading a message.
*
* <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 Elements extends com.google.api.client.json.GenericJson {

/**
* Optional. A list of inline citations referenced within the message text (via `` tags) that
* render as interactive hover cards.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<Citation> citations;

static {
// hack to force ProGuard to consider Citation 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(Citation.class);
}

/**
* Optional. A list of sources to be displayed under the message as footer links. These are not
* referenced inline. For inline references, use `citations`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<CitedSource> citedSources;

static {
// hack to force ProGuard to consider CitedSource 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(CitedSource.class);
}

/**
* Optional. A list of inline citations referenced within the message text (via `` tags) that
* render as interactive hover cards.
* @return value or {@code null} for none
*/
public java.util.List<Citation> getCitations() {
return citations;
}

/**
* Optional. A list of inline citations referenced within the message text (via `` tags) that
* render as interactive hover cards.
* @param citations citations or {@code null} for none
*/
public Elements setCitations(java.util.List<Citation> citations) {
this.citations = citations;
return this;
}

/**
* Optional. A list of sources to be displayed under the message as footer links. These are not
* referenced inline. For inline references, use `citations`.
* @return value or {@code null} for none
*/
public java.util.List<CitedSource> getCitedSources() {
return citedSources;
}

/**
* Optional. A list of sources to be displayed under the message as footer links. These are not
* referenced inline. For inline references, use `citations`.
* @param citedSources citedSources or {@code null} for none
*/
public Elements setCitedSources(java.util.List<CitedSource> citedSources) {
this.citedSources = citedSources;
return this;
}

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

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

}
Loading
Loading