Class ProductInstallment (1.0.0)

public final class ProductInstallment extends GeneratedMessageV3 implements ProductInstallmentOrBuilder

A message that represents installment.

Protobuf type google.shopping.merchant.products.v1.ProductInstallment

Static Fields

AMOUNT_FIELD_NUMBER

public static final int AMOUNT_FIELD_NUMBER
Field Value
Type Description
int

CREDIT_TYPE_FIELD_NUMBER

public static final int CREDIT_TYPE_FIELD_NUMBER
Field Value
Type Description
int

DOWNPAYMENT_FIELD_NUMBER

public static final int DOWNPAYMENT_FIELD_NUMBER
Field Value
Type Description
int

MONTHS_FIELD_NUMBER

public static final int MONTHS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ProductInstallment getDefaultInstance()
Returns
Type Description
ProductInstallment

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ProductInstallment.Builder newBuilder()
Returns
Type Description
ProductInstallment.Builder

newBuilder(ProductInstallment prototype)

public static ProductInstallment.Builder newBuilder(ProductInstallment prototype)
Parameter
Name Description
prototype ProductInstallment
Returns
Type Description
ProductInstallment.Builder

parseDelimitedFrom(InputStream input)

public static ProductInstallment parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProductInstallment
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductInstallment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductInstallment
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ProductInstallment parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ProductInstallment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ProductInstallment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductInstallment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ProductInstallment parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ProductInstallment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ProductInstallment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductInstallment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ProductInstallment parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ProductInstallment
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductInstallment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductInstallment
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ProductInstallment parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProductInstallment
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductInstallment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductInstallment
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ProductInstallment parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ProductInstallment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ProductInstallment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductInstallment
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ProductInstallment> parser()
Returns
Type Description
Parser<ProductInstallment>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAmount()

public Price getAmount()

The amount the buyer has to pay per month.

.google.shopping.type.Price amount = 2;

Returns
Type Description
com.google.shopping.type.Price

The amount.

getAmountOrBuilder()

public PriceOrBuilder getAmountOrBuilder()

The amount the buyer has to pay per month.

.google.shopping.type.Price amount = 2;

Returns
Type Description
com.google.shopping.type.PriceOrBuilder

getCreditType()

public CreditType getCreditType()

Type of installment payments.

optional .google.shopping.merchant.products.v1.CreditType credit_type = 4;

Returns
Type Description
CreditType

The creditType.

getCreditTypeValue()

public int getCreditTypeValue()

Type of installment payments.

optional .google.shopping.merchant.products.v1.CreditType credit_type = 4;

Returns
Type Description
int

The enum numeric value on the wire for creditType.

getDefaultInstanceForType()

public ProductInstallment getDefaultInstanceForType()
Returns
Type Description
ProductInstallment

getDownpayment()

public Price getDownpayment()

The up-front down payment amount the buyer has to pay.

optional .google.shopping.type.Price downpayment = 3;

Returns
Type Description
com.google.shopping.type.Price

The downpayment.

getDownpaymentOrBuilder()

public PriceOrBuilder getDownpaymentOrBuilder()

The up-front down payment amount the buyer has to pay.

optional .google.shopping.type.Price downpayment = 3;

Returns
Type Description
com.google.shopping.type.PriceOrBuilder

getMonths()

public long getMonths()

The number of installments the buyer has to pay.

int64 months = 1;

Returns
Type Description
long

The months.

getParserForType()

public Parser<ProductInstallment> getParserForType()
Returns
Type Description
Parser<ProductInstallment>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAmount()

public boolean hasAmount()

The amount the buyer has to pay per month.

.google.shopping.type.Price amount = 2;

Returns
Type Description
boolean

Whether the amount field is set.

hasCreditType()

public boolean hasCreditType()

Type of installment payments.

optional .google.shopping.merchant.products.v1.CreditType credit_type = 4;

Returns
Type Description
boolean

Whether the creditType field is set.

hasDownpayment()

public boolean hasDownpayment()

The up-front down payment amount the buyer has to pay.

optional .google.shopping.type.Price downpayment = 3;

Returns
Type Description
boolean

Whether the downpayment field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ProductInstallment.Builder newBuilderForType()
Returns
Type Description
ProductInstallment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ProductInstallment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ProductInstallment.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ProductInstallment.Builder toBuilder()
Returns
Type Description
ProductInstallment.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException