Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::OneBoxResult.
OneBoxResult is a holder for all results of specific type that we want to display in UI differently.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#one_box_type
def one_box_type() -> ::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::OneBoxResult::OneBoxType
Returns
- (::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::OneBoxResult::OneBoxType) — The type of One Box result.
#one_box_type=
def one_box_type=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::OneBoxResult::OneBoxType
Parameter
- value (::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::OneBoxResult::OneBoxType) — The type of One Box result.
Returns
- (::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::OneBoxResult::OneBoxType) — The type of One Box result.
#search_results
def search_results() -> ::Array<::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::SearchResult>
Returns
- (::Array<::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::SearchResult>) — The search results for this One Box.
#search_results=
def search_results=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::SearchResult>
Parameter
- value (::Array<::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::SearchResult>) — The search results for this One Box.
Returns
- (::Array<::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::SearchResult>) — The search results for this One Box.