blob: ca88d38ef76b8559f2195ea9a12c36925bc2e626 [file] [log] [blame]
David Ghandehari175e9c82017-02-21 15:46:11 -08001// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: google/protobuf/field_mask.proto
3
David Ghandehari175e9c82017-02-21 15:46:11 -08004#include <google/protobuf/field_mask.pb.h>
5
6#include <algorithm>
7
8#include <google/protobuf/stubs/common.h>
David Ghandehari175e9c82017-02-21 15:46:11 -08009#include <google/protobuf/io/coded_stream.h>
Kaido Kert25902c62024-06-17 17:10:28 -070010#include <google/protobuf/extension_set.h>
11#include <google/protobuf/wire_format_lite.h>
David Ghandehari175e9c82017-02-21 15:46:11 -080012#include <google/protobuf/descriptor.h>
13#include <google/protobuf/generated_message_reflection.h>
14#include <google/protobuf/reflection_ops.h>
15#include <google/protobuf/wire_format.h>
16// @@protoc_insertion_point(includes)
Kaido Kert25902c62024-06-17 17:10:28 -070017#include <google/protobuf/port_def.inc>
18PROTOBUF_NAMESPACE_OPEN
19class FieldMaskDefaultTypeInternal {
20 public:
21 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<FieldMask> _instance;
22} _FieldMask_default_instance_;
23PROTOBUF_NAMESPACE_CLOSE
24static void InitDefaultsscc_info_FieldMask_google_2fprotobuf_2ffield_5fmask_2eproto() {
David Ghandehari175e9c82017-02-21 15:46:11 -080025 GOOGLE_PROTOBUF_VERIFY_VERSION;
26
Kaido Kert25902c62024-06-17 17:10:28 -070027 {
28 void* ptr = &PROTOBUF_NAMESPACE_ID::_FieldMask_default_instance_;
29 new (ptr) PROTOBUF_NAMESPACE_ID::FieldMask();
30 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
David Ghandehari175e9c82017-02-21 15:46:11 -080031 }
Kaido Kert25902c62024-06-17 17:10:28 -070032 PROTOBUF_NAMESPACE_ID::FieldMask::InitAsDefaultInstance();
David Ghandehari175e9c82017-02-21 15:46:11 -080033}
34
Kaido Kert25902c62024-06-17 17:10:28 -070035PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FieldMask_google_2fprotobuf_2ffield_5fmask_2eproto =
36 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_FieldMask_google_2fprotobuf_2ffield_5fmask_2eproto}, {}};
David Ghandehari175e9c82017-02-21 15:46:11 -080037
Kaido Kert25902c62024-06-17 17:10:28 -070038static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2ffield_5fmask_2eproto[1];
39static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_google_2fprotobuf_2ffield_5fmask_2eproto = nullptr;
40static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_google_2fprotobuf_2ffield_5fmask_2eproto = nullptr;
41
42const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fprotobuf_2ffield_5fmask_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
43 ~0u, // no _has_bits_
44 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldMask, _internal_metadata_),
45 ~0u, // no _extensions_
46 ~0u, // no _oneof_case_
47 ~0u, // no _weak_field_map_
48 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldMask, paths_),
49};
50static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
51 { 0, -1, sizeof(PROTOBUF_NAMESPACE_ID::FieldMask)},
52};
53
54static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
55 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_FieldMask_default_instance_),
56};
57
58const char descriptor_table_protodef_google_2fprotobuf_2ffield_5fmask_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
59 "\n google/protobuf/field_mask.proto\022\017goog"
60 "le.protobuf\"\032\n\tFieldMask\022\r\n\005paths\030\001 \003(\tB"
61 "\214\001\n\023com.google.protobufB\016FieldMaskProtoP"
62 "\001Z9google.golang.org/genproto/protobuf/f"
63 "ield_mask;field_mask\370\001\001\242\002\003GPB\252\002\036Google.P"
64 "rotobuf.WellKnownTypesb\006proto3"
65 ;
66static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto_deps[1] = {
67};
68static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto_sccs[1] = {
69 &scc_info_FieldMask_google_2fprotobuf_2ffield_5fmask_2eproto.base,
70};
71static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto_once;
72static bool descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto_initialized = false;
73const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto = {
74 &descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto_initialized, descriptor_table_protodef_google_2fprotobuf_2ffield_5fmask_2eproto, "google/protobuf/field_mask.proto", 230,
75 &descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto_once, descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto_sccs, descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto_deps, 1, 0,
76 schemas, file_default_instances, TableStruct_google_2fprotobuf_2ffield_5fmask_2eproto::offsets,
77 file_level_metadata_google_2fprotobuf_2ffield_5fmask_2eproto, 1, file_level_enum_descriptors_google_2fprotobuf_2ffield_5fmask_2eproto, file_level_service_descriptors_google_2fprotobuf_2ffield_5fmask_2eproto,
78};
79
80// Force running AddDescriptors() at dynamic initialization time.
81static bool dynamic_init_dummy_google_2fprotobuf_2ffield_5fmask_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto), true);
82PROTOBUF_NAMESPACE_OPEN
David Ghandehari175e9c82017-02-21 15:46:11 -080083
84// ===================================================================
85
Kaido Kert25902c62024-06-17 17:10:28 -070086void FieldMask::InitAsDefaultInstance() {
87}
88class FieldMask::_Internal {
89 public:
90};
David Ghandehari175e9c82017-02-21 15:46:11 -080091
92FieldMask::FieldMask()
Kaido Kert25902c62024-06-17 17:10:28 -070093 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
David Ghandehari175e9c82017-02-21 15:46:11 -080094 SharedCtor();
95 // @@protoc_insertion_point(constructor:google.protobuf.FieldMask)
96}
Kaido Kert25902c62024-06-17 17:10:28 -070097FieldMask::FieldMask(::PROTOBUF_NAMESPACE_ID::Arena* arena)
98 : ::PROTOBUF_NAMESPACE_ID::Message(),
99 _internal_metadata_(arena),
100 paths_(arena) {
David Ghandehari175e9c82017-02-21 15:46:11 -0800101 SharedCtor();
Kaido Kert25902c62024-06-17 17:10:28 -0700102 RegisterArenaDtor(arena);
103 // @@protoc_insertion_point(arena_constructor:google.protobuf.FieldMask)
104}
105FieldMask::FieldMask(const FieldMask& from)
106 : ::PROTOBUF_NAMESPACE_ID::Message(),
107 _internal_metadata_(nullptr),
108 paths_(from.paths_) {
109 _internal_metadata_.MergeFrom(from._internal_metadata_);
David Ghandehari175e9c82017-02-21 15:46:11 -0800110 // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldMask)
111}
112
113void FieldMask::SharedCtor() {
Kaido Kert25902c62024-06-17 17:10:28 -0700114 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FieldMask_google_2fprotobuf_2ffield_5fmask_2eproto.base);
David Ghandehari175e9c82017-02-21 15:46:11 -0800115}
116
117FieldMask::~FieldMask() {
118 // @@protoc_insertion_point(destructor:google.protobuf.FieldMask)
119 SharedDtor();
120}
121
122void FieldMask::SharedDtor() {
Kaido Kert25902c62024-06-17 17:10:28 -0700123 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
David Ghandehari175e9c82017-02-21 15:46:11 -0800124}
125
Kaido Kert25902c62024-06-17 17:10:28 -0700126void FieldMask::ArenaDtor(void* object) {
127 FieldMask* _this = reinterpret_cast< FieldMask* >(object);
128 (void)_this;
129}
130void FieldMask::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
131}
David Ghandehari175e9c82017-02-21 15:46:11 -0800132void FieldMask::SetCachedSize(int size) const {
Kaido Kert25902c62024-06-17 17:10:28 -0700133 _cached_size_.Set(size);
David Ghandehari175e9c82017-02-21 15:46:11 -0800134}
David Ghandehari175e9c82017-02-21 15:46:11 -0800135const FieldMask& FieldMask::default_instance() {
Kaido Kert25902c62024-06-17 17:10:28 -0700136 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FieldMask_google_2fprotobuf_2ffield_5fmask_2eproto.base);
137 return *internal_default_instance();
David Ghandehari175e9c82017-02-21 15:46:11 -0800138}
139
David Ghandehari175e9c82017-02-21 15:46:11 -0800140
141void FieldMask::Clear() {
142// @@protoc_insertion_point(message_clear_start:google.protobuf.FieldMask)
Kaido Kert25902c62024-06-17 17:10:28 -0700143 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
144 // Prevent compiler warnings about cached_has_bits being unused
145 (void) cached_has_bits;
146
David Ghandehari175e9c82017-02-21 15:46:11 -0800147 paths_.Clear();
Kaido Kert25902c62024-06-17 17:10:28 -0700148 _internal_metadata_.Clear();
David Ghandehari175e9c82017-02-21 15:46:11 -0800149}
150
Kaido Kert25902c62024-06-17 17:10:28 -0700151#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
152const char* FieldMask::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
153#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
154 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
155 while (!ctx->Done(&ptr)) {
156 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
157 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
158 CHK_(ptr);
159 switch (tag >> 3) {
160 // repeated string paths = 1;
161 case 1:
162 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
163 ptr -= 1;
164 do {
165 ptr += 1;
166 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_paths(), ptr, ctx, "google.protobuf.FieldMask.paths");
167 CHK_(ptr);
168 if (!ctx->DataAvailable(ptr)) break;
169 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
170 } else goto handle_unusual;
171 continue;
172 default: {
173 handle_unusual:
174 if ((tag & 7) == 4 || tag == 0) {
175 ctx->SetLastTag(tag);
176 goto success;
177 }
178 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
179 CHK_(ptr != nullptr);
180 continue;
181 }
182 } // switch
183 } // while
184success:
185 return ptr;
186failure:
187 ptr = nullptr;
188 goto success;
189#undef CHK_
190}
191#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
David Ghandehari175e9c82017-02-21 15:46:11 -0800192bool FieldMask::MergePartialFromCodedStream(
Kaido Kert25902c62024-06-17 17:10:28 -0700193 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
194#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
195 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
David Ghandehari175e9c82017-02-21 15:46:11 -0800196 // @@protoc_insertion_point(parse_start:google.protobuf.FieldMask)
197 for (;;) {
Kaido Kert25902c62024-06-17 17:10:28 -0700198 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
David Ghandehari175e9c82017-02-21 15:46:11 -0800199 tag = p.first;
200 if (!p.second) goto handle_unusual;
Kaido Kert25902c62024-06-17 17:10:28 -0700201 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
David Ghandehari175e9c82017-02-21 15:46:11 -0800202 // repeated string paths = 1;
203 case 1: {
Kaido Kert25902c62024-06-17 17:10:28 -0700204 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
205 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
David Ghandehari175e9c82017-02-21 15:46:11 -0800206 input, this->add_paths()));
Kaido Kert25902c62024-06-17 17:10:28 -0700207 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
David Ghandehari175e9c82017-02-21 15:46:11 -0800208 this->paths(this->paths_size() - 1).data(),
Kaido Kert25902c62024-06-17 17:10:28 -0700209 static_cast<int>(this->paths(this->paths_size() - 1).length()),
210 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
David Ghandehari175e9c82017-02-21 15:46:11 -0800211 "google.protobuf.FieldMask.paths"));
212 } else {
213 goto handle_unusual;
214 }
David Ghandehari175e9c82017-02-21 15:46:11 -0800215 break;
216 }
217
218 default: {
219 handle_unusual:
Kaido Kert25902c62024-06-17 17:10:28 -0700220 if (tag == 0) {
David Ghandehari175e9c82017-02-21 15:46:11 -0800221 goto success;
222 }
Kaido Kert25902c62024-06-17 17:10:28 -0700223 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
224 input, tag, _internal_metadata_.mutable_unknown_fields()));
David Ghandehari175e9c82017-02-21 15:46:11 -0800225 break;
226 }
227 }
228 }
229success:
230 // @@protoc_insertion_point(parse_success:google.protobuf.FieldMask)
231 return true;
232failure:
233 // @@protoc_insertion_point(parse_failure:google.protobuf.FieldMask)
234 return false;
235#undef DO_
236}
Kaido Kert25902c62024-06-17 17:10:28 -0700237#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
David Ghandehari175e9c82017-02-21 15:46:11 -0800238
239void FieldMask::SerializeWithCachedSizes(
Kaido Kert25902c62024-06-17 17:10:28 -0700240 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
David Ghandehari175e9c82017-02-21 15:46:11 -0800241 // @@protoc_insertion_point(serialize_start:google.protobuf.FieldMask)
Kaido Kert25902c62024-06-17 17:10:28 -0700242 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
243 (void) cached_has_bits;
244
David Ghandehari175e9c82017-02-21 15:46:11 -0800245 // repeated string paths = 1;
Kaido Kert25902c62024-06-17 17:10:28 -0700246 for (int i = 0, n = this->paths_size(); i < n; i++) {
247 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
248 this->paths(i).data(), static_cast<int>(this->paths(i).length()),
249 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
David Ghandehari175e9c82017-02-21 15:46:11 -0800250 "google.protobuf.FieldMask.paths");
Kaido Kert25902c62024-06-17 17:10:28 -0700251 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
David Ghandehari175e9c82017-02-21 15:46:11 -0800252 1, this->paths(i), output);
253 }
254
Kaido Kert25902c62024-06-17 17:10:28 -0700255 if (_internal_metadata_.have_unknown_fields()) {
256 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
257 _internal_metadata_.unknown_fields(), output);
258 }
David Ghandehari175e9c82017-02-21 15:46:11 -0800259 // @@protoc_insertion_point(serialize_end:google.protobuf.FieldMask)
260}
261
Kaido Kert25902c62024-06-17 17:10:28 -0700262::PROTOBUF_NAMESPACE_ID::uint8* FieldMask::InternalSerializeWithCachedSizesToArray(
263 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
David Ghandehari175e9c82017-02-21 15:46:11 -0800264 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldMask)
Kaido Kert25902c62024-06-17 17:10:28 -0700265 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
266 (void) cached_has_bits;
267
David Ghandehari175e9c82017-02-21 15:46:11 -0800268 // repeated string paths = 1;
Kaido Kert25902c62024-06-17 17:10:28 -0700269 for (int i = 0, n = this->paths_size(); i < n; i++) {
270 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
271 this->paths(i).data(), static_cast<int>(this->paths(i).length()),
272 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
David Ghandehari175e9c82017-02-21 15:46:11 -0800273 "google.protobuf.FieldMask.paths");
Kaido Kert25902c62024-06-17 17:10:28 -0700274 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
David Ghandehari175e9c82017-02-21 15:46:11 -0800275 WriteStringToArray(1, this->paths(i), target);
276 }
277
Kaido Kert25902c62024-06-17 17:10:28 -0700278 if (_internal_metadata_.have_unknown_fields()) {
279 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
280 _internal_metadata_.unknown_fields(), target);
281 }
David Ghandehari175e9c82017-02-21 15:46:11 -0800282 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldMask)
283 return target;
284}
285
Kaido Kert25902c62024-06-17 17:10:28 -0700286size_t FieldMask::ByteSizeLong() const {
David Ghandehari175e9c82017-02-21 15:46:11 -0800287// @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldMask)
Kaido Kert25902c62024-06-17 17:10:28 -0700288 size_t total_size = 0;
289
290 if (_internal_metadata_.have_unknown_fields()) {
291 total_size +=
292 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
293 _internal_metadata_.unknown_fields());
294 }
295 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
296 // Prevent compiler warnings about cached_has_bits being unused
297 (void) cached_has_bits;
David Ghandehari175e9c82017-02-21 15:46:11 -0800298
299 // repeated string paths = 1;
Kaido Kert25902c62024-06-17 17:10:28 -0700300 total_size += 1 *
301 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->paths_size());
302 for (int i = 0, n = this->paths_size(); i < n; i++) {
303 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
David Ghandehari175e9c82017-02-21 15:46:11 -0800304 this->paths(i));
305 }
306
Kaido Kert25902c62024-06-17 17:10:28 -0700307 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
308 SetCachedSize(cached_size);
David Ghandehari175e9c82017-02-21 15:46:11 -0800309 return total_size;
310}
311
Kaido Kert25902c62024-06-17 17:10:28 -0700312void FieldMask::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
David Ghandehari175e9c82017-02-21 15:46:11 -0800313// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldMask)
Kaido Kert25902c62024-06-17 17:10:28 -0700314 GOOGLE_DCHECK_NE(&from, this);
315 const FieldMask* source =
316 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<FieldMask>(
David Ghandehari175e9c82017-02-21 15:46:11 -0800317 &from);
Kaido Kert25902c62024-06-17 17:10:28 -0700318 if (source == nullptr) {
David Ghandehari175e9c82017-02-21 15:46:11 -0800319 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FieldMask)
Kaido Kert25902c62024-06-17 17:10:28 -0700320 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
David Ghandehari175e9c82017-02-21 15:46:11 -0800321 } else {
322 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FieldMask)
323 MergeFrom(*source);
324 }
325}
326
327void FieldMask::MergeFrom(const FieldMask& from) {
328// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FieldMask)
Kaido Kert25902c62024-06-17 17:10:28 -0700329 GOOGLE_DCHECK_NE(&from, this);
330 _internal_metadata_.MergeFrom(from._internal_metadata_);
331 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
332 (void) cached_has_bits;
333
David Ghandehari175e9c82017-02-21 15:46:11 -0800334 paths_.MergeFrom(from.paths_);
335}
336
Kaido Kert25902c62024-06-17 17:10:28 -0700337void FieldMask::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
David Ghandehari175e9c82017-02-21 15:46:11 -0800338// @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldMask)
339 if (&from == this) return;
340 Clear();
341 MergeFrom(from);
342}
343
344void FieldMask::CopyFrom(const FieldMask& from) {
345// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FieldMask)
346 if (&from == this) return;
347 Clear();
348 MergeFrom(from);
349}
350
351bool FieldMask::IsInitialized() const {
David Ghandehari175e9c82017-02-21 15:46:11 -0800352 return true;
353}
354
David Ghandehari175e9c82017-02-21 15:46:11 -0800355void FieldMask::InternalSwap(FieldMask* other) {
Kaido Kert25902c62024-06-17 17:10:28 -0700356 using std::swap;
David Ghandehari175e9c82017-02-21 15:46:11 -0800357 _internal_metadata_.Swap(&other->_internal_metadata_);
Kaido Kert25902c62024-06-17 17:10:28 -0700358 paths_.InternalSwap(CastToBase(&other->paths_));
David Ghandehari175e9c82017-02-21 15:46:11 -0800359}
360
Kaido Kert25902c62024-06-17 17:10:28 -0700361::PROTOBUF_NAMESPACE_ID::Metadata FieldMask::GetMetadata() const {
362 return GetMetadataStatic();
David Ghandehari175e9c82017-02-21 15:46:11 -0800363}
364
David Ghandehari175e9c82017-02-21 15:46:11 -0800365
366// @@protoc_insertion_point(namespace_scope)
Kaido Kert25902c62024-06-17 17:10:28 -0700367PROTOBUF_NAMESPACE_CLOSE
368PROTOBUF_NAMESPACE_OPEN
369template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::FieldMask* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::FieldMask >(Arena* arena) {
370 return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::FieldMask >(arena);
371}
372PROTOBUF_NAMESPACE_CLOSE
David Ghandehari175e9c82017-02-21 15:46:11 -0800373
374// @@protoc_insertion_point(global_scope)
Kaido Kert25902c62024-06-17 17:10:28 -0700375#include <google/protobuf/port_undef.inc>