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
CURRENCY_CONVERSION_RATE_FIELD_NUMBER
public static final int CURRENCY_CONVERSION_RATE_FIELD_NUMBER
Field Value
EFFECTIVE_TIME_FIELD_NUMBER
public static final int EFFECTIVE_TIME_FIELD_NUMBER
Field Value
PRICING_EXPRESSION_FIELD_NUMBER
public static final int PRICING_EXPRESSION_FIELD_NUMBER
Field Value
SUMMARY_FIELD_NUMBER
public static final int SUMMARY_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static PricingInfo getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static PricingInfo.Builder newBuilder()
Returns
newBuilder(PricingInfo prototype)
public static PricingInfo.Builder newBuilder(PricingInfo prototype)
Parameter
Returns
public static PricingInfo parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static PricingInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static PricingInfo parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PricingInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static PricingInfo parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PricingInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PricingInfo parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static PricingInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PricingInfo parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static PricingInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static PricingInfo parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PricingInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<PricingInfo> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
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
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
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
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
getParserForType()
public Parser<PricingInfo> getParserForType()
Returns
Overrides
getPricingExpression()
public PricingExpression getPricingExpression()
Expresses the pricing formula. See PricingExpression
for an example.
.google.cloud.billing.v1.PricingExpression pricing_expression = 3;
Returns
getPricingExpressionOrBuilder()
public PricingExpressionOrBuilder getPricingExpressionOrBuilder()
Expresses the pricing formula. See PricingExpression
for an example.
.google.cloud.billing.v1.PricingExpression pricing_expression = 3;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
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
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public PricingInfo.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PricingInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public PricingInfo.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions