google-apis-retail_v2beta 0.70.0 → 0.71.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: 9453812076fa8d8ea9a232ef3c7899a9b45fb180804790520d98a2977d6ee861
4
- data.tar.gz: eb5bbee381c806a3a1e81873b9db6d0cb7531a636859819e8445d5c252a8860c
3
+ metadata.gz: 14690fe47a59b33fb344e33be05d2764b31def7a8a38bb28112bb8aa38a2babd
4
+ data.tar.gz: 48de122593a24ca303920926a76b19fbe262b586ea634c1cac1cd9b4ceb235e1
5
5
  SHA512:
6
- metadata.gz: d03c9af0f11a2d9cf07629d1a214af11736e219db5ee6ac01a9870266252fa9eae8716baa1c34c04d707c3ddb55f52341dc214e22c8514b10cc349ba8cfeccfc
7
- data.tar.gz: df4386bff199bb77047075aadb79c3ddf8b5a248b3e708970e17c154a54820495fca83a6e64caee6c608f3ea663324ab6c018214f6c62e7bd15d447450d3d40f
6
+ metadata.gz: a1491a76e6bdb58868c5fc816370af68e6d3546d1d9a071e9c290825bf8c179c5f05c44899df810c7f6091879888a069e747ad837a699e4e19c943e694af0ef2
7
+ data.tar.gz: a6bcabc0a3915920353b641f6565f95cb70482fc298a61d34f0833821e964740e7882b4f97ce7965c8c0ed56e15fbb2e11d0ee0bc048409fc6418545f368f9bb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-retail_v2beta
2
2
 
3
+ ### v0.71.0 (2023-04-16)
4
+
5
+ * Regenerated from discovery document revision 20230406
6
+
3
7
  ### v0.70.0 (2023-03-26)
4
8
 
5
9
  * Regenerated from discovery document revision 20230321
@@ -5999,13 +5999,6 @@ module Google
5999
5999
  class GoogleCloudRetailV2betaSearchRequest
6000
6000
  include Google::Apis::Core::Hashable
6001
6001
 
6002
- # Represents the banner in request, for projects that combine banners. For
6003
- # example: a retailer can sell products under different banners like retailer-
6004
- # main, retailer-baby, retailer-meds, etc. under one project.
6005
- # Corresponds to the JSON property `banner`
6006
- # @return [String]
6007
- attr_accessor :banner
6008
-
6009
6002
  # Boost specification to boost certain items.
6010
6003
  # Corresponds to the JSON property `boostSpec`
6011
6004
  # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestBoostSpec]
@@ -6034,8 +6027,16 @@ module Google
6034
6027
  # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestDynamicFacetSpec]
6035
6028
  attr_accessor :dynamic_facet_spec
6036
6029
 
6030
+ # The entity for customers that may run multiple different entities, domains,
6031
+ # sites or regions, for example, "Google US", "Google Ads", "Waymo", "google.com"
6032
+ # , "youtube.com", etc. If this is set, it should be exactly matched with
6033
+ # UserEvent.entity to get search results boosted by entity.
6034
+ # Corresponds to the JSON property `entity`
6035
+ # @return [String]
6036
+ attr_accessor :entity
6037
+
6037
6038
  # Facet specifications for faceted search. If empty, no facets are returned. A
6038
- # maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error is
6039
+ # maximum of 200 values are allowed. Otherwise, an INVALID_ARGUMENT error is
6039
6040
  # returned.
6040
6041
  # Corresponds to the JSON property `facetSpecs`
6041
6042
  # @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestFacetSpec>]
@@ -6187,11 +6188,11 @@ module Google
6187
6188
 
6188
6189
  # Update properties of this object
6189
6190
  def update!(**args)
6190
- @banner = args[:banner] if args.key?(:banner)
6191
6191
  @boost_spec = args[:boost_spec] if args.key?(:boost_spec)
6192
6192
  @branch = args[:branch] if args.key?(:branch)
6193
6193
  @canonical_filter = args[:canonical_filter] if args.key?(:canonical_filter)
6194
6194
  @dynamic_facet_spec = args[:dynamic_facet_spec] if args.key?(:dynamic_facet_spec)
6195
+ @entity = args[:entity] if args.key?(:entity)
6195
6196
  @facet_specs = args[:facet_specs] if args.key?(:facet_specs)
6196
6197
  @filter = args[:filter] if args.key?(:filter)
6197
6198
  @labels = args[:labels] if args.key?(:labels)
@@ -7214,13 +7215,6 @@ module Google
7214
7215
  # @return [String]
7215
7216
  attr_accessor :attribution_token
7216
7217
 
7217
- # Represents the banner of the user event, for projects that combine banners.
7218
- # For example: retailer can have events from multiple banners like retailer-main,
7219
- # retailer-baby, retailer-meds, etc. under one project.
7220
- # Corresponds to the JSON property `banner`
7221
- # @return [String]
7222
- attr_accessor :banner
7223
-
7224
7218
  # The ID or name of the associated shopping cart. This ID is used to associate
7225
7219
  # multiple items added or present in the cart before purchase. This can only be
7226
7220
  # set for `add-to-cart`, `purchase-complete`, or `shopping-cart-page-view`
@@ -7235,6 +7229,14 @@ module Google
7235
7229
  # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionDetail]
7236
7230
  attr_accessor :completion_detail
7237
7231
 
7232
+ # The entity for customers that may run multiple different entities, domains,
7233
+ # sites or regions, for example, "Google US", "Google Ads", "Waymo", "google.com"
7234
+ # , "youtube.com", etc. It is recommended to set this field to get better per-
7235
+ # entity search, completion and prediction results.
7236
+ # Corresponds to the JSON property `entity`
7237
+ # @return [String]
7238
+ attr_accessor :entity
7239
+
7238
7240
  # Only required for UserEventService.ImportUserEvents method. Timestamp of when
7239
7241
  # the user event happened.
7240
7242
  # Corresponds to the JSON property `eventTime`
@@ -7388,9 +7390,9 @@ module Google
7388
7390
  def update!(**args)
7389
7391
  @attributes = args[:attributes] if args.key?(:attributes)
7390
7392
  @attribution_token = args[:attribution_token] if args.key?(:attribution_token)
7391
- @banner = args[:banner] if args.key?(:banner)
7392
7393
  @cart_id = args[:cart_id] if args.key?(:cart_id)
7393
7394
  @completion_detail = args[:completion_detail] if args.key?(:completion_detail)
7395
+ @entity = args[:entity] if args.key?(:entity)
7394
7396
  @event_time = args[:event_time] if args.key?(:event_time)
7395
7397
  @event_type = args[:event_type] if args.key?(:event_type)
7396
7398
  @experiment_ids = args[:experiment_ids] if args.key?(:experiment_ids)
@@ -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.70.0"
19
+ GEM_VERSION = "0.71.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 = "20230406"
26
26
  end
27
27
  end
28
28
  end
@@ -2871,13 +2871,13 @@ module Google
2871
2871
  class GoogleCloudRetailV2betaSearchRequest
2872
2872
  # @private
2873
2873
  class Representation < Google::Apis::Core::JsonRepresentation
2874
- property :banner, as: 'banner'
2875
2874
  property :boost_spec, as: 'boostSpec', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestBoostSpec, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestBoostSpec::Representation
2876
2875
 
2877
2876
  property :branch, as: 'branch'
2878
2877
  property :canonical_filter, as: 'canonicalFilter'
2879
2878
  property :dynamic_facet_spec, as: 'dynamicFacetSpec', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestDynamicFacetSpec, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestDynamicFacetSpec::Representation
2880
2879
 
2880
+ property :entity, as: 'entity'
2881
2881
  collection :facet_specs, as: 'facetSpecs', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestFacetSpec, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestFacetSpec::Representation
2882
2882
 
2883
2883
  property :filter, as: 'filter'
@@ -3124,10 +3124,10 @@ module Google
3124
3124
  hash :attributes, as: 'attributes', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCustomAttribute, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCustomAttribute::Representation
3125
3125
 
3126
3126
  property :attribution_token, as: 'attributionToken'
3127
- property :banner, as: 'banner'
3128
3127
  property :cart_id, as: 'cartId'
3129
3128
  property :completion_detail, as: 'completionDetail', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionDetail, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionDetail::Representation
3130
3129
 
3130
+ property :entity, as: 'entity'
3131
3131
  property :event_time, as: 'eventTime'
3132
3132
  property :event_type, as: 'eventType'
3133
3133
  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, 'v2beta/{+catalog}:completeQuery', options)
117
120
  command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponse::Representation
118
121
  command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponse
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_v2beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.70.0
4
+ version: 0.71.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-16 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.70.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.71.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: []