public static final class SearchJobsRequest.CustomRankingInfo.Builder extends GeneratedMessageV3.Builder<SearchJobsRequest.CustomRankingInfo.Builder> implements SearchJobsRequest.CustomRankingInfoOrBuilder
Custom ranking information for
SearchJobsRequest.
Protobuf type google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchJobsRequest.CustomRankingInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SearchJobsRequest.CustomRankingInfo build()
buildPartial()
public SearchJobsRequest.CustomRankingInfo buildPartial()
clear()
public SearchJobsRequest.CustomRankingInfo.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public SearchJobsRequest.CustomRankingInfo.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearImportanceLevel()
public SearchJobsRequest.CustomRankingInfo.Builder clearImportanceLevel()
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchJobsRequest.CustomRankingInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearRankingExpression()
public SearchJobsRequest.CustomRankingInfo.Builder clearRankingExpression()
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];
clone()
public SearchJobsRequest.CustomRankingInfo.Builder clone()
Overrides
getDefaultInstanceForType()
public SearchJobsRequest.CustomRankingInfo getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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];
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 |
---|
Type | Description |
int | The enum numeric value on the wire for importanceLevel.
|
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SearchJobsRequest.CustomRankingInfo other)
public SearchJobsRequest.CustomRankingInfo.Builder mergeFrom(SearchJobsRequest.CustomRankingInfo other)
public SearchJobsRequest.CustomRankingInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SearchJobsRequest.CustomRankingInfo.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchJobsRequest.CustomRankingInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SearchJobsRequest.CustomRankingInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setImportanceLevel(SearchJobsRequest.CustomRankingInfo.ImportanceLevel value)
public SearchJobsRequest.CustomRankingInfo.Builder setImportanceLevel(SearchJobsRequest.CustomRankingInfo.ImportanceLevel value)
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];
setImportanceLevelValue(int value)
public SearchJobsRequest.CustomRankingInfo.Builder setImportanceLevelValue(int value)
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];
Parameter |
---|
Name | Description |
value | int
The enum numeric value on the wire for importanceLevel to set.
|
setRankingExpression(String value)
public SearchJobsRequest.CustomRankingInfo.Builder setRankingExpression(String value)
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];
Parameter |
---|
Name | Description |
value | String
The rankingExpression to set.
|
setRankingExpressionBytes(ByteString value)
public SearchJobsRequest.CustomRankingInfo.Builder setRankingExpressionBytes(ByteString value)
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];
Parameter |
---|
Name | Description |
value | ByteString
The bytes for rankingExpression to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchJobsRequest.CustomRankingInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchJobsRequest.CustomRankingInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides