Package com.google.cloud.billing.v1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Aggregation Info.Conversion rate used for currency conversion, from USD to the currency specified in the request.The timestamp from which this pricing was effective within the requested time range.Expresses the pricing formula.An optional human readable summary of the pricing information, has a maximum length of 256 characters.Aggregation Info.Aggregation Info.Aggregation Info.doubleConversion rate used for currency conversion, from USD to the currency specified in the request.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampThe timestamp from which this pricing was effective within the requested time range.com.google.protobuf.Timestamp.BuilderThe timestamp from which this pricing was effective within the requested time range.com.google.protobuf.TimestampOrBuilderThe timestamp from which this pricing was effective within the requested time range.Expresses the pricing formula.Expresses the pricing formula.Expresses the pricing formula.An optional human readable summary of the pricing information, has a maximum length of 256 characters.com.google.protobuf.ByteStringAn optional human readable summary of the pricing information, has a maximum length of 256 characters.booleanAggregation Info.booleanThe timestamp from which this pricing was effective within the requested time range.booleanExpresses the pricing formula.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanAggregation Info.mergeEffectiveTime(com.google.protobuf.Timestamp value) The timestamp from which this pricing was effective within the requested time range.mergeFrom(PricingInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Expresses the pricing formula.Aggregation Info.setAggregationInfo(AggregationInfo.Builder builderForValue) Aggregation Info.setCurrencyConversionRate(double value) Conversion rate used for currency conversion, from USD to the currency specified in the request.setEffectiveTime(com.google.protobuf.Timestamp value) The timestamp from which this pricing was effective within the requested time range.setEffectiveTime(com.google.protobuf.Timestamp.Builder builderForValue) The timestamp from which this pricing was effective within the requested time range.Expresses the pricing formula.setPricingExpression(PricingExpression.Builder builderForValue) Expresses the pricing formula.setSummary(String value) An optional human readable summary of the pricing information, has a maximum length of 256 characters.setSummaryBytes(com.google.protobuf.ByteString value) An optional human readable summary of the pricing information, has a maximum length of 256 characters.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PricingInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PricingInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PricingInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PricingInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasEffectiveTimein interfacePricingInfoOrBuilder- 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:
getEffectiveTimein interfacePricingInfoOrBuilder- Returns:
- The effectiveTime.
-
setEffectiveTime
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
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
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
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:
getEffectiveTimeOrBuilderin interfacePricingInfoOrBuilder
-
getSummary
An optional human readable summary of the pricing information, has a maximum length of 256 characters.
string summary = 2;- Specified by:
getSummaryin interfacePricingInfoOrBuilder- 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:
getSummaryBytesin interfacePricingInfoOrBuilder- Returns:
- The bytes for summary.
-
setSummary
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
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
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:
hasPricingExpressionin interfacePricingInfoOrBuilder- Returns:
- Whether the pricingExpression field is set.
-
getPricingExpression
Expresses the pricing formula. See `PricingExpression` for an example.
.google.cloud.billing.v1.PricingExpression pricing_expression = 3;- Specified by:
getPricingExpressionin interfacePricingInfoOrBuilder- Returns:
- The pricingExpression.
-
setPricingExpression
Expresses the pricing formula. See `PricingExpression` for an example.
.google.cloud.billing.v1.PricingExpression pricing_expression = 3; -
setPricingExpression
Expresses the pricing formula. See `PricingExpression` for an example.
.google.cloud.billing.v1.PricingExpression pricing_expression = 3; -
mergePricingExpression
Expresses the pricing formula. See `PricingExpression` for an example.
.google.cloud.billing.v1.PricingExpression pricing_expression = 3; -
clearPricingExpression
Expresses the pricing formula. See `PricingExpression` for an example.
.google.cloud.billing.v1.PricingExpression pricing_expression = 3; -
getPricingExpressionBuilder
Expresses the pricing formula. See `PricingExpression` for an example.
.google.cloud.billing.v1.PricingExpression pricing_expression = 3; -
getPricingExpressionOrBuilder
Expresses the pricing formula. See `PricingExpression` for an example.
.google.cloud.billing.v1.PricingExpression pricing_expression = 3;- Specified by:
getPricingExpressionOrBuilderin interfacePricingInfoOrBuilder
-
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:
hasAggregationInfoin interfacePricingInfoOrBuilder- Returns:
- Whether the aggregationInfo field is set.
-
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:
getAggregationInfoin interfacePricingInfoOrBuilder- Returns:
- The aggregationInfo.
-
setAggregationInfo
Aggregation Info. This can be left unspecified if the pricing expression doesn't require aggregation.
.google.cloud.billing.v1.AggregationInfo aggregation_info = 4; -
setAggregationInfo
Aggregation Info. This can be left unspecified if the pricing expression doesn't require aggregation.
.google.cloud.billing.v1.AggregationInfo aggregation_info = 4; -
mergeAggregationInfo
Aggregation Info. This can be left unspecified if the pricing expression doesn't require aggregation.
.google.cloud.billing.v1.AggregationInfo aggregation_info = 4; -
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
Aggregation Info. This can be left unspecified if the pricing expression doesn't require aggregation.
.google.cloud.billing.v1.AggregationInfo aggregation_info = 4; -
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:
getAggregationInfoOrBuilderin interfacePricingInfoOrBuilder
-
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:
getCurrencyConversionRatein interfacePricingInfoOrBuilder- Returns:
- The currencyConversionRate.
-
setCurrencyConversionRate
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
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.
-