- 2.54.0 (latest)
- 2.53.0
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.5
- 2.2.1
- 2.1.12
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PricingInfo.BuilderImplements
PricingInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PricingInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
PricingInfo.Builder |
build()
public PricingInfo build()
Type | Description |
PricingInfo |
buildPartial()
public PricingInfo buildPartial()
Type | Description |
PricingInfo |
clear()
public PricingInfo.Builder clear()
Type | Description |
PricingInfo.Builder |
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;
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;
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;
Type | Description |
PricingInfo.Builder |
clearField(Descriptors.FieldDescriptor field)
public PricingInfo.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
PricingInfo.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public PricingInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
PricingInfo.Builder |
clearPricingExpression()
public PricingInfo.Builder clearPricingExpression()
Expresses the pricing formula. See PricingExpression
for an example.
.google.cloud.billing.v1.PricingExpression pricing_expression = 3;
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;
Type | Description |
PricingInfo.Builder | This builder for chaining. |
clone()
public PricingInfo.Builder clone()
Type | Description |
PricingInfo.Builder |
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;
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;
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;
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;
Type | Description |
double | The currencyConversionRate. |
getDefaultInstanceForType()
public PricingInfo getDefaultInstanceForType()
Type | Description |
PricingInfo |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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;
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;
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;
Type | Description |
TimestampOrBuilder |
getPricingExpression()
public PricingExpression getPricingExpression()
Expresses the pricing formula. See PricingExpression
for an example.
.google.cloud.billing.v1.PricingExpression pricing_expression = 3;
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;
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;
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;
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;
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;
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;
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;
Type | Description |
boolean | Whether the pricingExpression field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
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;
Name | Description |
value | AggregationInfo |
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;
Name | Description |
value | Timestamp |
Type | Description |
PricingInfo.Builder |
mergeFrom(PricingInfo other)
public PricingInfo.Builder mergeFrom(PricingInfo other)
Name | Description |
other | PricingInfo |
Type | Description |
PricingInfo.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PricingInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PricingInfo.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public PricingInfo.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
PricingInfo.Builder |
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;
Name | Description |
value | PricingExpression |
Type | Description |
PricingInfo.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PricingInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
PricingInfo.Builder |
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;
Name | Description |
value | AggregationInfo |
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;
Name | Description |
builderForValue | AggregationInfo.Builder |
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;
Name | Description |
value | double The currencyConversionRate to set. |
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;
Name | Description |
value | Timestamp |
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;
Name | Description |
builderForValue | Builder |
Type | Description |
PricingInfo.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public PricingInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
PricingInfo.Builder |
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;
Name | Description |
value | PricingExpression |
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;
Name | Description |
builderForValue | PricingExpression.Builder |
Type | Description |
PricingInfo.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PricingInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
PricingInfo.Builder |
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;
Name | Description |
value | String The summary to set. |
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;
Name | Description |
value | ByteString The bytes for summary to set. |
Type | Description |
PricingInfo.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final PricingInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
PricingInfo.Builder |