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.v4beta1.SearchJobsRequest.CustomRankingInfo
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchJobsRequest.CustomRankingInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SearchJobsRequest.CustomRankingInfo build()
Returns
buildPartial()
public SearchJobsRequest.CustomRankingInfo buildPartial()
Returns
clear()
public SearchJobsRequest.CustomRankingInfo.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public SearchJobsRequest.CustomRankingInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchJobsRequest.CustomRankingInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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 < 100 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
clone()
public SearchJobsRequest.CustomRankingInfo.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SearchJobsRequest.CustomRankingInfo getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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.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.
|
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 < 100 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 < 100 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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SearchJobsRequest.CustomRankingInfo other)
public SearchJobsRequest.CustomRankingInfo.Builder mergeFrom(SearchJobsRequest.CustomRankingInfo other)
Parameter
Returns
public SearchJobsRequest.CustomRankingInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SearchJobsRequest.CustomRankingInfo.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchJobsRequest.CustomRankingInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SearchJobsRequest.CustomRankingInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel importance_level = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
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.v4beta1.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.
|
Returns
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 < 100 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.
|
Returns
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 < 100 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.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchJobsRequest.CustomRankingInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchJobsRequest.CustomRankingInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides