0.2.0 (latest) 0.1.1 Reference documentation and code samples for the Google Cloud App Topology V1 Client class GraphPattern.

Recursive graph pattern matcher to select and constrain the returned
topology.

AppTopology API allows cycle in the graph traversal and will return unique
node and edge results in the response.
SLO is guaranteed for at most 5 hops in the graph traversal.

Generated from protobuf message `google.cloud.apptopology.v1.GraphPattern`

## Namespace

Google \\ Cloud \\ AppTopology \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ starting_node` | `https://docs.cloud.google.com/php/docs/reference/cloud-apptopology/latest/V1.NodePattern` Required. Pattern matcher to select the starting nodes in the graph. |
| `↳ neighbors` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-apptopology/latest/V1.ConnectedNodePattern>` Optional. Pattern matcher to match the connected subgraphs; all of these are ANDed. |

### getStartingNode

Required. Pattern matcher to select the starting nodes in the graph.

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

### hasStartingNode

### clearStartingNode

### setStartingNode

Required. Pattern matcher to select the starting nodes in the graph.

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

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

### getNeighbors

Optional. Pattern matcher to match the connected subgraphs; all of these
are ANDed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-apptopology/latest/V1.ConnectedNodePattern>` |   |

### setNeighbors

Optional. Pattern matcher to match the connected subgraphs; all of these
are ANDed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-apptopology/latest/V1.ConnectedNodePattern>` |

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