1<?php 2# Generated by the protocol buffer compiler. DO NOT EDIT! 3# source: google/protobuf/descriptor.proto 4 5namespace Google\Protobuf\Internal; 6 7use Google\Protobuf\Internal\GPBType; 8use Google\Protobuf\Internal\GPBWire; 9use Google\Protobuf\Internal\RepeatedField; 10use Google\Protobuf\Internal\InputStream; 11use Google\Protobuf\Internal\GPBUtil; 12 13/** 14 * Describes the relationship between generated code and its original source 15 * file. A GeneratedCodeInfo message is associated with only one generated 16 * source file, but may contain references to different source .proto files. 17 * 18 * Generated from protobuf message <code>google.protobuf.GeneratedCodeInfo</code> 19 */ 20class GeneratedCodeInfo extends \Google\Protobuf\Internal\Message 21{ 22 /** 23 * An Annotation connects some span of text in generated code to an element 24 * of its generating .proto file. 25 * 26 * Generated from protobuf field <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 27 */ 28 private $annotation; 29 private $has_annotation = false; 30 31 /** 32 * Constructor. 33 * 34 * @param array $data { 35 * Optional. Data for populating the Message object. 36 * 37 * @type \Google\Protobuf\Internal\GeneratedCodeInfo\Annotation[]|\Google\Protobuf\Internal\RepeatedField $annotation 38 * An Annotation connects some span of text in generated code to an element 39 * of its generating .proto file. 40 * } 41 */ 42 public function __construct($data = NULL) { 43 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); 44 parent::__construct($data); 45 } 46 47 /** 48 * An Annotation connects some span of text in generated code to an element 49 * of its generating .proto file. 50 * 51 * Generated from protobuf field <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 52 * @return \Google\Protobuf\Internal\RepeatedField 53 */ 54 public function getAnnotation() 55 { 56 return $this->annotation; 57 } 58 59 /** 60 * An Annotation connects some span of text in generated code to an element 61 * of its generating .proto file. 62 * 63 * Generated from protobuf field <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> 64 * @param \Google\Protobuf\Internal\GeneratedCodeInfo\Annotation[]|\Google\Protobuf\Internal\RepeatedField $var 65 * @return $this 66 */ 67 public function setAnnotation($var) 68 { 69 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\GeneratedCodeInfo\Annotation::class); 70 $this->annotation = $arr; 71 $this->has_annotation = true; 72 73 return $this; 74 } 75 76 public function hasAnnotation() 77 { 78 return $this->has_annotation; 79 } 80 81} 82 83