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

Represents a single node in the graph.

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

## 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 node. Refer to <https://apptopology.googleapis.com/v1/GetSchema> for a detailed list of node properties. |
| `↳ name` | `string` The global unique name of the node. For standard Google Cloud Platform resources, this MUST be the canonical Full Resource Name. Examples: - type: compute.googleapis.com/Instance name: "//compute.googleapis.com/projects/my-project-id/zones/us-central1-a/instances/my-vm-1" - type: container.googleapis.com/Cluster name: "//container.googleapis.com/projects/my-project-id/locations/us-central1/clusters/my-cluster" |
| `↳ labels` | `string[]` Labels attached to the node. 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 node type. |
| `↳ context` | `https://docs.cloud.google.com/php/docs/reference/cloud-apptopology/latest/V1.EntityContext` The context of the node. |

### getProperties

Properties associated with the node.

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

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

### hasProperties

### clearProperties

### setProperties

Properties associated with the node.

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

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

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

### getName

The global unique name of the node.

For standard Google Cloud Platform resources, this MUST be the canonical
Full Resource Name.
Examples:

- type: compute.googleapis.com/Instance name: "//compute.googleapis.com/projects/my-project-id/zones/us-central1-a/instances/my-vm-1"
- type: container.googleapis.com/Cluster name: "//container.googleapis.com/projects/my-project-id/locations/us-central1/clusters/my-cluster"

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

### setName

The global unique name of the node.

For standard Google Cloud Platform resources, this MUST be the canonical
Full Resource Name.
Examples:

- type: compute.googleapis.com/Instance name: "//compute.googleapis.com/projects/my-project-id/zones/us-central1-a/instances/my-vm-1"
- type: container.googleapis.com/Cluster name: "//container.googleapis.com/projects/my-project-id/locations/us-central1/clusters/my-cluster"

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

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

### getLabels

Labels attached to the node. 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
node type.

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

### setLabels

Labels attached to the node. 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
node type.

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

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

### getContext

The context of the node.

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

### hasContext

### clearContext

### setContext

The context of the node.

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

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