com.google.api.services.dialogflow.v3.model.GoogleCloudDialogflowV2KnowledgeAssistAnswer Maven / Gradle / Ivy
The newest version!
/*
* 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.dialogflow.v3.model;
/**
* Represents a Knowledge Assist answer.
*
* 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 Dialogflow 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 GoogleCloudDialogflowV2KnowledgeAssistAnswer extends com.google.api.client.json.GenericJson {
/**
* The name of the answer record. Format: `projects//locations//answer Records/`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String answerRecord;
/**
* The query suggested based on the context. Suggestion is made only if it is different from the
* previous suggestion.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery suggestedQuery;
/**
* The answer generated for the suggested query. Whether or not an answer is generated depends on
* how confident we are about the generated query.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer suggestedQueryAnswer;
/**
* The name of the answer record. Format: `projects//locations//answer Records/`.
* @return value or {@code null} for none
*/
public java.lang.String getAnswerRecord() {
return answerRecord;
}
/**
* The name of the answer record. Format: `projects//locations//answer Records/`.
* @param answerRecord answerRecord or {@code null} for none
*/
public GoogleCloudDialogflowV2KnowledgeAssistAnswer setAnswerRecord(java.lang.String answerRecord) {
this.answerRecord = answerRecord;
return this;
}
/**
* The query suggested based on the context. Suggestion is made only if it is different from the
* previous suggestion.
* @return value or {@code null} for none
*/
public GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery getSuggestedQuery() {
return suggestedQuery;
}
/**
* The query suggested based on the context. Suggestion is made only if it is different from the
* previous suggestion.
* @param suggestedQuery suggestedQuery or {@code null} for none
*/
public GoogleCloudDialogflowV2KnowledgeAssistAnswer setSuggestedQuery(GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery suggestedQuery) {
this.suggestedQuery = suggestedQuery;
return this;
}
/**
* The answer generated for the suggested query. Whether or not an answer is generated depends on
* how confident we are about the generated query.
* @return value or {@code null} for none
*/
public GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer getSuggestedQueryAnswer() {
return suggestedQueryAnswer;
}
/**
* The answer generated for the suggested query. Whether or not an answer is generated depends on
* how confident we are about the generated query.
* @param suggestedQueryAnswer suggestedQueryAnswer or {@code null} for none
*/
public GoogleCloudDialogflowV2KnowledgeAssistAnswer setSuggestedQueryAnswer(GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer suggestedQueryAnswer) {
this.suggestedQueryAnswer = suggestedQueryAnswer;
return this;
}
@Override
public GoogleCloudDialogflowV2KnowledgeAssistAnswer set(String fieldName, Object value) {
return (GoogleCloudDialogflowV2KnowledgeAssistAnswer) super.set(fieldName, value);
}
@Override
public GoogleCloudDialogflowV2KnowledgeAssistAnswer clone() {
return (GoogleCloudDialogflowV2KnowledgeAssistAnswer) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy