Container/src/V1/Cluster.php
public function setIpAllocationPolicy($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\IPAllocationPolicy::class);
        $this->ip_allocation_policy = $var;

        return $this;
    }
public function setIpAllocationPolicy($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\IPAllocationPolicy::class);
        $this->ip_allocation_policy = $var;

        return $this;
    }
public function setIpAllocationPolicy ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Container \ V1 \ IPAllocationPolicy :: class ) ; $ this -> ip_allocation_policy = $ var ; return $ this ; }
Configuration for cluster IP allocation.

Generated from protobuf field <code>.google.container.v1.IPAllocationPolicy ip_allocation_policy = 20;</code>
@param \Google\Cloud\Container\V1\IPAllocationPolicy $var
@return $this
Configuration for cluster IP allocation .