# Google Cloud Data Catalog Lineage V1 Client - Class SearchLinksRequest (1.4.0)

1.4.0 (latest) 1.3.0 1.2.3 1.1.1 1.0.3 0.5.5 0.4.0 0.3.1 0.2.1 0.1.3 Reference documentation and code samples for the Google Cloud Data Catalog Lineage V1 Client class SearchLinksRequest.

Request message for
[SearchLinks](https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.Client.LineageClient#_Google_Cloud_DataCatalog_Lineage_V1_Client_LineageClient__searchLinks__).

Generated from protobuf message `google.cloud.datacatalog.lineage.v1.SearchLinksRequest`

## Namespace

Google \\ Cloud \\ DataCatalog \\ Lineage \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The project and location you want search in. |
| `↳ source` | `https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.EntityReference` Optional. Send asset information in the **source** field to retrieve all links that lead from the specified asset to downstream assets. |
| `↳ target` | `https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.EntityReference` Optional. Send asset information in the **target** field to retrieve all links that lead from upstream assets to the specified asset. |
| `↳ sources` | `https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.MultipleEntityReference` Optional. Send a list of asset information in the **sources** field to retrieve all links that lead from the specified assets to downstream assets. This field is similar to the `source` [source](https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.SearchLinksRequest#_Google_Cloud_DataCatalog_Lineage_V1_SearchLinksRequest__getSource__) field but allows providing multiple entities. All entities within the `MultipleEntityReference` must have the same `fully_qualified_name`. |
| `↳ targets` | `https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.MultipleEntityReference` Optional. Send a list of asset information in the **targets** field to retrieve all links that lead from upstream assets to the specified assets. This field is similar to the `target` [target](https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.SearchLinksRequest#_Google_Cloud_DataCatalog_Lineage_V1_SearchLinksRequest__getTarget__) field but allows providing multiple entities. All entities within the `MultipleEntityReference` must have the same `fully_qualified_name`. |
| `↳ page_size` | `int` Optional. The maximum number of links to return in a single page of the response. A page may contain fewer links than this value. If unspecified, at most 10 links are returned. Maximum value is 100; values greater than 100 are reduced to 100. |
| `↳ page_token` | `string` Optional. The page token received from a previous `SearchLinksRequest` call. Use it to get the next page. When requesting subsequent pages of a response, remember that all parameters must match the values you provided in the original request. |

### getParent

Required. The project and location you want search in.

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

### setParent

Required. The project and location you want search in.

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

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

### getSource

Optional. Send asset information in the **source** field to retrieve all
links that lead from the specified asset to downstream assets.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.EntityReference|null` |   |

### hasSource

### setSource

Optional. Send asset information in the **source** field to retrieve all
links that lead from the specified asset to downstream assets.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.EntityReference` |

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

### getTarget

Optional. Send asset information in the **target** field to retrieve all
links that lead from upstream assets to the specified asset.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.EntityReference|null` |   |

### hasTarget

### setTarget

Optional. Send asset information in the **target** field to retrieve all
links that lead from upstream assets to the specified asset.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.EntityReference` |

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

### getSources

Optional. Send a list of asset information in the **sources** field to
retrieve all links that lead from the specified assets to downstream
assets. This field is similar to the `source`
[source](https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.SearchLinksRequest#_Google_Cloud_DataCatalog_Lineage_V1_SearchLinksRequest__getSource__)
field but allows providing multiple entities.

All entities within the `MultipleEntityReference` must have the same
`fully_qualified_name`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.MultipleEntityReference|null` |   |

### hasSources

### setSources

Optional. Send a list of asset information in the **sources** field to
retrieve all links that lead from the specified assets to downstream
assets. This field is similar to the `source`
[source](https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.SearchLinksRequest#_Google_Cloud_DataCatalog_Lineage_V1_SearchLinksRequest__getSource__)
field but allows providing multiple entities.

All entities within the `MultipleEntityReference` must have the same
`fully_qualified_name`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.MultipleEntityReference` |

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

### getTargets

Optional. Send a list of asset information in the **targets** field to
retrieve all links that lead from upstream assets to the specified
assets. This field is similar to the `target`
[target](https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.SearchLinksRequest#_Google_Cloud_DataCatalog_Lineage_V1_SearchLinksRequest__getTarget__)
field but allows providing multiple entities.

All entities within the `MultipleEntityReference` must have the same
`fully_qualified_name`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.MultipleEntityReference|null` |   |

### hasTargets

### setTargets

Optional. Send a list of asset information in the **targets** field to
retrieve all links that lead from upstream assets to the specified
assets. This field is similar to the `target`
[target](https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.SearchLinksRequest#_Google_Cloud_DataCatalog_Lineage_V1_SearchLinksRequest__getTarget__)
field but allows providing multiple entities.

All entities within the `MultipleEntityReference` must have the same
`fully_qualified_name`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.MultipleEntityReference` |

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

### getPageSize

Optional. The maximum number of links to return in a single page of the
response. A page may contain fewer links than this value. If unspecified,
at most 10 links are returned.

Maximum value is 100; values greater than 100 are reduced to 100.

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

### setPageSize

Optional. The maximum number of links to return in a single page of the
response. A page may contain fewer links than this value. If unspecified,
at most 10 links are returned.

Maximum value is 100; values greater than 100 are reduced to 100.

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

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

### getPageToken

Optional. The page token received from a previous `SearchLinksRequest`
call. Use it to get the next page.

When requesting subsequent pages of a response, remember that
all parameters must match the values you provided
in the original request.

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

### setPageToken

Optional. The page token received from a previous `SearchLinksRequest`
call. Use it to get the next page.

When requesting subsequent pages of a response, remember that
all parameters must match the values you provided
in the original request.

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

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

### getCriteria

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