Class Installment.Builder (0.10.0)

public static final class Installment.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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