public static final class SearchRequest.CustomRankingParams extends GeneratedMessage implements SearchRequest.CustomRankingParamsOrBuilderConfiguration parameters for the Custom Ranking feature.
Protobuf type google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > SearchRequest.CustomRankingParamsImplements
SearchRequest.CustomRankingParamsOrBuilderStatic Fields
EXPRESSIONS_TO_PRECOMPUTE_FIELD_NUMBER
public static final int EXPRESSIONS_TO_PRECOMPUTE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static SearchRequest.CustomRankingParams getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
SearchRequest.CustomRankingParams |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static SearchRequest.CustomRankingParams.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
SearchRequest.CustomRankingParams.Builder |
|
newBuilder(SearchRequest.CustomRankingParams prototype)
public static SearchRequest.CustomRankingParams.Builder newBuilder(SearchRequest.CustomRankingParams prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
SearchRequest.CustomRankingParams |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.CustomRankingParams.Builder |
|
parseDelimitedFrom(InputStream input)
public static SearchRequest.CustomRankingParams parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.CustomRankingParams |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.CustomRankingParams parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.CustomRankingParams |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static SearchRequest.CustomRankingParams parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.CustomRankingParams |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.CustomRankingParams parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.CustomRankingParams |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static SearchRequest.CustomRankingParams parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.CustomRankingParams |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.CustomRankingParams parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.CustomRankingParams |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static SearchRequest.CustomRankingParams parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.CustomRankingParams |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.CustomRankingParams parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.CustomRankingParams |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static SearchRequest.CustomRankingParams parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.CustomRankingParams |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.CustomRankingParams parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.CustomRankingParams |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static SearchRequest.CustomRankingParams parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.CustomRankingParams |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.CustomRankingParams parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.CustomRankingParams |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<SearchRequest.CustomRankingParams> parser()| Returns | |
|---|---|
| Type | Description |
Parser<CustomRankingParams> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public SearchRequest.CustomRankingParams getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SearchRequest.CustomRankingParams |
|
getExpressionsToPrecompute(int index)
public String getExpressionsToPrecompute(int index) Optional. A list of ranking expressions (see ranking_expression for the
syntax documentation) to evaluate. The evaluation results will be
returned in
SearchResponse.SearchResult.rank_signals.precomputed_expression_values
field.
repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The expressionsToPrecompute at the given index. |
getExpressionsToPrecomputeBytes(int index)
public ByteString getExpressionsToPrecomputeBytes(int index) Optional. A list of ranking expressions (see ranking_expression for the
syntax documentation) to evaluate. The evaluation results will be
returned in
SearchResponse.SearchResult.rank_signals.precomputed_expression_values
field.
repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the expressionsToPrecompute at the given index. |
getExpressionsToPrecomputeCount()
public int getExpressionsToPrecomputeCount() Optional. A list of ranking expressions (see ranking_expression for the
syntax documentation) to evaluate. The evaluation results will be
returned in
SearchResponse.SearchResult.rank_signals.precomputed_expression_values
field.
repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of expressionsToPrecompute. |
getExpressionsToPrecomputeList()
public ProtocolStringList getExpressionsToPrecomputeList() Optional. A list of ranking expressions (see ranking_expression for the
syntax documentation) to evaluate. The evaluation results will be
returned in
SearchResponse.SearchResult.rank_signals.precomputed_expression_values
field.
repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the expressionsToPrecompute. |
getParserForType()
public Parser<SearchRequest.CustomRankingParams> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<CustomRankingParams> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public SearchRequest.CustomRankingParams.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
SearchRequest.CustomRankingParams.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected SearchRequest.CustomRankingParams.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
SearchRequest.CustomRankingParams.Builder |
|
toBuilder()
public SearchRequest.CustomRankingParams.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
SearchRequest.CustomRankingParams.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|