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

Affiliation information of a resource

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

## Namespace

Google \\ Cloud \\ DatabaseCenter \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ resource_id` | `string` Optional. resource id of affiliated resource |
| `↳ full_resource_name` | `string` Optional. Full resource name |
| `↳ lineages` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.Affiliation.Lineage>` Optional. Multiple lineages can be created from a resource. For example, a resource can be replicated to multiple target resources. In this case, there will be multiple lineages for the resource, one for each target resource. |

### getResourceId

Optional. resource id of affiliated resource

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

### setResourceId

Optional. resource id of affiliated resource

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

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

### getFullResourceName

Optional. Full resource name

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

### setFullResourceName

Optional. Full resource name

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

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

### getLineages

Optional. Multiple lineages can be created from a resource.

For example, a resource can be replicated to multiple target resources.
In this case, there will be multiple lineages for the resource, one for
each target resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.Affiliation.Lineage>` |   |

### setLineages

Optional. Multiple lineages can be created from a resource.

For example, a resource can be replicated to multiple target resources.
In this case, there will be multiple lineages for the resource, one for
each target resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.Affiliation.Lineage>` |

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