# Cloud AutoML V1 API - Class Google::Cloud::AutoML::V1::TextSegment (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.0 1.5.1 1.4.0 1.3.1 1.2.1 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.0 0.5.1 0.4.8 Reference documentation and code samples for the Cloud AutoML V1 API class Google::Cloud::AutoML::V1::TextSegment.

A contiguous part of a text (string), assuming it has an UTF-8 NFC encoding.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #content

    def content() -> ::String

**Returns**

- (::String) --- Output only. The content of the TextSegment.

### #content=

    def content=(value) -> ::String

**Parameter**

- **value** (::String) --- Output only. The content of the TextSegment.
**Returns**

- (::String) --- Output only. The content of the TextSegment.

### #end_offset

    def end_offset() -> ::Integer

**Returns**

- (::Integer) --- Required. Zero-based character index of the first character past the end of the text segment (counting character from the beginning of the text). The character at the end_offset is NOT included in the text segment.

### #end_offset=

    def end_offset=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Required. Zero-based character index of the first character past the end of the text segment (counting character from the beginning of the text). The character at the end_offset is NOT included in the text segment.
**Returns**

- (::Integer) --- Required. Zero-based character index of the first character past the end of the text segment (counting character from the beginning of the text). The character at the end_offset is NOT included in the text segment.

### #start_offset

    def start_offset() -> ::Integer

**Returns**

- (::Integer) --- Required. Zero-based character index of the first character of the text segment (counting characters from the beginning of the text).

### #start_offset=

    def start_offset=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Required. Zero-based character index of the first character of the text segment (counting characters from the beginning of the text).
**Returns**

- (::Integer) --- Required. Zero-based character index of the first character of the text segment (counting characters from the beginning of the text).