Reference documentation and code samples for the Google Cloud Talent Solution V4 Client class CustomAttribute.
Custom attribute values that are either filterable or non-filterable.
Generated from protobuf message google.cloud.talent.v4.CustomAttribute
Namespace
Google \ Cloud \ Talent \ V4
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ string_values
array
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_values, 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.
↳ long_values
array
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.
↳ filterable
bool
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.
↳ keyword_searchable
bool
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.
This field is used to perform a string match (CASE_SENSITIVE_MATCH or
CASE_INSENSITIVE_MATCH) search.
For filterable string_values, 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.
This field is used to perform a string match (CASE_SENSITIVE_MATCH or
CASE_INSENSITIVE_MATCH) search.
For filterable string_values, 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Cloud Talent Solution V4 Client - Class CustomAttribute (2.1.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.3 (latest)](/php/docs/reference/cloud-talent/latest/V4.CustomAttribute)\n- [2.1.2](/php/docs/reference/cloud-talent/2.1.2/V4.CustomAttribute)\n- [2.0.2](/php/docs/reference/cloud-talent/2.0.2/V4.CustomAttribute)\n- [1.3.5](/php/docs/reference/cloud-talent/1.3.5/V4.CustomAttribute)\n- [1.2.2](/php/docs/reference/cloud-talent/1.2.2/V4.CustomAttribute)\n- [1.1.1](/php/docs/reference/cloud-talent/1.1.1/V4.CustomAttribute)\n- [1.0.5](/php/docs/reference/cloud-talent/1.0.5/V4.CustomAttribute) \nReference documentation and code samples for the Google Cloud Talent Solution V4 Client class CustomAttribute.\n\nCustom attribute values that are either filterable or non-filterable.\n\nGenerated from protobuf message `google.cloud.talent.v4.CustomAttribute`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Talent \\\\ V4\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getStringValues\n\nExactly one of\n[string_values](/php/docs/reference/cloud-talent/latest/V4.CustomAttribute#_Google_Cloud_Talent_V4_CustomAttribute__getStringValues__) or\n[long_values](/php/docs/reference/cloud-talent/latest/V4.CustomAttribute#_Google_Cloud_Talent_V4_CustomAttribute__getLongValues__) must be\nspecified.\n\nThis field is used to perform a string match (`CASE_SENSITIVE_MATCH` or\n`CASE_INSENSITIVE_MATCH`) search.\nFor filterable `string_value`s, a maximum total number of 200 values\nis allowed, with each `string_value` has a byte size of no more than\n500B. For unfilterable `string_values`, the maximum total byte size of\nunfilterable `string_values` is 50KB.\nEmpty string isn't allowed.\n\n### setStringValues\n\nExactly one of\n[string_values](/php/docs/reference/cloud-talent/latest/V4.CustomAttribute#_Google_Cloud_Talent_V4_CustomAttribute__getStringValues__) or\n[long_values](/php/docs/reference/cloud-talent/latest/V4.CustomAttribute#_Google_Cloud_Talent_V4_CustomAttribute__getLongValues__) must be\nspecified.\n\nThis field is used to perform a string match (`CASE_SENSITIVE_MATCH` or\n`CASE_INSENSITIVE_MATCH`) search.\nFor filterable `string_value`s, a maximum total number of 200 values\nis allowed, with each `string_value` has a byte size of no more than\n500B. For unfilterable `string_values`, the maximum total byte size of\nunfilterable `string_values` is 50KB.\nEmpty string isn't allowed.\n\n### getLongValues\n\nExactly one of\n[string_values](/php/docs/reference/cloud-talent/latest/V4.CustomAttribute#_Google_Cloud_Talent_V4_CustomAttribute__getStringValues__) or\n[long_values](/php/docs/reference/cloud-talent/latest/V4.CustomAttribute#_Google_Cloud_Talent_V4_CustomAttribute__getLongValues__) must be\nspecified.\n\nThis field is used to perform number range search.\n(`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.\nCurrently at most 1\n[long_values](/php/docs/reference/cloud-talent/latest/V4.CustomAttribute#_Google_Cloud_Talent_V4_CustomAttribute__getLongValues__) is\nsupported.\n\n### setLongValues\n\nExactly one of\n[string_values](/php/docs/reference/cloud-talent/latest/V4.CustomAttribute#_Google_Cloud_Talent_V4_CustomAttribute__getStringValues__) or\n[long_values](/php/docs/reference/cloud-talent/latest/V4.CustomAttribute#_Google_Cloud_Talent_V4_CustomAttribute__getLongValues__) must be\nspecified.\n\nThis field is used to perform number range search.\n(`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.\nCurrently at most 1\n[long_values](/php/docs/reference/cloud-talent/latest/V4.CustomAttribute#_Google_Cloud_Talent_V4_CustomAttribute__getLongValues__) is\nsupported.\n\n### getFilterable\n\nIf the `filterable` flag is true, the custom field values may be used for\ncustom attribute filters\n[JobQuery.custom_attribute_filter](/php/docs/reference/cloud-talent/latest/V4.JobQuery#_Google_Cloud_Talent_V4_JobQuery__getCustomAttributeFilter__).\n\nIf false, these values may not be used for custom attribute filters.\nDefault is false.\n\n### setFilterable\n\nIf the `filterable` flag is true, the custom field values may be used for\ncustom attribute filters\n[JobQuery.custom_attribute_filter](/php/docs/reference/cloud-talent/latest/V4.JobQuery#_Google_Cloud_Talent_V4_JobQuery__getCustomAttributeFilter__).\n\nIf false, these values may not be used for custom attribute filters.\nDefault is false.\n\n### getKeywordSearchable\n\nIf the `keyword_searchable` flag is true, the keywords in custom fields are\nsearchable by keyword match.\n\nIf false, the values are not searchable by keyword match.\nDefault is false.\n\n### setKeywordSearchable\n\nIf the `keyword_searchable` flag is true, the keywords in custom fields are\nsearchable by keyword match.\n\nIf false, the values are not searchable by keyword match.\nDefault is false."]]