google-apis-retail_v2beta 0.51.0 → 0.54.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -365,8 +365,8 @@ module Google
|
|
365
365
|
include Google::Apis::Core::Hashable
|
366
366
|
|
367
367
|
# Google Cloud Storage prefix for import errors. This must be an empty, existing
|
368
|
-
# Cloud Storage directory. Import errors
|
369
|
-
#
|
368
|
+
# Cloud Storage directory. Import errors are written to sharded files in this
|
369
|
+
# directory, one per line, as a JSON-encoded `google.rpc.Status` message.
|
370
370
|
# Corresponds to the JSON property `gcsPrefix`
|
371
371
|
# @return [String]
|
372
372
|
attr_accessor :gcs_prefix
|
@@ -381,8 +381,8 @@ module Google
|
|
381
381
|
end
|
382
382
|
end
|
383
383
|
|
384
|
-
# Metadata related to the progress of the Import operation. This
|
385
|
-
#
|
384
|
+
# Metadata related to the progress of the Import operation. This is returned by
|
385
|
+
# the google.longrunning.Operation.metadata field.
|
386
386
|
class GoogleCloudRetailV2ImportMetadata
|
387
387
|
include Google::Apis::Core::Hashable
|
388
388
|
|
@@ -397,9 +397,9 @@ module Google
|
|
397
397
|
attr_accessor :failure_count
|
398
398
|
|
399
399
|
# Pub/Sub topic for receiving notification. If this field is set, when the
|
400
|
-
# import is finished, a notification
|
401
|
-
#
|
402
|
-
#
|
400
|
+
# import is finished, a notification is sent to specified Pub/Sub topic. The
|
401
|
+
# message data is JSON string of a Operation. Format of the Pub/Sub topic is `
|
402
|
+
# projects/`project`/topics/`topic``.
|
403
403
|
# Corresponds to the JSON property `notificationPubsubTopic`
|
404
404
|
# @return [String]
|
405
405
|
attr_accessor :notification_pubsub_topic
|
@@ -531,7 +531,7 @@ module Google
|
|
531
531
|
end
|
532
532
|
end
|
533
533
|
|
534
|
-
# Metadata for RejoinUserEvents method.
|
534
|
+
# Metadata for `RejoinUserEvents` method.
|
535
535
|
class GoogleCloudRetailV2RejoinUserEventsMetadata
|
536
536
|
include Google::Apis::Core::Hashable
|
537
537
|
|
@@ -544,7 +544,7 @@ module Google
|
|
544
544
|
end
|
545
545
|
end
|
546
546
|
|
547
|
-
# Response message for RejoinUserEvents method.
|
547
|
+
# Response message for `RejoinUserEvents` method.
|
548
548
|
class GoogleCloudRetailV2RejoinUserEventsResponse
|
549
549
|
include Google::Apis::Core::Hashable
|
550
550
|
|
@@ -768,8 +768,9 @@ module Google
|
|
768
768
|
class GoogleCloudRetailV2alphaCreateModelMetadata
|
769
769
|
include Google::Apis::Core::Hashable
|
770
770
|
|
771
|
-
# The resource name of the model that this create applies to. Format: projects/`
|
771
|
+
# The resource name of the model that this create applies to. Format: `projects/`
|
772
772
|
# project_number`/locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
|
773
|
+
# `
|
773
774
|
# Corresponds to the JSON property `model`
|
774
775
|
# @return [String]
|
775
776
|
attr_accessor :model
|
@@ -805,8 +806,8 @@ module Google
|
|
805
806
|
end
|
806
807
|
end
|
807
808
|
|
808
|
-
# Metadata related to the progress of the Export operation. This
|
809
|
-
#
|
809
|
+
# Metadata related to the progress of the Export operation. This is returned by
|
810
|
+
# the google.longrunning.Operation.metadata field.
|
810
811
|
class GoogleCloudRetailV2alphaExportMetadata
|
811
812
|
include Google::Apis::Core::Hashable
|
812
813
|
|
@@ -924,8 +925,8 @@ module Google
|
|
924
925
|
include Google::Apis::Core::Hashable
|
925
926
|
|
926
927
|
# Google Cloud Storage prefix for import errors. This must be an empty, existing
|
927
|
-
# Cloud Storage directory. Import errors
|
928
|
-
#
|
928
|
+
# Cloud Storage directory. Import errors are written to sharded files in this
|
929
|
+
# directory, one per line, as a JSON-encoded `google.rpc.Status` message.
|
929
930
|
# Corresponds to the JSON property `gcsPrefix`
|
930
931
|
# @return [String]
|
931
932
|
attr_accessor :gcs_prefix
|
@@ -940,8 +941,8 @@ module Google
|
|
940
941
|
end
|
941
942
|
end
|
942
943
|
|
943
|
-
# Metadata related to the progress of the Import operation. This
|
944
|
-
#
|
944
|
+
# Metadata related to the progress of the Import operation. This is returned by
|
945
|
+
# the google.longrunning.Operation.metadata field.
|
945
946
|
class GoogleCloudRetailV2alphaImportMetadata
|
946
947
|
include Google::Apis::Core::Hashable
|
947
948
|
|
@@ -956,9 +957,9 @@ module Google
|
|
956
957
|
attr_accessor :failure_count
|
957
958
|
|
958
959
|
# Pub/Sub topic for receiving notification. If this field is set, when the
|
959
|
-
# import is finished, a notification
|
960
|
-
#
|
961
|
-
#
|
960
|
+
# import is finished, a notification is sent to specified Pub/Sub topic. The
|
961
|
+
# message data is JSON string of a Operation. Format of the Pub/Sub topic is `
|
962
|
+
# projects/`project`/topics/`topic``.
|
962
963
|
# Corresponds to the JSON property `notificationPubsubTopic`
|
963
964
|
# @return [String]
|
964
965
|
attr_accessor :notification_pubsub_topic
|
@@ -1063,7 +1064,7 @@ module Google
|
|
1063
1064
|
|
1064
1065
|
# Metadata that describes the training and serving parameters of a Model. A
|
1065
1066
|
# Model can be associated with a ServingConfig and then queried through the
|
1066
|
-
# Predict
|
1067
|
+
# Predict API.
|
1067
1068
|
class GoogleCloudRetailV2alphaModel
|
1068
1069
|
include Google::Apis::Core::Hashable
|
1069
1070
|
|
@@ -1072,23 +1073,23 @@ module Google
|
|
1072
1073
|
# @return [String]
|
1073
1074
|
attr_accessor :create_time
|
1074
1075
|
|
1075
|
-
# Output only. The state of data requirements for this model: DATA_OK and
|
1076
|
-
# DATA_ERROR
|
1077
|
-
# DATA_ERROR state. Recommendation model can have DATA_ERROR state even if
|
1078
|
-
# serving state is ACTIVE
|
1076
|
+
# Output only. The state of data requirements for this model: `DATA_OK` and `
|
1077
|
+
# DATA_ERROR`. Recommendation model cannot be trained if the data is in `
|
1078
|
+
# DATA_ERROR` state. Recommendation model can have `DATA_ERROR` state even if
|
1079
|
+
# serving state is `ACTIVE`: models were trained successfully before, but cannot
|
1079
1080
|
# be refreshed because model no longer has sufficient data for training.
|
1080
1081
|
# Corresponds to the JSON property `dataState`
|
1081
1082
|
# @return [String]
|
1082
1083
|
attr_accessor :data_state
|
1083
1084
|
|
1084
1085
|
# Required. The display name of the model. Should be human readable, used to
|
1085
|
-
# display Recommendation Models in the Retail Cloud
|
1086
|
+
# display Recommendation Models in the Retail Cloud Console Dashboard. UTF-8
|
1086
1087
|
# encoded string with limit of 1024 characters.
|
1087
1088
|
# Corresponds to the JSON property `displayName`
|
1088
1089
|
# @return [String]
|
1089
1090
|
attr_accessor :display_name
|
1090
1091
|
|
1091
|
-
# Optional. If RECOMMENDATIONS_FILTERING_ENABLED
|
1092
|
+
# Optional. If `RECOMMENDATIONS_FILTERING_ENABLED`, recommendation filtering by
|
1092
1093
|
# attributes is enabled for the model.
|
1093
1094
|
# Corresponds to the JSON property `filteringOption`
|
1094
1095
|
# @return [String]
|
@@ -1099,9 +1100,10 @@ module Google
|
|
1099
1100
|
# @return [String]
|
1100
1101
|
attr_accessor :last_tune_time
|
1101
1102
|
|
1102
|
-
# Required. The fully qualified resource name of the model. Format: projects/`
|
1103
|
+
# Required. The fully qualified resource name of the model. Format: `projects/`
|
1103
1104
|
# project_number`/locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
|
1104
|
-
# catalog_id has char limit of 50. recommendation_model_id has char limit of
|
1105
|
+
# ` catalog_id has char limit of 50. recommendation_model_id has char limit of
|
1106
|
+
# 40.
|
1105
1107
|
# Corresponds to the JSON property `name`
|
1106
1108
|
# @return [String]
|
1107
1109
|
attr_accessor :name
|
@@ -1110,7 +1112,13 @@ module Google
|
|
1110
1112
|
# ctr`, `cvr`, `revenue-per-order`. If not specified, we choose default based on
|
1111
1113
|
# model type. Default depends on type of recommendation: `recommended-for-you` =>
|
1112
1114
|
# `ctr` `others-you-may-like` => `ctr` `frequently-bought-together` => `
|
1113
|
-
# revenue_per_order`
|
1115
|
+
# revenue_per_order` This field together with optimization_objective describe
|
1116
|
+
# model metadata to use to control model training and serving. See https://cloud.
|
1117
|
+
# google.com/retail/docs/models for more details on what the model metadata
|
1118
|
+
# control and which combination of parameters are valid. For invalid
|
1119
|
+
# combinations of parameters (e.g. type = `frequently-bought-together` and
|
1120
|
+
# optimization_objective = `ctr`), you receive an error 400 if you try to create/
|
1121
|
+
# update a recommendation with this set of knobs.
|
1114
1122
|
# Corresponds to the JSON property `optimizationObjective`
|
1115
1123
|
# @return [String]
|
1116
1124
|
attr_accessor :optimization_objective
|
@@ -1124,8 +1132,8 @@ module Google
|
|
1124
1132
|
attr_accessor :page_optimization_config
|
1125
1133
|
|
1126
1134
|
# Optional. The state of periodic tuning. The period we use is 3 months - to do
|
1127
|
-
# a one-off tune earlier use the TuneModel method. Default value is
|
1128
|
-
# PERIODIC_TUNING_ENABLED
|
1135
|
+
# a one-off tune earlier use the `TuneModel` method. Default value is `
|
1136
|
+
# PERIODIC_TUNING_ENABLED`.
|
1129
1137
|
# Corresponds to the JSON property `periodicTuningState`
|
1130
1138
|
# @return [String]
|
1131
1139
|
attr_accessor :periodic_tuning_state
|
@@ -1136,16 +1144,16 @@ module Google
|
|
1136
1144
|
# @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2alphaModelServingConfigList>]
|
1137
1145
|
attr_accessor :serving_config_lists
|
1138
1146
|
|
1139
|
-
# Output only. The serving state of the model: ACTIVE
|
1147
|
+
# Output only. The serving state of the model: `ACTIVE`, `NOT_ACTIVE`.
|
1140
1148
|
# Corresponds to the JSON property `servingState`
|
1141
1149
|
# @return [String]
|
1142
1150
|
attr_accessor :serving_state
|
1143
1151
|
|
1144
|
-
# Optional. The training state that the model is in (e.g. TRAINING or PAUSED)
|
1145
|
-
# Since part of the cost of running the service is frequency of training -
|
1146
|
-
# can be used to determine when to train model in order to control cost. If
|
1147
|
-
# specified: the default value for CreateModel method is TRAINING
|
1148
|
-
# value for UpdateModel method is to keep the state the same as before.
|
1152
|
+
# Optional. The training state that the model is in (e.g. `TRAINING` or `PAUSED`)
|
1153
|
+
# . Since part of the cost of running the service is frequency of training -
|
1154
|
+
# this can be used to determine when to train model in order to control cost. If
|
1155
|
+
# not specified: the default value for `CreateModel` method is `TRAINING`. The
|
1156
|
+
# default value for `UpdateModel` method is to keep the state the same as before.
|
1149
1157
|
# Corresponds to the JSON property `trainingState`
|
1150
1158
|
# @return [String]
|
1151
1159
|
attr_accessor :training_state
|
@@ -1159,8 +1167,14 @@ module Google
|
|
1159
1167
|
|
1160
1168
|
# Required. The type of model e.g. `home-page`. Currently supported values: `
|
1161
1169
|
# recommended-for-you`, `others-you-may-like`, `frequently-bought-together`, `
|
1162
|
-
# page-optimization`,
|
1163
|
-
# readonly value).
|
1170
|
+
# page-optimization`, `similar-items`, `buy-it-again`, and `recently-viewed`(
|
1171
|
+
# readonly value). This field together with optimization_objective describe
|
1172
|
+
# model metadata to use to control model training and serving. See https://cloud.
|
1173
|
+
# google.com/retail/docs/models for more details on what the model metadata
|
1174
|
+
# control and which combination of parameters are valid. For invalid
|
1175
|
+
# combinations of parameters (e.g. type = `frequently-bought-together` and
|
1176
|
+
# optimization_objective = `ctr`), you receive an error 400 if you try to create/
|
1177
|
+
# update a recommendation with this set of knobs.
|
1164
1178
|
# Corresponds to the JSON property `type`
|
1165
1179
|
# @return [String]
|
1166
1180
|
attr_accessor :type
|
@@ -1244,9 +1258,10 @@ module Google
|
|
1244
1258
|
class GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate
|
1245
1259
|
include Google::Apis::Core::Hashable
|
1246
1260
|
|
1247
|
-
# This has to be a valid ServingConfig identifier.
|
1248
|
-
# full name: `projects/*/locations/global/catalogs/
|
1249
|
-
# servingConfigs/my_candidate_config
|
1261
|
+
# This has to be a valid ServingConfig identifier. For example, for a
|
1262
|
+
# ServingConfig with full name: `projects/*/locations/global/catalogs/
|
1263
|
+
# default_catalog/servingConfigs/my_candidate_config`, this would be `
|
1264
|
+
# my_candidate_config`.
|
1250
1265
|
# Corresponds to the JSON property `servingConfigId`
|
1251
1266
|
# @return [String]
|
1252
1267
|
attr_accessor :serving_config_id
|
@@ -1293,13 +1308,13 @@ module Google
|
|
1293
1308
|
end
|
1294
1309
|
end
|
1295
1310
|
|
1296
|
-
# Represents an ordered combination of valid serving configs, which
|
1297
|
-
#
|
1311
|
+
# Represents an ordered combination of valid serving configs, which can be used
|
1312
|
+
# for `PAGE_OPTIMIZATION` recommendations.
|
1298
1313
|
class GoogleCloudRetailV2alphaModelServingConfigList
|
1299
1314
|
include Google::Apis::Core::Hashable
|
1300
1315
|
|
1301
|
-
# Optional. A set of valid serving configs that may be used for
|
1302
|
-
# PAGE_OPTIMIZATION
|
1316
|
+
# Optional. A set of valid serving configs that may be used for `
|
1317
|
+
# PAGE_OPTIMIZATION`.
|
1303
1318
|
# Corresponds to the JSON property `servingConfigIds`
|
1304
1319
|
# @return [Array<String>]
|
1305
1320
|
attr_accessor :serving_config_ids
|
@@ -1436,7 +1451,7 @@ module Google
|
|
1436
1451
|
end
|
1437
1452
|
end
|
1438
1453
|
|
1439
|
-
# Metadata for RejoinUserEvents method.
|
1454
|
+
# Metadata for `RejoinUserEvents` method.
|
1440
1455
|
class GoogleCloudRetailV2alphaRejoinUserEventsMetadata
|
1441
1456
|
include Google::Apis::Core::Hashable
|
1442
1457
|
|
@@ -1449,7 +1464,7 @@ module Google
|
|
1449
1464
|
end
|
1450
1465
|
end
|
1451
1466
|
|
1452
|
-
# Response message for RejoinUserEvents method.
|
1467
|
+
# Response message for `RejoinUserEvents` method.
|
1453
1468
|
class GoogleCloudRetailV2alphaRejoinUserEventsResponse
|
1454
1469
|
include Google::Apis::Core::Hashable
|
1455
1470
|
|
@@ -1587,8 +1602,9 @@ module Google
|
|
1587
1602
|
class GoogleCloudRetailV2alphaTuneModelMetadata
|
1588
1603
|
include Google::Apis::Core::Hashable
|
1589
1604
|
|
1590
|
-
# The resource name of the model that this tune applies to. Format: projects/`
|
1605
|
+
# The resource name of the model that this tune applies to. Format: `projects/`
|
1591
1606
|
# project_number`/locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
|
1607
|
+
# `
|
1592
1608
|
# Corresponds to the JSON property `model`
|
1593
1609
|
# @return [String]
|
1594
1610
|
attr_accessor :model
|
@@ -2526,8 +2542,8 @@ module Google
|
|
2526
2542
|
|
2527
2543
|
# The value of the term to match on. Value cannot be empty. Value can have at
|
2528
2544
|
# most 3 terms if specified as a partial match. Each space separated string is
|
2529
|
-
# considered as one term.
|
2530
|
-
# 4 terms and not allowed for partial match.
|
2545
|
+
# considered as one term. For example, "a b c" is 3 terms and allowed, but " a b
|
2546
|
+
# c d" is 4 terms and not allowed for a partial match.
|
2531
2547
|
# Corresponds to the JSON property `value`
|
2532
2548
|
# @return [String]
|
2533
2549
|
attr_accessor :value
|
@@ -2569,14 +2585,14 @@ module Google
|
|
2569
2585
|
end
|
2570
2586
|
end
|
2571
2587
|
|
2572
|
-
# Configures dynamic
|
2573
|
-
# search
|
2588
|
+
# Configures dynamic metadata that can be linked to a ServingConfig and affect
|
2589
|
+
# search or recommendation results at serving time.
|
2574
2590
|
class GoogleCloudRetailV2betaControl
|
2575
2591
|
include Google::Apis::Core::Hashable
|
2576
2592
|
|
2577
|
-
# Output only. List of serving configuration ids that
|
2578
|
-
#
|
2579
|
-
# an output only
|
2593
|
+
# Output only. List of serving configuration ids that are associated with this
|
2594
|
+
# control in the same Catalog. Note the association is managed via the
|
2595
|
+
# ServingConfig, this is an output only denormalized view.
|
2580
2596
|
# Corresponds to the JSON property `associatedServingConfigIds`
|
2581
2597
|
# @return [Array<String>]
|
2582
2598
|
attr_accessor :associated_serving_config_ids
|
@@ -2600,13 +2616,21 @@ module Google
|
|
2600
2616
|
attr_accessor :name
|
2601
2617
|
|
2602
2618
|
# A rule is a condition-action pair * A condition defines when a rule is to be
|
2603
|
-
# triggered. * An action specifies what occurs on that trigger. Currently
|
2604
|
-
#
|
2619
|
+
# triggered. * An action specifies what occurs on that trigger. Currently rules
|
2620
|
+
# only work for controls with SOLUTION_TYPE_SEARCH.
|
2605
2621
|
# Corresponds to the JSON property `rule`
|
2606
2622
|
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRule]
|
2607
2623
|
attr_accessor :rule
|
2608
2624
|
|
2609
|
-
#
|
2625
|
+
# Specifies the use case for the control. Affects what condition fields can be
|
2626
|
+
# set. Only settable by search controls. Will default to
|
2627
|
+
# SEARCH_SOLUTION_USE_CASE_SEARCH if not specified. Currently only allow one
|
2628
|
+
# search_solution_use_case per control.
|
2629
|
+
# Corresponds to the JSON property `searchSolutionUseCase`
|
2630
|
+
# @return [Array<String>]
|
2631
|
+
attr_accessor :search_solution_use_case
|
2632
|
+
|
2633
|
+
# Required. Immutable. The solution types that the control is used for.
|
2610
2634
|
# Currently we support setting only one type of solution at creation time. Only `
|
2611
2635
|
# SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is
|
2612
2636
|
# provided at creation time, will default to SOLUTION_TYPE_SEARCH.
|
@@ -2625,6 +2649,7 @@ module Google
|
|
2625
2649
|
@facet_spec = args[:facet_spec] if args.key?(:facet_spec)
|
2626
2650
|
@name = args[:name] if args.key?(:name)
|
2627
2651
|
@rule = args[:rule] if args.key?(:rule)
|
2652
|
+
@search_solution_use_case = args[:search_solution_use_case] if args.key?(:search_solution_use_case)
|
2628
2653
|
@solution_types = args[:solution_types] if args.key?(:solution_types)
|
2629
2654
|
end
|
2630
2655
|
end
|
@@ -2707,8 +2732,8 @@ module Google
|
|
2707
2732
|
end
|
2708
2733
|
end
|
2709
2734
|
|
2710
|
-
# Metadata related to the progress of the Export operation. This
|
2711
|
-
#
|
2735
|
+
# Metadata related to the progress of the Export operation. This is returned by
|
2736
|
+
# the google.longrunning.Operation.metadata field.
|
2712
2737
|
class GoogleCloudRetailV2betaExportMetadata
|
2713
2738
|
include Google::Apis::Core::Hashable
|
2714
2739
|
|
@@ -2836,7 +2861,7 @@ module Google
|
|
2836
2861
|
end
|
2837
2862
|
end
|
2838
2863
|
|
2839
|
-
# Google Cloud Storage location for input content.
|
2864
|
+
# Google Cloud Storage location for input content.
|
2840
2865
|
class GoogleCloudRetailV2betaGcsSource
|
2841
2866
|
include Google::Apis::Core::Hashable
|
2842
2867
|
|
@@ -2847,8 +2872,8 @@ module Google
|
|
2847
2872
|
# recommendations-ai/docs/upload-catalog#mc). Supported values for user events
|
2848
2873
|
# imports: * `user_event` (default): One JSON UserEvent per line. * `
|
2849
2874
|
# user_event_ga360`: Using https://support.google.com/analytics/answer/3437719.
|
2850
|
-
# Supported values for control imports: *
|
2851
|
-
# per line. Supported values for catalog attribute imports: *
|
2875
|
+
# Supported values for control imports: * `control` (default): One JSON Control
|
2876
|
+
# per line. Supported values for catalog attribute imports: * `catalog_attribute`
|
2852
2877
|
# (default): One CSV CatalogAttribute per line.
|
2853
2878
|
# Corresponds to the JSON property `dataSchema`
|
2854
2879
|
# @return [String]
|
@@ -2958,9 +2983,9 @@ module Google
|
|
2958
2983
|
attr_accessor :input_config
|
2959
2984
|
|
2960
2985
|
# Pub/Sub topic for receiving notification. If this field is set, when the
|
2961
|
-
# import is finished, a notification
|
2962
|
-
#
|
2963
|
-
#
|
2986
|
+
# import is finished, a notification is sent to specified Pub/Sub topic. The
|
2987
|
+
# message data is JSON string of a Operation. Format of the Pub/Sub topic is `
|
2988
|
+
# projects/`project`/topics/`topic``.
|
2964
2989
|
# Corresponds to the JSON property `notificationPubsubTopic`
|
2965
2990
|
# @return [String]
|
2966
2991
|
attr_accessor :notification_pubsub_topic
|
@@ -3002,8 +3027,8 @@ module Google
|
|
3002
3027
|
include Google::Apis::Core::Hashable
|
3003
3028
|
|
3004
3029
|
# Google Cloud Storage prefix for import errors. This must be an empty, existing
|
3005
|
-
# Cloud Storage directory. Import errors
|
3006
|
-
#
|
3030
|
+
# Cloud Storage directory. Import errors are written to sharded files in this
|
3031
|
+
# directory, one per line, as a JSON-encoded `google.rpc.Status` message.
|
3007
3032
|
# Corresponds to the JSON property `gcsPrefix`
|
3008
3033
|
# @return [String]
|
3009
3034
|
attr_accessor :gcs_prefix
|
@@ -3018,8 +3043,8 @@ module Google
|
|
3018
3043
|
end
|
3019
3044
|
end
|
3020
3045
|
|
3021
|
-
# Metadata related to the progress of the Import operation. This
|
3022
|
-
#
|
3046
|
+
# Metadata related to the progress of the Import operation. This is returned by
|
3047
|
+
# the google.longrunning.Operation.metadata field.
|
3023
3048
|
class GoogleCloudRetailV2betaImportMetadata
|
3024
3049
|
include Google::Apis::Core::Hashable
|
3025
3050
|
|
@@ -3034,9 +3059,9 @@ module Google
|
|
3034
3059
|
attr_accessor :failure_count
|
3035
3060
|
|
3036
3061
|
# Pub/Sub topic for receiving notification. If this field is set, when the
|
3037
|
-
# import is finished, a notification
|
3038
|
-
#
|
3039
|
-
#
|
3062
|
+
# import is finished, a notification is sent to specified Pub/Sub topic. The
|
3063
|
+
# message data is JSON string of a Operation. Format of the Pub/Sub topic is `
|
3064
|
+
# projects/`project`/topics/`topic``.
|
3040
3065
|
# Corresponds to the JSON property `notificationPubsubTopic`
|
3041
3066
|
# @return [String]
|
3042
3067
|
attr_accessor :notification_pubsub_topic
|
@@ -3087,12 +3112,12 @@ module Google
|
|
3087
3112
|
attr_accessor :input_config
|
3088
3113
|
|
3089
3114
|
# Full Pub/Sub topic name for receiving notification. If this field is set, when
|
3090
|
-
# the import is finished, a notification
|
3091
|
-
#
|
3092
|
-
#
|
3093
|
-
#
|
3094
|
-
#
|
3095
|
-
#
|
3115
|
+
# the import is finished, a notification is sent to specified Pub/Sub topic. The
|
3116
|
+
# message data is JSON string of a Operation. Format of the Pub/Sub topic is `
|
3117
|
+
# projects/`project`/topics/`topic``. It has to be within the same project as
|
3118
|
+
# ImportProductsRequest.parent. Make sure that `service-@gcp-sa-retail.iam.
|
3119
|
+
# gserviceaccount.com` has the `pubsub.topics.publish` IAM permission on the
|
3120
|
+
# topic.
|
3096
3121
|
# Corresponds to the JSON property `notificationPubsubTopic`
|
3097
3122
|
# @return [String]
|
3098
3123
|
attr_accessor :notification_pubsub_topic
|
@@ -3108,8 +3133,8 @@ module Google
|
|
3108
3133
|
# @return [String]
|
3109
3134
|
attr_accessor :request_id
|
3110
3135
|
|
3111
|
-
# Indicates which fields in the provided imported
|
3112
|
-
# set,
|
3136
|
+
# Indicates which fields in the provided imported `products` to update. If not
|
3137
|
+
# set, all fields are updated.
|
3113
3138
|
# Corresponds to the JSON property `updateMask`
|
3114
3139
|
# @return [String]
|
3115
3140
|
attr_accessor :update_mask
|
@@ -3303,6 +3328,31 @@ module Google
|
|
3303
3328
|
end
|
3304
3329
|
end
|
3305
3330
|
|
3331
|
+
# Response to a ListModelRequest.
|
3332
|
+
class GoogleCloudRetailV2betaListModelsResponse
|
3333
|
+
include Google::Apis::Core::Hashable
|
3334
|
+
|
3335
|
+
# List of Models.
|
3336
|
+
# Corresponds to the JSON property `models`
|
3337
|
+
# @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaModel>]
|
3338
|
+
attr_accessor :models
|
3339
|
+
|
3340
|
+
# Pagination token, if not returned indicates the last page.
|
3341
|
+
# Corresponds to the JSON property `nextPageToken`
|
3342
|
+
# @return [String]
|
3343
|
+
attr_accessor :next_page_token
|
3344
|
+
|
3345
|
+
def initialize(**args)
|
3346
|
+
update!(**args)
|
3347
|
+
end
|
3348
|
+
|
3349
|
+
# Update properties of this object
|
3350
|
+
def update!(**args)
|
3351
|
+
@models = args[:models] if args.key?(:models)
|
3352
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
3353
|
+
end
|
3354
|
+
end
|
3355
|
+
|
3306
3356
|
# Response message for ProductService.ListProducts method.
|
3307
3357
|
class GoogleCloudRetailV2betaListProductsResponse
|
3308
3358
|
include Google::Apis::Core::Hashable
|
@@ -3489,6 +3539,166 @@ module Google
|
|
3489
3539
|
end
|
3490
3540
|
end
|
3491
3541
|
|
3542
|
+
# Metadata that describes the training and serving parameters of a Model. A
|
3543
|
+
# Model can be associated with a ServingConfig and then queried through the
|
3544
|
+
# Predict API.
|
3545
|
+
class GoogleCloudRetailV2betaModel
|
3546
|
+
include Google::Apis::Core::Hashable
|
3547
|
+
|
3548
|
+
# Output only. Timestamp the Recommendation Model was created at.
|
3549
|
+
# Corresponds to the JSON property `createTime`
|
3550
|
+
# @return [String]
|
3551
|
+
attr_accessor :create_time
|
3552
|
+
|
3553
|
+
# Output only. The state of data requirements for this model: `DATA_OK` and `
|
3554
|
+
# DATA_ERROR`. Recommendation model cannot be trained if the data is in `
|
3555
|
+
# DATA_ERROR` state. Recommendation model can have `DATA_ERROR` state even if
|
3556
|
+
# serving state is `ACTIVE`: models were trained successfully before, but cannot
|
3557
|
+
# be refreshed because model no longer has sufficient data for training.
|
3558
|
+
# Corresponds to the JSON property `dataState`
|
3559
|
+
# @return [String]
|
3560
|
+
attr_accessor :data_state
|
3561
|
+
|
3562
|
+
# Required. The display name of the model. Should be human readable, used to
|
3563
|
+
# display Recommendation Models in the Retail Cloud Console Dashboard. UTF-8
|
3564
|
+
# encoded string with limit of 1024 characters.
|
3565
|
+
# Corresponds to the JSON property `displayName`
|
3566
|
+
# @return [String]
|
3567
|
+
attr_accessor :display_name
|
3568
|
+
|
3569
|
+
# Optional. If `RECOMMENDATIONS_FILTERING_ENABLED`, recommendation filtering by
|
3570
|
+
# attributes is enabled for the model.
|
3571
|
+
# Corresponds to the JSON property `filteringOption`
|
3572
|
+
# @return [String]
|
3573
|
+
attr_accessor :filtering_option
|
3574
|
+
|
3575
|
+
# Output only. The timestamp when the latest successful tune finished.
|
3576
|
+
# Corresponds to the JSON property `lastTuneTime`
|
3577
|
+
# @return [String]
|
3578
|
+
attr_accessor :last_tune_time
|
3579
|
+
|
3580
|
+
# Required. The fully qualified resource name of the model. Format: `projects/`
|
3581
|
+
# project_number`/locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
|
3582
|
+
# ` catalog_id has char limit of 50. recommendation_model_id has char limit of
|
3583
|
+
# 40.
|
3584
|
+
# Corresponds to the JSON property `name`
|
3585
|
+
# @return [String]
|
3586
|
+
attr_accessor :name
|
3587
|
+
|
3588
|
+
# Optional. The optimization objective e.g. `cvr`. Currently supported values: `
|
3589
|
+
# ctr`, `cvr`, `revenue-per-order`. If not specified, we choose default based on
|
3590
|
+
# model type. Default depends on type of recommendation: `recommended-for-you` =>
|
3591
|
+
# `ctr` `others-you-may-like` => `ctr` `frequently-bought-together` => `
|
3592
|
+
# revenue_per_order` This field together with optimization_objective describe
|
3593
|
+
# model metadata to use to control model training and serving. See https://cloud.
|
3594
|
+
# google.com/retail/docs/models for more details on what the model metadata
|
3595
|
+
# control and which combination of parameters are valid. For invalid
|
3596
|
+
# combinations of parameters (e.g. type = `frequently-bought-together` and
|
3597
|
+
# optimization_objective = `ctr`), you receive an error 400 if you try to create/
|
3598
|
+
# update a recommendation with this set of knobs.
|
3599
|
+
# Corresponds to the JSON property `optimizationObjective`
|
3600
|
+
# @return [String]
|
3601
|
+
attr_accessor :optimization_objective
|
3602
|
+
|
3603
|
+
# Optional. The state of periodic tuning. The period we use is 3 months - to do
|
3604
|
+
# a one-off tune earlier use the `TuneModel` method. Default value is `
|
3605
|
+
# PERIODIC_TUNING_ENABLED`.
|
3606
|
+
# Corresponds to the JSON property `periodicTuningState`
|
3607
|
+
# @return [String]
|
3608
|
+
attr_accessor :periodic_tuning_state
|
3609
|
+
|
3610
|
+
# Output only. The list of valid serving configs associated with the
|
3611
|
+
# PageOptimizationConfig.
|
3612
|
+
# Corresponds to the JSON property `servingConfigLists`
|
3613
|
+
# @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaModelServingConfigList>]
|
3614
|
+
attr_accessor :serving_config_lists
|
3615
|
+
|
3616
|
+
# Output only. The serving state of the model: `ACTIVE`, `NOT_ACTIVE`.
|
3617
|
+
# Corresponds to the JSON property `servingState`
|
3618
|
+
# @return [String]
|
3619
|
+
attr_accessor :serving_state
|
3620
|
+
|
3621
|
+
# Optional. The training state that the model is in (e.g. `TRAINING` or `PAUSED`)
|
3622
|
+
# . Since part of the cost of running the service is frequency of training -
|
3623
|
+
# this can be used to determine when to train model in order to control cost. If
|
3624
|
+
# not specified: the default value for `CreateModel` method is `TRAINING`. The
|
3625
|
+
# default value for `UpdateModel` method is to keep the state the same as before.
|
3626
|
+
# Corresponds to the JSON property `trainingState`
|
3627
|
+
# @return [String]
|
3628
|
+
attr_accessor :training_state
|
3629
|
+
|
3630
|
+
# Output only. The tune operation associated with the model. Can be used to
|
3631
|
+
# determine if there is an ongoing tune for this recommendation. Empty field
|
3632
|
+
# implies no tune is goig on.
|
3633
|
+
# Corresponds to the JSON property `tuningOperation`
|
3634
|
+
# @return [String]
|
3635
|
+
attr_accessor :tuning_operation
|
3636
|
+
|
3637
|
+
# Required. The type of model e.g. `home-page`. Currently supported values: `
|
3638
|
+
# recommended-for-you`, `others-you-may-like`, `frequently-bought-together`, `
|
3639
|
+
# page-optimization`, `similar-items`, `buy-it-again`, and `recently-viewed`(
|
3640
|
+
# readonly value). This field together with optimization_objective describe
|
3641
|
+
# model metadata to use to control model training and serving. See https://cloud.
|
3642
|
+
# google.com/retail/docs/models for more details on what the model metadata
|
3643
|
+
# control and which combination of parameters are valid. For invalid
|
3644
|
+
# combinations of parameters (e.g. type = `frequently-bought-together` and
|
3645
|
+
# optimization_objective = `ctr`), you receive an error 400 if you try to create/
|
3646
|
+
# update a recommendation with this set of knobs.
|
3647
|
+
# Corresponds to the JSON property `type`
|
3648
|
+
# @return [String]
|
3649
|
+
attr_accessor :type
|
3650
|
+
|
3651
|
+
# Output only. Timestamp the Recommendation Model was last updated. E.g. if a
|
3652
|
+
# Recommendation Model was paused - this would be the time the pause was
|
3653
|
+
# initiated.
|
3654
|
+
# Corresponds to the JSON property `updateTime`
|
3655
|
+
# @return [String]
|
3656
|
+
attr_accessor :update_time
|
3657
|
+
|
3658
|
+
def initialize(**args)
|
3659
|
+
update!(**args)
|
3660
|
+
end
|
3661
|
+
|
3662
|
+
# Update properties of this object
|
3663
|
+
def update!(**args)
|
3664
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
3665
|
+
@data_state = args[:data_state] if args.key?(:data_state)
|
3666
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
3667
|
+
@filtering_option = args[:filtering_option] if args.key?(:filtering_option)
|
3668
|
+
@last_tune_time = args[:last_tune_time] if args.key?(:last_tune_time)
|
3669
|
+
@name = args[:name] if args.key?(:name)
|
3670
|
+
@optimization_objective = args[:optimization_objective] if args.key?(:optimization_objective)
|
3671
|
+
@periodic_tuning_state = args[:periodic_tuning_state] if args.key?(:periodic_tuning_state)
|
3672
|
+
@serving_config_lists = args[:serving_config_lists] if args.key?(:serving_config_lists)
|
3673
|
+
@serving_state = args[:serving_state] if args.key?(:serving_state)
|
3674
|
+
@training_state = args[:training_state] if args.key?(:training_state)
|
3675
|
+
@tuning_operation = args[:tuning_operation] if args.key?(:tuning_operation)
|
3676
|
+
@type = args[:type] if args.key?(:type)
|
3677
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
3678
|
+
end
|
3679
|
+
end
|
3680
|
+
|
3681
|
+
# Represents an ordered combination of valid serving configs, which can be used
|
3682
|
+
# for `PAGE_OPTIMIZATION` recommendations.
|
3683
|
+
class GoogleCloudRetailV2betaModelServingConfigList
|
3684
|
+
include Google::Apis::Core::Hashable
|
3685
|
+
|
3686
|
+
# Optional. A set of valid serving configs that may be used for `
|
3687
|
+
# PAGE_OPTIMIZATION`.
|
3688
|
+
# Corresponds to the JSON property `servingConfigIds`
|
3689
|
+
# @return [Array<String>]
|
3690
|
+
attr_accessor :serving_config_ids
|
3691
|
+
|
3692
|
+
def initialize(**args)
|
3693
|
+
update!(**args)
|
3694
|
+
end
|
3695
|
+
|
3696
|
+
# Update properties of this object
|
3697
|
+
def update!(**args)
|
3698
|
+
@serving_config_ids = args[:serving_config_ids] if args.key?(:serving_config_ids)
|
3699
|
+
end
|
3700
|
+
end
|
3701
|
+
|
3492
3702
|
# Output result.
|
3493
3703
|
class GoogleCloudRetailV2betaOutputResult
|
3494
3704
|
include Google::Apis::Core::Hashable
|
@@ -3508,6 +3718,19 @@ module Google
|
|
3508
3718
|
end
|
3509
3719
|
end
|
3510
3720
|
|
3721
|
+
# Request for pausing training of a model.
|
3722
|
+
class GoogleCloudRetailV2betaPauseModelRequest
|
3723
|
+
include Google::Apis::Core::Hashable
|
3724
|
+
|
3725
|
+
def initialize(**args)
|
3726
|
+
update!(**args)
|
3727
|
+
end
|
3728
|
+
|
3729
|
+
# Update properties of this object
|
3730
|
+
def update!(**args)
|
3731
|
+
end
|
3732
|
+
end
|
3733
|
+
|
3511
3734
|
# Request message for Predict method.
|
3512
3735
|
class GoogleCloudRetailV2betaPredictRequest
|
3513
3736
|
include Google::Apis::Core::Hashable
|
@@ -3849,11 +4072,11 @@ module Google
|
|
3849
4072
|
# belonging to several parallel categories. Strongly recommended using the full
|
3850
4073
|
# path for better search / recommendation quality. To represent full path of
|
3851
4074
|
# category, use '>' sign to separate different hierarchies. If '>' is part of
|
3852
|
-
# the category name,
|
3853
|
-
#
|
3854
|
-
#
|
3855
|
-
#
|
3856
|
-
#
|
4075
|
+
# the category name, replace it with other character(s). For example, if a shoes
|
4076
|
+
# product belongs to both ["Shoes & Accessories" -> "Shoes"] and ["Sports &
|
4077
|
+
# Fitness" -> "Athletic Clothing" -> "Shoes"], it could be represented as: "
|
4078
|
+
# categories": [ "Shoes & Accessories > Shoes", "Sports & Fitness > Athletic
|
4079
|
+
# Clothing > Shoes" ] Must be set for Type.PRIMARY Product otherwise an
|
3857
4080
|
# INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product.
|
3858
4081
|
# Empty values are not allowed. Each value must be a UTF-8 encoded string with
|
3859
4082
|
# a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is
|
@@ -3961,6 +4184,13 @@ module Google
|
|
3961
4184
|
# @return [String]
|
3962
4185
|
attr_accessor :language_code
|
3963
4186
|
|
4187
|
+
# Output only. A list of local inventories specific to different places. This is
|
4188
|
+
# only available for users who have Retail Search enabled, and it can be managed
|
4189
|
+
# by AddLocalInventories and RemoveLocalInventories APIs.
|
4190
|
+
# Corresponds to the JSON property `localInventories`
|
4191
|
+
# @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaLocalInventory>]
|
4192
|
+
attr_accessor :local_inventories
|
4193
|
+
|
3964
4194
|
# The material of the product. For example, "leather", "wooden". A maximum of 20
|
3965
4195
|
# values are allowed. Each value must be a UTF-8 encoded string with a length
|
3966
4196
|
# limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
@@ -4139,6 +4369,7 @@ module Google
|
|
4139
4369
|
@id = args[:id] if args.key?(:id)
|
4140
4370
|
@images = args[:images] if args.key?(:images)
|
4141
4371
|
@language_code = args[:language_code] if args.key?(:language_code)
|
4372
|
+
@local_inventories = args[:local_inventories] if args.key?(:local_inventories)
|
4142
4373
|
@materials = args[:materials] if args.key?(:materials)
|
4143
4374
|
@name = args[:name] if args.key?(:name)
|
4144
4375
|
@patterns = args[:patterns] if args.key?(:patterns)
|
@@ -4216,7 +4447,7 @@ module Google
|
|
4216
4447
|
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaBigQuerySource]
|
4217
4448
|
attr_accessor :big_query_source
|
4218
4449
|
|
4219
|
-
# Google Cloud Storage location for input content.
|
4450
|
+
# Google Cloud Storage location for input content.
|
4220
4451
|
# Corresponds to the JSON property `gcsSource`
|
4221
4452
|
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaGcsSource]
|
4222
4453
|
attr_accessor :gcs_source
|
@@ -4465,7 +4696,7 @@ module Google
|
|
4465
4696
|
end
|
4466
4697
|
end
|
4467
4698
|
|
4468
|
-
# Metadata for RejoinUserEvents method.
|
4699
|
+
# Metadata for `RejoinUserEvents` method.
|
4469
4700
|
class GoogleCloudRetailV2betaRejoinUserEventsMetadata
|
4470
4701
|
include Google::Apis::Core::Hashable
|
4471
4702
|
|
@@ -4483,8 +4714,8 @@ module Google
|
|
4483
4714
|
include Google::Apis::Core::Hashable
|
4484
4715
|
|
4485
4716
|
# The type of the user event rejoin to define the scope and range of the user
|
4486
|
-
# events to be rejoined with the latest product catalog. Defaults to
|
4487
|
-
# USER_EVENT_REJOIN_SCOPE_UNSPECIFIED if this field is not set, or set to an
|
4717
|
+
# events to be rejoined with the latest product catalog. Defaults to `
|
4718
|
+
# USER_EVENT_REJOIN_SCOPE_UNSPECIFIED` if this field is not set, or set to an
|
4488
4719
|
# invalid integer value.
|
4489
4720
|
# Corresponds to the JSON property `userEventRejoinScope`
|
4490
4721
|
# @return [String]
|
@@ -4500,7 +4731,7 @@ module Google
|
|
4500
4731
|
end
|
4501
4732
|
end
|
4502
4733
|
|
4503
|
-
# Response message for RejoinUserEvents method.
|
4734
|
+
# Response message for `RejoinUserEvents` method.
|
4504
4735
|
class GoogleCloudRetailV2betaRejoinUserEventsResponse
|
4505
4736
|
include Google::Apis::Core::Hashable
|
4506
4737
|
|
@@ -4738,9 +4969,22 @@ module Google
|
|
4738
4969
|
end
|
4739
4970
|
end
|
4740
4971
|
|
4972
|
+
# Request for resuming training of a model.
|
4973
|
+
class GoogleCloudRetailV2betaResumeModelRequest
|
4974
|
+
include Google::Apis::Core::Hashable
|
4975
|
+
|
4976
|
+
def initialize(**args)
|
4977
|
+
update!(**args)
|
4978
|
+
end
|
4979
|
+
|
4980
|
+
# Update properties of this object
|
4981
|
+
def update!(**args)
|
4982
|
+
end
|
4983
|
+
end
|
4984
|
+
|
4741
4985
|
# A rule is a condition-action pair * A condition defines when a rule is to be
|
4742
|
-
# triggered. * An action specifies what occurs on that trigger. Currently
|
4743
|
-
#
|
4986
|
+
# triggered. * An action specifies what occurs on that trigger. Currently rules
|
4987
|
+
# only work for controls with SOLUTION_TYPE_SEARCH.
|
4744
4988
|
class GoogleCloudRetailV2betaRule
|
4745
4989
|
include Google::Apis::Core::Hashable
|
4746
4990
|
|
@@ -5149,9 +5393,9 @@ module Google
|
|
5149
5393
|
# navigation queries to achieve good search quality. The format should be the
|
5150
5394
|
# same as UserEvent.page_categories; To represent full path of category, use '>'
|
5151
5395
|
# sign to separate different hierarchies. If '>' is part of the category name,
|
5152
|
-
#
|
5153
|
-
#
|
5154
|
-
#
|
5396
|
+
# replace it with other character(s). Category pages include special pages such
|
5397
|
+
# as sales or promotions. For instance, a special sale page may have the
|
5398
|
+
# category hierarchy: "pageCategories" : ["Sales > 2017 Black Friday Deals"].
|
5155
5399
|
# Corresponds to the JSON property `pageCategories`
|
5156
5400
|
# @return [Array<String>]
|
5157
5401
|
attr_accessor :page_categories
|
@@ -5877,9 +6121,7 @@ module Google
|
|
5877
6121
|
end
|
5878
6122
|
|
5879
6123
|
# Configures metadata that is used to generate serving time results (e.g. search
|
5880
|
-
# results or recommendation predictions).
|
5881
|
-
# search and predict request and together with the Catalog.default_branch,
|
5882
|
-
# generates results.
|
6124
|
+
# results or recommendation predictions).
|
5883
6125
|
class GoogleCloudRetailV2betaServingConfig
|
5884
6126
|
include Google::Apis::Core::Hashable
|
5885
6127
|
|
@@ -5902,16 +6144,21 @@ module Google
|
|
5902
6144
|
# @return [String]
|
5903
6145
|
attr_accessor :display_name
|
5904
6146
|
|
5905
|
-
# How much diversity to use in recommendation model results e.g.
|
5906
|
-
# diversity
|
5907
|
-
#
|
6147
|
+
# How much diversity to use in recommendation model results e.g. `medium-
|
6148
|
+
# diversity` or `high-diversity`. Currently supported values: * `no-diversity` *
|
6149
|
+
# `low-diversity` * `medium-diversity` * `high-diversity` * `auto-diversity` If
|
5908
6150
|
# not specified, we choose default based on recommendation model type. Default
|
5909
|
-
# value:
|
6151
|
+
# value: `no-diversity`. Can only be set if solution_types is
|
5910
6152
|
# SOLUTION_TYPE_RECOMMENDATION.
|
5911
6153
|
# Corresponds to the JSON property `diversityLevel`
|
5912
6154
|
# @return [String]
|
5913
6155
|
attr_accessor :diversity_level
|
5914
6156
|
|
6157
|
+
# What kind of diversity to use - data driven or rule based.
|
6158
|
+
# Corresponds to the JSON property `diversityType`
|
6159
|
+
# @return [String]
|
6160
|
+
attr_accessor :diversity_type
|
6161
|
+
|
5915
6162
|
# Condition do not associate specifications. If multiple do not associate
|
5916
6163
|
# conditions match, all matching do not associate controls in the list will
|
5917
6164
|
# execute. - Order does not matter. - Maximum number of specifications is 100.
|
@@ -5925,10 +6172,10 @@ module Google
|
|
5925
6172
|
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestDynamicFacetSpec]
|
5926
6173
|
attr_accessor :dynamic_facet_spec
|
5927
6174
|
|
5928
|
-
# Whether to add additional category filters on the
|
5929
|
-
# not specified, we enable it by default. Allowed values are: *
|
5930
|
-
# match
|
5931
|
-
# customer's filters. *
|
6175
|
+
# Whether to add additional category filters on the `similar-items` model. If
|
6176
|
+
# not specified, we enable it by default. Allowed values are: * `no-category-
|
6177
|
+
# match`: No additional filtering of original results from the model and the
|
6178
|
+
# customer's filters. * `relaxed-category-match`: Only keep results with
|
5932
6179
|
# categories that match at least one item categories in the PredictRequests's
|
5933
6180
|
# context item. * If customer also sends filters in the PredictRequest, then the
|
5934
6181
|
# results will satisfy both conditions (user given and category match). Can only
|
@@ -5962,7 +6209,7 @@ module Google
|
|
5962
6209
|
# @return [Array<String>]
|
5963
6210
|
attr_accessor :ignore_control_ids
|
5964
6211
|
|
5965
|
-
# The id of the model to use at serving time. Currently only
|
6212
|
+
# The id of the model in the same Catalog to use at serving time. Currently only
|
5966
6213
|
# RecommendationModels are supported: https://cloud.google.com/retail/
|
5967
6214
|
# recommendations-ai/docs/create-models Can be changed but only to a compatible
|
5968
6215
|
# model (e.g. others-you-may-like CTR to others-you-may-like CVR). Required when
|
@@ -5986,13 +6233,18 @@ module Google
|
|
5986
6233
|
# @return [Array<String>]
|
5987
6234
|
attr_accessor :oneway_synonyms_control_ids
|
5988
6235
|
|
6236
|
+
# The specification for personalization.
|
6237
|
+
# Corresponds to the JSON property `personalizationSpec`
|
6238
|
+
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestPersonalizationSpec]
|
6239
|
+
attr_accessor :personalization_spec
|
6240
|
+
|
5989
6241
|
# How much price ranking we want in serving results. Price reranking causes
|
5990
6242
|
# product items with a similar recommendation probability to be ordered by price,
|
5991
6243
|
# with the highest-priced items first. This setting could result in a decrease
|
5992
|
-
# in click-through and conversion rates. Allowed values are: *
|
5993
|
-
# reranking
|
5994
|
-
# reranking
|
5995
|
-
# value:
|
6244
|
+
# in click-through and conversion rates. Allowed values are: * `no-price-
|
6245
|
+
# reranking` * `low-price-raranking` * `medium-price-reranking` * `high-price-
|
6246
|
+
# reranking` If not specified, we choose default based on model type. Default
|
6247
|
+
# value: `no-price-reranking`. Can only be set if solution_types is
|
5996
6248
|
# SOLUTION_TYPE_RECOMMENDATION.
|
5997
6249
|
# Corresponds to the JSON property `priceRerankingLevel`
|
5998
6250
|
# @return [String]
|
@@ -6036,6 +6288,7 @@ module Google
|
|
6036
6288
|
@boost_control_ids = args[:boost_control_ids] if args.key?(:boost_control_ids)
|
6037
6289
|
@display_name = args[:display_name] if args.key?(:display_name)
|
6038
6290
|
@diversity_level = args[:diversity_level] if args.key?(:diversity_level)
|
6291
|
+
@diversity_type = args[:diversity_type] if args.key?(:diversity_type)
|
6039
6292
|
@do_not_associate_control_ids = args[:do_not_associate_control_ids] if args.key?(:do_not_associate_control_ids)
|
6040
6293
|
@dynamic_facet_spec = args[:dynamic_facet_spec] if args.key?(:dynamic_facet_spec)
|
6041
6294
|
@enable_category_filter_level = args[:enable_category_filter_level] if args.key?(:enable_category_filter_level)
|
@@ -6045,6 +6298,7 @@ module Google
|
|
6045
6298
|
@model_id = args[:model_id] if args.key?(:model_id)
|
6046
6299
|
@name = args[:name] if args.key?(:name)
|
6047
6300
|
@oneway_synonyms_control_ids = args[:oneway_synonyms_control_ids] if args.key?(:oneway_synonyms_control_ids)
|
6301
|
+
@personalization_spec = args[:personalization_spec] if args.key?(:personalization_spec)
|
6048
6302
|
@price_reranking_level = args[:price_reranking_level] if args.key?(:price_reranking_level)
|
6049
6303
|
@redirect_control_ids = args[:redirect_control_ids] if args.key?(:redirect_control_ids)
|
6050
6304
|
@replacement_control_ids = args[:replacement_control_ids] if args.key?(:replacement_control_ids)
|
@@ -6167,6 +6421,20 @@ module Google
|
|
6167
6421
|
end
|
6168
6422
|
end
|
6169
6423
|
|
6424
|
+
# Request to manually start a tuning process now (instead of waiting for the
|
6425
|
+
# periodically scheduled tuning to happen).
|
6426
|
+
class GoogleCloudRetailV2betaTuneModelRequest
|
6427
|
+
include Google::Apis::Core::Hashable
|
6428
|
+
|
6429
|
+
def initialize(**args)
|
6430
|
+
update!(**args)
|
6431
|
+
end
|
6432
|
+
|
6433
|
+
# Update properties of this object
|
6434
|
+
def update!(**args)
|
6435
|
+
end
|
6436
|
+
end
|
6437
|
+
|
6170
6438
|
# UserEvent captures all metadata information Retail API needs to know about how
|
6171
6439
|
# end users interact with customers' website.
|
6172
6440
|
class GoogleCloudRetailV2betaUserEvent
|
@@ -6275,12 +6543,12 @@ module Google
|
|
6275
6543
|
|
6276
6544
|
# The categories associated with a category page. To represent full path of
|
6277
6545
|
# category, use '>' sign to separate different hierarchies. If '>' is part of
|
6278
|
-
# the category name,
|
6279
|
-
#
|
6280
|
-
#
|
6281
|
-
#
|
6282
|
-
#
|
6283
|
-
#
|
6546
|
+
# the category name, replace it with other character(s). Category pages include
|
6547
|
+
# special pages such as sales or promotions. For instance, a special sale page
|
6548
|
+
# may have the category hierarchy: "pageCategories" : ["Sales > 2017 Black
|
6549
|
+
# Friday Deals"]. Required for `category-page-view` events. At least one of
|
6550
|
+
# search_query or page_categories is required for `search` events. Other event
|
6551
|
+
# types should not set this field. Otherwise, an INVALID_ARGUMENT error is
|
6284
6552
|
# returned.
|
6285
6553
|
# Corresponds to the JSON property `pageCategories`
|
6286
6554
|
# @return [Array<String>]
|
@@ -6449,7 +6717,7 @@ module Google
|
|
6449
6717
|
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaBigQuerySource]
|
6450
6718
|
attr_accessor :big_query_source
|
6451
6719
|
|
6452
|
-
# Google Cloud Storage location for input content.
|
6720
|
+
# Google Cloud Storage location for input content.
|
6453
6721
|
# Corresponds to the JSON property `gcsSource`
|
6454
6722
|
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaGcsSource]
|
6455
6723
|
attr_accessor :gcs_source
|