# Google Cloud Database Center V1beta Client - Class Dimension (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.1 0.3.1 0.2.0 0.1.0

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Database Center V1beta Client class Dimension.

Dimension used to aggregate the fleet.

Generated from protobuf message `google.cloud.databasecenter.v1beta.Dimension`

## Namespace

Google \\ Cloud \\ DatabaseCenter \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ container` | `string` Specifies where the resource is created. For Google Cloud resources, it is the full name of the project. |
| `↳ product_type` | `int` Type to identify a product |
| `↳ product_engine` | `int` Engine refers to underlying database binary running in an instance. |
| `↳ product_version` | `string` Version of the underlying database engine |
| `↳ location` | `string` The location of the resources. It supports returning only regional locations in Google Cloud. |
| `↳ resource_type` | `string` The type of resource defined according to the pattern: {Service Name}/{Type}. Ex: sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb.googleapis.com/Instance spanner.googleapis.com/Instance |
| `↳ sub_resource_type` | `int` Subtype of the resource specified at creation time. |
| `↳ resource_category` | `int` The category of the resource. |
| `↳ management_type` | `int` The management type of the resource. |
| `↳ edition` | `int` The edition of the resource. |
| `↳ tag_key` | `string` Tag key of the resource. |
| `↳ tag_value` | `string` Tag value of the resource. |
| `↳ tag_source` | `string` Tag source of the resource. |
| `↳ tag_inherited` | `bool` Tag inheritance value of the resource. |
| `↳ label_key` | `string` Label key of the resource. |
| `↳ label_value` | `string` Label value of the resource. |
| `↳ label_source` | `string` Label source of the resource. |
| `↳ has_maintenance_schedule` | `bool` Whether the resource has a maintenance schedule. |
| `↳ has_deny_maintenance_schedules` | `bool` Whether the resource has deny maintenance schedules. |

### getContainer

Specifies where the resource is created. For Google Cloud resources, it
is the full name of the project.

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

### hasContainer

### setContainer

Specifies where the resource is created. For Google Cloud resources, it
is the full name of the project.

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

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

### getProductType

Type to identify a product

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

### hasProductType

### setProductType

Type to identify a product

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ProductType](https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.ProductType). |

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

### getProductEngine

Engine refers to underlying database binary running in an instance.

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

### hasProductEngine

### setProductEngine

Engine refers to underlying database binary running in an instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Engine](https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.Engine). |

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

### getProductVersion

Version of the underlying database engine

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

### hasProductVersion

### setProductVersion

Version of the underlying database engine

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

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

### getLocation

The location of the resources. It supports returning only regional
locations in Google Cloud.

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

### hasLocation

### setLocation

The location of the resources. It supports returning only regional
locations in Google Cloud.

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

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

### getResourceType

The type of resource defined according to the pattern:
{Service Name}/{Type}. Ex:
sqladmin.googleapis.com/Instance
alloydb.googleapis.com/Cluster
alloydb.googleapis.com/Instance
spanner.googleapis.com/Instance

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

### hasResourceType

### setResourceType

The type of resource defined according to the pattern:
{Service Name}/{Type}. Ex:
sqladmin.googleapis.com/Instance
alloydb.googleapis.com/Cluster
alloydb.googleapis.com/Instance
spanner.googleapis.com/Instance

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

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

### getSubResourceType

Subtype of the resource specified at creation time.

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

### hasSubResourceType

### setSubResourceType

Subtype of the resource specified at creation time.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [SubResourceType](https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.SubResourceType). |

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

### getResourceCategory

The category of the resource.

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

### hasResourceCategory

### setResourceCategory

The category of the resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ResourceCategory](https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.ResourceCategory). |

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

### getManagementType

The management type of the resource.

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

### hasManagementType

### setManagementType

The management type of the resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ManagementType](https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.ManagementType). |

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

### getEdition

The edition of the resource.

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

### hasEdition

### setEdition

The edition of the resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Edition](https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.Edition). |

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

### getTagKey

Tag key of the resource.

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

### hasTagKey

### setTagKey

Tag key of the resource.

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

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

### getTagValue

Tag value of the resource.

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

### hasTagValue

### setTagValue

Tag value of the resource.

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

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

### getTagSource

Tag source of the resource.

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

### hasTagSource

### setTagSource

Tag source of the resource.

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

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

### getTagInherited

Tag inheritance value of the resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasTagInherited

### setTagInherited

Tag inheritance value of the resource.

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

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

### getLabelKey

Label key of the resource.

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

### hasLabelKey

### setLabelKey

Label key of the resource.

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

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

### getLabelValue

Label value of the resource.

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

### hasLabelValue

### setLabelValue

Label value of the resource.

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

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

### getLabelSource

Label source of the resource.

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

### hasLabelSource

### setLabelSource

Label source of the resource.

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

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

### getHasMaintenanceSchedule

Whether the resource has a maintenance schedule.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasHasMaintenanceSchedule

### setHasMaintenanceSchedule

Whether the resource has a maintenance schedule.

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

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

### getHasDenyMaintenanceSchedules

Whether the resource has deny maintenance schedules.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasHasDenyMaintenanceSchedules

### setHasDenyMaintenanceSchedules

Whether the resource has deny maintenance schedules.

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

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

### getDimension

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