# Google Cloud Tpu V2 Client - Class MultisliceParams (2.3.0)

2.3.0 (latest) 2.2.2 2.1.2 2.0.0 1.4.7 1.3.2 1.2.0 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Tpu V2 Client class MultisliceParams.

Parameters to specify for multislice QueuedResource requests. This
message must be populated in case of multislice requests instead of
node_id.

Generated from protobuf message `google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams`

## Namespace

Google \\ Cloud \\ Tpu \\ V2 \\ QueuedResource \\ Tpu \\ NodeSpec

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ node_count` | `int` Required. Number of nodes with this spec. The system will attempt to provision "node_count" nodes as part of the request. This needs to be \> 1. |
| `↳ node_id_prefix` | `string` Optional. Prefix of node_ids in case of multislice request. Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format. If node_count = 3 and node_id_prefix = "np", node ids of nodes created will be "np-0", "np-1", "np-2". If this field is not provided we use queued_resource_id as the node_id_prefix. |

### getNodeCount

Required. Number of nodes with this spec. The system will attempt
to provision "node_count" nodes as part of the request.

This needs to be \> 1.

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

### setNodeCount

Required. Number of nodes with this spec. The system will attempt
to provision "node_count" nodes as part of the request.

This needs to be \> 1.

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

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

### getNodeIdPrefix

Optional. Prefix of node_ids in case of multislice request.

Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format.
If node_count = 3 and node_id_prefix = "np", node ids of nodes
created will be "np-0", "np-1", "np-2". If this field is not
provided we use queued_resource_id as the node_id_prefix.

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

### setNodeIdPrefix

Optional. Prefix of node_ids in case of multislice request.

Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format.
If node_count = 3 and node_id_prefix = "np", node ids of nodes
created will be "np-0", "np-1", "np-2". If this field is not
provided we use queued_resource_id as the node_id_prefix.

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

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