com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse Maven / Gradle / Ivy
/*
* 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.contactcenterinsights.v1.model;
/**
* Response for Knowledge Assist. Contains suggested query and optionally includes an answer for the
* query.
*
* 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 Contact Center AI Insights 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 GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse extends com.google.api.client.json.GenericJson {
/**
* 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 GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery 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 GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer suggestedQueryAnswer;
/**
* 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 GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery 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 GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse setSuggestedQuery(GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery 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 GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer 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 GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse setSuggestedQueryAnswer(GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer suggestedQueryAnswer) {
this.suggestedQueryAnswer = suggestedQueryAnswer;
return this;
}
@Override
public GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse set(String fieldName, Object value) {
return (GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse) super.set(fieldName, value);
}
@Override
public GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse clone() {
return (GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy