Class PricingInfo.Builder (2.49.0)

public static final class PricingInfo.Builder extends 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PricingInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PricingInfo.Builder
Overrides

build()

public PricingInfo build()
Returns
Type Description
PricingInfo

buildPartial()

public PricingInfo buildPartial()
Returns
Type Description
PricingInfo

clear()

public PricingInfo.Builder clear()
Returns
Type Description
PricingInfo.Builder
Overrides

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;

Returns
Type Description
PricingInfo.Builder

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
Type Description
PricingInfo.Builder

This builder for chaining.

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;

Returns
Type Description
PricingInfo.Builder

clearField(Descriptors.FieldDescriptor field)

public PricingInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PricingInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PricingInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PricingInfo.Builder
Overrides

clearPricingExpression()

public PricingInfo.Builder clearPricingExpression()

Expresses the pricing formula. See PricingExpression for an example.

.google.cloud.billing.v1.PricingExpression pricing_expression = 3;

Returns
Type Description
PricingInfo.Builder

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
Type Description
PricingInfo.Builder

This builder for chaining.

clone()

public PricingInfo.Builder clone()
Returns
Type Description
PricingInfo.Builder
Overrides

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;

Returns
Type Description
AggregationInfo

The aggregationInfo.

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;

Returns
Type Description
AggregationInfo.Builder

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;

Returns
Type Description
AggregationInfoOrBuilder

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;

Returns
Type Description
double

The currencyConversionRate.

getDefaultInstanceForType()

public PricingInfo getDefaultInstanceForType()
Returns
Type Description
PricingInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEffectiveTime()

public 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;

Returns
Type Description
Timestamp

The effectiveTime.

getEffectiveTimeBuilder()

public 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;

Returns
Type Description
Builder

getEffectiveTimeOrBuilder()

public 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;

Returns
Type Description
TimestampOrBuilder

getPricingExpression()

public PricingExpression getPricingExpression()

Expresses the pricing formula. See PricingExpression for an example.

.google.cloud.billing.v1.PricingExpression pricing_expression = 3;

Returns
Type Description
PricingExpression

The pricingExpression.

getPricingExpressionBuilder()

public PricingExpression.Builder getPricingExpressionBuilder()

Expresses the pricing formula. See PricingExpression for an example.

.google.cloud.billing.v1.PricingExpression pricing_expression = 3;

Returns
Type Description
PricingExpression.Builder

getPricingExpressionOrBuilder()

public PricingExpressionOrBuilder getPricingExpressionOrBuilder()

Expresses the pricing formula. See PricingExpression for an example.

.google.cloud.billing.v1.PricingExpression pricing_expression = 3;

Returns
Type Description
PricingExpressionOrBuilder

getSummary()

public String getSummary()

An optional human readable summary of the pricing information, has a maximum length of 256 characters.

string summary = 2;

Returns
Type Description
String

The summary.

getSummaryBytes()

public ByteString getSummaryBytes()

An optional human readable summary of the pricing information, has a maximum length of 256 characters.

string summary = 2;

Returns
Type Description
ByteString

The bytes for summary.

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;

Returns
Type Description
boolean

Whether the aggregationInfo field is set.

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;

Returns
Type Description
boolean

Whether the effectiveTime field is set.

hasPricingExpression()

public boolean hasPricingExpression()

Expresses the pricing formula. See PricingExpression for an example.

.google.cloud.billing.v1.PricingExpression pricing_expression = 3;

Returns
Type Description
boolean

Whether the pricingExpression field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAggregationInfo(AggregationInfo value)

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;

Parameter
Name Description
value AggregationInfo
Returns
Type Description
PricingInfo.Builder

mergeEffectiveTime(Timestamp value)

public PricingInfo.Builder mergeEffectiveTime(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;

Parameter
Name Description
value Timestamp
Returns
Type Description
PricingInfo.Builder

mergeFrom(PricingInfo other)

public PricingInfo.Builder mergeFrom(PricingInfo other)
Parameter
Name Description
other PricingInfo
Returns
Type Description
PricingInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PricingInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PricingInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PricingInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PricingInfo.Builder
Overrides

mergePricingExpression(PricingExpression value)

public PricingInfo.Builder mergePricingExpression(PricingExpression value)

Expresses the pricing formula. See PricingExpression for an example.

.google.cloud.billing.v1.PricingExpression pricing_expression = 3;

Parameter
Name Description
value PricingExpression
Returns
Type Description
PricingInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PricingInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PricingInfo.Builder
Overrides

setAggregationInfo(AggregationInfo value)

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;

Parameter
Name Description
value AggregationInfo
Returns
Type Description
PricingInfo.Builder

setAggregationInfo(AggregationInfo.Builder builderForValue)

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;

Parameter
Name Description
builderForValue AggregationInfo.Builder
Returns
Type Description
PricingInfo.Builder

setCurrencyConversionRate(double value)

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;

Parameter
Name Description
value double

The currencyConversionRate to set.

Returns
Type Description
PricingInfo.Builder

This builder for chaining.

setEffectiveTime(Timestamp value)

public PricingInfo.Builder setEffectiveTime(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;

Parameter
Name Description
value Timestamp
Returns
Type Description
PricingInfo.Builder

setEffectiveTime(Timestamp.Builder builderForValue)

public PricingInfo.Builder setEffectiveTime(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;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PricingInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PricingInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PricingInfo.Builder
Overrides

setPricingExpression(PricingExpression value)

public PricingInfo.Builder setPricingExpression(PricingExpression value)

Expresses the pricing formula. See PricingExpression for an example.

.google.cloud.billing.v1.PricingExpression pricing_expression = 3;

Parameter
Name Description
value PricingExpression
Returns
Type Description
PricingInfo.Builder

setPricingExpression(PricingExpression.Builder builderForValue)

public PricingInfo.Builder setPricingExpression(PricingExpression.Builder builderForValue)

Expresses the pricing formula. See PricingExpression for an example.

.google.cloud.billing.v1.PricingExpression pricing_expression = 3;

Parameter
Name Description
builderForValue PricingExpression.Builder
Returns
Type Description
PricingInfo.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PricingInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PricingInfo.Builder
Overrides

setSummary(String value)

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;

Parameter
Name Description
value String

The summary to set.

Returns
Type Description
PricingInfo.Builder

This builder for chaining.

setSummaryBytes(ByteString value)

public PricingInfo.Builder setSummaryBytes(ByteString value)

An optional human readable summary of the pricing information, has a maximum length of 256 characters.

string summary = 2;

Parameter
Name Description
value ByteString

The bytes for summary to set.

Returns
Type Description
PricingInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PricingInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PricingInfo.Builder
Overrides