Class Installment.Builder (1.13.0)

public static final class Installment.Builder extends GeneratedMessage.Builder<Installment.Builder> implements InstallmentOrBuilder

A message that represents installment.

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

Static Methods

getDescriptor()

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

Methods

build()

public Installment build()
Returns
Type Description
Installment

buildPartial()

public Installment buildPartial()
Returns
Type Description
Installment

clear()

public Installment.Builder clear()
Returns
Type Description
Installment.Builder
Overrides

clearAmount()

public Installment.Builder clearAmount()

The amount the buyer has to pay per month.

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

Returns
Type Description
Installment.Builder

clearCreditType()

public Installment.Builder clearCreditType()

Type of installment payments. Supported values are:

  • "finance"
  • "lease"

optional string credit_type = 4;

Returns
Type Description
Installment.Builder

This builder for chaining.

clearDownpayment()

public Installment.Builder clearDownpayment()

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

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

Returns
Type Description
Installment.Builder

clearMonths()

public Installment.Builder clearMonths()

The number of installments the buyer has to pay.

int64 months = 1;

Returns
Type Description
Installment.Builder

This builder for chaining.

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.

getAmountBuilder()

public Price.Builder getAmountBuilder()

The amount the buyer has to pay per month.

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

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

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getDownpaymentBuilder()

public Price.Builder getDownpaymentBuilder()

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.Builder

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAmount(Price value)

public Installment.Builder mergeAmount(Price value)

The amount the buyer has to pay per month.

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

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
Installment.Builder

mergeDownpayment(Price value)

public Installment.Builder mergeDownpayment(Price value)

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

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

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
Installment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Installment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Installment.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Installment.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Installment.Builder
Overrides

mergeFrom(Installment other)

public Installment.Builder mergeFrom(Installment other)
Parameter
Name Description
other Installment
Returns
Type Description
Installment.Builder

setAmount(Price value)

public Installment.Builder setAmount(Price value)

The amount the buyer has to pay per month.

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

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
Installment.Builder

setAmount(Price.Builder builderForValue)

public Installment.Builder setAmount(Price.Builder builderForValue)

The amount the buyer has to pay per month.

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

Parameter
Name Description
builderForValue com.google.shopping.type.Price.Builder
Returns
Type Description
Installment.Builder

setCreditType(String value)

public Installment.Builder setCreditType(String value)

Type of installment payments. Supported values are:

  • "finance"
  • "lease"

optional string credit_type = 4;

Parameter
Name Description
value String

The creditType to set.

Returns
Type Description
Installment.Builder

This builder for chaining.

setCreditTypeBytes(ByteString value)

public Installment.Builder setCreditTypeBytes(ByteString value)

Type of installment payments. Supported values are:

  • "finance"
  • "lease"

optional string credit_type = 4;

Parameter
Name Description
value ByteString

The bytes for creditType to set.

Returns
Type Description
Installment.Builder

This builder for chaining.

setDownpayment(Price value)

public Installment.Builder setDownpayment(Price value)

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

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

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
Installment.Builder

setDownpayment(Price.Builder builderForValue)

public Installment.Builder setDownpayment(Price.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue com.google.shopping.type.Price.Builder
Returns
Type Description
Installment.Builder

setMonths(long value)

public Installment.Builder setMonths(long value)

The number of installments the buyer has to pay.

int64 months = 1;

Parameter
Name Description
value long

The months to set.

Returns
Type Description
Installment.Builder

This builder for chaining.