public function setTimeEvent($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Trace\V2\Span_TimeEvent::class);
        $this->time_event = $arr;

        return $this;
    }
public function setTimeEvent($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Trace\V2\Span_TimeEvent::class);
        $this->time_event = $arr;

        return $this;
    }
public function setTimeEvent ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Trace \ V2 \ Span_TimeEvent :: class ) ; $ this -> time_event = $ arr ; return $ this ; }
A collection of `TimeEvent`s.

Generated from protobuf field <code>repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;</code>
@param \Google\Cloud\Trace\V2\Span_TimeEvent[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
A collection of TimeEvent s .