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

Represents the category hierarchy of a SKU.

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

## Namespace

Google \\ Cloud \\ Billing \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ service_display_name` | `string` The display name of the service this SKU belongs to. |
| `↳ resource_family` | `string` The type of product the SKU refers to. Example: "Compute", "Storage", "Network", "ApplicationServices" etc. |
| `↳ resource_group` | `string` A group classification for related SKUs. Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc. |
| `↳ usage_type` | `string` Represents how the SKU is consumed. Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc. |

### getServiceDisplayName

The display name of the service this SKU belongs to.

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

### setServiceDisplayName

The display name of the service this SKU belongs to.

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

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

### getResourceFamily

The type of product the SKU refers to.

Example: "Compute", "Storage", "Network", "ApplicationServices" etc.

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

### setResourceFamily

The type of product the SKU refers to.

Example: "Compute", "Storage", "Network", "ApplicationServices" etc.

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

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

### getResourceGroup

A group classification for related SKUs.

Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.

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

### setResourceGroup

A group classification for related SKUs.

Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.

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

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

### getUsageType

Represents how the SKU is consumed.

Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.

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

### setUsageType

Represents how the SKU is consumed.

Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.

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

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