@@ -47,6 +47,20 @@ public final class GoogleCloudRetailV2alphaConversationalSearchResponse extends
47
47
@ com .google .api .client .util .Key
48
48
private GoogleCloudRetailV2alphaConversationalSearchResponseConversationalFilteringResult conversationalFilteringResult ;
49
49
50
+ /**
51
+ * The conversational answer-based text response generated by the Server.
52
+ * The value may be {@code null}.
53
+ */
54
+ @ com .google .api .client .util .Key
55
+ private java .lang .String conversationalTextResponse ;
56
+
57
+ /**
58
+ * The conversational followup question generated for Intent refinement.
59
+ * The value may be {@code null}.
60
+ */
61
+ @ com .google .api .client .util .Key
62
+ private GoogleCloudRetailV2alphaConversationalSearchResponseFollowupQuestion followupQuestion ;
63
+
50
64
/**
51
65
* The proposed refined search queries. They can be used to fetch the relevant search results.
52
66
* When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be
@@ -56,6 +70,23 @@ public final class GoogleCloudRetailV2alphaConversationalSearchResponse extends
56
70
@ com .google .api .client .util .Key
57
71
private java .util .List <GoogleCloudRetailV2alphaConversationalSearchResponseRefinedSearch > refinedSearch ;
58
72
73
+ /**
74
+ * Output only. The state of the response generation.
75
+ * The value may be {@code null}.
76
+ */
77
+ @ com .google .api .client .util .Key
78
+ private java .lang .String state ;
79
+
80
+ /**
81
+ * The types Retail classifies the search query as. Supported values are: - "ADVERSARIAL" -
82
+ * "CHITCHAT" - "JAILBREAK" - "ORDER_SUPPORT" - "SIMPLE_PRODUCT_SEARCH" - "INTENT_REFINEMENT" -
83
+ * "PRODUCT_DETAILS" - "PRODUCT_COMPARISON" - "DEALS_AND_COUPONS" - "STORE_RELEVANT" -
84
+ * "BLOCKLISTED" - "BEST_PRODUCT" - "RETAIL_SUPPORT" - "DISABLED" clang-format off clang-format on
85
+ * The value may be {@code null}.
86
+ */
87
+ @ com .google .api .client .util .Key
88
+ private java .util .List <java .lang .String > userQueryTypes ;
89
+
59
90
/**
60
91
* Conversation UUID. This field will be stored in client side storage to maintain the
61
92
* conversation session with server and will be used for next search request's
@@ -96,6 +127,40 @@ public GoogleCloudRetailV2alphaConversationalSearchResponse setConversationalFil
96
127
return this ;
97
128
}
98
129
130
+ /**
131
+ * The conversational answer-based text response generated by the Server.
132
+ * @return value or {@code null} for none
133
+ */
134
+ public java .lang .String getConversationalTextResponse () {
135
+ return conversationalTextResponse ;
136
+ }
137
+
138
+ /**
139
+ * The conversational answer-based text response generated by the Server.
140
+ * @param conversationalTextResponse conversationalTextResponse or {@code null} for none
141
+ */
142
+ public GoogleCloudRetailV2alphaConversationalSearchResponse setConversationalTextResponse (java .lang .String conversationalTextResponse ) {
143
+ this .conversationalTextResponse = conversationalTextResponse ;
144
+ return this ;
145
+ }
146
+
147
+ /**
148
+ * The conversational followup question generated for Intent refinement.
149
+ * @return value or {@code null} for none
150
+ */
151
+ public GoogleCloudRetailV2alphaConversationalSearchResponseFollowupQuestion getFollowupQuestion () {
152
+ return followupQuestion ;
153
+ }
154
+
155
+ /**
156
+ * The conversational followup question generated for Intent refinement.
157
+ * @param followupQuestion followupQuestion or {@code null} for none
158
+ */
159
+ public GoogleCloudRetailV2alphaConversationalSearchResponse setFollowupQuestion (GoogleCloudRetailV2alphaConversationalSearchResponseFollowupQuestion followupQuestion ) {
160
+ this .followupQuestion = followupQuestion ;
161
+ return this ;
162
+ }
163
+
99
164
/**
100
165
* The proposed refined search queries. They can be used to fetch the relevant search results.
101
166
* When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be
@@ -117,6 +182,46 @@ public GoogleCloudRetailV2alphaConversationalSearchResponse setRefinedSearch(jav
117
182
return this ;
118
183
}
119
184
185
+ /**
186
+ * Output only. The state of the response generation.
187
+ * @return value or {@code null} for none
188
+ */
189
+ public java .lang .String getState () {
190
+ return state ;
191
+ }
192
+
193
+ /**
194
+ * Output only. The state of the response generation.
195
+ * @param state state or {@code null} for none
196
+ */
197
+ public GoogleCloudRetailV2alphaConversationalSearchResponse setState (java .lang .String state ) {
198
+ this .state = state ;
199
+ return this ;
200
+ }
201
+
202
+ /**
203
+ * The types Retail classifies the search query as. Supported values are: - "ADVERSARIAL" -
204
+ * "CHITCHAT" - "JAILBREAK" - "ORDER_SUPPORT" - "SIMPLE_PRODUCT_SEARCH" - "INTENT_REFINEMENT" -
205
+ * "PRODUCT_DETAILS" - "PRODUCT_COMPARISON" - "DEALS_AND_COUPONS" - "STORE_RELEVANT" -
206
+ * "BLOCKLISTED" - "BEST_PRODUCT" - "RETAIL_SUPPORT" - "DISABLED" clang-format off clang-format on
207
+ * @return value or {@code null} for none
208
+ */
209
+ public java .util .List <java .lang .String > getUserQueryTypes () {
210
+ return userQueryTypes ;
211
+ }
212
+
213
+ /**
214
+ * The types Retail classifies the search query as. Supported values are: - "ADVERSARIAL" -
215
+ * "CHITCHAT" - "JAILBREAK" - "ORDER_SUPPORT" - "SIMPLE_PRODUCT_SEARCH" - "INTENT_REFINEMENT" -
216
+ * "PRODUCT_DETAILS" - "PRODUCT_COMPARISON" - "DEALS_AND_COUPONS" - "STORE_RELEVANT" -
217
+ * "BLOCKLISTED" - "BEST_PRODUCT" - "RETAIL_SUPPORT" - "DISABLED" clang-format off clang-format on
218
+ * @param userQueryTypes userQueryTypes or {@code null} for none
219
+ */
220
+ public GoogleCloudRetailV2alphaConversationalSearchResponse setUserQueryTypes (java .util .List <java .lang .String > userQueryTypes ) {
221
+ this .userQueryTypes = userQueryTypes ;
222
+ return this ;
223
+ }
224
+
120
225
@ Override
121
226
public GoogleCloudRetailV2alphaConversationalSearchResponse set (String fieldName , Object value ) {
122
227
return (GoogleCloudRetailV2alphaConversationalSearchResponse ) super .set (fieldName , value );
0 commit comments