Class ProductInstallment.Builder (1.0.0)

public static final class ProductInstallment.Builder extends GeneratedMessageV3.Builder<ProductInstallment.Builder> implements ProductInstallmentOrBuilder

A message that represents installment.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProductInstallment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProductInstallment.Builder
Overrides

build()

public ProductInstallment build()
Returns
Type Description
ProductInstallment

buildPartial()

public ProductInstallment buildPartial()
Returns
Type Description
ProductInstallment

clear()

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

clearAmount()

public ProductInstallment.Builder clearAmount()

The amount the buyer has to pay per month.

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

Returns
Type Description
ProductInstallment.Builder

clearCreditType()

public ProductInstallment.Builder clearCreditType()

Type of installment payments.

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

Returns
Type Description
ProductInstallment.Builder

This builder for chaining.

clearDownpayment()

public ProductInstallment.Builder clearDownpayment()

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

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

Returns
Type Description
ProductInstallment.Builder

clearField(Descriptors.FieldDescriptor field)

public ProductInstallment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ProductInstallment.Builder
Overrides

clearMonths()

public ProductInstallment.Builder clearMonths()

The number of installments the buyer has to pay.

int64 months = 1;

Returns
Type Description
ProductInstallment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ProductInstallment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ProductInstallment.Builder
Overrides

clone()

public ProductInstallment.Builder clone()
Returns
Type Description
ProductInstallment.Builder
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.

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

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAmount(Price value)

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

mergeDownpayment(Price value)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ProductInstallment other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProductInstallment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProductInstallment.Builder
Overrides

setAmount(Price value)

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

setAmount(Price.Builder builderForValue)

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

setCreditType(CreditType value)

public ProductInstallment.Builder setCreditType(CreditType value)

Type of installment payments.

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

Parameter
Name Description
value CreditType

The creditType to set.

Returns
Type Description
ProductInstallment.Builder

This builder for chaining.

setCreditTypeValue(int value)

public ProductInstallment.Builder setCreditTypeValue(int value)

Type of installment payments.

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

Parameter
Name Description
value int

The enum numeric value on the wire for creditType to set.

Returns
Type Description
ProductInstallment.Builder

This builder for chaining.

setDownpayment(Price value)

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

setDownpayment(Price.Builder builderForValue)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ProductInstallment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProductInstallment.Builder
Overrides

setMonths(long value)

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

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ProductInstallment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ProductInstallment.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ProductInstallment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProductInstallment.Builder
Overrides