Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceSearchSource
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceSearchSource
- 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
Message to be used for grounding with Vertex AI Search.
Instance Attribute Summary collapse
-
#filter ⇒ String
Filter expression to be applied to the search.
-
#max_result_count ⇒ Fixnum
Number of search results to return.
-
#safe_search ⇒ Boolean
(also: #safe_search?)
If set, safe search is enabled in Vertex AI Search requests.
-
#serving_config ⇒ String
The resource name of the Engine to use.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceSearchSource
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceSearchSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceSearchSource
Returns a new instance of GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceSearchSource.
10619 10620 10621 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10619 def initialize(**args) update!(**args) end |
Instance Attribute Details
#filter ⇒ String
Filter expression to be applied to the search. The syntax is the same as
SearchRequest.filter.
Corresponds to the JSON property filter
10598 10599 10600 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10598 def filter @filter end |
#max_result_count ⇒ Fixnum
Number of search results to return. The default value is 10. The maximumm
allowed value is 10.
Corresponds to the JSON property maxResultCount
10604 10605 10606 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10604 def max_result_count @max_result_count end |
#safe_search ⇒ Boolean Also known as: safe_search?
If set, safe search is enabled in Vertex AI Search requests.
Corresponds to the JSON property safeSearch
10609 10610 10611 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10609 def safe_search @safe_search end |
#serving_config ⇒ String
The resource name of the Engine to use. Format: projects/
project/locations/
location/collections/
collection_id/engines/
engine_id/servingConfigs/
serving_config_id`
Corresponds to the JSON property
servingConfig`
10617 10618 10619 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10617 def serving_config @serving_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10624 10625 10626 10627 10628 10629 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10624 def update!(**args) @filter = args[:filter] if args.key?(:filter) @max_result_count = args[:max_result_count] if args.key?(:max_result_count) @safe_search = args[:safe_search] if args.key?(:safe_search) @serving_config = args[:serving_config] if args.key?(:serving_config) end |