public static final class HeadlineOfferSubscriptionCost.Builder extends GeneratedMessage.Builder<HeadlineOfferSubscriptionCost.Builder> implements HeadlineOfferSubscriptionCostOrBuilderThe SubscriptionCost of the product.
Protobuf type google.shopping.css.v1.HeadlineOfferSubscriptionCost
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > HeadlineOfferSubscriptionCost.BuilderImplements
HeadlineOfferSubscriptionCostOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public HeadlineOfferSubscriptionCost build()| Returns | |
|---|---|
| Type | Description |
HeadlineOfferSubscriptionCost |
|
buildPartial()
public HeadlineOfferSubscriptionCost buildPartial()| Returns | |
|---|---|
| Type | Description |
HeadlineOfferSubscriptionCost |
|
clear()
public HeadlineOfferSubscriptionCost.Builder clear()| Returns | |
|---|---|
| Type | Description |
HeadlineOfferSubscriptionCost.Builder |
|
clearAmount()
public HeadlineOfferSubscriptionCost.Builder clearAmount()The amount the buyer has to pay per subscription period.
.google.shopping.type.Price amount = 3;
| Returns | |
|---|---|
| Type | Description |
HeadlineOfferSubscriptionCost.Builder |
|
clearPeriod()
public HeadlineOfferSubscriptionCost.Builder clearPeriod()The type of subscription period. Supported values are:
- "
month" - "
year"
.google.shopping.css.v1.SubscriptionPeriod period = 1;
| Returns | |
|---|---|
| Type | Description |
HeadlineOfferSubscriptionCost.Builder |
This builder for chaining. |
clearPeriodLength()
public HeadlineOfferSubscriptionCost.Builder clearPeriodLength()The number of subscription periods the buyer has to pay.
int64 period_length = 2;
| Returns | |
|---|---|
| Type | Description |
HeadlineOfferSubscriptionCost.Builder |
This builder for chaining. |
getAmount()
public Price getAmount()The amount the buyer has to pay per subscription period.
.google.shopping.type.Price amount = 3;
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.Price |
The amount. |
getAmountBuilder()
public Price.Builder getAmountBuilder()The amount the buyer has to pay per subscription period.
.google.shopping.type.Price amount = 3;
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.Price.Builder |
|
getAmountOrBuilder()
public PriceOrBuilder getAmountOrBuilder()The amount the buyer has to pay per subscription period.
.google.shopping.type.Price amount = 3;
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.PriceOrBuilder |
|
getDefaultInstanceForType()
public HeadlineOfferSubscriptionCost getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
HeadlineOfferSubscriptionCost |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPeriod()
public SubscriptionPeriod getPeriod()The type of subscription period. Supported values are:
- "
month" - "
year"
.google.shopping.css.v1.SubscriptionPeriod period = 1;
| Returns | |
|---|---|
| Type | Description |
SubscriptionPeriod |
The period. |
getPeriodLength()
public long getPeriodLength()The number of subscription periods the buyer has to pay.
int64 period_length = 2;
| Returns | |
|---|---|
| Type | Description |
long |
The periodLength. |
getPeriodValue()
public int getPeriodValue()The type of subscription period. Supported values are:
- "
month" - "
year"
.google.shopping.css.v1.SubscriptionPeriod period = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for period. |
hasAmount()
public boolean hasAmount()The amount the buyer has to pay per subscription period.
.google.shopping.type.Price amount = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the amount field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAmount(Price value)
public HeadlineOfferSubscriptionCost.Builder mergeAmount(Price value)The amount the buyer has to pay per subscription period.
.google.shopping.type.Price amount = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.shopping.type.Price |
| Returns | |
|---|---|
| Type | Description |
HeadlineOfferSubscriptionCost.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public HeadlineOfferSubscriptionCost.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
HeadlineOfferSubscriptionCost.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public HeadlineOfferSubscriptionCost.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
HeadlineOfferSubscriptionCost.Builder |
|
mergeFrom(HeadlineOfferSubscriptionCost other)
public HeadlineOfferSubscriptionCost.Builder mergeFrom(HeadlineOfferSubscriptionCost other)| Parameter | |
|---|---|
| Name | Description |
other |
HeadlineOfferSubscriptionCost |
| Returns | |
|---|---|
| Type | Description |
HeadlineOfferSubscriptionCost.Builder |
|
setAmount(Price value)
public HeadlineOfferSubscriptionCost.Builder setAmount(Price value)The amount the buyer has to pay per subscription period.
.google.shopping.type.Price amount = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.shopping.type.Price |
| Returns | |
|---|---|
| Type | Description |
HeadlineOfferSubscriptionCost.Builder |
|
setAmount(Price.Builder builderForValue)
public HeadlineOfferSubscriptionCost.Builder setAmount(Price.Builder builderForValue)The amount the buyer has to pay per subscription period.
.google.shopping.type.Price amount = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.shopping.type.Price.Builder |
| Returns | |
|---|---|
| Type | Description |
HeadlineOfferSubscriptionCost.Builder |
|
setPeriod(SubscriptionPeriod value)
public HeadlineOfferSubscriptionCost.Builder setPeriod(SubscriptionPeriod value)The type of subscription period. Supported values are:
- "
month" - "
year"
.google.shopping.css.v1.SubscriptionPeriod period = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
SubscriptionPeriodThe period to set. |
| Returns | |
|---|---|
| Type | Description |
HeadlineOfferSubscriptionCost.Builder |
This builder for chaining. |
setPeriodLength(long value)
public HeadlineOfferSubscriptionCost.Builder setPeriodLength(long value)The number of subscription periods the buyer has to pay.
int64 period_length = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe periodLength to set. |
| Returns | |
|---|---|
| Type | Description |
HeadlineOfferSubscriptionCost.Builder |
This builder for chaining. |
setPeriodValue(int value)
public HeadlineOfferSubscriptionCost.Builder setPeriodValue(int value)The type of subscription period. Supported values are:
- "
month" - "
year"
.google.shopping.css.v1.SubscriptionPeriod period = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for period to set. |
| Returns | |
|---|---|
| Type | Description |
HeadlineOfferSubscriptionCost.Builder |
This builder for chaining. |