Class HeadlineOfferSubscriptionCost.Builder (0.23.0)

public static final class HeadlineOfferSubscriptionCost.Builder extends GeneratedMessageV3.Builder<HeadlineOfferSubscriptionCost.Builder> implements HeadlineOfferSubscriptionCostOrBuilder

The SubscriptionCost of the product.

Protobuf type google.shopping.css.v1.HeadlineOfferSubscriptionCost

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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
Overrides

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

public HeadlineOfferSubscriptionCost.Builder clone()
Returns
Type Description
HeadlineOfferSubscriptionCost.Builder
Overrides

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
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(HeadlineOfferSubscriptionCost other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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 SubscriptionPeriod

The 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 long

The 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 int

The enum numeric value on the wire for period to set.

Returns
Type Description
HeadlineOfferSubscriptionCost.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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