2.22.0 (latest) 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Network Management v1 API class NatInfo.

For display only. Metadata associated with NAT.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.NetworkManagement.V1.dll

## Constructors

### NatInfo()

    public NatInfo()

### NatInfo(NatInfo)

    public NatInfo(NatInfo other)

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

## Properties

### CloudNatGatewayType

    public NatInfo.Types.CloudNatGatewayType CloudNatGatewayType { get; set; }

Type of Cloud NAT gateway. Only valid when `type` is CLOUD_NAT.

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

### NatGatewayName

    public string NatGatewayName { get; set; }

The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.

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

### NetworkUri

    public string NetworkUri { get; set; }

URI of the network where NAT translation takes place.

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

### NewDestinationIp

    public string NewDestinationIp { get; set; }

Destination IP address after NAT translation.

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

### NewDestinationPort

    public int NewDestinationPort { get; set; }

Destination port after NAT translation. Only valid when protocol is TCP or
UDP.

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

### NewSourceIp

    public string NewSourceIp { get; set; }

Source IP address after NAT translation.

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

### NewSourcePort

    public int NewSourcePort { get; set; }

Source port after NAT translation. Only valid when protocol is TCP or UDP.

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

### OldDestinationIp

    public string OldDestinationIp { get; set; }

Destination IP address before NAT translation.

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

### OldDestinationPort

    public int OldDestinationPort { get; set; }

Destination port before NAT translation. Only valid when protocol is TCP or
UDP.

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

### OldSourceIp

    public string OldSourceIp { get; set; }

Source IP address before NAT translation.

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

### OldSourcePort

    public int OldSourcePort { get; set; }

Source port before NAT translation. Only valid when protocol is TCP or UDP.

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

### Protocol

    public string Protocol { get; set; }

IP protocol in string format, for example: "TCP", "UDP", "ICMP".

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

### RouterUri

    public string RouterUri { get; set; }

Uri of the Cloud Router. Only valid when type is CLOUD_NAT.

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

### Type

    public NatInfo.Types.Type Type { get; set; }

Type of NAT.

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