DiscoverPoints constructor

DiscoverPoints({
  1. String? collectionName,
  2. TargetVector? target,
  3. Iterable<ContextExamplePair>? context,
  4. Filter? filter,
  5. Int64? limit,
  6. WithPayloadSelector? withPayload,
  7. SearchParams? params,
  8. Int64? offset,
  9. String? using,
  10. WithVectorsSelector? withVectors,
  11. LookupLocation? lookupFrom,
  12. ReadConsistency? readConsistency,
  13. Int64? timeout,
  14. ShardKeySelector? shardKeySelector,
})

Implementation

factory DiscoverPoints({
  $core.String? collectionName,
  TargetVector? target,
  $core.Iterable<ContextExamplePair>? context,
  Filter? filter,
  $fixnum.Int64? limit,
  WithPayloadSelector? withPayload,
  SearchParams? params,
  $fixnum.Int64? offset,
  $core.String? using,
  WithVectorsSelector? withVectors,
  LookupLocation? lookupFrom,
  ReadConsistency? readConsistency,
  $fixnum.Int64? timeout,
  ShardKeySelector? shardKeySelector,
}) {
  final $result = create();
  if (collectionName != null) {
    $result.collectionName = collectionName;
  }
  if (target != null) {
    $result.target = target;
  }
  if (context != null) {
    $result.context.addAll(context);
  }
  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 (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 (timeout != null) {
    $result.timeout = timeout;
  }
  if (shardKeySelector != null) {
    $result.shardKeySelector = shardKeySelector;
  }
  return $result;
}