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

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

Issue 2600753002: Reverts third_party/protobuf: Update to HEAD (f52e188fe4) (Closed)
Patch Set: Created 3 years, 12 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/field_mask.proto 2 // source: google/protobuf/field_mask.proto
3 3
4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION 4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include <google/protobuf/field_mask.pb.h> 5 #include <google/protobuf/field_mask.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>
11 #include <google/protobuf/stubs/once.h> 11 #include <google/protobuf/stubs/once.h>
12 #include <google/protobuf/io/coded_stream.h> 12 #include <google/protobuf/io/coded_stream.h>
13 #include <google/protobuf/wire_format_lite_inl.h> 13 #include <google/protobuf/wire_format_lite_inl.h>
14 #include <google/protobuf/descriptor.h> 14 #include <google/protobuf/descriptor.h>
15 #include <google/protobuf/generated_message_reflection.h> 15 #include <google/protobuf/generated_message_reflection.h>
16 #include <google/protobuf/reflection_ops.h> 16 #include <google/protobuf/reflection_ops.h>
17 #include <google/protobuf/wire_format.h> 17 #include <google/protobuf/wire_format.h>
18 // @@protoc_insertion_point(includes) 18 // @@protoc_insertion_point(includes)
19 19
20 namespace google { 20 namespace google {
21 namespace protobuf { 21 namespace protobuf {
22 class FieldMaskDefaultTypeInternal : public ::google::protobuf::internal::Explic itlyConstructed<FieldMask> {};
23 FieldMaskDefaultTypeInternal _FieldMask_default_instance_;
24 22
25 namespace { 23 namespace {
26 24
27 ::google::protobuf::Metadata file_level_metadata[1]; 25 const ::google::protobuf::Descriptor* FieldMask_descriptor_ = NULL;
26 const ::google::protobuf::internal::GeneratedMessageReflection*
27 FieldMask_reflection_ = NULL;
28 28
29 } // namespace 29 } // namespace
30 30
31 31
32 const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2ffield_5fm ask_2eproto() GOOGLE_ATTRIBUTE_COLD; 32 void protobuf_AssignDesc_google_2fprotobuf_2ffield_5fmask_2eproto() {
33 const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2ffield_5fm ask_2eproto() { 33 protobuf_AddDesc_google_2fprotobuf_2ffield_5fmask_2eproto();
34 static const ::google::protobuf::uint32 offsets[] = { 34 const ::google::protobuf::FileDescriptor* file =
35 ~0u, // no _has_bits_ 35 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
36 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMask, _internal_metadata _), 36 "google/protobuf/field_mask.proto");
37 ~0u, // no _extensions_ 37 GOOGLE_CHECK(file != NULL);
38 ~0u, // no _oneof_case_ 38 FieldMask_descriptor_ = file->message_type(0);
39 static const int FieldMask_offsets_[1] = {
39 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMask, paths_), 40 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMask, paths_),
40 }; 41 };
41 return offsets; 42 FieldMask_reflection_ =
43 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag eReflection(
44 FieldMask_descriptor_,
45 FieldMask::default_instance_,
46 FieldMask_offsets_,
47 -1,
48 -1,
49 -1,
50 sizeof(FieldMask),
51 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMask, _internal_metada ta_),
52 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMask, _is_default_inst ance_));
42 } 53 }
43 54
44 static const ::google::protobuf::internal::MigrationSchema schemas[] = {
45 { 0, -1, sizeof(FieldMask)},
46 };
47
48 static const ::google::protobuf::internal::DefaultInstanceData file_default_inst ances[] = {
49 {reinterpret_cast<const ::google::protobuf::Message*>(&_FieldMask_default_inst ance_), NULL},
50 };
51
52 namespace { 55 namespace {
53 56
54 void protobuf_AssignDescriptors() { 57 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
55 protobuf_AddDesc_google_2fprotobuf_2ffield_5fmask_2eproto(); 58 inline void protobuf_AssignDescriptorsOnce() {
56 ::google::protobuf::MessageFactory* factory = NULL; 59 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
57 AssignDescriptors( 60 &protobuf_AssignDesc_google_2fprotobuf_2ffield_5fmask_2eproto);
58 "google/protobuf/field_mask.proto", schemas, file_default_instances, proto buf_Offsets_google_2fprotobuf_2ffield_5fmask_2eproto(), factory,
59 file_level_metadata, NULL, NULL);
60 } 61 }
61 62
62 void protobuf_AssignDescriptorsOnce() {
63 static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
64 ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
65 }
66
67 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
68 void protobuf_RegisterTypes(const ::std::string&) { 63 void protobuf_RegisterTypes(const ::std::string&) {
69 protobuf_AssignDescriptorsOnce(); 64 protobuf_AssignDescriptorsOnce();
70 ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); 65 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
66 FieldMask_descriptor_, &FieldMask::default_instance());
71 } 67 }
72 68
73 } // namespace 69 } // namespace
74 70
75 void protobuf_ShutdownFile_google_2fprotobuf_2ffield_5fmask_2eproto() { 71 void protobuf_ShutdownFile_google_2fprotobuf_2ffield_5fmask_2eproto() {
76 _FieldMask_default_instance_.Shutdown(); 72 delete FieldMask::default_instance_;
77 delete file_level_metadata[0].reflection; 73 delete FieldMask_reflection_;
78 } 74 }
79 75
80 void protobuf_InitDefaults_google_2fprotobuf_2ffield_5fmask_2eproto_impl() { 76 void protobuf_AddDesc_google_2fprotobuf_2ffield_5fmask_2eproto() {
77 static bool already_here = false;
78 if (already_here) return;
79 already_here = true;
81 GOOGLE_PROTOBUF_VERIFY_VERSION; 80 GOOGLE_PROTOBUF_VERIFY_VERSION;
82 81
83 ::google::protobuf::internal::InitProtobufDefaults();
84 _FieldMask_default_instance_.DefaultConstruct();
85 }
86
87 void protobuf_InitDefaults_google_2fprotobuf_2ffield_5fmask_2eproto() {
88 static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
89 ::google::protobuf::GoogleOnceInit(&once, &protobuf_InitDefaults_google_2fprot obuf_2ffield_5fmask_2eproto_impl);
90 }
91 void protobuf_AddDesc_google_2fprotobuf_2ffield_5fmask_2eproto_impl() {
92 protobuf_InitDefaults_google_2fprotobuf_2ffield_5fmask_2eproto();
93 static const char descriptor[] = {
94 "\n google/protobuf/field_mask.proto\022\017goog"
95 "le.protobuf\"\032\n\tFieldMask\022\r\n\005paths\030\001 \003(\tB"
96 "\211\001\n\023com.google.protobufB\016FieldMaskProtoP"
97 "\001Z9google.golang.org/genproto/protobuf/f"
98 "ield_mask;field_mask\242\002\003GPB\252\002\036Google.Prot"
99 "obuf.WellKnownTypesb\006proto3"
100 };
101 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( 82 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
102 descriptor, 227); 83 "\n google/protobuf/field_mask.proto\022\017goog"
84 "le.protobuf\"\032\n\tFieldMask\022\r\n\005paths\030\001 \003(\tB"
85 "Q\n\023com.google.protobufB\016FieldMaskProtoP\001"
86 "\240\001\001\242\002\003GPB\252\002\036Google.Protobuf.WellKnownTyp"
87 "esb\006proto3", 170);
103 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( 88 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
104 "google/protobuf/field_mask.proto", &protobuf_RegisterTypes); 89 "google/protobuf/field_mask.proto", &protobuf_RegisterTypes);
90 FieldMask::default_instance_ = new FieldMask();
91 FieldMask::default_instance_->InitAsDefaultInstance();
105 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto buf_2ffield_5fmask_2eproto); 92 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto buf_2ffield_5fmask_2eproto);
106 } 93 }
107 94
108 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_google_2fprotobuf_2ffield_5fmask_2 eproto_once_);
109 void protobuf_AddDesc_google_2fprotobuf_2ffield_5fmask_2eproto() {
110 ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_google_2fprotobuf_2ffield _5fmask_2eproto_once_,
111 &protobuf_AddDesc_google_2fprotobuf_2ffield_5fmask_2eproto_impl );
112 }
113 // Force AddDescriptors() to be called at static initialization time. 95 // Force AddDescriptors() to be called at static initialization time.
114 struct StaticDescriptorInitializer_google_2fprotobuf_2ffield_5fmask_2eproto { 96 struct StaticDescriptorInitializer_google_2fprotobuf_2ffield_5fmask_2eproto {
115 StaticDescriptorInitializer_google_2fprotobuf_2ffield_5fmask_2eproto() { 97 StaticDescriptorInitializer_google_2fprotobuf_2ffield_5fmask_2eproto() {
116 protobuf_AddDesc_google_2fprotobuf_2ffield_5fmask_2eproto(); 98 protobuf_AddDesc_google_2fprotobuf_2ffield_5fmask_2eproto();
117 } 99 }
118 } static_descriptor_initializer_google_2fprotobuf_2ffield_5fmask_2eproto_; 100 } static_descriptor_initializer_google_2fprotobuf_2ffield_5fmask_2eproto_;
119 101
102 namespace {
103
104 static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD;
105 static void MergeFromFail(int line) {
106 GOOGLE_CHECK(false) << __FILE__ << ":" << line;
107 }
108
109 } // namespace
110
111
120 // =================================================================== 112 // ===================================================================
121 113
122 #if !defined(_MSC_VER) || _MSC_VER >= 1900 114 #if !defined(_MSC_VER) || _MSC_VER >= 1900
123 const int FieldMask::kPathsFieldNumber; 115 const int FieldMask::kPathsFieldNumber;
124 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 116 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
125 117
126 FieldMask::FieldMask() 118 FieldMask::FieldMask()
127 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 119 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
128 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
129 protobuf_InitDefaults_google_2fprotobuf_2ffield_5fmask_2eproto();
130 }
131 SharedCtor(); 120 SharedCtor();
132 // @@protoc_insertion_point(constructor:google.protobuf.FieldMask) 121 // @@protoc_insertion_point(constructor:google.protobuf.FieldMask)
133 } 122 }
123
124 void FieldMask::InitAsDefaultInstance() {
125 _is_default_instance_ = true;
126 }
127
134 FieldMask::FieldMask(const FieldMask& from) 128 FieldMask::FieldMask(const FieldMask& from)
135 : ::google::protobuf::Message(), 129 : ::google::protobuf::Message(),
136 _internal_metadata_(NULL), 130 _internal_metadata_(NULL) {
137 paths_(from.paths_), 131 SharedCtor();
138 _cached_size_(0) { 132 MergeFrom(from);
139 _internal_metadata_.MergeFrom(from._internal_metadata_);
140 // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldMask) 133 // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldMask)
141 } 134 }
142 135
143 void FieldMask::SharedCtor() { 136 void FieldMask::SharedCtor() {
137 _is_default_instance_ = false;
138 ::google::protobuf::internal::GetEmptyString();
144 _cached_size_ = 0; 139 _cached_size_ = 0;
145 } 140 }
146 141
147 FieldMask::~FieldMask() { 142 FieldMask::~FieldMask() {
148 // @@protoc_insertion_point(destructor:google.protobuf.FieldMask) 143 // @@protoc_insertion_point(destructor:google.protobuf.FieldMask)
149 SharedDtor(); 144 SharedDtor();
150 } 145 }
151 146
152 void FieldMask::SharedDtor() { 147 void FieldMask::SharedDtor() {
148 if (this != default_instance_) {
149 }
153 } 150 }
154 151
155 void FieldMask::SetCachedSize(int size) const { 152 void FieldMask::SetCachedSize(int size) const {
156 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 153 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
157 _cached_size_ = size; 154 _cached_size_ = size;
158 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 155 GOOGLE_SAFE_CONCURRENT_WRITES_END();
159 } 156 }
160 const ::google::protobuf::Descriptor* FieldMask::descriptor() { 157 const ::google::protobuf::Descriptor* FieldMask::descriptor() {
161 protobuf_AssignDescriptorsOnce(); 158 protobuf_AssignDescriptorsOnce();
162 return file_level_metadata[0].descriptor; 159 return FieldMask_descriptor_;
163 } 160 }
164 161
165 const FieldMask& FieldMask::default_instance() { 162 const FieldMask& FieldMask::default_instance() {
166 protobuf_InitDefaults_google_2fprotobuf_2ffield_5fmask_2eproto(); 163 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2ffield_5fma sk_2eproto();
167 return *internal_default_instance(); 164 return *default_instance_;
168 } 165 }
169 166
167 FieldMask* FieldMask::default_instance_ = NULL;
168
170 FieldMask* FieldMask::New(::google::protobuf::Arena* arena) const { 169 FieldMask* FieldMask::New(::google::protobuf::Arena* arena) const {
171 FieldMask* n = new FieldMask; 170 FieldMask* n = new FieldMask;
172 if (arena != NULL) { 171 if (arena != NULL) {
173 arena->Own(n); 172 arena->Own(n);
174 } 173 }
175 return n; 174 return n;
176 } 175 }
177 176
178 void FieldMask::Clear() { 177 void FieldMask::Clear() {
179 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldMask) 178 // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldMask)
180 paths_.Clear(); 179 paths_.Clear();
181 } 180 }
182 181
183 bool FieldMask::MergePartialFromCodedStream( 182 bool FieldMask::MergePartialFromCodedStream(
184 ::google::protobuf::io::CodedInputStream* input) { 183 ::google::protobuf::io::CodedInputStream* input) {
185 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 184 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
186 ::google::protobuf::uint32 tag; 185 ::google::protobuf::uint32 tag;
187 // @@protoc_insertion_point(parse_start:google.protobuf.FieldMask) 186 // @@protoc_insertion_point(parse_start:google.protobuf.FieldMask)
188 for (;;) { 187 for (;;) {
189 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN oLastTag(127u); 188 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff( 127);
190 tag = p.first; 189 tag = p.first;
191 if (!p.second) goto handle_unusual; 190 if (!p.second) goto handle_unusual;
192 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) { 191 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag) ) {
193 // repeated string paths = 1; 192 // repeated string paths = 1;
194 case 1: { 193 case 1: {
195 if (tag == 10u) { 194 if (tag == 10) {
195 parse_paths:
196 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 196 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
197 input, this->add_paths())); 197 input, this->add_paths()));
198 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 198 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
199 this->paths(this->paths_size() - 1).data(), 199 this->paths(this->paths_size() - 1).data(),
200 this->paths(this->paths_size() - 1).length(), 200 this->paths(this->paths_size() - 1).length(),
201 ::google::protobuf::internal::WireFormatLite::PARSE, 201 ::google::protobuf::internal::WireFormatLite::PARSE,
202 "google.protobuf.FieldMask.paths")); 202 "google.protobuf.FieldMask.paths"));
203 } else { 203 } else {
204 goto handle_unusual; 204 goto handle_unusual;
205 } 205 }
206 if (input->ExpectTag(10)) goto parse_paths;
207 if (input->ExpectAtEnd()) goto success;
206 break; 208 break;
207 } 209 }
208 210
209 default: { 211 default: {
210 handle_unusual: 212 handle_unusual:
211 if (tag == 0 || 213 if (tag == 0 ||
212 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 214 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
213 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 215 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
214 goto success; 216 goto success;
215 } 217 }
(...skipping 20 matching lines...) Expand all
236 this->paths(i).data(), this->paths(i).length(), 238 this->paths(i).data(), this->paths(i).length(),
237 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 239 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
238 "google.protobuf.FieldMask.paths"); 240 "google.protobuf.FieldMask.paths");
239 ::google::protobuf::internal::WireFormatLite::WriteString( 241 ::google::protobuf::internal::WireFormatLite::WriteString(
240 1, this->paths(i), output); 242 1, this->paths(i), output);
241 } 243 }
242 244
243 // @@protoc_insertion_point(serialize_end:google.protobuf.FieldMask) 245 // @@protoc_insertion_point(serialize_end:google.protobuf.FieldMask)
244 } 246 }
245 247
246 ::google::protobuf::uint8* FieldMask::InternalSerializeWithCachedSizesToArray( 248 ::google::protobuf::uint8* FieldMask::SerializeWithCachedSizesToArray(
247 bool deterministic, ::google::protobuf::uint8* target) const { 249 ::google::protobuf::uint8* target) const {
248 (void)deterministic; // Unused
249 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldMask ) 250 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldMask )
250 // repeated string paths = 1; 251 // repeated string paths = 1;
251 for (int i = 0; i < this->paths_size(); i++) { 252 for (int i = 0; i < this->paths_size(); i++) {
252 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 253 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
253 this->paths(i).data(), this->paths(i).length(), 254 this->paths(i).data(), this->paths(i).length(),
254 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 255 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
255 "google.protobuf.FieldMask.paths"); 256 "google.protobuf.FieldMask.paths");
256 target = ::google::protobuf::internal::WireFormatLite:: 257 target = ::google::protobuf::internal::WireFormatLite::
257 WriteStringToArray(1, this->paths(i), target); 258 WriteStringToArray(1, this->paths(i), target);
258 } 259 }
259 260
260 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldMask) 261 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldMask)
261 return target; 262 return target;
262 } 263 }
263 264
264 size_t FieldMask::ByteSizeLong() const { 265 int FieldMask::ByteSize() const {
265 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldMask) 266 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldMask)
266 size_t total_size = 0; 267 int total_size = 0;
267 268
268 // repeated string paths = 1; 269 // repeated string paths = 1;
269 total_size += 1 * 270 total_size += 1 * this->paths_size();
270 ::google::protobuf::internal::FromIntSize(this->paths_size());
271 for (int i = 0; i < this->paths_size(); i++) { 271 for (int i = 0; i < this->paths_size(); i++) {
272 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( 272 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
273 this->paths(i)); 273 this->paths(i));
274 } 274 }
275 275
276 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
277 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 276 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
278 _cached_size_ = cached_size; 277 _cached_size_ = total_size;
279 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 278 GOOGLE_SAFE_CONCURRENT_WRITES_END();
280 return total_size; 279 return total_size;
281 } 280 }
282 281
283 void FieldMask::MergeFrom(const ::google::protobuf::Message& from) { 282 void FieldMask::MergeFrom(const ::google::protobuf::Message& from) {
284 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldMa sk) 283 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldMa sk)
285 GOOGLE_DCHECK_NE(&from, this); 284 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
286 const FieldMask* source = 285 const FieldMask* source =
287 ::google::protobuf::internal::DynamicCastToGenerated<const FieldMask>( 286 ::google::protobuf::internal::DynamicCastToGenerated<const FieldMask>(
288 &from); 287 &from);
289 if (source == NULL) { 288 if (source == NULL) {
290 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F ieldMask) 289 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F ieldMask)
291 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 290 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
292 } else { 291 } else {
293 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.FieldMask) 292 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu f.FieldMask)
294 MergeFrom(*source); 293 MergeFrom(*source);
295 } 294 }
296 } 295 }
297 296
298 void FieldMask::MergeFrom(const FieldMask& from) { 297 void FieldMask::MergeFrom(const FieldMask& from) {
299 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Fiel dMask) 298 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Fiel dMask)
300 GOOGLE_DCHECK_NE(&from, this); 299 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
301 _internal_metadata_.MergeFrom(from._internal_metadata_);
302 paths_.MergeFrom(from.paths_); 300 paths_.MergeFrom(from.paths_);
303 } 301 }
304 302
305 void FieldMask::CopyFrom(const ::google::protobuf::Message& from) { 303 void FieldMask::CopyFrom(const ::google::protobuf::Message& from) {
306 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldMas k) 304 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldMas k)
307 if (&from == this) return; 305 if (&from == this) return;
308 Clear(); 306 Clear();
309 MergeFrom(from); 307 MergeFrom(from);
310 } 308 }
311 309
312 void FieldMask::CopyFrom(const FieldMask& from) { 310 void FieldMask::CopyFrom(const FieldMask& from) {
313 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Field Mask) 311 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Field Mask)
314 if (&from == this) return; 312 if (&from == this) return;
315 Clear(); 313 Clear();
316 MergeFrom(from); 314 MergeFrom(from);
317 } 315 }
318 316
319 bool FieldMask::IsInitialized() const { 317 bool FieldMask::IsInitialized() const {
318
320 return true; 319 return true;
321 } 320 }
322 321
323 void FieldMask::Swap(FieldMask* other) { 322 void FieldMask::Swap(FieldMask* other) {
324 if (other == this) return; 323 if (other == this) return;
325 InternalSwap(other); 324 InternalSwap(other);
326 } 325 }
327 void FieldMask::InternalSwap(FieldMask* other) { 326 void FieldMask::InternalSwap(FieldMask* other) {
328 paths_.UnsafeArenaSwap(&other->paths_); 327 paths_.UnsafeArenaSwap(&other->paths_);
328 _internal_metadata_.Swap(&other->_internal_metadata_);
329 std::swap(_cached_size_, other->_cached_size_); 329 std::swap(_cached_size_, other->_cached_size_);
330 } 330 }
331 331
332 ::google::protobuf::Metadata FieldMask::GetMetadata() const { 332 ::google::protobuf::Metadata FieldMask::GetMetadata() const {
333 protobuf_AssignDescriptorsOnce(); 333 protobuf_AssignDescriptorsOnce();
334 return file_level_metadata[0]; 334 ::google::protobuf::Metadata metadata;
335 metadata.descriptor = FieldMask_descriptor_;
336 metadata.reflection = FieldMask_reflection_;
337 return metadata;
335 } 338 }
336 339
337 #if PROTOBUF_INLINE_NOT_IN_HEADERS 340 #if PROTOBUF_INLINE_NOT_IN_HEADERS
338 // FieldMask 341 // FieldMask
339 342
340 // repeated string paths = 1; 343 // repeated string paths = 1;
341 int FieldMask::paths_size() const { 344 int FieldMask::paths_size() const {
342 return paths_.size(); 345 return paths_.size();
343 } 346 }
344 void FieldMask::clear_paths() { 347 void FieldMask::clear_paths() {
345 paths_.Clear(); 348 paths_.Clear();
346 } 349 }
347 const ::std::string& FieldMask::paths(int index) const { 350 const ::std::string& FieldMask::paths(int index) const {
348 // @@protoc_insertion_point(field_get:google.protobuf.FieldMask.paths) 351 // @@protoc_insertion_point(field_get:google.protobuf.FieldMask.paths)
349 return paths_.Get(index); 352 return paths_.Get(index);
350 } 353 }
351 ::std::string* FieldMask::mutable_paths(int index) { 354 ::std::string* FieldMask::mutable_paths(int index) {
352 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldMask.paths) 355 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldMask.paths)
353 return paths_.Mutable(index); 356 return paths_.Mutable(index);
354 } 357 }
355 void FieldMask::set_paths(int index, const ::std::string& value) { 358 void FieldMask::set_paths(int index, const ::std::string& value) {
356 // @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths) 359 // @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths)
357 paths_.Mutable(index)->assign(value); 360 paths_.Mutable(index)->assign(value);
358 } 361 }
359 void FieldMask::set_paths(int index, const char* value) { 362 void FieldMask::set_paths(int index, const char* value) {
360 paths_.Mutable(index)->assign(value); 363 paths_.Mutable(index)->assign(value);
361 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldMask.paths) 364 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldMask.paths)
362 } 365 }
363 void FieldMask::set_paths(int index, const char* value, size_t size) { 366 void FieldMask::set_paths(int index, const char* value, size_t size) {
364 paths_.Mutable(index)->assign( 367 paths_.Mutable(index)->assign(
365 reinterpret_cast<const char*>(value), size); 368 reinterpret_cast<const char*>(value), size);
366 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldMask.paths) 369 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldMask.paths)
367 } 370 }
368 ::std::string* FieldMask::add_paths() { 371 ::std::string* FieldMask::add_paths() {
369 // @@protoc_insertion_point(field_add_mutable:google.protobuf.FieldMask.paths) 372 // @@protoc_insertion_point(field_add_mutable:google.protobuf.FieldMask.paths)
370 return paths_.Add(); 373 return paths_.Add();
371 } 374 }
372 void FieldMask::add_paths(const ::std::string& value) { 375 void FieldMask::add_paths(const ::std::string& value) {
373 paths_.Add()->assign(value); 376 paths_.Add()->assign(value);
374 // @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths) 377 // @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths)
375 } 378 }
376 void FieldMask::add_paths(const char* value) { 379 void FieldMask::add_paths(const char* value) {
377 paths_.Add()->assign(value); 380 paths_.Add()->assign(value);
378 // @@protoc_insertion_point(field_add_char:google.protobuf.FieldMask.paths) 381 // @@protoc_insertion_point(field_add_char:google.protobuf.FieldMask.paths)
379 } 382 }
380 void FieldMask::add_paths(const char* value, size_t size) { 383 void FieldMask::add_paths(const char* value, size_t size) {
381 paths_.Add()->assign(reinterpret_cast<const char*>(value), size); 384 paths_.Add()->assign(reinterpret_cast<const char*>(value), size);
382 // @@protoc_insertion_point(field_add_pointer:google.protobuf.FieldMask.paths) 385 // @@protoc_insertion_point(field_add_pointer:google.protobuf.FieldMask.paths)
383 } 386 }
384 const ::google::protobuf::RepeatedPtrField< ::std::string>& 387 const ::google::protobuf::RepeatedPtrField< ::std::string>&
385 FieldMask::paths() const { 388 FieldMask::paths() const {
386 // @@protoc_insertion_point(field_list:google.protobuf.FieldMask.paths) 389 // @@protoc_insertion_point(field_list:google.protobuf.FieldMask.paths)
387 return paths_; 390 return paths_;
388 } 391 }
389 ::google::protobuf::RepeatedPtrField< ::std::string>* 392 ::google::protobuf::RepeatedPtrField< ::std::string>*
390 FieldMask::mutable_paths() { 393 FieldMask::mutable_paths() {
391 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldMask.paths ) 394 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldMask.paths )
392 return &paths_; 395 return &paths_;
393 } 396 }
394 397
395 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 398 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
396 399
397 // @@protoc_insertion_point(namespace_scope) 400 // @@protoc_insertion_point(namespace_scope)
398 401
399 } // namespace protobuf 402 } // namespace protobuf
400 } // namespace google 403 } // namespace google
401 404
402 // @@protoc_insertion_point(global_scope) 405 // @@protoc_insertion_point(global_scope)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698