- 3.58.0 (latest)
- 3.57.0
- 3.56.0
- 3.55.0
- 3.53.0
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.6
- 3.6.1
- 3.5.1
- 3.3.1
public static final class PricePhase.Builder extends GeneratedMessageV3.Builder<PricePhase.Builder> implements PricePhaseOrBuilder
Specifies the price by the duration of months. For example, a 20% discount for the first six months, then a 10% discount starting on the seventh month.
Protobuf type google.cloud.channel.v1.PricePhase
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PricePhase.BuilderImplements
PricePhaseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllPriceTiers(Iterable<? extends PriceTier> values)
public PricePhase.Builder addAllPriceTiers(Iterable<? extends PriceTier> values)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Name | Description |
values | Iterable<? extends com.google.cloud.channel.v1.PriceTier> |
Type | Description |
PricePhase.Builder |
addPriceTiers(PriceTier value)
public PricePhase.Builder addPriceTiers(PriceTier value)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Name | Description |
value | PriceTier |
Type | Description |
PricePhase.Builder |
addPriceTiers(PriceTier.Builder builderForValue)
public PricePhase.Builder addPriceTiers(PriceTier.Builder builderForValue)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Name | Description |
builderForValue | PriceTier.Builder |
Type | Description |
PricePhase.Builder |
addPriceTiers(int index, PriceTier value)
public PricePhase.Builder addPriceTiers(int index, PriceTier value)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Name | Description |
index | int |
value | PriceTier |
Type | Description |
PricePhase.Builder |
addPriceTiers(int index, PriceTier.Builder builderForValue)
public PricePhase.Builder addPriceTiers(int index, PriceTier.Builder builderForValue)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Name | Description |
index | int |
builderForValue | PriceTier.Builder |
Type | Description |
PricePhase.Builder |
addPriceTiersBuilder()
public PriceTier.Builder addPriceTiersBuilder()
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Type | Description |
PriceTier.Builder |
addPriceTiersBuilder(int index)
public PriceTier.Builder addPriceTiersBuilder(int index)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Name | Description |
index | int |
Type | Description |
PriceTier.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PricePhase.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
PricePhase.Builder |
build()
public PricePhase build()
Type | Description |
PricePhase |
buildPartial()
public PricePhase buildPartial()
Type | Description |
PricePhase |
clear()
public PricePhase.Builder clear()
Type | Description |
PricePhase.Builder |
clearField(Descriptors.FieldDescriptor field)
public PricePhase.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
PricePhase.Builder |
clearFirstPeriod()
public PricePhase.Builder clearFirstPeriod()
Defines first period for the phase.
int32 first_period = 2;
Type | Description |
PricePhase.Builder | This builder for chaining. |
clearLastPeriod()
public PricePhase.Builder clearLastPeriod()
Defines first period for the phase.
int32 last_period = 3;
Type | Description |
PricePhase.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public PricePhase.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
PricePhase.Builder |
clearPeriodType()
public PricePhase.Builder clearPeriodType()
Defines the phase period type.
.google.cloud.channel.v1.PeriodType period_type = 1;
Type | Description |
PricePhase.Builder | This builder for chaining. |
clearPrice()
public PricePhase.Builder clearPrice()
Price of the phase. Present if there are no price tiers.
.google.cloud.channel.v1.Price price = 4;
Type | Description |
PricePhase.Builder |
clearPriceTiers()
public PricePhase.Builder clearPriceTiers()
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Type | Description |
PricePhase.Builder |
clone()
public PricePhase.Builder clone()
Type | Description |
PricePhase.Builder |
getDefaultInstanceForType()
public PricePhase getDefaultInstanceForType()
Type | Description |
PricePhase |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getFirstPeriod()
public int getFirstPeriod()
Defines first period for the phase.
int32 first_period = 2;
Type | Description |
int | The firstPeriod. |
getLastPeriod()
public int getLastPeriod()
Defines first period for the phase.
int32 last_period = 3;
Type | Description |
int | The lastPeriod. |
getPeriodType()
public PeriodType getPeriodType()
Defines the phase period type.
.google.cloud.channel.v1.PeriodType period_type = 1;
Type | Description |
PeriodType | The periodType. |
getPeriodTypeValue()
public int getPeriodTypeValue()
Defines the phase period type.
.google.cloud.channel.v1.PeriodType period_type = 1;
Type | Description |
int | The enum numeric value on the wire for periodType. |
getPrice()
public Price getPrice()
Price of the phase. Present if there are no price tiers.
.google.cloud.channel.v1.Price price = 4;
Type | Description |
Price | The price. |
getPriceBuilder()
public Price.Builder getPriceBuilder()
Price of the phase. Present if there are no price tiers.
.google.cloud.channel.v1.Price price = 4;
Type | Description |
Price.Builder |
getPriceOrBuilder()
public PriceOrBuilder getPriceOrBuilder()
Price of the phase. Present if there are no price tiers.
.google.cloud.channel.v1.Price price = 4;
Type | Description |
PriceOrBuilder |
getPriceTiers(int index)
public PriceTier getPriceTiers(int index)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Name | Description |
index | int |
Type | Description |
PriceTier |
getPriceTiersBuilder(int index)
public PriceTier.Builder getPriceTiersBuilder(int index)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Name | Description |
index | int |
Type | Description |
PriceTier.Builder |
getPriceTiersBuilderList()
public List<PriceTier.Builder> getPriceTiersBuilderList()
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Type | Description |
List<Builder> |
getPriceTiersCount()
public int getPriceTiersCount()
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Type | Description |
int |
getPriceTiersList()
public List<PriceTier> getPriceTiersList()
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Type | Description |
List<PriceTier> |
getPriceTiersOrBuilder(int index)
public PriceTierOrBuilder getPriceTiersOrBuilder(int index)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Name | Description |
index | int |
Type | Description |
PriceTierOrBuilder |
getPriceTiersOrBuilderList()
public List<? extends PriceTierOrBuilder> getPriceTiersOrBuilderList()
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Type | Description |
List<? extends com.google.cloud.channel.v1.PriceTierOrBuilder> |
hasPrice()
public boolean hasPrice()
Price of the phase. Present if there are no price tiers.
.google.cloud.channel.v1.Price price = 4;
Type | Description |
boolean | Whether the price field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(PricePhase other)
public PricePhase.Builder mergeFrom(PricePhase other)
Name | Description |
other | PricePhase |
Type | Description |
PricePhase.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PricePhase.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PricePhase.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public PricePhase.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
PricePhase.Builder |
mergePrice(Price value)
public PricePhase.Builder mergePrice(Price value)
Price of the phase. Present if there are no price tiers.
.google.cloud.channel.v1.Price price = 4;
Name | Description |
value | Price |
Type | Description |
PricePhase.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PricePhase.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
PricePhase.Builder |
removePriceTiers(int index)
public PricePhase.Builder removePriceTiers(int index)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Name | Description |
index | int |
Type | Description |
PricePhase.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public PricePhase.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
PricePhase.Builder |
setFirstPeriod(int value)
public PricePhase.Builder setFirstPeriod(int value)
Defines first period for the phase.
int32 first_period = 2;
Name | Description |
value | int The firstPeriod to set. |
Type | Description |
PricePhase.Builder | This builder for chaining. |
setLastPeriod(int value)
public PricePhase.Builder setLastPeriod(int value)
Defines first period for the phase.
int32 last_period = 3;
Name | Description |
value | int The lastPeriod to set. |
Type | Description |
PricePhase.Builder | This builder for chaining. |
setPeriodType(PeriodType value)
public PricePhase.Builder setPeriodType(PeriodType value)
Defines the phase period type.
.google.cloud.channel.v1.PeriodType period_type = 1;
Name | Description |
value | PeriodType The periodType to set. |
Type | Description |
PricePhase.Builder | This builder for chaining. |
setPeriodTypeValue(int value)
public PricePhase.Builder setPeriodTypeValue(int value)
Defines the phase period type.
.google.cloud.channel.v1.PeriodType period_type = 1;
Name | Description |
value | int The enum numeric value on the wire for periodType to set. |
Type | Description |
PricePhase.Builder | This builder for chaining. |
setPrice(Price value)
public PricePhase.Builder setPrice(Price value)
Price of the phase. Present if there are no price tiers.
.google.cloud.channel.v1.Price price = 4;
Name | Description |
value | Price |
Type | Description |
PricePhase.Builder |
setPrice(Price.Builder builderForValue)
public PricePhase.Builder setPrice(Price.Builder builderForValue)
Price of the phase. Present if there are no price tiers.
.google.cloud.channel.v1.Price price = 4;
Name | Description |
builderForValue | Price.Builder |
Type | Description |
PricePhase.Builder |
setPriceTiers(int index, PriceTier value)
public PricePhase.Builder setPriceTiers(int index, PriceTier value)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Name | Description |
index | int |
value | PriceTier |
Type | Description |
PricePhase.Builder |
setPriceTiers(int index, PriceTier.Builder builderForValue)
public PricePhase.Builder setPriceTiers(int index, PriceTier.Builder builderForValue)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
Name | Description |
index | int |
builderForValue | PriceTier.Builder |
Type | Description |
PricePhase.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PricePhase.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
PricePhase.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final PricePhase.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
PricePhase.Builder |