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.


786
787
788
# File 'generated/google/apis/jobs_v2/classes.rb', line 786

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)

769
770
771
# File 'generated/google/apis/jobs_v2/classes.rb', line 769

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

Returns:

  • (Fixnum)

779
780
781
# File 'generated/google/apis/jobs_v2/classes.rb', line 779

def long_value
  @long_value
end

#string_valuesGoogle::Apis::JobsV2::StringValues

Represents array of string values. Corresponds to the JSON property stringValues


784
785
786
# File 'generated/google/apis/jobs_v2/classes.rb', line 784

def string_values
  @string_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


791
792
793
794
795
# File 'generated/google/apis/jobs_v2/classes.rb', line 791

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