@@ -98,6 +98,10 @@ class SearchRequest(proto.Message):
98
98
99
99
If this field is unrecognizable, an ``INVALID_ARGUMENT`` is
100
100
returned.
101
+ user_info (google.cloud.discoveryengine_v1beta.types.UserInfo):
102
+ Information about the end user. Highly recommended for
103
+ analytics. The user_agent string in UserInfo will be used to
104
+ deduce device_type for analytics.
101
105
facet_specs (MutableSequence[google.cloud.discoveryengine_v1beta.types.SearchRequest.FacetSpec]):
102
106
Facet specifications for faceted search. If empty, no facets
103
107
are returned.
@@ -120,7 +124,7 @@ class SearchRequest(proto.Message):
120
124
- ``search_type``: double. Default empty. Enables
121
125
non-webpage searching depending on the value. The only
122
126
valid non-default value is 1, which enables image
123
- searching. This field is ignored for other verticals.
127
+ searching.
124
128
query_expansion_spec (google.cloud.discoveryengine_v1beta.types.SearchRequest.QueryExpansionSpec):
125
129
The query expansion specification that
126
130
specifies the conditions under which query
@@ -150,6 +154,31 @@ class SearchRequest(proto.Message):
150
154
content_search_spec (google.cloud.discoveryengine_v1beta.types.SearchRequest.ContentSearchSpec):
151
155
The content search spec that configs the
152
156
desired behavior of content search.
157
+ safe_search (bool):
158
+ Whether to turn on safe search. This is only supported for
159
+ [ContentConfig.PUBLIC_WEBSITE][].
160
+ user_label (MutableMapping[str, str]):
161
+ The user labels applied to a resource must meet the
162
+ following requirements:
163
+
164
+ - Each resource can have multiple labels, up to a maximum
165
+ of 64.
166
+ - Each label must be a key-value pair.
167
+ - Keys have a minimum length of 1 character and a maximum
168
+ length of 63 characters and cannot be empty. Values can
169
+ be empty and have a maximum length of 63 characters.
170
+ - Keys and values can contain only lowercase letters,
171
+ numeric characters, underscores, and dashes. All
172
+ characters must use UTF-8 encoding, and international
173
+ characters are allowed.
174
+ - The key portion of a label must be unique. However, you
175
+ can use the same key with multiple resources.
176
+ - Keys must start with a lowercase letter or international
177
+ character.
178
+
179
+ See `Google Cloud
180
+ Document <https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements>`__
181
+ for more details.
153
182
"""
154
183
155
184
class FacetSpec (proto .Message ):
@@ -589,6 +618,11 @@ class SummarySpec(proto.Message):
589
618
proto .STRING ,
590
619
number = 8 ,
591
620
)
621
+ user_info : common .UserInfo = proto .Field (
622
+ proto .MESSAGE ,
623
+ number = 21 ,
624
+ message = common .UserInfo ,
625
+ )
592
626
facet_specs : MutableSequence [FacetSpec ] = proto .RepeatedField (
593
627
proto .MESSAGE ,
594
628
number = 9 ,
@@ -624,6 +658,15 @@ class SummarySpec(proto.Message):
624
658
number = 24 ,
625
659
message = ContentSearchSpec ,
626
660
)
661
+ safe_search : bool = proto .Field (
662
+ proto .BOOL ,
663
+ number = 20 ,
664
+ )
665
+ user_label : MutableMapping [str , str ] = proto .MapField (
666
+ proto .STRING ,
667
+ proto .STRING ,
668
+ number = 22 ,
669
+ )
627
670
628
671
629
672
class SearchResponse (proto .Message ):
0 commit comments