QueryPoints constructor

QueryPoints({
  1. String? collectionName,
  2. Iterable<PrefetchQuery>? prefetch,
  3. Query? query,
  4. String? using,
  5. Filter? filter,
  6. SearchParams? params,
  7. double? scoreThreshold,
  8. Int64? limit,
  9. Int64? offset,
  10. WithVectorsSelector? withVectors,
  11. WithPayloadSelector? withPayload,
  12. ReadConsistency? readConsistency,
  13. ShardKeySelector? shardKeySelector,
  14. LookupLocation? lookupFrom,
  15. Int64? timeout,
})

Implementation

factory QueryPoints({
  $core.String? collectionName,
  $core.Iterable<PrefetchQuery>? prefetch,
  Query? query,
  $core.String? using,
  Filter? filter,
  SearchParams? params,
  $core.double? scoreThreshold,
  $fixnum.Int64? limit,
  $fixnum.Int64? offset,
  WithVectorsSelector? withVectors,
  WithPayloadSelector? withPayload,
  ReadConsistency? readConsistency,
  ShardKeySelector? shardKeySelector,
  LookupLocation? lookupFrom,
  $fixnum.Int64? timeout,
}) {
  final $result = create();
  if (collectionName != null) {
    $result.collectionName = collectionName;
  }
  if (prefetch != null) {
    $result.prefetch.addAll(prefetch);
  }
  if (query != null) {
    $result.query = query;
  }
  if (using != null) {
    $result.using = using;
  }
  if (filter != null) {
    $result.filter = filter;
  }
  if (params != null) {
    $result.params = params;
  }
  if (scoreThreshold != null) {
    $result.scoreThreshold = scoreThreshold;
  }
  if (limit != null) {
    $result.limit = limit;
  }
  if (offset != null) {
    $result.offset = offset;
  }
  if (withVectors != null) {
    $result.withVectors = withVectors;
  }
  if (withPayload != null) {
    $result.withPayload = withPayload;
  }
  if (readConsistency != null) {
    $result.readConsistency = readConsistency;
  }
  if (shardKeySelector != null) {
    $result.shardKeySelector = shardKeySelector;
  }
  if (lookupFrom != null) {
    $result.lookupFrom = lookupFrom;
  }
  if (timeout != null) {
    $result.timeout = timeout;
  }
  return $result;
}