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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<PricingInfo.Builder> implements PricingInfoOrBuilder
Represents the pricing information for a SKU at a single point of time.
Protobuf typegoogle.cloud.billing.v1.PricingInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PricingInfo.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PricingInfobuild()PricingInfobuildPartial()PricingInfo.Builderclear()PricingInfo.BuilderclearAggregationInfo()Aggregation Info.PricingInfo.BuilderclearCurrencyConversionRate()Conversion rate used for currency conversion, from USD to the currency specified in the request.PricingInfo.BuilderclearEffectiveTime()The timestamp from which this pricing was effective within the requested time range.PricingInfo.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PricingInfo.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PricingInfo.BuilderclearPricingExpression()Expresses the pricing formula.PricingInfo.BuilderclearSummary()An optional human readable summary of the pricing information, has a maximum length of 256 characters.PricingInfo.Builderclone()AggregationInfogetAggregationInfo()Aggregation Info.AggregationInfo.BuildergetAggregationInfoBuilder()Aggregation Info.AggregationInfoOrBuildergetAggregationInfoOrBuilder()Aggregation Info.doublegetCurrencyConversionRate()Conversion rate used for currency conversion, from USD to the currency specified in the request.PricingInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.TimestampgetEffectiveTime()The timestamp from which this pricing was effective within the requested time range.com.google.protobuf.Timestamp.BuildergetEffectiveTimeBuilder()The timestamp from which this pricing was effective within the requested time range.com.google.protobuf.TimestampOrBuildergetEffectiveTimeOrBuilder()The timestamp from which this pricing was effective within the requested time range.PricingExpressiongetPricingExpression()Expresses the pricing formula.PricingExpression.BuildergetPricingExpressionBuilder()Expresses the pricing formula.PricingExpressionOrBuildergetPricingExpressionOrBuilder()Expresses the pricing formula.StringgetSummary()An optional human readable summary of the pricing information, has a maximum length of 256 characters.com.google.protobuf.ByteStringgetSummaryBytes()An optional human readable summary of the pricing information, has a maximum length of 256 characters.booleanhasAggregationInfo()Aggregation Info.booleanhasEffectiveTime()The timestamp from which this pricing was effective within the requested time range.booleanhasPricingExpression()Expresses the pricing formula.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PricingInfo.BuildermergeAggregationInfo(AggregationInfo value)Aggregation Info.PricingInfo.BuildermergeEffectiveTime(com.google.protobuf.Timestamp value)The timestamp from which this pricing was effective within the requested time range.PricingInfo.BuildermergeFrom(PricingInfo other)PricingInfo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PricingInfo.BuildermergeFrom(com.google.protobuf.Message other)PricingInfo.BuildermergePricingExpression(PricingExpression value)Expresses the pricing formula.PricingInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PricingInfo.BuildersetAggregationInfo(AggregationInfo value)Aggregation Info.PricingInfo.BuildersetAggregationInfo(AggregationInfo.Builder builderForValue)Aggregation Info.PricingInfo.BuildersetCurrencyConversionRate(double value)Conversion rate used for currency conversion, from USD to the currency specified in the request.PricingInfo.BuildersetEffectiveTime(com.google.protobuf.Timestamp value)The timestamp from which this pricing was effective within the requested time range.PricingInfo.BuildersetEffectiveTime(com.google.protobuf.Timestamp.Builder builderForValue)The timestamp from which this pricing was effective within the requested time range.PricingInfo.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PricingInfo.BuildersetPricingExpression(PricingExpression value)Expresses the pricing formula.PricingInfo.BuildersetPricingExpression(PricingExpression.Builder builderForValue)Expresses the pricing formula.PricingInfo.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)PricingInfo.BuildersetSummary(String value)An optional human readable summary of the pricing information, has a maximum length of 256 characters.PricingInfo.BuildersetSummaryBytes(com.google.protobuf.ByteString value)An optional human readable summary of the pricing information, has a maximum length of 256 characters.PricingInfo.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
-
clear
public PricingInfo.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<PricingInfo.Builder>
-
getDefaultInstanceForType
public PricingInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PricingInfo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PricingInfo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PricingInfo.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
-
setField
public PricingInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
-
clearField
public PricingInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
-
clearOneof
public PricingInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
-
setRepeatedField
public PricingInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
-
addRepeatedField
public PricingInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
-
mergeFrom
public PricingInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PricingInfo.Builder>
-
mergeFrom
public PricingInfo.Builder mergeFrom(PricingInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
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
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:
getEffectiveTimeOrBuilderin interfacePricingInfoOrBuilder
-
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:
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
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:
hasPricingExpressionin interfacePricingInfoOrBuilder- 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:
getPricingExpressionin interfacePricingInfoOrBuilder- 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:
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
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:
getAggregationInfoin interfacePricingInfoOrBuilder- 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:
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
-
mergeUnknownFields
public final PricingInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
-
-