Class PricingInfo (2.33.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
TypeDescription
int

CURRENCY_CONVERSION_RATE_FIELD_NUMBER

public static final int CURRENCY_CONVERSION_RATE_FIELD_NUMBER
Field Value
TypeDescription
int

EFFECTIVE_TIME_FIELD_NUMBER

public static final int EFFECTIVE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

PRICING_EXPRESSION_FIELD_NUMBER

public static final int PRICING_EXPRESSION_FIELD_NUMBER
Field Value
TypeDescription
int

SUMMARY_FIELD_NUMBER

public static final int SUMMARY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PricingInfo getDefaultInstance()
Returns
TypeDescription
PricingInfo

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static PricingInfo.Builder newBuilder()
Returns
TypeDescription
PricingInfo.Builder

newBuilder(PricingInfo prototype)

public static PricingInfo.Builder newBuilder(PricingInfo prototype)
Parameter
NameDescription
prototypePricingInfo
Returns
TypeDescription
PricingInfo.Builder

parseDelimitedFrom(InputStream input)

public static PricingInfo parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PricingInfo
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PricingInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PricingInfo
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PricingInfo parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PricingInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PricingInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PricingInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PricingInfo parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PricingInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PricingInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PricingInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PricingInfo parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PricingInfo
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PricingInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PricingInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PricingInfo parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PricingInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PricingInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PricingInfo
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PricingInfo parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PricingInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PricingInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PricingInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PricingInfo> parser()
Returns
TypeDescription
Parser<PricingInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
double

The currencyConversionRate.

getDefaultInstanceForType()

public PricingInfo getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getParserForType()

public Parser<PricingInfo> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
PricingExpressionOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the pricingExpression field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PricingInfo.Builder newBuilderForType()
Returns
TypeDescription
PricingInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PricingInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PricingInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PricingInfo.Builder toBuilder()
Returns
TypeDescription
PricingInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException