public static final class ProductAttributes.Warranty.Builder extends GeneratedMessage.Builder<ProductAttributes.Warranty.Builder> implements ProductAttributes.WarrantyOrBuilderThe warranty of the vehicle.
Protobuf type google.shopping.merchant.products.v1.ProductAttributes.Warranty
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ProductAttributes.Warranty.BuilderImplements
ProductAttributes.WarrantyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ProductAttributes.Warranty build()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty |
|
buildPartial()
public ProductAttributes.Warranty buildPartial()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty |
|
clear()
public ProductAttributes.Warranty.Builder clear()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty.Builder |
|
clearDuration()
public ProductAttributes.Warranty.Builder clearDuration() The warranty duration in units. Default is in months, can be overridden
by the duration_unit field.
int64 duration = 1;
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty.Builder |
This builder for chaining. |
clearDurationUnit()
public ProductAttributes.Warranty.Builder clearDurationUnit() The unit for the warranty duration. Assumed to be MONTH if
equal to WARRANTY_DURATION_UNIT_UNSPECIFIED.
.google.shopping.merchant.products.v1.ProductAttributes.Warranty.WarrantyDurationUnit duration_unit = 3;
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty.Builder |
This builder for chaining. |
clearMileage()
public ProductAttributes.Warranty.Builder clearMileage()The warranty mileage (only applies to vehicles).
.google.shopping.merchant.products.v1.ProductAttributes.Mileage mileage = 2;
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty.Builder |
|
getDefaultInstanceForType()
public ProductAttributes.Warranty getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDuration()
public long getDuration() The warranty duration in units. Default is in months, can be overridden
by the duration_unit field.
int64 duration = 1;
| Returns | |
|---|---|
| Type | Description |
long |
The duration. |
getDurationUnit()
public ProductAttributes.Warranty.WarrantyDurationUnit getDurationUnit() The unit for the warranty duration. Assumed to be MONTH if
equal to WARRANTY_DURATION_UNIT_UNSPECIFIED.
.google.shopping.merchant.products.v1.ProductAttributes.Warranty.WarrantyDurationUnit duration_unit = 3;
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty.WarrantyDurationUnit |
The durationUnit. |
getDurationUnitValue()
public int getDurationUnitValue() The unit for the warranty duration. Assumed to be MONTH if
equal to WARRANTY_DURATION_UNIT_UNSPECIFIED.
.google.shopping.merchant.products.v1.ProductAttributes.Warranty.WarrantyDurationUnit duration_unit = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for durationUnit. |
getMileage()
public ProductAttributes.Mileage getMileage()The warranty mileage (only applies to vehicles).
.google.shopping.merchant.products.v1.ProductAttributes.Mileage mileage = 2;
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Mileage |
The mileage. |
getMileageBuilder()
public ProductAttributes.Mileage.Builder getMileageBuilder()The warranty mileage (only applies to vehicles).
.google.shopping.merchant.products.v1.ProductAttributes.Mileage mileage = 2;
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Mileage.Builder |
|
getMileageOrBuilder()
public ProductAttributes.MileageOrBuilder getMileageOrBuilder()The warranty mileage (only applies to vehicles).
.google.shopping.merchant.products.v1.ProductAttributes.Mileage mileage = 2;
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.MileageOrBuilder |
|
hasMileage()
public boolean hasMileage()The warranty mileage (only applies to vehicles).
.google.shopping.merchant.products.v1.ProductAttributes.Mileage mileage = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the mileage 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.Warranty.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ProductAttributes.Warranty.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty.Builder |
|
mergeFrom(ProductAttributes.Warranty other)
public ProductAttributes.Warranty.Builder mergeFrom(ProductAttributes.Warranty other)| Parameter | |
|---|---|
| Name | Description |
other |
ProductAttributes.Warranty |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty.Builder |
|
mergeMileage(ProductAttributes.Mileage value)
public ProductAttributes.Warranty.Builder mergeMileage(ProductAttributes.Mileage value)The warranty mileage (only applies to vehicles).
.google.shopping.merchant.products.v1.ProductAttributes.Mileage mileage = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ProductAttributes.Mileage |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty.Builder |
|
setDuration(long value)
public ProductAttributes.Warranty.Builder setDuration(long value) The warranty duration in units. Default is in months, can be overridden
by the duration_unit field.
int64 duration = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe duration to set. |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty.Builder |
This builder for chaining. |
setDurationUnit(ProductAttributes.Warranty.WarrantyDurationUnit value)
public ProductAttributes.Warranty.Builder setDurationUnit(ProductAttributes.Warranty.WarrantyDurationUnit value) The unit for the warranty duration. Assumed to be MONTH if
equal to WARRANTY_DURATION_UNIT_UNSPECIFIED.
.google.shopping.merchant.products.v1.ProductAttributes.Warranty.WarrantyDurationUnit duration_unit = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ProductAttributes.Warranty.WarrantyDurationUnitThe durationUnit to set. |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty.Builder |
This builder for chaining. |
setDurationUnitValue(int value)
public ProductAttributes.Warranty.Builder setDurationUnitValue(int value) The unit for the warranty duration. Assumed to be MONTH if
equal to WARRANTY_DURATION_UNIT_UNSPECIFIED.
.google.shopping.merchant.products.v1.ProductAttributes.Warranty.WarrantyDurationUnit duration_unit = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for durationUnit to set. |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty.Builder |
This builder for chaining. |
setMileage(ProductAttributes.Mileage value)
public ProductAttributes.Warranty.Builder setMileage(ProductAttributes.Mileage value)The warranty mileage (only applies to vehicles).
.google.shopping.merchant.products.v1.ProductAttributes.Mileage mileage = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ProductAttributes.Mileage |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty.Builder |
|
setMileage(ProductAttributes.Mileage.Builder builderForValue)
public ProductAttributes.Warranty.Builder setMileage(ProductAttributes.Mileage.Builder builderForValue)The warranty mileage (only applies to vehicles).
.google.shopping.merchant.products.v1.ProductAttributes.Mileage mileage = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ProductAttributes.Mileage.Builder |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty.Builder |
|