Class HeadlineOfferInstallment.Builder (0.21.0)

public static final class HeadlineOfferInstallment.Builder extends GeneratedMessageV3.Builder<HeadlineOfferInstallment.Builder> implements HeadlineOfferInstallmentOrBuilder

A message that represents installment.

Protobuf type google.shopping.css.v1.HeadlineOfferInstallment

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HeadlineOfferInstallment build()
Returns
Type Description
HeadlineOfferInstallment

buildPartial()

public HeadlineOfferInstallment buildPartial()
Returns
Type Description
HeadlineOfferInstallment

clear()

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

clearAmount()

public HeadlineOfferInstallment.Builder clearAmount()

The amount the buyer has to pay per month.

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

Returns
Type Description
HeadlineOfferInstallment.Builder

clearDownpayment()

public HeadlineOfferInstallment.Builder clearDownpayment()

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

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

Returns
Type Description
HeadlineOfferInstallment.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMonths()

public HeadlineOfferInstallment.Builder clearMonths()

The number of installments the buyer has to pay.

int64 months = 1;

Returns
Type Description
HeadlineOfferInstallment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public HeadlineOfferInstallment getDefaultInstanceForType()
Returns
Type Description
HeadlineOfferInstallment

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.

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

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

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

hasDownpayment()

public boolean hasDownpayment()

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

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

mergeDownpayment(Price value)

public HeadlineOfferInstallment.Builder mergeDownpayment(Price value)

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

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(HeadlineOfferInstallment other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAmount(Price value)

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

setAmount(Price.Builder builderForValue)

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

setDownpayment(Price value)

public HeadlineOfferInstallment.Builder setDownpayment(Price value)

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

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

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

setDownpayment(Price.Builder builderForValue)

public HeadlineOfferInstallment.Builder setDownpayment(Price.Builder builderForValue)

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

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMonths(long value)

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

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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