Class: Google::Cloud::AutoML::V1beta1::TextSegment
- Inherits:
-
Object
- Object
- Google::Cloud::AutoML::V1beta1::TextSegment
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/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
-
#content ⇒ ::String
Output only.
-
#end_offset ⇒ ::Integer
Required.
-
#start_offset ⇒ ::Integer
Required.
Instance Attribute Details
#content ⇒ ::String
Returns Output only. The content of the TextSegment.
37 38 39 40 |
# File 'proto_docs/google/cloud/automl/v1beta1/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.
37 38 39 40 |
# File 'proto_docs/google/cloud/automl/v1beta1/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).
37 38 39 40 |
# File 'proto_docs/google/cloud/automl/v1beta1/text_segment.rb', line 37 class TextSegment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |