# Google Cloud Network Services V1 Client - Class Mesh (0.8.2)

0.8.2 (latest) 0.8.1 0.7.1 0.6.1 0.5.0 0.4.0 0.3.0 0.2.3 0.1.1 Reference documentation and code samples for the Google Cloud Network Services V1 Client class Mesh.

Mesh represents a logical configuration grouping for workload to workload
communication within a service mesh. Routes that point to mesh dictate how
requests are routed within this logical mesh boundary.

Generated from protobuf message `google.cloud.networkservices.v1.Mesh`

## Namespace

Google \\ Cloud \\ NetworkServices \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getName

Identifier. Name of the Mesh resource. It matches pattern
`projects/*/locations/global/meshes/<mesh_name>`.

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

### setName

Identifier. Name of the Mesh resource. It matches pattern
`projects/*/locations/global/meshes/<mesh_name>`.

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

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

### getSelfLink

Output only. Server-defined URL of this resource

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

### setSelfLink

Output only. Server-defined URL of this resource

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

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

### getCreateTime

Output only. The timestamp when the resource was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The timestamp when the resource was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. The timestamp when the resource was updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The timestamp when the resource was updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getLabels

Optional. Set of label tags associated with the Mesh resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

Optional. Set of label tags associated with the Mesh resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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

### getDescription

Optional. A free-text description of the resource. Max length 1024
characters.

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

### setDescription

Optional. A free-text description of the resource. Max length 1024
characters.

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

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

### getInterceptionPort

Optional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy
to listen on the specified port of localhost (127.0.0.1) address. The
SIDECAR proxy will expect all traffic to be redirected to this port
regardless of its actual ip:port destination. If unset, a port '15001' is
used as the interception port. This is applicable only for sidecar proxy
deployments.

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

### setInterceptionPort

Optional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy
to listen on the specified port of localhost (127.0.0.1) address. The
SIDECAR proxy will expect all traffic to be redirected to this port
regardless of its actual ip:port destination. If unset, a port '15001' is
used as the interception port. This is applicable only for sidecar proxy
deployments.

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

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

### getEnvoyHeaders

Optional. Determines if envoy will insert internal debug headers into
upstream requests. Other Envoy headers may still be injected. By default,
envoy will not insert any debug headers.

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

### hasEnvoyHeaders

### clearEnvoyHeaders

### setEnvoyHeaders

Optional. Determines if envoy will insert internal debug headers into
upstream requests. Other Envoy headers may still be injected. By default,
envoy will not insert any debug headers.

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

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