Class ProductAttributes.LeaseTerm.Builder (1.27.0)

public static final class ProductAttributes.LeaseTerm.Builder extends GeneratedMessage.Builder<ProductAttributes.LeaseTerm.Builder> implements ProductAttributes.LeaseTermOrBuilder

The lease term of the property.

Protobuf type google.shopping.merchant.products.v1.ProductAttributes.LeaseTerm

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ProductAttributes.LeaseTerm build()
Returns
Type Description
ProductAttributes.LeaseTerm

buildPartial()

public ProductAttributes.LeaseTerm buildPartial()
Returns
Type Description
ProductAttributes.LeaseTerm

clear()

public ProductAttributes.LeaseTerm.Builder clear()
Returns
Type Description
ProductAttributes.LeaseTerm.Builder
Overrides

clearDurationUnit()

public ProductAttributes.LeaseTerm.Builder clearDurationUnit()

The duration unit of the lease term.

.google.shopping.merchant.products.v1.ProductAttributes.LeaseTerm.DurationUnit duration_unit = 3;

Returns
Type Description
ProductAttributes.LeaseTerm.Builder

This builder for chaining.

clearDurationValue()

public ProductAttributes.LeaseTerm.Builder clearDurationValue()

The duration value of the lease term.

optional int64 duration_value = 2;

Returns
Type Description
ProductAttributes.LeaseTerm.Builder

This builder for chaining.

clearType()

public ProductAttributes.LeaseTerm.Builder clearType()

The type of lease term.

.google.shopping.merchant.products.v1.ProductAttributes.LeaseTerm.LeaseTermType type = 1;

Returns
Type Description
ProductAttributes.LeaseTerm.Builder

This builder for chaining.

getDefaultInstanceForType()

public ProductAttributes.LeaseTerm getDefaultInstanceForType()
Returns
Type Description
ProductAttributes.LeaseTerm

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDurationUnit()

public ProductAttributes.LeaseTerm.DurationUnit getDurationUnit()

The duration unit of the lease term.

.google.shopping.merchant.products.v1.ProductAttributes.LeaseTerm.DurationUnit duration_unit = 3;

Returns
Type Description
ProductAttributes.LeaseTerm.DurationUnit

The durationUnit.

getDurationUnitValue()

public int getDurationUnitValue()

The duration unit of the lease term.

.google.shopping.merchant.products.v1.ProductAttributes.LeaseTerm.DurationUnit duration_unit = 3;

Returns
Type Description
int

The enum numeric value on the wire for durationUnit.

getDurationValue()

public long getDurationValue()

The duration value of the lease term.

optional int64 duration_value = 2;

Returns
Type Description
long

The durationValue.

getType()

public ProductAttributes.LeaseTerm.LeaseTermType getType()

The type of lease term.

.google.shopping.merchant.products.v1.ProductAttributes.LeaseTerm.LeaseTermType type = 1;

Returns
Type Description
ProductAttributes.LeaseTerm.LeaseTermType

The type.

getTypeValue()

public int getTypeValue()

The type of lease term.

.google.shopping.merchant.products.v1.ProductAttributes.LeaseTerm.LeaseTermType type = 1;

Returns
Type Description
int

The enum numeric value on the wire for type.

hasDurationValue()

public boolean hasDurationValue()

The duration value of the lease term.

optional int64 duration_value = 2;

Returns
Type Description
boolean

Whether the durationValue field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProductAttributes.LeaseTerm.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductAttributes.LeaseTerm.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ProductAttributes.LeaseTerm.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProductAttributes.LeaseTerm.Builder
Overrides

mergeFrom(ProductAttributes.LeaseTerm other)

public ProductAttributes.LeaseTerm.Builder mergeFrom(ProductAttributes.LeaseTerm other)
Parameter
Name Description
other ProductAttributes.LeaseTerm
Returns
Type Description
ProductAttributes.LeaseTerm.Builder

setDurationUnit(ProductAttributes.LeaseTerm.DurationUnit value)

public ProductAttributes.LeaseTerm.Builder setDurationUnit(ProductAttributes.LeaseTerm.DurationUnit value)

The duration unit of the lease term.

.google.shopping.merchant.products.v1.ProductAttributes.LeaseTerm.DurationUnit duration_unit = 3;

Parameter
Name Description
value ProductAttributes.LeaseTerm.DurationUnit

The durationUnit to set.

Returns
Type Description
ProductAttributes.LeaseTerm.Builder

This builder for chaining.

setDurationUnitValue(int value)

public ProductAttributes.LeaseTerm.Builder setDurationUnitValue(int value)

The duration unit of the lease term.

.google.shopping.merchant.products.v1.ProductAttributes.LeaseTerm.DurationUnit duration_unit = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for durationUnit to set.

Returns
Type Description
ProductAttributes.LeaseTerm.Builder

This builder for chaining.

setDurationValue(long value)

public ProductAttributes.LeaseTerm.Builder setDurationValue(long value)

The duration value of the lease term.

optional int64 duration_value = 2;

Parameter
Name Description
value long

The durationValue to set.

Returns
Type Description
ProductAttributes.LeaseTerm.Builder

This builder for chaining.

setType(ProductAttributes.LeaseTerm.LeaseTermType value)

public ProductAttributes.LeaseTerm.Builder setType(ProductAttributes.LeaseTerm.LeaseTermType value)

The type of lease term.

.google.shopping.merchant.products.v1.ProductAttributes.LeaseTerm.LeaseTermType type = 1;

Parameter
Name Description
value ProductAttributes.LeaseTerm.LeaseTermType

The type to set.

Returns
Type Description
ProductAttributes.LeaseTerm.Builder

This builder for chaining.

setTypeValue(int value)

public ProductAttributes.LeaseTerm.Builder setTypeValue(int value)

The type of lease term.

.google.shopping.merchant.products.v1.ProductAttributes.LeaseTerm.LeaseTermType type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
ProductAttributes.LeaseTerm.Builder

This builder for chaining.