class Google::Apis::JobsV3::CustomAttributeHistogramRequest
Custom attributes histogram request. An error is thrown if neither string_value_histogram
or long_value_histogram_bucketing_option
has been defined.
Attributes
Required. Specifies the custom field key to perform a histogram on. If specified without `long_value_histogram_bucketing_option`, histogram on string values of the given `key` is triggered, otherwise histogram is performed on long values. Corresponds to the JSON property `key` @return [String]
Input only. Use this field to specify bucketing option for the histogram search response. Corresponds to the JSON property `longValueHistogramBucketingOption` @return [Google::Apis::JobsV3::NumericBucketingOption]
Optional. If set to true, the response includes the histogram value for each key as a string. Corresponds to the JSON property `stringValueHistogram` @return [Boolean]
Optional. If set to true, the response includes the histogram value for each key as a string. Corresponds to the JSON property `stringValueHistogram` @return [Boolean]
Public Class Methods
# File lib/google/apis/jobs_v3/classes.rb, line 828 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/jobs_v3/classes.rb, line 833 def update!(**args) @key = args[:key] if args.key?(:key) @long_value_histogram_bucketing_option = args[:long_value_histogram_bucketing_option] if args.key?(:long_value_histogram_bucketing_option) @string_value_histogram = args[:string_value_histogram] if args.key?(:string_value_histogram) end