public static final class PrivateOffer.SingleProductOffer.Installment extends GeneratedMessage implements PrivateOffer.SingleProductOffer.InstallmentOrBuilder
An installment of the offer.
Protobuf type
google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.Installment
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
PRICE_MODEL_FIELD_NUMBER
public static final int PRICE_MODEL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static PrivateOffer.SingleProductOffer.Installment getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static PrivateOffer.SingleProductOffer.Installment.Builder newBuilder()
newBuilder(PrivateOffer.SingleProductOffer.Installment prototype)
public static PrivateOffer.SingleProductOffer.Installment.Builder newBuilder(PrivateOffer.SingleProductOffer.Installment prototype)
public static PrivateOffer.SingleProductOffer.Installment parseDelimitedFrom(InputStream input)
public static PrivateOffer.SingleProductOffer.Installment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static PrivateOffer.SingleProductOffer.Installment parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PrivateOffer.SingleProductOffer.Installment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static PrivateOffer.SingleProductOffer.Installment parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PrivateOffer.SingleProductOffer.Installment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PrivateOffer.SingleProductOffer.Installment parseFrom(CodedInputStream input)
public static PrivateOffer.SingleProductOffer.Installment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PrivateOffer.SingleProductOffer.Installment parseFrom(InputStream input)
public static PrivateOffer.SingleProductOffer.Installment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static PrivateOffer.SingleProductOffer.Installment parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PrivateOffer.SingleProductOffer.Installment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<PrivateOffer.SingleProductOffer.Installment> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public PrivateOffer.SingleProductOffer.Installment getDefaultInstanceForType()
getParserForType()
public Parser<PrivateOffer.SingleProductOffer.Installment> getParserForType()
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];
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];
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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.
|
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.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public PrivateOffer.SingleProductOffer.Installment.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected PrivateOffer.SingleProductOffer.Installment.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public PrivateOffer.SingleProductOffer.Installment.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides