Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSource

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

Grounding source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSource

Returns a new instance of GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSource.



10532
10533
10534
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10532

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

Instance Attribute Details

#google_search_sourceGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceGoogleSearchSource

Google Search config parameters. Corresponds to the JSON property googleSearchSource



10520
10521
10522
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10520

def google_search_source
  @google_search_source
end

#inline_sourceGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceInlineSource

Message to be used for grounding based on inline content. Corresponds to the JSON property inlineSource



10525
10526
10527
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10525

def inline_source
  @inline_source
end

#search_sourceGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceSearchSource

Message to be used for grounding with Vertex AI Search. Corresponds to the JSON property searchSource



10530
10531
10532
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10530

def search_source
  @search_source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10537
10538
10539
10540
10541
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10537

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