Class: Google::Cloud::Language::V1::TextSpan

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/language/v1/doc/google/cloud/language/v1/language_service.rb

Overview

Represents an output piece of text.

Instance Attribute Summary collapse

Instance Attribute Details

#begin_offsetInteger

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.



794
# File 'lib/google/cloud/language/v1/doc/google/cloud/language/v1/language_service.rb', line 794

class TextSpan; end

#contentString

Returns The content of the output text.

Returns:

  • (String)

    The content of the output text.



794
# File 'lib/google/cloud/language/v1/doc/google/cloud/language/v1/language_service.rb', line 794

class TextSpan; end