Skip to content

Commit ef034b0

Browse files
1 parent 865a1ba commit ef034b0

File tree

6 files changed

+195
-6
lines changed

6 files changed

+195
-6
lines changed

clients/google-api-services-retail/v2beta/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>v2beta-rev20241017-2.0.0</version>
25+
<version>v2beta-rev20241024-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:v2beta-rev20241017-2.0.0'
38+
implementation 'com.google.apis:google-api-services-retail:v2beta-rev20241024-2.0.0'
3939
}
4040
```
4141

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
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.v2beta.model;
18+
19+
/**
20+
* Metadata for pinning to be returned in the response. This is used for distinguishing between
21+
* applied vs dropped pins.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Vertex AI Search for Retail API. For a detailed
25+
* explanation see:
26+
* <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>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class GoogleCloudRetailV2betaPinControlMetadata extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* Map of all matched pins, keyed by pin position.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.util.Map<String, GoogleCloudRetailV2betaPinControlMetadataProductPins> allMatchedPins;
40+
41+
/**
42+
* Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.util.Map<String, GoogleCloudRetailV2betaPinControlMetadataProductPins> droppedPins;
47+
48+
/**
49+
* Map of all matched pins, keyed by pin position.
50+
* @return value or {@code null} for none
51+
*/
52+
public java.util.Map<String, GoogleCloudRetailV2betaPinControlMetadataProductPins> getAllMatchedPins() {
53+
return allMatchedPins;
54+
}
55+
56+
/**
57+
* Map of all matched pins, keyed by pin position.
58+
* @param allMatchedPins allMatchedPins or {@code null} for none
59+
*/
60+
public GoogleCloudRetailV2betaPinControlMetadata setAllMatchedPins(java.util.Map<String, GoogleCloudRetailV2betaPinControlMetadataProductPins> allMatchedPins) {
61+
this.allMatchedPins = allMatchedPins;
62+
return this;
63+
}
64+
65+
/**
66+
* Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.
67+
* @return value or {@code null} for none
68+
*/
69+
public java.util.Map<String, GoogleCloudRetailV2betaPinControlMetadataProductPins> getDroppedPins() {
70+
return droppedPins;
71+
}
72+
73+
/**
74+
* Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.
75+
* @param droppedPins droppedPins or {@code null} for none
76+
*/
77+
public GoogleCloudRetailV2betaPinControlMetadata setDroppedPins(java.util.Map<String, GoogleCloudRetailV2betaPinControlMetadataProductPins> droppedPins) {
78+
this.droppedPins = droppedPins;
79+
return this;
80+
}
81+
82+
@Override
83+
public GoogleCloudRetailV2betaPinControlMetadata set(String fieldName, Object value) {
84+
return (GoogleCloudRetailV2betaPinControlMetadata) super.set(fieldName, value);
85+
}
86+
87+
@Override
88+
public GoogleCloudRetailV2betaPinControlMetadata clone() {
89+
return (GoogleCloudRetailV2betaPinControlMetadata) super.clone();
90+
}
91+
92+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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.v2beta.model;
18+
19+
/**
20+
* List of product ids which have associated pins.
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 Retail 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 GoogleCloudRetailV2betaPinControlMetadataProductPins extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* List of product ids which have associated pins.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.List<java.lang.String> productId;
39+
40+
/**
41+
* List of product ids which have associated pins.
42+
* @return value or {@code null} for none
43+
*/
44+
public java.util.List<java.lang.String> getProductId() {
45+
return productId;
46+
}
47+
48+
/**
49+
* List of product ids which have associated pins.
50+
* @param productId productId or {@code null} for none
51+
*/
52+
public GoogleCloudRetailV2betaPinControlMetadataProductPins setProductId(java.util.List<java.lang.String> productId) {
53+
this.productId = productId;
54+
return this;
55+
}
56+
57+
@Override
58+
public GoogleCloudRetailV2betaPinControlMetadataProductPins set(String fieldName, Object value) {
59+
return (GoogleCloudRetailV2betaPinControlMetadataProductPins) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public GoogleCloudRetailV2betaPinControlMetadataProductPins clone() {
64+
return (GoogleCloudRetailV2betaPinControlMetadataProductPins) super.clone();
65+
}
66+
67+
}

clients/google-api-services-retail/v2beta/2.0.0/com/google/api/services/retail/v2beta/model/GoogleCloudRetailV2betaSearchResponse.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,15 @@ public final class GoogleCloudRetailV2betaSearchResponse extends com.google.api.
105105
@com.google.api.client.util.Key
106106
private java.lang.String nextPageToken;
107107

108+
/**
109+
* Metadata for pin controls which were applicable to the request. This contains two map fields,
110+
* one for all matched pins and one for pins which were matched but not applied. The two maps are
111+
* keyed by pin position, and the values are the product ids which were matched to that pin.
112+
* The value may be {@code null}.
113+
*/
114+
@com.google.api.client.util.Key
115+
private GoogleCloudRetailV2betaPinControlMetadata pinControlMetadata;
116+
108117
/**
109118
* Query expansion information for the returned results.
110119
* The value may be {@code null}.
@@ -293,6 +302,27 @@ public GoogleCloudRetailV2betaSearchResponse setNextPageToken(java.lang.String n
293302
return this;
294303
}
295304

305+
/**
306+
* Metadata for pin controls which were applicable to the request. This contains two map fields,
307+
* one for all matched pins and one for pins which were matched but not applied. The two maps are
308+
* keyed by pin position, and the values are the product ids which were matched to that pin.
309+
* @return value or {@code null} for none
310+
*/
311+
public GoogleCloudRetailV2betaPinControlMetadata getPinControlMetadata() {
312+
return pinControlMetadata;
313+
}
314+
315+
/**
316+
* Metadata for pin controls which were applicable to the request. This contains two map fields,
317+
* one for all matched pins and one for pins which were matched but not applied. The two maps are
318+
* keyed by pin position, and the values are the product ids which were matched to that pin.
319+
* @param pinControlMetadata pinControlMetadata or {@code null} for none
320+
*/
321+
public GoogleCloudRetailV2betaSearchResponse setPinControlMetadata(GoogleCloudRetailV2betaPinControlMetadata pinControlMetadata) {
322+
this.pinControlMetadata = pinControlMetadata;
323+
return this;
324+
}
325+
296326
/**
297327
* Query expansion information for the returned results.
298328
* @return value or {@code null} for none

clients/google-api-services-retail/v2beta/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>v2beta-rev20241017-2.0.0</version>
12-
<name>Vertex AI Search for Retail API v2beta-rev20241017-2.0.0</name>
11+
<version>v2beta-rev20241024-2.0.0</version>
12+
<name>Vertex AI Search for Retail API v2beta-rev20241024-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-retail/v2beta/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>v2beta-rev20241017-2.0.0</version>
25+
<version>v2beta-rev20241024-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:v2beta-rev20241017-2.0.0'
38+
implementation 'com.google.apis:google-api-services-retail:v2beta-rev20241024-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)