Class: Google::Apis::JobsV2::NumericBucketingResult

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

Overview

Output only. Custom numeric bucketing result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NumericBucketingResult

Returns a new instance of NumericBucketingResult.



2891
2892
2893
# File 'generated/google/apis/jobs_v2/classes.rb', line 2891

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

Instance Attribute Details

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

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



2877
2878
2879
# File 'generated/google/apis/jobs_v2/classes.rb', line 2877

def counts
  @counts
end

#max_valueFloat

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

Returns:

  • (Float)


2883
2884
2885
# File 'generated/google/apis/jobs_v2/classes.rb', line 2883

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)


2889
2890
2891
# File 'generated/google/apis/jobs_v2/classes.rb', line 2889

def min_value
  @min_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2896
2897
2898
2899
2900
# File 'generated/google/apis/jobs_v2/classes.rb', line 2896

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