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