Class PrivateOffer.SingleProductOffer.Installment.Builder (0.1.0)

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

An installment of the offer.

Protobuf type google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.Installment

Static Methods

getDescriptor()

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

Methods

build()

public PrivateOffer.SingleProductOffer.Installment build()
Returns
Type Description
PrivateOffer.SingleProductOffer.Installment

buildPartial()

public PrivateOffer.SingleProductOffer.Installment buildPartial()
Returns
Type Description
PrivateOffer.SingleProductOffer.Installment

clear()

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

clearPriceModel()

public PrivateOffer.SingleProductOffer.Installment.Builder clearPriceModel()

Optional. The price model of the installment. All installments must have the same form of price model.

.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel price_model = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateOffer.SingleProductOffer.Installment.Builder

clearStartTime()

public PrivateOffer.SingleProductOffer.Installment.Builder clearStartTime()

Optional. The start time of the installment. Each installment must have a unique start time with one exception: When the term.start_policy of the offer's term is IMMEDIATE, the start_time of the first installment must be unset. The actual start time is not recorded in the offer and instead is determined by the time the resulting order became active.

When the term.start_policy of the offer's term is SCHEDULED_START_TIME, then the first installment's start_time must match term.scheduled_start_time.

If the term.end_policy of the offer's term is SCHEDULED_END_TIME, then installment start_time must be before term.scheduled_end_time. If it's AFTER_DURATION, then installment start_time must be before the time calculated by adding the term.duration_months to the start time of the offer.

The start_time of the installments cannot be before the accept_deadline_time of the offer.

Installment start times must be in strictly increasing chronological order.

.google.type.DateTime start_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateOffer.SingleProductOffer.Installment.Builder

getDefaultInstanceForType()

public PrivateOffer.SingleProductOffer.Installment getDefaultInstanceForType()
Returns
Type Description
PrivateOffer.SingleProductOffer.Installment

getDescriptorForType()

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

getPriceModel()

public PrivateOffer.SingleProductOffer.PriceModel getPriceModel()

Optional. The price model of the installment. All installments must have the same form of price model.

.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel price_model = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModel

The priceModel.

getPriceModelBuilder()

public PrivateOffer.SingleProductOffer.PriceModel.Builder getPriceModelBuilder()

Optional. The price model of the installment. All installments must have the same form of price model.

.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel price_model = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModel.Builder

getPriceModelOrBuilder()

public PrivateOffer.SingleProductOffer.PriceModelOrBuilder getPriceModelOrBuilder()

Optional. The price model of the installment. All installments must have the same form of price model.

.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel price_model = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateOffer.SingleProductOffer.PriceModelOrBuilder

getStartTime()

public DateTime getStartTime()

Optional. The start time of the installment. Each installment must have a unique start time with one exception: When the term.start_policy of the offer's term is IMMEDIATE, the start_time of the first installment must be unset. The actual start time is not recorded in the offer and instead is determined by the time the resulting order became active.

When the term.start_policy of the offer's term is SCHEDULED_START_TIME, then the first installment's start_time must match term.scheduled_start_time.

If the term.end_policy of the offer's term is SCHEDULED_END_TIME, then installment start_time must be before term.scheduled_end_time. If it's AFTER_DURATION, then installment start_time must be before the time calculated by adding the term.duration_months to the start time of the offer.

The start_time of the installments cannot be before the accept_deadline_time of the offer.

Installment start times must be in strictly increasing chronological order.

.google.type.DateTime start_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.DateTime

The startTime.

getStartTimeBuilder()

public DateTime.Builder getStartTimeBuilder()

Optional. The start time of the installment. Each installment must have a unique start time with one exception: When the term.start_policy of the offer's term is IMMEDIATE, the start_time of the first installment must be unset. The actual start time is not recorded in the offer and instead is determined by the time the resulting order became active.

When the term.start_policy of the offer's term is SCHEDULED_START_TIME, then the first installment's start_time must match term.scheduled_start_time.

If the term.end_policy of the offer's term is SCHEDULED_END_TIME, then installment start_time must be before term.scheduled_end_time. If it's AFTER_DURATION, then installment start_time must be before the time calculated by adding the term.duration_months to the start time of the offer.

The start_time of the installments cannot be before the accept_deadline_time of the offer.

Installment start times must be in strictly increasing chronological order.

.google.type.DateTime start_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.DateTime.Builder

getStartTimeOrBuilder()

public DateTimeOrBuilder getStartTimeOrBuilder()

Optional. The start time of the installment. Each installment must have a unique start time with one exception: When the term.start_policy of the offer's term is IMMEDIATE, the start_time of the first installment must be unset. The actual start time is not recorded in the offer and instead is determined by the time the resulting order became active.

When the term.start_policy of the offer's term is SCHEDULED_START_TIME, then the first installment's start_time must match term.scheduled_start_time.

If the term.end_policy of the offer's term is SCHEDULED_END_TIME, then installment start_time must be before term.scheduled_end_time. If it's AFTER_DURATION, then installment start_time must be before the time calculated by adding the term.duration_months to the start time of the offer.

The start_time of the installments cannot be before the accept_deadline_time of the offer.

Installment start times must be in strictly increasing chronological order.

.google.type.DateTime start_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.DateTimeOrBuilder

hasPriceModel()

public boolean hasPriceModel()

Optional. The price model of the installment. All installments must have the same form of price model.

.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel price_model = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the priceModel field is set.

hasStartTime()

public boolean hasStartTime()

Optional. The start time of the installment. Each installment must have a unique start time with one exception: When the term.start_policy of the offer's term is IMMEDIATE, the start_time of the first installment must be unset. The actual start time is not recorded in the offer and instead is determined by the time the resulting order became active.

When the term.start_policy of the offer's term is SCHEDULED_START_TIME, then the first installment's start_time must match term.scheduled_start_time.

If the term.end_policy of the offer's term is SCHEDULED_END_TIME, then installment start_time must be before term.scheduled_end_time. If it's AFTER_DURATION, then installment start_time must be before the time calculated by adding the term.duration_months to the start time of the offer.

The start_time of the installments cannot be before the accept_deadline_time of the offer.

Installment start times must be in strictly increasing chronological order.

.google.type.DateTime start_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PrivateOffer.SingleProductOffer.Installment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePriceModel(PrivateOffer.SingleProductOffer.PriceModel value)

public PrivateOffer.SingleProductOffer.Installment.Builder mergePriceModel(PrivateOffer.SingleProductOffer.PriceModel value)

Optional. The price model of the installment. All installments must have the same form of price model.

.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel price_model = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PrivateOffer.SingleProductOffer.PriceModel
Returns
Type Description
PrivateOffer.SingleProductOffer.Installment.Builder

mergeStartTime(DateTime value)

public PrivateOffer.SingleProductOffer.Installment.Builder mergeStartTime(DateTime value)

Optional. The start time of the installment. Each installment must have a unique start time with one exception: When the term.start_policy of the offer's term is IMMEDIATE, the start_time of the first installment must be unset. The actual start time is not recorded in the offer and instead is determined by the time the resulting order became active.

When the term.start_policy of the offer's term is SCHEDULED_START_TIME, then the first installment's start_time must match term.scheduled_start_time.

If the term.end_policy of the offer's term is SCHEDULED_END_TIME, then installment start_time must be before term.scheduled_end_time. If it's AFTER_DURATION, then installment start_time must be before the time calculated by adding the term.duration_months to the start time of the offer.

The start_time of the installments cannot be before the accept_deadline_time of the offer.

Installment start times must be in strictly increasing chronological order.

.google.type.DateTime start_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
PrivateOffer.SingleProductOffer.Installment.Builder

setPriceModel(PrivateOffer.SingleProductOffer.PriceModel value)

public PrivateOffer.SingleProductOffer.Installment.Builder setPriceModel(PrivateOffer.SingleProductOffer.PriceModel value)

Optional. The price model of the installment. All installments must have the same form of price model.

.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel price_model = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PrivateOffer.SingleProductOffer.PriceModel
Returns
Type Description
PrivateOffer.SingleProductOffer.Installment.Builder

setPriceModel(PrivateOffer.SingleProductOffer.PriceModel.Builder builderForValue)

public PrivateOffer.SingleProductOffer.Installment.Builder setPriceModel(PrivateOffer.SingleProductOffer.PriceModel.Builder builderForValue)

Optional. The price model of the installment. All installments must have the same form of price model.

.google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.PriceModel price_model = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue PrivateOffer.SingleProductOffer.PriceModel.Builder
Returns
Type Description
PrivateOffer.SingleProductOffer.Installment.Builder

setStartTime(DateTime value)

public PrivateOffer.SingleProductOffer.Installment.Builder setStartTime(DateTime value)

Optional. The start time of the installment. Each installment must have a unique start time with one exception: When the term.start_policy of the offer's term is IMMEDIATE, the start_time of the first installment must be unset. The actual start time is not recorded in the offer and instead is determined by the time the resulting order became active.

When the term.start_policy of the offer's term is SCHEDULED_START_TIME, then the first installment's start_time must match term.scheduled_start_time.

If the term.end_policy of the offer's term is SCHEDULED_END_TIME, then installment start_time must be before term.scheduled_end_time. If it's AFTER_DURATION, then installment start_time must be before the time calculated by adding the term.duration_months to the start time of the offer.

The start_time of the installments cannot be before the accept_deadline_time of the offer.

Installment start times must be in strictly increasing chronological order.

.google.type.DateTime start_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
PrivateOffer.SingleProductOffer.Installment.Builder

setStartTime(DateTime.Builder builderForValue)

public PrivateOffer.SingleProductOffer.Installment.Builder setStartTime(DateTime.Builder builderForValue)

Optional. The start time of the installment. Each installment must have a unique start time with one exception: When the term.start_policy of the offer's term is IMMEDIATE, the start_time of the first installment must be unset. The actual start time is not recorded in the offer and instead is determined by the time the resulting order became active.

When the term.start_policy of the offer's term is SCHEDULED_START_TIME, then the first installment's start_time must match term.scheduled_start_time.

If the term.end_policy of the offer's term is SCHEDULED_END_TIME, then installment start_time must be before term.scheduled_end_time. If it's AFTER_DURATION, then installment start_time must be before the time calculated by adding the term.duration_months to the start time of the offer.

The start_time of the installments cannot be before the accept_deadline_time of the offer.

Installment start times must be in strictly increasing chronological order.

.google.type.DateTime start_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue com.google.type.DateTime.Builder
Returns
Type Description
PrivateOffer.SingleProductOffer.Installment.Builder