google-apis-retail_v2alpha 0.62.0 → 0.64.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: 91c2450428b993c1727730d9939d35b245490d3f03b21dd51b963deb3122d7b0
4
- data.tar.gz: 0eb29571ed04ea1745d7add67dbcd05e92aa1adae528add992dd8ae3a379b35f
3
+ metadata.gz: 9e5a8a2b94813bb2357742dc85178052296ac328bb94c47bad434601bdcd6c80
4
+ data.tar.gz: 1631070e7fcf4c4ad4a02f7bcddadd9a28f8cb5b0f3cf2b694491df768594812
5
5
  SHA512:
6
- metadata.gz: fc3b7da6b42f09e8055a75001beffd38b24d3b1d128309142c7698682b52406a276aea34dc874bd09d1dfaa047877afe31956d1c1f1c913dfe42f556844141f3
7
- data.tar.gz: 44dc5fdc4cdcd3019e04462f7a1913217df91c984bb230e7036e59e90a6af4bec8abae35d323933c95898b7a4f09904674811b07d00e44f02690b9cec5c46f60
6
+ metadata.gz: 891fc0fd43e676611f2c635bebf69becc134eefd5ea2ba2e9284c674fbe2d08ac74ecc7f653bcde1a02ab3abd9748eee563cd877a45e36dc93f3d5dd2968a880
7
+ data.tar.gz: 9f13ab7aacab920efc78b6c554a2a319ac0e1089a84d0c115558c20aff82f3408497ab6f521354b37e5dad430a57d39e4bb4bcd1d10ebf17ed9162c8e5eb28ea
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-retail_v2alpha
2
2
 
3
+ ### v0.64.0 (2023-01-04)
4
+
5
+ * Regenerated from discovery document revision 20230102
6
+
7
+ ### v0.63.0 (2022-12-05)
8
+
9
+ * Regenerated from discovery document revision 20221130
10
+
3
11
  ### v0.62.0 (2022-11-09)
4
12
 
5
13
  * Regenerated from discovery document revision 20221107
@@ -1162,7 +1162,8 @@ module Google
1162
1162
 
1163
1163
  # If EXACT_SEARCHABLE_ENABLED, attribute values will be exact searchable. This
1164
1164
  # property only applies to textual custom attributes and requires indexable set
1165
- # to enabled to enable exact-searchable.
1165
+ # to enabled to enable exact-searchable. If unset, the server behavior defaults
1166
+ # to EXACT_SEARCHABLE_DISABLED.
1166
1167
  # Corresponds to the JSON property `exactSearchableOption`
1167
1168
  # @return [String]
1168
1169
  attr_accessor :exact_searchable_option
@@ -1195,7 +1196,9 @@ module Google
1195
1196
  # custom_attribute`, such as `attributes.xyz`. To be indexable, the attribute
1196
1197
  # name can contain only alpha-numeric characters and underscores. For example,
1197
1198
  # an attribute named `attributes.abc_xyz` can be indexed, but an attribute named
1198
- # `attributes.abc-xyz` cannot be indexed.
1199
+ # `attributes.abc-xyz` cannot be indexed. For attributes whoes key start with `
1200
+ # attributes.`, we refer them as custom attributes. Otherwise they are built-in
1201
+ # attributes such as `color` and `brands`.
1199
1202
  # Corresponds to the JSON property `key`
1200
1203
  # @return [String]
1201
1204
  attr_accessor :key
@@ -1208,6 +1211,12 @@ module Google
1208
1211
  # @return [String]
1209
1212
  attr_accessor :recommendations_filtering_option
1210
1213
 
1214
+ # If RETRIEVABLE_ENABLED, attribute values are retrievable in the search results.
1215
+ # If unset, the server behavior defaults to RETRIEVABLE_DISABLED.
1216
+ # Corresponds to the JSON property `retrievableOption`
1217
+ # @return [String]
1218
+ attr_accessor :retrievable_option
1219
+
1211
1220
  # When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG,
1212
1221
  # if SEARCHABLE_ENABLED, attribute values are searchable by text queries in
1213
1222
  # SearchService.Search. If SEARCHABLE_ENABLED but attribute type is numerical,
@@ -1236,6 +1245,7 @@ module Google
1236
1245
  @indexable_option = args[:indexable_option] if args.key?(:indexable_option)
1237
1246
  @key = args[:key] if args.key?(:key)
1238
1247
  @recommendations_filtering_option = args[:recommendations_filtering_option] if args.key?(:recommendations_filtering_option)
1248
+ @retrievable_option = args[:retrievable_option] if args.key?(:retrievable_option)
1239
1249
  @searchable_option = args[:searchable_option] if args.key?(:searchable_option)
1240
1250
  @type = args[:type] if args.key?(:type)
1241
1251
  end
@@ -1640,9 +1650,9 @@ module Google
1640
1650
  class GoogleCloudRetailV2alphaControl
1641
1651
  include Google::Apis::Core::Hashable
1642
1652
 
1643
- # Output only. List of serving configuration ids that are associated with this
1644
- # control in the same Catalog. Note the association is managed via the
1645
- # ServingConfig, this is an output only denormalized view.
1653
+ # Output only. List of serving config ids that are associated with this control
1654
+ # in the same Catalog. Note the association is managed via the ServingConfig,
1655
+ # this is an output only denormalized view.
1646
1656
  # Corresponds to the JSON property `associatedServingConfigIds`
1647
1657
  # @return [Array<String>]
1648
1658
  attr_accessor :associated_serving_config_ids
@@ -2752,8 +2762,8 @@ module Google
2752
2762
  attr_accessor :optimization_objective
2753
2763
 
2754
2764
  # The PageOptimizationConfig for model training. This determines how many panels
2755
- # to optimize for, and which serving configurations to consider for each panel.
2756
- # The purpose of this model is to optimize which ServingConfig to show on which
2765
+ # to optimize for, and which serving configs to consider for each panel. The
2766
+ # purpose of this model is to optimize which ServingConfig to show on which
2757
2767
  # panels in way that optimizes the visitors shopping journey.
2758
2768
  # Corresponds to the JSON property `pageOptimizationConfig`
2759
2769
  # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModelPageOptimizationConfig]
@@ -2795,14 +2805,14 @@ module Google
2795
2805
 
2796
2806
  # Required. The type of model e.g. `home-page`. Currently supported values: `
2797
2807
  # recommended-for-you`, `others-you-may-like`, `frequently-bought-together`, `
2798
- # page-optimization`, `similar-items`, `buy-it-again`, and `recently-viewed`(
2799
- # readonly value). This field together with optimization_objective describe
2800
- # model metadata to use to control model training and serving. See https://cloud.
2801
- # google.com/retail/docs/models for more details on what the model metadata
2802
- # control and which combination of parameters are valid. For invalid
2803
- # combinations of parameters (e.g. type = `frequently-bought-together` and
2804
- # optimization_objective = `ctr`), you receive an error 400 if you try to create/
2805
- # update a recommendation with this set of knobs.
2808
+ # page-optimization`, `similar-items`, `buy-it-again`, `on-sale-items`, and `
2809
+ # recently-viewed`(readonly value). This field together with
2810
+ # optimization_objective describe model metadata to use to control model
2811
+ # training and serving. See https://cloud.google.com/retail/docs/models for more
2812
+ # details on what the model metadata control and which combination of parameters
2813
+ # are valid. For invalid combinations of parameters (e.g. type = `frequently-
2814
+ # bought-together` and optimization_objective = `ctr`), you receive an error 400
2815
+ # if you try to create/update a recommendation with this set of knobs.
2806
2816
  # Corresponds to the JSON property `type`
2807
2817
  # @return [String]
2808
2818
  attr_accessor :type
@@ -2839,8 +2849,8 @@ module Google
2839
2849
  end
2840
2850
 
2841
2851
  # The PageOptimizationConfig for model training. This determines how many panels
2842
- # to optimize for, and which serving configurations to consider for each panel.
2843
- # The purpose of this model is to optimize which ServingConfig to show on which
2852
+ # to optimize for, and which serving configs to consider for each panel. The
2853
+ # purpose of this model is to optimize which ServingConfig to show on which
2844
2854
  # panels in way that optimizes the visitors shopping journey.
2845
2855
  class GoogleCloudRetailV2alphaModelPageOptimizationConfig
2846
2856
  include Google::Apis::Core::Hashable
@@ -3538,7 +3548,8 @@ module Google
3538
3548
  # For Type.VARIANT, the following fields are always returned in by default: *
3539
3549
  # name * color_info The maximum number of paths is 30. Otherwise, an
3540
3550
  # INVALID_ARGUMENT error is returned. Note: Returning more fields in
3541
- # SearchResponse can increase response payload size and serving latency.
3551
+ # SearchResponse can increase response payload size and serving latency. This
3552
+ # field is deprecated. Use the retrievable site-wide control instead.
3542
3553
  # Corresponds to the JSON property `retrievableFields`
3543
3554
  # @return [String]
3544
3555
  attr_accessor :retrievable_fields
@@ -5546,7 +5557,8 @@ module Google
5546
5557
  # @return [String]
5547
5558
  attr_accessor :diversity_level
5548
5559
 
5549
- # What kind of diversity to use - data driven or rule based.
5560
+ # What kind of diversity to use - data driven or rule based. If unset, the
5561
+ # server behavior defaults to RULE_BASED_DIVERSITY.
5550
5562
  # Corresponds to the JSON property `diversityType`
5551
5563
  # @return [String]
5552
5564
  attr_accessor :diversity_type
@@ -5634,7 +5646,7 @@ module Google
5634
5646
  # product items with a similar recommendation probability to be ordered by price,
5635
5647
  # with the highest-priced items first. This setting could result in a decrease
5636
5648
  # in click-through and conversion rates. Allowed values are: * `no-price-
5637
- # reranking` * `low-price-raranking` * `medium-price-reranking` * `high-price-
5649
+ # reranking` * `low-price-reranking` * `medium-price-reranking` * `high-price-
5638
5650
  # reranking` If not specified, we choose default based on model type. Default
5639
5651
  # value: `no-price-reranking`. Can only be set if solution_types is
5640
5652
  # SOLUTION_TYPE_RECOMMENDATION.
@@ -6744,14 +6756,14 @@ module Google
6744
6756
 
6745
6757
  # Required. The type of model e.g. `home-page`. Currently supported values: `
6746
6758
  # recommended-for-you`, `others-you-may-like`, `frequently-bought-together`, `
6747
- # page-optimization`, `similar-items`, `buy-it-again`, and `recently-viewed`(
6748
- # readonly value). This field together with optimization_objective describe
6749
- # model metadata to use to control model training and serving. See https://cloud.
6750
- # google.com/retail/docs/models for more details on what the model metadata
6751
- # control and which combination of parameters are valid. For invalid
6752
- # combinations of parameters (e.g. type = `frequently-bought-together` and
6753
- # optimization_objective = `ctr`), you receive an error 400 if you try to create/
6754
- # update a recommendation with this set of knobs.
6759
+ # page-optimization`, `similar-items`, `buy-it-again`, `on-sale-items`, and `
6760
+ # recently-viewed`(readonly value). This field together with
6761
+ # optimization_objective describe model metadata to use to control model
6762
+ # training and serving. See https://cloud.google.com/retail/docs/models for more
6763
+ # details on what the model metadata control and which combination of parameters
6764
+ # are valid. For invalid combinations of parameters (e.g. type = `frequently-
6765
+ # bought-together` and optimization_objective = `ctr`), you receive an error 400
6766
+ # if you try to create/update a recommendation with this set of knobs.
6755
6767
  # Corresponds to the JSON property `type`
6756
6768
  # @return [String]
6757
6769
  attr_accessor :type
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2alpha
18
18
  # Version of the google-apis-retail_v2alpha gem
19
- GEM_VERSION = "0.62.0"
19
+ GEM_VERSION = "0.64.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221107"
25
+ REVISION = "20230102"
26
26
  end
27
27
  end
28
28
  end
@@ -1551,6 +1551,7 @@ module Google
1551
1551
  property :indexable_option, as: 'indexableOption'
1552
1552
  property :key, as: 'key'
1553
1553
  property :recommendations_filtering_option, as: 'recommendationsFilteringOption'
1554
+ property :retrievable_option, as: 'retrievableOption'
1554
1555
  property :searchable_option, as: 'searchableOption'
1555
1556
  property :type, as: 'type'
1556
1557
  end
@@ -1771,10 +1771,10 @@ module Google
1771
1771
  # the `servingConfigs` resource. `placements` is a legacy resource. The ID of
1772
1772
  # the Recommendations AI serving config or placement. Before you can request
1773
1773
  # predictions from your model, you must create at least one serving config or
1774
- # placement for it. For more information, see [Managing serving configurations] (
1775
- # https://cloud.google.com/retail/docs/manage-configs). The full list of
1776
- # available serving configs can be seen at https://console.cloud.google.com/ai/
1777
- # retail/catalogs/default_catalog/configs
1774
+ # placement for it. For more information, see [Manage serving configs] (https://
1775
+ # cloud.google.com/retail/docs/manage-configs). The full list of available
1776
+ # serving configs can be seen at https://console.cloud.google.com/ai/retail/
1777
+ # catalogs/default_catalog/configs
1778
1778
  # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictRequest] google_cloud_retail_v2alpha_predict_request_object
1779
1779
  # @param [String] fields
1780
1780
  # Selector specifying which fields to include in a partial response.
@@ -1813,8 +1813,8 @@ module Google
1813
1813
  # projects/*/locations/global/catalogs/default_catalog/servingConfigs/
1814
1814
  # default_serving_config` or the name of the legacy placement resource, such as `
1815
1815
  # projects/*/locations/global/catalogs/default_catalog/placements/default_search`
1816
- # . This field is used to identify the serving configuration name and the set of
1817
- # models that will be used to make the search.
1816
+ # . This field is used to identify the serving config name and the set of models
1817
+ # that will be used to make the search.
1818
1818
  # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequest] google_cloud_retail_v2alpha_search_request_object
1819
1819
  # @param [String] fields
1820
1820
  # Selector specifying which fields to include in a partial response.
@@ -2077,10 +2077,10 @@ module Google
2077
2077
  # the `servingConfigs` resource. `placements` is a legacy resource. The ID of
2078
2078
  # the Recommendations AI serving config or placement. Before you can request
2079
2079
  # predictions from your model, you must create at least one serving config or
2080
- # placement for it. For more information, see [Managing serving configurations] (
2081
- # https://cloud.google.com/retail/docs/manage-configs). The full list of
2082
- # available serving configs can be seen at https://console.cloud.google.com/ai/
2083
- # retail/catalogs/default_catalog/configs
2080
+ # placement for it. For more information, see [Manage serving configs] (https://
2081
+ # cloud.google.com/retail/docs/manage-configs). The full list of available
2082
+ # serving configs can be seen at https://console.cloud.google.com/ai/retail/
2083
+ # catalogs/default_catalog/configs
2084
2084
  # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictRequest] google_cloud_retail_v2alpha_predict_request_object
2085
2085
  # @param [String] fields
2086
2086
  # Selector specifying which fields to include in a partial response.
@@ -2156,8 +2156,8 @@ module Google
2156
2156
  # projects/*/locations/global/catalogs/default_catalog/servingConfigs/
2157
2157
  # default_serving_config` or the name of the legacy placement resource, such as `
2158
2158
  # projects/*/locations/global/catalogs/default_catalog/placements/default_search`
2159
- # . This field is used to identify the serving configuration name and the set of
2160
- # models that will be used to make the search.
2159
+ # . This field is used to identify the serving config name and the set of models
2160
+ # that will be used to make the search.
2161
2161
  # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequest] google_cloud_retail_v2alpha_search_request_object
2162
2162
  # @param [String] fields
2163
2163
  # Selector specifying which fields to include in a partial response.
@@ -2201,7 +2201,7 @@ module Google
2201
2201
  # payload bytes.
2202
2202
  # @param [String] prebuilt_rule
2203
2203
  # The prebuilt rule name that can convert a specific type of raw_json. For
2204
- # example: "default_schema/v1.0"
2204
+ # example: "ga4_bq" rule for the GA4 user event schema.
2205
2205
  # @param [String] raw_json
2206
2206
  # An arbitrary serialized JSON string that contains necessary information that
2207
2207
  # can comprise a user event. When this field is specified, the user_event field
@@ -2366,6 +2366,11 @@ module Google
2366
2366
  # Required. The parent catalog resource name, such as `projects/1234/locations/
2367
2367
  # global/catalogs/default_catalog`.
2368
2368
  # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaUserEvent] google_cloud_retail_v2alpha_user_event_object
2369
+ # @param [Boolean] write_async
2370
+ # If set to true, the user event will be written asynchronously after validation,
2371
+ # and the API will respond without waiting for the write. Therefore, silent
2372
+ # failures can occur even if the API returns success. In case of silent failures,
2373
+ # error messages can be found in Stackdriver logs.
2369
2374
  # @param [String] fields
2370
2375
  # Selector specifying which fields to include in a partial response.
2371
2376
  # @param [String] quota_user
@@ -2383,13 +2388,14 @@ module Google
2383
2388
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2384
2389
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2385
2390
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2386
- def write_project_location_catalog_user_event(parent, google_cloud_retail_v2alpha_user_event_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2391
+ def write_project_location_catalog_user_event(parent, google_cloud_retail_v2alpha_user_event_object = nil, write_async: nil, fields: nil, quota_user: nil, options: nil, &block)
2387
2392
  command = make_simple_command(:post, 'v2alpha/{+parent}/userEvents:write', options)
2388
2393
  command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaUserEvent::Representation
2389
2394
  command.request_object = google_cloud_retail_v2alpha_user_event_object
2390
2395
  command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaUserEvent::Representation
2391
2396
  command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaUserEvent
2392
2397
  command.params['parent'] = parent unless parent.nil?
2398
+ command.query['writeAsync'] = write_async unless write_async.nil?
2393
2399
  command.query['fields'] = fields unless fields.nil?
2394
2400
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2395
2401
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.62.0
4
+ version: 0.64.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-11-14 00:00:00.000000000 Z
11
+ date: 2023-01-04 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_v2alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.62.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.64.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2alpha
63
63
  post_install_message:
64
64
  rdoc_options: []