# Google Cloud Datalabeling V1beta1 Client - Class SequentialSegment (0.7.2)

0.7.2 (latest) 0.7.1 0.6.3 0.5.7 0.4.2 0.3.1 0.2.0 0.1.14

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Datalabeling V1beta1 Client class SequentialSegment.

Start and end position in a sequence (e.g. text segment).

Generated from protobuf message `google.cloud.datalabeling.v1beta1.SequentialSegment`

## Namespace

Google \\ Cloud \\ DataLabeling \\ V1beta1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ start` | `int` Start position (inclusive). |
| `↳ end` | `int` End position (exclusive). |

### getStart

Start position (inclusive).

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

### setStart

Start position (inclusive).

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

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

### getEnd

End position (exclusive).

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

### setEnd

End position (exclusive).

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

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