google-apis-retail_v2 0.69.0 → 0.70.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: 6ad77f2d05d615bfb7a3ef7767ff5e46b14d30f40d67078a3ac8b06b9ae1328e
4
- data.tar.gz: 830ccb9adafd13220bf6ca3528409c4dc485f44f76c0a4dc51c91d46a2551f63
3
+ metadata.gz: df11aab75082f77bca06d97bb654a36d867ec9b8b548487d958ede800e9931d2
4
+ data.tar.gz: 71746b24b8604e58342ce6529bc85d88628159da75221f8321dc48b2fe32c931
5
5
  SHA512:
6
- metadata.gz: 59a21c3e22f066b01ccd1178d3c5a26623c69130c7432daf85468f7f564fec7d49d693b58da1b200f298b674304dcebf746afa8c07662a872e6577593c6aba1c
7
- data.tar.gz: 13e4390249bda200000fe31abe1063a9029916a31be5e68d41f02d4c06025a645e9e3d314f945bfe35a0cabaf52144d4cce63d9c4747deddd669ab810e6ae130
6
+ metadata.gz: 3593693dccb0fca8c6cd85151ab97d0b51894c76e7d5eb5ed7eae1786b7ffed13355a00757f2cee4f0e8143a038b709f057d23ce8d70a1d810136a1e377b6ea0
7
+ data.tar.gz: 1a91555e35ad4f4ac489c49b52a42edcb1598c1b5c113bf296f11bb452e06afd6326a3b431cccad3c217fd5e3cf0a84548bd199418ced7adf4bc273b8078540e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-retail_v2
2
2
 
3
+ ### v0.70.0 (2023-04-23)
4
+
5
+ * Regenerated from discovery document revision 20230413
6
+
3
7
  ### v0.69.0 (2023-03-26)
4
8
 
5
9
  * Regenerated from discovery document revision 20230321
@@ -1278,9 +1278,9 @@ module Google
1278
1278
  # The fully qualified resource name of the experiment that provides the serving
1279
1279
  # config under test, should an active experiment exist. For example: `projects/*/
1280
1280
  # locations/global/catalogs/default_catalog/experiments/experiment_id`
1281
- # Corresponds to the JSON property `experimentName`
1281
+ # Corresponds to the JSON property `experiment`
1282
1282
  # @return [String]
1283
- attr_accessor :experiment_name
1283
+ attr_accessor :experiment
1284
1284
 
1285
1285
  # Metadata for active serving config A/B tests.
1286
1286
  # Corresponds to the JSON property `servingConfigExperiment`
@@ -1293,7 +1293,7 @@ module Google
1293
1293
 
1294
1294
  # Update properties of this object
1295
1295
  def update!(**args)
1296
- @experiment_name = args[:experiment_name] if args.key?(:experiment_name)
1296
+ @experiment = args[:experiment] if args.key?(:experiment)
1297
1297
  @serving_config_experiment = args[:serving_config_experiment] if args.key?(:serving_config_experiment)
1298
1298
  end
1299
1299
  end
@@ -3724,13 +3724,6 @@ module Google
3724
3724
  class GoogleCloudRetailV2SearchRequest
3725
3725
  include Google::Apis::Core::Hashable
3726
3726
 
3727
- # Represents the banner in request, for projects that combine banners. For
3728
- # example: a retailer can sell products under different banners like retailer-
3729
- # main, retailer-baby, retailer-meds, etc. under one project.
3730
- # Corresponds to the JSON property `banner`
3731
- # @return [String]
3732
- attr_accessor :banner
3733
-
3734
3727
  # Boost specification to boost certain items.
3735
3728
  # Corresponds to the JSON property `boostSpec`
3736
3729
  # @return [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpec]
@@ -3759,8 +3752,16 @@ module Google
3759
3752
  # @return [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestDynamicFacetSpec]
3760
3753
  attr_accessor :dynamic_facet_spec
3761
3754
 
3755
+ # The entity for customers that may run multiple different entities, domains,
3756
+ # sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, `google.com`
3757
+ # , `youtube.com`, etc. If this is set, it should be exactly matched with
3758
+ # UserEvent.entity to get search results boosted by entity.
3759
+ # Corresponds to the JSON property `entity`
3760
+ # @return [String]
3761
+ attr_accessor :entity
3762
+
3762
3763
  # Facet specifications for faceted search. If empty, no facets are returned. A
3763
- # maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error is
3764
+ # maximum of 200 values are allowed. Otherwise, an INVALID_ARGUMENT error is
3764
3765
  # returned.
3765
3766
  # Corresponds to the JSON property `facetSpecs`
3766
3767
  # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestFacetSpec>]
@@ -3807,7 +3808,7 @@ module Google
3807
3808
  # @return [String]
3808
3809
  attr_accessor :order_by
3809
3810
 
3810
- # The categories associated with a category page. Required for category
3811
+ # The categories associated with a category page. Must be set for category
3811
3812
  # navigation queries to achieve good search quality. The format should be the
3812
3813
  # same as UserEvent.page_categories; To represent full path of category, use '>'
3813
3814
  # sign to separate different hierarchies. If '>' is part of the category name,
@@ -3912,11 +3913,11 @@ module Google
3912
3913
 
3913
3914
  # Update properties of this object
3914
3915
  def update!(**args)
3915
- @banner = args[:banner] if args.key?(:banner)
3916
3916
  @boost_spec = args[:boost_spec] if args.key?(:boost_spec)
3917
3917
  @branch = args[:branch] if args.key?(:branch)
3918
3918
  @canonical_filter = args[:canonical_filter] if args.key?(:canonical_filter)
3919
3919
  @dynamic_facet_spec = args[:dynamic_facet_spec] if args.key?(:dynamic_facet_spec)
3920
+ @entity = args[:entity] if args.key?(:entity)
3920
3921
  @facet_specs = args[:facet_specs] if args.key?(:facet_specs)
3921
3922
  @filter = args[:filter] if args.key?(:filter)
3922
3923
  @labels = args[:labels] if args.key?(:labels)
@@ -4116,13 +4117,15 @@ module Google
4116
4117
  # @return [Array<String>]
4117
4118
  attr_accessor :contains
4118
4119
 
4119
- # For all numerical facet keys that appear in the list of products from the
4120
- # catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are computed from their
4121
- # distribution weekly. If the model assigns a high score to a numerical facet
4122
- # key and its intervals are not specified in the search request, these
4123
- # percentiles will become the bounds for its intervals and will be returned in
4124
- # the response. If the facet key intervals are specified in the request, then
4125
- # the specified intervals will be returned instead.
4120
+ # Set only if values should be bucketized into intervals. Must be set for facets
4121
+ # with numerical values. Must not be set for facet with text values. Maximum
4122
+ # number of intervals is 40. For all numerical facet keys that appear in the
4123
+ # list of products from the catalog, the percentiles 0, 10, 30, 50, 70, 90 and
4124
+ # 100 are computed from their distribution weekly. If the model assigns a high
4125
+ # score to a numerical facet key and its intervals are not specified in the
4126
+ # search request, these percentiles will become the bounds for its intervals and
4127
+ # will be returned in the response. If the facet key intervals are specified in
4128
+ # the request, then the specified intervals will be returned instead.
4126
4129
  # Corresponds to the JSON property `intervals`
4127
4130
  # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2Interval>]
4128
4131
  attr_accessor :intervals
@@ -4939,13 +4942,6 @@ module Google
4939
4942
  # @return [String]
4940
4943
  attr_accessor :attribution_token
4941
4944
 
4942
- # Represents the banner of the user event, for projects that combine banners.
4943
- # For example: retailer can have events from multiple banners like retailer-main,
4944
- # retailer-baby, retailer-meds, etc. under one project.
4945
- # Corresponds to the JSON property `banner`
4946
- # @return [String]
4947
- attr_accessor :banner
4948
-
4949
4945
  # The ID or name of the associated shopping cart. This ID is used to associate
4950
4946
  # multiple items added or present in the cart before purchase. This can only be
4951
4947
  # set for `add-to-cart`, `purchase-complete`, or `shopping-cart-page-view`
@@ -4960,6 +4956,14 @@ module Google
4960
4956
  # @return [Google::Apis::RetailV2::GoogleCloudRetailV2CompletionDetail]
4961
4957
  attr_accessor :completion_detail
4962
4958
 
4959
+ # The entity for customers that may run multiple different entities, domains,
4960
+ # sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, `google.com`
4961
+ # , `youtube.com`, etc. It is recommended to set this field to get better per-
4962
+ # entity search, completion and prediction results.
4963
+ # Corresponds to the JSON property `entity`
4964
+ # @return [String]
4965
+ attr_accessor :entity
4966
+
4963
4967
  # Only required for UserEventService.ImportUserEvents method. Timestamp of when
4964
4968
  # the user event happened.
4965
4969
  # Corresponds to the JSON property `eventTime`
@@ -5113,9 +5117,9 @@ module Google
5113
5117
  def update!(**args)
5114
5118
  @attributes = args[:attributes] if args.key?(:attributes)
5115
5119
  @attribution_token = args[:attribution_token] if args.key?(:attribution_token)
5116
- @banner = args[:banner] if args.key?(:banner)
5117
5120
  @cart_id = args[:cart_id] if args.key?(:cart_id)
5118
5121
  @completion_detail = args[:completion_detail] if args.key?(:completion_detail)
5122
+ @entity = args[:entity] if args.key?(:entity)
5119
5123
  @event_time = args[:event_time] if args.key?(:event_time)
5120
5124
  @event_type = args[:event_type] if args.key?(:event_type)
5121
5125
  @experiment_ids = args[:experiment_ids] if args.key?(:experiment_ids)
@@ -5702,7 +5706,7 @@ module Google
5702
5706
 
5703
5707
  # Represents a link between a Merchant Center account and a branch. Once a link
5704
5708
  # is established, products from the linked merchant center account will be
5705
- # streamed to the linked branch. LINT.IfChange(MerchantCenterAccountLink)
5709
+ # streamed to the linked branch.
5706
5710
  class GoogleCloudRetailV2alphaMerchantCenterAccountLink
5707
5711
  include Google::Apis::Core::Hashable
5708
5712
 
@@ -5760,7 +5764,7 @@ module Google
5760
5764
  # @return [String]
5761
5765
  attr_accessor :name
5762
5766
 
5763
- # Output only. GCP project ID.
5767
+ # Output only. Google Cloud project ID.
5764
5768
  # Corresponds to the JSON property `projectId`
5765
5769
  # @return [String]
5766
5770
  attr_accessor :project_id
@@ -6844,7 +6848,7 @@ module Google
6844
6848
 
6845
6849
  # Represents a link between a Merchant Center account and a branch. Once a link
6846
6850
  # is established, products from the linked merchant center account will be
6847
- # streamed to the linked branch. LINT.IfChange(MerchantCenterAccountLink)
6851
+ # streamed to the linked branch.
6848
6852
  class GoogleCloudRetailV2betaMerchantCenterAccountLink
6849
6853
  include Google::Apis::Core::Hashable
6850
6854
 
@@ -6902,7 +6906,7 @@ module Google
6902
6906
  # @return [String]
6903
6907
  attr_accessor :name
6904
6908
 
6905
- # Output only. GCP project ID.
6909
+ # Output only. Google Cloud project ID.
6906
6910
  # Corresponds to the JSON property `projectId`
6907
6911
  # @return [String]
6908
6912
  attr_accessor :project_id
@@ -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.69.0"
19
+ GEM_VERSION = "0.70.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230321"
25
+ REVISION = "20230413"
26
26
  end
27
27
  end
28
28
  end
@@ -1555,7 +1555,7 @@ module Google
1555
1555
  class GoogleCloudRetailV2ExperimentInfo
1556
1556
  # @private
1557
1557
  class Representation < Google::Apis::Core::JsonRepresentation
1558
- property :experiment_name, as: 'experimentName'
1558
+ property :experiment, as: 'experiment'
1559
1559
  property :serving_config_experiment, as: 'servingConfigExperiment', class: Google::Apis::RetailV2::GoogleCloudRetailV2ExperimentInfoServingConfigExperiment, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2ExperimentInfoServingConfigExperiment::Representation
1560
1560
 
1561
1561
  end
@@ -2160,13 +2160,13 @@ module Google
2160
2160
  class GoogleCloudRetailV2SearchRequest
2161
2161
  # @private
2162
2162
  class Representation < Google::Apis::Core::JsonRepresentation
2163
- property :banner, as: 'banner'
2164
2163
  property :boost_spec, as: 'boostSpec', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpec::Representation
2165
2164
 
2166
2165
  property :branch, as: 'branch'
2167
2166
  property :canonical_filter, as: 'canonicalFilter'
2168
2167
  property :dynamic_facet_spec, as: 'dynamicFacetSpec', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestDynamicFacetSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestDynamicFacetSpec::Representation
2169
2168
 
2169
+ property :entity, as: 'entity'
2170
2170
  collection :facet_specs, as: 'facetSpecs', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestFacetSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestFacetSpec::Representation
2171
2171
 
2172
2172
  property :filter, as: 'filter'
@@ -2413,10 +2413,10 @@ module Google
2413
2413
  hash :attributes, as: 'attributes', class: Google::Apis::RetailV2::GoogleCloudRetailV2CustomAttribute, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CustomAttribute::Representation
2414
2414
 
2415
2415
  property :attribution_token, as: 'attributionToken'
2416
- property :banner, as: 'banner'
2417
2416
  property :cart_id, as: 'cartId'
2418
2417
  property :completion_detail, as: 'completionDetail', class: Google::Apis::RetailV2::GoogleCloudRetailV2CompletionDetail, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CompletionDetail::Representation
2419
2418
 
2419
+ property :entity, as: 'entity'
2420
2420
  property :event_time, as: 'eventTime'
2421
2421
  property :event_type, as: 'eventType'
2422
2422
  collection :experiment_ids, as: 'experimentIds'
@@ -57,8 +57,6 @@ module Google
57
57
  # @param [String] catalog
58
58
  # Required. Catalog for which the completion is performed. Full resource name of
59
59
  # catalog, such as `projects/*/locations/global/catalogs/default_catalog`.
60
- # @param [String] banner
61
- # The banner context for completion suggestions.
62
60
  # @param [String] dataset
63
61
  # Determines which dataset to use for fetching completion. "user-data" will use
64
62
  # the imported dataset through CompletionService.ImportCompletionData. "cloud-
@@ -73,6 +71,11 @@ module Google
73
71
  # types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across
74
72
  # all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `
75
73
  # MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.
74
+ # @param [String] entity
75
+ # The entity for customers that may run multiple different entities, domains,
76
+ # sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, `google.com`
77
+ # , `youtube.com`, etc. If this is set, it should be exactly matched with
78
+ # UserEvent.entity to get per-entity autocomplete results.
76
79
  # @param [Array<String>, String] language_codes
77
80
  # Note that this field applies for `user-data` dataset only. For requests with `
78
81
  # cloud-retail` dataset, setting this field has no effect. The language filters
@@ -112,14 +115,14 @@ module Google
112
115
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
113
116
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
114
117
  # @raise [Google::Apis::AuthorizationError] Authorization is required
115
- def complete_project_location_catalog_query(catalog, banner: nil, dataset: nil, device_type: nil, language_codes: nil, max_suggestions: nil, query: nil, visitor_id: nil, fields: nil, quota_user: nil, options: nil, &block)
118
+ def complete_project_location_catalog_query(catalog, dataset: nil, device_type: nil, entity: nil, language_codes: nil, max_suggestions: nil, query: nil, visitor_id: nil, fields: nil, quota_user: nil, options: nil, &block)
116
119
  command = make_simple_command(:get, 'v2/{+catalog}:completeQuery', options)
117
120
  command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2CompleteQueryResponse::Representation
118
121
  command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2CompleteQueryResponse
119
122
  command.params['catalog'] = catalog unless catalog.nil?
120
- command.query['banner'] = banner unless banner.nil?
121
123
  command.query['dataset'] = dataset unless dataset.nil?
122
124
  command.query['deviceType'] = device_type unless device_type.nil?
125
+ command.query['entity'] = entity unless entity.nil?
123
126
  command.query['languageCodes'] = language_codes unless language_codes.nil?
124
127
  command.query['maxSuggestions'] = max_suggestions unless max_suggestions.nil?
125
128
  command.query['query'] = query unless query.nil?
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.69.0
4
+ version: 0.70.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: 2023-03-26 00:00:00.000000000 Z
11
+ date: 2023-04-23 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.69.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.70.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: []