Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseOneBoxResult
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseOneBoxResult
- 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
OneBoxResult is a holder for all results of specific type that we want to display in UI differently.
Instance Attribute Summary collapse
-
#one_box_type ⇒ String
The type of One Box result.
-
#search_results ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult>
The search results for this One Box.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchResponseOneBoxResult
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaSearchResponseOneBoxResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchResponseOneBoxResult
Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchResponseOneBoxResult.
16386 16387 16388 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 16386 def initialize(**args) update!(**args) end |
Instance Attribute Details
#one_box_type ⇒ String
The type of One Box result.
Corresponds to the JSON property oneBoxType
16379 16380 16381 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 16379 def one_box_type @one_box_type end |
#search_results ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult>
The search results for this One Box.
Corresponds to the JSON property searchResults
16384 16385 16386 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 16384 def search_results @search_results end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16391 16392 16393 16394 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 16391 def update!(**args) @one_box_type = args[:one_box_type] if args.key?(:one_box_type) @search_results = args[:search_results] if args.key?(:search_results) end |