Class: Google::Apis::JobsV2::CustomAttribute

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#filterableBoolean 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

Returns:

  • (Boolean)


796
797
798
# File 'generated/google/apis/jobs_v2/classes.rb', line 796

def filterable
  @filterable
end

#long_valueFixnum

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.MIN is allowed. Corresponds to the JSON property longValue

Returns:

  • (Fixnum)


806
807
808
# File 'generated/google/apis/jobs_v2/classes.rb', line 806

def long_value
  @long_value
end

#string_valuesGoogle::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