SearchAndFetchVectorsHit_ constructor

SearchAndFetchVectorsHit_({
  1. String? id,
  2. double? score,
  3. Iterable<Metadata_>? metadata,
  4. Vector_? vector,
})

Implementation

factory SearchAndFetchVectorsHit_({
  $core.String? id,
  $core.double? score,
  $core.Iterable<Metadata_>? metadata,
  Vector_? vector,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (score != null) {
    $result.score = score;
  }
  if (metadata != null) {
    $result.metadata.addAll(metadata);
  }
  if (vector != null) {
    $result.vector = vector;
  }
  return $result;
}