Interface PriceByResourceOrBuilder (3.6.0)

public interface PriceByResourceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getPrice()

public abstract Price getPrice()

Price of the Offer. Present if there are no price phases.

.google.cloud.channel.v1.Price price = 2;

Returns
TypeDescription
Price

The price.

getPriceOrBuilder()

public abstract PriceOrBuilder getPriceOrBuilder()

Price of the Offer. Present if there are no price phases.

.google.cloud.channel.v1.Price price = 2;

Returns
TypeDescription
PriceOrBuilder

getPricePhases(int index)

public abstract PricePhase getPricePhases(int index)

Specifies the price by time range.

repeated .google.cloud.channel.v1.PricePhase price_phases = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
PricePhase

getPricePhasesCount()

public abstract int getPricePhasesCount()

Specifies the price by time range.

repeated .google.cloud.channel.v1.PricePhase price_phases = 3;

Returns
TypeDescription
int

getPricePhasesList()

public abstract List<PricePhase> getPricePhasesList()

Specifies the price by time range.

repeated .google.cloud.channel.v1.PricePhase price_phases = 3;

Returns
TypeDescription
List<PricePhase>

getPricePhasesOrBuilder(int index)

public abstract PricePhaseOrBuilder getPricePhasesOrBuilder(int index)

Specifies the price by time range.

repeated .google.cloud.channel.v1.PricePhase price_phases = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
PricePhaseOrBuilder

getPricePhasesOrBuilderList()

public abstract List<? extends PricePhaseOrBuilder> getPricePhasesOrBuilderList()

Specifies the price by time range.

repeated .google.cloud.channel.v1.PricePhase price_phases = 3;

Returns
TypeDescription
List<? extends com.google.cloud.channel.v1.PricePhaseOrBuilder>

getResourceType()

public abstract ResourceType getResourceType()

Resource Type. Example: SEAT

.google.cloud.channel.v1.ResourceType resource_type = 1;

Returns
TypeDescription
ResourceType

The resourceType.

getResourceTypeValue()

public abstract int getResourceTypeValue()

Resource Type. Example: SEAT

.google.cloud.channel.v1.ResourceType resource_type = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for resourceType.

hasPrice()

public abstract boolean hasPrice()

Price of the Offer. Present if there are no price phases.

.google.cloud.channel.v1.Price price = 2;

Returns
TypeDescription
boolean

Whether the price field is set.