google-apis-retail_v2 0.30.0 → 0.31.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f538c46e9575d2587ad6bbfa1f9799530a07525068a42a743ce1d0f3b3cc37c5
4
- data.tar.gz: 4900fa441a89e0497c8c3b6703dc162feeb70474678e079e24110eb05ed817d2
3
+ metadata.gz: e7026215dee691483ee2220eea2f1b0925c01316973a526ee493dddc65252ccc
4
+ data.tar.gz: 2a09466d24ed7c69217c82db15ec62af850dadc841e47b0257fd3a2441da5b66
5
5
  SHA512:
6
- metadata.gz: 0cd1410672154990235eaedaf2284e07ecc5f516df84ae244988d6ff7d58c2c756c5792ffc4349a3345f1422f3ae641c09def5d32bebf8de4e4a0c725930e570
7
- data.tar.gz: ec2b387f5eb362ae64372827ab6ee30c1897cfb19a7c3c266dd5f5257c4c821eee767174ced1c4fee9ed84e42b3684b4ed0b67838916c780706e92e52a9599d4
6
+ metadata.gz: a648d9b561aa369bb0c0fdc189a64a95df5c205f35d3904e7e3b7c2391782d0b2bf8fdb653eb035b8ea4e066eefa00ab68b97de5f727106b01461275e8066ad8
7
+ data.tar.gz: 38c5765a7e13b5ce937559f351409a4e170bd4ed1f47ce29fdedfb25a26b92a5dd3b9a933ab9cb78afff6bd8891e9e6c1eabf60f0051b0ce77a0dc2c69bd2c9e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-retail_v2
2
2
 
3
+ ### v0.31.0 (2022-03-16)
4
+
5
+ * Regenerated from discovery document revision 20220310
6
+
3
7
  ### v0.30.0 (2022-03-09)
4
8
 
5
9
  * Regenerated from discovery document revision 20220303
@@ -847,7 +847,10 @@ module Google
847
847
  end
848
848
  end
849
849
 
850
- # Product thumbnail/detail image.
850
+ # Product image. Recommendations AI and Retail Search do not use product images
851
+ # to improve prediction and search results. However, product images can be
852
+ # returned in results, and are shown in prediction or search previews in the
853
+ # console.
851
854
  class GoogleCloudRetailV2Image
852
855
  include Google::Apis::Core::Hashable
853
856
 
@@ -1259,9 +1262,11 @@ module Google
1259
1262
  # do not have a stockState value of OUT_OF_STOCK. Examples: * tag=("Red" OR "
1260
1263
  # Blue") tag="New-Arrival" tag=(NOT "promotional") * filterOutOfStockItems tag=(-
1261
1264
  # "promotional") * filterOutOfStockItems If your filter blocks all prediction
1262
- # results, nothing will be returned. If you want generic (unfiltered) popular
1263
- # products to be returned instead, set `strictFiltering` to false in `
1264
- # PredictRequest.params`.
1265
+ # results, the API will return generic (unfiltered) popular products. If you
1266
+ # only want results strictly matching the filters, set `strictFiltering` to True
1267
+ # in `PredictRequest.params` to receive empty results instead. Note that the API
1268
+ # will never return items with storageStatus of "EXPIRED" or "DELETED"
1269
+ # regardless of filter choices.
1265
1270
  # Corresponds to the JSON property `filter`
1266
1271
  # @return [String]
1267
1272
  attr_accessor :filter
@@ -1668,7 +1673,7 @@ module Google
1668
1673
  # @return [String]
1669
1674
  attr_accessor :id
1670
1675
 
1671
- # Product images for the product.Highly recommended to put the main image to the
1676
+ # Product images for the product. We highly recommend putting the main image
1672
1677
  # first. A maximum of 300 images are allowed. Corresponding properties: Google
1673
1678
  # Merchant Center property [image_link](https://support.google.com/merchants/
1674
1679
  # answer/6324350). Schema.org property [Product.image](https://schema.org/image).
@@ -2342,12 +2347,13 @@ module Google
2342
2347
  # @return [String]
2343
2348
  attr_accessor :branch
2344
2349
 
2345
- # The filter applied to every search request when quality improvement such as
2346
- # query expansion is needed. For example, if a query does not have enough
2347
- # results, an expanded query with SearchRequest.canonical_filter will be
2348
- # returned as a supplement of the original query. This field is strongly
2349
- # recommended to achieve high search quality. See SearchRequest.filter for more
2350
- # details about filter syntax.
2350
+ # The default filter that is applied when a user performs a search without
2351
+ # checking any filters on the search page. The filter applied to every search
2352
+ # request when quality improvement such as query expansion is needed. For
2353
+ # example, if a query does not have enough results, an expanded query with
2354
+ # SearchRequest.canonical_filter will be returned as a supplement of the
2355
+ # original query. This field is strongly recommended to achieve high search
2356
+ # quality. See SearchRequest.filter for more details about filter syntax.
2351
2357
  # Corresponds to the JSON property `canonicalFilter`
2352
2358
  # @return [String]
2353
2359
  attr_accessor :canonical_filter
@@ -3160,15 +3166,21 @@ module Google
3160
3166
  class GoogleCloudRetailV2UserEvent
3161
3167
  include Google::Apis::Core::Hashable
3162
3168
 
3163
- # Extra user event features to include in the recommendation model. This field
3164
- # needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is
3165
- # returned: * The key must be a UTF-8 encoded string with a length limit of 5,
3166
- # 000 characters. * For text attributes, at most 400 values are allowed. Empty
3167
- # values are not allowed. Each value must be a UTF-8 encoded string with a
3168
- # length limit of 256 characters. * For number attributes, at most 400 values
3169
- # are allowed. For product recommendation, an example of extra user information
3170
- # is traffic_channel, i.e. how user arrives at the site. Users can arrive at the
3171
- # site by coming to the site directly, or coming through Google search, and etc.
3169
+ # Extra user event features to include in the recommendation model. If you
3170
+ # provide custom attributes for ingested user events, also include them in the
3171
+ # user events that you associate with prediction requests. Custom attribute
3172
+ # formatting must be consistent between imported events and events provided with
3173
+ # prediction requests. This lets the Retail API use those custom attributes when
3174
+ # training models and serving predictions, which helps improve recommendation
3175
+ # quality. This field needs to pass all below criteria, otherwise an
3176
+ # INVALID_ARGUMENT error is returned: * The key must be a UTF-8 encoded string
3177
+ # with a length limit of 5,000 characters. * For text attributes, at most 400
3178
+ # values are allowed. Empty values are not allowed. Each value must be a UTF-8
3179
+ # encoded string with a length limit of 256 characters. * For number attributes,
3180
+ # at most 400 values are allowed. For product recommendations, an example of
3181
+ # extra user information is traffic_channel, which is how a user arrives at the
3182
+ # site. Users can arrive at the site by coming to the site directly, coming
3183
+ # through Google search, or in other ways.
3172
3184
  # Corresponds to the JSON property `attributes`
3173
3185
  # @return [Hash<String,Google::Apis::RetailV2::GoogleCloudRetailV2CustomAttribute>]
3174
3186
  attr_accessor :attributes
@@ -3839,6 +3851,74 @@ module Google
3839
3851
  end
3840
3852
  end
3841
3853
 
3854
+ # Metadata related to the progress of the PurgeProducts operation. This will be
3855
+ # returned by the google.longrunning.Operation.metadata field.
3856
+ class GoogleCloudRetailV2alphaPurgeProductsMetadata
3857
+ include Google::Apis::Core::Hashable
3858
+
3859
+ # Operation create time.
3860
+ # Corresponds to the JSON property `createTime`
3861
+ # @return [String]
3862
+ attr_accessor :create_time
3863
+
3864
+ # Count of entries that encountered errors while processing.
3865
+ # Corresponds to the JSON property `failureCount`
3866
+ # @return [Fixnum]
3867
+ attr_accessor :failure_count
3868
+
3869
+ # Count of entries that were deleted successfully.
3870
+ # Corresponds to the JSON property `successCount`
3871
+ # @return [Fixnum]
3872
+ attr_accessor :success_count
3873
+
3874
+ # Operation last update time. If the operation is done, this is also the finish
3875
+ # time.
3876
+ # Corresponds to the JSON property `updateTime`
3877
+ # @return [String]
3878
+ attr_accessor :update_time
3879
+
3880
+ def initialize(**args)
3881
+ update!(**args)
3882
+ end
3883
+
3884
+ # Update properties of this object
3885
+ def update!(**args)
3886
+ @create_time = args[:create_time] if args.key?(:create_time)
3887
+ @failure_count = args[:failure_count] if args.key?(:failure_count)
3888
+ @success_count = args[:success_count] if args.key?(:success_count)
3889
+ @update_time = args[:update_time] if args.key?(:update_time)
3890
+ end
3891
+ end
3892
+
3893
+ # Response of the PurgeProductsRequest. If the long running operation is
3894
+ # successfully done, then this message is returned by the google.longrunning.
3895
+ # Operations.response field.
3896
+ class GoogleCloudRetailV2alphaPurgeProductsResponse
3897
+ include Google::Apis::Core::Hashable
3898
+
3899
+ # The total count of products purged as a result of the operation.
3900
+ # Corresponds to the JSON property `purgeCount`
3901
+ # @return [Fixnum]
3902
+ attr_accessor :purge_count
3903
+
3904
+ # A sample of the product names that will be deleted. Only populated if `force`
3905
+ # is set to false. A max of 100 names will be returned and the names are chosen
3906
+ # at random.
3907
+ # Corresponds to the JSON property `purgeSample`
3908
+ # @return [Array<String>]
3909
+ attr_accessor :purge_sample
3910
+
3911
+ def initialize(**args)
3912
+ update!(**args)
3913
+ end
3914
+
3915
+ # Update properties of this object
3916
+ def update!(**args)
3917
+ @purge_count = args[:purge_count] if args.key?(:purge_count)
3918
+ @purge_sample = args[:purge_sample] if args.key?(:purge_sample)
3919
+ end
3920
+ end
3921
+
3842
3922
  # Response of the PurgeUserEventsRequest. If the long running operation is
3843
3923
  # successfully done, then this message is returned by the google.longrunning.
3844
3924
  # Operations.response field.
@@ -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.30.0"
19
+ GEM_VERSION = "0.31.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
@@ -580,6 +580,18 @@ module Google
580
580
  include Google::Apis::Core::JsonObjectSupport
581
581
  end
582
582
 
583
+ class GoogleCloudRetailV2alphaPurgeProductsMetadata
584
+ class Representation < Google::Apis::Core::JsonRepresentation; end
585
+
586
+ include Google::Apis::Core::JsonObjectSupport
587
+ end
588
+
589
+ class GoogleCloudRetailV2alphaPurgeProductsResponse
590
+ class Representation < Google::Apis::Core::JsonRepresentation; end
591
+
592
+ include Google::Apis::Core::JsonObjectSupport
593
+ end
594
+
583
595
  class GoogleCloudRetailV2alphaPurgeUserEventsResponse
584
596
  class Representation < Google::Apis::Core::JsonRepresentation; end
585
597
 
@@ -1719,6 +1731,24 @@ module Google
1719
1731
  end
1720
1732
  end
1721
1733
 
1734
+ class GoogleCloudRetailV2alphaPurgeProductsMetadata
1735
+ # @private
1736
+ class Representation < Google::Apis::Core::JsonRepresentation
1737
+ property :create_time, as: 'createTime'
1738
+ property :failure_count, :numeric_string => true, as: 'failureCount'
1739
+ property :success_count, :numeric_string => true, as: 'successCount'
1740
+ property :update_time, as: 'updateTime'
1741
+ end
1742
+ end
1743
+
1744
+ class GoogleCloudRetailV2alphaPurgeProductsResponse
1745
+ # @private
1746
+ class Representation < Google::Apis::Core::JsonRepresentation
1747
+ property :purge_count, :numeric_string => true, as: 'purgeCount'
1748
+ collection :purge_sample, as: 'purgeSample'
1749
+ end
1750
+ end
1751
+
1722
1752
  class GoogleCloudRetailV2alphaPurgeUserEventsResponse
1723
1753
  # @private
1724
1754
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -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
@@ -1037,13 +1037,14 @@ module Google
1037
1037
  execute_or_queue_command(command, &block)
1038
1038
  end
1039
1039
 
1040
- # Triggers a user event rejoin operation with latest product catalog. Events
1041
- # will not be annotated with detailed product information if product is missing
1042
- # from the catalog at the time the user event is ingested, and these events are
1040
+ # Starts a user event rejoin operation with latest product catalog. Events will
1041
+ # not be annotated with detailed product information if product is missing from
1042
+ # the catalog at the time the user event is ingested, and these events are
1043
1043
  # stored as unjoined events with a limited usage on training and serving. This
1044
- # API can be used to trigger a 'join' operation on specified events with latest
1044
+ # method can be used to start a join operation on specified events with latest
1045
1045
  # version of product catalog. It can also be used to correct events joined with
1046
- # wrong product catalog.
1046
+ # the wrong product catalog. A rejoin operation can take hours or days to
1047
+ # complete.
1047
1048
  # @param [String] parent
1048
1049
  # Required. The parent catalog resource name, such as `projects/1234/locations/
1049
1050
  # global/catalogs/default_catalog`.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.30.0
4
+ version: 0.31.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_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.30.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.31.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2
63
63
  post_install_message:
64
64
  rdoc_options: []