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
ChunkandDocumentmetadata. EachMetadataFilterobject should correspond to a unique key. MultipleMetadataFilterobjects are joined by logical "AND"s.final - name → String
-
Required. The name of the
Corpusto query. Example:corpora/my-corpus-123final - qualifiedName → String
-
The fully qualified name of this message, i.e.,
google.protobuf.Durationorgoogle.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 fewerChunks.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