Class 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.GeneratedMessageV3.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 Detail

      • 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.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public PricingInfo.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
      • setField

        public PricingInfo.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
      • clearField

        public PricingInfo.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
      • clearOneof

        public PricingInfo.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
      • setRepeatedField

        public PricingInfo.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
      • addRepeatedField

        public PricingInfo.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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;
      • 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;
      • 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.
      • setUnknownFields

        public final PricingInfo.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
      • mergeUnknownFields

        public final PricingInfo.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>