Class: Google::Apis::FirebasedataconnectV1::TextChunk

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebasedataconnect_v1/classes.rb,
lib/google/apis/firebasedataconnect_v1/representations.rb,
lib/google/apis/firebasedataconnect_v1/representations.rb

Overview

A chunk of conversational text.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TextChunk

Returns a new instance of TextChunk.



1565
1566
1567
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 1565

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#textString

Required. The text content string. Corresponds to the JSON property text

Returns:

  • (String)


1563
1564
1565
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 1563

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1570
1571
1572
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 1570

def update!(**args)
  @text = args[:text] if args.key?(:text)
end