Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseOneBoxResult
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseOneBoxResult
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/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::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult>
The search results for this One Box.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchResponseOneBoxResult
constructor
A new instance of GoogleCloudDiscoveryengineV1betaSearchResponseOneBoxResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchResponseOneBoxResult
Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchResponseOneBoxResult.
19072 19073 19074 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 19072 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
19065 19066 19067 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 19065 def one_box_type @one_box_type end |
#search_results ⇒ Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult>
The search results for this One Box.
Corresponds to the JSON property searchResults
19070 19071 19072 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 19070 def search_results @search_results end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
19077 19078 19079 19080 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 19077 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 |