Class: Google::Apis::LanguageV1beta2::XpsDataStats

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

Overview

The data statistics of a series of values that share the same DataType.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsDataStats

Returns a new instance of XpsDataStats.



2068
2069
2070
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2068

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

Instance Attribute Details

#array_statsGoogle::Apis::LanguageV1beta2::XpsArrayStats

The data statistics of a series of ARRAY values. Corresponds to the JSON property arrayStats



2026
2027
2028
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2026

def array_stats
  @array_stats
end

#category_statsGoogle::Apis::LanguageV1beta2::XpsCategoryStats

The data statistics of a series of CATEGORY values. Corresponds to the JSON property categoryStats



2031
2032
2033
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2031

def category_stats
  @category_stats
end

#distinct_value_countFixnum

The number of distinct values. Corresponds to the JSON property distinctValueCount

Returns:

  • (Fixnum)


2036
2037
2038
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2036

def distinct_value_count
  @distinct_value_count
end

#float64_statsGoogle::Apis::LanguageV1beta2::XpsFloat64Stats

The data statistics of a series of FLOAT64 values. Corresponds to the JSON property float64Stats



2041
2042
2043
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2041

def float64_stats
  @float64_stats
end

#null_value_countFixnum

The number of values that are null. Corresponds to the JSON property nullValueCount

Returns:

  • (Fixnum)


2046
2047
2048
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2046

def null_value_count
  @null_value_count
end

#string_statsGoogle::Apis::LanguageV1beta2::XpsStringStats

The data statistics of a series of STRING values. Corresponds to the JSON property stringStats



2051
2052
2053
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2051

def string_stats
  @string_stats
end

#struct_statsGoogle::Apis::LanguageV1beta2::XpsStructStats

The data statistics of a series of STRUCT values. Corresponds to the JSON property structStats



2056
2057
2058
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2056

def struct_stats
  @struct_stats
end

#timestamp_statsGoogle::Apis::LanguageV1beta2::XpsTimestampStats

The data statistics of a series of TIMESTAMP values. Corresponds to the JSON property timestampStats



2061
2062
2063
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2061

def timestamp_stats
  @timestamp_stats
end

#valid_value_countFixnum

The number of values that are valid. Corresponds to the JSON property validValueCount

Returns:

  • (Fixnum)


2066
2067
2068
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2066

def valid_value_count
  @valid_value_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2073

def update!(**args)
  @array_stats = args[:array_stats] if args.key?(:array_stats)
  @category_stats = args[:category_stats] if args.key?(:category_stats)
  @distinct_value_count = args[:distinct_value_count] if args.key?(:distinct_value_count)
  @float64_stats = args[:float64_stats] if args.key?(:float64_stats)
  @null_value_count = args[:null_value_count] if args.key?(:null_value_count)
  @string_stats = args[:string_stats] if args.key?(:string_stats)
  @struct_stats = args[:struct_stats] if args.key?(:struct_stats)
  @timestamp_stats = args[:timestamp_stats] if args.key?(:timestamp_stats)
  @valid_value_count = args[:valid_value_count] if args.key?(:valid_value_count)
end