# Google Cloud Spanner v1 API - Class RequestOptions (5.13.0-beta07)

5.13.0-beta07 5.13.0-beta06 5.12.0 (latest) 5.11.0 5.10.0 5.9.0 5.8.0 5.7.0 5.6.0 5.5.0 5.4.0 5.3.0 5.2.0 5.1.0 5.0.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.0 3.15.1 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0

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

Reference documentation and code samples for the Google Cloud Spanner v1 API class RequestOptions.

Common request options for various APIs.

## Inheritance

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

## Implements

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

## 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.Spanner.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1)

## Assembly

Google.Cloud.Spanner.V1.dll

## Constructors

### RequestOptions()

    public RequestOptions()

### RequestOptions(RequestOptions)

    public RequestOptions(RequestOptions other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.RequestOptions` |

## Properties

### ClientContext

    public RequestOptions.Types.ClientContext ClientContext { get; set; }

Optional. Optional context that may be needed for some requests.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.RequestOptionshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.RequestOptions.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.RequestOptions.Types.ClientContext` |   |

### Priority

    public RequestOptions.Types.Priority Priority { get; set; }

Priority for the request.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.RequestOptionshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.RequestOptions.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.RequestOptions.Types.Priority` |   |

### RequestTag

    public string RequestTag { get; set; }

A per-request tag which can be applied to queries or reads, used for
statistics collection.
Both `request_tag` and `transaction_tag` can be specified for a read or
query that belongs to a transaction.
This field is ignored for requests where it's not applicable (for example,
`CommitRequest`).
Legal characters for `request_tag` values are all printable characters
(ASCII 32 - 126) and the length of a request_tag is limited to 50
characters. Values that exceed this limit are truncated.
Any leading underscore (_) characters are removed from the string.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### TransactionTag

    public string TransactionTag { get; set; }

A tag used for statistics collection about this transaction.
Both `request_tag` and `transaction_tag` can be specified for a read or
query that belongs to a transaction.
To enable tagging on a transaction, `transaction_tag` must be set to the
same value for all requests belonging to the same transaction, including
\[BeginTransaction\]\[google.spanner.v1.Spanner.BeginTransaction\].
If this request doesn't belong to any transaction, `transaction_tag` is
ignored.
Legal characters for `transaction_tag` values are all printable characters
(ASCII 32 - 126) and the length of a `transaction_tag` is limited to 50
characters. Values that exceed this limit are truncated.
Any leading underscore (_) characters are removed from the string.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |