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

ResourceId contains the identifier for a database resource,
including the full resource name, resource type, and product.

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

## Namespace

Google \\ Cloud \\ DatabaseCenter \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ full_resource_name` | `string` The full resource name of the resource. |
| `↳ resource_type` | `string` The type of the resource. sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb.googleapis.com/Instance |
| `↳ product` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.Product` The product of the resource, including the type, engine, and version. |

### getFullResourceName

The full resource name of the resource.

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

### setFullResourceName

The full resource name of the resource.

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

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

### getResourceType

The type of the resource.

sqladmin.googleapis.com/Instance
alloydb.googleapis.com/Cluster
alloydb.googleapis.com/Instance

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

### setResourceType

The type of the resource.

sqladmin.googleapis.com/Instance
alloydb.googleapis.com/Cluster
alloydb.googleapis.com/Instance

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

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

### getProduct

The product of the resource, including the type, engine, and version.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.Product|null` |   |

### hasProduct

### clearProduct

### setProduct

The product of the resource, including the type, engine, and version.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.Product` |

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