# Google Cloud Asset V1 Client - Class RelatedResource (2.3.3)

2.3.3 (latest) 2.3.2 2.2.3 2.1.3 2.0.1 1.16.4 1.14.1 1.13.2 1.12.2 1.11.3 1.10.2 1.9.2 Reference documentation and code samples for the Google Cloud Asset V1 Client class RelatedResource.

The detailed related resource.

Generated from protobuf message `google.cloud.asset.v1.RelatedResource`

## Namespace

Google \\ Cloud \\ Asset \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ asset_type` | `string` The type of the asset. Example: `compute.googleapis.com/Instance` |
| `↳ full_resource_name` | `string` The full resource name of the related resource. Example: `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123` |

### getAssetType

The type of the asset. Example: `compute.googleapis.com/Instance`

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

### setAssetType

The type of the asset. Example: `compute.googleapis.com/Instance`

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

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

### getFullResourceName

The full resource name of the related resource. Example:
`//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`

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

### setFullResourceName

The full resource name of the related resource. Example:
`//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`

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

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