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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PricingInfo
build()
PricingInfo
buildPartial()
PricingInfo.Builder
clear()
PricingInfo.Builder
clearAggregationInfo()
Aggregation Info.PricingInfo.Builder
clearCurrencyConversionRate()
Conversion rate used for currency conversion, from USD to the currency specified in the request.PricingInfo.Builder
clearEffectiveTime()
The timestamp from which this pricing was effective within the requested time range.PricingInfo.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
PricingInfo.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
PricingInfo.Builder
clearPricingExpression()
Expresses the pricing formula.PricingInfo.Builder
clearSummary()
An optional human readable summary of the pricing information, has a maximum length of 256 characters.PricingInfo.Builder
clone()
AggregationInfo
getAggregationInfo()
Aggregation Info.AggregationInfo.Builder
getAggregationInfoBuilder()
Aggregation Info.AggregationInfoOrBuilder
getAggregationInfoOrBuilder()
Aggregation Info.double
getCurrencyConversionRate()
Conversion rate used for currency conversion, from USD to the currency specified in the request.PricingInfo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.Timestamp
getEffectiveTime()
The timestamp from which this pricing was effective within the requested time range.com.google.protobuf.Timestamp.Builder
getEffectiveTimeBuilder()
The timestamp from which this pricing was effective within the requested time range.com.google.protobuf.TimestampOrBuilder
getEffectiveTimeOrBuilder()
The timestamp from which this pricing was effective within the requested time range.PricingExpression
getPricingExpression()
Expresses the pricing formula.PricingExpression.Builder
getPricingExpressionBuilder()
Expresses the pricing formula.PricingExpressionOrBuilder
getPricingExpressionOrBuilder()
Expresses the pricing formula.String
getSummary()
An optional human readable summary of the pricing information, has a maximum length of 256 characters.com.google.protobuf.ByteString
getSummaryBytes()
An optional human readable summary of the pricing information, has a maximum length of 256 characters.boolean
hasAggregationInfo()
Aggregation Info.boolean
hasEffectiveTime()
The timestamp from which this pricing was effective within the requested time range.boolean
hasPricingExpression()
Expresses the pricing formula.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
PricingInfo.Builder
mergeAggregationInfo(AggregationInfo value)
Aggregation Info.PricingInfo.Builder
mergeEffectiveTime(com.google.protobuf.Timestamp value)
The timestamp from which this pricing was effective within the requested time range.PricingInfo.Builder
mergeFrom(PricingInfo other)
PricingInfo.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
PricingInfo.Builder
mergeFrom(com.google.protobuf.Message other)
PricingInfo.Builder
mergePricingExpression(PricingExpression value)
Expresses the pricing formula.PricingInfo.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
PricingInfo.Builder
setAggregationInfo(AggregationInfo value)
Aggregation Info.PricingInfo.Builder
setAggregationInfo(AggregationInfo.Builder builderForValue)
Aggregation Info.PricingInfo.Builder
setCurrencyConversionRate(double value)
Conversion rate used for currency conversion, from USD to the currency specified in the request.PricingInfo.Builder
setEffectiveTime(com.google.protobuf.Timestamp value)
The timestamp from which this pricing was effective within the requested time range.PricingInfo.Builder
setEffectiveTime(com.google.protobuf.Timestamp.Builder builderForValue)
The timestamp from which this pricing was effective within the requested time range.PricingInfo.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PricingInfo.Builder
setPricingExpression(PricingExpression value)
Expresses the pricing formula.PricingInfo.Builder
setPricingExpression(PricingExpression.Builder builderForValue)
Expresses the pricing formula.PricingInfo.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
PricingInfo.Builder
setSummary(String value)
An optional human readable summary of the pricing information, has a maximum length of 256 characters.PricingInfo.Builder
setSummaryBytes(com.google.protobuf.ByteString value)
An optional human readable summary of the pricing information, has a maximum length of 256 characters.PricingInfo.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
-
clear
public PricingInfo.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
-
getDefaultInstanceForType
public PricingInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public PricingInfo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PricingInfo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PricingInfo.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
-
setField
public PricingInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
-
clearField
public PricingInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
-
clearOneof
public PricingInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
-
addRepeatedField
public PricingInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
-
mergeFrom
public PricingInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PricingInfo.Builder>
-
mergeFrom
public PricingInfo.Builder mergeFrom(PricingInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasEffectiveTime
in 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:
getEffectiveTime
in 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:
getEffectiveTimeOrBuilder
in 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:
getSummary
in 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:
getSummaryBytes
in 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:
hasPricingExpression
in 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:
getPricingExpression
in 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:
getPricingExpressionOrBuilder
in 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:
hasAggregationInfo
in 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:
getAggregationInfo
in 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:
getAggregationInfoOrBuilder
in 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:
getCurrencyConversionRate
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
-
mergeUnknownFields
public final PricingInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricingInfo.Builder>
-
-