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 ad9f0782778..dfe45ca232c 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-rev20260510-2.0.0 + v1-rev20260524-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-developerknowledge:v1-rev20260510-2.0.0' + implementation 'com.google.apis:google-api-services-developerknowledge:v1-rev20260524-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 87d78e35e55..788de234d3e 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,10 +259,7 @@ 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` If you are changing the - * batch size, consider the value of `maxConcurrentGCSFetches` constant in the service - * implementation: - * http://csdepot/google3/devrel/boq/developerknowledge/service/developerknowledge.go + * `documents/docs.cloud.google.com/storage/docs/creating-buckets` */ @com.google.api.client.util.Key private java.util.List names; @@ -270,9 +267,7 @@ 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` If you are changing the batch size, - consider the value of `maxConcurrentGCSFetches` constant in the service implementation: - http://csdepot/google3/devrel/boq/developerknowledge/service/developerknowledge.go + `documents/docs.cloud.google.com/storage/docs/creating-buckets` */ public java.util.List getNames() { return names; @@ -282,10 +277,7 @@ 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` If you are changing the - * batch size, consider the value of `maxConcurrentGCSFetches` constant in the service - * implementation: - * http://csdepot/google3/devrel/boq/developerknowledge/service/developerknowledge.go + * `documents/docs.cloud.google.com/storage/docs/creating-buckets` */ public BatchGet setNames(java.util.List names) { this.names = names; 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 a457d98b994..c745166a4d4 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-rev20260510-2.0.0 - Developer Knowledge API v1-rev20260510-2.0.0 + v1-rev20260524-2.0.0 + Developer Knowledge API v1-rev20260524-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 ad9f0782778..dfe45ca232c 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-rev20260510-2.0.0 + v1-rev20260524-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-developerknowledge:v1-rev20260510-2.0.0' + implementation 'com.google.apis:google-api-services-developerknowledge:v1-rev20260524-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 367a4255d06..f7e28d5a54d 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-rev20260510-2.0.0 + v1alpha-rev20260524-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-developerknowledge:v1alpha-rev20260510-2.0.0' + implementation 'com.google.apis:google-api-services-developerknowledge:v1alpha-rev20260524-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 9bb92d62971..e559d679db5 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,10 +259,7 @@ 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` If you are changing the - * batch size, consider the value of `maxConcurrentGCSFetches` constant in the service - * implementation: - * http://csdepot/google3/devrel/boq/developerknowledge/service/developerknowledge.go + * `documents/docs.cloud.google.com/storage/docs/creating-buckets` */ @com.google.api.client.util.Key private java.util.List names; @@ -270,9 +267,7 @@ 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` If you are changing the batch size, - consider the value of `maxConcurrentGCSFetches` constant in the service implementation: - http://csdepot/google3/devrel/boq/developerknowledge/service/developerknowledge.go + `documents/docs.cloud.google.com/storage/docs/creating-buckets` */ public java.util.List getNames() { return names; @@ -282,10 +277,7 @@ 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` If you are changing the - * batch size, consider the value of `maxConcurrentGCSFetches` constant in the service - * implementation: - * http://csdepot/google3/devrel/boq/developerknowledge/service/developerknowledge.go + * `documents/docs.cloud.google.com/storage/docs/creating-buckets` */ public BatchGet setNames(java.util.List names) { this.names = names; diff --git a/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/Answer.java b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/Answer.java index d47996d4f75..9543da58a29 100644 --- a/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/Answer.java +++ b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/Answer.java @@ -37,6 +37,20 @@ public final class Answer extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String answerText; + /** + * Output only. Contains citations for the answer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List citations; + + /** + * Output only. Contains references for the answer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List references; + /** * Contains the text of the answer. * @return value or {@code null} for none @@ -54,6 +68,40 @@ public Answer setAnswerText(java.lang.String answerText) { return this; } + /** + * Output only. Contains citations for the answer. + * @return value or {@code null} for none + */ + public java.util.List getCitations() { + return citations; + } + + /** + * Output only. Contains citations for the answer. + * @param citations citations or {@code null} for none + */ + public Answer setCitations(java.util.List citations) { + this.citations = citations; + return this; + } + + /** + * Output only. Contains references for the answer. + * @return value or {@code null} for none + */ + public java.util.List getReferences() { + return references; + } + + /** + * Output only. Contains references for the answer. + * @param references references or {@code null} for none + */ + public Answer setReferences(java.util.List references) { + this.references = references; + return this; + } + @Override public Answer set(String fieldName, Object value) { return (Answer) super.set(fieldName, value); diff --git a/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/AnswerCitation.java b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/AnswerCitation.java new file mode 100644 index 00000000000..3ddf92659cb --- /dev/null +++ b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/AnswerCitation.java @@ -0,0 +1,127 @@ +/* + * 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.developerknowledge.v1alpha.model; + +/** + * Citation info for a segment. + * + *

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 + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AnswerCitation extends com.google.api.client.json.GenericJson { + + /** + * Output only. Indicates the end of the segment, measured in bytes (UTF-8 unicode), exclusive. If + * there are multi-byte characters, such as non-ASCII characters, the index measurement is longer + * than the string length. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer endIndex; + + /** + * Output only. Contains citation sources for the attributed segment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sources; + + /** + * Output only. Indicates the start of the segment, measured in bytes (UTF-8 unicode), inclusive. + * If there are multi-byte characters, such as non-ASCII characters, the index measurement is + * longer than the string length. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer startIndex; + + /** + * Output only. Indicates the end of the segment, measured in bytes (UTF-8 unicode), exclusive. If + * there are multi-byte characters, such as non-ASCII characters, the index measurement is longer + * than the string length. + * @return value or {@code null} for none + */ + public java.lang.Integer getEndIndex() { + return endIndex; + } + + /** + * Output only. Indicates the end of the segment, measured in bytes (UTF-8 unicode), exclusive. If + * there are multi-byte characters, such as non-ASCII characters, the index measurement is longer + * than the string length. + * @param endIndex endIndex or {@code null} for none + */ + public AnswerCitation setEndIndex(java.lang.Integer endIndex) { + this.endIndex = endIndex; + return this; + } + + /** + * Output only. Contains citation sources for the attributed segment. + * @return value or {@code null} for none + */ + public java.util.List getSources() { + return sources; + } + + /** + * Output only. Contains citation sources for the attributed segment. + * @param sources sources or {@code null} for none + */ + public AnswerCitation setSources(java.util.List sources) { + this.sources = sources; + return this; + } + + /** + * Output only. Indicates the start of the segment, measured in bytes (UTF-8 unicode), inclusive. + * If there are multi-byte characters, such as non-ASCII characters, the index measurement is + * longer than the string length. + * @return value or {@code null} for none + */ + public java.lang.Integer getStartIndex() { + return startIndex; + } + + /** + * Output only. Indicates the start of the segment, measured in bytes (UTF-8 unicode), inclusive. + * If there are multi-byte characters, such as non-ASCII characters, the index measurement is + * longer than the string length. + * @param startIndex startIndex or {@code null} for none + */ + public AnswerCitation setStartIndex(java.lang.Integer startIndex) { + this.startIndex = startIndex; + return this; + } + + @Override + public AnswerCitation set(String fieldName, Object value) { + return (AnswerCitation) super.set(fieldName, value); + } + + @Override + public AnswerCitation clone() { + return (AnswerCitation) super.clone(); + } + +} diff --git a/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/AnswerReference.java b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/AnswerReference.java new file mode 100644 index 00000000000..0b017a53552 --- /dev/null +++ b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/AnswerReference.java @@ -0,0 +1,67 @@ +/* + * 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.developerknowledge.v1alpha.model; + +/** + * Represents a reference to a source. + * + *

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 + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AnswerReference extends com.google.api.client.json.GenericJson { + + /** + * Output only. The reference document. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DocumentReference documentReference; + + /** + * Output only. The reference document. + * @return value or {@code null} for none + */ + public DocumentReference getDocumentReference() { + return documentReference; + } + + /** + * Output only. The reference document. + * @param documentReference documentReference or {@code null} for none + */ + public AnswerReference setDocumentReference(DocumentReference documentReference) { + this.documentReference = documentReference; + return this; + } + + @Override + public AnswerReference set(String fieldName, Object value) { + return (AnswerReference) super.set(fieldName, value); + } + + @Override + public AnswerReference clone() { + return (AnswerReference) super.clone(); + } + +} diff --git a/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/CitationSource.java b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/CitationSource.java new file mode 100644 index 00000000000..9065c42f27d --- /dev/null +++ b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/CitationSource.java @@ -0,0 +1,70 @@ +/* + * 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.developerknowledge.v1alpha.model; + +/** + * Citation source. + * + *

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 + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CitationSource extends com.google.api.client.json.GenericJson { + + /** + * Output only. Contains the index of the Answer.AnswerReference in the `references` repeated + * field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer referenceIndex; + + /** + * Output only. Contains the index of the Answer.AnswerReference in the `references` repeated + * field. + * @return value or {@code null} for none + */ + public java.lang.Integer getReferenceIndex() { + return referenceIndex; + } + + /** + * Output only. Contains the index of the Answer.AnswerReference in the `references` repeated + * field. + * @param referenceIndex referenceIndex or {@code null} for none + */ + public CitationSource setReferenceIndex(java.lang.Integer referenceIndex) { + this.referenceIndex = referenceIndex; + return this; + } + + @Override + public CitationSource set(String fieldName, Object value) { + return (CitationSource) super.set(fieldName, value); + } + + @Override + public CitationSource clone() { + return (CitationSource) super.clone(); + } + +} diff --git a/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/DocumentReference.java b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/DocumentReference.java new file mode 100644 index 00000000000..b56a4418b73 --- /dev/null +++ b/clients/google-api-services-developerknowledge/v1alpha/2.0.0/com/google/api/services/developerknowledge/v1alpha/model/DocumentReference.java @@ -0,0 +1,70 @@ +/* + * 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.developerknowledge.v1alpha.model; + +/** + * Represents a reference to a document. + * + *

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 + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DocumentReference extends com.google.api.client.json.GenericJson { + + /** + * Output only. Contains the document chunk. The `document_chunk.id` field is not set and will be + * empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DocumentChunk documentChunk; + + /** + * Output only. Contains the document chunk. The `document_chunk.id` field is not set and will be + * empty. + * @return value or {@code null} for none + */ + public DocumentChunk getDocumentChunk() { + return documentChunk; + } + + /** + * Output only. Contains the document chunk. The `document_chunk.id` field is not set and will be + * empty. + * @param documentChunk documentChunk or {@code null} for none + */ + public DocumentReference setDocumentChunk(DocumentChunk documentChunk) { + this.documentChunk = documentChunk; + return this; + } + + @Override + public DocumentReference set(String fieldName, Object value) { + return (DocumentReference) super.set(fieldName, value); + } + + @Override + public DocumentReference clone() { + return (DocumentReference) super.clone(); + } + +} 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 e73ec29a254..a09bb63ee48 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-rev20260510-2.0.0 - Developer Knowledge API v1alpha-rev20260510-2.0.0 + v1alpha-rev20260524-2.0.0 + Developer Knowledge API v1alpha-rev20260524-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 367a4255d06..f7e28d5a54d 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-rev20260510-2.0.0 + v1alpha-rev20260524-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-developerknowledge:v1alpha-rev20260510-2.0.0' + implementation 'com.google.apis:google-api-services-developerknowledge:v1alpha-rev20260524-2.0.0' } ```