SearchAndFetchVectorsRequest_ constructor

SearchAndFetchVectorsRequest_({
  1. String? indexName,
  2. int? topK,
  3. Vector_? queryVector,
  4. MetadataRequest_? metadataFields,
  5. double? scoreThreshold,
  6. 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;
}