Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-merchantapi</artifactId>
<version>products_v1-rev20260715-2.0.0</version>
<version>products_v1-rev20260729-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-merchantapi:products_v1-rev20260715-2.0.0'
implementation 'com.google.apis:google-api-services-merchantapi:products_v1-rev20260729-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.merchantapi.products_v1.model;

/**
* The lease term of the property.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Merchant API. For a detailed explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class LeaseTerm extends com.google.api.client.json.GenericJson {

/**
* The duration unit of the lease term.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String durationUnit;

/**
* The duration value of the lease term.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long durationValue;

/**
* The type of lease term.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String type;

/**
* The duration unit of the lease term.
* @return value or {@code null} for none
*/
public java.lang.String getDurationUnit() {
return durationUnit;
}

/**
* The duration unit of the lease term.
* @param durationUnit durationUnit or {@code null} for none
*/
public LeaseTerm setDurationUnit(java.lang.String durationUnit) {
this.durationUnit = durationUnit;
return this;
}

/**
* The duration value of the lease term.
* @return value or {@code null} for none
*/
public java.lang.Long getDurationValue() {
return durationValue;
}

/**
* The duration value of the lease term.
* @param durationValue durationValue or {@code null} for none
*/
public LeaseTerm setDurationValue(java.lang.Long durationValue) {
this.durationValue = durationValue;
return this;
}

/**
* The type of lease term.
* @return value or {@code null} for none
*/
public java.lang.String getType() {
return type;
}

/**
* The type of lease term.
* @param type type or {@code null} for none
*/
public LeaseTerm setType(java.lang.String type) {
this.type = type;
return this;
}

@Override
public LeaseTerm set(String fieldName, Object value) {
return (LeaseTerm) super.set(fieldName, value);
}

@Override
public LeaseTerm clone() {
return (LeaseTerm) super.clone();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,13 @@ public final class ProductAttributes extends com.google.api.client.json.GenericJ
@com.google.api.client.util.Key
private java.lang.Double latitude;

/**
* The lease term of the property.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private LeaseTerm leaseTerm;

/**
* Additional URLs of lifestyle images of the item, used to explicitly identify images that
* showcase your item in a real-world context. See the [Help Center
Expand Down Expand Up @@ -2294,6 +2301,23 @@ public ProductAttributes setLatitude(java.lang.Double latitude) {
return this;
}

/**
* The lease term of the property.
* @return value or {@code null} for none
*/
public LeaseTerm getLeaseTerm() {
return leaseTerm;
}

/**
* The lease term of the property.
* @param leaseTerm leaseTerm or {@code null} for none
*/
public ProductAttributes setLeaseTerm(LeaseTerm leaseTerm) {
this.leaseTerm = leaseTerm;
return this;
}

/**
* Additional URLs of lifestyle images of the item, used to explicitly identify images that
* showcase your item in a real-world context. See the [Help Center
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-merchantapi</artifactId>
<version>products_v1-rev20260715-2.0.0</version>
<name>Merchant API products_v1-rev20260715-2.0.0</name>
<version>products_v1-rev20260729-2.0.0</version>
<name>Merchant API products_v1-rev20260729-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-merchantapi</artifactId>
<version>products_v1-rev20260715-2.0.0</version>
<version>products_v1-rev20260729-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-merchantapi:products_v1-rev20260715-2.0.0'
implementation 'com.google.apis:google-api-services-merchantapi:products_v1-rev20260729-2.0.0'
}
```

Expand Down
Loading