class Google::Apis::LanguageV1beta1::TextSpan
Represents an output piece of text.
Attributes
begin_offset[RW]
The API calculates the beginning offset of the content in the original document according to the EncodingType specified in the API request. Corresponds to the JSON property `beginOffset` @return [Fixnum]
content[RW]
The content of the output text. Corresponds to the JSON property `content` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/language_v1beta1/classes.rb, line 665 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/language_v1beta1/classes.rb, line 670 def update!(**args) @begin_offset = args[:begin_offset] if args.key?(:begin_offset) @content = args[:content] if args.key?(:content) end