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.



1236
1237
1238
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 1236

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

Instance Attribute Details

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