google-apis-retail_v2 0.120.0 → 0.122.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c47ca2051126a1c9fbf41a9dc1854b1cd35342f922d34fdac4e58cb25bb79c9
|
4
|
+
data.tar.gz: b6a0bef4fb435b8de5421e99d849468acca3c057f8a1ca5dfa02a912c07f8a25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5a338bc798aa2162f7853ae467d3184a343d9761d91f43305bbf21ed500af2dbff25427f9d3cfb01568c23c59c991015d984d76ac8b69ddc1c5732c63850ef2
|
7
|
+
data.tar.gz: 5d514a1cef78b38b75aefef0c69b473a9ed51cb7fa5c969873cad0823bd7216e088b18c6cea3e12e821a02661963948c5df5888c02432bf6535f58264e3f4fdb
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-retail_v2
|
2
2
|
|
3
|
+
### v0.122.0 (2025-09-21)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250911
|
6
|
+
|
7
|
+
### v0.121.0 (2025-07-27)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250717
|
10
|
+
|
3
11
|
### v0.120.0 (2025-07-13)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20250703
|
@@ -1587,6 +1587,414 @@ module Google
|
|
1587
1587
|
end
|
1588
1588
|
end
|
1589
1589
|
|
1590
|
+
# Request message for ConversationalSearchService.ConversationalSearch method.
|
1591
|
+
class GoogleCloudRetailV2ConversationalSearchRequest
|
1592
|
+
include Google::Apis::Core::Hashable
|
1593
|
+
|
1594
|
+
# Required. The branch resource name, such as `projects/*/locations/global/
|
1595
|
+
# catalogs/default_catalog/branches/0`. Use "default_branch" as the branch ID or
|
1596
|
+
# leave this field empty, to search products under the default branch.
|
1597
|
+
# Corresponds to the JSON property `branch`
|
1598
|
+
# @return [String]
|
1599
|
+
attr_accessor :branch
|
1600
|
+
|
1601
|
+
# Optional. This field specifies the conversation id, which maintains the state
|
1602
|
+
# of the conversation between client side and server side. Use the value from
|
1603
|
+
# the previous ConversationalSearchResponse.conversation_id. For the initial
|
1604
|
+
# request, this should be empty.
|
1605
|
+
# Corresponds to the JSON property `conversationId`
|
1606
|
+
# @return [String]
|
1607
|
+
attr_accessor :conversation_id
|
1608
|
+
|
1609
|
+
# This field specifies all conversational filtering related parameters addition
|
1610
|
+
# to conversational retail search.
|
1611
|
+
# Corresponds to the JSON property `conversationalFilteringSpec`
|
1612
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec]
|
1613
|
+
attr_accessor :conversational_filtering_spec
|
1614
|
+
|
1615
|
+
# Optional. The categories associated with a category page. Must be set for
|
1616
|
+
# category navigation queries to achieve good search quality. The format should
|
1617
|
+
# be the same as UserEvent.page_categories; To represent full path of category,
|
1618
|
+
# use '>' sign to separate different hierarchies. If '>' is part of the category
|
1619
|
+
# name, replace it with other character(s). Category pages include special pages
|
1620
|
+
# such as sales or promotions. For instance, a special sale page may have the
|
1621
|
+
# category hierarchy: "pageCategories" : ["Sales > 2017 Black Friday Deals"].
|
1622
|
+
# Corresponds to the JSON property `pageCategories`
|
1623
|
+
# @return [Array<String>]
|
1624
|
+
attr_accessor :page_categories
|
1625
|
+
|
1626
|
+
# Optional. Raw search query to be searched for. If this field is empty, the
|
1627
|
+
# request is considered a category browsing request.
|
1628
|
+
# Corresponds to the JSON property `query`
|
1629
|
+
# @return [String]
|
1630
|
+
attr_accessor :query
|
1631
|
+
|
1632
|
+
# Optional. The safety settings to be applied to the generated content.
|
1633
|
+
# Corresponds to the JSON property `safetySettings`
|
1634
|
+
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2SafetySetting>]
|
1635
|
+
attr_accessor :safety_settings
|
1636
|
+
|
1637
|
+
# Search parameters.
|
1638
|
+
# Corresponds to the JSON property `searchParams`
|
1639
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchRequestSearchParams]
|
1640
|
+
attr_accessor :search_params
|
1641
|
+
|
1642
|
+
# Information of an end user.
|
1643
|
+
# Corresponds to the JSON property `userInfo`
|
1644
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2UserInfo]
|
1645
|
+
attr_accessor :user_info
|
1646
|
+
|
1647
|
+
# Optional. The user labels applied to a resource must meet the following
|
1648
|
+
# requirements: * Each resource can have multiple labels, up to a maximum of 64.
|
1649
|
+
# * Each label must be a key-value pair. * Keys have a minimum length of 1
|
1650
|
+
# character and a maximum length of 63 characters and cannot be empty. Values
|
1651
|
+
# can be empty and have a maximum length of 63 characters. * Keys and values can
|
1652
|
+
# contain only lowercase letters, numeric characters, underscores, and dashes.
|
1653
|
+
# All characters must use UTF-8 encoding, and international characters are
|
1654
|
+
# allowed. * The key portion of a label must be unique. However, you can use the
|
1655
|
+
# same key with multiple resources. * Keys must start with a lowercase letter or
|
1656
|
+
# international character. See [Google Cloud Document](https://cloud.google.com/
|
1657
|
+
# resource-manager/docs/creating-managing-labels#requirements) for more details.
|
1658
|
+
# Corresponds to the JSON property `userLabels`
|
1659
|
+
# @return [Hash<String,String>]
|
1660
|
+
attr_accessor :user_labels
|
1661
|
+
|
1662
|
+
# Required. A unique identifier for tracking visitors. For example, this could
|
1663
|
+
# be implemented with an HTTP cookie, which should be able to uniquely identify
|
1664
|
+
# a visitor on a single device. This unique identifier should not change if the
|
1665
|
+
# visitor logs in or out of the website. This should be the same identifier as
|
1666
|
+
# UserEvent.visitor_id. The field must be a UTF-8 encoded string with a length
|
1667
|
+
# limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
1668
|
+
# Corresponds to the JSON property `visitorId`
|
1669
|
+
# @return [String]
|
1670
|
+
attr_accessor :visitor_id
|
1671
|
+
|
1672
|
+
def initialize(**args)
|
1673
|
+
update!(**args)
|
1674
|
+
end
|
1675
|
+
|
1676
|
+
# Update properties of this object
|
1677
|
+
def update!(**args)
|
1678
|
+
@branch = args[:branch] if args.key?(:branch)
|
1679
|
+
@conversation_id = args[:conversation_id] if args.key?(:conversation_id)
|
1680
|
+
@conversational_filtering_spec = args[:conversational_filtering_spec] if args.key?(:conversational_filtering_spec)
|
1681
|
+
@page_categories = args[:page_categories] if args.key?(:page_categories)
|
1682
|
+
@query = args[:query] if args.key?(:query)
|
1683
|
+
@safety_settings = args[:safety_settings] if args.key?(:safety_settings)
|
1684
|
+
@search_params = args[:search_params] if args.key?(:search_params)
|
1685
|
+
@user_info = args[:user_info] if args.key?(:user_info)
|
1686
|
+
@user_labels = args[:user_labels] if args.key?(:user_labels)
|
1687
|
+
@visitor_id = args[:visitor_id] if args.key?(:visitor_id)
|
1688
|
+
end
|
1689
|
+
end
|
1690
|
+
|
1691
|
+
# This field specifies all conversational filtering related parameters addition
|
1692
|
+
# to conversational retail search.
|
1693
|
+
class GoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec
|
1694
|
+
include Google::Apis::Core::Hashable
|
1695
|
+
|
1696
|
+
# Optional. Mode to control Conversational Filtering. Defaults to Mode.DISABLED
|
1697
|
+
# if it's unset.
|
1698
|
+
# Corresponds to the JSON property `conversationalFilteringMode`
|
1699
|
+
# @return [String]
|
1700
|
+
attr_accessor :conversational_filtering_mode
|
1701
|
+
|
1702
|
+
# Optional. This field is deprecated. Please use ConversationalFilteringSpec.
|
1703
|
+
# conversational_filtering_mode instead.
|
1704
|
+
# Corresponds to the JSON property `enableConversationalFiltering`
|
1705
|
+
# @return [Boolean]
|
1706
|
+
attr_accessor :enable_conversational_filtering
|
1707
|
+
alias_method :enable_conversational_filtering?, :enable_conversational_filtering
|
1708
|
+
|
1709
|
+
# This field specifies the current user answer during the conversational
|
1710
|
+
# filtering search. This can be either user selected from suggested answers or
|
1711
|
+
# user input plain text.
|
1712
|
+
# Corresponds to the JSON property `userAnswer`
|
1713
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchRequestUserAnswer]
|
1714
|
+
attr_accessor :user_answer
|
1715
|
+
|
1716
|
+
def initialize(**args)
|
1717
|
+
update!(**args)
|
1718
|
+
end
|
1719
|
+
|
1720
|
+
# Update properties of this object
|
1721
|
+
def update!(**args)
|
1722
|
+
@conversational_filtering_mode = args[:conversational_filtering_mode] if args.key?(:conversational_filtering_mode)
|
1723
|
+
@enable_conversational_filtering = args[:enable_conversational_filtering] if args.key?(:enable_conversational_filtering)
|
1724
|
+
@user_answer = args[:user_answer] if args.key?(:user_answer)
|
1725
|
+
end
|
1726
|
+
end
|
1727
|
+
|
1728
|
+
# Search parameters.
|
1729
|
+
class GoogleCloudRetailV2ConversationalSearchRequestSearchParams
|
1730
|
+
include Google::Apis::Core::Hashable
|
1731
|
+
|
1732
|
+
# Boost specification to boost certain items.
|
1733
|
+
# Corresponds to the JSON property `boostSpec`
|
1734
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpec]
|
1735
|
+
attr_accessor :boost_spec
|
1736
|
+
|
1737
|
+
# Optional. The canonical filter string to restrict search results. The syntax
|
1738
|
+
# of the canonical filter string is the same as SearchRequest.canonical_filter.
|
1739
|
+
# Corresponds to the JSON property `canonicalFilter`
|
1740
|
+
# @return [String]
|
1741
|
+
attr_accessor :canonical_filter
|
1742
|
+
|
1743
|
+
# Optional. The filter string to restrict search results. The syntax of the
|
1744
|
+
# filter string is the same as SearchRequest.filter.
|
1745
|
+
# Corresponds to the JSON property `filter`
|
1746
|
+
# @return [String]
|
1747
|
+
attr_accessor :filter
|
1748
|
+
|
1749
|
+
# Optional. The sort string to specify the sorting of search results. The syntax
|
1750
|
+
# of the sort string is the same as SearchRequest.sort.
|
1751
|
+
# Corresponds to the JSON property `sortBy`
|
1752
|
+
# @return [String]
|
1753
|
+
attr_accessor :sort_by
|
1754
|
+
|
1755
|
+
def initialize(**args)
|
1756
|
+
update!(**args)
|
1757
|
+
end
|
1758
|
+
|
1759
|
+
# Update properties of this object
|
1760
|
+
def update!(**args)
|
1761
|
+
@boost_spec = args[:boost_spec] if args.key?(:boost_spec)
|
1762
|
+
@canonical_filter = args[:canonical_filter] if args.key?(:canonical_filter)
|
1763
|
+
@filter = args[:filter] if args.key?(:filter)
|
1764
|
+
@sort_by = args[:sort_by] if args.key?(:sort_by)
|
1765
|
+
end
|
1766
|
+
end
|
1767
|
+
|
1768
|
+
# This field specifies the current user answer during the conversational
|
1769
|
+
# filtering search. This can be either user selected from suggested answers or
|
1770
|
+
# user input plain text.
|
1771
|
+
class GoogleCloudRetailV2ConversationalSearchRequestUserAnswer
|
1772
|
+
include Google::Apis::Core::Hashable
|
1773
|
+
|
1774
|
+
# This field specifies the selected answers during the conversational search.
|
1775
|
+
# Corresponds to the JSON property `selectedAnswer`
|
1776
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer]
|
1777
|
+
attr_accessor :selected_answer
|
1778
|
+
|
1779
|
+
# This field specifies the incremental input text from the user during the
|
1780
|
+
# conversational search.
|
1781
|
+
# Corresponds to the JSON property `textAnswer`
|
1782
|
+
# @return [String]
|
1783
|
+
attr_accessor :text_answer
|
1784
|
+
|
1785
|
+
def initialize(**args)
|
1786
|
+
update!(**args)
|
1787
|
+
end
|
1788
|
+
|
1789
|
+
# Update properties of this object
|
1790
|
+
def update!(**args)
|
1791
|
+
@selected_answer = args[:selected_answer] if args.key?(:selected_answer)
|
1792
|
+
@text_answer = args[:text_answer] if args.key?(:text_answer)
|
1793
|
+
end
|
1794
|
+
end
|
1795
|
+
|
1796
|
+
# This field specifies the selected answers during the conversational search.
|
1797
|
+
class GoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer
|
1798
|
+
include Google::Apis::Core::Hashable
|
1799
|
+
|
1800
|
+
# Product attribute which structured by an attribute name and value. This
|
1801
|
+
# structure is used in conversational search filters and answers. For example,
|
1802
|
+
# if we have `name=color` and `value=red`, this means that the color is `red`.
|
1803
|
+
# Corresponds to the JSON property `productAttributeValue`
|
1804
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2ProductAttributeValue]
|
1805
|
+
attr_accessor :product_attribute_value
|
1806
|
+
|
1807
|
+
def initialize(**args)
|
1808
|
+
update!(**args)
|
1809
|
+
end
|
1810
|
+
|
1811
|
+
# Update properties of this object
|
1812
|
+
def update!(**args)
|
1813
|
+
@product_attribute_value = args[:product_attribute_value] if args.key?(:product_attribute_value)
|
1814
|
+
end
|
1815
|
+
end
|
1816
|
+
|
1817
|
+
# Response message for ConversationalSearchService.ConversationalSearch method.
|
1818
|
+
class GoogleCloudRetailV2ConversationalSearchResponse
|
1819
|
+
include Google::Apis::Core::Hashable
|
1820
|
+
|
1821
|
+
# Conversation UUID. This field will be stored in client side storage to
|
1822
|
+
# maintain the conversation session with server and will be used for next search
|
1823
|
+
# request's ConversationalSearchRequest.conversation_id to restore conversation
|
1824
|
+
# state in server.
|
1825
|
+
# Corresponds to the JSON property `conversationId`
|
1826
|
+
# @return [String]
|
1827
|
+
attr_accessor :conversation_id
|
1828
|
+
|
1829
|
+
# This field specifies all related information that is needed on client side for
|
1830
|
+
# UI rendering of conversational filtering search.
|
1831
|
+
# Corresponds to the JSON property `conversationalFilteringResult`
|
1832
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult]
|
1833
|
+
attr_accessor :conversational_filtering_result
|
1834
|
+
|
1835
|
+
# The conversational answer-based text response generated by the Server.
|
1836
|
+
# Corresponds to the JSON property `conversationalTextResponse`
|
1837
|
+
# @return [String]
|
1838
|
+
attr_accessor :conversational_text_response
|
1839
|
+
|
1840
|
+
# The conversational followup question generated for Intent refinement.
|
1841
|
+
# Corresponds to the JSON property `followupQuestion`
|
1842
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion]
|
1843
|
+
attr_accessor :followup_question
|
1844
|
+
|
1845
|
+
# The proposed refined search queries. They can be used to fetch the relevant
|
1846
|
+
# search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query
|
1847
|
+
# from search response will be populated here.
|
1848
|
+
# Corresponds to the JSON property `refinedSearch`
|
1849
|
+
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponseRefinedSearch>]
|
1850
|
+
attr_accessor :refined_search
|
1851
|
+
|
1852
|
+
# Output only. The state of the response generation.
|
1853
|
+
# Corresponds to the JSON property `state`
|
1854
|
+
# @return [String]
|
1855
|
+
attr_accessor :state
|
1856
|
+
|
1857
|
+
# The types Retail classifies the search query as. Supported values are: - "
|
1858
|
+
# ORDER_SUPPORT" - "SIMPLE_PRODUCT_SEARCH" - "INTENT_REFINEMENT" - "
|
1859
|
+
# PRODUCT_DETAILS" - "PRODUCT_COMPARISON" - "DEALS_AND_COUPONS" - "
|
1860
|
+
# STORE_RELEVANT" - "BLOCKLISTED" - "BEST_PRODUCT" - "RETAIL_SUPPORT" - "
|
1861
|
+
# DISABLED"
|
1862
|
+
# Corresponds to the JSON property `userQueryTypes`
|
1863
|
+
# @return [Array<String>]
|
1864
|
+
attr_accessor :user_query_types
|
1865
|
+
|
1866
|
+
def initialize(**args)
|
1867
|
+
update!(**args)
|
1868
|
+
end
|
1869
|
+
|
1870
|
+
# Update properties of this object
|
1871
|
+
def update!(**args)
|
1872
|
+
@conversation_id = args[:conversation_id] if args.key?(:conversation_id)
|
1873
|
+
@conversational_filtering_result = args[:conversational_filtering_result] if args.key?(:conversational_filtering_result)
|
1874
|
+
@conversational_text_response = args[:conversational_text_response] if args.key?(:conversational_text_response)
|
1875
|
+
@followup_question = args[:followup_question] if args.key?(:followup_question)
|
1876
|
+
@refined_search = args[:refined_search] if args.key?(:refined_search)
|
1877
|
+
@state = args[:state] if args.key?(:state)
|
1878
|
+
@user_query_types = args[:user_query_types] if args.key?(:user_query_types)
|
1879
|
+
end
|
1880
|
+
end
|
1881
|
+
|
1882
|
+
# This field specifies all related information that is needed on client side for
|
1883
|
+
# UI rendering of conversational filtering search.
|
1884
|
+
class GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult
|
1885
|
+
include Google::Apis::Core::Hashable
|
1886
|
+
|
1887
|
+
# Additional filter that client side need to apply.
|
1888
|
+
# Corresponds to the JSON property `additionalFilter`
|
1889
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter]
|
1890
|
+
attr_accessor :additional_filter
|
1891
|
+
|
1892
|
+
# The conversational followup question generated for Intent refinement.
|
1893
|
+
# Corresponds to the JSON property `followupQuestion`
|
1894
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion]
|
1895
|
+
attr_accessor :followup_question
|
1896
|
+
|
1897
|
+
def initialize(**args)
|
1898
|
+
update!(**args)
|
1899
|
+
end
|
1900
|
+
|
1901
|
+
# Update properties of this object
|
1902
|
+
def update!(**args)
|
1903
|
+
@additional_filter = args[:additional_filter] if args.key?(:additional_filter)
|
1904
|
+
@followup_question = args[:followup_question] if args.key?(:followup_question)
|
1905
|
+
end
|
1906
|
+
end
|
1907
|
+
|
1908
|
+
# Additional filter that client side need to apply.
|
1909
|
+
class GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter
|
1910
|
+
include Google::Apis::Core::Hashable
|
1911
|
+
|
1912
|
+
# Product attribute which structured by an attribute name and value. This
|
1913
|
+
# structure is used in conversational search filters and answers. For example,
|
1914
|
+
# if we have `name=color` and `value=red`, this means that the color is `red`.
|
1915
|
+
# Corresponds to the JSON property `productAttributeValue`
|
1916
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2ProductAttributeValue]
|
1917
|
+
attr_accessor :product_attribute_value
|
1918
|
+
|
1919
|
+
def initialize(**args)
|
1920
|
+
update!(**args)
|
1921
|
+
end
|
1922
|
+
|
1923
|
+
# Update properties of this object
|
1924
|
+
def update!(**args)
|
1925
|
+
@product_attribute_value = args[:product_attribute_value] if args.key?(:product_attribute_value)
|
1926
|
+
end
|
1927
|
+
end
|
1928
|
+
|
1929
|
+
# The conversational followup question generated for Intent refinement.
|
1930
|
+
class GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion
|
1931
|
+
include Google::Apis::Core::Hashable
|
1932
|
+
|
1933
|
+
# The conversational followup question generated for Intent refinement.
|
1934
|
+
# Corresponds to the JSON property `followupQuestion`
|
1935
|
+
# @return [String]
|
1936
|
+
attr_accessor :followup_question
|
1937
|
+
|
1938
|
+
# The answer options provided to client for the follow-up question.
|
1939
|
+
# Corresponds to the JSON property `suggestedAnswers`
|
1940
|
+
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer>]
|
1941
|
+
attr_accessor :suggested_answers
|
1942
|
+
|
1943
|
+
def initialize(**args)
|
1944
|
+
update!(**args)
|
1945
|
+
end
|
1946
|
+
|
1947
|
+
# Update properties of this object
|
1948
|
+
def update!(**args)
|
1949
|
+
@followup_question = args[:followup_question] if args.key?(:followup_question)
|
1950
|
+
@suggested_answers = args[:suggested_answers] if args.key?(:suggested_answers)
|
1951
|
+
end
|
1952
|
+
end
|
1953
|
+
|
1954
|
+
# Suggested answers to the follow-up question. If it's numerical attribute, only
|
1955
|
+
# ProductAttributeInterval will be set. If it's textual attribute, only
|
1956
|
+
# productAttributeValue will be set.
|
1957
|
+
class GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer
|
1958
|
+
include Google::Apis::Core::Hashable
|
1959
|
+
|
1960
|
+
# Product attribute which structured by an attribute name and value. This
|
1961
|
+
# structure is used in conversational search filters and answers. For example,
|
1962
|
+
# if we have `name=color` and `value=red`, this means that the color is `red`.
|
1963
|
+
# Corresponds to the JSON property `productAttributeValue`
|
1964
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2ProductAttributeValue]
|
1965
|
+
attr_accessor :product_attribute_value
|
1966
|
+
|
1967
|
+
def initialize(**args)
|
1968
|
+
update!(**args)
|
1969
|
+
end
|
1970
|
+
|
1971
|
+
# Update properties of this object
|
1972
|
+
def update!(**args)
|
1973
|
+
@product_attribute_value = args[:product_attribute_value] if args.key?(:product_attribute_value)
|
1974
|
+
end
|
1975
|
+
end
|
1976
|
+
|
1977
|
+
# The proposed refined search for intent-refinement/bundled shopping
|
1978
|
+
# conversation. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query
|
1979
|
+
# from search response will be populated here.
|
1980
|
+
class GoogleCloudRetailV2ConversationalSearchResponseRefinedSearch
|
1981
|
+
include Google::Apis::Core::Hashable
|
1982
|
+
|
1983
|
+
# The query to be used for search.
|
1984
|
+
# Corresponds to the JSON property `query`
|
1985
|
+
# @return [String]
|
1986
|
+
attr_accessor :query
|
1987
|
+
|
1988
|
+
def initialize(**args)
|
1989
|
+
update!(**args)
|
1990
|
+
end
|
1991
|
+
|
1992
|
+
# Update properties of this object
|
1993
|
+
def update!(**args)
|
1994
|
+
@query = args[:query] if args.key?(:query)
|
1995
|
+
end
|
1996
|
+
end
|
1997
|
+
|
1590
1998
|
# Metadata associated with a create operation.
|
1591
1999
|
class GoogleCloudRetailV2CreateModelMetadata
|
1592
2000
|
include Google::Apis::Core::Hashable
|
@@ -3078,6 +3486,57 @@ module Google
|
|
3078
3486
|
end
|
3079
3487
|
end
|
3080
3488
|
|
3489
|
+
# Detailed panel information associated with a user event.
|
3490
|
+
class GoogleCloudRetailV2PanelInfo
|
3491
|
+
include Google::Apis::Core::Hashable
|
3492
|
+
|
3493
|
+
# Optional. The attribution token of the panel.
|
3494
|
+
# Corresponds to the JSON property `attributionToken`
|
3495
|
+
# @return [String]
|
3496
|
+
attr_accessor :attribution_token
|
3497
|
+
|
3498
|
+
# Optional. The display name of the panel.
|
3499
|
+
# Corresponds to the JSON property `displayName`
|
3500
|
+
# @return [String]
|
3501
|
+
attr_accessor :display_name
|
3502
|
+
|
3503
|
+
# Required. The panel ID.
|
3504
|
+
# Corresponds to the JSON property `panelId`
|
3505
|
+
# @return [String]
|
3506
|
+
attr_accessor :panel_id
|
3507
|
+
|
3508
|
+
# Optional. The ordered position of the panel, if shown to the user with other
|
3509
|
+
# panels. If set, then total_panels must also be set.
|
3510
|
+
# Corresponds to the JSON property `panelPosition`
|
3511
|
+
# @return [Fixnum]
|
3512
|
+
attr_accessor :panel_position
|
3513
|
+
|
3514
|
+
# Optional. The product details associated with the panel.
|
3515
|
+
# Corresponds to the JSON property `productDetails`
|
3516
|
+
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2ProductDetail>]
|
3517
|
+
attr_accessor :product_details
|
3518
|
+
|
3519
|
+
# Optional. The total number of panels, including this one, shown to the user.
|
3520
|
+
# Must be set if panel_position is set.
|
3521
|
+
# Corresponds to the JSON property `totalPanels`
|
3522
|
+
# @return [Fixnum]
|
3523
|
+
attr_accessor :total_panels
|
3524
|
+
|
3525
|
+
def initialize(**args)
|
3526
|
+
update!(**args)
|
3527
|
+
end
|
3528
|
+
|
3529
|
+
# Update properties of this object
|
3530
|
+
def update!(**args)
|
3531
|
+
@attribution_token = args[:attribution_token] if args.key?(:attribution_token)
|
3532
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
3533
|
+
@panel_id = args[:panel_id] if args.key?(:panel_id)
|
3534
|
+
@panel_position = args[:panel_position] if args.key?(:panel_position)
|
3535
|
+
@product_details = args[:product_details] if args.key?(:product_details)
|
3536
|
+
@total_panels = args[:total_panels] if args.key?(:total_panels)
|
3537
|
+
end
|
3538
|
+
end
|
3539
|
+
|
3081
3540
|
# Request for pausing training of a model.
|
3082
3541
|
class GoogleCloudRetailV2PauseModelRequest
|
3083
3542
|
include Google::Apis::Core::Hashable
|
@@ -5061,6 +5520,38 @@ module Google
|
|
5061
5520
|
end
|
5062
5521
|
end
|
5063
5522
|
|
5523
|
+
# Safety settings.
|
5524
|
+
class GoogleCloudRetailV2SafetySetting
|
5525
|
+
include Google::Apis::Core::Hashable
|
5526
|
+
|
5527
|
+
# Harm category.
|
5528
|
+
# Corresponds to the JSON property `category`
|
5529
|
+
# @return [String]
|
5530
|
+
attr_accessor :category
|
5531
|
+
|
5532
|
+
# Optional. Specify if the threshold is used for probability or severity score.
|
5533
|
+
# If not specified, the threshold is used for probability score.
|
5534
|
+
# Corresponds to the JSON property `method`
|
5535
|
+
# @return [String]
|
5536
|
+
attr_accessor :method_prop
|
5537
|
+
|
5538
|
+
# The harm block threshold.
|
5539
|
+
# Corresponds to the JSON property `threshold`
|
5540
|
+
# @return [String]
|
5541
|
+
attr_accessor :threshold
|
5542
|
+
|
5543
|
+
def initialize(**args)
|
5544
|
+
update!(**args)
|
5545
|
+
end
|
5546
|
+
|
5547
|
+
# Update properties of this object
|
5548
|
+
def update!(**args)
|
5549
|
+
@category = args[:category] if args.key?(:category)
|
5550
|
+
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
5551
|
+
@threshold = args[:threshold] if args.key?(:threshold)
|
5552
|
+
end
|
5553
|
+
end
|
5554
|
+
|
5064
5555
|
# Request message for SearchService.Search method.
|
5065
5556
|
class GoogleCloudRetailV2SearchRequest
|
5066
5557
|
include Google::Apis::Core::Hashable
|
@@ -6798,6 +7289,12 @@ module Google
|
|
6798
7289
|
# @return [String]
|
6799
7290
|
attr_accessor :page_view_id
|
6800
7291
|
|
7292
|
+
# Optional. List of panels associated with this event. Used for panel-level
|
7293
|
+
# impression data.
|
7294
|
+
# Corresponds to the JSON property `panels`
|
7295
|
+
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2PanelInfo>]
|
7296
|
+
attr_accessor :panels
|
7297
|
+
|
6801
7298
|
# The main product details related to the event. This field is optional except
|
6802
7299
|
# for the following event types: * `add-to-cart` * `detail-page-view` * `
|
6803
7300
|
# purchase-complete` In a `search` event, this field represents the products
|
@@ -6885,6 +7382,7 @@ module Google
|
|
6885
7382
|
@order_by = args[:order_by] if args.key?(:order_by)
|
6886
7383
|
@page_categories = args[:page_categories] if args.key?(:page_categories)
|
6887
7384
|
@page_view_id = args[:page_view_id] if args.key?(:page_view_id)
|
7385
|
+
@panels = args[:panels] if args.key?(:panels)
|
6888
7386
|
@product_details = args[:product_details] if args.key?(:product_details)
|
6889
7387
|
@purchase_transaction = args[:purchase_transaction] if args.key?(:purchase_transaction)
|
6890
7388
|
@referrer_uri = args[:referrer_uri] if args.key?(:referrer_uri)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RetailV2
|
18
18
|
# Version of the google-apis-retail_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.122.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250911"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -274,6 +274,72 @@ module Google
|
|
274
274
|
include Google::Apis::Core::JsonObjectSupport
|
275
275
|
end
|
276
276
|
|
277
|
+
class GoogleCloudRetailV2ConversationalSearchRequest
|
278
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
279
|
+
|
280
|
+
include Google::Apis::Core::JsonObjectSupport
|
281
|
+
end
|
282
|
+
|
283
|
+
class GoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec
|
284
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
|
+
|
286
|
+
include Google::Apis::Core::JsonObjectSupport
|
287
|
+
end
|
288
|
+
|
289
|
+
class GoogleCloudRetailV2ConversationalSearchRequestSearchParams
|
290
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
291
|
+
|
292
|
+
include Google::Apis::Core::JsonObjectSupport
|
293
|
+
end
|
294
|
+
|
295
|
+
class GoogleCloudRetailV2ConversationalSearchRequestUserAnswer
|
296
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
|
+
|
298
|
+
include Google::Apis::Core::JsonObjectSupport
|
299
|
+
end
|
300
|
+
|
301
|
+
class GoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer
|
302
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
303
|
+
|
304
|
+
include Google::Apis::Core::JsonObjectSupport
|
305
|
+
end
|
306
|
+
|
307
|
+
class GoogleCloudRetailV2ConversationalSearchResponse
|
308
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
309
|
+
|
310
|
+
include Google::Apis::Core::JsonObjectSupport
|
311
|
+
end
|
312
|
+
|
313
|
+
class GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult
|
314
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
315
|
+
|
316
|
+
include Google::Apis::Core::JsonObjectSupport
|
317
|
+
end
|
318
|
+
|
319
|
+
class GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter
|
320
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
|
+
|
322
|
+
include Google::Apis::Core::JsonObjectSupport
|
323
|
+
end
|
324
|
+
|
325
|
+
class GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion
|
326
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
327
|
+
|
328
|
+
include Google::Apis::Core::JsonObjectSupport
|
329
|
+
end
|
330
|
+
|
331
|
+
class GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer
|
332
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
333
|
+
|
334
|
+
include Google::Apis::Core::JsonObjectSupport
|
335
|
+
end
|
336
|
+
|
337
|
+
class GoogleCloudRetailV2ConversationalSearchResponseRefinedSearch
|
338
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
339
|
+
|
340
|
+
include Google::Apis::Core::JsonObjectSupport
|
341
|
+
end
|
342
|
+
|
277
343
|
class GoogleCloudRetailV2CreateModelMetadata
|
278
344
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
279
345
|
|
@@ -538,6 +604,12 @@ module Google
|
|
538
604
|
include Google::Apis::Core::JsonObjectSupport
|
539
605
|
end
|
540
606
|
|
607
|
+
class GoogleCloudRetailV2PanelInfo
|
608
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
609
|
+
|
610
|
+
include Google::Apis::Core::JsonObjectSupport
|
611
|
+
end
|
612
|
+
|
541
613
|
class GoogleCloudRetailV2PauseModelRequest
|
542
614
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
543
615
|
|
@@ -838,6 +910,12 @@ module Google
|
|
838
910
|
include Google::Apis::Core::JsonObjectSupport
|
839
911
|
end
|
840
912
|
|
913
|
+
class GoogleCloudRetailV2SafetySetting
|
914
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
915
|
+
|
916
|
+
include Google::Apis::Core::JsonObjectSupport
|
917
|
+
end
|
918
|
+
|
841
919
|
class GoogleCloudRetailV2SearchRequest
|
842
920
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
843
921
|
|
@@ -1994,6 +2072,122 @@ module Google
|
|
1994
2072
|
end
|
1995
2073
|
end
|
1996
2074
|
|
2075
|
+
class GoogleCloudRetailV2ConversationalSearchRequest
|
2076
|
+
# @private
|
2077
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2078
|
+
property :branch, as: 'branch'
|
2079
|
+
property :conversation_id, as: 'conversationId'
|
2080
|
+
property :conversational_filtering_spec, as: 'conversationalFilteringSpec', class: Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec::Representation
|
2081
|
+
|
2082
|
+
collection :page_categories, as: 'pageCategories'
|
2083
|
+
property :query, as: 'query'
|
2084
|
+
collection :safety_settings, as: 'safetySettings', class: Google::Apis::RetailV2::GoogleCloudRetailV2SafetySetting, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SafetySetting::Representation
|
2085
|
+
|
2086
|
+
property :search_params, as: 'searchParams', class: Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchRequestSearchParams, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchRequestSearchParams::Representation
|
2087
|
+
|
2088
|
+
property :user_info, as: 'userInfo', class: Google::Apis::RetailV2::GoogleCloudRetailV2UserInfo, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2UserInfo::Representation
|
2089
|
+
|
2090
|
+
hash :user_labels, as: 'userLabels'
|
2091
|
+
property :visitor_id, as: 'visitorId'
|
2092
|
+
end
|
2093
|
+
end
|
2094
|
+
|
2095
|
+
class GoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec
|
2096
|
+
# @private
|
2097
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2098
|
+
property :conversational_filtering_mode, as: 'conversationalFilteringMode'
|
2099
|
+
property :enable_conversational_filtering, as: 'enableConversationalFiltering'
|
2100
|
+
property :user_answer, as: 'userAnswer', class: Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchRequestUserAnswer, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchRequestUserAnswer::Representation
|
2101
|
+
|
2102
|
+
end
|
2103
|
+
end
|
2104
|
+
|
2105
|
+
class GoogleCloudRetailV2ConversationalSearchRequestSearchParams
|
2106
|
+
# @private
|
2107
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2108
|
+
property :boost_spec, as: 'boostSpec', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpec::Representation
|
2109
|
+
|
2110
|
+
property :canonical_filter, as: 'canonicalFilter'
|
2111
|
+
property :filter, as: 'filter'
|
2112
|
+
property :sort_by, as: 'sortBy'
|
2113
|
+
end
|
2114
|
+
end
|
2115
|
+
|
2116
|
+
class GoogleCloudRetailV2ConversationalSearchRequestUserAnswer
|
2117
|
+
# @private
|
2118
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2119
|
+
property :selected_answer, as: 'selectedAnswer', class: Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer::Representation
|
2120
|
+
|
2121
|
+
property :text_answer, as: 'textAnswer'
|
2122
|
+
end
|
2123
|
+
end
|
2124
|
+
|
2125
|
+
class GoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer
|
2126
|
+
# @private
|
2127
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2128
|
+
property :product_attribute_value, as: 'productAttributeValue', class: Google::Apis::RetailV2::GoogleCloudRetailV2ProductAttributeValue, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2ProductAttributeValue::Representation
|
2129
|
+
|
2130
|
+
end
|
2131
|
+
end
|
2132
|
+
|
2133
|
+
class GoogleCloudRetailV2ConversationalSearchResponse
|
2134
|
+
# @private
|
2135
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2136
|
+
property :conversation_id, as: 'conversationId'
|
2137
|
+
property :conversational_filtering_result, as: 'conversationalFilteringResult', class: Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult::Representation
|
2138
|
+
|
2139
|
+
property :conversational_text_response, as: 'conversationalTextResponse'
|
2140
|
+
property :followup_question, as: 'followupQuestion', class: Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion::Representation
|
2141
|
+
|
2142
|
+
collection :refined_search, as: 'refinedSearch', class: Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponseRefinedSearch, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponseRefinedSearch::Representation
|
2143
|
+
|
2144
|
+
property :state, as: 'state'
|
2145
|
+
collection :user_query_types, as: 'userQueryTypes'
|
2146
|
+
end
|
2147
|
+
end
|
2148
|
+
|
2149
|
+
class GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult
|
2150
|
+
# @private
|
2151
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2152
|
+
property :additional_filter, as: 'additionalFilter', class: Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter::Representation
|
2153
|
+
|
2154
|
+
property :followup_question, as: 'followupQuestion', class: Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion::Representation
|
2155
|
+
|
2156
|
+
end
|
2157
|
+
end
|
2158
|
+
|
2159
|
+
class GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter
|
2160
|
+
# @private
|
2161
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2162
|
+
property :product_attribute_value, as: 'productAttributeValue', class: Google::Apis::RetailV2::GoogleCloudRetailV2ProductAttributeValue, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2ProductAttributeValue::Representation
|
2163
|
+
|
2164
|
+
end
|
2165
|
+
end
|
2166
|
+
|
2167
|
+
class GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion
|
2168
|
+
# @private
|
2169
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2170
|
+
property :followup_question, as: 'followupQuestion'
|
2171
|
+
collection :suggested_answers, as: 'suggestedAnswers', class: Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer::Representation
|
2172
|
+
|
2173
|
+
end
|
2174
|
+
end
|
2175
|
+
|
2176
|
+
class GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer
|
2177
|
+
# @private
|
2178
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2179
|
+
property :product_attribute_value, as: 'productAttributeValue', class: Google::Apis::RetailV2::GoogleCloudRetailV2ProductAttributeValue, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2ProductAttributeValue::Representation
|
2180
|
+
|
2181
|
+
end
|
2182
|
+
end
|
2183
|
+
|
2184
|
+
class GoogleCloudRetailV2ConversationalSearchResponseRefinedSearch
|
2185
|
+
# @private
|
2186
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2187
|
+
property :query, as: 'query'
|
2188
|
+
end
|
2189
|
+
end
|
2190
|
+
|
1997
2191
|
class GoogleCloudRetailV2CreateModelMetadata
|
1998
2192
|
# @private
|
1999
2193
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2412,6 +2606,19 @@ module Google
|
|
2412
2606
|
end
|
2413
2607
|
end
|
2414
2608
|
|
2609
|
+
class GoogleCloudRetailV2PanelInfo
|
2610
|
+
# @private
|
2611
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2612
|
+
property :attribution_token, as: 'attributionToken'
|
2613
|
+
property :display_name, as: 'displayName'
|
2614
|
+
property :panel_id, as: 'panelId'
|
2615
|
+
property :panel_position, as: 'panelPosition'
|
2616
|
+
collection :product_details, as: 'productDetails', class: Google::Apis::RetailV2::GoogleCloudRetailV2ProductDetail, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2ProductDetail::Representation
|
2617
|
+
|
2618
|
+
property :total_panels, as: 'totalPanels'
|
2619
|
+
end
|
2620
|
+
end
|
2621
|
+
|
2415
2622
|
class GoogleCloudRetailV2PauseModelRequest
|
2416
2623
|
# @private
|
2417
2624
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2885,6 +3092,15 @@ module Google
|
|
2885
3092
|
end
|
2886
3093
|
end
|
2887
3094
|
|
3095
|
+
class GoogleCloudRetailV2SafetySetting
|
3096
|
+
# @private
|
3097
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3098
|
+
property :category, as: 'category'
|
3099
|
+
property :method_prop, as: 'method'
|
3100
|
+
property :threshold, as: 'threshold'
|
3101
|
+
end
|
3102
|
+
end
|
3103
|
+
|
2888
3104
|
class GoogleCloudRetailV2SearchRequest
|
2889
3105
|
# @private
|
2890
3106
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3275,6 +3491,8 @@ module Google
|
|
3275
3491
|
property :order_by, as: 'orderBy'
|
3276
3492
|
collection :page_categories, as: 'pageCategories'
|
3277
3493
|
property :page_view_id, as: 'pageViewId'
|
3494
|
+
collection :panels, as: 'panels', class: Google::Apis::RetailV2::GoogleCloudRetailV2PanelInfo, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2PanelInfo::Representation
|
3495
|
+
|
3278
3496
|
collection :product_details, as: 'productDetails', class: Google::Apis::RetailV2::GoogleCloudRetailV2ProductDetail, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2ProductDetail::Representation
|
3279
3497
|
|
3280
3498
|
property :purchase_transaction, as: 'purchaseTransaction', class: Google::Apis::RetailV2::GoogleCloudRetailV2PurchaseTransaction, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2PurchaseTransaction::Representation
|
@@ -2012,6 +2012,44 @@ module Google
|
|
2012
2012
|
execute_or_queue_command(command, &block)
|
2013
2013
|
end
|
2014
2014
|
|
2015
|
+
# Performs a conversational search. This feature is only available for users who
|
2016
|
+
# have Conversational Search enabled.
|
2017
|
+
# @param [String] placement
|
2018
|
+
# Required. The resource name of the search engine placement, such as `projects/*
|
2019
|
+
# /locations/global/catalogs/default_catalog/placements/default_search` or `
|
2020
|
+
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
2021
|
+
# default_serving_config` This field is used to identify the serving config name
|
2022
|
+
# and the set of models that will be used to make the search.
|
2023
|
+
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchRequest] google_cloud_retail_v2_conversational_search_request_object
|
2024
|
+
# @param [String] fields
|
2025
|
+
# Selector specifying which fields to include in a partial response.
|
2026
|
+
# @param [String] quota_user
|
2027
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2028
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2029
|
+
# @param [Google::Apis::RequestOptions] options
|
2030
|
+
# Request-specific options
|
2031
|
+
#
|
2032
|
+
# @yield [result, err] Result & error if block supplied
|
2033
|
+
# @yieldparam result [Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponse] parsed result object
|
2034
|
+
# @yieldparam err [StandardError] error object if request failed
|
2035
|
+
#
|
2036
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponse]
|
2037
|
+
#
|
2038
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2039
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2040
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2041
|
+
def conversational_project_location_catalog_placement_search(placement, google_cloud_retail_v2_conversational_search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2042
|
+
command = make_simple_command(:post, 'v2/{+placement}:conversationalSearch', options)
|
2043
|
+
command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchRequest::Representation
|
2044
|
+
command.request_object = google_cloud_retail_v2_conversational_search_request_object
|
2045
|
+
command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponse::Representation
|
2046
|
+
command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponse
|
2047
|
+
command.params['placement'] = placement unless placement.nil?
|
2048
|
+
command.query['fields'] = fields unless fields.nil?
|
2049
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2050
|
+
execute_or_queue_command(command, &block)
|
2051
|
+
end
|
2052
|
+
|
2015
2053
|
# Makes a recommendation prediction.
|
2016
2054
|
# @param [String] placement
|
2017
2055
|
# Required. Full resource name of the format: ``placement=projects/*/locations/
|
@@ -2134,6 +2172,44 @@ module Google
|
|
2134
2172
|
execute_or_queue_command(command, &block)
|
2135
2173
|
end
|
2136
2174
|
|
2175
|
+
# Performs a conversational search. This feature is only available for users who
|
2176
|
+
# have Conversational Search enabled.
|
2177
|
+
# @param [String] placement
|
2178
|
+
# Required. The resource name of the search engine placement, such as `projects/*
|
2179
|
+
# /locations/global/catalogs/default_catalog/placements/default_search` or `
|
2180
|
+
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
2181
|
+
# default_serving_config` This field is used to identify the serving config name
|
2182
|
+
# and the set of models that will be used to make the search.
|
2183
|
+
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchRequest] google_cloud_retail_v2_conversational_search_request_object
|
2184
|
+
# @param [String] fields
|
2185
|
+
# Selector specifying which fields to include in a partial response.
|
2186
|
+
# @param [String] quota_user
|
2187
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2188
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2189
|
+
# @param [Google::Apis::RequestOptions] options
|
2190
|
+
# Request-specific options
|
2191
|
+
#
|
2192
|
+
# @yield [result, err] Result & error if block supplied
|
2193
|
+
# @yieldparam result [Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponse] parsed result object
|
2194
|
+
# @yieldparam err [StandardError] error object if request failed
|
2195
|
+
#
|
2196
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponse]
|
2197
|
+
#
|
2198
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2199
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2200
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2201
|
+
def conversational_project_location_catalog_serving_config_search(placement, google_cloud_retail_v2_conversational_search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2202
|
+
command = make_simple_command(:post, 'v2/{+placement}:conversationalSearch', options)
|
2203
|
+
command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchRequest::Representation
|
2204
|
+
command.request_object = google_cloud_retail_v2_conversational_search_request_object
|
2205
|
+
command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponse::Representation
|
2206
|
+
command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchResponse
|
2207
|
+
command.params['placement'] = placement unless placement.nil?
|
2208
|
+
command.query['fields'] = fields unless fields.nil?
|
2209
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2210
|
+
execute_or_queue_command(command, &block)
|
2211
|
+
end
|
2212
|
+
|
2137
2213
|
# Creates a ServingConfig. A maximum of 100 ServingConfigs are allowed in a
|
2138
2214
|
# Catalog, otherwise a FAILED_PRECONDITION error is returned.
|
2139
2215
|
# @param [String] parent
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-retail_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.122.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.122.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|