Class PricingInfo.Builder (2.19.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PricingInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PricingInfo.Builder
Overrides

build()

public PricingInfo build()
Returns
TypeDescription
PricingInfo

buildPartial()

public PricingInfo buildPartial()
Returns
TypeDescription
PricingInfo

clear()

public PricingInfo.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
PricingInfo.Builder

clearField(Descriptors.FieldDescriptor field)

public PricingInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PricingInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PricingInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
PricingInfo.Builder

This builder for chaining.

clone()

public PricingInfo.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
double

The currencyConversionRate.

getDefaultInstanceForType()

public PricingInfo getDefaultInstanceForType()
Returns
TypeDescription
PricingInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getPricingExpression()

public PricingExpression getPricingExpression()

Expresses the pricing formula. See PricingExpression for an example.

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

Returns
TypeDescription
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
TypeDescription
PricingExpression.Builder

getPricingExpressionOrBuilder()

public PricingExpressionOrBuilder getPricingExpressionOrBuilder()

Expresses the pricing formula. See PricingExpression for an example.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the pricingExpression field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueAggregationInfo
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
PricingInfo.Builder

mergeFrom(PricingInfo other)

public PricingInfo.Builder mergeFrom(PricingInfo other)
Parameter
NameDescription
otherPricingInfo
Returns
TypeDescription
PricingInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PricingInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PricingInfo.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PricingInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuePricingExpression
Returns
TypeDescription
PricingInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PricingInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueAggregationInfo
Returns
TypeDescription
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
NameDescription
builderForValueAggregationInfo.Builder
Returns
TypeDescription
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
NameDescription
valuedouble

The currencyConversionRate to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
PricingInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PricingInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuePricingExpression
Returns
TypeDescription
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
NameDescription
builderForValuePricingExpression.Builder
Returns
TypeDescription
PricingInfo.Builder

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

public PricingInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The summary to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for summary to set.

Returns
TypeDescription
PricingInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PricingInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PricingInfo.Builder
Overrides