public static final class ProductAttributes.LeaseTerm.Builder extends GeneratedMessage.Builder<ProductAttributes.LeaseTerm.Builder> implements ProductAttributes.LeaseTermOrBuilderThe lease term of the property.
Protobuf type google.shopping.merchant.products.v1.ProductAttributes.LeaseTerm
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ProductAttributes.LeaseTerm.BuilderImplements
ProductAttributes.LeaseTermOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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.DurationUnitThe 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 |
intThe 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 |
longThe 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.LeaseTermTypeThe 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 |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.LeaseTerm.Builder |
This builder for chaining. |