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

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

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

Powered by Google App Engine
This is Rietveld 408576698