public static final class ProductAttributes.Warranty extends GeneratedMessage implements ProductAttributes.WarrantyOrBuilderThe warranty of the vehicle.
Protobuf type google.shopping.merchant.products.v1.ProductAttributes.Warranty
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ProductAttributes.WarrantyImplements
ProductAttributes.WarrantyOrBuilderStatic Fields
DURATION_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
MILEAGE_FIELD_NUMBER
public static final int MILEAGE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static ProductAttributes.Warranty getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static ProductAttributes.Warranty.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty.Builder |
|
newBuilder(ProductAttributes.Warranty prototype)
public static ProductAttributes.Warranty.Builder newBuilder(ProductAttributes.Warranty prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
ProductAttributes.Warranty |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty.Builder |
|
parseDelimitedFrom(InputStream input)
public static ProductAttributes.Warranty parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.Warranty parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static ProductAttributes.Warranty parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.Warranty parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static ProductAttributes.Warranty parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.Warranty parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static ProductAttributes.Warranty parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.Warranty parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static ProductAttributes.Warranty parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.Warranty parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static ProductAttributes.Warranty parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.Warranty parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<ProductAttributes.Warranty> parser()| Returns | |
|---|---|
| Type | Description |
Parser<Warranty> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public ProductAttributes.Warranty getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty |
|
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. |
getMileageOrBuilder()
public ProductAttributes.MileageOrBuilder getMileageOrBuilder()The warranty mileage.
.google.shopping.merchant.products.v1.ProductAttributes.Mileage mileage = 2;
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.MileageOrBuilder |
|
getParserForType()
public Parser<ProductAttributes.Warranty> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<Warranty> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public ProductAttributes.Warranty.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ProductAttributes.Warranty.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty.Builder |
|
toBuilder()
public ProductAttributes.Warranty.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|