| OLD | NEW |
| 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 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 const ::google::protobuf::Descriptor* SourceContext_descriptor_ = NULL; | 25 const ::google::protobuf::Descriptor* SourceContext_descriptor_ = NULL; |
| 26 const ::google::protobuf::internal::GeneratedMessageReflection* | 26 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 27 SourceContext_reflection_ = NULL; | 27 SourceContext_reflection_ = NULL; |
| 28 | 28 |
| 29 } // namespace | 29 } // namespace |
| 30 | 30 |
| 31 | 31 |
| 32 void protobuf_AssignDesc_google_2fprotobuf_2fsource_5fcontext_2eproto() GOOGLE_A
TTRIBUTE_COLD; |
| 32 void protobuf_AssignDesc_google_2fprotobuf_2fsource_5fcontext_2eproto() { | 33 void protobuf_AssignDesc_google_2fprotobuf_2fsource_5fcontext_2eproto() { |
| 33 protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2eproto(); | 34 protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2eproto(); |
| 34 const ::google::protobuf::FileDescriptor* file = | 35 const ::google::protobuf::FileDescriptor* file = |
| 35 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( | 36 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( |
| 36 "google/protobuf/source_context.proto"); | 37 "google/protobuf/source_context.proto"); |
| 37 GOOGLE_CHECK(file != NULL); | 38 GOOGLE_CHECK(file != NULL); |
| 38 SourceContext_descriptor_ = file->message_type(0); | 39 SourceContext_descriptor_ = file->message_type(0); |
| 39 static const int SourceContext_offsets_[1] = { | 40 static const int SourceContext_offsets_[1] = { |
| 40 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceContext, file_name_), | 41 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceContext, file_name_), |
| 41 }; | 42 }; |
| 42 SourceContext_reflection_ = | 43 SourceContext_reflection_ = |
| 43 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( | 44 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 44 SourceContext_descriptor_, | 45 SourceContext_descriptor_, |
| 45 SourceContext::default_instance_, | 46 SourceContext::internal_default_instance(), |
| 46 SourceContext_offsets_, | 47 SourceContext_offsets_, |
| 47 -1, | 48 -1, |
| 48 -1, | 49 -1, |
| 49 -1, | 50 -1, |
| 50 sizeof(SourceContext), | 51 sizeof(SourceContext), |
| 51 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceContext, _internal_me
tadata_), | 52 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceContext, _internal_me
tadata_)); |
| 52 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceContext, _is_default_
instance_)); | |
| 53 } | 53 } |
| 54 | 54 |
| 55 namespace { | 55 namespace { |
| 56 | 56 |
| 57 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); | 57 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); |
| 58 inline void protobuf_AssignDescriptorsOnce() { | 58 void protobuf_AssignDescriptorsOnce() { |
| 59 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, | 59 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, |
| 60 &protobuf_AssignDesc_google_2fprotobuf_2fsource_5fcontext_2epro
to); | 60 &protobuf_AssignDesc_google_2fprotobuf_2fsource_5fcontext_2epro
to); |
| 61 } | 61 } |
| 62 | 62 |
| 63 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; |
| 63 void protobuf_RegisterTypes(const ::std::string&) { | 64 void protobuf_RegisterTypes(const ::std::string&) { |
| 64 protobuf_AssignDescriptorsOnce(); | 65 protobuf_AssignDescriptorsOnce(); |
| 65 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( | 66 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 66 SourceContext_descriptor_, &SourceContext::default_instance()); | 67 SourceContext_descriptor_, SourceContext::internal_default_instance()); |
| 67 } | 68 } |
| 68 | 69 |
| 69 } // namespace | 70 } // namespace |
| 70 | 71 |
| 71 void protobuf_ShutdownFile_google_2fprotobuf_2fsource_5fcontext_2eproto() { | 72 void protobuf_ShutdownFile_google_2fprotobuf_2fsource_5fcontext_2eproto() { |
| 72 delete SourceContext::default_instance_; | 73 SourceContext_default_instance_.Shutdown(); |
| 73 delete SourceContext_reflection_; | 74 delete SourceContext_reflection_; |
| 74 } | 75 } |
| 75 | 76 |
| 76 void protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2eproto() { | 77 void protobuf_InitDefaults_google_2fprotobuf_2fsource_5fcontext_2eproto_impl() { |
| 77 static bool already_here = false; | |
| 78 if (already_here) return; | |
| 79 already_here = true; | |
| 80 GOOGLE_PROTOBUF_VERIFY_VERSION; | 78 GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 81 | 79 |
| 80 ::google::protobuf::internal::GetEmptyString(); |
| 81 SourceContext_default_instance_.DefaultConstruct(); |
| 82 SourceContext_default_instance_.get_mutable()->InitAsDefaultInstance(); |
| 83 } |
| 84 |
| 85 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_google_2fprotobuf_2fsource_5f
context_2eproto_once_); |
| 86 void protobuf_InitDefaults_google_2fprotobuf_2fsource_5fcontext_2eproto() { |
| 87 ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_google_2fprotobuf_2f
source_5fcontext_2eproto_once_, |
| 88 &protobuf_InitDefaults_google_2fprotobuf_2fsource_5fcontext_2ep
roto_impl); |
| 89 } |
| 90 void protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2eproto_impl() { |
| 91 GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 92 |
| 93 protobuf_InitDefaults_google_2fprotobuf_2fsource_5fcontext_2eproto(); |
| 82 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( | 94 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
| 83 "\n$google/protobuf/source_context.proto\022\017" | 95 "\n$google/protobuf/source_context.proto\022\017" |
| 84 "google.protobuf\"\"\n\rSourceContext\022\021\n\tfile" | 96 "google.protobuf\"\"\n\rSourceContext\022\021\n\tfile" |
| 85 "_name\030\001 \001(\tBU\n\023com.google.protobufB\022Sour" | 97 "_name\030\001 \001(\tBR\n\023com.google.protobufB\022Sour" |
| 86 "ceContextProtoP\001\240\001\001\242\002\003GPB\252\002\036Google.Proto" | 98 "ceContextProtoP\001\242\002\003GPB\252\002\036Google.Protobuf" |
| 87 "buf.WellKnownTypesb\006proto3", 186); | 99 ".WellKnownTypesb\006proto3", 183); |
| 88 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( | 100 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
| 89 "google/protobuf/source_context.proto", &protobuf_RegisterTypes); | 101 "google/protobuf/source_context.proto", &protobuf_RegisterTypes); |
| 90 SourceContext::default_instance_ = new SourceContext(); | |
| 91 SourceContext::default_instance_->InitAsDefaultInstance(); | |
| 92 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto
buf_2fsource_5fcontext_2eproto); | 102 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto
buf_2fsource_5fcontext_2eproto); |
| 93 } | 103 } |
| 94 | 104 |
| 105 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_google_2fprotobuf_2fsource_5fconte
xt_2eproto_once_); |
| 106 void protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2eproto() { |
| 107 ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_google_2fprotobuf_2fsourc
e_5fcontext_2eproto_once_, |
| 108 &protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2eproto_
impl); |
| 109 } |
| 95 // Force AddDescriptors() to be called at static initialization time. | 110 // Force AddDescriptors() to be called at static initialization time. |
| 96 struct StaticDescriptorInitializer_google_2fprotobuf_2fsource_5fcontext_2eproto
{ | 111 struct StaticDescriptorInitializer_google_2fprotobuf_2fsource_5fcontext_2eproto
{ |
| 97 StaticDescriptorInitializer_google_2fprotobuf_2fsource_5fcontext_2eproto() { | 112 StaticDescriptorInitializer_google_2fprotobuf_2fsource_5fcontext_2eproto() { |
| 98 protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2eproto(); | 113 protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2eproto(); |
| 99 } | 114 } |
| 100 } static_descriptor_initializer_google_2fprotobuf_2fsource_5fcontext_2eproto_; | 115 } static_descriptor_initializer_google_2fprotobuf_2fsource_5fcontext_2eproto_; |
| 101 | 116 |
| 102 namespace { | 117 namespace { |
| 103 | 118 |
| 104 static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD; | 119 static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORET
URN; |
| 105 static void MergeFromFail(int line) { | 120 static void MergeFromFail(int line) { |
| 106 GOOGLE_CHECK(false) << __FILE__ << ":" << line; | 121 ::google::protobuf::internal::MergeFromFail(__FILE__, line); |
| 107 } | 122 } |
| 108 | 123 |
| 109 } // namespace | 124 } // namespace |
| 110 | 125 |
| 111 | 126 |
| 112 // =================================================================== | 127 // =================================================================== |
| 113 | 128 |
| 114 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 129 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 115 const int SourceContext::kFileNameFieldNumber; | 130 const int SourceContext::kFileNameFieldNumber; |
| 116 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 131 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 117 | 132 |
| 118 SourceContext::SourceContext() | 133 SourceContext::SourceContext() |
| 119 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 134 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 135 if (this != internal_default_instance()) protobuf_InitDefaults_google_2fprotob
uf_2fsource_5fcontext_2eproto(); |
| 120 SharedCtor(); | 136 SharedCtor(); |
| 121 // @@protoc_insertion_point(constructor:google.protobuf.SourceContext) | 137 // @@protoc_insertion_point(constructor:google.protobuf.SourceContext) |
| 122 } | 138 } |
| 123 | 139 |
| 124 void SourceContext::InitAsDefaultInstance() { | 140 void SourceContext::InitAsDefaultInstance() { |
| 125 _is_default_instance_ = true; | |
| 126 } | 141 } |
| 127 | 142 |
| 128 SourceContext::SourceContext(const SourceContext& from) | 143 SourceContext::SourceContext(const SourceContext& from) |
| 129 : ::google::protobuf::Message(), | 144 : ::google::protobuf::Message(), |
| 130 _internal_metadata_(NULL) { | 145 _internal_metadata_(NULL) { |
| 131 SharedCtor(); | 146 SharedCtor(); |
| 132 MergeFrom(from); | 147 UnsafeMergeFrom(from); |
| 133 // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceContext) | 148 // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceContext) |
| 134 } | 149 } |
| 135 | 150 |
| 136 void SourceContext::SharedCtor() { | 151 void SourceContext::SharedCtor() { |
| 137 _is_default_instance_ = false; | 152 file_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); |
| 138 ::google::protobuf::internal::GetEmptyString(); | |
| 139 _cached_size_ = 0; | 153 _cached_size_ = 0; |
| 140 file_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlrea
dyInited()); | |
| 141 } | 154 } |
| 142 | 155 |
| 143 SourceContext::~SourceContext() { | 156 SourceContext::~SourceContext() { |
| 144 // @@protoc_insertion_point(destructor:google.protobuf.SourceContext) | 157 // @@protoc_insertion_point(destructor:google.protobuf.SourceContext) |
| 145 SharedDtor(); | 158 SharedDtor(); |
| 146 } | 159 } |
| 147 | 160 |
| 148 void SourceContext::SharedDtor() { | 161 void SourceContext::SharedDtor() { |
| 149 file_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); | 162 file_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlready
Inited()); |
| 150 if (this != default_instance_) { | |
| 151 } | |
| 152 } | 163 } |
| 153 | 164 |
| 154 void SourceContext::SetCachedSize(int size) const { | 165 void SourceContext::SetCachedSize(int size) const { |
| 155 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 166 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 156 _cached_size_ = size; | 167 _cached_size_ = size; |
| 157 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 168 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 158 } | 169 } |
| 159 const ::google::protobuf::Descriptor* SourceContext::descriptor() { | 170 const ::google::protobuf::Descriptor* SourceContext::descriptor() { |
| 160 protobuf_AssignDescriptorsOnce(); | 171 protobuf_AssignDescriptorsOnce(); |
| 161 return SourceContext_descriptor_; | 172 return SourceContext_descriptor_; |
| 162 } | 173 } |
| 163 | 174 |
| 164 const SourceContext& SourceContext::default_instance() { | 175 const SourceContext& SourceContext::default_instance() { |
| 165 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fsource_5fc
ontext_2eproto(); | 176 protobuf_InitDefaults_google_2fprotobuf_2fsource_5fcontext_2eproto(); |
| 166 return *default_instance_; | 177 return *internal_default_instance(); |
| 167 } | 178 } |
| 168 | 179 |
| 169 SourceContext* SourceContext::default_instance_ = NULL; | 180 ::google::protobuf::internal::ExplicitlyConstructed<SourceContext> SourceContext
_default_instance_; |
| 170 | 181 |
| 171 SourceContext* SourceContext::New(::google::protobuf::Arena* arena) const { | 182 SourceContext* SourceContext::New(::google::protobuf::Arena* arena) const { |
| 172 SourceContext* n = new SourceContext; | 183 SourceContext* n = new SourceContext; |
| 173 if (arena != NULL) { | 184 if (arena != NULL) { |
| 174 arena->Own(n); | 185 arena->Own(n); |
| 175 } | 186 } |
| 176 return n; | 187 return n; |
| 177 } | 188 } |
| 178 | 189 |
| 179 void SourceContext::Clear() { | 190 void SourceContext::Clear() { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 this->file_name().data(), this->file_name().length(), | 248 this->file_name().data(), this->file_name().length(), |
| 238 ::google::protobuf::internal::WireFormatLite::SERIALIZE, | 249 ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 239 "google.protobuf.SourceContext.file_name"); | 250 "google.protobuf.SourceContext.file_name"); |
| 240 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( | 251 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 241 1, this->file_name(), output); | 252 1, this->file_name(), output); |
| 242 } | 253 } |
| 243 | 254 |
| 244 // @@protoc_insertion_point(serialize_end:google.protobuf.SourceContext) | 255 // @@protoc_insertion_point(serialize_end:google.protobuf.SourceContext) |
| 245 } | 256 } |
| 246 | 257 |
| 247 ::google::protobuf::uint8* SourceContext::SerializeWithCachedSizesToArray( | 258 ::google::protobuf::uint8* SourceContext::InternalSerializeWithCachedSizesToArra
y( |
| 248 ::google::protobuf::uint8* target) const { | 259 bool deterministic, ::google::protobuf::uint8* target) const { |
| 260 (void)deterministic; // Unused |
| 249 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCon
text) | 261 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCon
text) |
| 250 // optional string file_name = 1; | 262 // optional string file_name = 1; |
| 251 if (this->file_name().size() > 0) { | 263 if (this->file_name().size() > 0) { |
| 252 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( | 264 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 253 this->file_name().data(), this->file_name().length(), | 265 this->file_name().data(), this->file_name().length(), |
| 254 ::google::protobuf::internal::WireFormatLite::SERIALIZE, | 266 ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 255 "google.protobuf.SourceContext.file_name"); | 267 "google.protobuf.SourceContext.file_name"); |
| 256 target = | 268 target = |
| 257 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 269 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 258 1, this->file_name(), target); | 270 1, this->file_name(), target); |
| 259 } | 271 } |
| 260 | 272 |
| 261 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceConte
xt) | 273 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceConte
xt) |
| 262 return target; | 274 return target; |
| 263 } | 275 } |
| 264 | 276 |
| 265 int SourceContext::ByteSize() const { | 277 size_t SourceContext::ByteSizeLong() const { |
| 266 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceContex
t) | 278 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceContex
t) |
| 267 int total_size = 0; | 279 size_t total_size = 0; |
| 268 | 280 |
| 269 // optional string file_name = 1; | 281 // optional string file_name = 1; |
| 270 if (this->file_name().size() > 0) { | 282 if (this->file_name().size() > 0) { |
| 271 total_size += 1 + | 283 total_size += 1 + |
| 272 ::google::protobuf::internal::WireFormatLite::StringSize( | 284 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 273 this->file_name()); | 285 this->file_name()); |
| 274 } | 286 } |
| 275 | 287 |
| 288 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 276 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 289 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 277 _cached_size_ = total_size; | 290 _cached_size_ = cached_size; |
| 278 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 291 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 279 return total_size; | 292 return total_size; |
| 280 } | 293 } |
| 281 | 294 |
| 282 void SourceContext::MergeFrom(const ::google::protobuf::Message& from) { | 295 void SourceContext::MergeFrom(const ::google::protobuf::Message& from) { |
| 283 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceC
ontext) | 296 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceC
ontext) |
| 284 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); | 297 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 285 const SourceContext* source = | 298 const SourceContext* source = |
| 286 ::google::protobuf::internal::DynamicCastToGenerated<const SourceContext>( | 299 ::google::protobuf::internal::DynamicCastToGenerated<const SourceContext>( |
| 287 &from); | 300 &from); |
| 288 if (source == NULL) { | 301 if (source == NULL) { |
| 289 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S
ourceContext) | 302 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S
ourceContext) |
| 290 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 303 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 291 } else { | 304 } else { |
| 292 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.SourceContext) | 305 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.SourceContext) |
| 293 MergeFrom(*source); | 306 UnsafeMergeFrom(*source); |
| 294 } | 307 } |
| 295 } | 308 } |
| 296 | 309 |
| 297 void SourceContext::MergeFrom(const SourceContext& from) { | 310 void SourceContext::MergeFrom(const SourceContext& from) { |
| 298 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Sour
ceContext) | 311 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Sour
ceContext) |
| 299 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); | 312 if (GOOGLE_PREDICT_TRUE(&from != this)) { |
| 313 UnsafeMergeFrom(from); |
| 314 } else { |
| 315 MergeFromFail(__LINE__); |
| 316 } |
| 317 } |
| 318 |
| 319 void SourceContext::UnsafeMergeFrom(const SourceContext& from) { |
| 320 GOOGLE_DCHECK(&from != this); |
| 300 if (from.file_name().size() > 0) { | 321 if (from.file_name().size() > 0) { |
| 301 | 322 |
| 302 file_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), from.file_name_); | 323 file_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), from.file_name_); |
| 303 } | 324 } |
| 304 } | 325 } |
| 305 | 326 |
| 306 void SourceContext::CopyFrom(const ::google::protobuf::Message& from) { | 327 void SourceContext::CopyFrom(const ::google::protobuf::Message& from) { |
| 307 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCo
ntext) | 328 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCo
ntext) |
| 308 if (&from == this) return; | 329 if (&from == this) return; |
| 309 Clear(); | 330 Clear(); |
| 310 MergeFrom(from); | 331 MergeFrom(from); |
| 311 } | 332 } |
| 312 | 333 |
| 313 void SourceContext::CopyFrom(const SourceContext& from) { | 334 void SourceContext::CopyFrom(const SourceContext& from) { |
| 314 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Sourc
eContext) | 335 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Sourc
eContext) |
| 315 if (&from == this) return; | 336 if (&from == this) return; |
| 316 Clear(); | 337 Clear(); |
| 317 MergeFrom(from); | 338 UnsafeMergeFrom(from); |
| 318 } | 339 } |
| 319 | 340 |
| 320 bool SourceContext::IsInitialized() const { | 341 bool SourceContext::IsInitialized() const { |
| 321 | 342 |
| 322 return true; | 343 return true; |
| 323 } | 344 } |
| 324 | 345 |
| 325 void SourceContext::Swap(SourceContext* other) { | 346 void SourceContext::Swap(SourceContext* other) { |
| 326 if (other == this) return; | 347 if (other == this) return; |
| 327 InternalSwap(other); | 348 InternalSwap(other); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 340 return metadata; | 361 return metadata; |
| 341 } | 362 } |
| 342 | 363 |
| 343 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 364 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 344 // SourceContext | 365 // SourceContext |
| 345 | 366 |
| 346 // optional string file_name = 1; | 367 // optional string file_name = 1; |
| 347 void SourceContext::clear_file_name() { | 368 void SourceContext::clear_file_name() { |
| 348 file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | 369 file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
| 349 } | 370 } |
| 350 const ::std::string& SourceContext::file_name() const { | 371 const ::std::string& SourceContext::file_name() const { |
| 351 // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name) | 372 // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name) |
| 352 return file_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); | 373 return file_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
| 353 } | 374 } |
| 354 void SourceContext::set_file_name(const ::std::string& value) { | 375 void SourceContext::set_file_name(const ::std::string& value) { |
| 355 | 376 |
| 356 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), value); | 377 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), value); |
| 357 // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name) | 378 // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name) |
| 358 } | 379 } |
| 359 void SourceContext::set_file_name(const char* value) { | 380 void SourceContext::set_file_name(const char* value) { |
| 360 | 381 |
| 361 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), ::std::string(value)); | 382 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), ::std::string(value)); |
| 362 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceContext.file_
name) | 383 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceContext.file_
name) |
| 363 } | 384 } |
| 364 void SourceContext::set_file_name(const char* value, size_t size) { | 385 void SourceContext::set_file_name(const char* value, size_t size) { |
| 365 | 386 |
| 366 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), | 387 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), |
| 367 ::std::string(reinterpret_cast<const char*>(value), size)); | 388 ::std::string(reinterpret_cast<const char*>(value), size)); |
| 368 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceContext.fi
le_name) | 389 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceContext.fi
le_name) |
| 369 } | 390 } |
| 370 ::std::string* SourceContext::mutable_file_name() { | 391 ::std::string* SourceContext::mutable_file_name() { |
| 371 | 392 |
| 372 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceContext.file_n
ame) | 393 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceContext.file_n
ame) |
| 373 return file_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | 394 return file_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
| 374 } | 395 } |
| 375 ::std::string* SourceContext::release_file_name() { | 396 ::std::string* SourceContext::release_file_name() { |
| 376 // @@protoc_insertion_point(field_release:google.protobuf.SourceContext.file_n
ame) | 397 // @@protoc_insertion_point(field_release:google.protobuf.SourceContext.file_n
ame) |
| 377 | 398 |
| 378 return file_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); | 399 return file_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyString
AlreadyInited()); |
| 379 } | 400 } |
| 380 void SourceContext::set_allocated_file_name(::std::string* file_name) { | 401 void SourceContext::set_allocated_file_name(::std::string* file_name) { |
| 381 if (file_name != NULL) { | 402 if (file_name != NULL) { |
| 382 | 403 |
| 383 } else { | 404 } else { |
| 384 | 405 |
| 385 } | 406 } |
| 386 file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), file_name); | 407 file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), file_name); |
| 387 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext.
file_name) | 408 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext.
file_name) |
| 388 } | 409 } |
| 389 | 410 |
| 411 inline const SourceContext* SourceContext::internal_default_instance() { |
| 412 return &SourceContext_default_instance_.get(); |
| 413 } |
| 390 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 414 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 391 | 415 |
| 392 // @@protoc_insertion_point(namespace_scope) | 416 // @@protoc_insertion_point(namespace_scope) |
| 393 | 417 |
| 394 } // namespace protobuf | 418 } // namespace protobuf |
| 395 } // namespace google | 419 } // namespace google |
| 396 | 420 |
| 397 // @@protoc_insertion_point(global_scope) | 421 // @@protoc_insertion_point(global_scope) |
| OLD | NEW |