class Google::Apis::JobsV3::NumericBucketingOption

Input only. Use this field to specify bucketing option for the histogram search response.

Attributes

bucket_bounds[RW]

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` @return [Array<Float>]

requires_min_max[RW]

Optional. If set to true, the histogram result includes minimum/maximum value of the numeric field. Corresponds to the JSON property `requiresMinMax` @return [Boolean]

requires_min_max?[RW]

Optional. If set to true, the histogram result includes minimum/maximum value of the numeric field. Corresponds to the JSON property `requiresMinMax` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/jobs_v3/classes.rb, line 1981
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/jobs_v3/classes.rb, line 1986
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