com.google.api.services.retail.v2.model.GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer 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.retail.v2.model;
/**
* This field specifies the current user answer during the conversational search. This can be either
* user selected from suggested answers or user input plain text.
*
* 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 Vertex AI Search for Retail 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 GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer extends com.google.api.client.json.GenericJson {
/**
* This field specifies the selected attributes during the conversational search. This should be a
* subset of ConversationalSearchResult.suggested_answers.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer selectedAnswer;
/**
* This field specifies the incremental input text from the user during the conversational search.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String textAnswer;
/**
* This field specifies the selected attributes during the conversational search. This should be a
* subset of ConversationalSearchResult.suggested_answers.
* @return value or {@code null} for none
*/
public GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer getSelectedAnswer() {
return selectedAnswer;
}
/**
* This field specifies the selected attributes during the conversational search. This should be a
* subset of ConversationalSearchResult.suggested_answers.
* @param selectedAnswer selectedAnswer or {@code null} for none
*/
public GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer setSelectedAnswer(GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer selectedAnswer) {
this.selectedAnswer = selectedAnswer;
return this;
}
/**
* This field specifies the incremental input text from the user during the conversational search.
* @return value or {@code null} for none
*/
public java.lang.String getTextAnswer() {
return textAnswer;
}
/**
* This field specifies the incremental input text from the user during the conversational search.
* @param textAnswer textAnswer or {@code null} for none
*/
public GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer setTextAnswer(java.lang.String textAnswer) {
this.textAnswer = textAnswer;
return this;
}
@Override
public GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer set(String fieldName, Object value) {
return (GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer) super.set(fieldName, value);
}
@Override
public GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer clone() {
return (GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy