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.
1230 1231 1232 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 1230 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
1223 1224 1225 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 1223 def code_chunk @code_chunk end |
#text_chunk ⇒ Google::Apis::FirebasedataconnectV1::TextChunk
A chunk of conversational text.
Corresponds to the JSON property textChunk
1228 1229 1230 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 1228 def text_chunk @text_chunk end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1235 1236 1237 1238 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 1235 def update!(**args) @code_chunk = args[:code_chunk] if args.key?(:code_chunk) @text_chunk = args[:text_chunk] if args.key?(:text_chunk) end |