google-apis-retail_v2beta 0.29.0 → 0.32.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: 4728dc0b1ed77a4e3bf7d513cfb92adf723b47ef5ad8d703ee2bce8e55ae7e48
4
- data.tar.gz: 5854f2bd791423414f15a7e488b15368532fdea6e47336dfcd8440d895a1f4bb
3
+ metadata.gz: 7ed1149501b935ac487adefb7ab20b4ba4be842671edb762d772258233a378c4
4
+ data.tar.gz: 2f01c3e3d04013b3da0dc447536886e67cf5f46edf74c99b28cbe1eaf503ac57
5
5
  SHA512:
6
- metadata.gz: 041ebfef9f76cdaa823dea82e36064e78f22b1ba22e1105b2aa27c74d0e4b35bab1a9d1bca75b1ae73550bb66a7006e1653bd5519019608a58bb92cbf7cce380
7
- data.tar.gz: a6e2a57b1d318f25cdd33ca116dc969acd5dfa0592a272906c4d7d3dcd56b7b9c7a393aed35fb1428101944f70efcb6351b52ccb5720d811cde30509df74e82c
6
+ metadata.gz: 3e0c7ae8e8663ca53776bc49fbff398103d6d028d77dd3d6c87019fa156991932d879cb1129e2a0f84e3661fc0ee5da94543128000d0169151dbba97a32dd3c4
7
+ data.tar.gz: baec49c4d331c7eb7f05f20cf5c54cceb382f671720512ef9c49dbce035cc6aeb05409cdae4e956fa0c7403edc14287752f28376d013faa187d725bcc93fa2c5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
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
+
7
+ ### v0.31.0 (2022-03-09)
8
+
9
+ * Regenerated from discovery document revision 20220303
10
+
11
+ ### v0.30.0 (2022-03-04)
12
+
13
+ * Regenerated from discovery document revision 20220224
14
+
3
15
  ### v0.29.0 (2022-02-24)
4
16
 
5
17
  * Regenerated from discovery document revision 20220217
@@ -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.
@@ -1351,11 +1419,11 @@ module Google
1351
1419
  # Represents a whole or partial calendar date, such as a birthday. The time of
1352
1420
  # day and time zone are either specified elsewhere or are insignificant. The
1353
1421
  # date is relative to the Gregorian Calendar. This can represent one of the
1354
- # following: * A full date, with non-zero year, month, and day values * A month
1355
- # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
1356
- # zero month and a zero day * A year and month, with a zero day (e.g., a credit
1357
- # card expiration date) Related types: * google.type.TimeOfDay * google.type.
1358
- # DateTime * google.protobuf.Timestamp
1422
+ # following: * A full date, with non-zero year, month, and day values. * A month
1423
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
1424
+ # with a zero month and a zero day. * A year and month, with a zero day (for
1425
+ # example, a credit card expiration date). Related types: * google.type.
1426
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
1359
1427
  # Corresponds to the JSON property `partitionDate`
1360
1428
  # @return [Google::Apis::RetailV2beta::GoogleTypeDate]
1361
1429
  attr_accessor :partition_date
@@ -1438,8 +1506,11 @@ module Google
1438
1506
  # True` if at least one Product is using this attribute in Product.attributes.
1439
1507
  # Otherwise, this field is `False`. CatalogAttribute can be pre-loaded by using
1440
1508
  # AddCatalogAttribute, ImportCatalogAttributes, or UpdateAttributesConfig APIs.
1441
- # This field is `False` for pre-loaded CatalogAttributes. After catalog changes,
1442
- # it takes about 10 minutes for this field to update.
1509
+ # This field is `False` for pre-loaded CatalogAttributes. Only CatalogAttributes
1510
+ # that are not in use by products can be deleted. CatalogAttributes that are in
1511
+ # use by products cannot be deleted; however, their configuration properties
1512
+ # will reset to default values upon removal request. After catalog changes, it
1513
+ # takes about 10 minutes for this field to update.
1443
1514
  # Corresponds to the JSON property `inUse`
1444
1515
  # @return [Boolean]
1445
1516
  attr_accessor :in_use
@@ -1791,9 +1862,18 @@ module Google
1791
1862
  # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRule]
1792
1863
  attr_accessor :rule
1793
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
+
1794
1873
  # Required. Immutable. The solution types that the serving config is used for.
1795
1874
  # Currently we support setting only one type of solution at creation time. Only `
1796
- # SOLUTION_TYPE_SEARCH` value is supported at the moment.
1875
+ # SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is
1876
+ # provided at creation time, will default to SOLUTION_TYPE_SEARCH.
1797
1877
  # Corresponds to the JSON property `solutionTypes`
1798
1878
  # @return [Array<String>]
1799
1879
  attr_accessor :solution_types
@@ -1809,6 +1889,7 @@ module Google
1809
1889
  @facet_spec = args[:facet_spec] if args.key?(:facet_spec)
1810
1890
  @name = args[:name] if args.key?(:name)
1811
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)
1812
1893
  @solution_types = args[:solution_types] if args.key?(:solution_types)
1813
1894
  end
1814
1895
  end
@@ -2076,7 +2157,10 @@ module Google
2076
2157
  end
2077
2158
  end
2078
2159
 
2079
- # 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.
2080
2164
  class GoogleCloudRetailV2betaImage
2081
2165
  include Google::Apis::Core::Hashable
2082
2166
 
@@ -2538,9 +2622,11 @@ module Google
2538
2622
  # do not have a stockState value of OUT_OF_STOCK. Examples: * tag=("Red" OR "
2539
2623
  # Blue") tag="New-Arrival" tag=(NOT "promotional") * filterOutOfStockItems tag=(-
2540
2624
  # "promotional") * filterOutOfStockItems If your filter blocks all prediction
2541
- # results, nothing will be returned. If you want generic (unfiltered) popular
2542
- # products to be returned instead, set `strictFiltering` to false in `
2543
- # 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.
2544
2630
  # Corresponds to the JSON property `filter`
2545
2631
  # @return [String]
2546
2632
  attr_accessor :filter
@@ -2947,7 +3033,7 @@ module Google
2947
3033
  # @return [String]
2948
3034
  attr_accessor :id
2949
3035
 
2950
- # 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
2951
3037
  # first. A maximum of 300 images are allowed. Corresponding properties: Google
2952
3038
  # Merchant Center property [image_link](https://support.google.com/merchants/
2953
3039
  # answer/6324350). Schema.org property [Product.image](https://schema.org/image).
@@ -4015,12 +4101,13 @@ module Google
4015
4101
  # @return [String]
4016
4102
  attr_accessor :branch
4017
4103
 
4018
- # The filter applied to every search request when quality improvement such as
4019
- # query expansion is needed. For example, if a query does not have enough
4020
- # results, an expanded query with SearchRequest.canonical_filter will be
4021
- # returned as a supplement of the original query. This field is strongly
4022
- # recommended to achieve high search quality. See SearchRequest.filter for more
4023
- # 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.
4024
4111
  # Corresponds to the JSON property `canonicalFilter`
4025
4112
  # @return [String]
4026
4113
  attr_accessor :canonical_filter
@@ -5010,15 +5097,21 @@ module Google
5010
5097
  class GoogleCloudRetailV2betaUserEvent
5011
5098
  include Google::Apis::Core::Hashable
5012
5099
 
5013
- # Extra user event features to include in the recommendation model. This field
5014
- # needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is
5015
- # returned: * The key must be a UTF-8 encoded string with a length limit of 5,
5016
- # 000 characters. * For text attributes, at most 400 values are allowed. Empty
5017
- # values are not allowed. Each value must be a UTF-8 encoded string with a
5018
- # length limit of 256 characters. * For number attributes, at most 400 values
5019
- # are allowed. For product recommendation, an example of extra user information
5020
- # is traffic_channel, i.e. how user arrives at the site. Users can arrive at the
5021
- # 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.
5022
5115
  # Corresponds to the JSON property `attributes`
5023
5116
  # @return [Hash<String,Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCustomAttribute>]
5024
5117
  attr_accessor :attributes
@@ -5503,11 +5596,11 @@ module Google
5503
5596
  # Represents a whole or partial calendar date, such as a birthday. The time of
5504
5597
  # day and time zone are either specified elsewhere or are insignificant. The
5505
5598
  # date is relative to the Gregorian Calendar. This can represent one of the
5506
- # following: * A full date, with non-zero year, month, and day values * A month
5507
- # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
5508
- # zero month and a zero day * A year and month, with a zero day (e.g., a credit
5509
- # card expiration date) Related types: * google.type.TimeOfDay * google.type.
5510
- # DateTime * google.protobuf.Timestamp
5599
+ # following: * A full date, with non-zero year, month, and day values. * A month
5600
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
5601
+ # with a zero month and a zero day. * A year and month, with a zero day (for
5602
+ # example, a credit card expiration date). Related types: * google.type.
5603
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
5511
5604
  class GoogleTypeDate
5512
5605
  include Google::Apis::Core::Hashable
5513
5606
 
@@ -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.29.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 = "20220217"
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
@@ -72,10 +72,12 @@ module Google
72
72
  # `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with
73
73
  # `OTHER_`, e.g. `OTHER_IPHONE`.
74
74
  # @param [Array<String>, String] language_codes
75
- # The list of languages of the query. This is the BCP-47 language code, such as "
76
- # en-US" or "sr-Latn". For more information, see [Tags for Identifying Languages]
77
- # (https://tools.ietf.org/html/bcp47). The maximum number of allowed characters
78
- # is 255. Only "en-US" is currently supported.
75
+ # The language filters applied to the output suggestions. If set, it should
76
+ # contain the language of the query. If not set, suggestions are returned
77
+ # without considering language restrictions. This is the BCP-47 language code,
78
+ # such as "en-US" or "sr-Latn". For more information, see [Tags for Identifying
79
+ # Languages](https://tools.ietf.org/html/bcp47). The maximum number of language
80
+ # codes is 3.
79
81
  # @param [Fixnum] max_suggestions
80
82
  # Completion max suggestions. If left unset or set to 0, then will fallback to
81
83
  # the configured value CompletionConfig.max_suggestions. The maximum allowed max
@@ -84,12 +86,12 @@ module Google
84
86
  # Required. The query used to generate suggestions. The maximum number of
85
87
  # allowed characters is 255.
86
88
  # @param [String] visitor_id
87
- # A unique identifier for tracking visitors. For example, this could be
88
- # implemented with an HTTP cookie, which should be able to uniquely identify a
89
- # visitor on a single device. This unique identifier should not change if the
90
- # visitor logs in or out of the website. The field must be a UTF-8 encoded
91
- # string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT
92
- # 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.
93
95
  # @param [String] fields
94
96
  # Selector specifying which fields to include in a partial response.
95
97
  # @param [String] quota_user
@@ -1669,13 +1671,14 @@ module Google
1669
1671
  execute_or_queue_command(command, &block)
1670
1672
  end
1671
1673
 
1672
- # Triggers a user event rejoin operation with latest product catalog. Events
1673
- # will not be annotated with detailed product information if product is missing
1674
- # 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
1675
1677
  # stored as unjoined events with a limited usage on training and serving. This
1676
- # 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
1677
1679
  # version of product catalog. It can also be used to correct events joined with
1678
- # wrong product catalog.
1680
+ # the wrong product catalog. A rejoin operation can take hours or days to
1681
+ # complete.
1679
1682
  # @param [String] parent
1680
1683
  # Required. The parent catalog resource name, such as `projects/1234/locations/
1681
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.29.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-02-28 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.29.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: []