Class: Google::Cloud::AutoML::V1beta1::TextSegment

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/text_segment.rb

Overview

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

Instance Attribute Summary collapse

Instance Attribute Details

#contentString

Returns Output only. The content of the TextSegment.

Returns:

  • (String)

    Output only. The content of the TextSegment.



33
# File 'lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/text_segment.rb', line 33

class TextSegment; end

#end_offsetInteger

Returns 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.



33
# File 'lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/text_segment.rb', line 33

class TextSegment; end

#start_offsetInteger

Returns 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).



33
# File 'lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/text_segment.rb', line 33

class TextSegment; end