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

EdgeType defines the schema of an edge type in the graph.

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

## Namespace

Google \\ Cloud \\ AppTopology \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `string` REQUIRED Name of the edge type. This name is used to access the edge type while defining the schema. |
| `↳ 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. |
| `↳ description` | `string` A human-readable description of the `EdgeType`. |
| `↳ optional_labels` | `string[]` An edge of this edge type can have 0 or more of these labels. These edge objects of this edge type will have these labels alongside the required labels. |

### getType

REQUIRED
Name of the edge type.

This name is used to access the edge type while defining the schema.

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

### setType

REQUIRED
Name of the edge type.

This name is used to access the edge type while defining the schema.

| **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` |   |

### getDescription

A human-readable description of the `EdgeType`.

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

### setDescription

A human-readable description of the `EdgeType`.

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

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

### getOptionalLabels

An edge of this edge type can have 0 or more of these labels. These edge
objects of this edge type will have these labels alongside the
required labels.

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

### setOptionalLabels

An edge of this edge type can have 0 or more of these labels. These edge
objects of this edge type will have these labels alongside the
required labels.

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

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