1.3.0 (latest) 1.2.0 1.1.0 1.0.0

    public sealed class TextQuery : IMessage<TextQuery>, IEquatable<TextQuery>, IDeepCloneable<TextQuery>, IBufferMessage, IMessage

Reference documentation and code samples for the Vector Search v1 API class TextQuery.

A leaf-level text query targeting one or more data fields. When multiple
fields are specified, this is equivalent to combining per-field matches with
an OR operator (i.e. the query matches if the text is found in any of the
listed fields).

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> TextQuery

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[TextQuery](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.TextQuery.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TextQuery](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.TextQuery.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[TextQuery](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.TextQuery.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.VectorSearch.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.md.txt)

## Assembly

Google.Cloud.VectorSearch.V1.dll

## Constructors

### TextQuery()

    public TextQuery()

### TextQuery(TextQuery)

    public TextQuery(TextQuery other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `TextQuery` |

## Properties

### Fields

    public RepeatedField<string> Fields { get; }

Required. The data fields to search against.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### MatchType

    public TextQuery.Types.MatchType MatchType { get; set; }

Optional. The matching strategy to apply for this query. If unset, defaults
to `TEXT`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `TextQueryTypesMatchType` |   |

### QueryEnhancement

    public QueryEnhancement QueryEnhancement { get; set; }

Optional. The query enhancement settings to apply for this query.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `QueryEnhancement` |   |

### Text

    public string Text { get; set; }

Required. The text to search for.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |