public static final class SearchJobsRequest.CustomRankingInfo extends GeneratedMessageV3 implements SearchJobsRequest.CustomRankingInfoOrBuilder
Custom ranking information for [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].Protobuf type
google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo
Modifier and Type | Class and Description |
---|---|
static class |
SearchJobsRequest.CustomRankingInfo.Builder
Custom ranking information for [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
|
static class |
SearchJobsRequest.CustomRankingInfo.ImportanceLevel
The importance level for [CustomRankingInfo.ranking_expression][google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo.ranking_expression].
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
IMPORTANCE_LEVEL_FIELD_NUMBER |
static int |
RANKING_EXPRESSION_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int IMPORTANCE_LEVEL_FIELD_NUMBER
public static final int RANKING_EXPRESSION_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public int getImportanceLevelValue()
Required. Controls over how important the score of [CustomRankingInfo.ranking_expression][google.cloud.talent.v4.SearchJobsRequest.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];
getImportanceLevelValue
in interface SearchJobsRequest.CustomRankingInfoOrBuilder
public SearchJobsRequest.CustomRankingInfo.ImportanceLevel getImportanceLevel()
Required. Controls over how important the score of [CustomRankingInfo.ranking_expression][google.cloud.talent.v4.SearchJobsRequest.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];
getImportanceLevel
in interface SearchJobsRequest.CustomRankingInfoOrBuilder
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][google.cloud.talent.v4.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];
getRankingExpression
in interface SearchJobsRequest.CustomRankingInfoOrBuilder
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][google.cloud.talent.v4.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];
getRankingExpressionBytes
in interface SearchJobsRequest.CustomRankingInfoOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static SearchJobsRequest.CustomRankingInfo parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SearchJobsRequest.CustomRankingInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SearchJobsRequest.CustomRankingInfo parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SearchJobsRequest.CustomRankingInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SearchJobsRequest.CustomRankingInfo parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SearchJobsRequest.CustomRankingInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SearchJobsRequest.CustomRankingInfo parseFrom(InputStream input) throws IOException
IOException
public static SearchJobsRequest.CustomRankingInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static SearchJobsRequest.CustomRankingInfo parseDelimitedFrom(InputStream input) throws IOException
IOException
public static SearchJobsRequest.CustomRankingInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static SearchJobsRequest.CustomRankingInfo parseFrom(CodedInputStream input) throws IOException
IOException
public static SearchJobsRequest.CustomRankingInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public SearchJobsRequest.CustomRankingInfo.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static SearchJobsRequest.CustomRankingInfo.Builder newBuilder()
public static SearchJobsRequest.CustomRankingInfo.Builder newBuilder(SearchJobsRequest.CustomRankingInfo prototype)
public SearchJobsRequest.CustomRankingInfo.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected SearchJobsRequest.CustomRankingInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static SearchJobsRequest.CustomRankingInfo getDefaultInstance()
public static Parser<SearchJobsRequest.CustomRankingInfo> parser()
public Parser<SearchJobsRequest.CustomRankingInfo> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public SearchJobsRequest.CustomRankingInfo getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.