Class: Google::Apis::JobsV3p1beta1::CustomAttribute
- Inherits:
-
Object
- Object
- Google::Apis::JobsV3p1beta1::CustomAttribute
- 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
Custom attribute values that are either filterable or non-filterable.
Instance Attribute Summary collapse
-
#filterable ⇒ Boolean
(also: #filterable?)
Optional.
-
#long_values ⇒ Array<Fixnum>
Optional but exactly one of string_values or long_values must be specified.
-
#string_values ⇒ Array<String>
Optional but 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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CustomAttribute
Returns a new instance of CustomAttribute
859 860 861 |
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 859 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
834 835 836 |
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 834 def filterable @filterable end |
#long_values ⇒ Array<Fixnum>
Optional but 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
844 845 846 |
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 844 def long_values @long_values end |
#string_values ⇒ Array<String>
Optional but 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
255B. For unfilterable string_values
, the maximum total byte size of
unfilterable string_values
is 50KB.
Empty string is not allowed.
Corresponds to the JSON property stringValues
857 858 859 |
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 857 def string_values @string_values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
864 865 866 867 868 |
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 864 def update!(**args) @filterable = args[:filterable] if args.key?(:filterable) @long_values = args[:long_values] if args.key?(:long_values) @string_values = args[:string_values] if args.key?(:string_values) end |