- 2.55.0 (latest)
- 2.54.0
- 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()
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 |
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 |
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 |
clearOneof(Descriptors.OneofDescriptor oneof)
public PricingInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
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;
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 |
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 |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
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;
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public PricingInfo.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
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;
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 |
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 |
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 |
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 |