Interface PricingInfoOrBuilder (2.42.0)

public interface PricingInfoOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAggregationInfo()

public abstract AggregationInfo getAggregationInfo()

Aggregation Info. This can be left unspecified if the pricing expression doesn't require aggregation.

.google.cloud.billing.v1.AggregationInfo aggregation_info = 4;

Returns
Type Description
AggregationInfo

The aggregationInfo.

getAggregationInfoOrBuilder()

public abstract AggregationInfoOrBuilder getAggregationInfoOrBuilder()

Aggregation Info. This can be left unspecified if the pricing expression doesn't require aggregation.

.google.cloud.billing.v1.AggregationInfo aggregation_info = 4;

Returns
Type Description
AggregationInfoOrBuilder

getCurrencyConversionRate()

public abstract double getCurrencyConversionRate()

Conversion rate used for currency conversion, from USD to the currency specified in the request. This includes any surcharge collected for billing in non USD currency. If a currency is not specified in the request this defaults to 1.0. Example: USD * currency_conversion_rate = JPY

double currency_conversion_rate = 5;

Returns
Type Description
double

The currencyConversionRate.

getEffectiveTime()

public abstract Timestamp getEffectiveTime()

The timestamp from which this pricing was effective within the requested time range. This is guaranteed to be greater than or equal to the start_time field in the request and less than the end_time field in the request. If a time range was not specified in the request this field will be equivalent to a time within the last 12 hours, indicating the latest pricing info.

.google.protobuf.Timestamp effective_time = 1;

Returns
Type Description
Timestamp

The effectiveTime.

getEffectiveTimeOrBuilder()

public abstract TimestampOrBuilder getEffectiveTimeOrBuilder()

The timestamp from which this pricing was effective within the requested time range. This is guaranteed to be greater than or equal to the start_time field in the request and less than the end_time field in the request. If a time range was not specified in the request this field will be equivalent to a time within the last 12 hours, indicating the latest pricing info.

.google.protobuf.Timestamp effective_time = 1;

Returns
Type Description
TimestampOrBuilder

getPricingExpression()

public abstract PricingExpression getPricingExpression()

Expresses the pricing formula. See PricingExpression for an example.

.google.cloud.billing.v1.PricingExpression pricing_expression = 3;

Returns
Type Description
PricingExpression

The pricingExpression.

getPricingExpressionOrBuilder()

public abstract PricingExpressionOrBuilder getPricingExpressionOrBuilder()

Expresses the pricing formula. See PricingExpression for an example.

.google.cloud.billing.v1.PricingExpression pricing_expression = 3;

Returns
Type Description
PricingExpressionOrBuilder

getSummary()

public abstract String getSummary()

An optional human readable summary of the pricing information, has a maximum length of 256 characters.

string summary = 2;

Returns
Type Description
String

The summary.

getSummaryBytes()

public abstract ByteString getSummaryBytes()

An optional human readable summary of the pricing information, has a maximum length of 256 characters.

string summary = 2;

Returns
Type Description
ByteString

The bytes for summary.

hasAggregationInfo()

public abstract boolean hasAggregationInfo()

Aggregation Info. This can be left unspecified if the pricing expression doesn't require aggregation.

.google.cloud.billing.v1.AggregationInfo aggregation_info = 4;

Returns
Type Description
boolean

Whether the aggregationInfo field is set.

hasEffectiveTime()

public abstract boolean hasEffectiveTime()

The timestamp from which this pricing was effective within the requested time range. This is guaranteed to be greater than or equal to the start_time field in the request and less than the end_time field in the request. If a time range was not specified in the request this field will be equivalent to a time within the last 12 hours, indicating the latest pricing info.

.google.protobuf.Timestamp effective_time = 1;

Returns
Type Description
boolean

Whether the effectiveTime field is set.

hasPricingExpression()

public abstract boolean hasPricingExpression()

Expresses the pricing formula. See PricingExpression for an example.

.google.cloud.billing.v1.PricingExpression pricing_expression = 3;

Returns
Type Description
boolean

Whether the pricingExpression field is set.