diff --git a/clients/google-api-services-developerknowledge/v1/2.0.0/README.md b/clients/google-api-services-developerknowledge/v1/2.0.0/README.md index de47658621e..c559c1c3e7a 100644 --- a/clients/google-api-services-developerknowledge/v1/2.0.0/README.md +++ b/clients/google-api-services-developerknowledge/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-developerknowledge - v1-rev20260719-2.0.0 + v1-rev20260802-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-developerknowledge:v1-rev20260719-2.0.0' + implementation 'com.google.apis:google-api-services-developerknowledge:v1-rev20260802-2.0.0' } ``` diff --git a/clients/google-api-services-developerknowledge/v1/2.0.0/com/google/api/services/developerknowledge/v1/DeveloperKnowledge.java b/clients/google-api-services-developerknowledge/v1/2.0.0/com/google/api/services/developerknowledge/v1/DeveloperKnowledge.java index 7b3de3005e3..ba7d486830b 100644 --- a/clients/google-api-services-developerknowledge/v1/2.0.0/com/google/api/services/developerknowledge/v1/DeveloperKnowledge.java +++ b/clients/google-api-services-developerknowledge/v1/2.0.0/com/google/api/services/developerknowledge/v1/DeveloperKnowledge.java @@ -259,7 +259,9 @@ public BatchGet setUploadProtocol(java.lang.String uploadProtocol) { * Required. Specifies the names of the documents to retrieve. A maximum of 20 documents can * be retrieved in a batch. The documents are returned in the same order as the `names` in the * request. Format: `documents/{uri_without_scheme}` Example: - * `documents/docs.cloud.google.com/storage/docs/creating-buckets` + * `documents/docs.cloud.google.com/storage/docs/creating-buckets` Each name must not exceed + * 500 characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` + * error. */ @com.google.api.client.util.Key private java.util.List names; @@ -267,7 +269,8 @@ public BatchGet setUploadProtocol(java.lang.String uploadProtocol) { /** Required. Specifies the names of the documents to retrieve. A maximum of 20 documents can be retrieved in a batch. The documents are returned in the same order as the `names` in the request. Format: `documents/{uri_without_scheme}` Example: - `documents/docs.cloud.google.com/storage/docs/creating-buckets` + `documents/docs.cloud.google.com/storage/docs/creating-buckets` Each name must not exceed 500 + characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` error. */ public java.util.List getNames() { return names; @@ -277,7 +280,9 @@ public java.util.List getNames() { * Required. Specifies the names of the documents to retrieve. A maximum of 20 documents can * be retrieved in a batch. The documents are returned in the same order as the `names` in the * request. Format: `documents/{uri_without_scheme}` Example: - * `documents/docs.cloud.google.com/storage/docs/creating-buckets` + * `documents/docs.cloud.google.com/storage/docs/creating-buckets` Each name must not exceed + * 500 characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` + * error. */ public BatchGet setNames(java.util.List names) { this.names = names; @@ -321,7 +326,9 @@ public BatchGet set(String parameterName, Object value) { * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param name Required. Specifies the name of the document to retrieve. Format: `documents/{uri_without_scheme}` - * Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` + * Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` The name must not + * exceed 500 characters; values longer than 500 characters will result in an + * `INVALID_ARGUMENT` error. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -349,7 +356,9 @@ public class Get extends DeveloperKnowledgeRequest * * @param name Required. Specifies the name of the document to retrieve. Format: `documents/{uri_without_scheme}` - * Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` + * Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` The name must not + * exceed 500 characters; values longer than 500 characters will result in an + * `INVALID_ARGUMENT` error. * @since 1.13 */ protected Get(java.lang.String name) { @@ -430,13 +439,16 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { /** * Required. Specifies the name of the document to retrieve. Format: * `documents/{uri_without_scheme}` Example: - * `documents/docs.cloud.google.com/storage/docs/creating-buckets` + * `documents/docs.cloud.google.com/storage/docs/creating-buckets` The name must not exceed + * 500 characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` + * error. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. Specifies the name of the document to retrieve. Format: `documents/{uri_without_scheme}` - Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` + Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` The name must not exceed + 500 characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` error. */ public java.lang.String getName() { return name; @@ -445,7 +457,9 @@ public java.lang.String getName() { /** * Required. Specifies the name of the document to retrieve. Format: * `documents/{uri_without_scheme}` Example: - * `documents/docs.cloud.google.com/storage/docs/creating-buckets` + * `documents/docs.cloud.google.com/storage/docs/creating-buckets` The name must not exceed + * 500 characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` + * error. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { @@ -730,13 +744,15 @@ public SearchDocumentChunks setPageToken(java.lang.String pageToken) { /** * Required. Provides the raw query string provided by the user, such as "How to create a - * Cloud Storage bucket?". + * Cloud Storage bucket?". The query must not exceed 500 characters; values longer than 500 + * characters will result in an `INVALID_ARGUMENT` error. */ @com.google.api.client.util.Key private java.lang.String query; /** Required. Provides the raw query string provided by the user, such as "How to create a Cloud - Storage bucket?". + Storage bucket?". The query must not exceed 500 characters; values longer than 500 characters will + result in an `INVALID_ARGUMENT` error. */ public java.lang.String getQuery() { return query; @@ -744,7 +760,8 @@ public java.lang.String getQuery() { /** * Required. Provides the raw query string provided by the user, such as "How to create a - * Cloud Storage bucket?". + * Cloud Storage bucket?". The query must not exceed 500 characters; values longer than 500 + * characters will result in an `INVALID_ARGUMENT` error. */ public SearchDocumentChunks setQuery(java.lang.String query) { this.query = query; diff --git a/clients/google-api-services-developerknowledge/v1/2.0.0/com/google/api/services/developerknowledge/v1/model/Document.java b/clients/google-api-services-developerknowledge/v1/2.0.0/com/google/api/services/developerknowledge/v1/model/Document.java index eecb224c23e..77b6d160f26 100644 --- a/clients/google-api-services-developerknowledge/v1/2.0.0/com/google/api/services/developerknowledge/v1/model/Document.java +++ b/clients/google-api-services-developerknowledge/v1/2.0.0/com/google/api/services/developerknowledge/v1/model/Document.java @@ -17,7 +17,8 @@ package com.google.api.services.developerknowledge.v1.model; /** - * A Document represents a piece of content from the Developer Knowledge corpus. + * A Document represents a page of documentation in the Developer Knowledge corpus, like the page at + * https://docs.cloud.google.com/storage/docs/creating-buckets. * *

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 Developer Knowledge API. For a detailed explanation diff --git a/clients/google-api-services-developerknowledge/v1/2.0.0/com/google/api/services/developerknowledge/v1/model/SearchDocumentChunksResponse.java b/clients/google-api-services-developerknowledge/v1/2.0.0/com/google/api/services/developerknowledge/v1/model/SearchDocumentChunksResponse.java index e8edc67cfa0..190ee91f820 100644 --- a/clients/google-api-services-developerknowledge/v1/2.0.0/com/google/api/services/developerknowledge/v1/model/SearchDocumentChunksResponse.java +++ b/clients/google-api-services-developerknowledge/v1/2.0.0/com/google/api/services/developerknowledge/v1/model/SearchDocumentChunksResponse.java @@ -31,8 +31,8 @@ public final class SearchDocumentChunksResponse extends com.google.api.client.json.GenericJson { /** - * Optional. Provides a token that can be sent as `page_token` to retrieve the next page. If this - * field is omitted, there are no subsequent pages. + * Provides a token that 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 @@ -55,8 +55,8 @@ public final class SearchDocumentChunksResponse extends com.google.api.client.js } /** - * Optional. Provides a token that can be sent as `page_token` to retrieve the next page. If this - * field is omitted, there are no subsequent pages. + * Provides a token that 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() { @@ -64,8 +64,8 @@ public java.lang.String getNextPageToken() { } /** - * Optional. Provides a token that can be sent as `page_token` to retrieve the next page. If this - * field is omitted, there are no subsequent pages. + * Provides a token that 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 SearchDocumentChunksResponse setNextPageToken(java.lang.String nextPageToken) { diff --git a/clients/google-api-services-developerknowledge/v1/2.0.0/pom.xml b/clients/google-api-services-developerknowledge/v1/2.0.0/pom.xml index b0acc5e8408..0df03b4e777 100644 --- a/clients/google-api-services-developerknowledge/v1/2.0.0/pom.xml +++ b/clients/google-api-services-developerknowledge/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-developerknowledge - v1-rev20260719-2.0.0 - Developer Knowledge API v1-rev20260719-2.0.0 + v1-rev20260802-2.0.0 + Developer Knowledge API v1-rev20260802-2.0.0 jar 2011 diff --git a/clients/google-api-services-developerknowledge/v1/README.md b/clients/google-api-services-developerknowledge/v1/README.md index de47658621e..c559c1c3e7a 100644 --- a/clients/google-api-services-developerknowledge/v1/README.md +++ b/clients/google-api-services-developerknowledge/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-developerknowledge - v1-rev20260719-2.0.0 + v1-rev20260802-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-developerknowledge:v1-rev20260719-2.0.0' + implementation 'com.google.apis:google-api-services-developerknowledge:v1-rev20260802-2.0.0' } ``` diff --git a/clients/google-api-services-developerknowledge/v1alpha/2.0.0/README.md b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/README.md index fa0c4498039..630f59c2f4a 100644 --- a/clients/google-api-services-developerknowledge/v1alpha/2.0.0/README.md +++ b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-developerknowledge - v1alpha-rev20260719-2.0.0 + v1alpha-rev20260802-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-developerknowledge:v1alpha-rev20260719-2.0.0' + implementation 'com.google.apis:google-api-services-developerknowledge:v1alpha-rev20260802-2.0.0' } ``` diff --git a/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/DeveloperKnowledge.java b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/DeveloperKnowledge.java index 023182c51ed..3f81a2cb958 100644 --- a/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/DeveloperKnowledge.java +++ b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/DeveloperKnowledge.java @@ -259,7 +259,9 @@ public BatchGet setUploadProtocol(java.lang.String uploadProtocol) { * Required. Specifies the names of the documents to retrieve. A maximum of 20 documents can * be retrieved in a batch. The documents are returned in the same order as the `names` in the * request. Format: `documents/{uri_without_scheme}` Example: - * `documents/docs.cloud.google.com/storage/docs/creating-buckets` + * `documents/docs.cloud.google.com/storage/docs/creating-buckets` Each name must not exceed + * 500 characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` + * error. */ @com.google.api.client.util.Key private java.util.List names; @@ -267,7 +269,8 @@ public BatchGet setUploadProtocol(java.lang.String uploadProtocol) { /** Required. Specifies the names of the documents to retrieve. A maximum of 20 documents can be retrieved in a batch. The documents are returned in the same order as the `names` in the request. Format: `documents/{uri_without_scheme}` Example: - `documents/docs.cloud.google.com/storage/docs/creating-buckets` + `documents/docs.cloud.google.com/storage/docs/creating-buckets` Each name must not exceed 500 + characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` error. */ public java.util.List getNames() { return names; @@ -277,7 +280,9 @@ public java.util.List getNames() { * Required. Specifies the names of the documents to retrieve. A maximum of 20 documents can * be retrieved in a batch. The documents are returned in the same order as the `names` in the * request. Format: `documents/{uri_without_scheme}` Example: - * `documents/docs.cloud.google.com/storage/docs/creating-buckets` + * `documents/docs.cloud.google.com/storage/docs/creating-buckets` Each name must not exceed + * 500 characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` + * error. */ public BatchGet setNames(java.util.List names) { this.names = names; @@ -321,7 +326,9 @@ public BatchGet set(String parameterName, Object value) { * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param name Required. Specifies the name of the document to retrieve. Format: `documents/{uri_without_scheme}` - * Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` + * Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` The name must not + * exceed 500 characters; values longer than 500 characters will result in an + * `INVALID_ARGUMENT` error. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -349,7 +356,9 @@ public class Get extends DeveloperKnowledgeRequest * * @param name Required. Specifies the name of the document to retrieve. Format: `documents/{uri_without_scheme}` - * Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` + * Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` The name must not + * exceed 500 characters; values longer than 500 characters will result in an + * `INVALID_ARGUMENT` error. * @since 1.13 */ protected Get(java.lang.String name) { @@ -430,13 +439,16 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { /** * Required. Specifies the name of the document to retrieve. Format: * `documents/{uri_without_scheme}` Example: - * `documents/docs.cloud.google.com/storage/docs/creating-buckets` + * `documents/docs.cloud.google.com/storage/docs/creating-buckets` The name must not exceed + * 500 characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` + * error. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. Specifies the name of the document to retrieve. Format: `documents/{uri_without_scheme}` - Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` + Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` The name must not exceed + 500 characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` error. */ public java.lang.String getName() { return name; @@ -445,7 +457,9 @@ public java.lang.String getName() { /** * Required. Specifies the name of the document to retrieve. Format: * `documents/{uri_without_scheme}` Example: - * `documents/docs.cloud.google.com/storage/docs/creating-buckets` + * `documents/docs.cloud.google.com/storage/docs/creating-buckets` The name must not exceed + * 500 characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` + * error. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { @@ -730,13 +744,15 @@ public SearchDocumentChunks setPageToken(java.lang.String pageToken) { /** * Required. Provides the raw query string provided by the user, such as "How to create a - * Cloud Storage bucket?". + * Cloud Storage bucket?". The query must not exceed 500 characters; values longer than 500 + * characters will result in an `INVALID_ARGUMENT` error. */ @com.google.api.client.util.Key private java.lang.String query; /** Required. Provides the raw query string provided by the user, such as "How to create a Cloud - Storage bucket?". + Storage bucket?". The query must not exceed 500 characters; values longer than 500 characters will + result in an `INVALID_ARGUMENT` error. */ public java.lang.String getQuery() { return query; @@ -744,7 +760,8 @@ public java.lang.String getQuery() { /** * Required. Provides the raw query string provided by the user, such as "How to create a - * Cloud Storage bucket?". + * Cloud Storage bucket?". The query must not exceed 500 characters; values longer than 500 + * characters will result in an `INVALID_ARGUMENT` error. */ public SearchDocumentChunks setQuery(java.lang.String query) { this.query = query; diff --git a/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/AnswerQueryRequest.java b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/AnswerQueryRequest.java index 2855f64897b..1428421520e 100644 --- a/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/AnswerQueryRequest.java +++ b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/AnswerQueryRequest.java @@ -30,6 +30,33 @@ @SuppressWarnings("javadoc") public final class AnswerQueryRequest extends com.google.api.client.json.GenericJson { + /** + * Optional. Applies a strict filter to the search results used to ground the answer. The + * expression supports a subset of the syntax described at https://google.aip.dev/160. Supported + * fields for filtering: * `content_length_bytes` (INTEGER): The length of the `Document.content` + * field in bytes. * `data_source` (STRING): The source of the document, e.g. + * `docs.cloud.google.com`. See https://developers.google.com/knowledge/reference/corpus-reference + * for the complete list of data sources in the corpus. * `update_time` (TIMESTAMP): The timestamp + * of when the document was last meaningfully updated. A meaningful update is one that changes + * document's markdown content or metadata. * `uri` (STRING): The document URI, e.g. + * `https://docs.cloud.google.com/bigquery/docs/tables`. INTEGER fields support `=`, `<`, `<=`, + * `>`, and `>=` operators. STRING fields support `=` (equals) and `!=` (not equals) operators for + * **exact match** on the whole string. Partial match, prefix match, and regexp match are not + * supported. TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators. Timestamps must be + * in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`. You can combine expressions using `AND`, + * `OR`, and `NOT` (or `-`) logical operators. `OR` has higher precedence than `AND`. Use + * parentheses for explicit precedence grouping. Examples: * Filter by + * `Document.content_length_bytes`: `content_length_bytes < 50000` * `data_source = + * "docs.cloud.google.com" OR data_source = "firebase.google.com"` * `data_source != + * "firebase.google.com"` * `update_time < "2024-01-01T00:00:00Z"` * `update_time >= + * "2025-01-22T00:00:00Z" AND (data_source = "developer.chrome.com" OR data_source = "web.dev")` * + * `uri = "https://docs.cloud.google.com/release-notes"` The `filter` string must not exceed 500 + * characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + /** * Required. The query to answer. * The value may be {@code null}. @@ -37,6 +64,63 @@ public final class AnswerQueryRequest extends com.google.api.client.json.Generic @com.google.api.client.util.Key private java.lang.String query; + /** + * Optional. Applies a strict filter to the search results used to ground the answer. The + * expression supports a subset of the syntax described at https://google.aip.dev/160. Supported + * fields for filtering: * `content_length_bytes` (INTEGER): The length of the `Document.content` + * field in bytes. * `data_source` (STRING): The source of the document, e.g. + * `docs.cloud.google.com`. See https://developers.google.com/knowledge/reference/corpus-reference + * for the complete list of data sources in the corpus. * `update_time` (TIMESTAMP): The timestamp + * of when the document was last meaningfully updated. A meaningful update is one that changes + * document's markdown content or metadata. * `uri` (STRING): The document URI, e.g. + * `https://docs.cloud.google.com/bigquery/docs/tables`. INTEGER fields support `=`, `<`, `<=`, + * `>`, and `>=` operators. STRING fields support `=` (equals) and `!=` (not equals) operators for + * **exact match** on the whole string. Partial match, prefix match, and regexp match are not + * supported. TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators. Timestamps must be + * in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`. You can combine expressions using `AND`, + * `OR`, and `NOT` (or `-`) logical operators. `OR` has higher precedence than `AND`. Use + * parentheses for explicit precedence grouping. Examples: * Filter by + * `Document.content_length_bytes`: `content_length_bytes < 50000` * `data_source = + * "docs.cloud.google.com" OR data_source = "firebase.google.com"` * `data_source != + * "firebase.google.com"` * `update_time < "2024-01-01T00:00:00Z"` * `update_time >= + * "2025-01-22T00:00:00Z" AND (data_source = "developer.chrome.com" OR data_source = "web.dev")` * + * `uri = "https://docs.cloud.google.com/release-notes"` The `filter` string must not exceed 500 + * characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` error. + * @return value or {@code null} for none + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Applies a strict filter to the search results used to ground the answer. The + * expression supports a subset of the syntax described at https://google.aip.dev/160. Supported + * fields for filtering: * `content_length_bytes` (INTEGER): The length of the `Document.content` + * field in bytes. * `data_source` (STRING): The source of the document, e.g. + * `docs.cloud.google.com`. See https://developers.google.com/knowledge/reference/corpus-reference + * for the complete list of data sources in the corpus. * `update_time` (TIMESTAMP): The timestamp + * of when the document was last meaningfully updated. A meaningful update is one that changes + * document's markdown content or metadata. * `uri` (STRING): The document URI, e.g. + * `https://docs.cloud.google.com/bigquery/docs/tables`. INTEGER fields support `=`, `<`, `<=`, + * `>`, and `>=` operators. STRING fields support `=` (equals) and `!=` (not equals) operators for + * **exact match** on the whole string. Partial match, prefix match, and regexp match are not + * supported. TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators. Timestamps must be + * in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`. You can combine expressions using `AND`, + * `OR`, and `NOT` (or `-`) logical operators. `OR` has higher precedence than `AND`. Use + * parentheses for explicit precedence grouping. Examples: * Filter by + * `Document.content_length_bytes`: `content_length_bytes < 50000` * `data_source = + * "docs.cloud.google.com" OR data_source = "firebase.google.com"` * `data_source != + * "firebase.google.com"` * `update_time < "2024-01-01T00:00:00Z"` * `update_time >= + * "2025-01-22T00:00:00Z" AND (data_source = "developer.chrome.com" OR data_source = "web.dev")` * + * `uri = "https://docs.cloud.google.com/release-notes"` The `filter` string must not exceed 500 + * characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` error. + * @param filter filter or {@code null} for none + */ + public AnswerQueryRequest setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + /** * Required. The query to answer. * @return value or {@code null} for none diff --git a/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/Document.java b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/Document.java index f9fb56dfee7..813a9e0a24a 100644 --- a/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/Document.java +++ b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/Document.java @@ -17,7 +17,8 @@ package com.google.api.services.developerknowledge.v1alpha.model; /** - * A Document represents a piece of content from the Developer Knowledge corpus. + * A Document represents a page of documentation in the Developer Knowledge corpus, like the page at + * https://docs.cloud.google.com/storage/docs/creating-buckets. * *

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 Developer Knowledge API. For a detailed explanation diff --git a/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/DocumentChunk.java b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/DocumentChunk.java index d19fefa1e2b..772cc28b05b 100644 --- a/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/DocumentChunk.java +++ b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/DocumentChunk.java @@ -69,6 +69,14 @@ public final class DocumentChunk extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.lang.String parent; + /** + * Output only. Represents the relevance score of the chunk to the search query. Higher score + * indicates higher chunk relevance. The score is in range [0.0, 1.0]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double relevanceScore; + /** * Output only. Contains the content of the document chunk. * @return value or {@code null} for none @@ -155,6 +163,25 @@ public DocumentChunk setParent(java.lang.String parent) { return this; } + /** + * Output only. Represents the relevance score of the chunk to the search query. Higher score + * indicates higher chunk relevance. The score is in range [0.0, 1.0]. + * @return value or {@code null} for none + */ + public java.lang.Double getRelevanceScore() { + return relevanceScore; + } + + /** + * Output only. Represents the relevance score of the chunk to the search query. Higher score + * indicates higher chunk relevance. The score is in range [0.0, 1.0]. + * @param relevanceScore relevanceScore or {@code null} for none + */ + public DocumentChunk setRelevanceScore(java.lang.Double relevanceScore) { + this.relevanceScore = relevanceScore; + return this; + } + @Override public DocumentChunk set(String fieldName, Object value) { return (DocumentChunk) super.set(fieldName, value); diff --git a/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/SearchDocumentChunksResponse.java b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/SearchDocumentChunksResponse.java index ffb0c5e540f..84ad850e891 100644 --- a/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/SearchDocumentChunksResponse.java +++ b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/SearchDocumentChunksResponse.java @@ -31,8 +31,8 @@ public final class SearchDocumentChunksResponse extends com.google.api.client.json.GenericJson { /** - * Optional. Provides a token that can be sent as `page_token` to retrieve the next page. If this - * field is omitted, there are no subsequent pages. + * Provides a token that 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 @@ -55,8 +55,8 @@ public final class SearchDocumentChunksResponse extends com.google.api.client.js } /** - * Optional. Provides a token that can be sent as `page_token` to retrieve the next page. If this - * field is omitted, there are no subsequent pages. + * Provides a token that 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() { @@ -64,8 +64,8 @@ public java.lang.String getNextPageToken() { } /** - * Optional. Provides a token that can be sent as `page_token` to retrieve the next page. If this - * field is omitted, there are no subsequent pages. + * Provides a token that 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 SearchDocumentChunksResponse setNextPageToken(java.lang.String nextPageToken) { diff --git a/clients/google-api-services-developerknowledge/v1alpha/2.0.0/pom.xml b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/pom.xml index a86c88ec1e6..fd736d5a469 100644 --- a/clients/google-api-services-developerknowledge/v1alpha/2.0.0/pom.xml +++ b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-developerknowledge - v1alpha-rev20260719-2.0.0 - Developer Knowledge API v1alpha-rev20260719-2.0.0 + v1alpha-rev20260802-2.0.0 + Developer Knowledge API v1alpha-rev20260802-2.0.0 jar 2011 diff --git a/clients/google-api-services-developerknowledge/v1alpha/README.md b/clients/google-api-services-developerknowledge/v1alpha/README.md index fa0c4498039..630f59c2f4a 100644 --- a/clients/google-api-services-developerknowledge/v1alpha/README.md +++ b/clients/google-api-services-developerknowledge/v1alpha/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-developerknowledge - v1alpha-rev20260719-2.0.0 + v1alpha-rev20260802-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-developerknowledge:v1alpha-rev20260719-2.0.0' + implementation 'com.google.apis:google-api-services-developerknowledge:v1alpha-rev20260802-2.0.0' } ```