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.GeneratedMessage.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.GeneratedMessage.Builder<PriceByResource.Builder>
implements PriceByResourceOrBuilder
Represents price by resource type.Protobuf type
google.cloud.channel.v1.PriceByResource-
Method Summary
Modifier and TypeMethodDescriptionaddAllPricePhases(Iterable<? extends PricePhase> values) Specifies the price by time range.addPricePhases(int index, PricePhase value) Specifies the price by time range.addPricePhases(int index, PricePhase.Builder builderForValue) Specifies the price by time range.addPricePhases(PricePhase value) Specifies the price by time range.addPricePhases(PricePhase.Builder builderForValue) Specifies the price by time range.Specifies the price by time range.addPricePhasesBuilder(int index) Specifies the price by time range.build()clear()Price of the Offer.Specifies the price by time range.Resource Type.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetPrice()Price of the Offer.Price of the Offer.Price of the Offer.getPricePhases(int index) Specifies the price by time range.getPricePhasesBuilder(int index) Specifies the price by time range.Specifies the price by time range.intSpecifies the price by time range.Specifies the price by time range.getPricePhasesOrBuilder(int index) Specifies the price by time range.List<? extends PricePhaseOrBuilder>Specifies the price by time range.Resource Type.intResource Type.booleanhasPrice()Price of the Offer.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(PriceByResource other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePrice(Price value) Price of the Offer.removePricePhases(int index) Specifies the price by time range.Price of the Offer.setPrice(Price.Builder builderForValue) Price of the Offer.setPricePhases(int index, PricePhase value) Specifies the price by time range.setPricePhases(int index, PricePhase.Builder builderForValue) Specifies the price by time range.setResourceType(ResourceType value) Resource Type.setResourceTypeValue(int value) Resource Type.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<PriceByResource.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<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.GeneratedMessage.Builder<PriceByResource.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<PriceByResource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
Resource Type. Example: SEAT
.google.cloud.channel.v1.ResourceType resource_type = 1;- Specified by:
getResourceTypein interfacePriceByResourceOrBuilder- Returns:
- The resourceType.
-
setResourceType
Resource Type. Example: SEAT
.google.cloud.channel.v1.ResourceType resource_type = 1;- Parameters:
value- The resourceType to set.- Returns:
- This builder for chaining.
-
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
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
Price of the Offer. Present if there are no price phases.
.google.cloud.channel.v1.Price price = 2; -
setPrice
Price of the Offer. Present if there are no price phases.
.google.cloud.channel.v1.Price price = 2; -
mergePrice
Price of the Offer. Present if there are no price phases.
.google.cloud.channel.v1.Price price = 2; -
clearPrice
Price of the Offer. Present if there are no price phases.
.google.cloud.channel.v1.Price price = 2; -
getPriceBuilder
Price of the Offer. Present if there are no price phases.
.google.cloud.channel.v1.Price price = 2; -
getPriceOrBuilder
Price of the Offer. Present if there are no price phases.
.google.cloud.channel.v1.Price price = 2;- Specified by:
getPriceOrBuilderin interfacePriceByResourceOrBuilder
-
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
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;- Specified by:
getPricePhasesin interfacePriceByResourceOrBuilder
-
setPricePhases
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3; -
setPricePhases
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3; -
addPricePhases
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3; -
addPricePhases
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3; -
addPricePhases
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3; -
addPricePhases
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3; -
addAllPricePhases
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3; -
clearPricePhases
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3; -
removePricePhases
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3; -
getPricePhasesBuilder
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3; -
getPricePhasesOrBuilder
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;- Specified by:
getPricePhasesOrBuilderin interfacePriceByResourceOrBuilder
-
getPricePhasesOrBuilderList
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;- Specified by:
getPricePhasesOrBuilderListin interfacePriceByResourceOrBuilder
-
addPricePhasesBuilder
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3; -
addPricePhasesBuilder
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3; -
getPricePhasesBuilderList
Specifies the price by time range.
repeated .google.cloud.channel.v1.PricePhase price_phases = 3;
-