public static final class ProductAttributes.LeaseTerm extends GeneratedMessage implements ProductAttributes.LeaseTermOrBuilderThe lease term of the property.
Protobuf type google.shopping.merchant.products.v1.ProductAttributes.LeaseTerm
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ProductAttributes.LeaseTermImplements
ProductAttributes.LeaseTermOrBuilderStatic Fields
DURATION_UNIT_FIELD_NUMBER
public static final int DURATION_UNIT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DURATION_VALUE_FIELD_NUMBER
public static final int DURATION_VALUE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static ProductAttributes.LeaseTerm getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.LeaseTerm |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static ProductAttributes.LeaseTerm.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.LeaseTerm.Builder |
|
newBuilder(ProductAttributes.LeaseTerm prototype)
public static ProductAttributes.LeaseTerm.Builder newBuilder(ProductAttributes.LeaseTerm prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
ProductAttributes.LeaseTerm |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.LeaseTerm.Builder |
|
parseDelimitedFrom(InputStream input)
public static ProductAttributes.LeaseTerm parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.LeaseTerm |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.LeaseTerm parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.LeaseTerm |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static ProductAttributes.LeaseTerm parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.LeaseTerm |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.LeaseTerm parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.LeaseTerm |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static ProductAttributes.LeaseTerm parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.LeaseTerm |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.LeaseTerm parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.LeaseTerm |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static ProductAttributes.LeaseTerm parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.LeaseTerm |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.LeaseTerm parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.LeaseTerm |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static ProductAttributes.LeaseTerm parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.LeaseTerm |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.LeaseTerm parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.LeaseTerm |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static ProductAttributes.LeaseTerm parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.LeaseTerm |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.LeaseTerm parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.LeaseTerm |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<ProductAttributes.LeaseTerm> parser()| Returns | |
|---|---|
| Type | Description |
Parser<LeaseTerm> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public ProductAttributes.LeaseTerm getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.LeaseTerm |
|
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. |
getParserForType()
public Parser<ProductAttributes.LeaseTerm> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<LeaseTerm> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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. |
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.LeaseTerm.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.LeaseTerm.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ProductAttributes.LeaseTerm.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.LeaseTerm.Builder |
|
toBuilder()
public ProductAttributes.LeaseTerm.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.LeaseTerm.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|