portRanges = $portRanges; } /** * @return PortRange[] */ public function getPortRanges() { return $this->portRanges; } /** * The IP protocol this rule applies to. This value can either be one of the * following well known protocol strings (TCP, UDP, ICMP, ESP, AH, IPIP, SCTP) * or a string representation of the integer value. * * @param string $protocol */ public function setProtocol($protocol) { $this->protocol = $protocol; } /** * @return string */ public function getProtocol() { return $this->protocol; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(IpRule::class, 'Google_Service_SecurityCommandCenter_IpRule');