public function setAnnotation($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\GeneratedCodeInfo\Annotation::class);
        $this->annotation = $arr;
        $this->has_annotation = true;

        return $this;
    }
public function setAnnotation($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\GeneratedCodeInfo\Annotation::class);
        $this->annotation = $arr;
        $this->has_annotation = true;

        return $this;
    }
public function setAnnotation ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Protobuf \ Internal \ GeneratedCodeInfo \ Annotation :: class ) ; $ this -> annotation = $ arr ; $ this -> has_annotation = true ; return $ this ; }
An Annotation connects some span of text in generated code to an element
of its generating .proto file.

Generated from protobuf field <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code>
@param \Google\Protobuf\Internal\GeneratedCodeInfo\Annotation[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
An Annotation connects some span of text in generated code to an element of its generating . proto file .