Package com.google.cloud.billing.v1
Interface PricingInfoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PricingInfo,PricingInfo.Builder
@Generated
public interface PricingInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionAggregation Info.Aggregation Info.doubleConversion rate used for currency conversion, from USD to the currency specified in the request.com.google.protobuf.TimestampThe timestamp from which this pricing was effective within the requested time range.com.google.protobuf.TimestampOrBuilderThe timestamp from which this pricing was effective within the requested time range.Expresses the pricing formula.Expresses the pricing formula.An optional human readable summary of the pricing information, has a maximum length of 256 characters.com.google.protobuf.ByteStringAn optional human readable summary of the pricing information, has a maximum length of 256 characters.booleanAggregation Info.booleanThe timestamp from which this pricing was effective within the requested time range.booleanExpresses the pricing formula.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasEffectiveTime
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:
- Whether the effectiveTime field is set.
-
getEffectiveTime
com.google.protobuf.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:
- The effectiveTime.
-
getEffectiveTimeOrBuilder
com.google.protobuf.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; -
getSummary
String getSummary()An optional human readable summary of the pricing information, has a maximum length of 256 characters.
string summary = 2;- Returns:
- The summary.
-
getSummaryBytes
com.google.protobuf.ByteString getSummaryBytes()An optional human readable summary of the pricing information, has a maximum length of 256 characters.
string summary = 2;- Returns:
- The bytes for summary.
-
hasPricingExpression
boolean hasPricingExpression()Expresses the pricing formula. See `PricingExpression` for an example.
.google.cloud.billing.v1.PricingExpression pricing_expression = 3;- Returns:
- Whether the pricingExpression field is set.
-
getPricingExpression
PricingExpression getPricingExpression()Expresses the pricing formula. See `PricingExpression` for an example.
.google.cloud.billing.v1.PricingExpression pricing_expression = 3;- Returns:
- The pricingExpression.
-
getPricingExpressionOrBuilder
PricingExpressionOrBuilder getPricingExpressionOrBuilder()Expresses the pricing formula. See `PricingExpression` for an example.
.google.cloud.billing.v1.PricingExpression pricing_expression = 3; -
hasAggregationInfo
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:
- Whether the aggregationInfo field is set.
-
getAggregationInfo
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:
- The aggregationInfo.
-
getAggregationInfoOrBuilder
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; -
getCurrencyConversionRate
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:
- The currencyConversionRate.
-