Line | Count | Source |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: utils.proto |
3 | | |
4 | | #include "utils.pb.h" |
5 | | |
6 | | #include <algorithm> |
7 | | |
8 | | #include <google/protobuf/io/coded_stream.h> |
9 | | #include <google/protobuf/extension_set.h> |
10 | | #include <google/protobuf/wire_format_lite.h> |
11 | | #include <google/protobuf/descriptor.h> |
12 | | #include <google/protobuf/generated_message_reflection.h> |
13 | | #include <google/protobuf/reflection_ops.h> |
14 | | #include <google/protobuf/wire_format.h> |
15 | | // @@protoc_insertion_point(includes) |
16 | | #include <google/protobuf/port_def.inc> |
17 | | |
18 | | PROTOBUF_PRAGMA_INIT_SEG |
19 | | |
20 | | namespace _pb = ::PROTOBUF_NAMESPACE_ID; |
21 | | namespace _pbi = _pb::internal; |
22 | | |
23 | | namespace borg_mgmt { |
24 | | namespace node_proxy { |
25 | | namespace safepower { |
26 | | namespace utils { |
27 | | PROTOBUF_CONSTEXPR FlightRecordRequest::FlightRecordRequest( |
28 | | ::_pbi::ConstantInitialized): _impl_{ |
29 | | /*decltype(_impl_._has_bits_)*/{} |
30 | | , /*decltype(_impl_._cached_size_)*/{} |
31 | | , /*decltype(_impl_.origin_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} |
32 | | , /*decltype(_impl_.flight_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} |
33 | | , /*decltype(_impl_.step_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} |
34 | | , /*decltype(_impl_.workflow_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} |
35 | | , /*decltype(_impl_.start_time_)*/nullptr |
36 | | , /*decltype(_impl_.payload_)*/nullptr |
37 | | , /*decltype(_impl_.trip_id_)*/uint64_t{0u} |
38 | | , /*decltype(_impl_.use_prod_region_gslb_target_)*/false} {} |
39 | | struct FlightRecordRequestDefaultTypeInternal { |
40 | | PROTOBUF_CONSTEXPR FlightRecordRequestDefaultTypeInternal() |
41 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
42 | 0 | ~FlightRecordRequestDefaultTypeInternal() {} |
43 | | union { |
44 | | FlightRecordRequest _instance; |
45 | | }; |
46 | | }; |
47 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlightRecordRequestDefaultTypeInternal _FlightRecordRequest_default_instance_; |
48 | | } // namespace utils |
49 | | } // namespace safepower |
50 | | } // namespace node_proxy |
51 | | } // namespace borg_mgmt |
52 | | static ::_pb::Metadata file_level_metadata_utils_2eproto[1]; |
53 | | static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_utils_2eproto = nullptr; |
54 | | static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_utils_2eproto = nullptr; |
55 | | |
56 | | const uint32_t TableStruct_utils_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
57 | | PROTOBUF_FIELD_OFFSET(::borg_mgmt::node_proxy::safepower::utils::FlightRecordRequest, _impl_._has_bits_), |
58 | | PROTOBUF_FIELD_OFFSET(::borg_mgmt::node_proxy::safepower::utils::FlightRecordRequest, _internal_metadata_), |
59 | | ~0u, // no _extensions_ |
60 | | ~0u, // no _oneof_case_ |
61 | | ~0u, // no _weak_field_map_ |
62 | | ~0u, // no _inlined_string_donated_ |
63 | | PROTOBUF_FIELD_OFFSET(::borg_mgmt::node_proxy::safepower::utils::FlightRecordRequest, _impl_.origin_id_), |
64 | | PROTOBUF_FIELD_OFFSET(::borg_mgmt::node_proxy::safepower::utils::FlightRecordRequest, _impl_.flight_name_), |
65 | | PROTOBUF_FIELD_OFFSET(::borg_mgmt::node_proxy::safepower::utils::FlightRecordRequest, _impl_.trip_id_), |
66 | | PROTOBUF_FIELD_OFFSET(::borg_mgmt::node_proxy::safepower::utils::FlightRecordRequest, _impl_.start_time_), |
67 | | PROTOBUF_FIELD_OFFSET(::borg_mgmt::node_proxy::safepower::utils::FlightRecordRequest, _impl_.payload_), |
68 | | PROTOBUF_FIELD_OFFSET(::borg_mgmt::node_proxy::safepower::utils::FlightRecordRequest, _impl_.step_id_), |
69 | | PROTOBUF_FIELD_OFFSET(::borg_mgmt::node_proxy::safepower::utils::FlightRecordRequest, _impl_.use_prod_region_gslb_target_), |
70 | | PROTOBUF_FIELD_OFFSET(::borg_mgmt::node_proxy::safepower::utils::FlightRecordRequest, _impl_.workflow_id_), |
71 | | 0, |
72 | | 1, |
73 | | 6, |
74 | | 4, |
75 | | 5, |
76 | | 2, |
77 | | 7, |
78 | | 3, |
79 | | }; |
80 | | static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
81 | | { 0, 14, -1, sizeof(::borg_mgmt::node_proxy::safepower::utils::FlightRecordRequest)}, |
82 | | }; |
83 | | |
84 | | static const ::_pb::Message* const file_default_instances[] = { |
85 | | &::borg_mgmt::node_proxy::safepower::utils::_FlightRecordRequest_default_instance_._instance, |
86 | | }; |
87 | | |
88 | | const char descriptor_table_protodef_utils_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = |
89 | | "\n\013utils.proto\022$borg_mgmt.node_proxy.safe" |
90 | | "power.utils\032\031google/protobuf/any.proto\032\037" |
91 | | "google/protobuf/timestamp.proto\"\360\001\n\023Flig" |
92 | | "htRecordRequest\022\021\n\torigin_id\030\001 \001(\t\022\023\n\013fl" |
93 | | "ight_name\030\002 \001(\t\022\017\n\007trip_id\030\003 \001(\004\022.\n\nstar" |
94 | | "t_time\030\004 \001(\0132\032.google.protobuf.Timestamp" |
95 | | "\022%\n\007payload\030\005 \001(\0132\024.google.protobuf.Any\022" |
96 | | "\017\n\007step_id\030\006 \001(\t\022#\n\033use_prod_region_gslb" |
97 | | "_target\030\007 \001(\010\022\023\n\013workflow_id\030\010 \001(\t" |
98 | | ; |
99 | | static const ::_pbi::DescriptorTable* const descriptor_table_utils_2eproto_deps[2] = { |
100 | | &::descriptor_table_google_2fprotobuf_2fany_2eproto, |
101 | | &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, |
102 | | }; |
103 | | static ::_pbi::once_flag descriptor_table_utils_2eproto_once; |
104 | | const ::_pbi::DescriptorTable descriptor_table_utils_2eproto = { |
105 | | false, false, 354, descriptor_table_protodef_utils_2eproto, |
106 | | "utils.proto", |
107 | | &descriptor_table_utils_2eproto_once, descriptor_table_utils_2eproto_deps, 2, 1, |
108 | | schemas, file_default_instances, TableStruct_utils_2eproto::offsets, |
109 | | file_level_metadata_utils_2eproto, file_level_enum_descriptors_utils_2eproto, |
110 | | file_level_service_descriptors_utils_2eproto, |
111 | | }; |
112 | 1 | PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_utils_2eproto_getter() { |
113 | 1 | return &descriptor_table_utils_2eproto; |
114 | 1 | } |
115 | | |
116 | | // Force running AddDescriptors() at dynamic initialization time. |
117 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_utils_2eproto(&descriptor_table_utils_2eproto); |
118 | | namespace borg_mgmt { |
119 | | namespace node_proxy { |
120 | | namespace safepower { |
121 | | namespace utils { |
122 | | |
123 | | // =================================================================== |
124 | | |
125 | | class FlightRecordRequest::_Internal { |
126 | | public: |
127 | | using HasBits = decltype(std::declval<FlightRecordRequest>()._impl_._has_bits_); |
128 | 0 | static void set_has_origin_id(HasBits* has_bits) { |
129 | 0 | (*has_bits)[0] |= 1u; |
130 | 0 | } |
131 | 0 | static void set_has_flight_name(HasBits* has_bits) { |
132 | 0 | (*has_bits)[0] |= 2u; |
133 | 0 | } |
134 | 6.05k | static void set_has_trip_id(HasBits* has_bits) { |
135 | 6.05k | (*has_bits)[0] |= 64u; |
136 | 6.05k | } |
137 | | static const ::PROTOBUF_NAMESPACE_ID::Timestamp& start_time(const FlightRecordRequest* msg); |
138 | 0 | static void set_has_start_time(HasBits* has_bits) { |
139 | 0 | (*has_bits)[0] |= 16u; |
140 | 0 | } |
141 | | static const ::PROTOBUF_NAMESPACE_ID::Any& payload(const FlightRecordRequest* msg); |
142 | 0 | static void set_has_payload(HasBits* has_bits) { |
143 | 0 | (*has_bits)[0] |= 32u; |
144 | 0 | } |
145 | 0 | static void set_has_step_id(HasBits* has_bits) { |
146 | 0 | (*has_bits)[0] |= 4u; |
147 | 0 | } |
148 | 6.42k | static void set_has_use_prod_region_gslb_target(HasBits* has_bits) { |
149 | 6.42k | (*has_bits)[0] |= 128u; |
150 | 6.42k | } |
151 | 0 | static void set_has_workflow_id(HasBits* has_bits) { |
152 | 0 | (*has_bits)[0] |= 8u; |
153 | 0 | } |
154 | | }; |
155 | | |
156 | | const ::PROTOBUF_NAMESPACE_ID::Timestamp& |
157 | 0 | FlightRecordRequest::_Internal::start_time(const FlightRecordRequest* msg) { |
158 | 0 | return *msg->_impl_.start_time_; |
159 | 0 | } |
160 | | const ::PROTOBUF_NAMESPACE_ID::Any& |
161 | 0 | FlightRecordRequest::_Internal::payload(const FlightRecordRequest* msg) { |
162 | 0 | return *msg->_impl_.payload_; |
163 | 0 | } |
164 | 0 | void FlightRecordRequest::clear_start_time() { |
165 | 0 | if (_impl_.start_time_ != nullptr) _impl_.start_time_->Clear(); |
166 | 0 | _impl_._has_bits_[0] &= ~0x00000010u; |
167 | 0 | } |
168 | 0 | void FlightRecordRequest::clear_payload() { |
169 | 0 | if (_impl_.payload_ != nullptr) _impl_.payload_->Clear(); |
170 | 0 | _impl_._has_bits_[0] &= ~0x00000020u; |
171 | 0 | } |
172 | | FlightRecordRequest::FlightRecordRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
173 | | bool is_message_owned) |
174 | 1.73k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
175 | 1.73k | SharedCtor(arena, is_message_owned); |
176 | | // @@protoc_insertion_point(arena_constructor:borg_mgmt.node_proxy.safepower.utils.FlightRecordRequest) |
177 | 1.73k | } |
178 | | FlightRecordRequest::FlightRecordRequest(const FlightRecordRequest& from) |
179 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
180 | 0 | FlightRecordRequest* const _this = this; (void)_this; |
181 | 0 | new (&_impl_) Impl_{ |
182 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
183 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
184 | 0 | , decltype(_impl_.origin_id_){} |
185 | 0 | , decltype(_impl_.flight_name_){} |
186 | 0 | , decltype(_impl_.step_id_){} |
187 | 0 | , decltype(_impl_.workflow_id_){} |
188 | 0 | , decltype(_impl_.start_time_){nullptr} |
189 | 0 | , decltype(_impl_.payload_){nullptr} |
190 | 0 | , decltype(_impl_.trip_id_){} |
191 | 0 | , decltype(_impl_.use_prod_region_gslb_target_){}}; |
192 | |
|
193 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
194 | 0 | _impl_.origin_id_.InitDefault(); |
195 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
196 | | _impl_.origin_id_.Set("", GetArenaForAllocation()); |
197 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
198 | 0 | if (from._internal_has_origin_id()) { |
199 | 0 | _this->_impl_.origin_id_.Set(from._internal_origin_id(), |
200 | 0 | _this->GetArenaForAllocation()); |
201 | 0 | } |
202 | 0 | _impl_.flight_name_.InitDefault(); |
203 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
204 | | _impl_.flight_name_.Set("", GetArenaForAllocation()); |
205 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
206 | 0 | if (from._internal_has_flight_name()) { |
207 | 0 | _this->_impl_.flight_name_.Set(from._internal_flight_name(), |
208 | 0 | _this->GetArenaForAllocation()); |
209 | 0 | } |
210 | 0 | _impl_.step_id_.InitDefault(); |
211 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
212 | | _impl_.step_id_.Set("", GetArenaForAllocation()); |
213 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
214 | 0 | if (from._internal_has_step_id()) { |
215 | 0 | _this->_impl_.step_id_.Set(from._internal_step_id(), |
216 | 0 | _this->GetArenaForAllocation()); |
217 | 0 | } |
218 | 0 | _impl_.workflow_id_.InitDefault(); |
219 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
220 | | _impl_.workflow_id_.Set("", GetArenaForAllocation()); |
221 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
222 | 0 | if (from._internal_has_workflow_id()) { |
223 | 0 | _this->_impl_.workflow_id_.Set(from._internal_workflow_id(), |
224 | 0 | _this->GetArenaForAllocation()); |
225 | 0 | } |
226 | 0 | if (from._internal_has_start_time()) { |
227 | 0 | _this->_impl_.start_time_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.start_time_); |
228 | 0 | } |
229 | 0 | if (from._internal_has_payload()) { |
230 | 0 | _this->_impl_.payload_ = new ::PROTOBUF_NAMESPACE_ID::Any(*from._impl_.payload_); |
231 | 0 | } |
232 | 0 | ::memcpy(&_impl_.trip_id_, &from._impl_.trip_id_, |
233 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&_impl_.use_prod_region_gslb_target_) - |
234 | 0 | reinterpret_cast<char*>(&_impl_.trip_id_)) + sizeof(_impl_.use_prod_region_gslb_target_)); |
235 | | // @@protoc_insertion_point(copy_constructor:borg_mgmt.node_proxy.safepower.utils.FlightRecordRequest) |
236 | 0 | } |
237 | | |
238 | | inline void FlightRecordRequest::SharedCtor( |
239 | 1.73k | ::_pb::Arena* arena, bool is_message_owned) { |
240 | 1.73k | (void)arena; |
241 | 1.73k | (void)is_message_owned; |
242 | 1.73k | new (&_impl_) Impl_{ |
243 | 1.73k | decltype(_impl_._has_bits_){} |
244 | 1.73k | , /*decltype(_impl_._cached_size_)*/{} |
245 | 1.73k | , decltype(_impl_.origin_id_){} |
246 | 1.73k | , decltype(_impl_.flight_name_){} |
247 | 1.73k | , decltype(_impl_.step_id_){} |
248 | 1.73k | , decltype(_impl_.workflow_id_){} |
249 | 1.73k | , decltype(_impl_.start_time_){nullptr} |
250 | 1.73k | , decltype(_impl_.payload_){nullptr} |
251 | 1.73k | , decltype(_impl_.trip_id_){uint64_t{0u}} |
252 | 1.73k | , decltype(_impl_.use_prod_region_gslb_target_){false} |
253 | 1.73k | }; |
254 | 1.73k | _impl_.origin_id_.InitDefault(); |
255 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
256 | | _impl_.origin_id_.Set("", GetArenaForAllocation()); |
257 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
258 | 1.73k | _impl_.flight_name_.InitDefault(); |
259 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
260 | | _impl_.flight_name_.Set("", GetArenaForAllocation()); |
261 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
262 | 1.73k | _impl_.step_id_.InitDefault(); |
263 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
264 | | _impl_.step_id_.Set("", GetArenaForAllocation()); |
265 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
266 | 1.73k | _impl_.workflow_id_.InitDefault(); |
267 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
268 | | _impl_.workflow_id_.Set("", GetArenaForAllocation()); |
269 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
270 | 1.73k | } |
271 | | |
272 | 1.73k | FlightRecordRequest::~FlightRecordRequest() { |
273 | | // @@protoc_insertion_point(destructor:borg_mgmt.node_proxy.safepower.utils.FlightRecordRequest) |
274 | 1.73k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
275 | 0 | (void)arena; |
276 | 0 | return; |
277 | 0 | } |
278 | 1.73k | SharedDtor(); |
279 | 1.73k | } |
280 | | |
281 | 1.73k | inline void FlightRecordRequest::SharedDtor() { |
282 | 1.73k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
283 | 1.73k | _impl_.origin_id_.Destroy(); |
284 | 1.73k | _impl_.flight_name_.Destroy(); |
285 | 1.73k | _impl_.step_id_.Destroy(); |
286 | 1.73k | _impl_.workflow_id_.Destroy(); |
287 | 1.73k | if (this != internal_default_instance()) delete _impl_.start_time_; |
288 | 1.73k | if (this != internal_default_instance()) delete _impl_.payload_; |
289 | 1.73k | } |
290 | | |
291 | 0 | void FlightRecordRequest::SetCachedSize(int size) const { |
292 | 0 | _impl_._cached_size_.Set(size); |
293 | 0 | } |
294 | | |
295 | 0 | void FlightRecordRequest::Clear() { |
296 | | // @@protoc_insertion_point(message_clear_start:borg_mgmt.node_proxy.safepower.utils.FlightRecordRequest) |
297 | 0 | uint32_t cached_has_bits = 0; |
298 | | // Prevent compiler warnings about cached_has_bits being unused |
299 | 0 | (void) cached_has_bits; |
300 | |
|
301 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
302 | 0 | if (cached_has_bits & 0x0000003fu) { |
303 | 0 | if (cached_has_bits & 0x00000001u) { |
304 | 0 | _impl_.origin_id_.ClearNonDefaultToEmpty(); |
305 | 0 | } |
306 | 0 | if (cached_has_bits & 0x00000002u) { |
307 | 0 | _impl_.flight_name_.ClearNonDefaultToEmpty(); |
308 | 0 | } |
309 | 0 | if (cached_has_bits & 0x00000004u) { |
310 | 0 | _impl_.step_id_.ClearNonDefaultToEmpty(); |
311 | 0 | } |
312 | 0 | if (cached_has_bits & 0x00000008u) { |
313 | 0 | _impl_.workflow_id_.ClearNonDefaultToEmpty(); |
314 | 0 | } |
315 | 0 | if (cached_has_bits & 0x00000010u) { |
316 | 0 | GOOGLE_DCHECK(_impl_.start_time_ != nullptr); |
317 | 0 | _impl_.start_time_->Clear(); |
318 | 0 | } |
319 | 0 | if (cached_has_bits & 0x00000020u) { |
320 | 0 | GOOGLE_DCHECK(_impl_.payload_ != nullptr); |
321 | 0 | _impl_.payload_->Clear(); |
322 | 0 | } |
323 | 0 | } |
324 | 0 | if (cached_has_bits & 0x000000c0u) { |
325 | 0 | ::memset(&_impl_.trip_id_, 0, static_cast<size_t>( |
326 | 0 | reinterpret_cast<char*>(&_impl_.use_prod_region_gslb_target_) - |
327 | 0 | reinterpret_cast<char*>(&_impl_.trip_id_)) + sizeof(_impl_.use_prod_region_gslb_target_)); |
328 | 0 | } |
329 | 0 | _impl_._has_bits_.Clear(); |
330 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
331 | 0 | } |
332 | | |
333 | 4.63k | const char* FlightRecordRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
334 | 40.7k | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
335 | 4.63k | _Internal::HasBits has_bits{}; |
336 | 44.8k | while (!ctx->Done(&ptr)) { |
337 | 40.7k | uint32_t tag; |
338 | 40.7k | ptr = ::_pbi::ReadTag(ptr, &tag); |
339 | 40.7k | switch (tag >> 3) { |
340 | | // optional string origin_id = 1; |
341 | 6.44k | case 1: |
342 | 6.44k | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
343 | 2.34k | auto str = _internal_mutable_origin_id(); |
344 | 2.34k | ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
345 | 2.34k | CHK_(ptr); |
346 | 2.33k | #ifndef NDEBUG |
347 | 2.33k | ::_pbi::VerifyUTF8(str, "borg_mgmt.node_proxy.safepower.utils.FlightRecordRequest.origin_id"); |
348 | 2.33k | #endif // !NDEBUG |
349 | 2.33k | } else |
350 | 4.10k | goto handle_unusual; |
351 | 2.33k | continue; |
352 | | // optional string flight_name = 2; |
353 | 6.27k | case 2: |
354 | 6.27k | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
355 | 5.10k | auto str = _internal_mutable_flight_name(); |
356 | 5.10k | ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
357 | 5.10k | CHK_(ptr); |
358 | 5.10k | #ifndef NDEBUG |
359 | 5.10k | ::_pbi::VerifyUTF8(str, "borg_mgmt.node_proxy.safepower.utils.FlightRecordRequest.flight_name"); |
360 | 5.10k | #endif // !NDEBUG |
361 | 5.10k | } else |
362 | 1.17k | goto handle_unusual; |
363 | 5.10k | continue; |
364 | | // optional uint64 trip_id = 3; |
365 | 6.85k | case 3: |
366 | 6.85k | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { |
367 | 6.05k | _Internal::set_has_trip_id(&has_bits); |
368 | 6.05k | _impl_.trip_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
369 | 6.05k | CHK_(ptr); |
370 | 6.05k | } else |
371 | 802 | goto handle_unusual; |
372 | 6.05k | continue; |
373 | | // optional .google.protobuf.Timestamp start_time = 4; |
374 | 6.05k | case 4: |
375 | 3.17k | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { |
376 | 2.57k | ptr = ctx->ParseMessage(_internal_mutable_start_time(), ptr); |
377 | 2.57k | CHK_(ptr); |
378 | 2.57k | } else |
379 | 600 | goto handle_unusual; |
380 | 2.42k | continue; |
381 | | // optional .google.protobuf.Any payload = 5; |
382 | 2.42k | case 5: |
383 | 1.75k | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { |
384 | 1.26k | ptr = ctx->ParseMessage(_internal_mutable_payload(), ptr); |
385 | 1.26k | CHK_(ptr); |
386 | 1.26k | } else |
387 | 494 | goto handle_unusual; |
388 | 1.10k | continue; |
389 | | // optional string step_id = 6; |
390 | 1.10k | case 6: |
391 | 977 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) { |
392 | 638 | auto str = _internal_mutable_step_id(); |
393 | 638 | ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
394 | 638 | CHK_(ptr); |
395 | 632 | #ifndef NDEBUG |
396 | 632 | ::_pbi::VerifyUTF8(str, "borg_mgmt.node_proxy.safepower.utils.FlightRecordRequest.step_id"); |
397 | 632 | #endif // !NDEBUG |
398 | 632 | } else |
399 | 339 | goto handle_unusual; |
400 | 632 | continue; |
401 | | // optional bool use_prod_region_gslb_target = 7; |
402 | 6.86k | case 7: |
403 | 6.86k | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) { |
404 | 6.42k | _Internal::set_has_use_prod_region_gslb_target(&has_bits); |
405 | 6.42k | _impl_.use_prod_region_gslb_target_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
406 | 6.42k | CHK_(ptr); |
407 | 6.42k | } else |
408 | 438 | goto handle_unusual; |
409 | 6.42k | continue; |
410 | | // optional string workflow_id = 8; |
411 | 6.42k | case 8: |
412 | 3.24k | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) { |
413 | 550 | auto str = _internal_mutable_workflow_id(); |
414 | 550 | ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
415 | 550 | CHK_(ptr); |
416 | 547 | #ifndef NDEBUG |
417 | 547 | ::_pbi::VerifyUTF8(str, "borg_mgmt.node_proxy.safepower.utils.FlightRecordRequest.workflow_id"); |
418 | 547 | #endif // !NDEBUG |
419 | 547 | } else |
420 | 2.69k | goto handle_unusual; |
421 | 547 | continue; |
422 | 5.11k | default: |
423 | 5.11k | goto handle_unusual; |
424 | 40.7k | } // switch |
425 | 15.7k | handle_unusual: |
426 | 15.7k | if ((tag == 0) || ((tag & 7) == 4)) { |
427 | 53 | CHK_(ptr); |
428 | 47 | ctx->SetLastTag(tag); |
429 | 47 | goto message_done; |
430 | 53 | } |
431 | 15.6k | ptr = UnknownFieldParse( |
432 | 15.6k | tag, |
433 | 15.6k | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
434 | 15.6k | ptr, ctx); |
435 | 15.6k | CHK_(ptr != nullptr); |
436 | 15.6k | } // while |
437 | 4.63k | message_done: |
438 | 4.63k | _impl_._has_bits_.Or(has_bits); |
439 | 4.63k | return ptr; |
440 | 426 | failure: |
441 | 426 | ptr = nullptr; |
442 | 426 | goto message_done; |
443 | 4.63k | #undef CHK_ |
444 | 4.63k | } |
445 | | |
446 | | uint8_t* FlightRecordRequest::_InternalSerialize( |
447 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
448 | | // @@protoc_insertion_point(serialize_to_array_start:borg_mgmt.node_proxy.safepower.utils.FlightRecordRequest) |
449 | 0 | uint32_t cached_has_bits = 0; |
450 | 0 | (void) cached_has_bits; |
451 | |
|
452 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
453 | | // optional string origin_id = 1; |
454 | 0 | if (cached_has_bits & 0x00000001u) { |
455 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
456 | 0 | this->_internal_origin_id().data(), static_cast<int>(this->_internal_origin_id().length()), |
457 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
458 | 0 | "borg_mgmt.node_proxy.safepower.utils.FlightRecordRequest.origin_id"); |
459 | 0 | target = stream->WriteStringMaybeAliased( |
460 | 0 | 1, this->_internal_origin_id(), target); |
461 | 0 | } |
462 | | |
463 | | // optional string flight_name = 2; |
464 | 0 | if (cached_has_bits & 0x00000002u) { |
465 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
466 | 0 | this->_internal_flight_name().data(), static_cast<int>(this->_internal_flight_name().length()), |
467 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
468 | 0 | "borg_mgmt.node_proxy.safepower.utils.FlightRecordRequest.flight_name"); |
469 | 0 | target = stream->WriteStringMaybeAliased( |
470 | 0 | 2, this->_internal_flight_name(), target); |
471 | 0 | } |
472 | | |
473 | | // optional uint64 trip_id = 3; |
474 | 0 | if (cached_has_bits & 0x00000040u) { |
475 | 0 | target = stream->EnsureSpace(target); |
476 | 0 | target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_trip_id(), target); |
477 | 0 | } |
478 | | |
479 | | // optional .google.protobuf.Timestamp start_time = 4; |
480 | 0 | if (cached_has_bits & 0x00000010u) { |
481 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
482 | 0 | InternalWriteMessage(4, _Internal::start_time(this), |
483 | 0 | _Internal::start_time(this).GetCachedSize(), target, stream); |
484 | 0 | } |
485 | | |
486 | | // optional .google.protobuf.Any payload = 5; |
487 | 0 | if (cached_has_bits & 0x00000020u) { |
488 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
489 | 0 | InternalWriteMessage(5, _Internal::payload(this), |
490 | 0 | _Internal::payload(this).GetCachedSize(), target, stream); |
491 | 0 | } |
492 | | |
493 | | // optional string step_id = 6; |
494 | 0 | if (cached_has_bits & 0x00000004u) { |
495 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
496 | 0 | this->_internal_step_id().data(), static_cast<int>(this->_internal_step_id().length()), |
497 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
498 | 0 | "borg_mgmt.node_proxy.safepower.utils.FlightRecordRequest.step_id"); |
499 | 0 | target = stream->WriteStringMaybeAliased( |
500 | 0 | 6, this->_internal_step_id(), target); |
501 | 0 | } |
502 | | |
503 | | // optional bool use_prod_region_gslb_target = 7; |
504 | 0 | if (cached_has_bits & 0x00000080u) { |
505 | 0 | target = stream->EnsureSpace(target); |
506 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray(7, this->_internal_use_prod_region_gslb_target(), target); |
507 | 0 | } |
508 | | |
509 | | // optional string workflow_id = 8; |
510 | 0 | if (cached_has_bits & 0x00000008u) { |
511 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
512 | 0 | this->_internal_workflow_id().data(), static_cast<int>(this->_internal_workflow_id().length()), |
513 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
514 | 0 | "borg_mgmt.node_proxy.safepower.utils.FlightRecordRequest.workflow_id"); |
515 | 0 | target = stream->WriteStringMaybeAliased( |
516 | 0 | 8, this->_internal_workflow_id(), target); |
517 | 0 | } |
518 | |
|
519 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
520 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
521 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
522 | 0 | } |
523 | | // @@protoc_insertion_point(serialize_to_array_end:borg_mgmt.node_proxy.safepower.utils.FlightRecordRequest) |
524 | 0 | return target; |
525 | 0 | } |
526 | | |
527 | 0 | size_t FlightRecordRequest::ByteSizeLong() const { |
528 | | // @@protoc_insertion_point(message_byte_size_start:borg_mgmt.node_proxy.safepower.utils.FlightRecordRequest) |
529 | 0 | size_t total_size = 0; |
530 | |
|
531 | 0 | uint32_t cached_has_bits = 0; |
532 | | // Prevent compiler warnings about cached_has_bits being unused |
533 | 0 | (void) cached_has_bits; |
534 | |
|
535 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
536 | 0 | if (cached_has_bits & 0x000000ffu) { |
537 | | // optional string origin_id = 1; |
538 | 0 | if (cached_has_bits & 0x00000001u) { |
539 | 0 | total_size += 1 + |
540 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
541 | 0 | this->_internal_origin_id()); |
542 | 0 | } |
543 | | |
544 | | // optional string flight_name = 2; |
545 | 0 | if (cached_has_bits & 0x00000002u) { |
546 | 0 | total_size += 1 + |
547 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
548 | 0 | this->_internal_flight_name()); |
549 | 0 | } |
550 | | |
551 | | // optional string step_id = 6; |
552 | 0 | if (cached_has_bits & 0x00000004u) { |
553 | 0 | total_size += 1 + |
554 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
555 | 0 | this->_internal_step_id()); |
556 | 0 | } |
557 | | |
558 | | // optional string workflow_id = 8; |
559 | 0 | if (cached_has_bits & 0x00000008u) { |
560 | 0 | total_size += 1 + |
561 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
562 | 0 | this->_internal_workflow_id()); |
563 | 0 | } |
564 | | |
565 | | // optional .google.protobuf.Timestamp start_time = 4; |
566 | 0 | if (cached_has_bits & 0x00000010u) { |
567 | 0 | total_size += 1 + |
568 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
569 | 0 | *_impl_.start_time_); |
570 | 0 | } |
571 | | |
572 | | // optional .google.protobuf.Any payload = 5; |
573 | 0 | if (cached_has_bits & 0x00000020u) { |
574 | 0 | total_size += 1 + |
575 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
576 | 0 | *_impl_.payload_); |
577 | 0 | } |
578 | | |
579 | | // optional uint64 trip_id = 3; |
580 | 0 | if (cached_has_bits & 0x00000040u) { |
581 | 0 | total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_trip_id()); |
582 | 0 | } |
583 | | |
584 | | // optional bool use_prod_region_gslb_target = 7; |
585 | 0 | if (cached_has_bits & 0x00000080u) { |
586 | 0 | total_size += 1 + 1; |
587 | 0 | } |
588 | |
|
589 | 0 | } |
590 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
591 | 0 | } |
592 | | |
593 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlightRecordRequest::_class_data_ = { |
594 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
595 | | FlightRecordRequest::MergeImpl |
596 | | }; |
597 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlightRecordRequest::GetClassData() const { return &_class_data_; } |
598 | | |
599 | | |
600 | 0 | void FlightRecordRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
601 | 0 | auto* const _this = static_cast<FlightRecordRequest*>(&to_msg); |
602 | 0 | auto& from = static_cast<const FlightRecordRequest&>(from_msg); |
603 | | // @@protoc_insertion_point(class_specific_merge_from_start:borg_mgmt.node_proxy.safepower.utils.FlightRecordRequest) |
604 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
605 | 0 | uint32_t cached_has_bits = 0; |
606 | 0 | (void) cached_has_bits; |
607 | |
|
608 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
609 | 0 | if (cached_has_bits & 0x000000ffu) { |
610 | 0 | if (cached_has_bits & 0x00000001u) { |
611 | 0 | _this->_internal_set_origin_id(from._internal_origin_id()); |
612 | 0 | } |
613 | 0 | if (cached_has_bits & 0x00000002u) { |
614 | 0 | _this->_internal_set_flight_name(from._internal_flight_name()); |
615 | 0 | } |
616 | 0 | if (cached_has_bits & 0x00000004u) { |
617 | 0 | _this->_internal_set_step_id(from._internal_step_id()); |
618 | 0 | } |
619 | 0 | if (cached_has_bits & 0x00000008u) { |
620 | 0 | _this->_internal_set_workflow_id(from._internal_workflow_id()); |
621 | 0 | } |
622 | 0 | if (cached_has_bits & 0x00000010u) { |
623 | 0 | _this->_internal_mutable_start_time()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( |
624 | 0 | from._internal_start_time()); |
625 | 0 | } |
626 | 0 | if (cached_has_bits & 0x00000020u) { |
627 | 0 | _this->_internal_mutable_payload()->::PROTOBUF_NAMESPACE_ID::Any::MergeFrom( |
628 | 0 | from._internal_payload()); |
629 | 0 | } |
630 | 0 | if (cached_has_bits & 0x00000040u) { |
631 | 0 | _this->_impl_.trip_id_ = from._impl_.trip_id_; |
632 | 0 | } |
633 | 0 | if (cached_has_bits & 0x00000080u) { |
634 | 0 | _this->_impl_.use_prod_region_gslb_target_ = from._impl_.use_prod_region_gslb_target_; |
635 | 0 | } |
636 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
637 | 0 | } |
638 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
639 | 0 | } |
640 | | |
641 | 0 | void FlightRecordRequest::CopyFrom(const FlightRecordRequest& from) { |
642 | | // @@protoc_insertion_point(class_specific_copy_from_start:borg_mgmt.node_proxy.safepower.utils.FlightRecordRequest) |
643 | 0 | if (&from == this) return; |
644 | 0 | Clear(); |
645 | 0 | MergeFrom(from); |
646 | 0 | } |
647 | | |
648 | 0 | bool FlightRecordRequest::IsInitialized() const { |
649 | 0 | return true; |
650 | 0 | } |
651 | | |
652 | 0 | void FlightRecordRequest::InternalSwap(FlightRecordRequest* other) { |
653 | 0 | using std::swap; |
654 | 0 | auto* lhs_arena = GetArenaForAllocation(); |
655 | 0 | auto* rhs_arena = other->GetArenaForAllocation(); |
656 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
657 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
658 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
659 | 0 | &_impl_.origin_id_, lhs_arena, |
660 | 0 | &other->_impl_.origin_id_, rhs_arena |
661 | 0 | ); |
662 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
663 | 0 | &_impl_.flight_name_, lhs_arena, |
664 | 0 | &other->_impl_.flight_name_, rhs_arena |
665 | 0 | ); |
666 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
667 | 0 | &_impl_.step_id_, lhs_arena, |
668 | 0 | &other->_impl_.step_id_, rhs_arena |
669 | 0 | ); |
670 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
671 | 0 | &_impl_.workflow_id_, lhs_arena, |
672 | 0 | &other->_impl_.workflow_id_, rhs_arena |
673 | 0 | ); |
674 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
675 | 0 | PROTOBUF_FIELD_OFFSET(FlightRecordRequest, _impl_.use_prod_region_gslb_target_) |
676 | 0 | + sizeof(FlightRecordRequest::_impl_.use_prod_region_gslb_target_) |
677 | 0 | - PROTOBUF_FIELD_OFFSET(FlightRecordRequest, _impl_.start_time_)>( |
678 | 0 | reinterpret_cast<char*>(&_impl_.start_time_), |
679 | 0 | reinterpret_cast<char*>(&other->_impl_.start_time_)); |
680 | 0 | } |
681 | | |
682 | 2.66k | ::PROTOBUF_NAMESPACE_ID::Metadata FlightRecordRequest::GetMetadata() const { |
683 | 2.66k | return ::_pbi::AssignDescriptors( |
684 | 2.66k | &descriptor_table_utils_2eproto_getter, &descriptor_table_utils_2eproto_once, |
685 | 2.66k | file_level_metadata_utils_2eproto[0]); |
686 | 2.66k | } |
687 | | |
688 | | // @@protoc_insertion_point(namespace_scope) |
689 | | } // namespace utils |
690 | | } // namespace safepower |
691 | | } // namespace node_proxy |
692 | | } // namespace borg_mgmt |
693 | | PROTOBUF_NAMESPACE_OPEN |
694 | | template<> PROTOBUF_NOINLINE ::borg_mgmt::node_proxy::safepower::utils::FlightRecordRequest* |
695 | 1.73k | Arena::CreateMaybeMessage< ::borg_mgmt::node_proxy::safepower::utils::FlightRecordRequest >(Arena* arena) { |
696 | 1.73k | return Arena::CreateMessageInternal< ::borg_mgmt::node_proxy::safepower::utils::FlightRecordRequest >(arena); |
697 | 1.73k | } |
698 | | PROTOBUF_NAMESPACE_CLOSE |
699 | | |
700 | | // @@protoc_insertion_point(global_scope) |
701 | | #include <google/protobuf/port_undef.inc> |