# Cloud Talent Solution V4 API - Class Google::Cloud::Talent::V4::CustomAttribute (v1.9.0)

1.9.0 (latest) 1.8.1 1.7.0 1.6.1 1.5.0 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.13.0 0.12.2 0.11.0 0.10.1 0.9.1 0.8.1 0.7.0 0.6.4 Reference documentation and code samples for the Cloud Talent Solution V4 API class Google::Cloud::Talent::V4::CustomAttribute.

Custom attribute values that are either filterable or non-filterable.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #filterable

    def filterable() -> ::Boolean

**Returns**

- (::Boolean) --- If the `filterable` flag is true, the custom field values may be used for custom attribute filters [JobQuery.custom_attribute_filter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-JobQuery#Google__Cloud__Talent__V4__JobQuery_custom_attribute_filter_instance_ "Google::Cloud::Talent::V4::JobQuery#custom_attribute_filter (method)"). If false, these values may not be used for custom attribute filters.


  Default is false.

### #filterable=

    def filterable=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- If the `filterable` flag is true, the custom field values may be used for custom attribute filters [JobQuery.custom_attribute_filter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-JobQuery#Google__Cloud__Talent__V4__JobQuery_custom_attribute_filter_instance_ "Google::Cloud::Talent::V4::JobQuery#custom_attribute_filter (method)"). If false, these values may not be used for custom attribute filters.


  Default is false.
**Returns**

- (::Boolean) --- If the `filterable` flag is true, the custom field values may be used for custom attribute filters [JobQuery.custom_attribute_filter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-JobQuery#Google__Cloud__Talent__V4__JobQuery_custom_attribute_filter_instance_ "Google::Cloud::Talent::V4::JobQuery#custom_attribute_filter (method)"). If false, these values may not be used for custom attribute filters.


  Default is false.

### #keyword_searchable

    def keyword_searchable() -> ::Boolean

**Returns**

- (::Boolean) --- 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.

### #keyword_searchable=

    def keyword_searchable=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- 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.
**Returns**

- (::Boolean) --- 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.

### #long_values

    def long_values() -> ::Array<::Integer>

**Returns**

- (::Array\<::Integer\>) --- Exactly one of [string_values](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-CustomAttribute#Google__Cloud__Talent__V4__CustomAttribute_string_values_instance_ "Google::Cloud::Talent::V4::CustomAttribute#string_values (method)") or [long_values](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-CustomAttribute#Google__Cloud__Talent__V4__CustomAttribute_long_values_instance_ "Google::Cloud::Talent::V4::CustomAttribute#long_values (method)") 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-CustomAttribute#Google__Cloud__Talent__V4__CustomAttribute_long_values_instance_ "Google::Cloud::Talent::V4::CustomAttribute#long_values (method)") is
  supported.

### #long_values=

    def long_values=(value) -> ::Array<::Integer>

**Parameter**

- **value** (::Array\<::Integer\>) --- Exactly one of [string_values](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-CustomAttribute#Google__Cloud__Talent__V4__CustomAttribute_string_values_instance_ "Google::Cloud::Talent::V4::CustomAttribute#string_values (method)") or [long_values](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-CustomAttribute#Google__Cloud__Talent__V4__CustomAttribute_long_values_instance_ "Google::Cloud::Talent::V4::CustomAttribute#long_values (method)") 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-CustomAttribute#Google__Cloud__Talent__V4__CustomAttribute_long_values_instance_ "Google::Cloud::Talent::V4::CustomAttribute#long_values (method)") is
  supported.
**Returns**

- (::Array\<::Integer\>) --- Exactly one of [string_values](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-CustomAttribute#Google__Cloud__Talent__V4__CustomAttribute_string_values_instance_ "Google::Cloud::Talent::V4::CustomAttribute#string_values (method)") or [long_values](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-CustomAttribute#Google__Cloud__Talent__V4__CustomAttribute_long_values_instance_ "Google::Cloud::Talent::V4::CustomAttribute#long_values (method)") 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-CustomAttribute#Google__Cloud__Talent__V4__CustomAttribute_long_values_instance_ "Google::Cloud::Talent::V4::CustomAttribute#long_values (method)") is
  supported.

### #string_values

    def string_values() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Exactly one of [string_values](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-CustomAttribute#Google__Cloud__Talent__V4__CustomAttribute_string_values_instance_ "Google::Cloud::Talent::V4::CustomAttribute#string_values (method)") or [long_values](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-CustomAttribute#Google__Cloud__Talent__V4__CustomAttribute_long_values_instance_ "Google::Cloud::Talent::V4::CustomAttribute#long_values (method)") 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.

### #string_values=

    def string_values=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Exactly one of [string_values](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-CustomAttribute#Google__Cloud__Talent__V4__CustomAttribute_string_values_instance_ "Google::Cloud::Talent::V4::CustomAttribute#string_values (method)") or [long_values](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-CustomAttribute#Google__Cloud__Talent__V4__CustomAttribute_long_values_instance_ "Google::Cloud::Talent::V4::CustomAttribute#long_values (method)") 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.
**Returns**

- (::Array\<::String\>) --- Exactly one of [string_values](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-CustomAttribute#Google__Cloud__Talent__V4__CustomAttribute_string_values_instance_ "Google::Cloud::Talent::V4::CustomAttribute#string_values (method)") or [long_values](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-CustomAttribute#Google__Cloud__Talent__V4__CustomAttribute_long_values_instance_ "Google::Cloud::Talent::V4::CustomAttribute#long_values (method)") 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.