QueryCorpusRequest class final

Request for querying a Corpus.

Inheritance
  • Object
  • ProtoMessage
  • QueryCorpusRequest

Constructors

QueryCorpusRequest({required String name, required String query, List<MetadataFilter> metadataFilters = const [], int resultsCount = 0})
QueryCorpusRequest.fromJson(Object? j)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
metadataFilters List<MetadataFilter>
Optional. Filter for Chunk and Document metadata. Each MetadataFilter object should correspond to a unique key. Multiple MetadataFilter objects are joined by logical "AND"s.
final
name String
Required. The name of the Corpus to query. Example: corpora/my-corpus-123
final
qualifiedName String
The fully qualified name of this message, i.e., google.protobuf.Duration or google.rpc.ErrorInfo.
finalinherited
query String
Required. Query string to perform semantic search.
final
resultsCount int
Optional. The maximum number of Chunks to return. The service may return fewer Chunks.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Object
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

fullyQualifiedName → const String