Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.3.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.3.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.3.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ class SearchRequest(proto.Message):

If this field is set to an invalid value other than these,
an INVALID_ARGUMENT error is returned.
experiment_id (str):
Optional. An ID for the experiment group this
search belongs to.
page_categories (MutableSequence[str]):
The categories associated with a category page. Must be set
for category navigation queries to achieve good search
Expand Down Expand Up @@ -459,7 +462,7 @@ class SearchRequest(proto.Message):

- Populate at most 100 key-value pairs per query.
- Only supports string keys and repeated string values.
- Duplcate keys are not allowed within a single query.
- Duplicate keys are not allowed within a single query.

Example: user_attributes: [ { key: "pets" value { values:
"dog" values: "cat" } }, { key: "state" value { values: "CA"
Expand Down Expand Up @@ -961,10 +964,11 @@ class QueryExpansionSpec(proto.Message):
Default to
[Condition.DISABLED][google.cloud.retail.v2alpha.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
pin_unexpanded_results (bool):
Whether to pin unexpanded results. If this
field is set to true, unexpanded products are
always at the top of the search results,
followed by the expanded results.
Whether to pin unexpanded results. The
default value is false. If this field is set to
true, unexpanded products are always at the top
of the search results, followed by the expanded
results.
"""

class Condition(proto.Enum):
Expand Down Expand Up @@ -1279,6 +1283,10 @@ class TileNavigationSpec(proto.Message):
proto.STRING,
number=17,
)
experiment_id: str = proto.Field(
proto.STRING,
number=18,
)
page_categories: MutableSequence[str] = proto.RepeatedField(
proto.STRING,
number=23,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.3.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-retail",
"version": "2.3.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-retail",
"version": "2.3.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-retail",
"version": "2.3.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class retailCallTransformer(cst.CSTTransformer):
'remove_local_inventories': ('product', 'place_ids', 'remove_time', 'allow_missing', ),
'replace_catalog_attribute': ('attributes_config', 'catalog_attribute', 'update_mask', ),
'resume_model': ('name', ),
'search': ('placement', 'visitor_id', 'branch', 'query', 'user_info', 'page_size', 'page_token', 'offset', 'filter', 'canonical_filter', 'order_by', 'facet_specs', 'dynamic_facet_spec', 'boost_spec', 'query_expansion_spec', 'relevance_threshold', 'variant_rollup_keys', 'page_categories', 'search_mode', 'personalization_spec', 'labels', 'spell_correction_spec', 'entity', 'conversational_search_spec', 'tile_navigation_spec', 'language_code', 'region_code', 'place_id', 'user_attributes', ),
'search': ('placement', 'visitor_id', 'branch', 'query', 'user_info', 'page_size', 'page_token', 'offset', 'filter', 'canonical_filter', 'order_by', 'facet_specs', 'dynamic_facet_spec', 'boost_spec', 'query_expansion_spec', 'relevance_threshold', 'variant_rollup_keys', 'experiment_id', 'page_categories', 'search_mode', 'personalization_spec', 'labels', 'spell_correction_spec', 'entity', 'conversational_search_spec', 'tile_navigation_spec', 'language_code', 'region_code', 'place_id', 'user_attributes', ),
'set_default_branch': ('catalog', 'branch_id', 'note', 'force', ),
'set_inventory': ('inventory', 'set_mask', 'set_time', 'allow_missing', ),
'tune_model': ('name', ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,7 @@ def test_search_non_empty_request_with_auto_populated_field():
filter="filter_value",
canonical_filter="canonical_filter_value",
order_by="order_by_value",
experiment_id="experiment_id_value",
entity="entity_value",
language_code="language_code_value",
region_code="region_code_value",
Expand All @@ -1197,6 +1198,7 @@ def test_search_non_empty_request_with_auto_populated_field():
filter="filter_value",
canonical_filter="canonical_filter_value",
order_by="order_by_value",
experiment_id="experiment_id_value",
entity="entity_value",
language_code="language_code_value",
region_code="region_code_value",
Expand Down
Loading