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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SourceResultCount

Returns a new instance of SourceResultCount.



7407
7408
7409
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7407

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)


7389
7390
7391
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7389

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)


7395
7396
7397
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7395

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)


7400
7401
7402
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7400

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



7405
7406
7407
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7405

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7412
7413
7414
7415
7416
7417
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7412

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