-
Notifications
You must be signed in to change notification settings - Fork 459
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Automated regeneration of Retail client (#12154)
Auto-created at 2024-09-17 13:17:35 +0000 using the toys pull request generator.
- Loading branch information
1 parent
7012481
commit 6e5b622
Showing
16 changed files
with
689 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...etail/lib/google_api/retail/v2/model/google_cloud_retail_v2_product_attribute_interval.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
49 changes: 49 additions & 0 deletions
49
...s/retail/lib/google_api/retail/v2/model/google_cloud_retail_v2_product_attribute_value.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
...e_api/retail/v2/model/google_cloud_retail_v2_search_request_conversational_search_spec.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
62 changes: 62 additions & 0 deletions
62
.../v2/model/google_cloud_retail_v2_search_request_conversational_search_spec_user_answer.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Oops, something went wrong.