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

Represents a single edge connecting two nodes in the graph.

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

## Namespace

Google \\ Cloud \\ AppTopology \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ properties` | `Google\Protobuf\Struct` Properties associated with the edge. Refer to <https://apptopology.googleapis.com/v1/GetSchema> for a detailed list of edge properties. |
| `↳ source_node_name` | `string` The name of the source node for this edge. This is the `name` field in the Node. |
| `↳ destination_node_name` | `string` The name of the destination node for this edge. This is the `name` field in the Node. |
| `↳ labels` | `string[]` Labels attached to the edge. Composable, namespaced building blocks that define core attributes through associated properties. Multiple labels aggregate to fully specify the functional traits and property schema of the edge type. |
| `↳ context` | `https://docs.cloud.google.com/php/docs/reference/cloud-apptopology/latest/V1.EntityContext` The context of the edge. |

### getProperties

Properties associated with the edge.

Refer to <https://apptopology.googleapis.com/v1/GetSchema> for a detailed
list of edge properties.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Struct|null` |   |

### hasProperties

### clearProperties

### setProperties

Properties associated with the edge.

Refer to <https://apptopology.googleapis.com/v1/GetSchema> for a detailed
list of edge properties.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Struct` |

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

### getSourceNodeName

The name of the source node for this edge. This is the `name` field in the
Node.

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

### setSourceNodeName

The name of the source node for this edge. This is the `name` field in the
Node.

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

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

### getDestinationNodeName

The name of the destination node for this edge. This is the `name` field in
the Node.

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

### setDestinationNodeName

The name of the destination node for this edge. This is the `name` field in
the Node.

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

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

### getLabels

Labels attached to the edge. Composable, namespaced building blocks that
define core attributes through associated properties. Multiple labels
aggregate to fully specify the functional traits and property schema of the
edge type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setLabels

Labels attached to the edge. Composable, namespaced building blocks that
define core attributes through associated properties. Multiple labels
aggregate to fully specify the functional traits and property schema of the
edge type.

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

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

### getContext

The context of the edge.

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

### hasContext

### clearContext

### setContext

The context of the edge.

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

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