Reference documentation and code samples for the Compute V1 Client class Direction.
Direction of traffic to which this firewall applies, either INGRESS or EGRESS. The default is INGRESS. For EGRESS traffic, you cannot specify the sourceTags fields.
Protobuf type google.cloud.compute.v1.Firewall.Direction
Namespace
Google \ Cloud \ Compute \ V1 \ Firewall
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
UNDEFINED_DIRECTION
Value: 0
A value indicating that the enum field is not set.
Generated from protobuf enum UNDEFINED_DIRECTION = 0;
EGRESS
Value: 432880501
Indicates that firewall should apply to outgoing traffic.
Generated from protobuf enum EGRESS = 432880501;
INGRESS
Value: 516931221
Indicates that firewall should apply to incoming traffic.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-04-28 UTC."],[],[]]