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.ListThis 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 @@