Skip to content

Commit 8ae1792

Browse files
1 parent 51a098a commit 8ae1792

File tree

15 files changed

+369
-18
lines changed

15 files changed

+369
-18
lines changed

clients/google-api-services-retail/v2/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-retail</artifactId>
25-
<version>v2-rev20241231-2.0.0</version>
25+
<version>v2-rev20250107-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-retail:v2-rev20241231-2.0.0'
38+
implementation 'com.google.apis:google-api-services-retail:v2-rev20250107-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-retail/v2/2.0.0/com/google/api/services/retail/v2/model/GoogleCloudRetailV2Rule.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ public final class GoogleCloudRetailV2Rule extends com.google.api.client.json.Ge
8383
@com.google.api.client.util.Key
8484
private GoogleCloudRetailV2RuleOnewaySynonymsAction onewaySynonymsAction;
8585

86+
/**
87+
* Pins one or more specified products to a specific position in the results.
88+
* The value may be {@code null}.
89+
*/
90+
@com.google.api.client.util.Key
91+
private GoogleCloudRetailV2RulePinAction pinAction;
92+
8693
/**
8794
* Redirects a shopper to a specific page.
8895
* The value may be {@code null}.
@@ -234,6 +241,23 @@ public GoogleCloudRetailV2Rule setOnewaySynonymsAction(GoogleCloudRetailV2RuleOn
234241
return this;
235242
}
236243

244+
/**
245+
* Pins one or more specified products to a specific position in the results.
246+
* @return value or {@code null} for none
247+
*/
248+
public GoogleCloudRetailV2RulePinAction getPinAction() {
249+
return pinAction;
250+
}
251+
252+
/**
253+
* Pins one or more specified products to a specific position in the results.
254+
* @param pinAction pinAction or {@code null} for none
255+
*/
256+
public GoogleCloudRetailV2Rule setPinAction(GoogleCloudRetailV2RulePinAction pinAction) {
257+
this.pinAction = pinAction;
258+
return this;
259+
}
260+
237261
/**
238262
* Redirects a shopper to a specific page.
239263
* @return value or {@code null} for none
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.retail.v2.model;
18+
19+
/**
20+
* Pins one or more specified products to a specific position in the results. * Rule Condition: Must
21+
* specify non-empty Condition.query_terms (for search only) or Condition.page_categories (for
22+
* browse only), but can't specify both. * Action Input: mapping of `[pin_position, product_id]`
23+
* pairs (pin position uses 1-based indexing). * Action Result: Will pin products with matching ids
24+
* to the position specified in the final result order. Example: Suppose the query is `shoes`, the
25+
* Condition.query_terms is `shoes` and the pin_map has `{1, "pid1"}`, then product with `pid1` will
26+
* be pinned to the top position in the final results. If multiple PinActions are matched to a
27+
* single request the actions will be processed from most to least recently updated. Pins to
28+
* positions larger than the max allowed page size of 120 are not allowed.
29+
*
30+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
31+
* transmitted over HTTP when working with the Vertex AI Search for Retail API. For a detailed
32+
* explanation see:
33+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
34+
* </p>
35+
*
36+
* @author Google, Inc.
37+
*/
38+
@SuppressWarnings("javadoc")
39+
public final class GoogleCloudRetailV2RulePinAction extends com.google.api.client.json.GenericJson {
40+
41+
/**
42+
* Required. A map of positions to product_ids. Partial matches per action are allowed, if a
43+
* certain position in the map is already filled that `[position, product_id]` pair will be
44+
* ignored but the rest may still be applied. This case will only occur if multiple pin actions
45+
* are matched to a single request, as the map guarantees that pin positions are unique within the
46+
* same action. Duplicate product_ids are not permitted within a single pin map. The max size of
47+
* this map is 120, equivalent to the max [request page size](https://cloud.google.com/retail/docs
48+
* /reference/rest/v2/projects.locations.catalogs.placements/search#request-body).
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private java.util.Map<String, java.lang.String> pinMap;
53+
54+
/**
55+
* Required. A map of positions to product_ids. Partial matches per action are allowed, if a
56+
* certain position in the map is already filled that `[position, product_id]` pair will be
57+
* ignored but the rest may still be applied. This case will only occur if multiple pin actions
58+
* are matched to a single request, as the map guarantees that pin positions are unique within the
59+
* same action. Duplicate product_ids are not permitted within a single pin map. The max size of
60+
* this map is 120, equivalent to the max [request page size](https://cloud.google.com/retail/docs
61+
* /reference/rest/v2/projects.locations.catalogs.placements/search#request-body).
62+
* @return value or {@code null} for none
63+
*/
64+
public java.util.Map<String, java.lang.String> getPinMap() {
65+
return pinMap;
66+
}
67+
68+
/**
69+
* Required. A map of positions to product_ids. Partial matches per action are allowed, if a
70+
* certain position in the map is already filled that `[position, product_id]` pair will be
71+
* ignored but the rest may still be applied. This case will only occur if multiple pin actions
72+
* are matched to a single request, as the map guarantees that pin positions are unique within the
73+
* same action. Duplicate product_ids are not permitted within a single pin map. The max size of
74+
* this map is 120, equivalent to the max [request page size](https://cloud.google.com/retail/docs
75+
* /reference/rest/v2/projects.locations.catalogs.placements/search#request-body).
76+
* @param pinMap pinMap or {@code null} for none
77+
*/
78+
public GoogleCloudRetailV2RulePinAction setPinMap(java.util.Map<String, java.lang.String> pinMap) {
79+
this.pinMap = pinMap;
80+
return this;
81+
}
82+
83+
@Override
84+
public GoogleCloudRetailV2RulePinAction set(String fieldName, Object value) {
85+
return (GoogleCloudRetailV2RulePinAction) super.set(fieldName, value);
86+
}
87+
88+
@Override
89+
public GoogleCloudRetailV2RulePinAction clone() {
90+
return (GoogleCloudRetailV2RulePinAction) super.clone();
91+
}
92+
93+
}

clients/google-api-services-retail/v2/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-retail</artifactId>
11-
<version>v2-rev20241231-2.0.0</version>
12-
<name>Vertex AI Search for Retail API v2-rev20241231-2.0.0</name>
11+
<version>v2-rev20250107-2.0.0</version>
12+
<name>Vertex AI Search for Retail API v2-rev20250107-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-retail/v2/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-retail</artifactId>
25-
<version>v2-rev20241231-2.0.0</version>
25+
<version>v2-rev20250107-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-retail:v2-rev20241231-2.0.0'
38+
implementation 'com.google.apis:google-api-services-retail:v2-rev20250107-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-retail/v2alpha/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-retail</artifactId>
25-
<version>v2alpha-rev20241231-2.0.0</version>
25+
<version>v2alpha-rev20250107-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-retail:v2alpha-rev20241231-2.0.0'
38+
implementation 'com.google.apis:google-api-services-retail:v2alpha-rev20250107-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-retail/v2alpha/2.0.0/com/google/api/services/retail/v2alpha/model/GoogleCloudRetailV2alphaRule.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ public final class GoogleCloudRetailV2alphaRule extends com.google.api.client.js
8383
@com.google.api.client.util.Key
8484
private GoogleCloudRetailV2alphaRuleOnewaySynonymsAction onewaySynonymsAction;
8585

86+
/**
87+
* Pins one or more specified products to a specific position in the results.
88+
* The value may be {@code null}.
89+
*/
90+
@com.google.api.client.util.Key
91+
private GoogleCloudRetailV2alphaRulePinAction pinAction;
92+
8693
/**
8794
* Redirects a shopper to a specific page.
8895
* The value may be {@code null}.
@@ -234,6 +241,23 @@ public GoogleCloudRetailV2alphaRule setOnewaySynonymsAction(GoogleCloudRetailV2a
234241
return this;
235242
}
236243

244+
/**
245+
* Pins one or more specified products to a specific position in the results.
246+
* @return value or {@code null} for none
247+
*/
248+
public GoogleCloudRetailV2alphaRulePinAction getPinAction() {
249+
return pinAction;
250+
}
251+
252+
/**
253+
* Pins one or more specified products to a specific position in the results.
254+
* @param pinAction pinAction or {@code null} for none
255+
*/
256+
public GoogleCloudRetailV2alphaRule setPinAction(GoogleCloudRetailV2alphaRulePinAction pinAction) {
257+
this.pinAction = pinAction;
258+
return this;
259+
}
260+
237261
/**
238262
* Redirects a shopper to a specific page.
239263
* @return value or {@code null} for none
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.retail.v2alpha.model;
18+
19+
/**
20+
* Pins one or more specified products to a specific position in the results. * Rule Condition: Must
21+
* specify non-empty Condition.query_terms (for search only) or Condition.page_categories (for
22+
* browse only), but can't specify both. * Action Input: mapping of `[pin_position, product_id]`
23+
* pairs (pin position uses 1-based indexing). * Action Result: Will pin products with matching ids
24+
* to the position specified in the final result order. Example: Suppose the query is `shoes`, the
25+
* Condition.query_terms is `shoes` and the pin_map has `{1, "pid1"}`, then product with `pid1` will
26+
* be pinned to the top position in the final results. If multiple PinActions are matched to a
27+
* single request the actions will be processed from most to least recently updated. Pins to
28+
* positions larger than the max allowed page size of 120 are not allowed.
29+
*
30+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
31+
* transmitted over HTTP when working with the Vertex AI Search for Retail API. For a detailed
32+
* explanation see:
33+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
34+
* </p>
35+
*
36+
* @author Google, Inc.
37+
*/
38+
@SuppressWarnings("javadoc")
39+
public final class GoogleCloudRetailV2alphaRulePinAction extends com.google.api.client.json.GenericJson {
40+
41+
/**
42+
* Required. A map of positions to product_ids. Partial matches per action are allowed, if a
43+
* certain position in the map is already filled that `[position, product_id]` pair will be
44+
* ignored but the rest may still be applied. This case will only occur if multiple pin actions
45+
* are matched to a single request, as the map guarantees that pin positions are unique within the
46+
* same action. Duplicate product_ids are not permitted within a single pin map. The max size of
47+
* this map is 120, equivalent to the max [request page size](https://cloud.google.com/retail/docs
48+
* /reference/rest/v2/projects.locations.catalogs.placements/search#request-body).
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private java.util.Map<String, java.lang.String> pinMap;
53+
54+
/**
55+
* Required. A map of positions to product_ids. Partial matches per action are allowed, if a
56+
* certain position in the map is already filled that `[position, product_id]` pair will be
57+
* ignored but the rest may still be applied. This case will only occur if multiple pin actions
58+
* are matched to a single request, as the map guarantees that pin positions are unique within the
59+
* same action. Duplicate product_ids are not permitted within a single pin map. The max size of
60+
* this map is 120, equivalent to the max [request page size](https://cloud.google.com/retail/docs
61+
* /reference/rest/v2/projects.locations.catalogs.placements/search#request-body).
62+
* @return value or {@code null} for none
63+
*/
64+
public java.util.Map<String, java.lang.String> getPinMap() {
65+
return pinMap;
66+
}
67+
68+
/**
69+
* Required. A map of positions to product_ids. Partial matches per action are allowed, if a
70+
* certain position in the map is already filled that `[position, product_id]` pair will be
71+
* ignored but the rest may still be applied. This case will only occur if multiple pin actions
72+
* are matched to a single request, as the map guarantees that pin positions are unique within the
73+
* same action. Duplicate product_ids are not permitted within a single pin map. The max size of
74+
* this map is 120, equivalent to the max [request page size](https://cloud.google.com/retail/docs
75+
* /reference/rest/v2/projects.locations.catalogs.placements/search#request-body).
76+
* @param pinMap pinMap or {@code null} for none
77+
*/
78+
public GoogleCloudRetailV2alphaRulePinAction setPinMap(java.util.Map<String, java.lang.String> pinMap) {
79+
this.pinMap = pinMap;
80+
return this;
81+
}
82+
83+
@Override
84+
public GoogleCloudRetailV2alphaRulePinAction set(String fieldName, Object value) {
85+
return (GoogleCloudRetailV2alphaRulePinAction) super.set(fieldName, value);
86+
}
87+
88+
@Override
89+
public GoogleCloudRetailV2alphaRulePinAction clone() {
90+
return (GoogleCloudRetailV2alphaRulePinAction) super.clone();
91+
}
92+
93+
}

clients/google-api-services-retail/v2alpha/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-retail</artifactId>
11-
<version>v2alpha-rev20241231-2.0.0</version>
12-
<name>Vertex AI Search for Retail API v2alpha-rev20241231-2.0.0</name>
11+
<version>v2alpha-rev20250107-2.0.0</version>
12+
<name>Vertex AI Search for Retail API v2alpha-rev20250107-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-retail/v2alpha/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-retail</artifactId>
25-
<version>v2alpha-rev20241231-2.0.0</version>
25+
<version>v2alpha-rev20250107-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-retail:v2alpha-rev20241231-2.0.0'
38+
implementation 'com.google.apis:google-api-services-retail:v2alpha-rev20250107-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)