Google Cloud Network Services V1 Client - Class TrafficPortSelector (0.2.2)

Reference documentation and code samples for the Google Cloud Network Services V1 Client class TrafficPortSelector.

Specification of a port-based selector.

Generated from protobuf message google.cloud.networkservices.v1.TrafficPortSelector

Namespace

Google \ Cloud \ NetworkServices \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ ports array

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.

getPorts

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.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setPorts

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.

Parameter
Name Description
var string[]
Returns
Type Description
$this