BigQueryDataTransfer/src/V1/ListTransferRunsRequest.php
public function setStates($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\BigQuery\DataTransfer\V1\TransferState::class);
        $this->states = $arr;

        return $this;
    }
public function setStates($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\BigQuery\DataTransfer\V1\TransferState::class);
        $this->states = $arr;

        return $this;
    }
public function setStates ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: ENUM , \ Google \ Cloud \ BigQuery \ DataTransfer \ V1 \ TransferState :: class ) ; $ this -> states = $ arr ; return $ this ; }
When specified, only transfer runs with requested states are returned.

Generated from protobuf field <code>repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2;</code>
@param int[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
When specified only transfer runs with requested states are returned .