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

Sub resource details
For Spanner/Bigtable instance certain data protection settings are at
sub resource level like database/table.

This message is used to capture such sub resource details.

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

## Namespace

Google \\ Cloud \\ DatabaseCenter \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ resource_type` | `string` Optional. Resource type associated with the sub resource where backup settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner where backup retention is configured on database within an instance OPTIONAL |
| `↳ full_resource_name` | `string` Optional. Resource name associated with the sub resource where backup settings are configured. E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" for Spanner where backup retention is configured on database within an instance OPTIONAL |
| `↳ product` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.Product` Optional. Product information associated with the sub resource where backup retention settings are configured. e.g. `product: { type : PRODUCT_TYPE_SPANNER engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT }` for Spanner where backup is configured on database within an instance OPTIONAL |
| `↳ container` | `string` Specifies where the resource is created. For Google Cloud resources, it is the full name of the project. |

### getResourceType

Optional. Resource type associated with the sub resource where backup
settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner
where backup retention is configured on database within an instance
OPTIONAL

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

### setResourceType

Optional. Resource type associated with the sub resource where backup
settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner
where backup retention is configured on database within an instance
OPTIONAL

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

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

### getFullResourceName

Optional. Resource name associated with the sub resource where backup
settings are configured.

E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1"
for Spanner where backup retention is configured on database within
an instance
OPTIONAL

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

### setFullResourceName

Optional. Resource name associated with the sub resource where backup
settings are configured.

E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1"
for Spanner where backup retention is configured on database within
an instance
OPTIONAL

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

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

### getProduct

Optional. Product information associated with the sub resource where
backup retention settings are configured.

e.g.

    product: {
     type   : PRODUCT_TYPE_SPANNER
     engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT
    }

for Spanner where backup is configured on database within
an instance
OPTIONAL

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

### hasProduct

### clearProduct

### setProduct

Optional. Product information associated with the sub resource where
backup retention settings are configured.

e.g.

    product: {
     type   : PRODUCT_TYPE_SPANNER
     engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT
    }

for Spanner where backup is configured on database within
an instance
OPTIONAL

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

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

### getContainer

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

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

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