Skip to content

Commit fc2e354

Browse files
1 parent 8f23916 commit fc2e354

19 files changed

+877
-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-rev20250703-2.0.0</version>
25+
<version>v2-rev20250717-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-rev20250703-2.0.0'
38+
implementation 'com.google.apis:google-api-services-retail:v2-rev20250717-2.0.0'
3939
}
4040
```
4141

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,193 @@
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+
* Detailed panel information associated with a user event.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Vertex AI Search for commerce API. For a detailed
24+
* explanation see:
25+
* <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>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class GoogleCloudRetailV2PanelInfo extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. The attribution token of the panel.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String attributionToken;
39+
40+
/**
41+
* Optional. The display name of the panel.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.String displayName;
46+
47+
/**
48+
* Required. The panel ID.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private java.lang.String panelId;
53+
54+
/**
55+
* Optional. The ordered position of the panel, if shown to the user with other panels. If set,
56+
* then total_panels must also be set.
57+
* The value may be {@code null}.
58+
*/
59+
@com.google.api.client.util.Key
60+
private java.lang.Integer panelPosition;
61+
62+
/**
63+
* Optional. The product details associated with the panel.
64+
* The value may be {@code null}.
65+
*/
66+
@com.google.api.client.util.Key
67+
private java.util.List<GoogleCloudRetailV2ProductDetail> productDetails;
68+
69+
/**
70+
* Optional. The total number of panels, including this one, shown to the user. Must be set if
71+
* panel_position is set.
72+
* The value may be {@code null}.
73+
*/
74+
@com.google.api.client.util.Key
75+
private java.lang.Integer totalPanels;
76+
77+
/**
78+
* Optional. The attribution token of the panel.
79+
* @return value or {@code null} for none
80+
*/
81+
public java.lang.String getAttributionToken() {
82+
return attributionToken;
83+
}
84+
85+
/**
86+
* Optional. The attribution token of the panel.
87+
* @param attributionToken attributionToken or {@code null} for none
88+
*/
89+
public GoogleCloudRetailV2PanelInfo setAttributionToken(java.lang.String attributionToken) {
90+
this.attributionToken = attributionToken;
91+
return this;
92+
}
93+
94+
/**
95+
* Optional. The display name of the panel.
96+
* @return value or {@code null} for none
97+
*/
98+
public java.lang.String getDisplayName() {
99+
return displayName;
100+
}
101+
102+
/**
103+
* Optional. The display name of the panel.
104+
* @param displayName displayName or {@code null} for none
105+
*/
106+
public GoogleCloudRetailV2PanelInfo setDisplayName(java.lang.String displayName) {
107+
this.displayName = displayName;
108+
return this;
109+
}
110+
111+
/**
112+
* Required. The panel ID.
113+
* @return value or {@code null} for none
114+
*/
115+
public java.lang.String getPanelId() {
116+
return panelId;
117+
}
118+
119+
/**
120+
* Required. The panel ID.
121+
* @param panelId panelId or {@code null} for none
122+
*/
123+
public GoogleCloudRetailV2PanelInfo setPanelId(java.lang.String panelId) {
124+
this.panelId = panelId;
125+
return this;
126+
}
127+
128+
/**
129+
* Optional. The ordered position of the panel, if shown to the user with other panels. If set,
130+
* then total_panels must also be set.
131+
* @return value or {@code null} for none
132+
*/
133+
public java.lang.Integer getPanelPosition() {
134+
return panelPosition;
135+
}
136+
137+
/**
138+
* Optional. The ordered position of the panel, if shown to the user with other panels. If set,
139+
* then total_panels must also be set.
140+
* @param panelPosition panelPosition or {@code null} for none
141+
*/
142+
public GoogleCloudRetailV2PanelInfo setPanelPosition(java.lang.Integer panelPosition) {
143+
this.panelPosition = panelPosition;
144+
return this;
145+
}
146+
147+
/**
148+
* Optional. The product details associated with the panel.
149+
* @return value or {@code null} for none
150+
*/
151+
public java.util.List<GoogleCloudRetailV2ProductDetail> getProductDetails() {
152+
return productDetails;
153+
}
154+
155+
/**
156+
* Optional. The product details associated with the panel.
157+
* @param productDetails productDetails or {@code null} for none
158+
*/
159+
public GoogleCloudRetailV2PanelInfo setProductDetails(java.util.List<GoogleCloudRetailV2ProductDetail> productDetails) {
160+
this.productDetails = productDetails;
161+
return this;
162+
}
163+
164+
/**
165+
* Optional. The total number of panels, including this one, shown to the user. Must be set if
166+
* panel_position is set.
167+
* @return value or {@code null} for none
168+
*/
169+
public java.lang.Integer getTotalPanels() {
170+
return totalPanels;
171+
}
172+
173+
/**
174+
* Optional. The total number of panels, including this one, shown to the user. Must be set if
175+
* panel_position is set.
176+
* @param totalPanels totalPanels or {@code null} for none
177+
*/
178+
public GoogleCloudRetailV2PanelInfo setTotalPanels(java.lang.Integer totalPanels) {
179+
this.totalPanels = totalPanels;
180+
return this;
181+
}
182+
183+
@Override
184+
public GoogleCloudRetailV2PanelInfo set(String fieldName, Object value) {
185+
return (GoogleCloudRetailV2PanelInfo) super.set(fieldName, value);
186+
}
187+
188+
@Override
189+
public GoogleCloudRetailV2PanelInfo clone() {
190+
return (GoogleCloudRetailV2PanelInfo) super.clone();
191+
}
192+
193+
}

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,19 @@ public final class GoogleCloudRetailV2UserEvent extends com.google.api.client.js
179179
@com.google.api.client.util.Key
180180
private java.lang.String pageViewId;
181181

182+
/**
183+
* Optional. List of panels associated with this event. Used for panel-level impression data.
184+
* The value may be {@code null}.
185+
*/
186+
@com.google.api.client.util.Key
187+
private java.util.List<GoogleCloudRetailV2PanelInfo> panels;
188+
189+
static {
190+
// hack to force ProGuard to consider GoogleCloudRetailV2PanelInfo used, since otherwise it would be stripped out
191+
// see https://github.com/google/google-api-java-client/issues/543
192+
com.google.api.client.util.Data.nullOf(GoogleCloudRetailV2PanelInfo.class);
193+
}
194+
182195
/**
183196
* The main product details related to the event. This field is optional except for the following
184197
* event types: * `add-to-cart` * `detail-page-view` * `purchase-complete` In a `search` event,
@@ -589,6 +602,23 @@ public GoogleCloudRetailV2UserEvent setPageViewId(java.lang.String pageViewId) {
589602
return this;
590603
}
591604

605+
/**
606+
* Optional. List of panels associated with this event. Used for panel-level impression data.
607+
* @return value or {@code null} for none
608+
*/
609+
public java.util.List<GoogleCloudRetailV2PanelInfo> getPanels() {
610+
return panels;
611+
}
612+
613+
/**
614+
* Optional. List of panels associated with this event. Used for panel-level impression data.
615+
* @param panels panels or {@code null} for none
616+
*/
617+
public GoogleCloudRetailV2UserEvent setPanels(java.util.List<GoogleCloudRetailV2PanelInfo> panels) {
618+
this.panels = panels;
619+
return this;
620+
}
621+
592622
/**
593623
* The main product details related to the event. This field is optional except for the following
594624
* event types: * `add-to-cart` * `detail-page-view` * `purchase-complete` In a `search` event,

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-rev20250703-2.0.0</version>
12-
<name>Vertex AI Search for commerce API v2-rev20250703-2.0.0</name>
11+
<version>v2-rev20250717-2.0.0</version>
12+
<name>Vertex AI Search for commerce API v2-rev20250717-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-rev20250703-2.0.0</version>
25+
<version>v2-rev20250717-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-rev20250703-2.0.0'
38+
implementation 'com.google.apis:google-api-services-retail:v2-rev20250717-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-rev20250710-2.0.0</version>
25+
<version>v2alpha-rev20250717-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-rev20250710-2.0.0'
38+
implementation 'com.google.apis:google-api-services-retail:v2alpha-rev20250717-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ public final class GoogleCloudRetailV2alphaConversationalSearchRequest extends c
7575
@com.google.api.client.util.Key
7676
private java.lang.String query;
7777

78+
/**
79+
* Optional. The safety settings to be applied to the generated content.
80+
* The value may be {@code null}.
81+
*/
82+
@com.google.api.client.util.Key
83+
private java.util.List<GoogleCloudRetailV2alphaSafetySetting> safetySettings;
84+
7885
/**
7986
* Optional. Search parameters.
8087
* The value may be {@code null}.
@@ -221,6 +228,23 @@ public GoogleCloudRetailV2alphaConversationalSearchRequest setQuery(java.lang.St
221228
return this;
222229
}
223230

231+
/**
232+
* Optional. The safety settings to be applied to the generated content.
233+
* @return value or {@code null} for none
234+
*/
235+
public java.util.List<GoogleCloudRetailV2alphaSafetySetting> getSafetySettings() {
236+
return safetySettings;
237+
}
238+
239+
/**
240+
* Optional. The safety settings to be applied to the generated content.
241+
* @param safetySettings safetySettings or {@code null} for none
242+
*/
243+
public GoogleCloudRetailV2alphaConversationalSearchRequest setSafetySettings(java.util.List<GoogleCloudRetailV2alphaSafetySetting> safetySettings) {
244+
this.safetySettings = safetySettings;
245+
return this;
246+
}
247+
224248
/**
225249
* Optional. Search parameters.
226250
* @return value or {@code null} for none

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ public final class GoogleCloudRetailV2alphaMerchantCenterFeedFilter extends com.
3737
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
3838
private java.lang.Long dataSourceId;
3939

40+
/**
41+
* Merchant Center primary feed ID. Deprecated: use data_source_id instead.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
45+
private java.lang.Long primaryFeedId;
46+
4047
/**
4148
* Merchant Center primary feed name. The name is used for the display purposes only.
4249
* The value may be {@code null}.
@@ -61,6 +68,23 @@ public GoogleCloudRetailV2alphaMerchantCenterFeedFilter setDataSourceId(java.lan
6168
return this;
6269
}
6370

71+
/**
72+
* Merchant Center primary feed ID. Deprecated: use data_source_id instead.
73+
* @return value or {@code null} for none
74+
*/
75+
public java.lang.Long getPrimaryFeedId() {
76+
return primaryFeedId;
77+
}
78+
79+
/**
80+
* Merchant Center primary feed ID. Deprecated: use data_source_id instead.
81+
* @param primaryFeedId primaryFeedId or {@code null} for none
82+
*/
83+
public GoogleCloudRetailV2alphaMerchantCenterFeedFilter setPrimaryFeedId(java.lang.Long primaryFeedId) {
84+
this.primaryFeedId = primaryFeedId;
85+
return this;
86+
}
87+
6488
/**
6589
* Merchant Center primary feed name. The name is used for the display purposes only.
6690
* @return value or {@code null} for none

0 commit comments

Comments
 (0)