SearchAndFetchVectorsRequest_ constructor
SearchAndFetchVectorsRequest_({
- String? indexName,
- int? topK,
- Vector_? queryVector,
- MetadataRequest_? metadataFields,
- double? scoreThreshold,
- NoScoreThreshold_? noScoreThreshold,
Implementation
factory SearchAndFetchVectorsRequest_({
$core.String? indexName,
$core.int? topK,
Vector_? queryVector,
MetadataRequest_? metadataFields,
$core.double? scoreThreshold,
NoScoreThreshold_? noScoreThreshold,
}) {
final $result = create();
if (indexName != null) {
$result.indexName = indexName;
}
if (topK != null) {
$result.topK = topK;
}
if (queryVector != null) {
$result.queryVector = queryVector;
}
if (metadataFields != null) {
$result.metadataFields = metadataFields;
}
if (scoreThreshold != null) {
$result.scoreThreshold = scoreThreshold;
}
if (noScoreThreshold != null) {
$result.noScoreThreshold = noScoreThreshold;
}
return $result;
}