Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGroundedGenerationContentPart

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

Overview

Single part of content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaGroundedGenerationContentPart

Returns a new instance of GoogleCloudDiscoveryengineV1alphaGroundedGenerationContentPart.



10973
10974
10975
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10973

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

Instance Attribute Details

#textString

Inline text. Corresponds to the JSON property text

Returns:

  • (String)


10971
10972
10973
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10971

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10978
10979
10980
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10978

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