# Compute Engine v1 API - Class FirewallPolicyRuleMatcher (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 FirewallPolicyRuleMatcher : IMessage<FirewallPolicyRuleMatcher>, IEquatable<FirewallPolicyRuleMatcher>, IDeepCloneable<FirewallPolicyRuleMatcher>, IBufferMessage, IMessage

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

Represents a match condition that incoming traffic is evaluated against.
Exactly one field must be specified.

## Inheritance

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

## Implements

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

### FirewallPolicyRuleMatcher()

    public FirewallPolicyRuleMatcher()

### FirewallPolicyRuleMatcher(FirewallPolicyRuleMatcher)

    public FirewallPolicyRuleMatcher(FirewallPolicyRuleMatcher other)

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

## Properties

### DestAddressGroups

    public RepeatedField<string> DestAddressGroups { get; }

Address groups which should be matched against the traffic destination.
Maximum number of destination address groups is 10.

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

### DestFqdns

    public RepeatedField<string> DestFqdns { get; }

Fully Qualified Domain Name (FQDN) which should be matched against
traffic destination.
Maximum number of destination fqdn allowed is 100.

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

### DestIpRanges

    public RepeatedField<string> DestIpRanges { get; }

CIDR IP address range.
Maximum number of destination CIDR IP ranges allowed is 5000.

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

### DestNetworkContext

    public string DestNetworkContext { get; set; }

Network context of the traffic destination. Allowed values are:

     - UNSPECIFIED
     - INTERNET
     - NON_INTERNET

Check the DestNetworkContext enum for the list of possible values.

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

### DestNetworkType

    public string DestNetworkType { get; set; }

Network type of the traffic destination. Allowed values are:

     - UNSPECIFIED
     - INTERNET
     - NON_INTERNET

Check the DestNetworkType enum for the list of possible values.

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

### DestRegionCodes

    public RepeatedField<string> DestRegionCodes { get; }

Region codes whose IP addresses will be used to match for destination
of traffic. Should be specified as 2 letter country code defined as per
ISO 3166 alpha-2 country codes. ex."US"
Maximum number of dest region codes allowed is 5000.

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

### DestThreatIntelligences

    public RepeatedField<string> DestThreatIntelligences { get; }

Names of Network Threat Intelligence lists.
The IPs in these lists will be matched against traffic destination.

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

### HasDestNetworkContext

    public bool HasDestNetworkContext { get; }

Gets whether the "dest_network_context" field is set

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

### HasDestNetworkType

    public bool HasDestNetworkType { get; }

Gets whether the "dest_network_type" field is set

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

### HasSrcNetworkContext

    public bool HasSrcNetworkContext { get; }

Gets whether the "src_network_context" field is set

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

### HasSrcNetworkType

    public bool HasSrcNetworkType { get; }

Gets whether the "src_network_type" field is set

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

### Layer4Configs

    public RepeatedField<FirewallPolicyRuleMatcherLayer4Config> Layer4Configs { get; }

Pairs of IP protocols and ports that the rule should match.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRuleMatcherLayer4Config` |   |

### SrcAddressGroups

    public RepeatedField<string> SrcAddressGroups { get; }

Address groups which should be matched against the traffic source.
Maximum number of source address groups is 10.

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

### SrcFqdns

    public RepeatedField<string> SrcFqdns { get; }

Fully Qualified Domain Name (FQDN) which should be matched against
traffic source.
Maximum number of source fqdn allowed is 100.

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

### SrcIpRanges

    public RepeatedField<string> SrcIpRanges { get; }

CIDR IP address range.
Maximum number of source CIDR IP ranges allowed is 5000.

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

### SrcNetworkContext

    public string SrcNetworkContext { get; set; }

Network context of the traffic source. Allowed values are:

     - UNSPECIFIED
     - INTERNET
     - INTRA_VPC
     - NON_INTERNET
     - VPC_NETWORKS

Check the SrcNetworkContext enum for the list of possible values.

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

### SrcNetworkType

    public string SrcNetworkType { get; set; }

Network type of the traffic source. Allowed values are:

     - UNSPECIFIED
     - INTERNET
     - INTRA_VPC
     - NON_INTERNET
     - VPC_NETWORKS

Check the SrcNetworkType enum for the list of possible values.

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

### SrcNetworks

    public RepeatedField<string> SrcNetworks { get; }

Networks of the traffic source. It can be either a full or partial url.

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

### SrcRegionCodes

    public RepeatedField<string> SrcRegionCodes { get; }

Region codes whose IP addresses will be used to match for source
of traffic. Should be specified as 2 letter country code defined as per
ISO 3166 alpha-2 country codes. ex."US"
Maximum number of source region codes allowed is 5000.

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

### SrcSecureTags

    public RepeatedField<FirewallPolicyRuleSecureTag> SrcSecureTags { get; }

List of secure tag values, which should be matched at the source
of the traffic.
For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
and there is no srcIpRange, this rule will be ignored.
Maximum number of source tag values allowed is 256.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.FirewallPolicyRuleSecureTag` |   |

### SrcThreatIntelligences

    public RepeatedField<string> SrcThreatIntelligences { get; }

Names of Network Threat Intelligence lists.
The IPs in these lists will be matched against traffic source.

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