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

key[RW]

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]

long_value_histogram_bucketing_option[RW]

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]

string_value_histogram[RW]

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]

string_value_histogram?[RW]

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

new(**args) click to toggle source
# File lib/google/apis/jobs_v3/classes.rb, line 828
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 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