Class: Google::Apis::JobsV2::NumericBucketingOption
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::JobsV2::NumericBucketingOption
 
- 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
Input only. Use this field to specify bucketing option for the histogram search response.
Instance Attribute Summary collapse
- 
  
    
      #bucket_bounds  ⇒ Array<Float> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Required. 
- 
  
    
      #requires_min_max  ⇒ Boolean 
    
    
      (also: #requires_min_max?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ NumericBucketingOption 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of NumericBucketingOption. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ NumericBucketingOption
Returns a new instance of NumericBucketingOption
| 2726 2727 2728 | # File 'generated/google/apis/jobs_v2/classes.rb', line 2726 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#bucket_bounds ⇒ Array<Float>
Required.
Two adjacent values form a histogram bucket. Values should be in
ascending order. For example, if [5, 10, 15] are provided, four buckets are
created: (-inf, 5), 5, 10), [10, 15), [15, inf). At most 20
[buckets_bound is supported.
Corresponds to the JSON property bucketBounds
| 2716 2717 2718 | # File 'generated/google/apis/jobs_v2/classes.rb', line 2716 def bucket_bounds @bucket_bounds end | 
#requires_min_max ⇒ Boolean Also known as: requires_min_max?
Optional.
If set to true, the histogram result includes minimum/maximum
value of the numeric field.
Corresponds to the JSON property requiresMinMax
| 2723 2724 2725 | # File 'generated/google/apis/jobs_v2/classes.rb', line 2723 def requires_min_max @requires_min_max end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2731 2732 2733 2734 | # File 'generated/google/apis/jobs_v2/classes.rb', line 2731 def update!(**args) @bucket_bounds = args[:bucket_bounds] if args.key?(:bucket_bounds) @requires_min_max = args[:requires_min_max] if args.key?(:requires_min_max) end |