Skip to content

Commit 9a07486

Browse files
1 parent bfde43f commit 9a07486

7 files changed

Lines changed: 492 additions & 6 deletions

File tree

clients/google-api-services-merchantapi/products_v1/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-merchantapi</artifactId>
25-
<version>products_v1-rev20260512-2.0.0</version>
25+
<version>products_v1-rev20260519-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-merchantapi:products_v1-rev20260512-2.0.0'
38+
implementation 'com.google.apis:google-api-services-merchantapi:products_v1-rev20260519-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-merchantapi/products_v1/2.0.0/com/google/api/services/merchantapi/products_v1/model/ProductAttributes.java

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,16 @@ public final class ProductAttributes extends com.google.api.client.json.GenericJ
292292
@com.google.api.client.util.Key
293293
private java.lang.Double displayAdsValue;
294294

295+
/**
296+
* Optional. Contains a list of PDF [document
297+
* URLs](https://support.google.com/merchants/answer/17084656) for the product. Examples are
298+
* training manuals, user guides, assembly instructions, package inserts, etc. Must start with
299+
* "http://" or "https://"), ASCII characters only, and RFC 3986 compliant.
300+
* The value may be {@code null}.
301+
*/
302+
@com.google.api.client.util.Key
303+
private java.util.List<java.lang.String> documentLinks;
304+
295305
/**
296306
* The [electric range](https://support.google.com/google-ads/answer/15162232) of the vehicle in
297307
* miles/kms.
@@ -475,6 +485,18 @@ public final class ProductAttributes extends com.google.api.client.json.GenericJ
475485
@com.google.api.client.util.Key
476486
private java.lang.String itemGroupId;
477487

488+
/**
489+
* Optional. Represents the [product group
490+
* title](https://support.google.com/merchants/answer/17085146) to which this variant product
491+
* belongs. This can be used along with the [item group
492+
* id](https://support.google.com/merchants/answer/6324507) attribute. It lets you perform better
493+
* grouping of variant products, and helps identifying common product characteristics more
494+
* efficiently.
495+
* The value may be {@code null}.
496+
*/
497+
@com.google.api.client.util.Key
498+
private java.lang.String itemGroupTitle;
499+
478500
/**
479501
* Additional URLs of lifestyle images of the item, used to explicitly identify images that
480502
* showcase your item in a real-world context. See the [Help Center
@@ -659,6 +681,14 @@ public final class ProductAttributes extends com.google.api.client.json.GenericJ
659681
@com.google.api.client.util.Key
660682
private java.lang.String pickupSla;
661683

684+
/**
685+
* Optional. Indicates the [popularity](https://support.google.com/merchants/answer/17085297) of
686+
* the product in a merchant's inventory. Using a scale of 0.0 (lowest) to 100.0 (highest).
687+
* The value may be {@code null}.
688+
*/
689+
@com.google.api.client.util.Key
690+
private java.lang.Float popularityRank;
691+
662692
/**
663693
* Price of the item.
664694
* The value may be {@code null}.
@@ -728,6 +758,24 @@ public final class ProductAttributes extends com.google.api.client.json.GenericJ
728758
@com.google.api.client.util.Key
729759
private java.util.List<java.lang.String> promotionIds;
730760

761+
/**
762+
* Optional. Contains merchant authored [questions and
763+
* answers](https://support.google.com/merchants/answer/17085211) about the product. Max 30
764+
* question and answer pairs. Max 5000 characters total. Each question can have max 1000
765+
* characters. Each answer can have max 1000 characters.
766+
* The value may be {@code null}.
767+
*/
768+
@com.google.api.client.util.Key
769+
private java.util.List<QuestionAndAnswer> questionsAndAnswers;
770+
771+
/**
772+
* Optional. Specifies how other [products are
773+
* related](https://support.google.com/merchants/answer/17085213) to this product.
774+
* The value may be {@code null}.
775+
*/
776+
@com.google.api.client.util.Key
777+
private java.util.List<RelatedProduct> relatedProducts;
778+
731779
/**
732780
* The return label of the product, used to group products in account-level return policies. Max.
733781
* 100 characters. For more information, see [Return policy
@@ -921,6 +969,14 @@ public final class ProductAttributes extends com.google.api.client.json.GenericJ
921969
@com.google.api.client.util.Key
922970
private UnitPricingMeasure unitPricingMeasure;
923971

972+
/**
973+
* Optional. Contains a list of [additional
974+
* variants](https://support.google.com/merchants/answer/17085214) for the product.
975+
* The value may be {@code null}.
976+
*/
977+
@com.google.api.client.util.Key
978+
private java.util.List<VariantOption> variantOptions;
979+
924980
/**
925981
* The all-in advertised price for a vehicle, which includes costs for the following – any
926982
* accessories attached to the vehicle, environmental levies, extra warranty, fuel, freight, pre-
@@ -1606,6 +1662,29 @@ public ProductAttributes setDisplayAdsValue(java.lang.Double displayAdsValue) {
16061662
return this;
16071663
}
16081664

1665+
/**
1666+
* Optional. Contains a list of PDF [document
1667+
* URLs](https://support.google.com/merchants/answer/17084656) for the product. Examples are
1668+
* training manuals, user guides, assembly instructions, package inserts, etc. Must start with
1669+
* "http://" or "https://"), ASCII characters only, and RFC 3986 compliant.
1670+
* @return value or {@code null} for none
1671+
*/
1672+
public java.util.List<java.lang.String> getDocumentLinks() {
1673+
return documentLinks;
1674+
}
1675+
1676+
/**
1677+
* Optional. Contains a list of PDF [document
1678+
* URLs](https://support.google.com/merchants/answer/17084656) for the product. Examples are
1679+
* training manuals, user guides, assembly instructions, package inserts, etc. Must start with
1680+
* "http://" or "https://"), ASCII characters only, and RFC 3986 compliant.
1681+
* @param documentLinks documentLinks or {@code null} for none
1682+
*/
1683+
public ProductAttributes setDocumentLinks(java.util.List<java.lang.String> documentLinks) {
1684+
this.documentLinks = documentLinks;
1685+
return this;
1686+
}
1687+
16091688
/**
16101689
* The [electric range](https://support.google.com/google-ads/answer/15162232) of the vehicle in
16111690
* miles/kms.
@@ -2011,6 +2090,33 @@ public ProductAttributes setItemGroupId(java.lang.String itemGroupId) {
20112090
return this;
20122091
}
20132092

2093+
/**
2094+
* Optional. Represents the [product group
2095+
* title](https://support.google.com/merchants/answer/17085146) to which this variant product
2096+
* belongs. This can be used along with the [item group
2097+
* id](https://support.google.com/merchants/answer/6324507) attribute. It lets you perform better
2098+
* grouping of variant products, and helps identifying common product characteristics more
2099+
* efficiently.
2100+
* @return value or {@code null} for none
2101+
*/
2102+
public java.lang.String getItemGroupTitle() {
2103+
return itemGroupTitle;
2104+
}
2105+
2106+
/**
2107+
* Optional. Represents the [product group
2108+
* title](https://support.google.com/merchants/answer/17085146) to which this variant product
2109+
* belongs. This can be used along with the [item group
2110+
* id](https://support.google.com/merchants/answer/6324507) attribute. It lets you perform better
2111+
* grouping of variant products, and helps identifying common product characteristics more
2112+
* efficiently.
2113+
* @param itemGroupTitle itemGroupTitle or {@code null} for none
2114+
*/
2115+
public ProductAttributes setItemGroupTitle(java.lang.String itemGroupTitle) {
2116+
this.itemGroupTitle = itemGroupTitle;
2117+
return this;
2118+
}
2119+
20142120
/**
20152121
* Additional URLs of lifestyle images of the item, used to explicitly identify images that
20162122
* showcase your item in a real-world context. See the [Help Center
@@ -2436,6 +2542,25 @@ public ProductAttributes setPickupSla(java.lang.String pickupSla) {
24362542
return this;
24372543
}
24382544

2545+
/**
2546+
* Optional. Indicates the [popularity](https://support.google.com/merchants/answer/17085297) of
2547+
* the product in a merchant's inventory. Using a scale of 0.0 (lowest) to 100.0 (highest).
2548+
* @return value or {@code null} for none
2549+
*/
2550+
public java.lang.Float getPopularityRank() {
2551+
return popularityRank;
2552+
}
2553+
2554+
/**
2555+
* Optional. Indicates the [popularity](https://support.google.com/merchants/answer/17085297) of
2556+
* the product in a merchant's inventory. Using a scale of 0.0 (lowest) to 100.0 (highest).
2557+
* @param popularityRank popularityRank or {@code null} for none
2558+
*/
2559+
public ProductAttributes setPopularityRank(java.lang.Float popularityRank) {
2560+
this.popularityRank = popularityRank;
2561+
return this;
2562+
}
2563+
24392564
/**
24402565
* Price of the item.
24412566
* @return value or {@code null} for none
@@ -2601,6 +2726,48 @@ public ProductAttributes setPromotionIds(java.util.List<java.lang.String> promot
26012726
return this;
26022727
}
26032728

2729+
/**
2730+
* Optional. Contains merchant authored [questions and
2731+
* answers](https://support.google.com/merchants/answer/17085211) about the product. Max 30
2732+
* question and answer pairs. Max 5000 characters total. Each question can have max 1000
2733+
* characters. Each answer can have max 1000 characters.
2734+
* @return value or {@code null} for none
2735+
*/
2736+
public java.util.List<QuestionAndAnswer> getQuestionsAndAnswers() {
2737+
return questionsAndAnswers;
2738+
}
2739+
2740+
/**
2741+
* Optional. Contains merchant authored [questions and
2742+
* answers](https://support.google.com/merchants/answer/17085211) about the product. Max 30
2743+
* question and answer pairs. Max 5000 characters total. Each question can have max 1000
2744+
* characters. Each answer can have max 1000 characters.
2745+
* @param questionsAndAnswers questionsAndAnswers or {@code null} for none
2746+
*/
2747+
public ProductAttributes setQuestionsAndAnswers(java.util.List<QuestionAndAnswer> questionsAndAnswers) {
2748+
this.questionsAndAnswers = questionsAndAnswers;
2749+
return this;
2750+
}
2751+
2752+
/**
2753+
* Optional. Specifies how other [products are
2754+
* related](https://support.google.com/merchants/answer/17085213) to this product.
2755+
* @return value or {@code null} for none
2756+
*/
2757+
public java.util.List<RelatedProduct> getRelatedProducts() {
2758+
return relatedProducts;
2759+
}
2760+
2761+
/**
2762+
* Optional. Specifies how other [products are
2763+
* related](https://support.google.com/merchants/answer/17085213) to this product.
2764+
* @param relatedProducts relatedProducts or {@code null} for none
2765+
*/
2766+
public ProductAttributes setRelatedProducts(java.util.List<RelatedProduct> relatedProducts) {
2767+
this.relatedProducts = relatedProducts;
2768+
return this;
2769+
}
2770+
26042771
/**
26052772
* The return label of the product, used to group products in account-level return policies. Max.
26062773
* 100 characters. For more information, see [Return policy
@@ -3062,6 +3229,25 @@ public ProductAttributes setUnitPricingMeasure(UnitPricingMeasure unitPricingMea
30623229
return this;
30633230
}
30643231

3232+
/**
3233+
* Optional. Contains a list of [additional
3234+
* variants](https://support.google.com/merchants/answer/17085214) for the product.
3235+
* @return value or {@code null} for none
3236+
*/
3237+
public java.util.List<VariantOption> getVariantOptions() {
3238+
return variantOptions;
3239+
}
3240+
3241+
/**
3242+
* Optional. Contains a list of [additional
3243+
* variants](https://support.google.com/merchants/answer/17085214) for the product.
3244+
* @param variantOptions variantOptions or {@code null} for none
3245+
*/
3246+
public ProductAttributes setVariantOptions(java.util.List<VariantOption> variantOptions) {
3247+
this.variantOptions = variantOptions;
3248+
return this;
3249+
}
3250+
30653251
/**
30663252
* The all-in advertised price for a vehicle, which includes costs for the following – any
30673253
* accessories attached to the vehicle, environmental levies, extra warranty, fuel, freight, pre-
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
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.merchantapi.products_v1.model;
18+
19+
/**
20+
* The question and answer for the product.
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 Merchant API. For a detailed explanation see:
24+
* <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>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class QuestionAndAnswer extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Required. The answer text.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String answer;
38+
39+
/**
40+
* Required. The question text.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.lang.String question;
45+
46+
/**
47+
* Required. The answer text.
48+
* @return value or {@code null} for none
49+
*/
50+
public java.lang.String getAnswer() {
51+
return answer;
52+
}
53+
54+
/**
55+
* Required. The answer text.
56+
* @param answer answer or {@code null} for none
57+
*/
58+
public QuestionAndAnswer setAnswer(java.lang.String answer) {
59+
this.answer = answer;
60+
return this;
61+
}
62+
63+
/**
64+
* Required. The question text.
65+
* @return value or {@code null} for none
66+
*/
67+
public java.lang.String getQuestion() {
68+
return question;
69+
}
70+
71+
/**
72+
* Required. The question text.
73+
* @param question question or {@code null} for none
74+
*/
75+
public QuestionAndAnswer setQuestion(java.lang.String question) {
76+
this.question = question;
77+
return this;
78+
}
79+
80+
@Override
81+
public QuestionAndAnswer set(String fieldName, Object value) {
82+
return (QuestionAndAnswer) super.set(fieldName, value);
83+
}
84+
85+
@Override
86+
public QuestionAndAnswer clone() {
87+
return (QuestionAndAnswer) super.clone();
88+
}
89+
90+
}

0 commit comments

Comments
 (0)