RecommendPoints constructor

RecommendPoints({
  1. String? collectionName,
  2. Iterable<PointId>? positive,
  3. Iterable<PointId>? negative,
  4. Filter? filter,
  5. Int64? limit,
  6. WithPayloadSelector? withPayload,
  7. SearchParams? params,
  8. double? scoreThreshold,
  9. Int64? offset,
  10. String? using,
  11. WithVectorsSelector? withVectors,
  12. LookupLocation? lookupFrom,
  13. ReadConsistency? readConsistency,
  14. RecommendStrategy? strategy,
  15. Iterable<Vector>? positiveVectors,
  16. Iterable<Vector>? negativeVectors,
  17. Int64? timeout,
  18. ShardKeySelector? shardKeySelector,
})

Implementation

factory RecommendPoints({
  $core.String? collectionName,
  $core.Iterable<PointId>? positive,
  $core.Iterable<PointId>? negative,
  Filter? filter,
  $fixnum.Int64? limit,
  WithPayloadSelector? withPayload,
  SearchParams? params,
  $core.double? scoreThreshold,
  $fixnum.Int64? offset,
  $core.String? using,
  WithVectorsSelector? withVectors,
  LookupLocation? lookupFrom,
  ReadConsistency? readConsistency,
  RecommendStrategy? strategy,
  $core.Iterable<Vector>? positiveVectors,
  $core.Iterable<Vector>? negativeVectors,
  $fixnum.Int64? timeout,
  ShardKeySelector? shardKeySelector,
}) {
  final $result = create();
  if (collectionName != null) {
    $result.collectionName = collectionName;
  }
  if (positive != null) {
    $result.positive.addAll(positive);
  }
  if (negative != null) {
    $result.negative.addAll(negative);
  }
  if (filter != null) {
    $result.filter = filter;
  }
  if (limit != null) {
    $result.limit = limit;
  }
  if (withPayload != null) {
    $result.withPayload = withPayload;
  }
  if (params != null) {
    $result.params = params;
  }
  if (scoreThreshold != null) {
    $result.scoreThreshold = scoreThreshold;
  }
  if (offset != null) {
    $result.offset = offset;
  }
  if (using != null) {
    $result.using = using;
  }
  if (withVectors != null) {
    $result.withVectors = withVectors;
  }
  if (lookupFrom != null) {
    $result.lookupFrom = lookupFrom;
  }
  if (readConsistency != null) {
    $result.readConsistency = readConsistency;
  }
  if (strategy != null) {
    $result.strategy = strategy;
  }
  if (positiveVectors != null) {
    $result.positiveVectors.addAll(positiveVectors);
  }
  if (negativeVectors != null) {
    $result.negativeVectors.addAll(negativeVectors);
  }
  if (timeout != null) {
    $result.timeout = timeout;
  }
  if (shardKeySelector != null) {
    $result.shardKeySelector = shardKeySelector;
  }
  return $result;
}