Container/src/V1/SetNetworkPolicyRequest.php
public function setNetworkPolicy($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkPolicy::class);
        $this->network_policy = $var;

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

        return $this;
    }
public function setNetworkPolicy ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Container \ V1 \ NetworkPolicy :: class ) ; $ this -> network_policy = $ var ; return $ this ; }
Configuration options for the NetworkPolicy feature.

Generated from protobuf field <code>.google.container.v1.NetworkPolicy network_policy = 4;</code>
@param \Google\Cloud\Container\V1\NetworkPolicy $var
@return $this
Configuration options for the NetworkPolicy feature .