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

Side by Side Diff: third_party/protobuf/src/google/protobuf/source_context.pb.cc

Issue 1983203003: Update third_party/protobuf to protobuf-v3.0.0-beta-3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: owners Created 4 years, 6 months 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
1 // Generated by the protocol buffer compiler. DO NOT EDIT! 1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/source_context.proto 2 // source: google/protobuf/source_context.proto
3 3
4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION 4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include <google/protobuf/source_context.pb.h> 5 #include <google/protobuf/source_context.pb.h>
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include <google/protobuf/stubs/common.h> 9 #include <google/protobuf/stubs/common.h>
10 #include <google/protobuf/stubs/port.h> 10 #include <google/protobuf/stubs/port.h>
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 SourceContext* SourceContext::New(::google::protobuf::Arena* arena) const { 171 SourceContext* SourceContext::New(::google::protobuf::Arena* arena) const {
172 SourceContext* n = new SourceContext; 172 SourceContext* n = new SourceContext;
173 if (arena != NULL) { 173 if (arena != NULL) {
174 arena->Own(n); 174 arena->Own(n);
175 } 175 }
176 return n; 176 return n;
177 } 177 }
178 178
179 void SourceContext::Clear() { 179 void SourceContext::Clear() {
180 // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceContext)
180 file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited()); 181 file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited());
181 } 182 }
182 183
183 bool SourceContext::MergePartialFromCodedStream( 184 bool SourceContext::MergePartialFromCodedStream(
184 ::google::protobuf::io::CodedInputStream* input) { 185 ::google::protobuf::io::CodedInputStream* input) {
185 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure 186 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
186 ::google::protobuf::uint32 tag; 187 ::google::protobuf::uint32 tag;
187 // @@protoc_insertion_point(parse_start:google.protobuf.SourceContext) 188 // @@protoc_insertion_point(parse_start:google.protobuf.SourceContext)
188 for (;;) { 189 for (;;) {
189 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127); 190 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127);
190 tag = p.first; 191 tag = p.first;
191 if (!p.second) goto handle_unusual; 192 if (!p.second) goto handle_unusual;
192 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 193 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
193 // optional string file_name = 1; 194 // optional string file_name = 1;
194 case 1: { 195 case 1: {
195 if (tag == 10) { 196 if (tag == 10) {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 target = 256 target =
256 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 257 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
257 1, this->file_name(), target); 258 1, this->file_name(), target);
258 } 259 }
259 260
260 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceConte xt) 261 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceConte xt)
261 return target; 262 return target;
262 } 263 }
263 264
264 int SourceContext::ByteSize() const { 265 int SourceContext::ByteSize() const {
266 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceContex t)
265 int total_size = 0; 267 int total_size = 0;
266 268
267 // optional string file_name = 1; 269 // optional string file_name = 1;
268 if (this->file_name().size() > 0) { 270 if (this->file_name().size() > 0) {
269 total_size += 1 + 271 total_size += 1 +
270 ::google::protobuf::internal::WireFormatLite::StringSize( 272 ::google::protobuf::internal::WireFormatLite::StringSize(
271 this->file_name()); 273 this->file_name());
272 } 274 }
273 275
274 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 276 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
275 _cached_size_ = total_size; 277 _cached_size_ = total_size;
276 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 278 GOOGLE_SAFE_CONCURRENT_WRITES_END();
277 return total_size; 279 return total_size;
278 } 280 }
279 281
280 void SourceContext::MergeFrom(const ::google::protobuf::Message& from) { 282 void SourceContext::MergeFrom(const ::google::protobuf::Message& from) {
283 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceC ontext)
281 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 284 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
282 const SourceContext* source = 285 const SourceContext* source =
283 ::google::protobuf::internal::DynamicCastToGenerated<const SourceContext>( 286 ::google::protobuf::internal::DynamicCastToGenerated<const SourceContext>(
284 &from); 287 &from);
285 if (source == NULL) { 288 if (source == NULL) {
289 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S ourceContext)
286 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 290 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
287 } else { 291 } else {
292 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.SourceContext)
288 MergeFrom(*source); 293 MergeFrom(*source);
289 } 294 }
290 } 295 }
291 296
292 void SourceContext::MergeFrom(const SourceContext& from) { 297 void SourceContext::MergeFrom(const SourceContext& from) {
298 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Sour ceContext)
293 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 299 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
294 if (from.file_name().size() > 0) { 300 if (from.file_name().size() > 0) {
295 301
296 file_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited(), from.file_name_); 302 file_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl readyInited(), from.file_name_);
297 } 303 }
298 } 304 }
299 305
300 void SourceContext::CopyFrom(const ::google::protobuf::Message& from) { 306 void SourceContext::CopyFrom(const ::google::protobuf::Message& from) {
307 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCo ntext)
301 if (&from == this) return; 308 if (&from == this) return;
302 Clear(); 309 Clear();
303 MergeFrom(from); 310 MergeFrom(from);
304 } 311 }
305 312
306 void SourceContext::CopyFrom(const SourceContext& from) { 313 void SourceContext::CopyFrom(const SourceContext& from) {
314 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Sourc eContext)
307 if (&from == this) return; 315 if (&from == this) return;
308 Clear(); 316 Clear();
309 MergeFrom(from); 317 MergeFrom(from);
310 } 318 }
311 319
312 bool SourceContext::IsInitialized() const { 320 bool SourceContext::IsInitialized() const {
313 321
314 return true; 322 return true;
315 } 323 }
316 324
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(), 366 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit ed(),
359 ::std::string(reinterpret_cast<const char*>(value), size)); 367 ::std::string(reinterpret_cast<const char*>(value), size));
360 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceContext.fi le_name) 368 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceContext.fi le_name)
361 } 369 }
362 ::std::string* SourceContext::mutable_file_name() { 370 ::std::string* SourceContext::mutable_file_name() {
363 371
364 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceContext.file_n ame) 372 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceContext.file_n ame)
365 return file_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 373 return file_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
366 } 374 }
367 ::std::string* SourceContext::release_file_name() { 375 ::std::string* SourceContext::release_file_name() {
376 // @@protoc_insertion_point(field_release:google.protobuf.SourceContext.file_n ame)
368 377
369 return file_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited()); 378 return file_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString AlreadyInited());
370 } 379 }
371 void SourceContext::set_allocated_file_name(::std::string* file_name) { 380 void SourceContext::set_allocated_file_name(::std::string* file_name) {
372 if (file_name != NULL) { 381 if (file_name != NULL) {
373 382
374 } else { 383 } else {
375 384
376 } 385 }
377 file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), file_name); 386 file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl readyInited(), file_name);
378 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext. file_name) 387 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext. file_name)
379 } 388 }
380 389
381 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 390 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
382 391
383 // @@protoc_insertion_point(namespace_scope) 392 // @@protoc_insertion_point(namespace_scope)
384 393
385 } // namespace protobuf 394 } // namespace protobuf
386 } // namespace google 395 } // namespace google
387 396
388 // @@protoc_insertion_point(global_scope) 397 // @@protoc_insertion_point(global_scope)
OLDNEW
« no previous file with comments | « third_party/protobuf/src/google/protobuf/source_context.pb.h ('k') | third_party/protobuf/src/google/protobuf/struct.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698