Class PricingInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PricingInfo.Builder>
com.google.cloud.billing.v1.PricingInfo.Builder
All Implemented Interfaces:
PricingInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PricingInfo

public static final class PricingInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<PricingInfo.Builder> implements PricingInfoOrBuilder
 Represents the pricing information for a SKU at a single point of time.
 
Protobuf type google.cloud.billing.v1.PricingInfo
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PricingInfo.Builder>
    • clear

      public PricingInfo.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PricingInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PricingInfo.Builder>
    • getDefaultInstanceForType

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

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

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

      public PricingInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PricingInfo.Builder>
    • mergeFrom

      public PricingInfo.Builder mergeFrom(PricingInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PricingInfo.Builder>
    • mergeFrom

      public PricingInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PricingInfo.Builder>
      Throws:
      IOException
    • 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.
    • setEffectiveTime

      public PricingInfo.Builder setEffectiveTime(com.google.protobuf.Timestamp value)
       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;
    • setEffectiveTime

      public PricingInfo.Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderForValue)
       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;
    • mergeEffectiveTime

      public PricingInfo.Builder mergeEffectiveTime(com.google.protobuf.Timestamp value)
       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;
    • clearEffectiveTime

      public PricingInfo.Builder clearEffectiveTime()
       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;
    • getEffectiveTimeBuilder

      public com.google.protobuf.Timestamp.Builder getEffectiveTimeBuilder()
       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

      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.
    • setSummary

      public PricingInfo.Builder setSummary(String value)
       An optional human readable summary of the pricing information, has a
       maximum length of 256 characters.
       
      string summary = 2;
      Parameters:
      value - The summary to set.
      Returns:
      This builder for chaining.
    • clearSummary

      public PricingInfo.Builder clearSummary()
       An optional human readable summary of the pricing information, has a
       maximum length of 256 characters.
       
      string summary = 2;
      Returns:
      This builder for chaining.
    • setSummaryBytes

      public PricingInfo.Builder setSummaryBytes(com.google.protobuf.ByteString value)
       An optional human readable summary of the pricing information, has a
       maximum length of 256 characters.
       
      string summary = 2;
      Parameters:
      value - The bytes for summary to set.
      Returns:
      This builder for chaining.
    • 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.
    • setPricingExpression

      public PricingInfo.Builder setPricingExpression(PricingExpression value)
       Expresses the pricing formula. See `PricingExpression` for an example.
       
      .google.cloud.billing.v1.PricingExpression pricing_expression = 3;
    • setPricingExpression

      public PricingInfo.Builder setPricingExpression(PricingExpression.Builder builderForValue)
       Expresses the pricing formula. See `PricingExpression` for an example.
       
      .google.cloud.billing.v1.PricingExpression pricing_expression = 3;
    • mergePricingExpression

      public PricingInfo.Builder mergePricingExpression(PricingExpression value)
       Expresses the pricing formula. See `PricingExpression` for an example.
       
      .google.cloud.billing.v1.PricingExpression pricing_expression = 3;
    • clearPricingExpression

      public PricingInfo.Builder clearPricingExpression()
       Expresses the pricing formula. See `PricingExpression` for an example.
       
      .google.cloud.billing.v1.PricingExpression pricing_expression = 3;
    • getPricingExpressionBuilder

      public PricingExpression.Builder getPricingExpressionBuilder()
       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;
      Specified by:
      getPricingExpressionOrBuilder in interface PricingInfoOrBuilder
    • 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.
    • setAggregationInfo

      public PricingInfo.Builder setAggregationInfo(AggregationInfo value)
       Aggregation Info. This can be left unspecified if the pricing expression
       doesn't require aggregation.
       
      .google.cloud.billing.v1.AggregationInfo aggregation_info = 4;
    • setAggregationInfo

      public PricingInfo.Builder setAggregationInfo(AggregationInfo.Builder builderForValue)
       Aggregation Info. This can be left unspecified if the pricing expression
       doesn't require aggregation.
       
      .google.cloud.billing.v1.AggregationInfo aggregation_info = 4;
    • mergeAggregationInfo

      public PricingInfo.Builder mergeAggregationInfo(AggregationInfo value)
       Aggregation Info. This can be left unspecified if the pricing expression
       doesn't require aggregation.
       
      .google.cloud.billing.v1.AggregationInfo aggregation_info = 4;
    • clearAggregationInfo

      public PricingInfo.Builder clearAggregationInfo()
       Aggregation Info. This can be left unspecified if the pricing expression
       doesn't require aggregation.
       
      .google.cloud.billing.v1.AggregationInfo aggregation_info = 4;
    • getAggregationInfoBuilder

      public AggregationInfo.Builder getAggregationInfoBuilder()
       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;
      Specified by:
      getAggregationInfoOrBuilder in interface PricingInfoOrBuilder
    • 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.
    • setCurrencyConversionRate

      public PricingInfo.Builder setCurrencyConversionRate(double value)
       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;
      Parameters:
      value - The currencyConversionRate to set.
      Returns:
      This builder for chaining.
    • clearCurrencyConversionRate

      public PricingInfo.Builder clearCurrencyConversionRate()
       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:
      This builder for chaining.