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.
*
* Generated from protobuf field 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.
*
* Generated from protobuf field repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getAnnotation()
{
return $this->annotation;
}
/**
* An Annotation connects some span of text in generated code to an element
* of its generating .proto file.
*
* Generated from protobuf field repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
* @param \Google\Protobuf\Internal\GeneratedCodeInfo_Annotation[]|\Google\Protobuf\Internal\RepeatedField $var
* @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 hasAnnotation()
{
return $this->has_annotation;
}
}