public sealed class PacketMirroringFilter : IMessage<PacketMirroringFilter>, IEquatable<PacketMirroringFilter>, IDeepCloneable<PacketMirroringFilter>, IBufferMessage, IMessage
One or more IPv4 or IPv6 CIDR ranges that apply as filters on the source (ingress) or destination (egress) IP in the IP header. If no ranges are specified, all IPv4 traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use "0.0.0.0/0,::/0".
Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored.
[[["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 2025-08-08 UTC."],[[["\u003cp\u003eThe page details the \u003ccode\u003ePacketMirroringFilter\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e namespace, specifically version 2.16.0 of the library, with links to prior versions ranging from 1.0.0 to 3.6.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePacketMirroringFilter\u003c/code\u003e implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors: a default constructor \u003ccode\u003ePacketMirroringFilter()\u003c/code\u003e and an overloaded constructor \u003ccode\u003ePacketMirroringFilter(PacketMirroringFilter other)\u003c/code\u003e to create a new object based on an existing \u003ccode\u003ePacketMirroringFilter\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003ePacketMirroringFilter\u003c/code\u003e include \u003ccode\u003eCidrRanges\u003c/code\u003e and \u003ccode\u003eIPProtocols\u003c/code\u003e, both utilizing \u003ccode\u003eRepeatedField\u003c/code\u003e to allow for multiple string entries, as well as \u003ccode\u003eDirection\u003c/code\u003e which indicates the traffic direction, and a boolean \u003ccode\u003eHasDirection\u003c/code\u003e to verify if the direction field is set.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCidrRanges\u003c/code\u003e and \u003ccode\u003eIPProtocols\u003c/code\u003e properties are used to filter mirrored traffic based on IP ranges and protocols respectively, and when neither is set, all IPv4 traffic is mirrored, but using "0.0.0.0/0,::/0" mirrors both IPv4 and IPv6.\u003c/p\u003e\n"]]],[],null,[]]