# Google Cloud Billing V1 Client - Class PricingInfo (2.2.2)

2.2.2 (latest) 2.2.1 2.1.3 2.0.1 1.9.8 1.8.0 1.7.5 1.6.0 1.5.6 Reference documentation and code samples for the Google Cloud Billing V1 Client class PricingInfo.

Represents the pricing information for a SKU at a single point of time.

Generated from protobuf message `google.cloud.billing.v1.PricingInfo`

## Namespace

Google \\ Cloud \\ Billing \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ effective_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` 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. |
| `↳ summary` | `string` An optional human readable summary of the pricing information, has a maximum length of 256 characters. |
| `↳ pricing_expression` | `https://docs.cloud.google.com/php/docs/reference/cloud-billing/latest/V1.PricingExpression` Expresses the pricing formula. See `PricingExpression` for an example. |
| `↳ aggregation_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-billing/latest/V1.AggregationInfo` Aggregation Info. This can be left unspecified if the pricing expression doesn't require aggregation. |
| `↳ currency_conversion_rate` | `float` 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 |

### 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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasEffectiveTime

### clearEffectiveTime

### setEffectiveTime

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSummary

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setSummary

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPricingExpression

Expresses the pricing formula. See `PricingExpression` for an example.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-billing/latest/V1.PricingExpression|null` |   |

### hasPricingExpression

### clearPricingExpression

### setPricingExpression

Expresses the pricing formula. See `PricingExpression` for an example.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-billing/latest/V1.PricingExpression` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAggregationInfo

Aggregation Info. This can be left unspecified if the pricing expression
doesn't require aggregation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-billing/latest/V1.AggregationInfo|null` |   |

### hasAggregationInfo

### clearAggregationInfo

### setAggregationInfo

Aggregation Info. This can be left unspecified if the pricing expression
doesn't require aggregation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-billing/latest/V1.AggregationInfo` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### 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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setCurrencyConversionRate

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |