Class: Google::Apis::JobsV4::CustomAttribute
- Inherits:
-
Object
- Object
- Google::Apis::JobsV4::CustomAttribute
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/jobs_v4/classes.rb,
generated/google/apis/jobs_v4/representations.rb,
generated/google/apis/jobs_v4/representations.rb
Overview
Custom attribute values that are either filterable or non-filterable.
Instance Attribute Summary collapse
-
#filterable ⇒ Boolean
(also: #filterable?)
If the
filterable
flag is true, the custom field values may be used for custom attribute filters JobQuery.custom_attribute_filter. -
#keyword_searchable ⇒ Boolean
(also: #keyword_searchable?)
If the
keyword_searchable
flag is true, the keywords in custom fields are searchable by keyword match. -
#long_values ⇒ Array<Fixnum>
Exactly one of string_values or long_values must be specified.
-
#string_values ⇒ Array<String>
Exactly one of string_values or long_values must be specified.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomAttribute
constructor
A new instance of CustomAttribute.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomAttribute
Returns a new instance of CustomAttribute.
781 782 783 |
# File 'generated/google/apis/jobs_v4/classes.rb', line 781 def initialize(**args) update!(**args) end |
Instance Attribute Details
#filterable ⇒ Boolean Also known as: filterable?
If the filterable
flag is true, the custom field values may be used for
custom attribute filters JobQuery.custom_attribute_filter. If false, these
values may not be used for custom attribute filters. Default is false.
Corresponds to the JSON property filterable
753 754 755 |
# File 'generated/google/apis/jobs_v4/classes.rb', line 753 def filterable @filterable end |
#keyword_searchable ⇒ Boolean Also known as: keyword_searchable?
If the keyword_searchable
flag is true, the keywords in custom fields are
searchable by keyword match. If false, the values are not searchable by
keyword match. Default is false.
Corresponds to the JSON property keywordSearchable
761 762 763 |
# File 'generated/google/apis/jobs_v4/classes.rb', line 761 def keyword_searchable @keyword_searchable end |
#long_values ⇒ Array<Fixnum>
Exactly one of string_values or long_values must be specified. This field is
used to perform number range search. (EQ
, GT
, GE
, LE
, LT
) over
filterable long_value
. Currently at most 1 long_values is supported.
Corresponds to the JSON property longValues
769 770 771 |
# File 'generated/google/apis/jobs_v4/classes.rb', line 769 def long_values @long_values end |
#string_values ⇒ Array<String>
Exactly one of string_values or long_values must be specified. This field is
used to perform a string match (CASE_SENSITIVE_MATCH
or
CASE_INSENSITIVE_MATCH
) search. For filterable string_value
s, a maximum
total number of 200 values is allowed, with each string_value
has a byte
size of no more than 500B. For unfilterable string_values
, the maximum total
byte size of unfilterable string_values
is 50KB. Empty string isn't allowed.
Corresponds to the JSON property stringValues
779 780 781 |
# File 'generated/google/apis/jobs_v4/classes.rb', line 779 def string_values @string_values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
786 787 788 789 790 791 |
# File 'generated/google/apis/jobs_v4/classes.rb', line 786 def update!(**args) @filterable = args[:filterable] if args.key?(:filterable) @keyword_searchable = args[:keyword_searchable] if args.key?(:keyword_searchable) @long_values = args[:long_values] if args.key?(:long_values) @string_values = args[:string_values] if args.key?(:string_values) end |