Container/src/V1/AddonsConfig.php
public function setNetworkPolicyConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkPolicyConfig::class);
        $this->network_policy_config = $var;

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

        return $this;
    }
public function setNetworkPolicyConfig ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Container \ V1 \ NetworkPolicyConfig :: class ) ; $ this -> network_policy_config = $ var ; return $ this ; }
Configuration for NetworkPolicy. This only tracks whether the addon
is enabled or not on the Master, it does not track whether network policy
is enabled for the nodes.

Generated from protobuf field <code>.google.container.v1.NetworkPolicyConfig network_policy_config = 4;</code>
@param \Google\Cloud\Container\V1\NetworkPolicyConfig $var
@return $this
Configuration for NetworkPolicy . This only tracks whether the addon is enabled or not on the Master it does not track whether network policy is enabled for the nodes .