Class Installment (0.3.0)

public final class Installment extends GeneratedMessageV3 implements InstallmentOrBuilder

A message that represents installment.

Protobuf type google.shopping.merchant.products.v1beta.Installment

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 Installment getDefaultInstance()
Returns
Type Description
Installment

getDescriptor()

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

newBuilder()

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

newBuilder(Installment prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

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 String getCreditType()

Type of installment payments. Supported values are:

  • "finance"
  • "lease"

optional string credit_type = 4;

Returns
Type Description
String

The creditType.

getCreditTypeBytes()

public ByteString getCreditTypeBytes()

Type of installment payments. Supported values are:

  • "finance"
  • "lease"

optional string credit_type = 4;

Returns
Type Description
ByteString

The bytes for creditType.

getDefaultInstanceForType()

public Installment getDefaultInstanceForType()
Returns
Type Description
Installment

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<Installment> getParserForType()
Returns
Type Description
Parser<Installment>
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. Supported values are:

  • "finance"
  • "lease"

optional string 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 Installment.Builder newBuilderForType()
Returns
Type Description
Installment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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