@@ -21,6 +21,7 @@ import "google/api/client.proto";
2121import "google/api/field_behavior.proto" ;
2222import "google/api/resource.proto" ;
2323import "google/cloud/retail/v2alpha/common.proto" ;
24+ import "google/cloud/retail/v2alpha/safety.proto" ;
2425import "google/cloud/retail/v2alpha/search_service.proto" ;
2526
2627option csharp_namespace = "Google.Cloud.Retail.V2Alpha" ;
@@ -126,6 +127,12 @@ message ConversationalSearchRequest {
126127 // Default value.
127128 MODE_UNSPECIFIED = 0 ;
128129
130+ // Disable Conversational Filtering.
131+ DISABLED = 1 ;
132+
133+ // Enabled Conversational Filtering with default Conversational Search.
134+ ENABLED = 2 ;
135+
129136 // Enabled Conversational Filtering without default Conversational Search.
130137 CONVERSATIONAL_FILTER_ONLY = 3 ;
131138 }
@@ -216,6 +223,30 @@ message ConversationalSearchRequest {
216223 // parameters.
217224 ConversationalFilteringSpec conversational_filtering_spec = 8
218225 [(google.api.field_behavior ) = OPTIONAL ];
226+
227+ // Optional. The user labels applied to a resource must meet the following
228+ // requirements:
229+ //
230+ // * Each resource can have multiple labels, up to a maximum of 64.
231+ // * Each label must be a key-value pair.
232+ // * Keys have a minimum length of 1 character and a maximum length of 63
233+ // characters and cannot be empty. Values can be empty and have a maximum
234+ // length of 63 characters.
235+ // * Keys and values can contain only lowercase letters, numeric characters,
236+ // underscores, and dashes. All characters must use UTF-8 encoding, and
237+ // international characters are allowed.
238+ // * The key portion of a label must be unique. However, you can use the same
239+ // key with multiple resources.
240+ // * Keys must start with a lowercase letter or international character.
241+ //
242+ // See [Google Cloud
243+ // Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
244+ // for more details.
245+ map <string , string > user_labels = 12 [(google.api.field_behavior ) = OPTIONAL ];
246+
247+ // Optional. The safety settings to be applied to the generated content.
248+ repeated SafetySetting safety_settings = 14
249+ [(google.api.field_behavior ) = OPTIONAL ];
219250}
220251
221252// Response message for
@@ -269,6 +300,46 @@ message ConversationalSearchResponse {
269300 AdditionalFilter additional_filter = 2 ;
270301 }
271302
303+ // The state of the response generation.
304+ enum State {
305+ // Unknown.
306+ STATE_UNSPECIFIED = 0 ;
307+
308+ // Response generation is being streamed.
309+ STREAMING = 1 ;
310+
311+ // Response generation has succeeded.
312+ SUCCEEDED = 2 ;
313+ }
314+
315+ // The types Retail classifies the search query as.
316+ //
317+ // Supported values are:
318+ //
319+ // - "ADVERSARIAL"
320+ // - "CHITCHAT"
321+ // - "JAILBREAK"
322+ // - "ORDER_SUPPORT"
323+ // - "SIMPLE_PRODUCT_SEARCH"
324+ // - "INTENT_REFINEMENT"
325+ // - "PRODUCT_DETAILS"
326+ // - "PRODUCT_COMPARISON"
327+ // - "DEALS_AND_COUPONS"
328+ // - "STORE_RELEVANT"
329+ // - "BLOCKLISTED"
330+ // - "BEST_PRODUCT"
331+ // - "RETAIL_SUPPORT"
332+ // - "DISABLED"
333+ // clang-format off
334+ // clang-format on
335+ repeated string user_query_types = 10 ;
336+
337+ // The conversational answer-based text response generated by the Server.
338+ string conversational_text_response = 2 ;
339+
340+ // The conversational followup question generated for Intent refinement.
341+ FollowupQuestion followup_question = 3 ;
342+
272343 // Conversation UUID. This field will be stored in client side storage to
273344 // maintain the conversation session with server and will be used for next
274345 // search request's
@@ -284,4 +355,7 @@ message ConversationalSearchResponse {
284355 // This field specifies all related information that is needed on client
285356 // side for UI rendering of conversational filtering search.
286357 ConversationalFilteringResult conversational_filtering_result = 7 ;
358+
359+ // Output only. The state of the response generation.
360+ State state = 9 [(google.api.field_behavior ) = OUTPUT_ONLY ];
287361}
0 commit comments