# Google Cloud Database Center V1beta Client - Class Product (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 Product.

Product specification for databasecenter resources.

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

## Namespace

Google \\ Cloud \\ DatabaseCenter \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` Optional. Type of specific database product. It could be CloudSQL, AlloyDB etc.. |
| `↳ engine` | `int` Optional. The specific engine that the underlying database is running. |
| `↳ version` | `string` Optional. Version of the underlying database engine. Example values: For MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" etc. |
| `↳ minor_version` | `string` Optional. Minor version of the underlying database engine. Example values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be "14.4", "15.5" etc. |

### getType

Optional. Type of specific database product. It could be CloudSQL, AlloyDB
etc..

Generated from protobuf field `.google.cloud.databasecenter.v1beta.ProductType type = 1 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setType

Optional. Type of specific database product. It could be CloudSQL, AlloyDB
etc..

Generated from protobuf field `.google.cloud.databasecenter.v1beta.ProductType type = 1 [(.google.api.field_behavior) = OPTIONAL];`

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

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

### getEngine

Optional. The specific engine that the underlying database is running.

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

### setEngine

Optional. The specific engine that the underlying database is running.

| **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` |   |

### getVersion

Optional. Version of the underlying database engine. Example values: For
MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15"
etc.

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

### setVersion

Optional. Version of the underlying database engine. Example values: For
MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15"
etc.

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

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

### getMinorVersion

Optional. Minor version of the underlying database engine. Example values:
For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be
"14.4", "15.5" etc.

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

### setMinorVersion

Optional. Minor version of the underlying database engine. Example values:
For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be
"14.4", "15.5" etc.

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

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