Reference documentation and code samples for the Google Shopping Merchant Products V1 Client class LeaseTerm.
The lease term of the property.
Generated from protobuf message google.shopping.merchant.products.v1.ProductAttributes.LeaseTerm
Namespace
Google \ Shopping \ Merchant \ Products \ V1 \ ProductAttributesMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ type |
int
The type of lease term. |
↳ duration_value |
int|string
The duration value of the lease term. |
↳ duration_unit |
int
The duration unit of the lease term. |
getType
The type of lease term.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type LeaseTermType. |
setType
The type of lease term.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type LeaseTermType. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDurationValue
The duration value of the lease term.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
hasDurationValue
clearDurationValue
setDurationValue
The duration value of the lease term.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDurationUnit
The duration unit of the lease term.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type DurationUnit. |
setDurationUnit
The duration unit of the lease term.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type DurationUnit. |
| Returns | |
|---|---|
| Type | Description |
$this |
|