| 1 |
<?php |
| 2 |
# Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 |
# source: google/protobuf/descriptor.proto |
| 4 |
|
| 5 |
namespace Google\Protobuf\Internal; |
| 6 |
|
| 7 |
use Google\Protobuf\Internal\GPBType; |
| 8 |
use Google\Protobuf\Internal\GPBWire; |
| 9 |
use Google\Protobuf\Internal\RepeatedField; |
| 10 |
use Google\Protobuf\Internal\InputStream; |
| 11 |
use 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 |
*/ |
| 20 |
class 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 |
|
| 30 |
/** |
| 31 |
* Constructor. |
| 32 |
* |
| 33 |
* @param array $data { |
| 34 |
* Optional. Data for populating the Message object. |
| 35 |
* |
| 36 |
* @type array<\Google\Protobuf\Internal\GeneratedCodeInfo\Annotation>|\Google\Protobuf\Internal\RepeatedField $annotation |
| 37 |
* An Annotation connects some span of text in generated code to an element |
| 38 |
* of its generating .proto file. |
| 39 |
* } |
| 40 |
*/ |
| 41 |
public function __construct($data = NULL) { |
| 42 |
\GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); |
| 43 |
parent::__construct($data); |
| 44 |
} |
| 45 |
|
| 46 |
/** |
| 47 |
* An Annotation connects some span of text in generated code to an element |
| 48 |
* of its generating .proto file. |
| 49 |
* |
| 50 |
* Generated from protobuf field <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> |
| 51 |
* @return \Google\Protobuf\Internal\RepeatedField |
| 52 |
*/ |
| 53 |
public function getAnnotation() |
| 54 |
{ |
| 55 |
return $this->annotation; |
| 56 |
} |
| 57 |
|
| 58 |
/** |
| 59 |
* An Annotation connects some span of text in generated code to an element |
| 60 |
* of its generating .proto file. |
| 61 |
* |
| 62 |
* Generated from protobuf field <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;</code> |
| 63 |
* @param array<\Google\Protobuf\Internal\GeneratedCodeInfo\Annotation>|\Google\Protobuf\Internal\RepeatedField $var |
| 64 |
* @return $this |
| 65 |
*/ |
| 66 |
public function setAnnotation($var) |
| 67 |
{ |
| 68 |
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\GeneratedCodeInfo\Annotation::class); |
| 69 |
$this->annotation = $arr; |
| 70 |
|
| 71 |
return $this; |
| 72 |
} |
| 73 |
|
| 74 |
} |
| 75 |
|