3.0.0-beta09 (latest) 3.0.0-beta08 2.0.0-beta08

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

Reference documentation and code samples for the Google Cloud Tasks v2beta3 API class UriOverride.

URI Override.

When specified, all the HTTP tasks inside the queue will be partially or
fully overridden depending on the configured values.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[UriOverride](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.UriOverride), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[UriOverride](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.UriOverride), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[UriOverride](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.UriOverride), [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.Tasks.V2Beta3](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3)

## Assembly

Google.Cloud.Tasks.V2Beta3.dll

## Constructors

### UriOverride()

    public UriOverride()

### UriOverride(UriOverride)

    public UriOverride(UriOverride other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.UriOverride` |

## Properties

### HasHost

    public bool HasHost { get; }

Gets whether the "host" field is set

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

### HasPort

    public bool HasPort { get; }

Gets whether the "port" field is set

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

### HasScheme

    public bool HasScheme { get; }

Gets whether the "scheme" field is set

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

### Host

    public string Host { get; set; }

Host override.

When specified, replaces the host part of the task URL. For example,
if the task URL is "<https://www.google.com>," and host value is set to
"example.net", the overridden URI will be changed to "<https://example.net>."
Host value cannot be an empty string (INVALID_ARGUMENT).

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

### PathOverride

    public PathOverride PathOverride { get; set; }

URI path.

When specified, replaces the existing path of the task URL. Setting the
path value to an empty string clears the URI path segment.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.PathOverride` |   |

### Port

    public long Port { get; set; }

Port override.

When specified, replaces the port part of the task URI. For instance,
for a URI "<https://www.example.com/example>" and port=123, the overridden
URI becomes "<https://www.example.com:123/example>". Note that the port value
must be a positive integer. Setting the port to 0 (Zero) clears the URI
port.

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

### QueryOverride

    public QueryOverride QueryOverride { get; set; }

URI Query.

When specified, replaces the query part of the task URI. Setting the
query value to an empty string clears the URI query segment.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.QueryOverride` |   |

### Scheme

    public UriOverride.Types.Scheme Scheme { get; set; }

Scheme override.

When specified, the task URI scheme is replaced by the provided value (HTTP
or HTTPS).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.UriOverridehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.UriOverride.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.UriOverride.Types.Scheme` |   |

### UriOverrideEnforceMode

    public UriOverride.Types.UriOverrideEnforceMode UriOverrideEnforceMode { get; set; }

URI Override Enforce Mode

When specified, determines the Target UriOverride mode. If not specified,
it defaults to ALWAYS.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.UriOverridehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.UriOverride.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.UriOverride.Types.UriOverrideEnforceMode` |   |