Class: Google::Apis::CloudsearchV1::SourceResultCount

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb

Overview

Per source result count information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SourceResultCount

Returns a new instance of SourceResultCount.



4469
4470
4471
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4469

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#has_more_resultsBoolean Also known as: has_more_results?

Whether there are more search results for this source. Corresponds to the JSON property hasMoreResults

Returns:

  • (Boolean)


4451
4452
4453
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4451

def has_more_results
  @has_more_results
end

#result_count_estimateFixnum

The estimated result count for this source. Corresponds to the JSON property resultCountEstimate

Returns:

  • (Fixnum)


4457
4458
4459
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4457

def result_count_estimate
  @result_count_estimate
end

#result_count_exactFixnum

The exact result count for this source. Corresponds to the JSON property resultCountExact

Returns:

  • (Fixnum)


4462
4463
4464
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4462

def result_count_exact
  @result_count_exact
end

#sourceGoogle::Apis::CloudsearchV1::Source

Defines sources for the suggest/search APIs. Corresponds to the JSON property source



4467
4468
4469
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4467

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4474
4475
4476
4477
4478
4479
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4474

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