Generated from protobuf message google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo
Namespace
Google \ Cloud \ Talent \ V4 \ SearchJobsRequest
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ importance_level
int
Required. Controls over how important the score of CustomRankingInfo.ranking_expression gets applied to job's final ranking position. An error is thrown if not specified.
↳ ranking_expression
string
Required. Controls over how job documents get ranked on top of existing relevance score (determined by API algorithm). A combination of the ranking expression and relevance score is used to determine job's final ranking position. The syntax for this expression is a subset of Google SQL syntax. Supported operators are: +, -, *, /, where the left and right side of the operator is either a numeric Job.custom_attributes key, integer/double value or an expression that can be evaluated to a number. Parenthesis are supported to adjust calculation precedence. The expression must be < 200 characters in length. The expression is considered invalid for a job if the expression references custom attributes that are not populated on the job or if the expression results in a divide by zero. If an expression is invalid for a job, that job is demoted to the end of the results. Sample ranking expression (year + 25) * 0.25 - (freshness / 0.5)
Required. Controls over how job documents get ranked on top of existing
relevance score (determined by API algorithm). A combination of the
ranking expression and relevance score is used to determine job's final
ranking position.
The syntax for this expression is a subset of Google SQL syntax.
Supported operators are: +, -, *, /, where the left and right side of
the operator is either a numeric
Job.custom_attributes
key, integer/double value or an expression that can be evaluated to a
number.
Parenthesis are supported to adjust calculation precedence. The
expression must be < 200 characters in length.
The expression is considered invalid for a job if the expression
references custom attributes that are not populated on the job or if the
expression results in a divide by zero. If an expression is invalid for a
job, that job is demoted to the end of the results.
Sample ranking expression
(year + 25) * 0.25 - (freshness / 0.5)
Returns
Type
Description
string
setRankingExpression
Required. Controls over how job documents get ranked on top of existing
relevance score (determined by API algorithm). A combination of the
ranking expression and relevance score is used to determine job's final
ranking position.
The syntax for this expression is a subset of Google SQL syntax.
Supported operators are: +, -, *, /, where the left and right side of
the operator is either a numeric
Job.custom_attributes
key, integer/double value or an expression that can be evaluated to a
number.
Parenthesis are supported to adjust calculation precedence. The
expression must be < 200 characters in length.
The expression is considered invalid for a job if the expression
references custom attributes that are not populated on the job or if the
expression results in a divide by zero. If an expression is invalid for a
job, that job is demoted to the end of the results.
Sample ranking expression
(year + 25) * 0.25 - (freshness / 0.5)
[[["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-08-28 UTC."],[],[],null,["# Google Cloud Talent Solution V4 Client - Class CustomRankingInfo (2.1.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.3 (latest)](/php/docs/reference/cloud-talent/latest/V4.SearchJobsRequest.CustomRankingInfo)\n- [2.1.2](/php/docs/reference/cloud-talent/2.1.2/V4.SearchJobsRequest.CustomRankingInfo)\n- [2.0.2](/php/docs/reference/cloud-talent/2.0.2/V4.SearchJobsRequest.CustomRankingInfo)\n- [1.3.5](/php/docs/reference/cloud-talent/1.3.5/V4.SearchJobsRequest.CustomRankingInfo)\n- [1.2.2](/php/docs/reference/cloud-talent/1.2.2/V4.SearchJobsRequest.CustomRankingInfo)\n- [1.1.1](/php/docs/reference/cloud-talent/1.1.1/V4.SearchJobsRequest.CustomRankingInfo)\n- [1.0.5](/php/docs/reference/cloud-talent/1.0.5/V4.SearchJobsRequest.CustomRankingInfo) \nReference documentation and code samples for the Google Cloud Talent Solution V4 Client class CustomRankingInfo.\n\nCustom ranking information for\n[SearchJobsRequest](/php/docs/reference/cloud-talent/latest/V4.SearchJobsRequest).\n\nGenerated from protobuf message `google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Talent \\\\ V4 \\\\ SearchJobsRequest\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getImportanceLevel\n\nRequired. Controls over how important the score of\n[CustomRankingInfo.ranking_expression](/php/docs/reference/cloud-talent/latest/V4.SearchJobsRequest.CustomRankingInfo#_Google_Cloud_Talent_V4_SearchJobsRequest_CustomRankingInfo__getRankingExpression__)\ngets applied to job's final ranking position.\n\nAn error is thrown if not specified.\n\n### setImportanceLevel\n\nRequired. Controls over how important the score of\n[CustomRankingInfo.ranking_expression](/php/docs/reference/cloud-talent/latest/V4.SearchJobsRequest.CustomRankingInfo#_Google_Cloud_Talent_V4_SearchJobsRequest_CustomRankingInfo__getRankingExpression__)\ngets applied to job's final ranking position.\n\nAn error is thrown if not specified.\n\n### getRankingExpression\n\nRequired. Controls over how job documents get ranked on top of existing\nrelevance score (determined by API algorithm). A combination of the\nranking expression and relevance score is used to determine job's final\nranking position.\n\nThe syntax for this expression is a subset of Google SQL syntax.\nSupported operators are: +, -, \\*, /, where the left and right side of\nthe operator is either a numeric\n[Job.custom_attributes](/php/docs/reference/cloud-talent/latest/V4.Job#_Google_Cloud_Talent_V4_Job__getCustomAttributes__)\nkey, integer/double value or an expression that can be evaluated to a\nnumber.\nParenthesis are supported to adjust calculation precedence. The\nexpression must be \\\u003c 200 characters in length.\nThe expression is considered invalid for a job if the expression\nreferences custom attributes that are not populated on the job or if the\nexpression results in a divide by zero. If an expression is invalid for a\njob, that job is demoted to the end of the results.\nSample ranking expression\n(year + 25) \\* 0.25 - (freshness / 0.5)\n\n### setRankingExpression\n\nRequired. Controls over how job documents get ranked on top of existing\nrelevance score (determined by API algorithm). A combination of the\nranking expression and relevance score is used to determine job's final\nranking position.\n\nThe syntax for this expression is a subset of Google SQL syntax.\nSupported operators are: +, -, \\*, /, where the left and right side of\nthe operator is either a numeric\n[Job.custom_attributes](/php/docs/reference/cloud-talent/latest/V4.Job#_Google_Cloud_Talent_V4_Job__getCustomAttributes__)\nkey, integer/double value or an expression that can be evaluated to a\nnumber.\nParenthesis are supported to adjust calculation precedence. The\nexpression must be \\\u003c 200 characters in length.\nThe expression is considered invalid for a job if the expression\nreferences custom attributes that are not populated on the job or if the\nexpression results in a divide by zero. If an expression is invalid for a\njob, that job is demoted to the end of the results.\nSample ranking expression\n(year + 25) \\* 0.25 - (freshness / 0.5)"]]