Class: Google::Apis::FirebasedataconnectV1::Part
- Inherits:
-
Object
- Object
- Google::Apis::FirebasedataconnectV1::Part
- 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
Represents a chunk of content.
Instance Attribute Summary collapse
-
#code_chunk ⇒ Google::Apis::FirebasedataconnectV1::CodeChunk
A chunk of code.
-
#text_chunk ⇒ Google::Apis::FirebasedataconnectV1::TextChunk
A chunk of conversational text.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Part
constructor
A new instance of Part.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Part
Returns a new instance of Part.
1236 1237 1238 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 1236 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code_chunk ⇒ Google::Apis::FirebasedataconnectV1::CodeChunk
A chunk of code.
Corresponds to the JSON property codeChunk
1229 1230 1231 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 1229 def code_chunk @code_chunk end |
#text_chunk ⇒ Google::Apis::FirebasedataconnectV1::TextChunk
A chunk of conversational text.
Corresponds to the JSON property textChunk
1234 1235 1236 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 1234 def text_chunk @text_chunk end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1241 1242 1243 1244 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 1241 def update!(**args) @code_chunk = args[:code_chunk] if args.key?(:code_chunk) @text_chunk = args[:text_chunk] if args.key?(:text_chunk) end |