Skip to content

Commit eda8a15

Browse files
feat: Automated regeneration of Retail client (googleapis#12570)
Auto-created at 2024-11-19 13:18:18 +0000 using the toys pull request generator.
1 parent a9adedb commit eda8a15

10 files changed

+16
-13
lines changed

clients/retail/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_retail, "~> 0.18"}]
14+
[{:google_api_retail, "~> 0.19"}]
1515
end
1616
```
1717

clients/retail/lib/google_api/retail/v2/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Retail.V2 do
2020
API client metadata for GoogleApi.Retail.V2.
2121
"""
2222

23-
@discovery_revision "20241024"
23+
@discovery_revision "20241114"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_big_query_source.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2BigQuerySource do
2424
* `dataSchema` (*type:* `String.t`, *default:* `nil`) - The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: The schema is available here: https://support.google.com/analytics/answer/7029846. Supported values for autocomplete imports: * `suggestions` (default): One JSON completion suggestion per line. * `denylist`: One JSON deny suggestion per line. * `allowlist`: One JSON allow suggestion per line.
2525
* `datasetId` (*type:* `String.t`, *default:* `nil`) - Required. The BigQuery data set to copy the data from with a length limit of 1,024 characters.
2626
* `gcsStagingDir` (*type:* `String.t`, *default:* `nil`) - Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the BigQuery export to a specific Cloud Storage directory.
27-
* `partitionDate` (*type:* `GoogleApi.Retail.V2.Model.GoogleTypeDate.t`, *default:* `nil`) - BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format. Only supported in ImportProductsRequest.
27+
* `partitionDate` (*type:* `GoogleApi.Retail.V2.Model.GoogleTypeDate.t`, *default:* `nil`) - BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
2828
* `projectId` (*type:* `String.t`, *default:* `nil`) - The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
2929
* `tableId` (*type:* `String.t`, *default:* `nil`) - Required. The BigQuery table to copy the data from with a length limit of 1,024 characters.
3030
"""

clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_catalog_attribute.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CatalogAttribute do
2424
* `dynamicFacetableOption` (*type:* `String.t`, *default:* `nil`) - If DYNAMIC_FACETABLE_ENABLED, attribute values are available for dynamic facet. Could only be DYNAMIC_FACETABLE_DISABLED if CatalogAttribute.indexable_option is INDEXABLE_DISABLED. Otherwise, an INVALID_ARGUMENT error is returned. Must be specified, otherwise throws INVALID_FORMAT error.
2525
* `exactSearchableOption` (*type:* `String.t`, *default:* `nil`) - If EXACT_SEARCHABLE_ENABLED, attribute values will be exact searchable. This property only applies to textual custom attributes and requires indexable set to enabled to enable exact-searchable. If unset, the server behavior defaults to EXACT_SEARCHABLE_DISABLED.
2626
* `facetConfig` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CatalogAttributeFacetConfig.t`, *default:* `nil`) - Contains facet options.
27-
* `inUse` (*type:* `boolean()`, *default:* `nil`) - Output only. Indicates whether this attribute has been used by any products. `True` if at least one Product is using this attribute in Product.attributes. Otherwise, this field is `False`. CatalogAttribute can be pre-loaded by using CatalogService.AddCatalogAttribute, CatalogService.ImportCatalogAttributes, or CatalogService.UpdateAttributesConfig APIs. This field is `False` for pre-loaded CatalogAttributes. Only pre-loaded catalog attributes that are neither in use by products nor predefined can be deleted. Catalog attributes that are either in use by products or are predefined attributes cannot be deleted; however, their configuration properties will reset to default values upon removal request. After catalog changes, it takes about 10 minutes for this field to update.
27+
* `inUse` (*type:* `boolean()`, *default:* `nil`) - Output only. Indicates whether this attribute has been used by any products. `True` if at least one Product is using this attribute in Product.attributes. Otherwise, this field is `False`. CatalogAttribute can be pre-loaded by using CatalogService.AddCatalogAttribute or CatalogService.UpdateAttributesConfig APIs. This field is `False` for pre-loaded CatalogAttributes. Only pre-loaded catalog attributes that are neither in use by products nor predefined can be deleted. Catalog attributes that are either in use by products or are predefined attributes cannot be deleted; however, their configuration properties will reset to default values upon removal request. After catalog changes, it takes about 10 minutes for this field to update.
2828
* `indexableOption` (*type:* `String.t`, *default:* `nil`) - When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG, if INDEXABLE_ENABLED attribute values are indexed so that it can be filtered, faceted, or boosted in SearchService.Search. Must be specified when AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error.
2929
* `key` (*type:* `String.t`, *default:* `nil`) - Required. Attribute name. For example: `color`, `brands`, `attributes.custom_attribute`, such as `attributes.xyz`. To be indexable, the attribute name can contain only alpha-numeric characters and underscores. For example, an attribute named `attributes.abc_xyz` can be indexed, but an attribute named `attributes.abc-xyz` cannot be indexed. If the attribute key starts with `attributes.`, then the attribute is a custom attribute. Attributes such as `brands`, `patterns`, and `title` are built-in and called system attributes.
3030
* `retrievableOption` (*type:* `String.t`, *default:* `nil`) - If RETRIEVABLE_ENABLED, attribute values are retrievable in the search results. If unset, the server behavior defaults to RETRIEVABLE_DISABLED.

clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_experiment_info.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ExperimentInfo do
1919
@moduledoc """
20-
Metadata for active A/B testing Experiment.
20+
Metadata for active A/B testing experiment.
2121
2222
## Attributes
2323

clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_experiment_info_serving_config_experiment.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ExperimentInfoServingConf
2121
2222
## Attributes
2323
24-
* `experimentServingConfig` (*type:* `String.t`, *default:* `nil`) - The fully qualified resource name of the serving config Experiment.VariantArm.serving_config_id responsible for generating the search response. For example: `projects/*/locations/*/catalogs/*/servingConfigs/*`.
24+
* `experimentServingConfig` (*type:* `String.t`, *default:* `nil`) - The fully qualified resource name of the serving config `Experiment.VariantArm.serving_config_id` responsible for generating the search response. For example: `projects/*/locations/*/catalogs/*/servingConfigs/*`.
2525
* `originalServingConfig` (*type:* `String.t`, *default:* `nil`) - The fully qualified resource name of the original SearchRequest.placement in the search request prior to reassignment by experiment API. For example: `projects/*/locations/*/catalogs/*/servingConfigs/*`.
2626
"""
2727

clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_local_inventory.ex

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2LocalInventory do
2121
2222
## Attributes
2323
24-
* `attributes` (*type:* `%{optional(String.t) => GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CustomAttribute.t}`, *default:* `nil`) - Additional local inventory attributes, for example, store name, promotion tags, etc. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * At most 30 attributes are allowed. * The key must be a UTF-8 encoded string with a length limit of 32 characters. * The key must match the pattern: `a-zA-Z0-9*`. For example, key0LikeThis or KEY_1_LIKE_THIS. * The attribute values must be of the same type (text or number). * Only 1 value is allowed for each attribute. * For text values, the length limit is 256 UTF-8 characters. * The attribute does not support search. The `searchable` field should be unset or set to false. * The max summed total bytes of custom attribute keys and values per product is 5MiB.
25-
* `fulfillmentTypes` (*type:* `list(String.t)`, *default:* `nil`) - Input only. Supported fulfillment types. Valid fulfillment type values include commonly used types (such as pickup in store and same day delivery), and custom types. Customers have to map custom types to their display names before rendering UI. Supported values: * "pickup-in-store" * "ship-to-store" * "same-day-delivery" * "next-day-delivery" * "custom-type-1" * "custom-type-2" * "custom-type-3" * "custom-type-4" * "custom-type-5" If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. All the elements must be distinct. Otherwise, an INVALID_ARGUMENT error is returned.
26-
* `placeId` (*type:* `String.t`, *default:* `nil`) - The place ID for the current set of inventory information.
27-
* `priceInfo` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PriceInfo.t`, *default:* `nil`) - Product price and cost information. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
24+
* `attributes` (*type:* `%{optional(String.t) => GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CustomAttribute.t}`, *default:* `nil`) - Optional. Additional local inventory attributes, for example, store name, promotion tags, etc. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * At most 30 attributes are allowed. * The key must be a UTF-8 encoded string with a length limit of 32 characters. * The key must match the pattern: `a-zA-Z0-9*`. For example, key0LikeThis or KEY_1_LIKE_THIS. * The attribute values must be of the same type (text or number). * Only 1 value is allowed for each attribute. * For text values, the length limit is 256 UTF-8 characters. * The attribute does not support search. The `searchable` field should be unset or set to false. * The max summed total bytes of custom attribute keys and values per product is 5MiB.
25+
* `availability` (*type:* `String.t`, *default:* `nil`) - Optional. The availability of the Product at this place_id. Default to Availability.IN_STOCK. For primary products with variants set the availability of the primary as Availability.OUT_OF_STOCK and set the true availability at the variant level. This way the primary product will be considered "in stock" as long as it has at least one variant in stock. For primary products with no variants set the true availability at the primary level. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability).
26+
* `fulfillmentTypes` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Supported fulfillment types. Valid fulfillment type values include commonly used types (such as pickup in store and same day delivery), and custom types. Customers have to map custom types to their display names before rendering UI. Supported values: * "pickup-in-store" * "ship-to-store" * "same-day-delivery" * "next-day-delivery" * "custom-type-1" * "custom-type-2" * "custom-type-3" * "custom-type-4" * "custom-type-5" If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. All the elements must be distinct. Otherwise, an INVALID_ARGUMENT error is returned.
27+
* `placeId` (*type:* `String.t`, *default:* `nil`) - Required. The place ID for the current set of inventory information.
28+
* `priceInfo` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PriceInfo.t`, *default:* `nil`) - Optional. Product price and cost information. Google Merchant Center property [price](https://support.google.com/merchants/answer/6324371).
2829
"""
2930

3031
use GoogleApi.Gax.ModelBase
@@ -36,12 +37,14 @@ defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2LocalInventory do
3637
GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CustomAttribute.t()
3738
}
3839
| nil,
40+
:availability => String.t() | nil,
3941
:fulfillmentTypes => list(String.t()) | nil,
4042
:placeId => String.t() | nil,
4143
:priceInfo => GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PriceInfo.t() | nil
4244
}
4345

4446
field(:attributes, as: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CustomAttribute, type: :map)
47+
field(:availability)
4548
field(:fulfillmentTypes, type: :list)
4649
field(:placeId)
4750
field(:priceInfo, as: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PriceInfo)

clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_response.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponse do
2525
* `attributionToken` (*type:* `String.t`, *default:* `nil`) - A unique search token. This should be included in the UserEvent logs resulting from this search, which enables accurate attribution of search model performance.
2626
* `conversationalSearchResult` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResult.t`, *default:* `nil`) - This field specifies all related information that is needed on client side for UI rendering of conversational retail search.
2727
* `correctedQuery` (*type:* `String.t`, *default:* `nil`) - Contains the spell corrected query, if found. If the spell correction type is AUTOMATIC, then the search results are based on corrected_query. Otherwise the original query is used for search.
28-
* `experimentInfo` (*type:* `list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ExperimentInfo.t)`, *default:* `nil`) - Metadata related to A/B testing Experiment associated with this response. Only exists when an experiment is triggered.
28+
* `experimentInfo` (*type:* `list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ExperimentInfo.t)`, *default:* `nil`) - Metadata related to A/B testing experiment associated with this response. Only exists when an experiment is triggered.
2929
* `facets` (*type:* `list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseFacet.t)`, *default:* `nil`) - Results of facets requested by user.
3030
* `invalidConditionBoostSpecs` (*type:* `list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec.t)`, *default:* `nil`) - The invalid SearchRequest.BoostSpec.condition_boost_specs that are not applied during serving.
3131
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token that can be sent as SearchRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_user_info.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2UserInfo do
2323
2424
* `directUserRequest` (*type:* `boolean()`, *default:* `nil`) - True if the request is made directly from the end user, in which case the ip_address and user_agent can be populated from the HTTP request. This flag should be set only if the API request is made directly from the end user such as a mobile app (and not if a gateway or a server is processing and pushing the user events). This should not be set when using the JavaScript tag in UserEventService.CollectUserEvent.
2525
* `ipAddress` (*type:* `String.t`, *default:* `nil`) - The end user's IP address. This field is used to extract location information for personalization. This field must be either an IPv4 address (e.g. "104.133.9.80") or an IPv6 address (e.g. "2001:0db8:85a3:0000:0000:8a2e:0370:7334"). Otherwise, an INVALID_ARGUMENT error is returned. This should not be set when: * setting SearchRequest.user_info. * using the JavaScript tag in UserEventService.CollectUserEvent or if direct_user_request is set.
26-
* `userAgent` (*type:* `String.t`, *default:* `nil`) - User agent as included in the HTTP header. Required for getting SearchResponse.sponsored_results. The field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This should not be set when using the client side event reporting with GTM or JavaScript tag in UserEventService.CollectUserEvent or if direct_user_request is set.
26+
* `userAgent` (*type:* `String.t`, *default:* `nil`) - User agent as included in the HTTP header. The field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This should not be set when using the client side event reporting with GTM or JavaScript tag in UserEventService.CollectUserEvent or if direct_user_request is set.
2727
* `userId` (*type:* `String.t`, *default:* `nil`) - Highly recommended for logged-in users. Unique identifier for logged-in user, such as a user name. Don't set for anonymous users. Always use a hashed value for this ID. Don't set the field to the same fixed ID for different users. This mixes the event history of those users together, which results in degraded model quality. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
2828
"""
2929

clients/retail/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.Retail.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.18.0"
21+
@version "0.19.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)