Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GroundedGenerationContentPart

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

Overview

Single part of content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1GroundedGenerationContentPart

Returns a new instance of GoogleCloudDiscoveryengineV1GroundedGenerationContentPart.



5821
5822
5823
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5821

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

Instance Attribute Details

#textString

Inline text. Corresponds to the JSON property text

Returns:

  • (String)


5819
5820
5821
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5819

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5826
5827
5828
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5826

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