public final class PricingInfo extends com.google.protobuf.GeneratedMessageV3 implements PricingInfoOrBuilder
Represents the pricing information for a SKU at a single point of time.Protobuf type
google.cloud.billing.v1.PricingInfo| Modifier and Type | Class and Description |
|---|---|
static class |
PricingInfo.Builder
Represents the pricing information for a SKU at a single point of time.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AGGREGATION_INFO_FIELD_NUMBER |
static int |
CURRENCY_CONVERSION_RATE_FIELD_NUMBER |
static int |
EFFECTIVE_TIME_FIELD_NUMBER |
static int |
PRICING_EXPRESSION_FIELD_NUMBER |
static int |
SUMMARY_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
AggregationInfo |
getAggregationInfo()
Aggregation Info.
|
AggregationInfoOrBuilder |
getAggregationInfoOrBuilder()
Aggregation Info.
|
double |
getCurrencyConversionRate()
Conversion rate used for currency conversion, from USD to the currency
specified in the request.
|
static PricingInfo |
getDefaultInstance() |
PricingInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Timestamp |
getEffectiveTime()
The timestamp from which this pricing was effective within the requested
time range.
|
com.google.protobuf.TimestampOrBuilder |
getEffectiveTimeOrBuilder()
The timestamp from which this pricing was effective within the requested
time range.
|
com.google.protobuf.Parser<PricingInfo> |
getParserForType() |
PricingExpression |
getPricingExpression()
Expresses the pricing formula.
|
PricingExpressionOrBuilder |
getPricingExpressionOrBuilder()
Expresses the pricing formula.
|
int |
getSerializedSize() |
String |
getSummary()
An optional human readable summary of the pricing information, has a
maximum length of 256 characters.
|
com.google.protobuf.ByteString |
getSummaryBytes()
An optional human readable summary of the pricing information, has a
maximum length of 256 characters.
|
boolean |
hasAggregationInfo()
Aggregation Info.
|
boolean |
hasEffectiveTime()
The timestamp from which this pricing was effective within the requested
time range.
|
int |
hashCode() |
boolean |
hasPricingExpression()
Expresses the pricing formula.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static PricingInfo.Builder |
newBuilder() |
static PricingInfo.Builder |
newBuilder(PricingInfo prototype) |
PricingInfo.Builder |
newBuilderForType() |
protected PricingInfo.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static PricingInfo |
parseDelimitedFrom(InputStream input) |
static PricingInfo |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PricingInfo |
parseFrom(byte[] data) |
static PricingInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PricingInfo |
parseFrom(ByteBuffer data) |
static PricingInfo |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PricingInfo |
parseFrom(com.google.protobuf.ByteString data) |
static PricingInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PricingInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static PricingInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PricingInfo |
parseFrom(InputStream input) |
static PricingInfo |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<PricingInfo> |
parser() |
PricingInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int EFFECTIVE_TIME_FIELD_NUMBER
public static final int SUMMARY_FIELD_NUMBER
public static final int PRICING_EXPRESSION_FIELD_NUMBER
public static final int AGGREGATION_INFO_FIELD_NUMBER
public static final int CURRENCY_CONVERSION_RATE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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;hasEffectiveTime in interface PricingInfoOrBuilderpublic 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;getEffectiveTime in interface PricingInfoOrBuilderpublic 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;getEffectiveTimeOrBuilder in interface PricingInfoOrBuilderpublic String getSummary()
An optional human readable summary of the pricing information, has a maximum length of 256 characters.
string summary = 2;getSummary in interface PricingInfoOrBuilderpublic com.google.protobuf.ByteString getSummaryBytes()
An optional human readable summary of the pricing information, has a maximum length of 256 characters.
string summary = 2;getSummaryBytes in interface PricingInfoOrBuilderpublic boolean hasPricingExpression()
Expresses the pricing formula. See `PricingExpression` for an example.
.google.cloud.billing.v1.PricingExpression pricing_expression = 3;hasPricingExpression in interface PricingInfoOrBuilderpublic PricingExpression getPricingExpression()
Expresses the pricing formula. See `PricingExpression` for an example.
.google.cloud.billing.v1.PricingExpression pricing_expression = 3;getPricingExpression in interface PricingInfoOrBuilderpublic PricingExpressionOrBuilder getPricingExpressionOrBuilder()
Expresses the pricing formula. See `PricingExpression` for an example.
.google.cloud.billing.v1.PricingExpression pricing_expression = 3;getPricingExpressionOrBuilder in interface PricingInfoOrBuilderpublic 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;hasAggregationInfo in interface PricingInfoOrBuilderpublic 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;getAggregationInfo in interface PricingInfoOrBuilderpublic 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;getAggregationInfoOrBuilder in interface PricingInfoOrBuilderpublic 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;getCurrencyConversionRate in interface PricingInfoOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static PricingInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PricingInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PricingInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PricingInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PricingInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PricingInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PricingInfo parseFrom(InputStream input) throws IOException
IOExceptionpublic static PricingInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PricingInfo parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static PricingInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PricingInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static PricingInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic PricingInfo.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static PricingInfo.Builder newBuilder()
public static PricingInfo.Builder newBuilder(PricingInfo prototype)
public PricingInfo.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected PricingInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static PricingInfo getDefaultInstance()
public static com.google.protobuf.Parser<PricingInfo> parser()
public com.google.protobuf.Parser<PricingInfo> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public PricingInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.