Class: Google::Cloud::Language::V2::TextSpan

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/language/v2/language_service.rb

Overview

Represents a text span in the input document.

Instance Attribute Summary collapse

Instance Attribute Details

#begin_offset::Integer

Returns The API calculates the beginning offset of the content in the original document according to the EncodingType specified in the API request.

Returns:

  • (::Integer)

    The API calculates the beginning offset of the content in the original document according to the EncodingType specified in the API request.



260
261
262
263
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 260

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

#content::String

Returns The content of the text span, which is a substring of the document.

Returns:

  • (::String)

    The content of the text span, which is a substring of the document.



260
261
262
263
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 260

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