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 months.
int64 duration = 1;
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty.Builder |
This builder for chaining. |
clearMileage()
public ProductAttributes.Warranty.Builder clearMileage()The warranty mileage.
.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 months.
int64 duration = 1;
| Returns | |
|---|---|
| Type | Description |
long |
The duration. |
getMileage()
public ProductAttributes.Mileage getMileage()The warranty mileage.
.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.
.google.shopping.merchant.products.v1.ProductAttributes.Mileage mileage = 2;
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Mileage.Builder |
|
getMileageOrBuilder()
public ProductAttributes.MileageOrBuilder getMileageOrBuilder()The warranty mileage.
.google.shopping.merchant.products.v1.ProductAttributes.Mileage mileage = 2;
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.MileageOrBuilder |
|
hasMileage()
public boolean hasMileage()The warranty mileage.
.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.
.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 months.
int64 duration = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe duration 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.
.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.
.google.shopping.merchant.products.v1.ProductAttributes.Mileage mileage = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ProductAttributes.Mileage.Builder |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty.Builder |
|