ErrorReporting/src/V1beta1/QueryTimeRange.php
public function setPeriod($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\ErrorReporting\V1beta1\QueryTimeRange_Period::class);
        $this->period = $var;

        return $this;
    }
public function setPeriod($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\ErrorReporting\V1beta1\QueryTimeRange_Period::class);
        $this->period = $var;

        return $this;
    }
public function setPeriod ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ ErrorReporting \ V1beta1 \ QueryTimeRange_Period :: class ) ; $ this -> period = $ var ; return $ this ; }
Restricts the query to the specified time range.

Generated from protobuf field <code>.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period period = 1;</code>
@param int $var
@return $this
Restricts the query to the specified time range .