Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGroundedGenerationContentPart

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

Overview

Single part of content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaGroundedGenerationContentPart

Returns a new instance of GoogleCloudDiscoveryengineV1betaGroundedGenerationContentPart.



16436
16437
16438
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16436

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

Instance Attribute Details

#textString

Inline text. Corresponds to the JSON property text

Returns:

  • (String)


16434
16435
16436
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16434

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16441
16442
16443
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16441

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