Interface PriceByResourceOrBuilder (3.57.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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
PricePhase

getPricePhasesCount()

public abstract int getPricePhasesCount()

Specifies the price by time range.

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

Returns
Type Description
int

getPricePhasesList()

public abstract List<PricePhase> getPricePhasesList()

Specifies the price by time range.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
PricePhaseOrBuilder

getPricePhasesOrBuilderList()

public abstract List<? extends PricePhaseOrBuilder> getPricePhasesOrBuilderList()

Specifies the price by time range.

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

Returns
Type Description
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
Type Description
ResourceType

The resourceType.

getResourceTypeValue()

public abstract int getResourceTypeValue()

Resource Type. Example: SEAT

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

Returns
Type Description
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
Type Description
boolean

Whether the price field is set.