Class: Google::Apis::CloudsearchV1::SourceResultCount
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::SourceResultCount
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Per source result count information.
Instance Attribute Summary collapse
-
#has_more_results ⇒ Boolean
(also: #has_more_results?)
Whether there are more search results for this source.
-
#result_count_estimate ⇒ Fixnum
The estimated result count for this source.
-
#result_count_exact ⇒ Fixnum
The exact result count for this source.
-
#source ⇒ Google::Apis::CloudsearchV1::Source
Defines sources for the suggest/search APIs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SourceResultCount
constructor
A new instance of SourceResultCount.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SourceResultCount
Returns a new instance of SourceResultCount.
19235 19236 19237 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19235 def initialize(**args) update!(**args) end |
Instance Attribute Details
#has_more_results ⇒ Boolean Also known as: has_more_results?
Whether there are more search results for this source.
Corresponds to the JSON property hasMoreResults
19217 19218 19219 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19217 def has_more_results @has_more_results end |
#result_count_estimate ⇒ Fixnum
The estimated result count for this source.
Corresponds to the JSON property resultCountEstimate
19223 19224 19225 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19223 def result_count_estimate @result_count_estimate end |
#result_count_exact ⇒ Fixnum
The exact result count for this source.
Corresponds to the JSON property resultCountExact
19228 19229 19230 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19228 def result_count_exact @result_count_exact end |
#source ⇒ Google::Apis::CloudsearchV1::Source
Defines sources for the suggest/search APIs.
Corresponds to the JSON property source
19233 19234 19235 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19233 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
19240 19241 19242 19243 19244 19245 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19240 def update!(**args) @has_more_results = args[:has_more_results] if args.key?(:has_more_results) @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) @source = args[:source] if args.key?(:source) end |