function Annotation::setPath
Identifies the element in the original source .proto file. This field is formatted the same as SourceCodeInfo.Location.path.
Generated from protobuf field <code>repeated int32 path = 1 [packed = true];</code>
Parameters
array<int>|\Google\Protobuf\Internal\RepeatedField $var:
Return value
$this
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ GeneratedCodeInfo/ Annotation.php, line 97
Class
- Annotation
- Generated from protobuf message <code>google.protobuf.GeneratedCodeInfo.Annotation</code>
Namespace
Google\Protobuf\Internal\GeneratedCodeInfoCode
public function setPath($var) {
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
$this->path = $arr;
return $this;
}