public sealed class TrafficPortSelector : IMessage<TrafficPortSelector>, IEquatable<TrafficPortSelector>, IDeepCloneable<TrafficPortSelector>, IBufferMessage, IMessage
Reference documentation and code samples for the Network Services v1 API class TrafficPortSelector.
Optional. A list of ports. Can be port numbers or port range
(example, [80-90] specifies all ports from 80 to 90, including
80 and 90) or named ports or * to specify all ports. If the
list is empty, all ports are selected.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The `TrafficPortSelector` class in the Network Services v1 API allows for specification of a port-based selector."],["It is part of the `Google.Cloud.NetworkServices.V1` namespace and is found in the `Google.Cloud.NetworkServices.V1.dll` assembly."],["`TrafficPortSelector` implements interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, providing functionalities for message handling, equality comparison, deep cloning, and buffered message operations."],["The class has a `Ports` property that represents a list of ports which can be specific port numbers, ranges, named ports, or all ports if an empty list."],["It has two constructors, one that is empty and another one that takes in another `TrafficPortSelector` object."]]],[]]