Class PricingInfo

  • All Implemented Interfaces:
    PricingInfoOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    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
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  PricingInfo.Builder
      Represents the pricing information for a SKU at a single point of time.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        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
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Field Detail

      • EFFECTIVE_TIME_FIELD_NUMBER

        public static final int EFFECTIVE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PRICING_EXPRESSION_FIELD_NUMBER

        public static final int PRICING_EXPRESSION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • AGGREGATION_INFO_FIELD_NUMBER

        public static final int AGGREGATION_INFO_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CURRENCY_CONVERSION_RATE_FIELD_NUMBER

        public static final int CURRENCY_CONVERSION_RATE_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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;
        Specified by:
        hasEffectiveTime in interface PricingInfoOrBuilder
        Returns:
        Whether the effectiveTime field is set.
      • getEffectiveTime

        public 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;
        Specified by:
        getEffectiveTime in interface PricingInfoOrBuilder
        Returns:
        The effectiveTime.
      • getEffectiveTimeOrBuilder

        public 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;
        Specified by:
        getEffectiveTimeOrBuilder in interface PricingInfoOrBuilder
      • getSummary

        public String getSummary()
         An optional human readable summary of the pricing information, has a
         maximum length of 256 characters.
         
        string summary = 2;
        Specified by:
        getSummary in interface PricingInfoOrBuilder
        Returns:
        The summary.
      • getSummaryBytes

        public com.google.protobuf.ByteString getSummaryBytes()
         An optional human readable summary of the pricing information, has a
         maximum length of 256 characters.
         
        string summary = 2;
        Specified by:
        getSummaryBytes in interface PricingInfoOrBuilder
        Returns:
        The bytes for summary.
      • hasPricingExpression

        public boolean hasPricingExpression()
         Expresses the pricing formula. See `PricingExpression` for an example.
         
        .google.cloud.billing.v1.PricingExpression pricing_expression = 3;
        Specified by:
        hasPricingExpression in interface PricingInfoOrBuilder
        Returns:
        Whether the pricingExpression field is set.
      • getPricingExpression

        public PricingExpression getPricingExpression()
         Expresses the pricing formula. See `PricingExpression` for an example.
         
        .google.cloud.billing.v1.PricingExpression pricing_expression = 3;
        Specified by:
        getPricingExpression in interface PricingInfoOrBuilder
        Returns:
        The pricingExpression.
      • 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;
        Specified by:
        hasAggregationInfo in interface PricingInfoOrBuilder
        Returns:
        Whether the aggregationInfo field is set.
      • 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;
        Specified by:
        getAggregationInfo in interface PricingInfoOrBuilder
        Returns:
        The aggregationInfo.
      • 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;
        Specified by:
        getCurrencyConversionRate in interface PricingInfoOrBuilder
        Returns:
        The currencyConversionRate.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static PricingInfo parseFrom​(ByteBuffer data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PricingInfo parseFrom​(ByteBuffer data,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PricingInfo parseFrom​(com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PricingInfo parseFrom​(com.google.protobuf.ByteString data,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PricingInfo parseFrom​(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PricingInfo parseFrom​(byte[] data,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PricingInfo parseFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws IOException
        Throws:
        IOException
      • newBuilderForType

        public PricingInfo.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public PricingInfo.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected PricingInfo.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static PricingInfo getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<PricingInfo> parser()
      • getParserForType

        public com.google.protobuf.Parser<PricingInfo> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public PricingInfo getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder