Class: Google::Apis::CommentanalyzerV1alpha1::TextEntry
- Inherits:
-
Object
- Object
- Google::Apis::CommentanalyzerV1alpha1::TextEntry
- Defined in:
- generated/google/apis/commentanalyzer_v1alpha1/classes.rb,
generated/google/apis/commentanalyzer_v1alpha1/representations.rb,
generated/google/apis/commentanalyzer_v1alpha1/representations.rb
Overview
Represents a body of text.
Instance Attribute Summary collapse
-
#text ⇒ String
UTF-8 encoded text.
-
#type ⇒ String
Type of the text field.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TextEntry
constructor
A new instance of TextEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ TextEntry
Returns a new instance of TextEntry.
468 469 470 |
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 468 def initialize(**args) update!(**args) end |
Instance Attribute Details
#text ⇒ String
UTF-8 encoded text.
Corresponds to the JSON property text
461 462 463 |
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 461 def text @text end |
#type ⇒ String
Type of the text field.
Corresponds to the JSON property type
466 467 468 |
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 466 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
473 474 475 476 |
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 473 def update!(**args) @text = args[:text] if args.key?(:text) @type = args[:type] if args.key?(:type) end |