Dlp/src/V2/RedactImageRequest/ImageRedactionConfig.php
public function setInfoType($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class);
        $this->writeOneof(1, $var);

        return $this;
    }
public function setInfoType($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class);
        $this->writeOneof(1, $var);

        return $this;
    }
public function setInfoType ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Dlp \ V2 \ InfoType :: class ) ; $ this -> writeOneof ( 1 , $ var ) ; return $ this ; }
Only one per info_type should be provided per request. If not
specified, and redact_all_text is false, the DLP API will redact all
text that it matches against all info_types that are found, but not
specified in another ImageRedactionConfig.

Generated from protobuf field <code>.google.privacy.dlp.v2.InfoType info_type = 1;</code>
@param \Google\Cloud\Dlp\V2\InfoType $var
@return $this
Only one per info_type should be provided per request . If not specified and redact_all_text is false the DLP API will redact all text that it matches against all info_types that are found but not specified in another ImageRedactionConfig .