Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(400)

Side by Side Diff: third_party/protobuf/php/src/Google/Protobuf/Internal/GeneratedCodeInfo_Annotation.php

Issue 2590803003: Revert "third_party/protobuf: Update to HEAD (83d681ee2c)" (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 * Protobuf type <code>google.protobuf.GeneratedCodeInfo.Annotation</code>
16 */
17 class GeneratedCodeInfo_Annotation extends \Google\Protobuf\Internal\Message
18 {
19 /**
20 * <pre>
21 * Identifies the element in the original source .proto file. This field
22 * is formatted the same as SourceCodeInfo.Location.path.
23 * </pre>
24 *
25 * <code>repeated int32 path = 1 [packed = true];</code>
26 */
27 private $path;
28 private $has_path = false;
29 /**
30 * <pre>
31 * Identifies the filesystem path to the original source .proto.
32 * </pre>
33 *
34 * <code>optional string source_file = 2;</code>
35 */
36 private $source_file = '';
37 private $has_source_file = false;
38 /**
39 * <pre>
40 * Identifies the starting offset in bytes in the generated code
41 * that relates to the identified object.
42 * </pre>
43 *
44 * <code>optional int32 begin = 3;</code>
45 */
46 private $begin = 0;
47 private $has_begin = false;
48 /**
49 * <pre>
50 * Identifies the ending offset in bytes in the generated code that
51 * relates to the identified offset. The end offset should be one past
52 * the last relevant byte (so the length of the text = end - begin).
53 * </pre>
54 *
55 * <code>optional int32 end = 4;</code>
56 */
57 private $end = 0;
58 private $has_end = false;
59
60 public function __construct() {
61 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
62 parent::__construct();
63 }
64
65 /**
66 * <pre>
67 * Identifies the element in the original source .proto file. This field
68 * is formatted the same as SourceCodeInfo.Location.path.
69 * </pre>
70 *
71 * <code>repeated int32 path = 1 [packed = true];</code>
72 */
73 public function getPath()
74 {
75 return $this->path;
76 }
77
78 /**
79 * <pre>
80 * Identifies the element in the original source .proto file. This field
81 * is formatted the same as SourceCodeInfo.Location.path.
82 * </pre>
83 *
84 * <code>repeated int32 path = 1 [packed = true];</code>
85 */
86 public function setPath(&$var)
87 {
88 GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT 32);
89 $this->path = $var;
90 $this->has_path = true;
91 }
92
93 public function hasPath()
94 {
95 return $this->has_path;
96 }
97
98 /**
99 * <pre>
100 * Identifies the filesystem path to the original source .proto.
101 * </pre>
102 *
103 * <code>optional string source_file = 2;</code>
104 */
105 public function getSourceFile()
106 {
107 return $this->source_file;
108 }
109
110 /**
111 * <pre>
112 * Identifies the filesystem path to the original source .proto.
113 * </pre>
114 *
115 * <code>optional string source_file = 2;</code>
116 */
117 public function setSourceFile($var)
118 {
119 GPBUtil::checkString($var, True);
120 $this->source_file = $var;
121 $this->has_source_file = true;
122 }
123
124 public function hasSourceFile()
125 {
126 return $this->has_source_file;
127 }
128
129 /**
130 * <pre>
131 * Identifies the starting offset in bytes in the generated code
132 * that relates to the identified object.
133 * </pre>
134 *
135 * <code>optional int32 begin = 3;</code>
136 */
137 public function getBegin()
138 {
139 return $this->begin;
140 }
141
142 /**
143 * <pre>
144 * Identifies the starting offset in bytes in the generated code
145 * that relates to the identified object.
146 * </pre>
147 *
148 * <code>optional int32 begin = 3;</code>
149 */
150 public function setBegin($var)
151 {
152 GPBUtil::checkInt32($var);
153 $this->begin = $var;
154 $this->has_begin = true;
155 }
156
157 public function hasBegin()
158 {
159 return $this->has_begin;
160 }
161
162 /**
163 * <pre>
164 * Identifies the ending offset in bytes in the generated code that
165 * relates to the identified offset. The end offset should be one past
166 * the last relevant byte (so the length of the text = end - begin).
167 * </pre>
168 *
169 * <code>optional int32 end = 4;</code>
170 */
171 public function getEnd()
172 {
173 return $this->end;
174 }
175
176 /**
177 * <pre>
178 * Identifies the ending offset in bytes in the generated code that
179 * relates to the identified offset. The end offset should be one past
180 * the last relevant byte (so the length of the text = end - begin).
181 * </pre>
182 *
183 * <code>optional int32 end = 4;</code>
184 */
185 public function setEnd($var)
186 {
187 GPBUtil::checkInt32($var);
188 $this->end = $var;
189 $this->has_end = true;
190 }
191
192 public function hasEnd()
193 {
194 return $this->has_end;
195 }
196
197 }
198
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698