* Describes the relationship between generated code and its original source
* file. A GeneratedCodeInfo message is associated with only one generated
* source file, but may contain references to different source .proto files.
*
*
* Protobuf type google.protobuf.GeneratedCodeInfo
*/
class GeneratedCodeInfo extends \Google\Protobuf\Internal\Message
{
/**
*
* An Annotation connects some span of text in generated code to an element * of its generating .proto file. ** *
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
*/
private $annotation;
private $has_annotation = false;
public function __construct() {
\GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
parent::__construct();
}
/**
* * An Annotation connects some span of text in generated code to an element * of its generating .proto file. ** *
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
*/
public function getAnnotation()
{
return $this->annotation;
}
/**
* * An Annotation connects some span of text in generated code to an element * of its generating .proto file. ** *
repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
*/
public function setAnnotation(&$var)
{
GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\GeneratedCodeInfo_Annotation::class);
$this->annotation = $var;
$this->has_annotation = true;
}
public function hasAnnotation()
{
return $this->has_annotation;
}
}