Class: Google::Apis::FirebasedataconnectV1::Part

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

Represents a chunk of content.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_chunkGoogle::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_chunkGoogle::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