Class: Google::Cloud::AutoML::V1::TextSegment

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/automl/v1/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

#content::String

Returns Output only. The content of the TextSegment.

Returns:

  • (::String)

    Output only. The content of the TextSegment.



37
38
39
40
# File 'proto_docs/google/cloud/automl/v1/text_segment.rb', line 37

class TextSegment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#end_offset::Integer

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.



37
38
39
40
# File 'proto_docs/google/cloud/automl/v1/text_segment.rb', line 37

class TextSegment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#start_offset::Integer

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



37
38
39
40
# File 'proto_docs/google/cloud/automl/v1/text_segment.rb', line 37

class TextSegment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end