Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSampleQueryQueryEntry
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSampleQueryQueryEntry
- 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
Query Entry captures metadata to be used for search evaluation.
Instance Attribute Summary collapse
-
#query ⇒ String
Required.
-
#targets ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSampleQueryQueryEntryTarget>
List of targets for the query.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSampleQueryQueryEntry
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaSampleQueryQueryEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSampleQueryQueryEntry
Returns a new instance of GoogleCloudDiscoveryengineV1alphaSampleQueryQueryEntry.
10386 10387 10388 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10386 def initialize(**args) update!(**args) end |
Instance Attribute Details
#query ⇒ String
Required. The query.
Corresponds to the JSON property query
10379 10380 10381 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10379 def query @query end |
#targets ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSampleQueryQueryEntryTarget>
List of targets for the query.
Corresponds to the JSON property targets
10384 10385 10386 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10384 def targets @targets end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10391 10392 10393 10394 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10391 def update!(**args) @query = args[:query] if args.key?(:query) @targets = args[:targets] if args.key?(:targets) end |