google-apis-retail_v2beta 0.31.0 → 0.32.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: cfa8d39872d8c1e80a88cc41715eda8d418569db52971e5c43bbf65269e4cbd0
4
- data.tar.gz: ce3a9467abde4b9e141412b624d3129fad4b22bca5b4f93021c092e2a504cd69
3
+ metadata.gz: 7ed1149501b935ac487adefb7ab20b4ba4be842671edb762d772258233a378c4
4
+ data.tar.gz: 2f01c3e3d04013b3da0dc447536886e67cf5f46edf74c99b28cbe1eaf503ac57
5
5
  SHA512:
6
- metadata.gz: ac8bb8fd515cb5d87f4db15476315dea3a6f5895dfefef08511cb02e61bdf3d9d47237429b091b3284fca314a5af4454f483687bd86d385edb148d942abbddad
7
- data.tar.gz: 4a4cee9019d44b7f902be1d787fd89b46443bb14b2bb7303ef5fb56d753df67023de50b5ece967ecd08b5c42ccdbc1dee6ed395e4c3a37c0a8d104a15c80fbd9
6
+ metadata.gz: 3e0c7ae8e8663ca53776bc49fbff398103d6d028d77dd3d6c87019fa156991932d879cb1129e2a0f84e3661fc0ee5da94543128000d0169151dbba97a32dd3c4
7
+ data.tar.gz: baec49c4d331c7eb7f05f20cf5c54cceb382f671720512ef9c49dbce035cc6aeb05409cdae4e956fa0c7403edc14287752f28376d013faa187d725bcc93fa2c5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-retail_v2beta
2
2
 
3
+ ### v0.32.0 (2022-03-16)
4
+
5
+ * Regenerated from discovery document revision 20220310
6
+
3
7
  ### v0.31.0 (2022-03-09)
4
8
 
5
9
  * Regenerated from discovery document revision 20220303
@@ -950,6 +950,74 @@ module Google
950
950
  end
951
951
  end
952
952
 
953
+ # Metadata related to the progress of the PurgeProducts operation. This will be
954
+ # returned by the google.longrunning.Operation.metadata field.
955
+ class GoogleCloudRetailV2alphaPurgeProductsMetadata
956
+ include Google::Apis::Core::Hashable
957
+
958
+ # Operation create time.
959
+ # Corresponds to the JSON property `createTime`
960
+ # @return [String]
961
+ attr_accessor :create_time
962
+
963
+ # Count of entries that encountered errors while processing.
964
+ # Corresponds to the JSON property `failureCount`
965
+ # @return [Fixnum]
966
+ attr_accessor :failure_count
967
+
968
+ # Count of entries that were deleted successfully.
969
+ # Corresponds to the JSON property `successCount`
970
+ # @return [Fixnum]
971
+ attr_accessor :success_count
972
+
973
+ # Operation last update time. If the operation is done, this is also the finish
974
+ # time.
975
+ # Corresponds to the JSON property `updateTime`
976
+ # @return [String]
977
+ attr_accessor :update_time
978
+
979
+ def initialize(**args)
980
+ update!(**args)
981
+ end
982
+
983
+ # Update properties of this object
984
+ def update!(**args)
985
+ @create_time = args[:create_time] if args.key?(:create_time)
986
+ @failure_count = args[:failure_count] if args.key?(:failure_count)
987
+ @success_count = args[:success_count] if args.key?(:success_count)
988
+ @update_time = args[:update_time] if args.key?(:update_time)
989
+ end
990
+ end
991
+
992
+ # Response of the PurgeProductsRequest. If the long running operation is
993
+ # successfully done, then this message is returned by the google.longrunning.
994
+ # Operations.response field.
995
+ class GoogleCloudRetailV2alphaPurgeProductsResponse
996
+ include Google::Apis::Core::Hashable
997
+
998
+ # The total count of products purged as a result of the operation.
999
+ # Corresponds to the JSON property `purgeCount`
1000
+ # @return [Fixnum]
1001
+ attr_accessor :purge_count
1002
+
1003
+ # A sample of the product names that will be deleted. Only populated if `force`
1004
+ # is set to false. A max of 100 names will be returned and the names are chosen
1005
+ # at random.
1006
+ # Corresponds to the JSON property `purgeSample`
1007
+ # @return [Array<String>]
1008
+ attr_accessor :purge_sample
1009
+
1010
+ def initialize(**args)
1011
+ update!(**args)
1012
+ end
1013
+
1014
+ # Update properties of this object
1015
+ def update!(**args)
1016
+ @purge_count = args[:purge_count] if args.key?(:purge_count)
1017
+ @purge_sample = args[:purge_sample] if args.key?(:purge_sample)
1018
+ end
1019
+ end
1020
+
953
1021
  # Response of the PurgeUserEventsRequest. If the long running operation is
954
1022
  # successfully done, then this message is returned by the google.longrunning.
955
1023
  # Operations.response field.
@@ -1794,6 +1862,14 @@ module Google
1794
1862
  # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRule]
1795
1863
  attr_accessor :rule
1796
1864
 
1865
+ # Required. Specifies the use case for the control. Affects what condition
1866
+ # fields can be set. Only settable by search controls. Will default to
1867
+ # SEARCH_SOLUTION_USE_CASE_SEARCH if not specified. Currently only allow one
1868
+ # search_solution_use_case per control.
1869
+ # Corresponds to the JSON property `searchSolutionUseCase`
1870
+ # @return [Array<String>]
1871
+ attr_accessor :search_solution_use_case
1872
+
1797
1873
  # Required. Immutable. The solution types that the serving config is used for.
1798
1874
  # Currently we support setting only one type of solution at creation time. Only `
1799
1875
  # SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is
@@ -1813,6 +1889,7 @@ module Google
1813
1889
  @facet_spec = args[:facet_spec] if args.key?(:facet_spec)
1814
1890
  @name = args[:name] if args.key?(:name)
1815
1891
  @rule = args[:rule] if args.key?(:rule)
1892
+ @search_solution_use_case = args[:search_solution_use_case] if args.key?(:search_solution_use_case)
1816
1893
  @solution_types = args[:solution_types] if args.key?(:solution_types)
1817
1894
  end
1818
1895
  end
@@ -2080,7 +2157,10 @@ module Google
2080
2157
  end
2081
2158
  end
2082
2159
 
2083
- # Product thumbnail/detail image.
2160
+ # Product image. Recommendations AI and Retail Search do not use product images
2161
+ # to improve prediction and search results. However, product images can be
2162
+ # returned in results, and are shown in prediction or search previews in the
2163
+ # console.
2084
2164
  class GoogleCloudRetailV2betaImage
2085
2165
  include Google::Apis::Core::Hashable
2086
2166
 
@@ -2542,9 +2622,11 @@ module Google
2542
2622
  # do not have a stockState value of OUT_OF_STOCK. Examples: * tag=("Red" OR "
2543
2623
  # Blue") tag="New-Arrival" tag=(NOT "promotional") * filterOutOfStockItems tag=(-
2544
2624
  # "promotional") * filterOutOfStockItems If your filter blocks all prediction
2545
- # results, nothing will be returned. If you want generic (unfiltered) popular
2546
- # products to be returned instead, set `strictFiltering` to false in `
2547
- # PredictRequest.params`.
2625
+ # results, the API will return generic (unfiltered) popular products. If you
2626
+ # only want results strictly matching the filters, set `strictFiltering` to True
2627
+ # in `PredictRequest.params` to receive empty results instead. Note that the API
2628
+ # will never return items with storageStatus of "EXPIRED" or "DELETED"
2629
+ # regardless of filter choices.
2548
2630
  # Corresponds to the JSON property `filter`
2549
2631
  # @return [String]
2550
2632
  attr_accessor :filter
@@ -2951,7 +3033,7 @@ module Google
2951
3033
  # @return [String]
2952
3034
  attr_accessor :id
2953
3035
 
2954
- # Product images for the product.Highly recommended to put the main image to the
3036
+ # Product images for the product. We highly recommend putting the main image
2955
3037
  # first. A maximum of 300 images are allowed. Corresponding properties: Google
2956
3038
  # Merchant Center property [image_link](https://support.google.com/merchants/
2957
3039
  # answer/6324350). Schema.org property [Product.image](https://schema.org/image).
@@ -4019,12 +4101,13 @@ module Google
4019
4101
  # @return [String]
4020
4102
  attr_accessor :branch
4021
4103
 
4022
- # The filter applied to every search request when quality improvement such as
4023
- # query expansion is needed. For example, if a query does not have enough
4024
- # results, an expanded query with SearchRequest.canonical_filter will be
4025
- # returned as a supplement of the original query. This field is strongly
4026
- # recommended to achieve high search quality. See SearchRequest.filter for more
4027
- # details about filter syntax.
4104
+ # The default filter that is applied when a user performs a search without
4105
+ # checking any filters on the search page. The filter applied to every search
4106
+ # request when quality improvement such as query expansion is needed. For
4107
+ # example, if a query does not have enough results, an expanded query with
4108
+ # SearchRequest.canonical_filter will be returned as a supplement of the
4109
+ # original query. This field is strongly recommended to achieve high search
4110
+ # quality. See SearchRequest.filter for more details about filter syntax.
4028
4111
  # Corresponds to the JSON property `canonicalFilter`
4029
4112
  # @return [String]
4030
4113
  attr_accessor :canonical_filter
@@ -5014,15 +5097,21 @@ module Google
5014
5097
  class GoogleCloudRetailV2betaUserEvent
5015
5098
  include Google::Apis::Core::Hashable
5016
5099
 
5017
- # Extra user event features to include in the recommendation model. This field
5018
- # needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is
5019
- # returned: * The key must be a UTF-8 encoded string with a length limit of 5,
5020
- # 000 characters. * For text attributes, at most 400 values are allowed. Empty
5021
- # values are not allowed. Each value must be a UTF-8 encoded string with a
5022
- # length limit of 256 characters. * For number attributes, at most 400 values
5023
- # are allowed. For product recommendation, an example of extra user information
5024
- # is traffic_channel, i.e. how user arrives at the site. Users can arrive at the
5025
- # site by coming to the site directly, or coming through Google search, and etc.
5100
+ # Extra user event features to include in the recommendation model. If you
5101
+ # provide custom attributes for ingested user events, also include them in the
5102
+ # user events that you associate with prediction requests. Custom attribute
5103
+ # formatting must be consistent between imported events and events provided with
5104
+ # prediction requests. This lets the Retail API use those custom attributes when
5105
+ # training models and serving predictions, which helps improve recommendation
5106
+ # quality. This field needs to pass all below criteria, otherwise an
5107
+ # INVALID_ARGUMENT error is returned: * The key must be a UTF-8 encoded string
5108
+ # with a length limit of 5,000 characters. * For text attributes, at most 400
5109
+ # values are allowed. Empty values are not allowed. Each value must be a UTF-8
5110
+ # encoded string with a length limit of 256 characters. * For number attributes,
5111
+ # at most 400 values are allowed. For product recommendations, an example of
5112
+ # extra user information is traffic_channel, which is how a user arrives at the
5113
+ # site. Users can arrive at the site by coming to the site directly, coming
5114
+ # through Google search, or in other ways.
5026
5115
  # Corresponds to the JSON property `attributes`
5027
5116
  # @return [Hash<String,Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCustomAttribute>]
5028
5117
  attr_accessor :attributes
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2beta
18
18
  # Version of the google-apis-retail_v2beta gem
19
- GEM_VERSION = "0.31.0"
19
+ GEM_VERSION = "0.32.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220303"
25
+ REVISION = "20220310"
26
26
  end
27
27
  end
28
28
  end
@@ -244,6 +244,18 @@ module Google
244
244
  include Google::Apis::Core::JsonObjectSupport
245
245
  end
246
246
 
247
+ class GoogleCloudRetailV2alphaPurgeProductsMetadata
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class GoogleCloudRetailV2alphaPurgeProductsResponse
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
247
259
  class GoogleCloudRetailV2alphaPurgeUserEventsResponse
248
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
261
 
@@ -1230,6 +1242,24 @@ module Google
1230
1242
  end
1231
1243
  end
1232
1244
 
1245
+ class GoogleCloudRetailV2alphaPurgeProductsMetadata
1246
+ # @private
1247
+ class Representation < Google::Apis::Core::JsonRepresentation
1248
+ property :create_time, as: 'createTime'
1249
+ property :failure_count, :numeric_string => true, as: 'failureCount'
1250
+ property :success_count, :numeric_string => true, as: 'successCount'
1251
+ property :update_time, as: 'updateTime'
1252
+ end
1253
+ end
1254
+
1255
+ class GoogleCloudRetailV2alphaPurgeProductsResponse
1256
+ # @private
1257
+ class Representation < Google::Apis::Core::JsonRepresentation
1258
+ property :purge_count, :numeric_string => true, as: 'purgeCount'
1259
+ collection :purge_sample, as: 'purgeSample'
1260
+ end
1261
+ end
1262
+
1233
1263
  class GoogleCloudRetailV2alphaPurgeUserEventsResponse
1234
1264
  # @private
1235
1265
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1472,6 +1502,7 @@ module Google
1472
1502
  property :name, as: 'name'
1473
1503
  property :rule, as: 'rule', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRule, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRule::Representation
1474
1504
 
1505
+ collection :search_solution_use_case, as: 'searchSolutionUseCase'
1475
1506
  collection :solution_types, as: 'solutionTypes'
1476
1507
  end
1477
1508
  end
@@ -86,12 +86,12 @@ module Google
86
86
  # Required. The query used to generate suggestions. The maximum number of
87
87
  # allowed characters is 255.
88
88
  # @param [String] visitor_id
89
- # A unique identifier for tracking visitors. For example, this could be
90
- # implemented with an HTTP cookie, which should be able to uniquely identify a
91
- # visitor on a single device. This unique identifier should not change if the
92
- # visitor logs in or out of the website. The field must be a UTF-8 encoded
93
- # string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT
94
- # error is returned.
89
+ # Required field. A unique identifier for tracking visitors. For example, this
90
+ # could be implemented with an HTTP cookie, which should be able to uniquely
91
+ # identify a visitor on a single device. This unique identifier should not
92
+ # change if the visitor logs in or out of the website. The field must be a UTF-8
93
+ # encoded string with a length limit of 128 characters. Otherwise, an
94
+ # INVALID_ARGUMENT error is returned.
95
95
  # @param [String] fields
96
96
  # Selector specifying which fields to include in a partial response.
97
97
  # @param [String] quota_user
@@ -1671,13 +1671,14 @@ module Google
1671
1671
  execute_or_queue_command(command, &block)
1672
1672
  end
1673
1673
 
1674
- # Triggers a user event rejoin operation with latest product catalog. Events
1675
- # will not be annotated with detailed product information if product is missing
1676
- # from the catalog at the time the user event is ingested, and these events are
1674
+ # Starts a user event rejoin operation with latest product catalog. Events will
1675
+ # not be annotated with detailed product information if product is missing from
1676
+ # the catalog at the time the user event is ingested, and these events are
1677
1677
  # stored as unjoined events with a limited usage on training and serving. This
1678
- # API can be used to trigger a 'join' operation on specified events with latest
1678
+ # method can be used to start a join operation on specified events with latest
1679
1679
  # version of product catalog. It can also be used to correct events joined with
1680
- # wrong product catalog.
1680
+ # the wrong product catalog. A rejoin operation can take hours or days to
1681
+ # complete.
1681
1682
  # @param [String] parent
1682
1683
  # Required. The parent catalog resource name, such as `projects/1234/locations/
1683
1684
  # global/catalogs/default_catalog`.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.0
4
+ version: 0.32.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-14 00:00:00.000000000 Z
11
+ date: 2022-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.31.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.32.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2beta
63
63
  post_install_message:
64
64
  rdoc_options: []