# Compute Engine v1 API - Class NetworkRoutingConfig (3.28.0)

3.28.0 (latest) 3.27.0 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 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 3.4.0 3.3.0 3.2.0 3.1.0 3.0.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.4.0 1.3.0 1.2.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Compute Engine v1 API class NetworkRoutingConfig.

A routing configuration attached to a network resource. The message
includes the list of routers associated with the network, and a flag
indicating the type of routing behavior to enforce network-wide.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.Compute.V1.dll

## Constructors

### NetworkRoutingConfig()

    public NetworkRoutingConfig()

### NetworkRoutingConfig(NetworkRoutingConfig)

    public NetworkRoutingConfig(NetworkRoutingConfig other)

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

## Properties

### BgpAlwaysCompareMed

    public bool BgpAlwaysCompareMed { get; set; }

Enable comparison of Multi-Exit Discriminators (MED) across routes with
different neighbor ASNs when using the STANDARD BGP best path selection
algorithm.

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

### BgpBestPathSelectionMode

    public string BgpBestPathSelectionMode { get; set; }

The BGP best path selection algorithm to be employed within this network
for dynamic routes learned by Cloud Routers. Can be LEGACY
(default) or STANDARD.
Check the BgpBestPathSelectionMode enum for the list of possible values.

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

### BgpInterRegionCost

    public string BgpInterRegionCost { get; set; }

Allows to define a preferred approach for handling inter-region cost in
the selection process when using the STANDARD BGP best path
selection algorithm. Can be DEFAULT orADD_COST_TO_MED.
Check the BgpInterRegionCost enum for the list of possible values.

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

### EffectiveBgpAlwaysCompareMed

    public bool EffectiveBgpAlwaysCompareMed { get; set; }

Output only. \[Output Only\] Effective value of the bgp_always_compare_med
field.

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

### EffectiveBgpInterRegionCost

    public string EffectiveBgpInterRegionCost { get; set; }

Output only. \[Output Only\] Effective value of the bgp_inter_region_cost
field.
Check the EffectiveBgpInterRegionCost enum for the list of possible values.

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

### HasBgpAlwaysCompareMed

    public bool HasBgpAlwaysCompareMed { get; }

Gets whether the "bgp_always_compare_med" field is set

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

### HasBgpBestPathSelectionMode

    public bool HasBgpBestPathSelectionMode { get; }

Gets whether the "bgp_best_path_selection_mode" field is set

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

### HasBgpInterRegionCost

    public bool HasBgpInterRegionCost { get; }

Gets whether the "bgp_inter_region_cost" field is set

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

### HasEffectiveBgpAlwaysCompareMed

    public bool HasEffectiveBgpAlwaysCompareMed { get; }

Gets whether the "effective_bgp_always_compare_med" field is set

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

### HasEffectiveBgpInterRegionCost

    public bool HasEffectiveBgpInterRegionCost { get; }

Gets whether the "effective_bgp_inter_region_cost" field is set

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

### HasRoutingMode

    public bool HasRoutingMode { get; }

Gets whether the "routing_mode" field is set

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

### RoutingMode

    public string RoutingMode { get; set; }

The network-wide routing mode to use. If set to REGIONAL,
this network's Cloud Routers will only advertise routes with subnets
of this network in the same region as the router. If set toGLOBAL, this network's Cloud Routers will advertise
routes with all subnets of this network, across regions.
Check the RoutingMode enum for the list of possible values.

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