RecommendPointGroups constructor

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

Implementation

factory RecommendPointGroups({
  $core.String? collectionName,
  $core.Iterable<PointId>? positive,
  $core.Iterable<PointId>? negative,
  Filter? filter,
  $core.int? limit,
  WithPayloadSelector? withPayload,
  SearchParams? params,
  $core.double? scoreThreshold,
  $core.String? using,
  WithVectorsSelector? withVectors,
  LookupLocation? lookupFrom,
  $core.String? groupBy,
  $core.int? groupSize,
  ReadConsistency? readConsistency,
  WithLookup? withLookup,
  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 (using != null) {
    $result.using = using;
  }
  if (withVectors != null) {
    $result.withVectors = withVectors;
  }
  if (lookupFrom != null) {
    $result.lookupFrom = lookupFrom;
  }
  if (groupBy != null) {
    $result.groupBy = groupBy;
  }
  if (groupSize != null) {
    $result.groupSize = groupSize;
  }
  if (readConsistency != null) {
    $result.readConsistency = readConsistency;
  }
  if (withLookup != null) {
    $result.withLookup = withLookup;
  }
  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;
}