Skip to content

Commit cd442ed

Browse files
feat: Automated regeneration of Retail client (googleapis#12434)
Auto-created at 2024-10-30 13:13:05 +0000 using the toys pull request generator.
1 parent 4dd9fa5 commit cd442ed

File tree

6 files changed

+124
-3
lines changed

6 files changed

+124
-3
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.17"}]
14+
[{:google_api_retail, "~> 0.18"}]
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 "20241017"
23+
@discovery_revision "20241024"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PinControlMetadata do
19+
@moduledoc """
20+
Metadata for pinning to be returned in the response. This is used for distinguishing between applied vs dropped pins.
21+
22+
## Attributes
23+
24+
* `allMatchedPins` (*type:* `%{optional(String.t) => GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PinControlMetadataProductPins.t}`, *default:* `nil`) - Map of all matched pins, keyed by pin position.
25+
* `droppedPins` (*type:* `%{optional(String.t) => GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PinControlMetadataProductPins.t}`, *default:* `nil`) - Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:allMatchedPins =>
32+
%{
33+
optional(String.t()) =>
34+
GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PinControlMetadataProductPins.t()
35+
}
36+
| nil,
37+
:droppedPins =>
38+
%{
39+
optional(String.t()) =>
40+
GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PinControlMetadataProductPins.t()
41+
}
42+
| nil
43+
}
44+
45+
field(:allMatchedPins,
46+
as: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PinControlMetadataProductPins,
47+
type: :map
48+
)
49+
50+
field(:droppedPins,
51+
as: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PinControlMetadataProductPins,
52+
type: :map
53+
)
54+
end
55+
56+
defimpl Poison.Decoder, for: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PinControlMetadata do
57+
def decode(value, options) do
58+
GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PinControlMetadata.decode(value, options)
59+
end
60+
end
61+
62+
defimpl Poison.Encoder, for: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PinControlMetadata do
63+
def encode(value, options) do
64+
GoogleApi.Gax.ModelBase.encode(value, options)
65+
end
66+
end
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PinControlMetadataProductPins do
19+
@moduledoc """
20+
List of product ids which have associated pins.
21+
22+
## Attributes
23+
24+
* `productId` (*type:* `list(String.t)`, *default:* `nil`) - List of product ids which have associated pins.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:productId => list(String.t()) | nil
31+
}
32+
33+
field(:productId, type: :list)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PinControlMetadataProductPins do
38+
def decode(value, options) do
39+
GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PinControlMetadataProductPins.decode(
40+
value,
41+
options
42+
)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder,
47+
for: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PinControlMetadataProductPins do
48+
def encode(value, options) do
49+
GoogleApi.Gax.ModelBase.encode(value, options)
50+
end
51+
end

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponse do
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.
32+
* `pinControlMetadata` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PinControlMetadata.t`, *default:* `nil`) - Metadata for pin controls which were applicable to the request. This contains two map fields, one for all matched pins and one for pins which were matched but not applied. The two maps are keyed by pin position, and the values are the product ids which were matched to that pin.
3233
* `queryExpansionInfo` (*type:* `GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseQueryExpansionInfo.t`, *default:* `nil`) - Query expansion information for the returned results.
3334
* `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.
3435
* `results` (*type:* `list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseSearchResult.t)`, *default:* `nil`) - A list of matched items. The order represents the ranking.
@@ -55,6 +56,8 @@ defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponse do
5556
)
5657
| nil,
5758
:nextPageToken => String.t() | nil,
59+
:pinControlMetadata =>
60+
GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PinControlMetadata.t() | nil,
5861
:queryExpansionInfo =>
5962
GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseQueryExpansionInfo.t()
6063
| nil,
@@ -90,6 +93,7 @@ defmodule GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponse do
9093
)
9194

9295
field(:nextPageToken)
96+
field(:pinControlMetadata, as: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PinControlMetadata)
9397

9498
field(:queryExpansionInfo,
9599
as: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseQueryExpansionInfo

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.17.0"
21+
@version "0.18.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)