# Stackdriver Trace V2 Client - Class Module (2.0.0)

2.0.0 (latest) 2.0.0-RC1 1.9.5 1.8.10 1.7.0 1.6.5 1.5.3 1.4.11 Reference documentation and code samples for the Stackdriver Trace V2 Client class Module.

Binary module.

Generated from protobuf message `google.devtools.cloudtrace.v2.Module`

## Namespace

Google \\ Cloud \\ Trace \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ module` | `https://docs.cloud.google.com/php/docs/reference/cloud-trace/latest/V2.TruncatableString` For example: main binary, kernel modules, and dynamic libraries such as libc.so, sharedlib.so (up to 256 bytes). |
| `↳ build_id` | `https://docs.cloud.google.com/php/docs/reference/cloud-trace/latest/V2.TruncatableString` A unique identifier for the module, usually a hash of its contents (up to 128 bytes). |

### getModule

For example: main binary, kernel modules, and dynamic libraries
such as libc.so, sharedlib.so (up to 256 bytes).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-trace/latest/V2.TruncatableString|null` |   |

### hasModule

### clearModule

### setModule

For example: main binary, kernel modules, and dynamic libraries
such as libc.so, sharedlib.so (up to 256 bytes).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-trace/latest/V2.TruncatableString` |

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

### getBuildId

A unique identifier for the module, usually a hash of its
contents (up to 128 bytes).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-trace/latest/V2.TruncatableString|null` |   |

### hasBuildId

### clearBuildId

### setBuildId

A unique identifier for the module, usually a hash of its
contents (up to 128 bytes).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-trace/latest/V2.TruncatableString` |

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