Class PricingInfo (2.49.0)

public final class PricingInfo extends GeneratedMessageV3 implements PricingInfoOrBuilder

Represents the pricing information for a SKU at a single point of time.

Protobuf type google.cloud.billing.v1.PricingInfo

Static Fields

AGGREGATION_INFO_FIELD_NUMBER

public static final int AGGREGATION_INFO_FIELD_NUMBER
Field Value
Type Description
int

CURRENCY_CONVERSION_RATE_FIELD_NUMBER

public static final int CURRENCY_CONVERSION_RATE_FIELD_NUMBER
Field Value
Type Description
int

EFFECTIVE_TIME_FIELD_NUMBER

public static final int EFFECTIVE_TIME_FIELD_NUMBER
Field Value
Type Description
int

PRICING_EXPRESSION_FIELD_NUMBER

public static final int PRICING_EXPRESSION_FIELD_NUMBER
Field Value
Type Description
int

SUMMARY_FIELD_NUMBER

public static final int SUMMARY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PricingInfo getDefaultInstance()
Returns
Type Description
PricingInfo

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static PricingInfo.Builder newBuilder()
Returns
Type Description
PricingInfo.Builder

newBuilder(PricingInfo prototype)

public static PricingInfo.Builder newBuilder(PricingInfo prototype)
Parameter
Name Description
prototype PricingInfo
Returns
Type Description
PricingInfo.Builder

parseDelimitedFrom(InputStream input)

public static PricingInfo parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PricingInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PricingInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PricingInfo
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PricingInfo parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PricingInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PricingInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PricingInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PricingInfo parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PricingInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PricingInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PricingInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PricingInfo parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PricingInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PricingInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PricingInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PricingInfo parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PricingInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PricingInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PricingInfo
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PricingInfo parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PricingInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PricingInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PricingInfo
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PricingInfo> parser()
Returns
Type Description
Parser<PricingInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAggregationInfo()

public 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 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 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.

getDefaultInstanceForType()

public PricingInfo getDefaultInstanceForType()
Returns
Type Description
PricingInfo

getEffectiveTime()

public 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 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

getParserForType()

public Parser<PricingInfo> getParserForType()
Returns
Type Description
Parser<PricingInfo>
Overrides

getPricingExpression()

public 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 PricingExpressionOrBuilder getPricingExpressionOrBuilder()

Expresses the pricing formula. See PricingExpression for an example.

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

Returns
Type Description
PricingExpressionOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSummary()

public 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 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 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 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 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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PricingInfo.Builder newBuilderForType()
Returns
Type Description
PricingInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PricingInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PricingInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PricingInfo.Builder toBuilder()
Returns
Type Description
PricingInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException