Skip to content

Commit aa9a74f

Browse files
feat: Automated regeneration of retail v2 client (googleapis#20390)
Auto-created at 2024-10-13 09:54:52 +0000 using the toys pull request generator.
1 parent eebbb15 commit aa9a74f

File tree

5 files changed

+55
-6
lines changed

5 files changed

+55
-6
lines changed

api_names_out.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284205,6 +284205,9 @@
284205284205
"/retail:v2/GoogleCloudRetailV2alphaModelFrequentlyBoughtTogetherFeaturesConfig/contextProductsType": context_products_type
284206284206
"/retail:v2/GoogleCloudRetailV2alphaModelModelFeaturesConfig": google_cloud_retail_v2alpha_model_model_features_config
284207284207
"/retail:v2/GoogleCloudRetailV2alphaModelModelFeaturesConfig/frequentlyBoughtTogetherConfig": frequently_bought_together_config
284208+
"/retail:v2/GoogleCloudRetailV2alphaModelModelFeaturesConfig/llmEmbeddingConfig": llm_embedding_config
284209+
"/retail:v2/GoogleCloudRetailV2alphaModelModelFeaturesConfigLlmEmbeddingConfig": google_cloud_retail_v2alpha_model_model_features_config_llm_embedding_config
284210+
"/retail:v2/GoogleCloudRetailV2alphaModelModelFeaturesConfigLlmEmbeddingConfig/llmEmbeddingVersion": llm_embedding_version
284208284211
"/retail:v2/GoogleCloudRetailV2alphaModelPageOptimizationConfig": google_cloud_retail_v2alpha_model_page_optimization_config
284209284212
"/retail:v2/GoogleCloudRetailV2alphaModelPageOptimizationConfig/pageOptimizationEventType": page_optimization_event_type
284210284213
"/retail:v2/GoogleCloudRetailV2alphaModelPageOptimizationConfig/panels": panels

generated/google-apis-retail_v2/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-retail_v2
22

3+
### v0.103.0 (2024-10-13)
4+
5+
* Regenerated from discovery document revision 20241003
6+
37
### v0.102.0 (2024-09-29)
48

59
* Regenerated from discovery document revision 20240920

generated/google-apis-retail_v2/lib/google/apis/retail_v2/classes.rb

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3387,10 +3387,9 @@ class GoogleCloudRetailV2Product
33873387
# attribute, as specified in attributes. For Type.PRIMARY and Type.COLLECTION,
33883388
# the following fields are always returned in SearchResponse by default: * name
33893389
# For Type.VARIANT, the following fields are always returned in by default: *
3390-
# name * color_info The maximum number of paths is 30. Otherwise, an
3391-
# INVALID_ARGUMENT error is returned. Note: Returning more fields in
3392-
# SearchResponse can increase response payload size and serving latency. This
3393-
# field is deprecated. Use the retrievable site-wide control instead.
3390+
# name * color_info Note: Returning more fields in SearchResponse can increase
3391+
# response payload size and serving latency. This field is deprecated. Use the
3392+
# retrievable site-wide control instead.
33943393
# Corresponds to the JSON property `retrievableFields`
33953394
# @return [String]
33963395
attr_accessor :retrievable_fields
@@ -7413,13 +7412,41 @@ class GoogleCloudRetailV2alphaModelModelFeaturesConfig
74137412
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelFrequentlyBoughtTogetherFeaturesConfig]
74147413
attr_accessor :frequently_bought_together_config
74157414

7415+
# Config that turns on usage of llm embeddings as features to the model.
7416+
# Embeddings leverage unstructured text fields like description and title.
7417+
# Corresponds to the JSON property `llmEmbeddingConfig`
7418+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelModelFeaturesConfigLlmEmbeddingConfig]
7419+
attr_accessor :llm_embedding_config
7420+
74167421
def initialize(**args)
74177422
update!(**args)
74187423
end
74197424

74207425
# Update properties of this object
74217426
def update!(**args)
74227427
@frequently_bought_together_config = args[:frequently_bought_together_config] if args.key?(:frequently_bought_together_config)
7428+
@llm_embedding_config = args[:llm_embedding_config] if args.key?(:llm_embedding_config)
7429+
end
7430+
end
7431+
7432+
# Config that turns on usage of llm embeddings as features to the model.
7433+
# Embeddings leverage unstructured text fields like description and title.
7434+
class GoogleCloudRetailV2alphaModelModelFeaturesConfigLlmEmbeddingConfig
7435+
include Google::Apis::Core::Hashable
7436+
7437+
# Optional. The LLM embedding version to use. Currently only `v0` is supported.
7438+
# If not specified, feature will not be turned on.
7439+
# Corresponds to the JSON property `llmEmbeddingVersion`
7440+
# @return [String]
7441+
attr_accessor :llm_embedding_version
7442+
7443+
def initialize(**args)
7444+
update!(**args)
7445+
end
7446+
7447+
# Update properties of this object
7448+
def update!(**args)
7449+
@llm_embedding_version = args[:llm_embedding_version] if args.key?(:llm_embedding_version)
74237450
end
74247451
end
74257452

generated/google-apis-retail_v2/lib/google/apis/retail_v2/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module RetailV2
1818
# Version of the google-apis-retail_v2 gem
19-
GEM_VERSION = "0.102.0"
19+
GEM_VERSION = "0.103.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.15.1"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20240920"
25+
REVISION = "20241003"
2626
end
2727
end
2828
end

generated/google-apis-retail_v2/lib/google/apis/retail_v2/representations.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,6 +1150,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
11501150
include Google::Apis::Core::JsonObjectSupport
11511151
end
11521152

1153+
class GoogleCloudRetailV2alphaModelModelFeaturesConfigLlmEmbeddingConfig
1154+
class Representation < Google::Apis::Core::JsonRepresentation; end
1155+
1156+
include Google::Apis::Core::JsonObjectSupport
1157+
end
1158+
11531159
class GoogleCloudRetailV2alphaModelPageOptimizationConfig
11541160
class Representation < Google::Apis::Core::JsonRepresentation; end
11551161

@@ -3382,6 +3388,15 @@ class GoogleCloudRetailV2alphaModelModelFeaturesConfig
33823388
class Representation < Google::Apis::Core::JsonRepresentation
33833389
property :frequently_bought_together_config, as: 'frequentlyBoughtTogetherConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelFrequentlyBoughtTogetherFeaturesConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelFrequentlyBoughtTogetherFeaturesConfig::Representation
33843390

3391+
property :llm_embedding_config, as: 'llmEmbeddingConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelModelFeaturesConfigLlmEmbeddingConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelModelFeaturesConfigLlmEmbeddingConfig::Representation
3392+
3393+
end
3394+
end
3395+
3396+
class GoogleCloudRetailV2alphaModelModelFeaturesConfigLlmEmbeddingConfig
3397+
# @private
3398+
class Representation < Google::Apis::Core::JsonRepresentation
3399+
property :llm_embedding_version, as: 'llmEmbeddingVersion'
33853400
end
33863401
end
33873402

0 commit comments

Comments
 (0)