Class: Google::Apis::LanguageV1::XpsCategoryStats

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/language_v1/classes.rb,
lib/google/apis/language_v1/representations.rb,
lib/google/apis/language_v1/representations.rb

Overview

The data statistics of a series of CATEGORY values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsCategoryStats

Returns a new instance of XpsCategoryStats.



1415
1416
1417
# File 'lib/google/apis/language_v1/classes.rb', line 1415

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

Instance Attribute Details

#common_statsGoogle::Apis::LanguageV1::XpsCommonStats

Common statistics for a column with a specified data type. Corresponds to the JSON property commonStats



1407
1408
1409
# File 'lib/google/apis/language_v1/classes.rb', line 1407

def common_stats
  @common_stats
end

#top_category_statsArray<Google::Apis::LanguageV1::XpsCategoryStatsSingleCategoryStats>

The statistics of the top 20 CATEGORY values, ordered by CategoryStats. SingleCategoryStats.count. Corresponds to the JSON property topCategoryStats



1413
1414
1415
# File 'lib/google/apis/language_v1/classes.rb', line 1413

def top_category_stats
  @top_category_stats
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1420
1421
1422
1423
# File 'lib/google/apis/language_v1/classes.rb', line 1420

def update!(**args)
  @common_stats = args[:common_stats] if args.key?(:common_stats)
  @top_category_stats = args[:top_category_stats] if args.key?(:top_category_stats)
end