@@ -382,6 +382,11 @@ message SearchRequest {
382382 // If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
383383 string order_by = 8 ;
384384
385+ // Information about the end user.
386+ // Highly recommended for analytics. The user_agent string in UserInfo will
387+ // be used to deduce device_type for analytics.
388+ UserInfo user_info = 21 ;
389+
385390 // Facet specifications for faceted search. If empty, no facets are returned.
386391 //
387392 // A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT`
@@ -402,7 +407,6 @@ message SearchRequest {
402407 // * `search_type`: double. Default empty. Enables non-webpage searching
403408 // depending on the value. The only valid non-default value is 1,
404409 // which enables image searching.
405- // This field is ignored for other verticals.
406410 map <string , google.protobuf.Value > params = 11 ;
407411
408412 // The query expansion specification that specifies the conditions under which
@@ -432,6 +436,29 @@ message SearchRequest {
432436 // The content search spec that configs the desired behavior of content
433437 // search.
434438 ContentSearchSpec content_search_spec = 24 ;
439+
440+ // Whether to turn on safe search. This is only supported for
441+ // [ContentConfig.PUBLIC_WEBSITE][].
442+ bool safe_search = 20 ;
443+
444+ // The user labels applied to a resource must meet the following requirements:
445+ //
446+ // * Each resource can have multiple labels, up to a maximum of 64.
447+ // * Each label must be a key-value pair.
448+ // * Keys have a minimum length of 1 character and a maximum length of 63
449+ // characters and cannot be empty. Values can be empty and have a maximum
450+ // length of 63 characters.
451+ // * Keys and values can contain only lowercase letters, numeric characters,
452+ // underscores, and dashes. All characters must use UTF-8 encoding, and
453+ // international characters are allowed.
454+ // * The key portion of a label must be unique. However, you can use the same
455+ // key with multiple resources.
456+ // * Keys must start with a lowercase letter or international character.
457+ //
458+ // See [Google Cloud
459+ // Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
460+ // for more details.
461+ map <string , string > user_label = 22 ;
435462}
436463
437464// Response message for
0 commit comments