google-apis-retail_v2alpha 0.46.0 → 0.49.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -565,7 +565,7 @@ module Google
|
|
565
565
|
|
566
566
|
# Metadata related to the progress of the RemoveFulfillmentPlaces operation.
|
567
567
|
# Currently empty because there is no meaningful metadata populated from the
|
568
|
-
# RemoveFulfillmentPlaces method.
|
568
|
+
# ProductService.RemoveFulfillmentPlaces method.
|
569
569
|
class GoogleCloudRetailV2RemoveFulfillmentPlacesMetadata
|
570
570
|
include Google::Apis::Core::Hashable
|
571
571
|
|
@@ -579,7 +579,8 @@ module Google
|
|
579
579
|
end
|
580
580
|
|
581
581
|
# Response of the RemoveFulfillmentPlacesRequest. Currently empty because there
|
582
|
-
# is no meaningful response populated from the
|
582
|
+
# is no meaningful response populated from the ProductService.
|
583
|
+
# RemoveFulfillmentPlaces method.
|
583
584
|
class GoogleCloudRetailV2RemoveFulfillmentPlacesResponse
|
584
585
|
include Google::Apis::Core::Hashable
|
585
586
|
|
@@ -594,7 +595,7 @@ module Google
|
|
594
595
|
|
595
596
|
# Metadata related to the progress of the RemoveLocalInventories operation.
|
596
597
|
# Currently empty because there is no meaningful metadata populated from the
|
597
|
-
# RemoveLocalInventories method.
|
598
|
+
# ProductService.RemoveLocalInventories method.
|
598
599
|
class GoogleCloudRetailV2RemoveLocalInventoriesMetadata
|
599
600
|
include Google::Apis::Core::Hashable
|
600
601
|
|
@@ -607,8 +608,9 @@ module Google
|
|
607
608
|
end
|
608
609
|
end
|
609
610
|
|
610
|
-
# Response of the RemoveLocalInventories API. Currently empty
|
611
|
-
# no meaningful response populated from the
|
611
|
+
# Response of the ProductService.RemoveLocalInventories API. Currently empty
|
612
|
+
# because there is no meaningful response populated from the ProductService.
|
613
|
+
# RemoveLocalInventories method.
|
612
614
|
class GoogleCloudRetailV2RemoveLocalInventoriesResponse
|
613
615
|
include Google::Apis::Core::Hashable
|
614
616
|
|
@@ -622,8 +624,8 @@ module Google
|
|
622
624
|
end
|
623
625
|
|
624
626
|
# Metadata related to the progress of the SetInventory operation. Currently
|
625
|
-
# empty because there is no meaningful metadata populated from the
|
626
|
-
# method.
|
627
|
+
# empty because there is no meaningful metadata populated from the
|
628
|
+
# ProductService.SetInventory method.
|
627
629
|
class GoogleCloudRetailV2SetInventoryMetadata
|
628
630
|
include Google::Apis::Core::Hashable
|
629
631
|
|
@@ -637,7 +639,7 @@ module Google
|
|
637
639
|
end
|
638
640
|
|
639
641
|
# Response of the SetInventoryRequest. Currently empty because there is no
|
640
|
-
# meaningful response populated from the SetInventory method.
|
642
|
+
# meaningful response populated from the ProductService.SetInventory method.
|
641
643
|
class GoogleCloudRetailV2SetInventoryResponse
|
642
644
|
include Google::Apis::Core::Hashable
|
643
645
|
|
@@ -1090,11 +1092,11 @@ module Google
|
|
1090
1092
|
# Otherwise, this field is `False`. CatalogAttribute can be pre-loaded by using
|
1091
1093
|
# CatalogService.AddCatalogAttribute, CatalogService.ImportCatalogAttributes, or
|
1092
1094
|
# CatalogService.UpdateAttributesConfig APIs. This field is `False` for pre-
|
1093
|
-
# loaded CatalogAttributes. Only CatalogAttributes that are
|
1094
|
-
# products can be deleted. CatalogAttributes that are
|
1095
|
-
# be deleted; however, their
|
1096
|
-
#
|
1097
|
-
# for this field to update.
|
1095
|
+
# loaded CatalogAttributes. Only pre-loaded CatalogAttributes that are neither
|
1096
|
+
# in use by products nor predefined can be deleted. CatalogAttributes that are
|
1097
|
+
# either in use by products or are predefined cannot be deleted; however, their
|
1098
|
+
# configuration properties will reset to default values upon removal request.
|
1099
|
+
# After catalog changes, it takes about 10 minutes for this field to update.
|
1098
1100
|
# Corresponds to the JSON property `inUse`
|
1099
1101
|
# @return [Boolean]
|
1100
1102
|
attr_accessor :in_use
|
@@ -1243,9 +1245,8 @@ module Google
|
|
1243
1245
|
|
1244
1246
|
# Custom attributes for the suggestion term. * For "user-data", the attributes
|
1245
1247
|
# are additional custom attributes ingested through BigQuery. * For "cloud-
|
1246
|
-
# retail", the attributes are product attributes generated by Cloud Retail.
|
1247
|
-
#
|
1248
|
-
# interested in enabling it.
|
1248
|
+
# retail", the attributes are product attributes generated by Cloud Retail. It
|
1249
|
+
# requires UserEvent.product_details is imported properly.
|
1249
1250
|
# Corresponds to the JSON property `attributes`
|
1250
1251
|
# @return [Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute>]
|
1251
1252
|
attr_accessor :attributes
|
@@ -1584,6 +1585,26 @@ module Google
|
|
1584
1585
|
end
|
1585
1586
|
end
|
1586
1587
|
|
1588
|
+
# Metadata associated with a create operation.
|
1589
|
+
class GoogleCloudRetailV2alphaCreateModelMetadata
|
1590
|
+
include Google::Apis::Core::Hashable
|
1591
|
+
|
1592
|
+
# The resource name of the model that this create applies to. Format: projects/`
|
1593
|
+
# project_number`/locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
|
1594
|
+
# Corresponds to the JSON property `model`
|
1595
|
+
# @return [String]
|
1596
|
+
attr_accessor :model
|
1597
|
+
|
1598
|
+
def initialize(**args)
|
1599
|
+
update!(**args)
|
1600
|
+
end
|
1601
|
+
|
1602
|
+
# Update properties of this object
|
1603
|
+
def update!(**args)
|
1604
|
+
@model = args[:model] if args.key?(:model)
|
1605
|
+
end
|
1606
|
+
end
|
1607
|
+
|
1587
1608
|
# A custom attribute that is not explicitly modeled in Product.
|
1588
1609
|
class GoogleCloudRetailV2alphaCustomAttribute
|
1589
1610
|
include Google::Apis::Core::Hashable
|
@@ -2258,6 +2279,31 @@ module Google
|
|
2258
2279
|
end
|
2259
2280
|
end
|
2260
2281
|
|
2282
|
+
# Response to a ListModelRequest.
|
2283
|
+
class GoogleCloudRetailV2alphaListModelsResponse
|
2284
|
+
include Google::Apis::Core::Hashable
|
2285
|
+
|
2286
|
+
# List of Models.
|
2287
|
+
# Corresponds to the JSON property `models`
|
2288
|
+
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel>]
|
2289
|
+
attr_accessor :models
|
2290
|
+
|
2291
|
+
# Pagination token, if not returned indicates the last page.
|
2292
|
+
# Corresponds to the JSON property `nextPageToken`
|
2293
|
+
# @return [String]
|
2294
|
+
attr_accessor :next_page_token
|
2295
|
+
|
2296
|
+
def initialize(**args)
|
2297
|
+
update!(**args)
|
2298
|
+
end
|
2299
|
+
|
2300
|
+
# Update properties of this object
|
2301
|
+
def update!(**args)
|
2302
|
+
@models = args[:models] if args.key?(:models)
|
2303
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2304
|
+
end
|
2305
|
+
end
|
2306
|
+
|
2261
2307
|
# Response message for ProductService.ListProducts method.
|
2262
2308
|
class GoogleCloudRetailV2alphaListProductsResponse
|
2263
2309
|
include Google::Apis::Core::Hashable
|
@@ -2453,6 +2499,244 @@ module Google
|
|
2453
2499
|
end
|
2454
2500
|
end
|
2455
2501
|
|
2502
|
+
# Metadata that describes the training and serving parameters of a Model. A
|
2503
|
+
# Model can be associated with a ServingConfig and then queried through the
|
2504
|
+
# Predict api.
|
2505
|
+
class GoogleCloudRetailV2alphaModel
|
2506
|
+
include Google::Apis::Core::Hashable
|
2507
|
+
|
2508
|
+
# Output only. Timestamp the Recommendation Model was created at.
|
2509
|
+
# Corresponds to the JSON property `createTime`
|
2510
|
+
# @return [String]
|
2511
|
+
attr_accessor :create_time
|
2512
|
+
|
2513
|
+
# Output only. The state of data requirements for this model: DATA_OK and
|
2514
|
+
# DATA_ERROR. Recommendation model cannot be trained if the data is in
|
2515
|
+
# DATA_ERROR state. Recommendation model can have DATA_ERROR state even if
|
2516
|
+
# serving state is ACTIVE: models were trained successfully before, but cannot
|
2517
|
+
# be refreshed because model no longer has sufficient data for training.
|
2518
|
+
# Corresponds to the JSON property `dataState`
|
2519
|
+
# @return [String]
|
2520
|
+
attr_accessor :data_state
|
2521
|
+
|
2522
|
+
# Required. The display name of the model. Should be human readable, used to
|
2523
|
+
# display Recommendation Models in the Retail Pantheon Dashboard. UTF-8 encoded
|
2524
|
+
# string with limit of 1024 characters.
|
2525
|
+
# Corresponds to the JSON property `displayName`
|
2526
|
+
# @return [String]
|
2527
|
+
attr_accessor :display_name
|
2528
|
+
|
2529
|
+
# Optional. If RECOMMENDATIONS_FILTERING_ENABLED, recommendation filtering by
|
2530
|
+
# attributes is enabled for the model.
|
2531
|
+
# Corresponds to the JSON property `filteringOption`
|
2532
|
+
# @return [String]
|
2533
|
+
attr_accessor :filtering_option
|
2534
|
+
|
2535
|
+
# Output only. The timestamp when the latest successful tune finished.
|
2536
|
+
# Corresponds to the JSON property `lastTuneTime`
|
2537
|
+
# @return [String]
|
2538
|
+
attr_accessor :last_tune_time
|
2539
|
+
|
2540
|
+
# Required. The fully qualified resource name of the model. Format: projects/`
|
2541
|
+
# project_number`/locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
|
2542
|
+
# catalog_id has char limit of 50. recommendation_model_id has char limit of 40.
|
2543
|
+
# Corresponds to the JSON property `name`
|
2544
|
+
# @return [String]
|
2545
|
+
attr_accessor :name
|
2546
|
+
|
2547
|
+
# Optional. The optimization objective e.g. `cvr`. Currently supported values: `
|
2548
|
+
# ctr`, `cvr`, `revenue-per-order`. If not specified, we choose default based on
|
2549
|
+
# model type. Default depends on type of recommendation: `recommended-for-you` =>
|
2550
|
+
# `ctr` `others-you-may-like` => `ctr` `frequently-bought-together` => `
|
2551
|
+
# revenue_per_order`
|
2552
|
+
# Corresponds to the JSON property `optimizationObjective`
|
2553
|
+
# @return [String]
|
2554
|
+
attr_accessor :optimization_objective
|
2555
|
+
|
2556
|
+
# The PageOptimizationConfig for model training. This determines how many panels
|
2557
|
+
# to optimize for, and which serving configurations to consider for each panel.
|
2558
|
+
# The purpose of this model is to optimize which ServingConfig to show on which
|
2559
|
+
# panels in way that optimizes the visitors shopping journey.
|
2560
|
+
# Corresponds to the JSON property `pageOptimizationConfig`
|
2561
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModelPageOptimizationConfig]
|
2562
|
+
attr_accessor :page_optimization_config
|
2563
|
+
|
2564
|
+
# Optional. The state of periodic tuning. The period we use is 3 months - to do
|
2565
|
+
# a one-off tune earlier use the TuneModel method. Default value is
|
2566
|
+
# PERIODIC_TUNING_ENABLED.
|
2567
|
+
# Corresponds to the JSON property `periodicTuningState`
|
2568
|
+
# @return [String]
|
2569
|
+
attr_accessor :periodic_tuning_state
|
2570
|
+
|
2571
|
+
# Output only. The serving state of the model: ACTIVE, NOT_ACTIVE.
|
2572
|
+
# Corresponds to the JSON property `servingState`
|
2573
|
+
# @return [String]
|
2574
|
+
attr_accessor :serving_state
|
2575
|
+
|
2576
|
+
# Optional. The training state that the model is in (e.g. TRAINING or PAUSED).
|
2577
|
+
# Since part of the cost of running the service is frequency of training - this
|
2578
|
+
# can be used to determine when to train model in order to control cost. If not
|
2579
|
+
# specified: the default value for CreateModel method is TRAINING. the default
|
2580
|
+
# value for UpdateModel method is to keep the state the same as before.
|
2581
|
+
# Corresponds to the JSON property `trainingState`
|
2582
|
+
# @return [String]
|
2583
|
+
attr_accessor :training_state
|
2584
|
+
|
2585
|
+
# Output only. The tune operation associated with the model. Can be used to
|
2586
|
+
# determine if there is an ongoing tune for this recommendation. Empty field
|
2587
|
+
# implies no tune is goig on.
|
2588
|
+
# Corresponds to the JSON property `tuningOperation`
|
2589
|
+
# @return [String]
|
2590
|
+
attr_accessor :tuning_operation
|
2591
|
+
|
2592
|
+
# Required. The type of model e.g. `home-page`. Currently supported values: `
|
2593
|
+
# recommended-for-you`, `others-you-may-like`, `frequently-bought-together`, `
|
2594
|
+
# page-optimization`, 'similar-items', 'buy-it-again', `recently-viewed`(
|
2595
|
+
# readonly value).
|
2596
|
+
# Corresponds to the JSON property `type`
|
2597
|
+
# @return [String]
|
2598
|
+
attr_accessor :type
|
2599
|
+
|
2600
|
+
# Output only. Timestamp the Recommendation Model was last updated. E.g. if a
|
2601
|
+
# Recommendation Model was paused - this would be the time the pause was
|
2602
|
+
# initiated.
|
2603
|
+
# Corresponds to the JSON property `updateTime`
|
2604
|
+
# @return [String]
|
2605
|
+
attr_accessor :update_time
|
2606
|
+
|
2607
|
+
def initialize(**args)
|
2608
|
+
update!(**args)
|
2609
|
+
end
|
2610
|
+
|
2611
|
+
# Update properties of this object
|
2612
|
+
def update!(**args)
|
2613
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
2614
|
+
@data_state = args[:data_state] if args.key?(:data_state)
|
2615
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
2616
|
+
@filtering_option = args[:filtering_option] if args.key?(:filtering_option)
|
2617
|
+
@last_tune_time = args[:last_tune_time] if args.key?(:last_tune_time)
|
2618
|
+
@name = args[:name] if args.key?(:name)
|
2619
|
+
@optimization_objective = args[:optimization_objective] if args.key?(:optimization_objective)
|
2620
|
+
@page_optimization_config = args[:page_optimization_config] if args.key?(:page_optimization_config)
|
2621
|
+
@periodic_tuning_state = args[:periodic_tuning_state] if args.key?(:periodic_tuning_state)
|
2622
|
+
@serving_state = args[:serving_state] if args.key?(:serving_state)
|
2623
|
+
@training_state = args[:training_state] if args.key?(:training_state)
|
2624
|
+
@tuning_operation = args[:tuning_operation] if args.key?(:tuning_operation)
|
2625
|
+
@type = args[:type] if args.key?(:type)
|
2626
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
2627
|
+
end
|
2628
|
+
end
|
2629
|
+
|
2630
|
+
# The PageOptimizationConfig for model training. This determines how many panels
|
2631
|
+
# to optimize for, and which serving configurations to consider for each panel.
|
2632
|
+
# The purpose of this model is to optimize which ServingConfig to show on which
|
2633
|
+
# panels in way that optimizes the visitors shopping journey.
|
2634
|
+
class GoogleCloudRetailV2alphaModelPageOptimizationConfig
|
2635
|
+
include Google::Apis::Core::Hashable
|
2636
|
+
|
2637
|
+
# Required. The type of UserEvent this page optimization is shown for. Each page
|
2638
|
+
# has an associated event type - this will be the corresponding event type for
|
2639
|
+
# the page that the page optimization model is used on. Supported types: * `add-
|
2640
|
+
# to-cart`: Products being added to cart. * `detail-page-view`: Products detail
|
2641
|
+
# page viewed. * `home-page-view`: Homepage viewed * `category-page-view`:
|
2642
|
+
# Homepage viewed * `shopping-cart-page-view`: User viewing a shopping cart. `
|
2643
|
+
# home-page-view` only allows models with type `recommended-for-you`. All other
|
2644
|
+
# page_optimization_event_type allow all Model.types.
|
2645
|
+
# Corresponds to the JSON property `pageOptimizationEventType`
|
2646
|
+
# @return [String]
|
2647
|
+
attr_accessor :page_optimization_event_type
|
2648
|
+
|
2649
|
+
# Required. A list of panel configurations. Limit = 5.
|
2650
|
+
# Corresponds to the JSON property `panels`
|
2651
|
+
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel>]
|
2652
|
+
attr_accessor :panels
|
2653
|
+
|
2654
|
+
# Optional. How to restrict results across panels e.g. can the same
|
2655
|
+
# ServingConfig be shown on multiple panels at once. If unspecified, default to `
|
2656
|
+
# UNIQUE_MODEL_RESTRICTION`.
|
2657
|
+
# Corresponds to the JSON property `restriction`
|
2658
|
+
# @return [String]
|
2659
|
+
attr_accessor :restriction
|
2660
|
+
|
2661
|
+
def initialize(**args)
|
2662
|
+
update!(**args)
|
2663
|
+
end
|
2664
|
+
|
2665
|
+
# Update properties of this object
|
2666
|
+
def update!(**args)
|
2667
|
+
@page_optimization_event_type = args[:page_optimization_event_type] if args.key?(:page_optimization_event_type)
|
2668
|
+
@panels = args[:panels] if args.key?(:panels)
|
2669
|
+
@restriction = args[:restriction] if args.key?(:restriction)
|
2670
|
+
end
|
2671
|
+
end
|
2672
|
+
|
2673
|
+
# A candidate to consider for a given panel. Currently only ServingConfig are
|
2674
|
+
# valid candidates.
|
2675
|
+
class GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate
|
2676
|
+
include Google::Apis::Core::Hashable
|
2677
|
+
|
2678
|
+
# This has to be a valid ServingConfig identifier. e.g. for a ServingConfig with
|
2679
|
+
# full name: `projects/*/locations/global/catalogs/default_catalog/
|
2680
|
+
# servingConfigs/my_candidate_config` this would be 'my_candidate_config'
|
2681
|
+
# Corresponds to the JSON property `servingConfigId`
|
2682
|
+
# @return [String]
|
2683
|
+
attr_accessor :serving_config_id
|
2684
|
+
|
2685
|
+
def initialize(**args)
|
2686
|
+
update!(**args)
|
2687
|
+
end
|
2688
|
+
|
2689
|
+
# Update properties of this object
|
2690
|
+
def update!(**args)
|
2691
|
+
@serving_config_id = args[:serving_config_id] if args.key?(:serving_config_id)
|
2692
|
+
end
|
2693
|
+
end
|
2694
|
+
|
2695
|
+
# An individual panel with a list of ServingConfigs to consider for it.
|
2696
|
+
class GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel
|
2697
|
+
include Google::Apis::Core::Hashable
|
2698
|
+
|
2699
|
+
# Required. The candidates to consider on the panel. Limit = 10.
|
2700
|
+
# Corresponds to the JSON property `candidates`
|
2701
|
+
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate>]
|
2702
|
+
attr_accessor :candidates
|
2703
|
+
|
2704
|
+
# A candidate to consider for a given panel. Currently only ServingConfig are
|
2705
|
+
# valid candidates.
|
2706
|
+
# Corresponds to the JSON property `defaultCandidate`
|
2707
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate]
|
2708
|
+
attr_accessor :default_candidate
|
2709
|
+
|
2710
|
+
# Optional. The name to display for the panel.
|
2711
|
+
# Corresponds to the JSON property `displayName`
|
2712
|
+
# @return [String]
|
2713
|
+
attr_accessor :display_name
|
2714
|
+
|
2715
|
+
def initialize(**args)
|
2716
|
+
update!(**args)
|
2717
|
+
end
|
2718
|
+
|
2719
|
+
# Update properties of this object
|
2720
|
+
def update!(**args)
|
2721
|
+
@candidates = args[:candidates] if args.key?(:candidates)
|
2722
|
+
@default_candidate = args[:default_candidate] if args.key?(:default_candidate)
|
2723
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
2724
|
+
end
|
2725
|
+
end
|
2726
|
+
|
2727
|
+
# Request for pausing training of a model.
|
2728
|
+
class GoogleCloudRetailV2alphaPauseModelRequest
|
2729
|
+
include Google::Apis::Core::Hashable
|
2730
|
+
|
2731
|
+
def initialize(**args)
|
2732
|
+
update!(**args)
|
2733
|
+
end
|
2734
|
+
|
2735
|
+
# Update properties of this object
|
2736
|
+
def update!(**args)
|
2737
|
+
end
|
2738
|
+
end
|
2739
|
+
|
2456
2740
|
# Request message for Predict method.
|
2457
2741
|
class GoogleCloudRetailV2alphaPredictRequest
|
2458
2742
|
include Google::Apis::Core::Hashable
|
@@ -2474,7 +2758,7 @@ module Google
|
|
2474
2758
|
# in `PredictRequest.params` to receive empty results instead. Note that the API
|
2475
2759
|
# will never return items with storageStatus of "EXPIRED" or "DELETED"
|
2476
2760
|
# regardless of filter choices. If `filterSyntaxV2` is set to true under the `
|
2477
|
-
# params` field, then attribute
|
2761
|
+
# params` field, then attribute-based expressions are expected instead of the
|
2478
2762
|
# above described tag-based syntax. Examples: * (colors: ANY("Red", "Blue")) AND
|
2479
2763
|
# NOT (categories: ANY("Phones")) * (availability: ANY("IN_STOCK")) AND (colors:
|
2480
2764
|
# ANY("Red") OR categories: ANY("Phones"))
|
@@ -2505,7 +2789,7 @@ module Google
|
|
2505
2789
|
# @return [Fixnum]
|
2506
2790
|
attr_accessor :page_size
|
2507
2791
|
|
2508
|
-
#
|
2792
|
+
# This field is not used for now, leave it unset.
|
2509
2793
|
# Corresponds to the JSON property `pageToken`
|
2510
2794
|
# @return [String]
|
2511
2795
|
attr_accessor :page_token
|
@@ -2527,8 +2811,8 @@ module Google
|
|
2527
2811
|
# it needs to be one of `'no-diversity', 'low-diversity', 'medium-diversity', '
|
2528
2812
|
# high-diversity', 'auto-diversity'`. This gives request-level control and
|
2529
2813
|
# adjusts prediction results based on product category. * `filterSyntaxV2`:
|
2530
|
-
# Boolean. False by default. If set to true, the `filter` field
|
2531
|
-
#
|
2814
|
+
# Boolean. False by default. If set to true, the `filter` field is interpreteted
|
2815
|
+
# according to the new, attribute-based syntax.
|
2532
2816
|
# Corresponds to the JSON property `params`
|
2533
2817
|
# @return [Hash<String,Object>]
|
2534
2818
|
attr_accessor :params
|
@@ -3614,7 +3898,7 @@ module Google
|
|
3614
3898
|
|
3615
3899
|
# Metadata related to the progress of the RemoveFulfillmentPlaces operation.
|
3616
3900
|
# Currently empty because there is no meaningful metadata populated from the
|
3617
|
-
# RemoveFulfillmentPlaces method.
|
3901
|
+
# ProductService.RemoveFulfillmentPlaces method.
|
3618
3902
|
class GoogleCloudRetailV2alphaRemoveFulfillmentPlacesMetadata
|
3619
3903
|
include Google::Apis::Core::Hashable
|
3620
3904
|
|
@@ -3627,7 +3911,7 @@ module Google
|
|
3627
3911
|
end
|
3628
3912
|
end
|
3629
3913
|
|
3630
|
-
# Request message for RemoveFulfillmentPlaces method.
|
3914
|
+
# Request message for ProductService.RemoveFulfillmentPlaces method.
|
3631
3915
|
class GoogleCloudRetailV2alphaRemoveFulfillmentPlacesRequest
|
3632
3916
|
include Google::Apis::Core::Hashable
|
3633
3917
|
|
@@ -3682,7 +3966,8 @@ module Google
|
|
3682
3966
|
end
|
3683
3967
|
|
3684
3968
|
# Response of the RemoveFulfillmentPlacesRequest. Currently empty because there
|
3685
|
-
# is no meaningful response populated from the
|
3969
|
+
# is no meaningful response populated from the ProductService.
|
3970
|
+
# RemoveFulfillmentPlaces method.
|
3686
3971
|
class GoogleCloudRetailV2alphaRemoveFulfillmentPlacesResponse
|
3687
3972
|
include Google::Apis::Core::Hashable
|
3688
3973
|
|
@@ -3697,7 +3982,7 @@ module Google
|
|
3697
3982
|
|
3698
3983
|
# Metadata related to the progress of the RemoveLocalInventories operation.
|
3699
3984
|
# Currently empty because there is no meaningful metadata populated from the
|
3700
|
-
# RemoveLocalInventories method.
|
3985
|
+
# ProductService.RemoveLocalInventories method.
|
3701
3986
|
class GoogleCloudRetailV2alphaRemoveLocalInventoriesMetadata
|
3702
3987
|
include Google::Apis::Core::Hashable
|
3703
3988
|
|
@@ -3710,7 +3995,7 @@ module Google
|
|
3710
3995
|
end
|
3711
3996
|
end
|
3712
3997
|
|
3713
|
-
# Request message for RemoveLocalInventories method.
|
3998
|
+
# Request message for ProductService.RemoveLocalInventories method.
|
3714
3999
|
class GoogleCloudRetailV2alphaRemoveLocalInventoriesRequest
|
3715
4000
|
include Google::Apis::Core::Hashable
|
3716
4001
|
|
@@ -3748,8 +4033,9 @@ module Google
|
|
3748
4033
|
end
|
3749
4034
|
end
|
3750
4035
|
|
3751
|
-
# Response of the RemoveLocalInventories API. Currently empty
|
3752
|
-
# no meaningful response populated from the
|
4036
|
+
# Response of the ProductService.RemoveLocalInventories API. Currently empty
|
4037
|
+
# because there is no meaningful response populated from the ProductService.
|
4038
|
+
# RemoveLocalInventories method.
|
3753
4039
|
class GoogleCloudRetailV2alphaRemoveLocalInventoriesResponse
|
3754
4040
|
include Google::Apis::Core::Hashable
|
3755
4041
|
|
@@ -3790,6 +4076,19 @@ module Google
|
|
3790
4076
|
end
|
3791
4077
|
end
|
3792
4078
|
|
4079
|
+
# Request for resuming training of a model.
|
4080
|
+
class GoogleCloudRetailV2alphaResumeModelRequest
|
4081
|
+
include Google::Apis::Core::Hashable
|
4082
|
+
|
4083
|
+
def initialize(**args)
|
4084
|
+
update!(**args)
|
4085
|
+
end
|
4086
|
+
|
4087
|
+
# Update properties of this object
|
4088
|
+
def update!(**args)
|
4089
|
+
end
|
4090
|
+
end
|
4091
|
+
|
3793
4092
|
# A rule is a condition-action pair * A condition defines when a rule is to be
|
3794
4093
|
# triggered. * An action specifies what occurs on that trigger. Currently only
|
3795
4094
|
# boost rules are supported. Currently only supported by the search endpoint.
|
@@ -3817,13 +4116,13 @@ module Google
|
|
3817
4116
|
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleDoNotAssociateAction]
|
3818
4117
|
attr_accessor :do_not_associate_action
|
3819
4118
|
|
3820
|
-
# * Rule Condition: - No Condition provided is a global match. - 1
|
3821
|
-
# Condition provided is combined with OR operator. * Action
|
3822
|
-
# query and filter that
|
3823
|
-
# to any filters already provided with the SearchRequest. The AND
|
3824
|
-
# used to combine the query's existing filters with the filter rule(
|
3825
|
-
# May result in 0 results when filters conflict. * Action Result:
|
3826
|
-
# returned objects to be ONLY those that passed the filter.
|
4119
|
+
# * Rule Condition: - No Condition.query_terms provided is a global match. - 1
|
4120
|
+
# or more Condition.query_terms provided is combined with OR operator. * Action
|
4121
|
+
# Input: The request query and filter that are applied to the retrieved products,
|
4122
|
+
# in addition to any filters already provided with the SearchRequest. The AND
|
4123
|
+
# operator is used to combine the query's existing filters with the filter rule(
|
4124
|
+
# s). NOTE: May result in 0 results when filters conflict. * Action Result:
|
4125
|
+
# Filters the returned objects to be ONLY those that passed the filter.
|
3827
4126
|
# Corresponds to the JSON property `filterAction`
|
3828
4127
|
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleFilterAction]
|
3829
4128
|
attr_accessor :filter_action
|
@@ -3843,8 +4142,8 @@ module Google
|
|
3843
4142
|
attr_accessor :oneway_synonyms_action
|
3844
4143
|
|
3845
4144
|
# Redirects a shopper to a specific page. * Rule Condition: - Must specify
|
3846
|
-
# Condition. * Action Input: Request Query * Action Result:
|
3847
|
-
# provided uri.
|
4145
|
+
# Condition.query_terms. * Action Input: Request Query * Action Result:
|
4146
|
+
# Redirects shopper to provided uri.
|
3848
4147
|
# Corresponds to the JSON property `redirectAction`
|
3849
4148
|
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleRedirectAction]
|
3850
4149
|
attr_accessor :redirect_action
|
@@ -3954,13 +4253,13 @@ module Google
|
|
3954
4253
|
end
|
3955
4254
|
end
|
3956
4255
|
|
3957
|
-
# * Rule Condition: - No Condition provided is a global match. - 1
|
3958
|
-
# Condition provided is combined with OR operator. * Action
|
3959
|
-
# query and filter that
|
3960
|
-
# to any filters already provided with the SearchRequest. The AND
|
3961
|
-
# used to combine the query's existing filters with the filter rule(
|
3962
|
-
# May result in 0 results when filters conflict. * Action Result:
|
3963
|
-
# returned objects to be ONLY those that passed the filter.
|
4256
|
+
# * Rule Condition: - No Condition.query_terms provided is a global match. - 1
|
4257
|
+
# or more Condition.query_terms provided is combined with OR operator. * Action
|
4258
|
+
# Input: The request query and filter that are applied to the retrieved products,
|
4259
|
+
# in addition to any filters already provided with the SearchRequest. The AND
|
4260
|
+
# operator is used to combine the query's existing filters with the filter rule(
|
4261
|
+
# s). NOTE: May result in 0 results when filters conflict. * Action Result:
|
4262
|
+
# Filters the returned objects to be ONLY those that passed the filter.
|
3964
4263
|
class GoogleCloudRetailV2alphaRuleFilterAction
|
3965
4264
|
include Google::Apis::Core::Hashable
|
3966
4265
|
|
@@ -4041,8 +4340,8 @@ module Google
|
|
4041
4340
|
end
|
4042
4341
|
|
4043
4342
|
# Redirects a shopper to a specific page. * Rule Condition: - Must specify
|
4044
|
-
# Condition. * Action Input: Request Query * Action Result:
|
4045
|
-
# provided uri.
|
4343
|
+
# Condition.query_terms. * Action Input: Request Query * Action Result:
|
4344
|
+
# Redirects shopper to provided uri.
|
4046
4345
|
class GoogleCloudRetailV2alphaRuleRedirectAction
|
4047
4346
|
include Google::Apis::Core::Hashable
|
4048
4347
|
|
@@ -4536,13 +4835,14 @@ module Google
|
|
4536
4835
|
# @return [String]
|
4537
4836
|
attr_accessor :key
|
4538
4837
|
|
4539
|
-
# The order in which Facet.values are returned. Allowed values
|
4540
|
-
# desc", which means order by Facet.
|
4541
|
-
# which means order by Facet.
|
4542
|
-
# textual facets. If not set, textual values
|
4543
|
-
#
|
4544
|
-
# the order given by FacetSpec.FacetKey.
|
4545
|
-
# sorted in the order given by
|
4838
|
+
# The order in which SearchResponse.Facet.values are returned. Allowed values
|
4839
|
+
# are: * "count desc", which means order by SearchResponse.Facet.values.count
|
4840
|
+
# descending. * "value desc", which means order by SearchResponse.Facet.values.
|
4841
|
+
# value descending. Only applies to textual facets. If not set, textual values
|
4842
|
+
# are sorted in [natural order](https://en.wikipedia.org/wiki/Natural_sort_order)
|
4843
|
+
# ; numerical intervals are sorted in the order given by FacetSpec.FacetKey.
|
4844
|
+
# intervals; FulfillmentInfo.place_ids are sorted in the order given by
|
4845
|
+
# FacetSpec.FacetKey.restricted_values.
|
4546
4846
|
# Corresponds to the JSON property `orderBy`
|
4547
4847
|
# @return [String]
|
4548
4848
|
attr_accessor :order_by
|
@@ -4560,12 +4860,13 @@ module Google
|
|
4560
4860
|
# it will override the default behavior of facet computation. The query syntax
|
4561
4861
|
# is the same as a filter expression. See SearchRequest.filter for detail syntax
|
4562
4862
|
# and limitations. Notice that there is no limitation on FacetKey.key when query
|
4563
|
-
# is specified. In the response,
|
4564
|
-
#
|
4565
|
-
# example, you can set a customized facet for "
|
4566
|
-
# is "customizedShipToStore", and FacetKey.
|
4567
|
-
# IN_STOCK\") AND shipToStore: ANY(\"123\")". Then
|
4568
|
-
# products that are both in stock and ship to store "
|
4863
|
+
# is specified. In the response, SearchResponse.Facet.values.value will be
|
4864
|
+
# always "1" and SearchResponse.Facet.values.count will be the number of results
|
4865
|
+
# that match the query. For example, you can set a customized facet for "
|
4866
|
+
# shipToStore", where FacetKey.key is "customizedShipToStore", and FacetKey.
|
4867
|
+
# query is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")". Then
|
4868
|
+
# the facet will count the products that are both in stock and ship to store "
|
4869
|
+
# 123".
|
4569
4870
|
# Corresponds to the JSON property `query`
|
4570
4871
|
# @return [String]
|
4571
4872
|
attr_accessor :query
|
@@ -4686,7 +4987,7 @@ module Google
|
|
4686
4987
|
|
4687
4988
|
# Contains the spell corrected query, if found. If the spell correction type is
|
4688
4989
|
# AUTOMATIC, then the search results are based on corrected_query. Otherwise the
|
4689
|
-
# original query
|
4990
|
+
# original query is used for search.
|
4690
4991
|
# Corresponds to the JSON property `correctedQuery`
|
4691
4992
|
# @return [String]
|
4692
4993
|
attr_accessor :corrected_query
|
@@ -5120,8 +5421,8 @@ module Google
|
|
5120
5421
|
end
|
5121
5422
|
|
5122
5423
|
# Metadata related to the progress of the SetInventory operation. Currently
|
5123
|
-
# empty because there is no meaningful metadata populated from the
|
5124
|
-
# method.
|
5424
|
+
# empty because there is no meaningful metadata populated from the
|
5425
|
+
# ProductService.SetInventory method.
|
5125
5426
|
class GoogleCloudRetailV2alphaSetInventoryMetadata
|
5126
5427
|
include Google::Apis::Core::Hashable
|
5127
5428
|
|
@@ -5134,7 +5435,7 @@ module Google
|
|
5134
5435
|
end
|
5135
5436
|
end
|
5136
5437
|
|
5137
|
-
# Request message for SetInventory method.
|
5438
|
+
# Request message for ProductService.SetInventory method.
|
5138
5439
|
class GoogleCloudRetailV2alphaSetInventoryRequest
|
5139
5440
|
include Google::Apis::Core::Hashable
|
5140
5441
|
|
@@ -5181,7 +5482,7 @@ module Google
|
|
5181
5482
|
end
|
5182
5483
|
|
5183
5484
|
# Response of the SetInventoryRequest. Currently empty because there is no
|
5184
|
-
# meaningful response populated from the SetInventory method.
|
5485
|
+
# meaningful response populated from the ProductService.SetInventory method.
|
5185
5486
|
class GoogleCloudRetailV2alphaSetInventoryResponse
|
5186
5487
|
include Google::Apis::Core::Hashable
|
5187
5488
|
|
@@ -5194,6 +5495,53 @@ module Google
|
|
5194
5495
|
end
|
5195
5496
|
end
|
5196
5497
|
|
5498
|
+
# Metadata associated with a tune operation.
|
5499
|
+
class GoogleCloudRetailV2alphaTuneModelMetadata
|
5500
|
+
include Google::Apis::Core::Hashable
|
5501
|
+
|
5502
|
+
# The resource name of the model that this tune applies to. Format: projects/`
|
5503
|
+
# project_number`/locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
|
5504
|
+
# Corresponds to the JSON property `model`
|
5505
|
+
# @return [String]
|
5506
|
+
attr_accessor :model
|
5507
|
+
|
5508
|
+
def initialize(**args)
|
5509
|
+
update!(**args)
|
5510
|
+
end
|
5511
|
+
|
5512
|
+
# Update properties of this object
|
5513
|
+
def update!(**args)
|
5514
|
+
@model = args[:model] if args.key?(:model)
|
5515
|
+
end
|
5516
|
+
end
|
5517
|
+
|
5518
|
+
# Request to manually start a tuning process now (instead of waiting for the
|
5519
|
+
# periodically scheduled tuning to happen).
|
5520
|
+
class GoogleCloudRetailV2alphaTuneModelRequest
|
5521
|
+
include Google::Apis::Core::Hashable
|
5522
|
+
|
5523
|
+
def initialize(**args)
|
5524
|
+
update!(**args)
|
5525
|
+
end
|
5526
|
+
|
5527
|
+
# Update properties of this object
|
5528
|
+
def update!(**args)
|
5529
|
+
end
|
5530
|
+
end
|
5531
|
+
|
5532
|
+
# Response associated with a tune operation.
|
5533
|
+
class GoogleCloudRetailV2alphaTuneModelResponse
|
5534
|
+
include Google::Apis::Core::Hashable
|
5535
|
+
|
5536
|
+
def initialize(**args)
|
5537
|
+
update!(**args)
|
5538
|
+
end
|
5539
|
+
|
5540
|
+
# Update properties of this object
|
5541
|
+
def update!(**args)
|
5542
|
+
end
|
5543
|
+
end
|
5544
|
+
|
5197
5545
|
# UserEvent captures all metadata information Retail API needs to know about how
|
5198
5546
|
# end users interact with customers' website.
|
5199
5547
|
class GoogleCloudRetailV2alphaUserEvent
|
@@ -5944,7 +6292,7 @@ module Google
|
|
5944
6292
|
|
5945
6293
|
# Metadata related to the progress of the RemoveFulfillmentPlaces operation.
|
5946
6294
|
# Currently empty because there is no meaningful metadata populated from the
|
5947
|
-
# RemoveFulfillmentPlaces method.
|
6295
|
+
# ProductService.RemoveFulfillmentPlaces method.
|
5948
6296
|
class GoogleCloudRetailV2betaRemoveFulfillmentPlacesMetadata
|
5949
6297
|
include Google::Apis::Core::Hashable
|
5950
6298
|
|
@@ -5958,7 +6306,8 @@ module Google
|
|
5958
6306
|
end
|
5959
6307
|
|
5960
6308
|
# Response of the RemoveFulfillmentPlacesRequest. Currently empty because there
|
5961
|
-
# is no meaningful response populated from the
|
6309
|
+
# is no meaningful response populated from the ProductService.
|
6310
|
+
# RemoveFulfillmentPlaces method.
|
5962
6311
|
class GoogleCloudRetailV2betaRemoveFulfillmentPlacesResponse
|
5963
6312
|
include Google::Apis::Core::Hashable
|
5964
6313
|
|
@@ -5973,7 +6322,7 @@ module Google
|
|
5973
6322
|
|
5974
6323
|
# Metadata related to the progress of the RemoveLocalInventories operation.
|
5975
6324
|
# Currently empty because there is no meaningful metadata populated from the
|
5976
|
-
# RemoveLocalInventories method.
|
6325
|
+
# ProductService.RemoveLocalInventories method.
|
5977
6326
|
class GoogleCloudRetailV2betaRemoveLocalInventoriesMetadata
|
5978
6327
|
include Google::Apis::Core::Hashable
|
5979
6328
|
|
@@ -5986,8 +6335,9 @@ module Google
|
|
5986
6335
|
end
|
5987
6336
|
end
|
5988
6337
|
|
5989
|
-
# Response of the RemoveLocalInventories API. Currently empty
|
5990
|
-
# no meaningful response populated from the
|
6338
|
+
# Response of the ProductService.RemoveLocalInventories API. Currently empty
|
6339
|
+
# because there is no meaningful response populated from the ProductService.
|
6340
|
+
# RemoveLocalInventories method.
|
5991
6341
|
class GoogleCloudRetailV2betaRemoveLocalInventoriesResponse
|
5992
6342
|
include Google::Apis::Core::Hashable
|
5993
6343
|
|
@@ -6001,8 +6351,8 @@ module Google
|
|
6001
6351
|
end
|
6002
6352
|
|
6003
6353
|
# Metadata related to the progress of the SetInventory operation. Currently
|
6004
|
-
# empty because there is no meaningful metadata populated from the
|
6005
|
-
# method.
|
6354
|
+
# empty because there is no meaningful metadata populated from the
|
6355
|
+
# ProductService.SetInventory method.
|
6006
6356
|
class GoogleCloudRetailV2betaSetInventoryMetadata
|
6007
6357
|
include Google::Apis::Core::Hashable
|
6008
6358
|
|
@@ -6016,7 +6366,7 @@ module Google
|
|
6016
6366
|
end
|
6017
6367
|
|
6018
6368
|
# Response of the SetInventoryRequest. Currently empty because there is no
|
6019
|
-
# meaningful response populated from the SetInventory method.
|
6369
|
+
# meaningful response populated from the ProductService.SetInventory method.
|
6020
6370
|
class GoogleCloudRetailV2betaSetInventoryResponse
|
6021
6371
|
include Google::Apis::Core::Hashable
|
6022
6372
|
|