Send feedback
Class SearchJobsRequest.CustomRankingInfo (2.4.6)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.4.6 keyboard_arrow_down
public static final class SearchJobsRequest . CustomRankingInfo extends GeneratedMessageV3 implements SearchJobsRequest . CustomRankingInfoOrBuilder
Custom ranking information for SearchJobsRequest .
Protobuf type google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo
Static Fields
IMPORTANCE_LEVEL_FIELD_NUMBER
public static final int IMPORTANCE_LEVEL_FIELD_NUMBER
Field Value
RANKING_EXPRESSION_FIELD_NUMBER
public static final int RANKING_EXPRESSION_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static SearchJobsRequest . CustomRankingInfo getDefaultInstance ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
newBuilder()
public static SearchJobsRequest . CustomRankingInfo . Builder newBuilder ()
Returns
newBuilder(SearchJobsRequest.CustomRankingInfo prototype)
public static SearchJobsRequest . CustomRankingInfo . Builder newBuilder ( SearchJobsRequest . CustomRankingInfo prototype )
Parameter
Returns
public static SearchJobsRequest . CustomRankingInfo parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static SearchJobsRequest . CustomRankingInfo parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static SearchJobsRequest . CustomRankingInfo parseFrom ( byte [] data )
Parameter
Name Description data byte []
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SearchJobsRequest . CustomRankingInfo parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static SearchJobsRequest . CustomRankingInfo parseFrom ( ByteString data )
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SearchJobsRequest . CustomRankingInfo parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static SearchJobsRequest . CustomRankingInfo parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static SearchJobsRequest . CustomRankingInfo parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static SearchJobsRequest . CustomRankingInfo parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static SearchJobsRequest . CustomRankingInfo parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static SearchJobsRequest . CustomRankingInfo parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SearchJobsRequest . CustomRankingInfo parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parser()
public static Parser<SearchJobsRequest . CustomRankingInfo> parser ()
Returns
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Returns
Overrides
getDefaultInstanceForType()
public SearchJobsRequest . CustomRankingInfo getDefaultInstanceForType ()
Returns
getImportanceLevel()
public SearchJobsRequest . CustomRankingInfo . ImportanceLevel getImportanceLevel ()
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.
.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getImportanceLevelValue()
public int getImportanceLevelValue ()
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.
.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type Description int The enum numeric value on the wire for importanceLevel.
getParserForType()
public Parser<SearchJobsRequest . CustomRankingInfo> getParserForType ()
Returns
Overrides
getRankingExpression()
public String getRankingExpression ()
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)
string ranking_expression = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type Description String The rankingExpression.
getRankingExpressionBytes()
public ByteString getRankingExpressionBytes ()
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)
string ranking_expression = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type Description ByteString The bytes for rankingExpression.
getSerializedSize()
public int getSerializedSize ()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
newBuilderForType()
public SearchJobsRequest . CustomRankingInfo . Builder newBuilderForType ()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SearchJobsRequest . CustomRankingInfo . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
toBuilder()
public SearchJobsRequest . CustomRankingInfo . Builder toBuilder ()
Returns
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-19 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-19 UTC."}
[[["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 2024-09-19 UTC."]]