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.GeneratedMessage.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.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllPriceTiers(Iterable<? extends PriceTier> values) Price by the resource tiers.addPriceTiers(int index, PriceTier value) Price by the resource tiers.addPriceTiers(int index, PriceTier.Builder builderForValue) Price by the resource tiers.addPriceTiers(PriceTier value) Price by the resource tiers.addPriceTiers(PriceTier.Builder builderForValue) Price by the resource tiers.Price by the resource tiers.addPriceTiersBuilder(int index) Price by the resource tiers.build()clear()Defines first period for the phase.Defines first period for the phase.Defines the phase period type.Price of the phase.Price by the resource tiers.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintDefines first period for the phase.intDefines first period for the phase.Defines the phase period type.intDefines the phase period type.getPrice()Price of the phase.Price of the phase.Price of the phase.getPriceTiers(int index) Price by the resource tiers.getPriceTiersBuilder(int index) Price by the resource tiers.Price by the resource tiers.intPrice by the resource tiers.Price by the resource tiers.getPriceTiersOrBuilder(int index) Price by the resource tiers.List<? extends PriceTierOrBuilder>Price by the resource tiers.booleanhasPrice()Price of the phase.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(PricePhase other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePrice(Price value) Price of the phase.removePriceTiers(int index) Price by the resource tiers.setFirstPeriod(int value) Defines first period for the phase.setLastPeriod(int value) Defines first period for the phase.setPeriodType(PeriodType value) Defines the phase period type.setPeriodTypeValue(int value) Defines the phase period type.Price of the phase.setPrice(Price.Builder builderForValue) Price of the phase.setPriceTiers(int index, PriceTier value) Price by the resource tiers.setPriceTiers(int index, PriceTier.Builder builderForValue) Price by the resource tiers.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PricePhase.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<PricePhase.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PricePhase.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
Defines the phase period type.
.google.cloud.channel.v1.PeriodType period_type = 1;- Specified by:
getPeriodTypein interfacePricePhaseOrBuilder- Returns:
- The periodType.
-
setPeriodType
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
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
Defines first period for the phase.
int32 first_period = 2;- Parameters:
value- The firstPeriod to set.- Returns:
- This builder for chaining.
-
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
Defines first period for the phase.
int32 last_period = 3;- Parameters:
value- The lastPeriod to set.- Returns:
- This builder for chaining.
-
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
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
Price of the phase. Present if there are no price tiers.
.google.cloud.channel.v1.Price price = 4; -
setPrice
Price of the phase. Present if there are no price tiers.
.google.cloud.channel.v1.Price price = 4; -
mergePrice
Price of the phase. Present if there are no price tiers.
.google.cloud.channel.v1.Price price = 4; -
clearPrice
Price of the phase. Present if there are no price tiers.
.google.cloud.channel.v1.Price price = 4; -
getPriceBuilder
Price of the phase. Present if there are no price tiers.
.google.cloud.channel.v1.Price price = 4; -
getPriceOrBuilder
Price of the phase. Present if there are no price tiers.
.google.cloud.channel.v1.Price price = 4;- Specified by:
getPriceOrBuilderin interfacePricePhaseOrBuilder
-
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
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;- Specified by:
getPriceTiersin interfacePricePhaseOrBuilder
-
setPriceTiers
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5; -
setPriceTiers
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5; -
addPriceTiers
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5; -
addPriceTiers
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5; -
addPriceTiers
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5; -
addPriceTiers
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5; -
addAllPriceTiers
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5; -
clearPriceTiers
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5; -
removePriceTiers
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5; -
getPriceTiersBuilder
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5; -
getPriceTiersOrBuilder
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;- Specified by:
getPriceTiersOrBuilderin interfacePricePhaseOrBuilder
-
getPriceTiersOrBuilderList
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;- Specified by:
getPriceTiersOrBuilderListin interfacePricePhaseOrBuilder
-
addPriceTiersBuilder
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5; -
addPriceTiersBuilder
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5; -
getPriceTiersBuilderList
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
-