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
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-developerknowledge</artifactId>
<version>v1-rev20260510-2.0.0</version>
<version>v1-rev20260524-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -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'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,20 +259,15 @@ 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<java.lang.String> names;

/** 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<java.lang.String> getNames() {
return names;
Expand All @@ -282,10 +277,7 @@ public java.util.List<java.lang.String> 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<java.lang.String> names) {
this.names = names;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-developerknowledge</artifactId>
<version>v1-rev20260510-2.0.0</version>
<name>Developer Knowledge API v1-rev20260510-2.0.0</name>
<version>v1-rev20260524-2.0.0</version>
<name>Developer Knowledge API v1-rev20260524-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-developerknowledge/v1/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-developerknowledge</artifactId>
<version>v1-rev20260510-2.0.0</version>
<version>v1-rev20260524-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -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'
}
```

Expand Down
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-developerknowledge</artifactId>
<version>v1alpha-rev20260510-2.0.0</version>
<version>v1alpha-rev20260524-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -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'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,20 +259,15 @@ 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<java.lang.String> names;

/** 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<java.lang.String> getNames() {
return names;
Expand All @@ -282,10 +277,7 @@ public java.util.List<java.lang.String> 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<java.lang.String> names) {
this.names = names;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<AnswerCitation> citations;

/**
* Output only. Contains references for the answer.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<AnswerReference> references;

/**
* Contains the text of the answer.
* @return value or {@code null} for none
Expand All @@ -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<AnswerCitation> getCitations() {
return citations;
}

/**
* Output only. Contains citations for the answer.
* @param citations citations or {@code null} for none
*/
public Answer setCitations(java.util.List<AnswerCitation> citations) {
this.citations = citations;
return this;
}

/**
* Output only. Contains references for the answer.
* @return value or {@code null} for none
*/
public java.util.List<AnswerReference> getReferences() {
return references;
}

/**
* Output only. Contains references for the answer.
* @param references references or {@code null} for none
*/
public Answer setReferences(java.util.List<AnswerReference> references) {
this.references = references;
return this;
}

@Override
public Answer set(String fieldName, Object value) {
return (Answer) super.set(fieldName, value);
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
*
* <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 Developer Knowledge 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 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<CitationSource> 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<CitationSource> 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<CitationSource> 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();
}

}
Original file line number Diff line number Diff line change
@@ -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.
*
* <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 Developer Knowledge 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 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();
}

}
Loading