Class: Google::Apis::JobsV3p1beta1::HistogramFacets

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

Overview

Input only. Histogram facets to be specified in SearchJobsRequest.

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) ⇒ HistogramFacets

Returns a new instance of HistogramFacets.



1043
1044
1045
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 1043

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

Instance Attribute Details

#compensation_histogram_facetsArray<Google::Apis::JobsV3p1beta1::CompensationHistogramRequest>

Optional. Specifies compensation field-based histogram requests. Duplicate values of CompensationHistogramRequest.type are not allowed. Corresponds to the JSON property compensationHistogramFacets



1028
1029
1030
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 1028

def compensation_histogram_facets
  @compensation_histogram_facets
end

#custom_attribute_histogram_facetsArray<Google::Apis::JobsV3p1beta1::CustomAttributeHistogramRequest>

Optional. Specifies the custom attributes histogram requests. Duplicate values of CustomAttributeHistogramRequest.key are not allowed. Corresponds to the JSON property customAttributeHistogramFacets



1035
1036
1037
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 1035

def custom_attribute_histogram_facets
  @custom_attribute_histogram_facets
end

#simple_histogram_facetsArray<String>

Optional. Specifies the simple type of histogram facets, for example, COMPANY_SIZE, EMPLOYMENT_TYPE etc. Corresponds to the JSON property simpleHistogramFacets

Returns:

  • (Array<String>)


1041
1042
1043
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 1041

def simple_histogram_facets
  @simple_histogram_facets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1048
1049
1050
1051
1052
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 1048

def update!(**args)
  @compensation_histogram_facets = args[:compensation_histogram_facets] if args.key?(:compensation_histogram_facets)
  @custom_attribute_histogram_facets = args[:custom_attribute_histogram_facets] if args.key?(:custom_attribute_histogram_facets)
  @simple_histogram_facets = args[:simple_histogram_facets] if args.key?(:simple_histogram_facets)
end