Package com.google.cloud.channel.v1
Class PricePhase.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
- com.google.cloud.channel.v1.PricePhase.Builder
-
- All Implemented Interfaces:
PricePhaseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PricePhase
public static final class PricePhase.Builder extends com.google.protobuf.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 typegoogle.cloud.channel.v1.PricePhase
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PricePhase.BuilderaddAllPriceTiers(Iterable<? extends PriceTier> values)Price by the resource tiers.PricePhase.BuilderaddPriceTiers(int index, PriceTier value)Price by the resource tiers.PricePhase.BuilderaddPriceTiers(int index, PriceTier.Builder builderForValue)Price by the resource tiers.PricePhase.BuilderaddPriceTiers(PriceTier value)Price by the resource tiers.PricePhase.BuilderaddPriceTiers(PriceTier.Builder builderForValue)Price by the resource tiers.PriceTier.BuilderaddPriceTiersBuilder()Price by the resource tiers.PriceTier.BuilderaddPriceTiersBuilder(int index)Price by the resource tiers.PricePhase.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PricePhasebuild()PricePhasebuildPartial()PricePhase.Builderclear()PricePhase.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PricePhase.BuilderclearFirstPeriod()Defines first period for the phase.PricePhase.BuilderclearLastPeriod()Defines first period for the phase.PricePhase.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PricePhase.BuilderclearPeriodType()Defines the phase period type.PricePhase.BuilderclearPrice()Price of the phase.PricePhase.BuilderclearPriceTiers()Price by the resource tiers.PricePhase.Builderclone()PricePhasegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetFirstPeriod()Defines first period for the phase.intgetLastPeriod()Defines first period for the phase.PeriodTypegetPeriodType()Defines the phase period type.intgetPeriodTypeValue()Defines the phase period type.PricegetPrice()Price of the phase.Price.BuildergetPriceBuilder()Price of the phase.PriceOrBuildergetPriceOrBuilder()Price of the phase.PriceTiergetPriceTiers(int index)Price by the resource tiers.PriceTier.BuildergetPriceTiersBuilder(int index)Price by the resource tiers.List<PriceTier.Builder>getPriceTiersBuilderList()Price by the resource tiers.intgetPriceTiersCount()Price by the resource tiers.List<PriceTier>getPriceTiersList()Price by the resource tiers.PriceTierOrBuildergetPriceTiersOrBuilder(int index)Price by the resource tiers.List<? extends PriceTierOrBuilder>getPriceTiersOrBuilderList()Price by the resource tiers.booleanhasPrice()Price of the phase.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PricePhase.BuildermergeFrom(PricePhase other)PricePhase.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PricePhase.BuildermergeFrom(com.google.protobuf.Message other)PricePhase.BuildermergePrice(Price value)Price of the phase.PricePhase.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PricePhase.BuilderremovePriceTiers(int index)Price by the resource tiers.PricePhase.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PricePhase.BuildersetFirstPeriod(int value)Defines first period for the phase.PricePhase.BuildersetLastPeriod(int value)Defines first period for the phase.PricePhase.BuildersetPeriodType(PeriodType value)Defines the phase period type.PricePhase.BuildersetPeriodTypeValue(int value)Defines the phase period type.PricePhase.BuildersetPrice(Price value)Price of the phase.PricePhase.BuildersetPrice(Price.Builder builderForValue)Price of the phase.PricePhase.BuildersetPriceTiers(int index, PriceTier value)Price by the resource tiers.PricePhase.BuildersetPriceTiers(int index, PriceTier.Builder builderForValue)Price by the resource tiers.PricePhase.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)PricePhase.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
clear
public PricePhase.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
getDefaultInstanceForType
public PricePhase getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PricePhase build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PricePhase buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PricePhase.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
setField
public PricePhase.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
clearField
public PricePhase.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
clearOneof
public PricePhase.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
setRepeatedField
public PricePhase.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
addRepeatedField
public PricePhase.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
mergeFrom
public PricePhase.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PricePhase.Builder>
-
mergeFrom
public PricePhase.Builder mergeFrom(PricePhase other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
mergeFrom
public PricePhase.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PricePhase.Builder>- Throws:
IOException
-
getPeriodTypeValue
public int getPeriodTypeValue()
Defines the phase period type.
.google.cloud.channel.v1.PeriodType period_type = 1;- Specified by:
getPeriodTypeValuein interfacePricePhaseOrBuilder- Returns:
- The enum numeric value on the wire for periodType.
-
setPeriodTypeValue
public PricePhase.Builder setPeriodTypeValue(int value)
Defines the phase period type.
.google.cloud.channel.v1.PeriodType period_type = 1;- Parameters:
value- The enum numeric value on the wire for periodType to set.- Returns:
- This builder for chaining.
-
getPeriodType
public PeriodType getPeriodType()
Defines the phase period type.
.google.cloud.channel.v1.PeriodType period_type = 1;- Specified by:
getPeriodTypein interfacePricePhaseOrBuilder- Returns:
- The periodType.
-
setPeriodType
public PricePhase.Builder setPeriodType(PeriodType value)
Defines the phase period type.
.google.cloud.channel.v1.PeriodType period_type = 1;- Parameters:
value- The periodType to set.- Returns:
- This builder for chaining.
-
clearPeriodType
public PricePhase.Builder clearPeriodType()
Defines the phase period type.
.google.cloud.channel.v1.PeriodType period_type = 1;- Returns:
- This builder for chaining.
-
getFirstPeriod
public int getFirstPeriod()
Defines first period for the phase.
int32 first_period = 2;- Specified by:
getFirstPeriodin interfacePricePhaseOrBuilder- Returns:
- The firstPeriod.
-
setFirstPeriod
public PricePhase.Builder setFirstPeriod(int value)
Defines first period for the phase.
int32 first_period = 2;- Parameters:
value- The firstPeriod to set.- Returns:
- This builder for chaining.
-
clearFirstPeriod
public PricePhase.Builder clearFirstPeriod()
Defines first period for the phase.
int32 first_period = 2;- Returns:
- This builder for chaining.
-
getLastPeriod
public int getLastPeriod()
Defines first period for the phase.
int32 last_period = 3;- Specified by:
getLastPeriodin interfacePricePhaseOrBuilder- Returns:
- The lastPeriod.
-
setLastPeriod
public PricePhase.Builder setLastPeriod(int value)
Defines first period for the phase.
int32 last_period = 3;- Parameters:
value- The lastPeriod to set.- Returns:
- This builder for chaining.
-
clearLastPeriod
public PricePhase.Builder clearLastPeriod()
Defines first period for the phase.
int32 last_period = 3;- Returns:
- This builder for chaining.
-
hasPrice
public boolean hasPrice()
Price of the phase. Present if there are no price tiers.
.google.cloud.channel.v1.Price price = 4;- Specified by:
hasPricein interfacePricePhaseOrBuilder- Returns:
- Whether the price field is set.
-
getPrice
public Price getPrice()
Price of the phase. Present if there are no price tiers.
.google.cloud.channel.v1.Price price = 4;- Specified by:
getPricein interfacePricePhaseOrBuilder- Returns:
- The price.
-
setPrice
public PricePhase.Builder setPrice(Price value)
Price of the phase. Present if there are no price tiers.
.google.cloud.channel.v1.Price price = 4;
-
setPrice
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;
-
mergePrice
public PricePhase.Builder mergePrice(Price value)
Price of the phase. Present if there are no price tiers.
.google.cloud.channel.v1.Price price = 4;
-
clearPrice
public PricePhase.Builder clearPrice()
Price of the phase. Present if there are no price tiers.
.google.cloud.channel.v1.Price price = 4;
-
getPriceBuilder
public Price.Builder getPriceBuilder()
Price of the phase. Present if there are no price tiers.
.google.cloud.channel.v1.Price price = 4;
-
getPriceOrBuilder
public PriceOrBuilder getPriceOrBuilder()
Price of the phase. Present if there are no price tiers.
.google.cloud.channel.v1.Price price = 4;- Specified by:
getPriceOrBuilderin interfacePricePhaseOrBuilder
-
getPriceTiersList
public List<PriceTier> getPriceTiersList()
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;- Specified by:
getPriceTiersListin interfacePricePhaseOrBuilder
-
getPriceTiersCount
public int getPriceTiersCount()
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;- Specified by:
getPriceTiersCountin interfacePricePhaseOrBuilder
-
getPriceTiers
public PriceTier getPriceTiers(int index)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;- Specified by:
getPriceTiersin interfacePricePhaseOrBuilder
-
setPriceTiers
public PricePhase.Builder setPriceTiers(int index, PriceTier value)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
-
setPriceTiers
public PricePhase.Builder setPriceTiers(int index, PriceTier.Builder builderForValue)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
-
addPriceTiers
public PricePhase.Builder addPriceTiers(PriceTier value)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
-
addPriceTiers
public PricePhase.Builder addPriceTiers(int index, PriceTier value)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
-
addPriceTiers
public PricePhase.Builder addPriceTiers(PriceTier.Builder builderForValue)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
-
addPriceTiers
public PricePhase.Builder addPriceTiers(int index, PriceTier.Builder builderForValue)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
-
addAllPriceTiers
public PricePhase.Builder addAllPriceTiers(Iterable<? extends PriceTier> values)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
-
clearPriceTiers
public PricePhase.Builder clearPriceTiers()
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
-
removePriceTiers
public PricePhase.Builder removePriceTiers(int index)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
-
getPriceTiersBuilder
public PriceTier.Builder getPriceTiersBuilder(int index)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
-
getPriceTiersOrBuilder
public PriceTierOrBuilder getPriceTiersOrBuilder(int index)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;- Specified by:
getPriceTiersOrBuilderin interfacePricePhaseOrBuilder
-
getPriceTiersOrBuilderList
public List<? extends PriceTierOrBuilder> getPriceTiersOrBuilderList()
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;- Specified by:
getPriceTiersOrBuilderListin interfacePricePhaseOrBuilder
-
addPriceTiersBuilder
public PriceTier.Builder addPriceTiersBuilder()
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
-
addPriceTiersBuilder
public PriceTier.Builder addPriceTiersBuilder(int index)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
-
getPriceTiersBuilderList
public List<PriceTier.Builder> getPriceTiersBuilderList()
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
-
setUnknownFields
public final PricePhase.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
mergeUnknownFields
public final PricePhase.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
-