OLD | NEW |
| (Empty) |
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 | |
12 use Google\Protobuf\Internal\GPBUtil; | |
13 | |
14 /** | |
15 * <pre> | |
16 * Describes the relationship between generated code and its original source | |
17 * file. A GeneratedCodeInfo message is associated with only one generated | |
18 * source file, but may contain references to different source .proto files. | |
19 * </pre> | |
20 * | |
21 * Protobuf type <code>google.protobuf.GeneratedCodeInfo</code> | |
22 */ | |
23 class GeneratedCodeInfo extends \Google\Protobuf\Internal\Message | |
24 { | |
25 /** | |
26 * <pre> | |
27 * An Annotation connects some span of text in generated code to an element | |
28 * of its generating .proto file. | |
29 * </pre> | |
30 * | |
31 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation =
1;</code> | |
32 */ | |
33 private $annotation; | |
34 private $has_annotation = false; | |
35 | |
36 public function __construct() { | |
37 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); | |
38 parent::__construct(); | |
39 } | |
40 | |
41 /** | |
42 * <pre> | |
43 * An Annotation connects some span of text in generated code to an element | |
44 * of its generating .proto file. | |
45 * </pre> | |
46 * | |
47 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation =
1;</code> | |
48 */ | |
49 public function getAnnotation() | |
50 { | |
51 return $this->annotation; | |
52 } | |
53 | |
54 /** | |
55 * <pre> | |
56 * An Annotation connects some span of text in generated code to an element | |
57 * of its generating .proto file. | |
58 * </pre> | |
59 * | |
60 * <code>repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation =
1;</code> | |
61 */ | |
62 public function setAnnotation(&$var) | |
63 { | |
64 GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MES
SAGE, \Google\Protobuf\Internal\GeneratedCodeInfo_Annotation::class); | |
65 $this->annotation = $var; | |
66 $this->has_annotation = true; | |
67 } | |
68 | |
69 public function hasAnnotation() | |
70 { | |
71 return $this->has_annotation; | |
72 } | |
73 | |
74 } | |
75 | |
OLD | NEW |