Class SearchJobsRequest.CustomRankingInfo (2.20.0)

public static final class SearchJobsRequest.CustomRankingInfo extends GeneratedMessageV3 implements SearchJobsRequest.CustomRankingInfoOrBuilder

Custom ranking information for SearchJobsRequest.

Protobuf type google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SearchJobsRequest.CustomRankingInfo

Static Fields

IMPORTANCE_LEVEL_FIELD_NUMBER

public static final int IMPORTANCE_LEVEL_FIELD_NUMBER
Field Value
TypeDescription
int

RANKING_EXPRESSION_FIELD_NUMBER

public static final int RANKING_EXPRESSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SearchJobsRequest.CustomRankingInfo getDefaultInstance()
Returns
TypeDescription
SearchJobsRequest.CustomRankingInfo

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static SearchJobsRequest.CustomRankingInfo.Builder newBuilder()
Returns
TypeDescription
SearchJobsRequest.CustomRankingInfo.Builder

newBuilder(SearchJobsRequest.CustomRankingInfo prototype)

public static SearchJobsRequest.CustomRankingInfo.Builder newBuilder(SearchJobsRequest.CustomRankingInfo prototype)
Parameter
NameDescription
prototypeSearchJobsRequest.CustomRankingInfo
Returns
TypeDescription
SearchJobsRequest.CustomRankingInfo.Builder

parseDelimitedFrom(InputStream input)

public static SearchJobsRequest.CustomRankingInfo parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SearchJobsRequest.CustomRankingInfo
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SearchJobsRequest.CustomRankingInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchJobsRequest.CustomRankingInfo
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SearchJobsRequest.CustomRankingInfo parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SearchJobsRequest.CustomRankingInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SearchJobsRequest.CustomRankingInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchJobsRequest.CustomRankingInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SearchJobsRequest.CustomRankingInfo parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SearchJobsRequest.CustomRankingInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SearchJobsRequest.CustomRankingInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchJobsRequest.CustomRankingInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SearchJobsRequest.CustomRankingInfo parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SearchJobsRequest.CustomRankingInfo
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SearchJobsRequest.CustomRankingInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchJobsRequest.CustomRankingInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SearchJobsRequest.CustomRankingInfo parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SearchJobsRequest.CustomRankingInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SearchJobsRequest.CustomRankingInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchJobsRequest.CustomRankingInfo
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SearchJobsRequest.CustomRankingInfo parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SearchJobsRequest.CustomRankingInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SearchJobsRequest.CustomRankingInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchJobsRequest.CustomRankingInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SearchJobsRequest.CustomRankingInfo> parser()
Returns
TypeDescription
Parser<CustomRankingInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public SearchJobsRequest.CustomRankingInfo getDefaultInstanceForType()
Returns
TypeDescription
SearchJobsRequest.CustomRankingInfo

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.v4.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SearchJobsRequest.CustomRankingInfo.ImportanceLevel

The importanceLevel.

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.v4.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for importanceLevel.

getParserForType()

public Parser<SearchJobsRequest.CustomRankingInfo> getParserForType()
Returns
TypeDescription
Parser<CustomRankingInfo>
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
TypeDescription
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
TypeDescription
ByteString

The bytes for rankingExpression.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SearchJobsRequest.CustomRankingInfo.Builder newBuilderForType()
Returns
TypeDescription
SearchJobsRequest.CustomRankingInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SearchJobsRequest.CustomRankingInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SearchJobsRequest.CustomRankingInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SearchJobsRequest.CustomRankingInfo.Builder toBuilder()
Returns
TypeDescription
SearchJobsRequest.CustomRankingInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException