# Google Cloud Billing V1 Client - Class GeoTaxonomy (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 GeoTaxonomy.

Encapsulates the geographic taxonomy data for a sku.

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

## Namespace

Google \\ Cloud \\ Billing \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL. |
| `↳ regions` | `string[]` The list of regions associated with a sku. Empty for Global skus, which are associated with all Google Cloud regions. |

### getType

The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-billing/latest/V1.GeoTaxonomy.Type). |

### setType

The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-billing/latest/V1.GeoTaxonomy.Type). |

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

### getRegions

The list of regions associated with a sku. Empty for Global skus, which are
associated with all Google Cloud regions.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setRegions

The list of regions associated with a sku. Empty for Global skus, which are
associated with all Google Cloud regions.

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

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