class Google::Apis::CloudsearchV1::SearchResponse

The search API response.

Attributes

debug_info[RW]

Debugging information about the response. Corresponds to the JSON property `debugInfo` @return [Google::Apis::CloudsearchV1::ResponseDebugInfo]

error_info[RW]

Error information about the response. Corresponds to the JSON property `errorInfo` @return [Google::Apis::CloudsearchV1::ErrorInfo]

facet_results[RW]

Repeated facet results. Corresponds to the JSON property `facetResults` @return [Array<Google::Apis::CloudsearchV1::FacetResult>]

has_more_results[RW]

Whether there are more search results matching the query. Corresponds to the JSON property `hasMoreResults` @return [Boolean]

has_more_results?[RW]

Whether there are more search results matching the query. Corresponds to the JSON property `hasMoreResults` @return [Boolean]

query_interpretation[RW]

Query interpretation result for user query. Empty if query interpretation is disabled. Corresponds to the JSON property `queryInterpretation` @return [Google::Apis::CloudsearchV1::QueryInterpretation]

result_count_estimate[RW]

The estimated result count for this query. Corresponds to the JSON property `resultCountEstimate` @return [Fixnum]

result_count_exact[RW]

The exact result count for this query. Corresponds to the JSON property `resultCountExact` @return [Fixnum]

result_counts[RW]

Result count information Corresponds to the JSON property `resultCounts` @return [Google::Apis::CloudsearchV1::ResultCounts]

results[RW]

Results from a search query. Corresponds to the JSON property `results` @return [Array<Google::Apis::CloudsearchV1::SearchResult>]

spell_results[RW]

Suggested spelling for the query. Corresponds to the JSON property `spellResults` @return [Array<Google::Apis::CloudsearchV1::SpellResult>]

structured_results[RW]

Structured results for the user query. These results are not counted against the page_size. Corresponds to the JSON property `structuredResults` @return [Array<Google::Apis::CloudsearchV1::StructuredResult>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudsearch_v1/classes.rb, line 4300
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudsearch_v1/classes.rb, line 4305
def update!(**args)
  @debug_info = args[:debug_info] if args.key?(:debug_info)
  @error_info = args[:error_info] if args.key?(:error_info)
  @facet_results = args[:facet_results] if args.key?(:facet_results)
  @has_more_results = args[:has_more_results] if args.key?(:has_more_results)
  @query_interpretation = args[:query_interpretation] if args.key?(:query_interpretation)
  @result_count_estimate = args[:result_count_estimate] if args.key?(:result_count_estimate)
  @result_count_exact = args[:result_count_exact] if args.key?(:result_count_exact)
  @result_counts = args[:result_counts] if args.key?(:result_counts)
  @results = args[:results] if args.key?(:results)
  @spell_results = args[:spell_results] if args.key?(:spell_results)
  @structured_results = args[:structured_results] if args.key?(:structured_results)
end