# Google Cloud Network Management V1 Client - Class FirewallInfo (2.9.2)

2.9.2 (latest) 2.9.1 2.8.0 2.7.0 2.6.1 2.5.0 2.4.2 2.3.2 2.2.1 2.1.1 2.0.1 1.7.3 1.5.0 1.4.2 1.3.0 1.2.0 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Network Management V1 Client class FirewallInfo.

For display only. Metadata associated with a VPC firewall rule, an implied
VPC firewall rule, or a firewall policy rule.

Generated from protobuf message `google.cloud.networkmanagement.v1.FirewallInfo`

## Namespace

Google \\ Cloud \\ NetworkManagement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ display_name` | `string` The display name of the firewall rule. This field might be empty for firewall policy rules. |
| `↳ uri` | `string` The URI of the firewall rule. This field is not applicable to implied VPC firewall rules. |
| `↳ direction` | `string` Possible values: INGRESS, EGRESS |
| `↳ action` | `string` Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP |
| `↳ priority` | `int` The priority of the firewall rule. |
| `↳ network_uri` | `string` The URI of the VPC network that the firewall rule is associated with. This field is not applicable to hierarchical firewall policy rules. |
| `↳ target_tags` | `string[]` The target tags defined by the VPC firewall rule. This field is not applicable to firewall policy rules. |
| `↳ target_service_accounts` | `string[]` The target service accounts specified by the firewall rule. |
| `↳ policy` | `string` The name of the firewall policy that this rule is associated with. This field is not applicable to VPC firewall rules and implied VPC firewall rules. |
| `↳ policy_uri` | `string` The URI of the firewall policy that this rule is associated with. This field is not applicable to VPC firewall rules and implied VPC firewall rules. |
| `↳ firewall_rule_type` | `int` The firewall rule's type. |
| `↳ policy_priority` | `int` The priority of the firewall policy that this rule is associated with. This field is not applicable to VPC firewall rules and implied VPC firewall rules. |
| `↳ target_type` | `int` Target type of the firewall rule. |

### getDisplayName

The display name of the firewall rule. This field might be empty for
firewall policy rules.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDisplayName

The display name of the firewall rule. This field might be empty for
firewall policy rules.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUri

The URI of the firewall rule. This field is not applicable to implied
VPC firewall rules.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setUri

The URI of the firewall rule. This field is not applicable to implied
VPC firewall rules.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDirection

Possible values: INGRESS, EGRESS

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDirection

Possible values: INGRESS, EGRESS

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAction

Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setAction

Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPriority

The priority of the firewall rule.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setPriority

The priority of the firewall rule.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNetworkUri

The URI of the VPC network that the firewall rule is associated with.

This field is not applicable to hierarchical firewall policy rules.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setNetworkUri

The URI of the VPC network that the firewall rule is associated with.

This field is not applicable to hierarchical firewall policy rules.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTargetTags

The target tags defined by the VPC firewall rule. This field is not
applicable to firewall policy rules.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setTargetTags

The target tags defined by the VPC firewall rule. This field is not
applicable to firewall policy rules.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTargetServiceAccounts

The target service accounts specified by the firewall rule.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setTargetServiceAccounts

The target service accounts specified by the firewall rule.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPolicy

The name of the firewall policy that this rule is associated with.

This field is not applicable to VPC firewall rules and implied VPC firewall
rules.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPolicy

The name of the firewall policy that this rule is associated with.

This field is not applicable to VPC firewall rules and implied VPC firewall
rules.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPolicyUri

The URI of the firewall policy that this rule is associated with.

This field is not applicable to VPC firewall rules and implied VPC firewall
rules.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPolicyUri

The URI of the firewall policy that this rule is associated with.

This field is not applicable to VPC firewall rules and implied VPC firewall
rules.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFirewallRuleType

The firewall rule's type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [FirewallRuleType](https://docs.cloud.google.com/php/docs/reference/cloud-network-management/latest/V1.FirewallInfo.FirewallRuleType). |

### setFirewallRuleType

The firewall rule's type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [FirewallRuleType](https://docs.cloud.google.com/php/docs/reference/cloud-network-management/latest/V1.FirewallInfo.FirewallRuleType). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPolicyPriority

The priority of the firewall policy that this rule is associated with.

This field is not applicable to VPC firewall rules and implied VPC firewall
rules.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setPolicyPriority

The priority of the firewall policy that this rule is associated with.

This field is not applicable to VPC firewall rules and implied VPC firewall
rules.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTargetType

Target type of the firewall rule.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [TargetType](https://docs.cloud.google.com/php/docs/reference/cloud-network-management/latest/V1.FirewallInfo.TargetType). |

### setTargetType

Target type of the firewall rule.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [TargetType](https://docs.cloud.google.com/php/docs/reference/cloud-network-management/latest/V1.FirewallInfo.TargetType). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |