Trace/src/V2/Span/TimeEvent.php
public function setAnnotation($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Trace\V2\Span_TimeEvent_Annotation::class);
        $this->writeOneof(2, $var);

        return $this;
    }
public function setAnnotation($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Trace\V2\Span_TimeEvent_Annotation::class);
        $this->writeOneof(2, $var);

        return $this;
    }
public function setAnnotation ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Trace \ V2 \ Span_TimeEvent_Annotation :: class ) ; $ this -> writeOneof ( 2 , $ var ) ; return $ this ; }
Text annotation with a set of attributes.

Generated from protobuf field <code>.google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation annotation = 2;</code>
@param \Google\Cloud\Trace\V2\Span\TimeEvent\Annotation $var
@return $this
Text annotation with a set of attributes .