Class: Google::Apis::JobsV2::CustomAttribute
- Inherits:
-
Object
- Object
- Google::Apis::JobsV2::CustomAttribute
- 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
Custom attribute values that are either filterable or non-filterable.
Instance Attribute Summary collapse
-
#filterable ⇒ Boolean
(also: #filterable?)
Optional.
-
#long_value ⇒ Fixnum
Optional but at least one of string_values or long_value must be specified.
-
#string_values ⇒ Google::Apis::JobsV2::StringValues
Represents array of string values.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomAttribute
constructor
A new instance of CustomAttribute.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CustomAttribute
Returns a new instance of CustomAttribute
813 814 815 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 813 def initialize(**args) update!(**args) end |
Instance Attribute Details
#filterable ⇒ Boolean Also known as: filterable?
Optional.
If the filterable
flag is true, custom field values are searchable.
If false, values are not searchable.
Default is false.
Corresponds to the JSON property filterable
796 797 798 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 796 def filterable @filterable end |
#long_value ⇒ Fixnum
Optional but at least one of string_values or long_value must
be specified.
This field is used to perform number range search.
(EQ
, GT
, GE
, LE
, LT
) over filterable long_value
. For
long_value
, a value between Long.MIN and Long.MAX is allowed.
Corresponds to the JSON property longValue
806 807 808 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 806 def long_value @long_value end |
#string_values ⇒ Google::Apis::JobsV2::StringValues
Represents array of string values.
Corresponds to the JSON property stringValues
811 812 813 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 811 def string_values @string_values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
818 819 820 821 822 |
# File 'generated/google/apis/jobs_v2/classes.rb', line 818 def update!(**args) @filterable = args[:filterable] if args.key?(:filterable) @long_value = args[:long_value] if args.key?(:long_value) @string_values = args[:string_values] if args.key?(:string_values) end |