From 6e5b62251c81e794f83ebb44dd336501427a7f33 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Tue, 17 Sep 2024 06:22:25 -0700 Subject: [PATCH] feat: Automated regeneration of Retail client (#12154) Auto-created at 2024-09-17 13:17:35 +0000 using the toys pull request generator. --- clients/retail/README.md | 2 +- .../lib/google_api/retail/v2/metadata.ex | 2 +- ...ud_retail_v2_product_attribute_interval.ex | 49 ++++++++++ ...cloud_retail_v2_product_attribute_value.ex | 49 ++++++++++ .../google_cloud_retail_v2_search_request.ex | 15 ++++ ...arch_request_conversational_search_spec.ex | 63 +++++++++++++ ..._conversational_search_spec_user_answer.ex | 62 +++++++++++++ ...search_spec_user_answer_selected_answer.ex | 64 +++++++++++++ ..._v2_search_request_tile_navigation_spec.ex | 54 +++++++++++ .../google_cloud_retail_v2_search_response.ex | 17 ++++ ...h_response_conversational_search_result.ex | 90 +++++++++++++++++++ ...ational_search_result_additional_filter.ex | 56 ++++++++++++ ...sational_search_result_suggested_answer.ex | 56 ++++++++++++ ..._search_response_tile_navigation_result.ex | 51 +++++++++++ .../v2/model/google_cloud_retail_v2_tile.ex | 60 +++++++++++++ clients/retail/mix.exs | 2 +- 16 files changed, 689 insertions(+), 3 deletions(-) create mode 100644 clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_product_attribute_interval.ex create mode 100644 clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_product_attribute_value.ex create mode 100644 clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_request_conversational_search_spec.ex create mode 100644 clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_request_conversational_search_spec_user_answer.ex create mode 100644 clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_request_conversational_search_spec_user_answer_selected_answer.ex create mode 100644 clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_request_tile_navigation_spec.ex create mode 100644 clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_response_conversational_search_result.ex create mode 100644 clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_response_conversational_search_result_additional_filter.ex create mode 100644 clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_response_conversational_search_result_suggested_answer.ex create mode 100644 clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_response_tile_navigation_result.ex create mode 100644 clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_tile.ex diff --git a/clients/retail/README.md b/clients/retail/README.md index bbc31ba7a2..66fc7eb5bd 100644 --- a/clients/retail/README.md +++ b/clients/retail/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_retail, "~> 0.13"}] + [{:google_api_retail, "~> 0.14"}] end ``` diff --git a/clients/retail/lib/google_api/retail/v2/metadata.ex b/clients/retail/lib/google_api/retail/v2/metadata.ex index 54c231f14f..52cef53432 100644 --- a/clients/retail/lib/google_api/retail/v2/metadata.ex +++ b/clients/retail/lib/google_api/retail/v2/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Retail.V2 do API client metadata for GoogleApi.Retail.V2. """ - @discovery_revision "20240822" + @discovery_revision "20240912" def discovery_revision(), do: @discovery_revision end diff --git a/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_product_attribute_interval.ex b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_product_attribute_interval.ex new file mode 100644 index 0000000000..3880d4d3de --- /dev/null +++ b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_product_attribute_interval.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeInterval do + @moduledoc """ + Product attribute name and numeric interval. + + ## Attributes + + * `interval` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2Interval.t`, *default:* `nil`) - The numeric interval (e.g. [10, 20)) + * `name` (*type:* `String.t`, *default:* `nil`) - The attribute name (e.g. "length") + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :interval => GoogleApi.Retail.V2.Model.GoogleCloudRetailV2Interval.t() | nil, + :name => String.t() | nil + } + + field(:interval, as: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2Interval) + field(:name) +end + +defimpl Poison.Decoder, for: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeInterval do + def decode(value, options) do + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeInterval.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeInterval do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_product_attribute_value.ex b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_product_attribute_value.ex new file mode 100644 index 0000000000..496e351b23 --- /dev/null +++ b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_product_attribute_value.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeValue do + @moduledoc """ + Product attribute which structured by an attribute name and value. This structure is used in conversational search filters and answers. For example, if we have `name=color` and `value=red`, this means that the color is `red`. + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - The attribute name. + * `value` (*type:* `String.t`, *default:* `nil`) - The attribute value. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil, + :value => String.t() | nil + } + + field(:name) + field(:value) +end + +defimpl Poison.Decoder, for: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeValue do + def decode(value, options) do + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeValue.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeValue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_request.ex b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_request.ex index 61062de298..f2aa71015b 100644 --- a/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_request.ex +++ b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_request.ex @@ -24,6 +24,7 @@ defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequest do * `boostSpec` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestBoostSpec.t`, *default:* `nil`) - Boost specification to boost certain products. For more information, see [Boost results](https://cloud.google.com/retail/docs/boosting). Notice that if both ServingConfig.boost_control_ids and SearchRequest.boost_spec are set, the boost conditions from both places are evaluated. If a search request matches multiple boost conditions, the final boost score is equal to the sum of the boost scores from all matched boost conditions. * `branch` (*type:* `String.t`, *default:* `nil`) - The branch resource name, such as `projects/*/locations/global/catalogs/default_catalog/branches/0`. Use "default_branch" as the branch ID or leave this field empty, to search products under the default branch. * `canonicalFilter` (*type:* `String.t`, *default:* `nil`) - The default filter that is applied when a user performs a search without checking any filters on the search page. The filter applied to every search request when quality improvement such as query expansion is needed. In the case a query does not have a sufficient amount of results this filter will be used to determine whether or not to enable the query expansion flow. The original filter will still be used for the query expanded search. This field is strongly recommended to achieve high search quality. For more information about filter syntax, see SearchRequest.filter. + * `conversationalSearchSpec` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpec.t`, *default:* `nil`) - Optional. This field specifies all conversational related parameters addition to traditional retail search. * `dynamicFacetSpec` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestDynamicFacetSpec.t`, *default:* `nil`) - Deprecated. Refer to https://cloud.google.com/retail/docs/configs#dynamic to enable dynamic facets. Do not set this field. The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. * `entity` (*type:* `String.t`, *default:* `nil`) - The entity for customers that may run multiple different entities, domains, sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. If this is set, it should be exactly matched with UserEvent.entity to get search results boosted by entity. * `facetSpecs` (*type:* `list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestFacetSpec.t)`, *default:* `nil`) - Facet specifications for faceted search. If empty, no facets are returned. A maximum of 200 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned. @@ -39,6 +40,7 @@ defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequest do * `queryExpansionSpec` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestQueryExpansionSpec.t`, *default:* `nil`) - The query expansion specification that specifies the conditions under which query expansion occurs. For more information, see [Query expansion](https://cloud.google.com/retail/docs/result-size#query_expansion). * `searchMode` (*type:* `String.t`, *default:* `nil`) - The search mode of the search request. If not specified, a single search request triggers both product search and faceted search. * `spellCorrectionSpec` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestSpellCorrectionSpec.t`, *default:* `nil`) - The spell correction specification that specifies the mode under which spell correction will take effect. + * `tileNavigationSpec` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestTileNavigationSpec.t`, *default:* `nil`) - Optional. This field specifies tile navigation related parameters. * `userInfo` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2UserInfo.t`, *default:* `nil`) - User information. * `variantRollupKeys` (*type:* `list(String.t)`, *default:* `nil`) - The keys to fetch and rollup the matching variant Products attributes, FulfillmentInfo or LocalInventorys attributes. The attributes from all the matching variant Products or LocalInventorys are merged and de-duplicated. Notice that rollup attributes will lead to extra query latency. Maximum number of keys is 30. For FulfillmentInfo, a fulfillment type and a fulfillment ID must be provided in the format of "fulfillmentType.fulfillmentId". E.g., in "pickupInStore.store123", "pickupInStore" is fulfillment type and "store123" is the store ID. Supported keys are: * colorFamilies * price * originalPrice * discount * variantId * inventory(place_id,price) * inventory(place_id,original_price) * inventory(place_id,attributes.key), where key is any key in the Product.local_inventories.attributes map. * attributes.key, where key is any key in the Product.attributes map. * pickupInStore.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type "pickup-in-store". * shipToStore.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type "ship-to-store". * sameDayDelivery.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type "same-day-delivery". * nextDayDelivery.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type "next-day-delivery". * customFulfillment1.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-1". * customFulfillment2.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-2". * customFulfillment3.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-3". * customFulfillment4.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-4". * customFulfillment5.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-5". If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. * `visitorId` (*type:* `String.t`, *default:* `nil`) - Required. A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website. This should be the same identifier as UserEvent.visitor_id. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. @@ -51,6 +53,9 @@ defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequest do GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestBoostSpec.t() | nil, :branch => String.t() | nil, :canonicalFilter => String.t() | nil, + :conversationalSearchSpec => + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpec.t() + | nil, :dynamicFacetSpec => GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestDynamicFacetSpec.t() | nil, :entity => String.t() | nil, @@ -73,6 +78,8 @@ defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequest do :spellCorrectionSpec => GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestSpellCorrectionSpec.t() | nil, + :tileNavigationSpec => + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestTileNavigationSpec.t() | nil, :userInfo => GoogleApi.Retail.V2.Model.GoogleCloudRetailV2UserInfo.t() | nil, :variantRollupKeys => list(String.t()) | nil, :visitorId => String.t() | nil @@ -82,6 +89,10 @@ defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequest do field(:branch) field(:canonicalFilter) + field(:conversationalSearchSpec, + as: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpec + ) + field(:dynamicFacetSpec, as: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestDynamicFacetSpec ) @@ -117,6 +128,10 @@ defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequest do as: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestSpellCorrectionSpec ) + field(:tileNavigationSpec, + as: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestTileNavigationSpec + ) + field(:userInfo, as: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2UserInfo) field(:variantRollupKeys, type: :list) field(:visitorId) diff --git a/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_request_conversational_search_spec.ex b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_request_conversational_search_spec.ex new file mode 100644 index 0000000000..11cfa49448 --- /dev/null +++ b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_request_conversational_search_spec.ex @@ -0,0 +1,63 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpec do + @moduledoc """ + This field specifies all conversational related parameters addition to traditional retail search. + + ## Attributes + + * `conversationId` (*type:* `String.t`, *default:* `nil`) - This field specifies the conversation id, which maintains the state of the conversation between client side and server side. Use the value from the previous ConversationalSearchResult.conversation_id. For the initial request, this should be empty. + * `followupConversationRequested` (*type:* `boolean()`, *default:* `nil`) - This field specifies whether the customer would like to do conversational search. If this field is set to true, conversational related extra information will be returned from server side, including follow-up question, answer options, etc. + * `userAnswer` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer.t`, *default:* `nil`) - This field specifies the current user answer during the conversational search. This can be either user selected from suggested answers or user input plain text. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :conversationId => String.t() | nil, + :followupConversationRequested => boolean() | nil, + :userAnswer => + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer.t() + | nil + } + + field(:conversationId) + field(:followupConversationRequested) + + field(:userAnswer, + as: + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpec do + def decode(value, options) do + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_request_conversational_search_spec_user_answer.ex b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_request_conversational_search_spec_user_answer.ex new file mode 100644 index 0000000000..905f624166 --- /dev/null +++ b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_request_conversational_search_spec_user_answer.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer do + @moduledoc """ + This field specifies the current user answer during the conversational search. This can be either user selected from suggested answers or user input plain text. + + ## Attributes + + * `selectedAnswer` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer.t`, *default:* `nil`) - This field specifies the selected attributes during the conversational search. This should be a subset of ConversationalSearchResult.suggested_answers. + * `textAnswer` (*type:* `String.t`, *default:* `nil`) - This field specifies the incremental input text from the user during the conversational search. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :selectedAnswer => + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer.t() + | nil, + :textAnswer => String.t() | nil + } + + field(:selectedAnswer, + as: + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer + ) + + field(:textAnswer) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer do + def decode(value, options) do + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_request_conversational_search_spec_user_answer_selected_answer.ex b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_request_conversational_search_spec_user_answer_selected_answer.ex new file mode 100644 index 0000000000..7346e0bf92 --- /dev/null +++ b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_request_conversational_search_spec_user_answer_selected_answer.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer do + @moduledoc """ + This field specifies the selected answers during the conversational search. + + ## Attributes + + * `productAttributeValue` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeValue.t`, *default:* `nil`) - This field specifies the selected answer which is a attribute key-value. + * `productAttributeValues` (*type:* `list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeValue.t)`, *default:* `nil`) - This field is deprecated and should not be set. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :productAttributeValue => + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeValue.t() | nil, + :productAttributeValues => + list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeValue.t()) | nil + } + + field(:productAttributeValue, + as: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeValue + ) + + field(:productAttributeValues, + as: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeValue, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer do + def decode(value, options) do + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_request_tile_navigation_spec.ex b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_request_tile_navigation_spec.ex new file mode 100644 index 0000000000..41900ed350 --- /dev/null +++ b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_request_tile_navigation_spec.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestTileNavigationSpec do + @moduledoc """ + This field specifies tile navigation related parameters. + + ## Attributes + + * `appliedTiles` (*type:* `list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2Tile.t)`, *default:* `nil`) - This field specifies the tiles which are already clicked in client side. NOTE: This field is not being used for filtering search products. Client side should also put all the applied tiles in SearchRequest.filter. + * `tileNavigationRequested` (*type:* `boolean()`, *default:* `nil`) - This field specifies whether the customer would like to request tile navigation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :appliedTiles => list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2Tile.t()) | nil, + :tileNavigationRequested => boolean() | nil + } + + field(:appliedTiles, as: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2Tile, type: :list) + field(:tileNavigationRequested) +end + +defimpl Poison.Decoder, + for: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestTileNavigationSpec do + def decode(value, options) do + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestTileNavigationSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestTileNavigationSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_response.ex b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_response.ex index dc7c7c82e8..248d2bac16 100644 --- a/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_response.ex +++ b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_response.ex @@ -23,6 +23,7 @@ defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponse do * `appliedControls` (*type:* `list(String.t)`, *default:* `nil`) - The fully qualified resource name of applied [controls](https://cloud.google.com/retail/docs/serving-control-rules). * `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. + * `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. * `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. * `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. * `facets` (*type:* `list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseFacet.t)`, *default:* `nil`) - Results of facets requested by user. @@ -31,6 +32,7 @@ defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponse do * `queryExpansionInfo` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseQueryExpansionInfo.t`, *default:* `nil`) - Query expansion information for the returned results. * `redirectUri` (*type:* `String.t`, *default:* `nil`) - The URI of a customer-defined redirect page. If redirect action is triggered, no search is performed, and only redirect_uri and attribution_token are set in the response. * `results` (*type:* `list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseSearchResult.t)`, *default:* `nil`) - A list of matched items. The order represents the ranking. + * `tileNavigationResult` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseTileNavigationResult.t`, *default:* `nil`) - This field specifies all related information for tile navigation that will be used in client side. * `totalSize` (*type:* `integer()`, *default:* `nil`) - The estimated total count of matched items irrespective of pagination. The count of results returned by pagination may be less than the total_size that matches. """ @@ -39,6 +41,9 @@ defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponse do @type t :: %__MODULE__{ :appliedControls => list(String.t()) | nil, :attributionToken => String.t() | nil, + :conversationalSearchResult => + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResult.t() + | nil, :correctedQuery => String.t() | nil, :experimentInfo => list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ExperimentInfo.t()) | nil, @@ -57,11 +62,19 @@ defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponse do :results => list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseSearchResult.t()) | nil, + :tileNavigationResult => + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseTileNavigationResult.t() + | nil, :totalSize => integer() | nil } field(:appliedControls, type: :list) field(:attributionToken) + + field(:conversationalSearchResult, + as: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResult + ) + field(:correctedQuery) field(:experimentInfo, @@ -89,6 +102,10 @@ defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponse do type: :list ) + field(:tileNavigationResult, + as: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseTileNavigationResult + ) + field(:totalSize) end diff --git a/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_response_conversational_search_result.ex b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_response_conversational_search_result.ex new file mode 100644 index 0000000000..c13a24d1d9 --- /dev/null +++ b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_response_conversational_search_result.ex @@ -0,0 +1,90 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResult do + @moduledoc """ + This field specifies all related information that is needed on client side for UI rendering of conversational retail search. + + ## Attributes + + * `additionalFilter` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter.t`, *default:* `nil`) - This is the incremental additional filters implied from the current user answer. User should add the suggested addition filters to the previous SearchRequest.filter, and use the merged filter in the follow up search request. + * `additionalFilters` (*type:* `list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter.t)`, *default:* `nil`) - This field is deprecated but will be kept for backward compatibility. There is expected to have only one additional filter and the value will be the same to the same as field `additional_filter`. + * `conversationId` (*type:* `String.t`, *default:* `nil`) - Conversation UUID. This field will be stored in client side storage to maintain the conversation session with server and will be used for next search request's SearchRequest.ConversationalSearchSpec.conversation_id to restore conversation state in server. + * `followupQuestion` (*type:* `String.t`, *default:* `nil`) - The follow-up question. e.g., `What is the color?` + * `refinedQuery` (*type:* `String.t`, *default:* `nil`) - The current refined query for the conversational search. This field will be used in customer UI that the query in the search bar should be replaced with the refined query. For example, if SearchRequest.query is `dress` and next SearchRequest.ConversationalSearchSpec.UserAnswer.text_answer is `red color`, which does not match any product attribute value filters, the refined query will be `dress, red color`. + * `suggestedAnswers` (*type:* `list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultSuggestedAnswer.t)`, *default:* `nil`) - The answer options provided to client for the follow-up question. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :additionalFilter => + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter.t() + | nil, + :additionalFilters => + list( + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter.t() + ) + | nil, + :conversationId => String.t() | nil, + :followupQuestion => String.t() | nil, + :refinedQuery => String.t() | nil, + :suggestedAnswers => + list( + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultSuggestedAnswer.t() + ) + | nil + } + + field(:additionalFilter, + as: + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter + ) + + field(:additionalFilters, + as: + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter, + type: :list + ) + + field(:conversationId) + field(:followupQuestion) + field(:refinedQuery) + + field(:suggestedAnswers, + as: + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultSuggestedAnswer, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResult do + def decode(value, options) do + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResult.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResult do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_response_conversational_search_result_additional_filter.ex b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_response_conversational_search_result_additional_filter.ex new file mode 100644 index 0000000000..0c12e80866 --- /dev/null +++ b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_response_conversational_search_result_additional_filter.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter do + @moduledoc """ + Additional filter that client side need to apply. + + ## Attributes + + * `productAttributeValue` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeValue.t`, *default:* `nil`) - Product attribute value, including an attribute key and an attribute value. Other types can be added here in the future. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :productAttributeValue => + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeValue.t() | nil + } + + field(:productAttributeValue, + as: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeValue + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter do + def decode(value, options) do + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_response_conversational_search_result_suggested_answer.ex b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_response_conversational_search_result_suggested_answer.ex new file mode 100644 index 0000000000..2b2072dea3 --- /dev/null +++ b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_response_conversational_search_result_suggested_answer.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultSuggestedAnswer do + @moduledoc """ + Suggested answers to the follow-up question. + + ## Attributes + + * `productAttributeValue` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeValue.t`, *default:* `nil`) - Product attribute value, including an attribute key and an attribute value. Other types can be added here in the future. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :productAttributeValue => + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeValue.t() | nil + } + + field(:productAttributeValue, + as: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeValue + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultSuggestedAnswer do + def decode(value, options) do + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultSuggestedAnswer.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseConversationalSearchResultSuggestedAnswer do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_response_tile_navigation_result.ex b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_response_tile_navigation_result.ex new file mode 100644 index 0000000000..b08dc161a6 --- /dev/null +++ b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_search_response_tile_navigation_result.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseTileNavigationResult do + @moduledoc """ + This field specifies all related information for tile navigation that will be used in client side. + + ## Attributes + + * `tiles` (*type:* `list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2Tile.t)`, *default:* `nil`) - The current tiles that are used for tile navigation, sorted by engagement. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :tiles => list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2Tile.t()) | nil + } + + field(:tiles, as: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2Tile, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseTileNavigationResult do + def decode(value, options) do + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseTileNavigationResult.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseTileNavigationResult do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_tile.ex b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_tile.ex new file mode 100644 index 0000000000..2f82fb908f --- /dev/null +++ b/clients/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_tile.ex @@ -0,0 +1,60 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2Tile do + @moduledoc """ + This field specifies the tile information including an attribute key, attribute value. More fields will be added in the future, eg: product id or product counts, etc. + + ## Attributes + + * `productAttributeInterval` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeInterval.t`, *default:* `nil`) - The product attribute key-numeric interval. + * `productAttributeValue` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeValue.t`, *default:* `nil`) - The product attribute key-value. + * `representativeProductId` (*type:* `String.t`, *default:* `nil`) - The representative product id for this tile. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :productAttributeInterval => + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeInterval.t() | nil, + :productAttributeValue => + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeValue.t() | nil, + :representativeProductId => String.t() | nil + } + + field(:productAttributeInterval, + as: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeInterval + ) + + field(:productAttributeValue, + as: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ProductAttributeValue + ) + + field(:representativeProductId) +end + +defimpl Poison.Decoder, for: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2Tile do + def decode(value, options) do + GoogleApi.Retail.V2.Model.GoogleCloudRetailV2Tile.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2Tile do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/retail/mix.exs b/clients/retail/mix.exs index f39d7aa286..4f4c36d50e 100644 --- a/clients/retail/mix.exs +++ b/clients/retail/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.Retail.Mixfile do use Mix.Project - @version "0.13.2" + @version "0.14.0" def project() do [