1.0.0-beta02 (latest) 1.0.0-beta01

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

Reference documentation and code samples for the Network Connectivity v1beta API class GatewayAdvertisedRoute.

A gateway advertised route is a route that a gateway spoke advertises
somewhere.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.NetworkConnectivity.V1Beta.dll

## Constructors

### GatewayAdvertisedRoute()

    public GatewayAdvertisedRoute()

### GatewayAdvertisedRoute(GatewayAdvertisedRoute)

    public GatewayAdvertisedRoute(GatewayAdvertisedRoute other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1Beta/latest/Google.Cloud.NetworkConnectivity.V1Beta.GatewayAdvertisedRoute` |

## Properties

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The time the gateway advertised route was created.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### Description

    public string Description { get; set; }

An optional description of the gateway advertised route.

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

### GatewayAdvertisedRouteName

    public GatewayAdvertisedRouteName GatewayAdvertisedRouteName { get; set; }

[GatewayAdvertisedRouteName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1Beta/latest/Google.Cloud.NetworkConnectivity.V1Beta.GatewayAdvertisedRouteName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1Beta/latest/Google.Cloud.NetworkConnectivity.V1Beta.GatewayAdvertisedRoute#Google_Cloud_NetworkConnectivity_V1Beta_GatewayAdvertisedRoute_Name) resource name
property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1Beta/latest/Google.Cloud.NetworkConnectivity.V1Beta.GatewayAdvertisedRouteName` |   |

### HasPriority

    public bool HasPriority { get; }

Gets whether the "priority" field is set

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

### IpRange

    public string IpRange { get; set; }

Immutable. This route's advertised IP address range. Must be a valid
CIDR-formatted prefix. If an IP address is provided without a subnet mask,
it is interpreted as, for IPv4, a `/32` singular IP address range, and, for
IPv6,
`/128`.

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

### Labels

    public MapField<string, string> Labels { get; }

Optional labels in key-value pair format. For more information about
labels, see [Requirements for
labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### Name

    public string Name { get; set; }

Identifier. The name of the gateway advertised route. Route names must be
unique and use the following form:
`projects/{project_number}/locations/{region}/spokes/{spoke}/gatewayAdvertisedRoutes/{gateway_advertised_route_id}`

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

### Priority

    public int Priority { get; set; }

Optional. The priority of this advertised route. You can choose a value
from `0` to `65335`. If you don't provide a value, Google Cloud assigns a
priority of `100` to the ranges.

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

### Recipient

    public GatewayAdvertisedRoute.Types.Recipient Recipient { get; set; }

Optional. The recipient of this advertised route.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1Beta/latest/Google.Cloud.NetworkConnectivity.V1Beta.GatewayAdvertisedRoutehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1Beta/latest/Google.Cloud.NetworkConnectivity.V1Beta.GatewayAdvertisedRoute.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1Beta/latest/Google.Cloud.NetworkConnectivity.V1Beta.GatewayAdvertisedRoute.Types.Recipient` |   |

### State

    public State State { get; set; }

Output only. The current lifecycle state of this gateway advertised route.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1Beta/latest/Google.Cloud.NetworkConnectivity.V1Beta.State` |   |

### UniqueId

    public string UniqueId { get; set; }

Output only. The Google-generated UUID for the gateway advertised route.
This value is unique across all gateway advertised route resources. If a
gateway advertised route is deleted and another with the same name is
created, the new route is assigned a different `unique_id`.

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

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The time the gateway advertised route was last updated.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |