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.Builder
addAllPriceTiers(Iterable<? extends PriceTier> values)
Price by the resource tiers.PricePhase.Builder
addPriceTiers(int index, PriceTier value)
Price by the resource tiers.PricePhase.Builder
addPriceTiers(int index, PriceTier.Builder builderForValue)
Price by the resource tiers.PricePhase.Builder
addPriceTiers(PriceTier value)
Price by the resource tiers.PricePhase.Builder
addPriceTiers(PriceTier.Builder builderForValue)
Price by the resource tiers.PriceTier.Builder
addPriceTiersBuilder()
Price by the resource tiers.PriceTier.Builder
addPriceTiersBuilder(int index)
Price by the resource tiers.PricePhase.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PricePhase
build()
PricePhase
buildPartial()
PricePhase.Builder
clear()
PricePhase.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
PricePhase.Builder
clearFirstPeriod()
Defines first period for the phase.PricePhase.Builder
clearLastPeriod()
Defines first period for the phase.PricePhase.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
PricePhase.Builder
clearPeriodType()
Defines the phase period type.PricePhase.Builder
clearPrice()
Price of the phase.PricePhase.Builder
clearPriceTiers()
Price by the resource tiers.PricePhase.Builder
clone()
PricePhase
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getFirstPeriod()
Defines first period for the phase.int
getLastPeriod()
Defines first period for the phase.PeriodType
getPeriodType()
Defines the phase period type.int
getPeriodTypeValue()
Defines the phase period type.Price
getPrice()
Price of the phase.Price.Builder
getPriceBuilder()
Price of the phase.PriceOrBuilder
getPriceOrBuilder()
Price of the phase.PriceTier
getPriceTiers(int index)
Price by the resource tiers.PriceTier.Builder
getPriceTiersBuilder(int index)
Price by the resource tiers.List<PriceTier.Builder>
getPriceTiersBuilderList()
Price by the resource tiers.int
getPriceTiersCount()
Price by the resource tiers.List<PriceTier>
getPriceTiersList()
Price by the resource tiers.PriceTierOrBuilder
getPriceTiersOrBuilder(int index)
Price by the resource tiers.List<? extends PriceTierOrBuilder>
getPriceTiersOrBuilderList()
Price by the resource tiers.boolean
hasPrice()
Price of the phase.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
PricePhase.Builder
mergeFrom(PricePhase other)
PricePhase.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
PricePhase.Builder
mergeFrom(com.google.protobuf.Message other)
PricePhase.Builder
mergePrice(Price value)
Price of the phase.PricePhase.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
PricePhase.Builder
removePriceTiers(int index)
Price by the resource tiers.PricePhase.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PricePhase.Builder
setFirstPeriod(int value)
Defines first period for the phase.PricePhase.Builder
setLastPeriod(int value)
Defines first period for the phase.PricePhase.Builder
setPeriodType(PeriodType value)
Defines the phase period type.PricePhase.Builder
setPeriodTypeValue(int value)
Defines the phase period type.PricePhase.Builder
setPrice(Price value)
Price of the phase.PricePhase.Builder
setPrice(Price.Builder builderForValue)
Price of the phase.PricePhase.Builder
setPriceTiers(int index, PriceTier value)
Price by the resource tiers.PricePhase.Builder
setPriceTiers(int index, PriceTier.Builder builderForValue)
Price by the resource tiers.PricePhase.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
PricePhase.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
clear
public PricePhase.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
getDefaultInstanceForType
public PricePhase getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public PricePhase build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PricePhase buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PricePhase.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
setField
public PricePhase.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
clearField
public PricePhase.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
clearOneof
public PricePhase.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
setRepeatedField
public PricePhase.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
addRepeatedField
public PricePhase.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
mergeFrom
public PricePhase.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PricePhase.Builder>
-
mergeFrom
public PricePhase.Builder mergeFrom(PricePhase other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getPeriodTypeValue
in 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:
getPeriodType
in 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:
getFirstPeriod
in 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:
getLastPeriod
in 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:
hasPrice
in 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:
getPrice
in 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:
getPriceOrBuilder
in interfacePricePhaseOrBuilder
-
getPriceTiersList
public List<PriceTier> getPriceTiersList()
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
- Specified by:
getPriceTiersList
in interfacePricePhaseOrBuilder
-
getPriceTiersCount
public int getPriceTiersCount()
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
- Specified by:
getPriceTiersCount
in interfacePricePhaseOrBuilder
-
getPriceTiers
public PriceTier getPriceTiers(int index)
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
- Specified by:
getPriceTiers
in 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:
getPriceTiersOrBuilder
in interfacePricePhaseOrBuilder
-
getPriceTiersOrBuilderList
public List<? extends PriceTierOrBuilder> getPriceTiersOrBuilderList()
Price by the resource tiers.
repeated .google.cloud.channel.v1.PriceTier price_tiers = 5;
- Specified by:
getPriceTiersOrBuilderList
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
mergeUnknownFields
public final PricePhase.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricePhase.Builder>
-
-