Class: Google::Apis::JobsV3p1beta1::NumericBucketingResult

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

Overview

Output only. Custom numeric bucketing result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NumericBucketingResult

Returns a new instance of NumericBucketingResult.



2164
2165
2166
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 2164

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

Instance Attribute Details

#countsArray<Google::Apis::JobsV3p1beta1::BucketizedCount>

Count within each bucket. Its size is the length of NumericBucketingOption. bucket_bounds plus 1. Corresponds to the JSON property counts



2150
2151
2152
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 2150

def counts
  @counts
end

#max_valueFloat

Stores the maximum value of the numeric field. Is populated only if [ NumericBucketingOption.requires_min_max] is set to true. Corresponds to the JSON property maxValue

Returns:

  • (Float)


2156
2157
2158
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 2156

def max_value
  @max_value
end

#min_valueFloat

Stores the minimum value of the numeric field. Will be populated only if [ NumericBucketingOption.requires_min_max] is set to true. Corresponds to the JSON property minValue

Returns:

  • (Float)


2162
2163
2164
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 2162

def min_value
  @min_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2169
2170
2171
2172
2173
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 2169

def update!(**args)
  @counts = args[:counts] if args.key?(:counts)
  @max_value = args[:max_value] if args.key?(:max_value)
  @min_value = args[:min_value] if args.key?(:min_value)
end