Package com.google.cloud.channel.v1
Class PriceByResource.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PriceByResource.Builder>
-
- com.google.cloud.channel.v1.PriceByResource.Builder
-
- All Implemented Interfaces:
PriceByResourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PriceByResource
public static final class PriceByResource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PriceByResource.Builder> implements PriceByResourceOrBuilder
Represents price by resource type.
Protobuf typegoogle.cloud.channel.v1.PriceByResource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PriceByResource.BuilderaddAllPricePhases(Iterable<? extends PricePhase> values)Specifies the price by time range.PriceByResource.BuilderaddPricePhases(int index, PricePhase value)Specifies the price by time range.PriceByResource.BuilderaddPricePhases(int index, PricePhase.Builder builderForValue)Specifies the price by time range.PriceByResource.BuilderaddPricePhases(PricePhase value)Specifies the price by time range.PriceByResource.BuilderaddPricePhases(PricePhase.Builder builderForValue)Specifies the price by time range.PricePhase.BuilderaddPricePhasesBuilder()Specifies the price by time range.PricePhase.BuilderaddPricePhasesBuilder(int index)Specifies the price by time range.PriceByResource.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PriceByResourcebuild()PriceByResourcebuildPartial()PriceByResource.Builderclear()PriceByResource.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PriceByResource.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PriceByResource.BuilderclearPrice()Price of the Offer.PriceByResource.BuilderclearPricePhases()Specifies the price by time range.PriceByResource.BuilderclearResourceType()Resource Type.PriceByResource.Builderclone()PriceByResourcegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()PricegetPrice()Price of the Offer.Price.BuildergetPriceBuilder()Price of the Offer.PriceOrBuildergetPriceOrBuilder()Price of the Offer.PricePhasegetPricePhases(int index)Specifies the price by time range.PricePhase.BuildergetPricePhasesBuilder(int index)Specifies the price by time range.List<PricePhase.Builder>getPricePhasesBuilderList()Specifies the price by time range.intgetPricePhasesCount()Specifies the price by time range.List<PricePhase>getPricePhasesList()Specifies the price by time range.PricePhaseOrBuildergetPricePhasesOrBuilder(int index)Specifies the price by time range.List<? extends PricePhaseOrBuilder>getPricePhasesOrBuilderList()Specifies the price by time range.ResourceTypegetResourceType()Resource Type.intgetResourceTypeValue()Resource Type.booleanhasPrice()Price of the Offer.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PriceByResource.BuildermergeFrom(PriceByResource other)PriceByResource.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PriceByResource.BuildermergeFrom(com.google.protobuf.Message other)PriceByResource.BuildermergePrice(Price value)Price of the Offer.PriceByResource.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PriceByResource.BuilderremovePricePhases(int index)Specifies the price by time range.PriceByResource.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PriceByResource.BuildersetPrice(Price value)Price of the Offer.PriceByResource.BuildersetPrice(Price.Builder builderForValue)Price of the Offer.PriceByResource.BuildersetPricePhases(int index, PricePhase value)Specifies the price by time range.PriceByResource.BuildersetPricePhases(int index, PricePhase.Builder builderForValue)Specifies the price by time range.PriceByResource.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)PriceByResource.BuildersetResourceType(ResourceType value)Resource Type.PriceByResource.BuildersetResourceTypeValue(int value)Resource Type.PriceByResource.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<PriceByResource.Builder>
-
clear
public PriceByResource.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<PriceByResource.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<PriceByResource.Builder>
-
getDefaultInstanceForType
public PriceByResource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PriceByResource build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PriceByResource buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PriceByResource.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<PriceByResource.Builder>
-
setField
public PriceByResource.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<PriceByResource.Builder>
-
clearField
public PriceByResource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PriceByResource.Builder>
-
clearOneof
public PriceByResource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PriceByResource.Builder>
-
setRepeatedField
public PriceByResource.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<PriceByResource.Builder>
-
addRepeatedField
public PriceByResource.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<PriceByResource.Builder>
-
mergeFrom
public PriceByResource.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PriceByResource.Builder>
-
mergeFrom
public PriceByResource.Builder mergeFrom(PriceByResource other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<PriceByResource.Builder>
-
mergeFrom
public PriceByResource.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<PriceByResource.Builder>- Throws:
IOException
-
getResourceTypeValue
public int getResourceTypeValue()
Resource Type. Example: SEAT
.google.cloud.channel.v1.ResourceType resource_type = 1;- Specified by:
getResourceTypeValuein interfacePriceByResourceOrBuilder- Returns:
- The enum numeric value on the wire for resourceType.
-
setResourceTypeValue
public PriceByResource.Builder setResourceTypeValue(int value)
Resource Type. Example: SEAT
.google.cloud.channel.v1.ResourceType resource_type = 1;- Parameters:
value- The enum numeric value on the wire for resourceType to set.- Returns:
- This builder for chaining.
-
getResourceType
public ResourceType getResourceType()
Resource Type. Example: SEAT
.google.cloud.channel.v1.ResourceType resource_type = 1;- Specified by:
getResourceTypein interfacePriceByResourceOrBuilder- Returns:
- The resourceType.
-
setResourceType
public PriceByResource.Builder setResourceType(ResourceType value)
Resource Type. Example: SEAT
.google.cloud.channel.v1.ResourceType resource_type = 1;- Parameters:
value- The resourceType to set.- Returns:
- This builder for chaining.
-
clearResourceType
public PriceByResource.Builder clearResourceType()
Resource Type. Example: SEAT
.google.cloud.channel.v1.ResourceType resource_type = 1;- Returns:
- This builder for chaining.
-
hasPrice
public boolean hasPrice()
Price of the Offer. Present if there are no price phases.
.google.cloud.channel.v1.Price price = 2;- Specified by:
hasPricein interfacePriceByResourceOrBuilder- Returns:
- Whether the price field is set.
-
getPrice
public Price getPrice()
Price of the Offer. Present if there are no price phases.
.google.cloud.channel.v1.Price price = 2;- Specified by:
getPricein interfacePriceByResourceOrBuilder- Returns:
- The price.
-
setPrice
public PriceByResource.Builder setPrice(Price value)
Price of the Offer. Present if there are no price phases.
.google.cloud.channel.v1.Price price = 2;
-
setPrice
public PriceByResource.Builder setPrice(Price.Builder builderForValue)
Price of the Offer. Present if there are no price phases.
.google.cloud.channel.v1.Price price = 2;
-
mergePrice
public PriceByResource.Builder mergePrice(Price value)
Price of the Offer. Present if there are no price phases.
.google.cloud.channel.v1.Price price = 2;
-
clearPrice
public PriceByResource.Builder clearPrice()
Price of the Offer. Present if there are no price phases.
.google.cloud.channel.v1.Price price = 2;
-
getPriceBuilder
public Price.Builder getPriceBuilder()
Price of the Offer. Present if there are no price phases.
.google.cloud.channel.v1.Price price = 2;
-
getPriceOrBuilder
public PriceOrBuilder getPriceOrBuilder()
Price of the Offer. Present if there are no price phases.
.google.cloud.channel.v1.Price price = 2;- Specified by:
getPriceOrBuilderin interfacePriceByResourceOrBuilder
-
getPricePhasesList
public List<PricePhase> getPricePhasesList()
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;- Specified by:
getPricePhasesListin interfacePriceByResourceOrBuilder
-
getPricePhasesCount
public int getPricePhasesCount()
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;- Specified by:
getPricePhasesCountin interfacePriceByResourceOrBuilder
-
getPricePhases
public PricePhase getPricePhases(int index)
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;- Specified by:
getPricePhasesin interfacePriceByResourceOrBuilder
-
setPricePhases
public PriceByResource.Builder setPricePhases(int index, PricePhase value)
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;
-
setPricePhases
public PriceByResource.Builder setPricePhases(int index, PricePhase.Builder builderForValue)
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;
-
addPricePhases
public PriceByResource.Builder addPricePhases(PricePhase value)
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;
-
addPricePhases
public PriceByResource.Builder addPricePhases(int index, PricePhase value)
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;
-
addPricePhases
public PriceByResource.Builder addPricePhases(PricePhase.Builder builderForValue)
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;
-
addPricePhases
public PriceByResource.Builder addPricePhases(int index, PricePhase.Builder builderForValue)
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;
-
addAllPricePhases
public PriceByResource.Builder addAllPricePhases(Iterable<? extends PricePhase> values)
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;
-
clearPricePhases
public PriceByResource.Builder clearPricePhases()
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;
-
removePricePhases
public PriceByResource.Builder removePricePhases(int index)
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;
-
getPricePhasesBuilder
public PricePhase.Builder getPricePhasesBuilder(int index)
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;
-
getPricePhasesOrBuilder
public PricePhaseOrBuilder getPricePhasesOrBuilder(int index)
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;- Specified by:
getPricePhasesOrBuilderin interfacePriceByResourceOrBuilder
-
getPricePhasesOrBuilderList
public List<? extends PricePhaseOrBuilder> getPricePhasesOrBuilderList()
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;- Specified by:
getPricePhasesOrBuilderListin interfacePriceByResourceOrBuilder
-
addPricePhasesBuilder
public PricePhase.Builder addPricePhasesBuilder()
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;
-
addPricePhasesBuilder
public PricePhase.Builder addPricePhasesBuilder(int index)
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;
-
getPricePhasesBuilderList
public List<PricePhase.Builder> getPricePhasesBuilderList()
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;
-
setUnknownFields
public final PriceByResource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PriceByResource.Builder>
-
mergeUnknownFields
public final PriceByResource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PriceByResource.Builder>
-
-