agones.dev/agones@v1.54.0/sdks/cpp/src/agones/sdk.pb.cc (about) 1 // Copyright 2024 Google LLC All Rights Reserved. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // This code was autogenerated. Do not edit directly. 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // NO CHECKED-IN PROTOBUF GENCODE 18 // source: sdk.proto 19 // Protobuf C++ Version: 6.31.1 20 21 #include "sdk.pb.h" 22 23 #include <algorithm> 24 #include <type_traits> 25 #include "google/protobuf/io/coded_stream.h" 26 #include "google/protobuf/generated_message_tctable_impl.h" 27 #include "google/protobuf/extension_set.h" 28 #include "google/protobuf/generated_message_util.h" 29 #include "google/protobuf/wire_format_lite.h" 30 #include "google/protobuf/descriptor.h" 31 #include "google/protobuf/generated_message_reflection.h" 32 #include "google/protobuf/reflection_ops.h" 33 #include "google/protobuf/wire_format.h" 34 // @@protoc_insertion_point(includes) 35 36 // Must be included last. 37 #include "google/protobuf/port_def.inc" 38 PROTOBUF_PRAGMA_INIT_SEG 39 namespace _pb = ::google::protobuf; 40 namespace _pbi = ::google::protobuf::internal; 41 namespace _fl = ::google::protobuf::internal::field_layout; 42 namespace agones { 43 namespace dev { 44 namespace sdk { 45 46 inline constexpr KeyValue::Impl_::Impl_( 47 ::_pbi::ConstantInitialized) noexcept 48 : _cached_size_{0}, 49 key_( 50 &::google::protobuf::internal::fixed_address_empty_string, 51 ::_pbi::ConstantInitialized()), 52 value_( 53 &::google::protobuf::internal::fixed_address_empty_string, 54 ::_pbi::ConstantInitialized()) {} 55 56 template <typename> 57 PROTOBUF_CONSTEXPR KeyValue::KeyValue(::_pbi::ConstantInitialized) 58 #if defined(PROTOBUF_CUSTOM_VTABLE) 59 : ::google::protobuf::Message(KeyValue_class_data_.base()), 60 #else // PROTOBUF_CUSTOM_VTABLE 61 : ::google::protobuf::Message(), 62 #endif // PROTOBUF_CUSTOM_VTABLE 63 _impl_(::_pbi::ConstantInitialized()) { 64 } 65 struct KeyValueDefaultTypeInternal { 66 PROTOBUF_CONSTEXPR KeyValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} 67 ~KeyValueDefaultTypeInternal() {} 68 union { 69 KeyValue _instance; 70 }; 71 }; 72 73 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT 74 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KeyValueDefaultTypeInternal _KeyValue_default_instance_; 75 76 inline constexpr GameServer_Status_Port::Impl_::Impl_( 77 ::_pbi::ConstantInitialized) noexcept 78 : _cached_size_{0}, 79 name_( 80 &::google::protobuf::internal::fixed_address_empty_string, 81 ::_pbi::ConstantInitialized()), 82 port_{0} {} 83 84 template <typename> 85 PROTOBUF_CONSTEXPR GameServer_Status_Port::GameServer_Status_Port(::_pbi::ConstantInitialized) 86 #if defined(PROTOBUF_CUSTOM_VTABLE) 87 : ::google::protobuf::Message(GameServer_Status_Port_class_data_.base()), 88 #else // PROTOBUF_CUSTOM_VTABLE 89 : ::google::protobuf::Message(), 90 #endif // PROTOBUF_CUSTOM_VTABLE 91 _impl_(::_pbi::ConstantInitialized()) { 92 } 93 struct GameServer_Status_PortDefaultTypeInternal { 94 PROTOBUF_CONSTEXPR GameServer_Status_PortDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} 95 ~GameServer_Status_PortDefaultTypeInternal() {} 96 union { 97 GameServer_Status_Port _instance; 98 }; 99 }; 100 101 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT 102 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_PortDefaultTypeInternal _GameServer_Status_Port_default_instance_; 103 104 inline constexpr GameServer_Status_PlayerStatus::Impl_::Impl_( 105 ::_pbi::ConstantInitialized) noexcept 106 : _cached_size_{0}, 107 ids_{}, 108 count_{::int64_t{0}}, 109 capacity_{::int64_t{0}} {} 110 111 template <typename> 112 PROTOBUF_CONSTEXPR GameServer_Status_PlayerStatus::GameServer_Status_PlayerStatus(::_pbi::ConstantInitialized) 113 #if defined(PROTOBUF_CUSTOM_VTABLE) 114 : ::google::protobuf::Message(GameServer_Status_PlayerStatus_class_data_.base()), 115 #else // PROTOBUF_CUSTOM_VTABLE 116 : ::google::protobuf::Message(), 117 #endif // PROTOBUF_CUSTOM_VTABLE 118 _impl_(::_pbi::ConstantInitialized()) { 119 } 120 struct GameServer_Status_PlayerStatusDefaultTypeInternal { 121 PROTOBUF_CONSTEXPR GameServer_Status_PlayerStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} 122 ~GameServer_Status_PlayerStatusDefaultTypeInternal() {} 123 union { 124 GameServer_Status_PlayerStatus _instance; 125 }; 126 }; 127 128 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT 129 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_PlayerStatusDefaultTypeInternal _GameServer_Status_PlayerStatus_default_instance_; 130 131 inline constexpr GameServer_Status_ListStatus::Impl_::Impl_( 132 ::_pbi::ConstantInitialized) noexcept 133 : _cached_size_{0}, 134 values_{}, 135 capacity_{::int64_t{0}} {} 136 137 template <typename> 138 PROTOBUF_CONSTEXPR GameServer_Status_ListStatus::GameServer_Status_ListStatus(::_pbi::ConstantInitialized) 139 #if defined(PROTOBUF_CUSTOM_VTABLE) 140 : ::google::protobuf::Message(GameServer_Status_ListStatus_class_data_.base()), 141 #else // PROTOBUF_CUSTOM_VTABLE 142 : ::google::protobuf::Message(), 143 #endif // PROTOBUF_CUSTOM_VTABLE 144 _impl_(::_pbi::ConstantInitialized()) { 145 } 146 struct GameServer_Status_ListStatusDefaultTypeInternal { 147 PROTOBUF_CONSTEXPR GameServer_Status_ListStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} 148 ~GameServer_Status_ListStatusDefaultTypeInternal() {} 149 union { 150 GameServer_Status_ListStatus _instance; 151 }; 152 }; 153 154 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT 155 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_ListStatusDefaultTypeInternal _GameServer_Status_ListStatus_default_instance_; 156 157 inline constexpr GameServer_Status_CounterStatus::Impl_::Impl_( 158 ::_pbi::ConstantInitialized) noexcept 159 : _cached_size_{0}, 160 count_{::int64_t{0}}, 161 capacity_{::int64_t{0}} {} 162 163 template <typename> 164 PROTOBUF_CONSTEXPR GameServer_Status_CounterStatus::GameServer_Status_CounterStatus(::_pbi::ConstantInitialized) 165 #if defined(PROTOBUF_CUSTOM_VTABLE) 166 : ::google::protobuf::Message(GameServer_Status_CounterStatus_class_data_.base()), 167 #else // PROTOBUF_CUSTOM_VTABLE 168 : ::google::protobuf::Message(), 169 #endif // PROTOBUF_CUSTOM_VTABLE 170 _impl_(::_pbi::ConstantInitialized()) { 171 } 172 struct GameServer_Status_CounterStatusDefaultTypeInternal { 173 PROTOBUF_CONSTEXPR GameServer_Status_CounterStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} 174 ~GameServer_Status_CounterStatusDefaultTypeInternal() {} 175 union { 176 GameServer_Status_CounterStatus _instance; 177 }; 178 }; 179 180 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT 181 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_CounterStatusDefaultTypeInternal _GameServer_Status_CounterStatus_default_instance_; 182 183 inline constexpr GameServer_Status_Address::Impl_::Impl_( 184 ::_pbi::ConstantInitialized) noexcept 185 : _cached_size_{0}, 186 type_( 187 &::google::protobuf::internal::fixed_address_empty_string, 188 ::_pbi::ConstantInitialized()), 189 address_( 190 &::google::protobuf::internal::fixed_address_empty_string, 191 ::_pbi::ConstantInitialized()) {} 192 193 template <typename> 194 PROTOBUF_CONSTEXPR GameServer_Status_Address::GameServer_Status_Address(::_pbi::ConstantInitialized) 195 #if defined(PROTOBUF_CUSTOM_VTABLE) 196 : ::google::protobuf::Message(GameServer_Status_Address_class_data_.base()), 197 #else // PROTOBUF_CUSTOM_VTABLE 198 : ::google::protobuf::Message(), 199 #endif // PROTOBUF_CUSTOM_VTABLE 200 _impl_(::_pbi::ConstantInitialized()) { 201 } 202 struct GameServer_Status_AddressDefaultTypeInternal { 203 PROTOBUF_CONSTEXPR GameServer_Status_AddressDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} 204 ~GameServer_Status_AddressDefaultTypeInternal() {} 205 union { 206 GameServer_Status_Address _instance; 207 }; 208 }; 209 210 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT 211 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_AddressDefaultTypeInternal _GameServer_Status_Address_default_instance_; 212 213 inline constexpr GameServer_Spec_Health::Impl_::Impl_( 214 ::_pbi::ConstantInitialized) noexcept 215 : _cached_size_{0}, 216 disabled_{false}, 217 period_seconds_{0}, 218 failure_threshold_{0}, 219 initial_delay_seconds_{0} {} 220 221 template <typename> 222 PROTOBUF_CONSTEXPR GameServer_Spec_Health::GameServer_Spec_Health(::_pbi::ConstantInitialized) 223 #if defined(PROTOBUF_CUSTOM_VTABLE) 224 : ::google::protobuf::Message(GameServer_Spec_Health_class_data_.base()), 225 #else // PROTOBUF_CUSTOM_VTABLE 226 : ::google::protobuf::Message(), 227 #endif // PROTOBUF_CUSTOM_VTABLE 228 _impl_(::_pbi::ConstantInitialized()) { 229 } 230 struct GameServer_Spec_HealthDefaultTypeInternal { 231 PROTOBUF_CONSTEXPR GameServer_Spec_HealthDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} 232 ~GameServer_Spec_HealthDefaultTypeInternal() {} 233 union { 234 GameServer_Spec_Health _instance; 235 }; 236 }; 237 238 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT 239 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Spec_HealthDefaultTypeInternal _GameServer_Spec_Health_default_instance_; 240 template <typename> 241 PROTOBUF_CONSTEXPR GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse(::_pbi::ConstantInitialized) 242 #if defined(PROTOBUF_CUSTOM_VTABLE) 243 : GameServer_ObjectMeta_LabelsEntry_DoNotUse::MapEntry(GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_.base()){} 244 #else // PROTOBUF_CUSTOM_VTABLE 245 : GameServer_ObjectMeta_LabelsEntry_DoNotUse::MapEntry() { 246 } 247 #endif // PROTOBUF_CUSTOM_VTABLE 248 struct GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal { 249 PROTOBUF_CONSTEXPR GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} 250 ~GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal() {} 251 union { 252 GameServer_ObjectMeta_LabelsEntry_DoNotUse _instance; 253 }; 254 }; 255 256 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT 257 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal _GameServer_ObjectMeta_LabelsEntry_DoNotUse_default_instance_; 258 template <typename> 259 PROTOBUF_CONSTEXPR GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::_pbi::ConstantInitialized) 260 #if defined(PROTOBUF_CUSTOM_VTABLE) 261 : GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::MapEntry(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.base()){} 262 #else // PROTOBUF_CUSTOM_VTABLE 263 : GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::MapEntry() { 264 } 265 #endif // PROTOBUF_CUSTOM_VTABLE 266 struct GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal { 267 PROTOBUF_CONSTEXPR GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} 268 ~GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal() {} 269 union { 270 GameServer_ObjectMeta_AnnotationsEntry_DoNotUse _instance; 271 }; 272 }; 273 274 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT 275 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal _GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_default_instance_; 276 template <typename> 277 PROTOBUF_CONSTEXPR Empty::Empty(::_pbi::ConstantInitialized) 278 #if defined(PROTOBUF_CUSTOM_VTABLE) 279 : ::google::protobuf::internal::ZeroFieldsBase(Empty_class_data_.base()){} 280 #else // PROTOBUF_CUSTOM_VTABLE 281 : ::google::protobuf::internal::ZeroFieldsBase() { 282 } 283 #endif // PROTOBUF_CUSTOM_VTABLE 284 struct EmptyDefaultTypeInternal { 285 PROTOBUF_CONSTEXPR EmptyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} 286 ~EmptyDefaultTypeInternal() {} 287 union { 288 Empty _instance; 289 }; 290 }; 291 292 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT 293 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EmptyDefaultTypeInternal _Empty_default_instance_; 294 295 inline constexpr Duration::Impl_::Impl_( 296 ::_pbi::ConstantInitialized) noexcept 297 : _cached_size_{0}, 298 seconds_{::int64_t{0}} {} 299 300 template <typename> 301 PROTOBUF_CONSTEXPR Duration::Duration(::_pbi::ConstantInitialized) 302 #if defined(PROTOBUF_CUSTOM_VTABLE) 303 : ::google::protobuf::Message(Duration_class_data_.base()), 304 #else // PROTOBUF_CUSTOM_VTABLE 305 : ::google::protobuf::Message(), 306 #endif // PROTOBUF_CUSTOM_VTABLE 307 _impl_(::_pbi::ConstantInitialized()) { 308 } 309 struct DurationDefaultTypeInternal { 310 PROTOBUF_CONSTEXPR DurationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} 311 ~DurationDefaultTypeInternal() {} 312 union { 313 Duration _instance; 314 }; 315 }; 316 317 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT 318 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DurationDefaultTypeInternal _Duration_default_instance_; 319 template <typename> 320 PROTOBUF_CONSTEXPR GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse(::_pbi::ConstantInitialized) 321 #if defined(PROTOBUF_CUSTOM_VTABLE) 322 : GameServer_Status_ListsEntry_DoNotUse::MapEntry(GameServer_Status_ListsEntry_DoNotUse_class_data_.base()){} 323 #else // PROTOBUF_CUSTOM_VTABLE 324 : GameServer_Status_ListsEntry_DoNotUse::MapEntry() { 325 } 326 #endif // PROTOBUF_CUSTOM_VTABLE 327 struct GameServer_Status_ListsEntry_DoNotUseDefaultTypeInternal { 328 PROTOBUF_CONSTEXPR GameServer_Status_ListsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} 329 ~GameServer_Status_ListsEntry_DoNotUseDefaultTypeInternal() {} 330 union { 331 GameServer_Status_ListsEntry_DoNotUse _instance; 332 }; 333 }; 334 335 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT 336 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_ListsEntry_DoNotUseDefaultTypeInternal _GameServer_Status_ListsEntry_DoNotUse_default_instance_; 337 template <typename> 338 PROTOBUF_CONSTEXPR GameServer_Status_CountersEntry_DoNotUse::GameServer_Status_CountersEntry_DoNotUse(::_pbi::ConstantInitialized) 339 #if defined(PROTOBUF_CUSTOM_VTABLE) 340 : GameServer_Status_CountersEntry_DoNotUse::MapEntry(GameServer_Status_CountersEntry_DoNotUse_class_data_.base()){} 341 #else // PROTOBUF_CUSTOM_VTABLE 342 : GameServer_Status_CountersEntry_DoNotUse::MapEntry() { 343 } 344 #endif // PROTOBUF_CUSTOM_VTABLE 345 struct GameServer_Status_CountersEntry_DoNotUseDefaultTypeInternal { 346 PROTOBUF_CONSTEXPR GameServer_Status_CountersEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} 347 ~GameServer_Status_CountersEntry_DoNotUseDefaultTypeInternal() {} 348 union { 349 GameServer_Status_CountersEntry_DoNotUse _instance; 350 }; 351 }; 352 353 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT 354 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_CountersEntry_DoNotUseDefaultTypeInternal _GameServer_Status_CountersEntry_DoNotUse_default_instance_; 355 356 inline constexpr GameServer_Spec::Impl_::Impl_( 357 ::_pbi::ConstantInitialized) noexcept 358 : _cached_size_{0}, 359 health_{nullptr} {} 360 361 template <typename> 362 PROTOBUF_CONSTEXPR GameServer_Spec::GameServer_Spec(::_pbi::ConstantInitialized) 363 #if defined(PROTOBUF_CUSTOM_VTABLE) 364 : ::google::protobuf::Message(GameServer_Spec_class_data_.base()), 365 #else // PROTOBUF_CUSTOM_VTABLE 366 : ::google::protobuf::Message(), 367 #endif // PROTOBUF_CUSTOM_VTABLE 368 _impl_(::_pbi::ConstantInitialized()) { 369 } 370 struct GameServer_SpecDefaultTypeInternal { 371 PROTOBUF_CONSTEXPR GameServer_SpecDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} 372 ~GameServer_SpecDefaultTypeInternal() {} 373 union { 374 GameServer_Spec _instance; 375 }; 376 }; 377 378 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT 379 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_SpecDefaultTypeInternal _GameServer_Spec_default_instance_; 380 381 inline constexpr GameServer_ObjectMeta::Impl_::Impl_( 382 ::_pbi::ConstantInitialized) noexcept 383 : _cached_size_{0}, 384 annotations_{}, 385 labels_{}, 386 name_( 387 &::google::protobuf::internal::fixed_address_empty_string, 388 ::_pbi::ConstantInitialized()), 389 namespace__( 390 &::google::protobuf::internal::fixed_address_empty_string, 391 ::_pbi::ConstantInitialized()), 392 uid_( 393 &::google::protobuf::internal::fixed_address_empty_string, 394 ::_pbi::ConstantInitialized()), 395 resource_version_( 396 &::google::protobuf::internal::fixed_address_empty_string, 397 ::_pbi::ConstantInitialized()), 398 generation_{::int64_t{0}}, 399 creation_timestamp_{::int64_t{0}}, 400 deletion_timestamp_{::int64_t{0}} {} 401 402 template <typename> 403 PROTOBUF_CONSTEXPR GameServer_ObjectMeta::GameServer_ObjectMeta(::_pbi::ConstantInitialized) 404 #if defined(PROTOBUF_CUSTOM_VTABLE) 405 : ::google::protobuf::Message(GameServer_ObjectMeta_class_data_.base()), 406 #else // PROTOBUF_CUSTOM_VTABLE 407 : ::google::protobuf::Message(), 408 #endif // PROTOBUF_CUSTOM_VTABLE 409 _impl_(::_pbi::ConstantInitialized()) { 410 } 411 struct GameServer_ObjectMetaDefaultTypeInternal { 412 PROTOBUF_CONSTEXPR GameServer_ObjectMetaDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} 413 ~GameServer_ObjectMetaDefaultTypeInternal() {} 414 union { 415 GameServer_ObjectMeta _instance; 416 }; 417 }; 418 419 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT 420 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_ObjectMetaDefaultTypeInternal _GameServer_ObjectMeta_default_instance_; 421 422 inline constexpr GameServer_Status::Impl_::Impl_( 423 ::_pbi::ConstantInitialized) noexcept 424 : _cached_size_{0}, 425 ports_{}, 426 counters_{}, 427 lists_{}, 428 addresses_{}, 429 state_( 430 &::google::protobuf::internal::fixed_address_empty_string, 431 ::_pbi::ConstantInitialized()), 432 address_( 433 &::google::protobuf::internal::fixed_address_empty_string, 434 ::_pbi::ConstantInitialized()), 435 players_{nullptr} {} 436 437 template <typename> 438 PROTOBUF_CONSTEXPR GameServer_Status::GameServer_Status(::_pbi::ConstantInitialized) 439 #if defined(PROTOBUF_CUSTOM_VTABLE) 440 : ::google::protobuf::Message(GameServer_Status_class_data_.base()), 441 #else // PROTOBUF_CUSTOM_VTABLE 442 : ::google::protobuf::Message(), 443 #endif // PROTOBUF_CUSTOM_VTABLE 444 _impl_(::_pbi::ConstantInitialized()) { 445 } 446 struct GameServer_StatusDefaultTypeInternal { 447 PROTOBUF_CONSTEXPR GameServer_StatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} 448 ~GameServer_StatusDefaultTypeInternal() {} 449 union { 450 GameServer_Status _instance; 451 }; 452 }; 453 454 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT 455 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_StatusDefaultTypeInternal _GameServer_Status_default_instance_; 456 457 inline constexpr GameServer::Impl_::Impl_( 458 ::_pbi::ConstantInitialized) noexcept 459 : _cached_size_{0}, 460 object_meta_{nullptr}, 461 spec_{nullptr}, 462 status_{nullptr} {} 463 464 template <typename> 465 PROTOBUF_CONSTEXPR GameServer::GameServer(::_pbi::ConstantInitialized) 466 #if defined(PROTOBUF_CUSTOM_VTABLE) 467 : ::google::protobuf::Message(GameServer_class_data_.base()), 468 #else // PROTOBUF_CUSTOM_VTABLE 469 : ::google::protobuf::Message(), 470 #endif // PROTOBUF_CUSTOM_VTABLE 471 _impl_(::_pbi::ConstantInitialized()) { 472 } 473 struct GameServerDefaultTypeInternal { 474 PROTOBUF_CONSTEXPR GameServerDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} 475 ~GameServerDefaultTypeInternal() {} 476 union { 477 GameServer _instance; 478 }; 479 }; 480 481 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT 482 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServerDefaultTypeInternal _GameServer_default_instance_; 483 } // namespace sdk 484 } // namespace dev 485 } // namespace agones 486 static constexpr const ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE 487 file_level_enum_descriptors_sdk_2eproto = nullptr; 488 static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE 489 file_level_service_descriptors_sdk_2eproto = nullptr; 490 const ::uint32_t 491 TableStruct_sdk_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( 492 protodesc_cold) = { 493 0x000, // bitmap 494 0x081, // bitmap 495 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::KeyValue, _impl_._has_bits_), 496 5, // hasbit index offset 497 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::KeyValue, _impl_.key_), 498 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::KeyValue, _impl_.value_), 499 0, 500 1, 501 0x081, // bitmap 502 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::Duration, _impl_._has_bits_), 503 4, // hasbit index offset 504 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::Duration, _impl_.seconds_), 505 0, 506 0x081, // bitmap 507 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_._has_bits_), 508 5, // hasbit index offset 509 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_.key_), 510 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_.value_), 511 0, 512 1, 513 0x081, // bitmap 514 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_._has_bits_), 515 5, // hasbit index offset 516 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_.key_), 517 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_.value_), 518 0, 519 1, 520 0x081, // bitmap 521 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_._has_bits_), 522 12, // hasbit index offset 523 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.name_), 524 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.namespace__), 525 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.uid_), 526 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.resource_version_), 527 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.generation_), 528 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.creation_timestamp_), 529 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.deletion_timestamp_), 530 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.annotations_), 531 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.labels_), 532 0, 533 1, 534 2, 535 3, 536 4, 537 5, 538 6, 539 ~0u, 540 ~0u, 541 0x081, // bitmap 542 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec_Health, _impl_._has_bits_), 543 7, // hasbit index offset 544 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec_Health, _impl_.disabled_), 545 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec_Health, _impl_.period_seconds_), 546 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec_Health, _impl_.failure_threshold_), 547 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec_Health, _impl_.initial_delay_seconds_), 548 0, 549 1, 550 2, 551 3, 552 0x081, // bitmap 553 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec, _impl_._has_bits_), 554 4, // hasbit index offset 555 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec, _impl_.health_), 556 0, 557 0x081, // bitmap 558 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_Address, _impl_._has_bits_), 559 5, // hasbit index offset 560 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_Address, _impl_.type_), 561 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_Address, _impl_.address_), 562 0, 563 1, 564 0x081, // bitmap 565 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_Port, _impl_._has_bits_), 566 5, // hasbit index offset 567 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_Port, _impl_.name_), 568 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_Port, _impl_.port_), 569 0, 570 1, 571 0x081, // bitmap 572 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_PlayerStatus, _impl_._has_bits_), 573 6, // hasbit index offset 574 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_PlayerStatus, _impl_.count_), 575 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_PlayerStatus, _impl_.capacity_), 576 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_PlayerStatus, _impl_.ids_), 577 0, 578 1, 579 ~0u, 580 0x081, // bitmap 581 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CounterStatus, _impl_._has_bits_), 582 5, // hasbit index offset 583 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CounterStatus, _impl_.count_), 584 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CounterStatus, _impl_.capacity_), 585 0, 586 1, 587 0x081, // bitmap 588 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListStatus, _impl_._has_bits_), 589 5, // hasbit index offset 590 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListStatus, _impl_.capacity_), 591 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListStatus, _impl_.values_), 592 0, 593 ~0u, 594 0x081, // bitmap 595 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse, _impl_._has_bits_), 596 5, // hasbit index offset 597 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse, _impl_.key_), 598 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse, _impl_.value_), 599 0, 600 1, 601 0x081, // bitmap 602 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse, _impl_._has_bits_), 603 5, // hasbit index offset 604 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse, _impl_.key_), 605 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse, _impl_.value_), 606 0, 607 1, 608 0x081, // bitmap 609 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_._has_bits_), 610 10, // hasbit index offset 611 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.state_), 612 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.address_), 613 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.addresses_), 614 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.ports_), 615 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.players_), 616 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.counters_), 617 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.lists_), 618 0, 619 1, 620 ~0u, 621 ~0u, 622 2, 623 ~0u, 624 ~0u, 625 0x081, // bitmap 626 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer, _impl_._has_bits_), 627 6, // hasbit index offset 628 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer, _impl_.object_meta_), 629 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer, _impl_.spec_), 630 PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer, _impl_.status_), 631 0, 632 1, 633 2, 634 }; 635 636 static const ::_pbi::MigrationSchema 637 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { 638 {0, sizeof(::agones::dev::sdk::Empty)}, 639 {1, sizeof(::agones::dev::sdk::KeyValue)}, 640 {8, sizeof(::agones::dev::sdk::Duration)}, 641 {13, sizeof(::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse)}, 642 {20, sizeof(::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse)}, 643 {27, sizeof(::agones::dev::sdk::GameServer_ObjectMeta)}, 644 {48, sizeof(::agones::dev::sdk::GameServer_Spec_Health)}, 645 {59, sizeof(::agones::dev::sdk::GameServer_Spec)}, 646 {64, sizeof(::agones::dev::sdk::GameServer_Status_Address)}, 647 {71, sizeof(::agones::dev::sdk::GameServer_Status_Port)}, 648 {78, sizeof(::agones::dev::sdk::GameServer_Status_PlayerStatus)}, 649 {87, sizeof(::agones::dev::sdk::GameServer_Status_CounterStatus)}, 650 {94, sizeof(::agones::dev::sdk::GameServer_Status_ListStatus)}, 651 {101, sizeof(::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse)}, 652 {108, sizeof(::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse)}, 653 {115, sizeof(::agones::dev::sdk::GameServer_Status)}, 654 {132, sizeof(::agones::dev::sdk::GameServer)}, 655 }; 656 static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = { 657 &::agones::dev::sdk::_Empty_default_instance_._instance, 658 &::agones::dev::sdk::_KeyValue_default_instance_._instance, 659 &::agones::dev::sdk::_Duration_default_instance_._instance, 660 &::agones::dev::sdk::_GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_default_instance_._instance, 661 &::agones::dev::sdk::_GameServer_ObjectMeta_LabelsEntry_DoNotUse_default_instance_._instance, 662 &::agones::dev::sdk::_GameServer_ObjectMeta_default_instance_._instance, 663 &::agones::dev::sdk::_GameServer_Spec_Health_default_instance_._instance, 664 &::agones::dev::sdk::_GameServer_Spec_default_instance_._instance, 665 &::agones::dev::sdk::_GameServer_Status_Address_default_instance_._instance, 666 &::agones::dev::sdk::_GameServer_Status_Port_default_instance_._instance, 667 &::agones::dev::sdk::_GameServer_Status_PlayerStatus_default_instance_._instance, 668 &::agones::dev::sdk::_GameServer_Status_CounterStatus_default_instance_._instance, 669 &::agones::dev::sdk::_GameServer_Status_ListStatus_default_instance_._instance, 670 &::agones::dev::sdk::_GameServer_Status_CountersEntry_DoNotUse_default_instance_._instance, 671 &::agones::dev::sdk::_GameServer_Status_ListsEntry_DoNotUse_default_instance_._instance, 672 &::agones::dev::sdk::_GameServer_Status_default_instance_._instance, 673 &::agones::dev::sdk::_GameServer_default_instance_._instance, 674 }; 675 const char descriptor_table_protodef_sdk_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( 676 protodesc_cold) = { 677 "\n\tsdk.proto\022\016agones.dev.sdk\032\034google/api/" 678 "annotations.proto\032.protoc-gen-openapiv2/" 679 "options/annotations.proto\"\007\n\005Empty\"&\n\010Ke" 680 "yValue\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\033\n\010Du" 681 "ration\022\017\n\007seconds\030\001 \001(\003\"\213\014\n\nGameServer\022:" 682 "\n\013object_meta\030\001 \001(\0132%.agones.dev.sdk.Gam" 683 "eServer.ObjectMeta\022-\n\004spec\030\002 \001(\0132\037.agone" 684 "s.dev.sdk.GameServer.Spec\0221\n\006status\030\003 \001(" 685 "\0132!.agones.dev.sdk.GameServer.Status\032\223\003\n" 686 "\nObjectMeta\022\014\n\004name\030\001 \001(\t\022\021\n\tnamespace\030\002" 687 " \001(\t\022\013\n\003uid\030\003 \001(\t\022\030\n\020resource_version\030\004 " 688 "\001(\t\022\022\n\ngeneration\030\005 \001(\003\022\032\n\022creation_time" 689 "stamp\030\006 \001(\003\022\032\n\022deletion_timestamp\030\007 \001(\003\022" 690 "K\n\013annotations\030\010 \003(\01326.agones.dev.sdk.Ga" 691 "meServer.ObjectMeta.AnnotationsEntry\022A\n\006" 692 "labels\030\t \003(\01321.agones.dev.sdk.GameServer" 693 ".ObjectMeta.LabelsEntry\0322\n\020AnnotationsEn" 694 "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013L" 695 "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" 696 "8\001\032\273\001\n\004Spec\0226\n\006health\030\001 \001(\0132&.agones.dev" 697 ".sdk.GameServer.Spec.Health\032{\n\006Health\022\037\n" 698 "\010disabled\030\001 \001(\010B\r\222A\n\242\002\007boolean\022\026\n\016period" 699 "_seconds\030\002 \001(\005\022\031\n\021failure_threshold\030\003 \001(" 700 "\005\022\035\n\025initial_delay_seconds\030\004 \001(\005\032\212\006\n\006Sta" 701 "tus\022\r\n\005state\030\001 \001(\t\022\017\n\007address\030\002 \001(\t\022<\n\ta" 702 "ddresses\030\007 \003(\0132).agones.dev.sdk.GameServ" 703 "er.Status.Address\0225\n\005ports\030\003 \003(\0132&.agone" 704 "s.dev.sdk.GameServer.Status.Port\022\?\n\007play" 705 "ers\030\004 \001(\0132..agones.dev.sdk.GameServer.St" 706 "atus.PlayerStatus\022A\n\010counters\030\005 \003(\0132/.ag" 707 "ones.dev.sdk.GameServer.Status.CountersE" 708 "ntry\022;\n\005lists\030\006 \003(\0132,.agones.dev.sdk.Gam" 709 "eServer.Status.ListsEntry\032(\n\007Address\022\014\n\004" 710 "type\030\001 \001(\t\022\017\n\007address\030\002 \001(\t\032\"\n\004Port\022\014\n\004n" 711 "ame\030\001 \001(\t\022\014\n\004port\030\002 \001(\005\032<\n\014PlayerStatus\022" 712 "\r\n\005count\030\001 \001(\003\022\020\n\010capacity\030\002 \001(\003\022\013\n\003ids\030" 713 "\003 \003(\t\0320\n\rCounterStatus\022\r\n\005count\030\001 \001(\003\022\020\n" 714 "\010capacity\030\002 \001(\003\032.\n\nListStatus\022\020\n\010capacit" 715 "y\030\001 \001(\003\022\016\n\006values\030\002 \003(\t\032`\n\rCountersEntry" 716 "\022\013\n\003key\030\001 \001(\t\022>\n\005value\030\002 \001(\0132/.agones.de" 717 "v.sdk.GameServer.Status.CounterStatus:\0028" 718 "\001\032Z\n\nListsEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 " 719 "\001(\0132,.agones.dev.sdk.GameServer.Status.L" 720 "istStatus:\0028\0012\206\006\n\003SDK\022H\n\005Ready\022\025.agones." 721 "dev.sdk.Empty\032\025.agones.dev.sdk.Empty\"\021\202\323" 722 "\344\223\002\013\"\006/ready:\001*\022N\n\010Allocate\022\025.agones.dev" 723 ".sdk.Empty\032\025.agones.dev.sdk.Empty\"\024\202\323\344\223\002" 724 "\016\"\t/allocate:\001*\022N\n\010Shutdown\022\025.agones.dev" 725 ".sdk.Empty\032\025.agones.dev.sdk.Empty\"\024\202\323\344\223\002" 726 "\016\"\t/shutdown:\001*\022L\n\006Health\022\025.agones.dev.s" 727 "dk.Empty\032\025.agones.dev.sdk.Empty\"\022\202\323\344\223\002\014\"" 728 "\007/health:\001*(\001\022W\n\rGetGameServer\022\025.agones." 729 "dev.sdk.Empty\032\032.agones.dev.sdk.GameServe" 730 "r\"\023\202\323\344\223\002\r\022\013/gameserver\022a\n\017WatchGameServe" 731 "r\022\025.agones.dev.sdk.Empty\032\032.agones.dev.sd" 732 "k.GameServer\"\031\202\323\344\223\002\023\022\021/watch/gameserver0" 733 "\001\022W\n\010SetLabel\022\030.agones.dev.sdk.KeyValue\032" 734 "\025.agones.dev.sdk.Empty\"\032\202\323\344\223\002\024\032\017/metadat" 735 "a/label:\001*\022a\n\rSetAnnotation\022\030.agones.dev" 736 ".sdk.KeyValue\032\025.agones.dev.sdk.Empty\"\037\202\323" 737 "\344\223\002\031\032\024/metadata/annotation:\001*\022O\n\007Reserve" 738 "\022\030.agones.dev.sdk.Duration\032\025.agones.dev." 739 "sdk.Empty\"\023\202\323\344\223\002\r\"\010/reserve:\001*BOZ\005./sdk\222" 740 "AE\022\034\n\tsdk.proto2\017version not set*\001\0012\020app" 741 "lication/json:\020application/jsonb\006proto3" 742 }; 743 static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const 744 descriptor_table_sdk_2eproto_deps[2] = { 745 &::descriptor_table_google_2fapi_2fannotations_2eproto, 746 &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto, 747 }; 748 static ::absl::once_flag descriptor_table_sdk_2eproto_once; 749 PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_sdk_2eproto = { 750 false, 751 false, 752 2599, 753 descriptor_table_protodef_sdk_2eproto, 754 "sdk.proto", 755 &descriptor_table_sdk_2eproto_once, 756 descriptor_table_sdk_2eproto_deps, 757 2, 758 17, 759 schemas, 760 file_default_instances, 761 TableStruct_sdk_2eproto::offsets, 762 file_level_enum_descriptors_sdk_2eproto, 763 file_level_service_descriptors_sdk_2eproto, 764 }; 765 namespace agones { 766 namespace dev { 767 namespace sdk { 768 // =================================================================== 769 770 class Empty::_Internal { 771 public: 772 }; 773 774 Empty::Empty(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 775 #if defined(PROTOBUF_CUSTOM_VTABLE) 776 : ::google::protobuf::internal::ZeroFieldsBase(arena, Empty_class_data_.base()) { 777 #else // PROTOBUF_CUSTOM_VTABLE 778 : ::google::protobuf::internal::ZeroFieldsBase(arena) { 779 #endif // PROTOBUF_CUSTOM_VTABLE 780 // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.Empty) 781 } 782 Empty::Empty( 783 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, 784 const Empty& from) 785 #if defined(PROTOBUF_CUSTOM_VTABLE) 786 : ::google::protobuf::internal::ZeroFieldsBase(arena, Empty_class_data_.base()) { 787 #else // PROTOBUF_CUSTOM_VTABLE 788 : ::google::protobuf::internal::ZeroFieldsBase(arena) { 789 #endif // PROTOBUF_CUSTOM_VTABLE 790 Empty* const _this = this; 791 (void)_this; 792 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( 793 from._internal_metadata_); 794 795 // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.Empty) 796 } 797 798 inline void* PROTOBUF_NONNULL Empty::PlacementNew_( 799 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, 800 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { 801 return ::new (mem) Empty(arena); 802 } 803 constexpr auto Empty::InternalNewImpl_() { 804 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Empty), 805 alignof(Empty)); 806 } 807 constexpr auto Empty::InternalGenerateClassData_() { 808 return ::google::protobuf::internal::ClassDataFull{ 809 ::google::protobuf::internal::ClassData{ 810 &_Empty_default_instance_._instance, 811 &_table_.header, 812 nullptr, // OnDemandRegisterArenaDtor 813 nullptr, // IsInitialized 814 &Empty::MergeImpl, 815 ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl<Empty>(), 816 #if defined(PROTOBUF_CUSTOM_VTABLE) 817 &Empty::SharedDtor, 818 ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl<Empty>(), &Empty::ByteSizeLong, 819 &Empty::_InternalSerialize, 820 #endif // PROTOBUF_CUSTOM_VTABLE 821 PROTOBUF_FIELD_OFFSET(Empty, _impl_._cached_size_), 822 false, 823 }, 824 &Empty::kDescriptorMethods, 825 &descriptor_table_sdk_2eproto, 826 nullptr, // tracker 827 }; 828 } 829 830 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const 831 ::google::protobuf::internal::ClassDataFull Empty_class_data_ = 832 Empty::InternalGenerateClassData_(); 833 834 PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL 835 Empty::GetClassData() const { 836 ::google::protobuf::internal::PrefetchToLocalCache(&Empty_class_data_); 837 ::google::protobuf::internal::PrefetchToLocalCache(Empty_class_data_.tc_table); 838 return Empty_class_data_.base(); 839 } 840 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 841 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> 842 Empty::_table_ = { 843 { 844 0, // no _has_bits_ 845 0, // no _extensions_ 846 0, 0, // max_field_number, fast_idx_mask 847 offsetof(decltype(_table_), field_lookup_table), 848 4294967295, // skipmap 849 offsetof(decltype(_table_), field_names), // no field_entries 850 0, // num_field_entries 851 0, // num_aux_entries 852 offsetof(decltype(_table_), field_names), // no aux_entries 853 Empty_class_data_.base(), 854 nullptr, // post_loop_handler 855 ::_pbi::TcParser::GenericFallback, // fallback 856 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE 857 ::_pbi::TcParser::GetTable<::agones::dev::sdk::Empty>(), // to_prefetch 858 #endif // PROTOBUF_PREFETCH_PARSE_TABLE 859 }, {{ 860 {::_pbi::TcParser::MiniParse, {}}, 861 }}, {{ 862 65535, 65535 863 }}, // no field_entries, or aux_entries 864 {{ 865 }}, 866 }; 867 868 869 870 871 872 873 874 ::google::protobuf::Metadata Empty::GetMetadata() const { 875 return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); 876 } 877 // =================================================================== 878 879 class KeyValue::_Internal { 880 public: 881 using HasBits = 882 decltype(::std::declval<KeyValue>()._impl_._has_bits_); 883 static constexpr ::int32_t kHasBitsOffset = 884 8 * PROTOBUF_FIELD_OFFSET(KeyValue, _impl_._has_bits_); 885 }; 886 887 KeyValue::KeyValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 888 #if defined(PROTOBUF_CUSTOM_VTABLE) 889 : ::google::protobuf::Message(arena, KeyValue_class_data_.base()) { 890 #else // PROTOBUF_CUSTOM_VTABLE 891 : ::google::protobuf::Message(arena) { 892 #endif // PROTOBUF_CUSTOM_VTABLE 893 SharedCtor(arena); 894 // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.KeyValue) 895 } 896 PROTOBUF_NDEBUG_INLINE KeyValue::Impl_::Impl_( 897 ::google::protobuf::internal::InternalVisibility visibility, 898 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, 899 const ::agones::dev::sdk::KeyValue& from_msg) 900 : _has_bits_{from._has_bits_}, 901 _cached_size_{0}, 902 key_(arena, from.key_), 903 value_(arena, from.value_) {} 904 905 KeyValue::KeyValue( 906 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, 907 const KeyValue& from) 908 #if defined(PROTOBUF_CUSTOM_VTABLE) 909 : ::google::protobuf::Message(arena, KeyValue_class_data_.base()) { 910 #else // PROTOBUF_CUSTOM_VTABLE 911 : ::google::protobuf::Message(arena) { 912 #endif // PROTOBUF_CUSTOM_VTABLE 913 KeyValue* const _this = this; 914 (void)_this; 915 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( 916 from._internal_metadata_); 917 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); 918 919 // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.KeyValue) 920 } 921 PROTOBUF_NDEBUG_INLINE KeyValue::Impl_::Impl_( 922 ::google::protobuf::internal::InternalVisibility visibility, 923 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 924 : _cached_size_{0}, 925 key_(arena), 926 value_(arena) {} 927 928 inline void KeyValue::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { 929 new (&_impl_) Impl_(internal_visibility(), arena); 930 } 931 KeyValue::~KeyValue() { 932 // @@protoc_insertion_point(destructor:agones.dev.sdk.KeyValue) 933 SharedDtor(*this); 934 } 935 inline void KeyValue::SharedDtor(MessageLite& self) { 936 KeyValue& this_ = static_cast<KeyValue&>(self); 937 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); 938 ABSL_DCHECK(this_.GetArena() == nullptr); 939 this_._impl_.key_.Destroy(); 940 this_._impl_.value_.Destroy(); 941 this_._impl_.~Impl_(); 942 } 943 944 inline void* PROTOBUF_NONNULL KeyValue::PlacementNew_( 945 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, 946 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { 947 return ::new (mem) KeyValue(arena); 948 } 949 constexpr auto KeyValue::InternalNewImpl_() { 950 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(KeyValue), 951 alignof(KeyValue)); 952 } 953 constexpr auto KeyValue::InternalGenerateClassData_() { 954 return ::google::protobuf::internal::ClassDataFull{ 955 ::google::protobuf::internal::ClassData{ 956 &_KeyValue_default_instance_._instance, 957 &_table_.header, 958 nullptr, // OnDemandRegisterArenaDtor 959 nullptr, // IsInitialized 960 &KeyValue::MergeImpl, 961 ::google::protobuf::Message::GetNewImpl<KeyValue>(), 962 #if defined(PROTOBUF_CUSTOM_VTABLE) 963 &KeyValue::SharedDtor, 964 ::google::protobuf::Message::GetClearImpl<KeyValue>(), &KeyValue::ByteSizeLong, 965 &KeyValue::_InternalSerialize, 966 #endif // PROTOBUF_CUSTOM_VTABLE 967 PROTOBUF_FIELD_OFFSET(KeyValue, _impl_._cached_size_), 968 false, 969 }, 970 &KeyValue::kDescriptorMethods, 971 &descriptor_table_sdk_2eproto, 972 nullptr, // tracker 973 }; 974 } 975 976 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const 977 ::google::protobuf::internal::ClassDataFull KeyValue_class_data_ = 978 KeyValue::InternalGenerateClassData_(); 979 980 PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL 981 KeyValue::GetClassData() const { 982 ::google::protobuf::internal::PrefetchToLocalCache(&KeyValue_class_data_); 983 ::google::protobuf::internal::PrefetchToLocalCache(KeyValue_class_data_.tc_table); 984 return KeyValue_class_data_.base(); 985 } 986 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 987 const ::_pbi::TcParseTable<1, 2, 0, 40, 2> 988 KeyValue::_table_ = { 989 { 990 PROTOBUF_FIELD_OFFSET(KeyValue, _impl_._has_bits_), 991 0, // no _extensions_ 992 2, 8, // max_field_number, fast_idx_mask 993 offsetof(decltype(_table_), field_lookup_table), 994 4294967292, // skipmap 995 offsetof(decltype(_table_), field_entries), 996 2, // num_field_entries 997 0, // num_aux_entries 998 offsetof(decltype(_table_), field_names), // no aux_entries 999 KeyValue_class_data_.base(), 1000 nullptr, // post_loop_handler 1001 ::_pbi::TcParser::GenericFallback, // fallback 1002 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE 1003 ::_pbi::TcParser::GetTable<::agones::dev::sdk::KeyValue>(), // to_prefetch 1004 #endif // PROTOBUF_PREFETCH_PARSE_TABLE 1005 }, {{ 1006 // string value = 2; 1007 {::_pbi::TcParser::FastUS1, 1008 {18, 1, 0, PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.value_)}}, 1009 // string key = 1; 1010 {::_pbi::TcParser::FastUS1, 1011 {10, 0, 0, PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.key_)}}, 1012 }}, {{ 1013 65535, 65535 1014 }}, {{ 1015 // string key = 1; 1016 {PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, 1017 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, 1018 // string value = 2; 1019 {PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, 1020 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, 1021 }}, 1022 // no aux_entries 1023 {{ 1024 "\27\3\5\0\0\0\0\0" 1025 "agones.dev.sdk.KeyValue" 1026 "key" 1027 "value" 1028 }}, 1029 }; 1030 PROTOBUF_NOINLINE void KeyValue::Clear() { 1031 // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.KeyValue) 1032 ::google::protobuf::internal::TSanWrite(&_impl_); 1033 ::uint32_t cached_has_bits = 0; 1034 // Prevent compiler warnings about cached_has_bits being unused 1035 (void) cached_has_bits; 1036 1037 cached_has_bits = _impl_._has_bits_[0]; 1038 if ((cached_has_bits & 0x00000003u) != 0) { 1039 if ((cached_has_bits & 0x00000001u) != 0) { 1040 _impl_.key_.ClearNonDefaultToEmpty(); 1041 } 1042 if ((cached_has_bits & 0x00000002u) != 0) { 1043 _impl_.value_.ClearNonDefaultToEmpty(); 1044 } 1045 } 1046 _impl_._has_bits_.Clear(); 1047 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); 1048 } 1049 1050 #if defined(PROTOBUF_CUSTOM_VTABLE) 1051 ::uint8_t* PROTOBUF_NONNULL KeyValue::_InternalSerialize( 1052 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, 1053 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { 1054 const KeyValue& this_ = static_cast<const KeyValue&>(base); 1055 #else // PROTOBUF_CUSTOM_VTABLE 1056 ::uint8_t* PROTOBUF_NONNULL KeyValue::_InternalSerialize( 1057 ::uint8_t* PROTOBUF_NONNULL target, 1058 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { 1059 const KeyValue& this_ = *this; 1060 #endif // PROTOBUF_CUSTOM_VTABLE 1061 // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.KeyValue) 1062 ::uint32_t cached_has_bits = 0; 1063 (void)cached_has_bits; 1064 1065 // string key = 1; 1066 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { 1067 if (!this_._internal_key().empty()) { 1068 const ::std::string& _s = this_._internal_key(); 1069 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1070 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.KeyValue.key"); 1071 target = stream->WriteStringMaybeAliased(1, _s, target); 1072 } 1073 } 1074 1075 // string value = 2; 1076 if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { 1077 if (!this_._internal_value().empty()) { 1078 const ::std::string& _s = this_._internal_value(); 1079 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1080 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.KeyValue.value"); 1081 target = stream->WriteStringMaybeAliased(2, _s, target); 1082 } 1083 } 1084 1085 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { 1086 target = 1087 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( 1088 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); 1089 } 1090 // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.KeyValue) 1091 return target; 1092 } 1093 1094 #if defined(PROTOBUF_CUSTOM_VTABLE) 1095 ::size_t KeyValue::ByteSizeLong(const MessageLite& base) { 1096 const KeyValue& this_ = static_cast<const KeyValue&>(base); 1097 #else // PROTOBUF_CUSTOM_VTABLE 1098 ::size_t KeyValue::ByteSizeLong() const { 1099 const KeyValue& this_ = *this; 1100 #endif // PROTOBUF_CUSTOM_VTABLE 1101 // @@protoc_insertion_point(message_byte_size_start:agones.dev.sdk.KeyValue) 1102 ::size_t total_size = 0; 1103 1104 ::uint32_t cached_has_bits = 0; 1105 // Prevent compiler warnings about cached_has_bits being unused 1106 (void)cached_has_bits; 1107 1108 ::_pbi::Prefetch5LinesFrom7Lines(&this_); 1109 cached_has_bits = this_._impl_._has_bits_[0]; 1110 if ((cached_has_bits & 0x00000003u) != 0) { 1111 // string key = 1; 1112 if ((cached_has_bits & 0x00000001u) != 0) { 1113 if (!this_._internal_key().empty()) { 1114 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( 1115 this_._internal_key()); 1116 } 1117 } 1118 // string value = 2; 1119 if ((cached_has_bits & 0x00000002u) != 0) { 1120 if (!this_._internal_value().empty()) { 1121 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( 1122 this_._internal_value()); 1123 } 1124 } 1125 } 1126 return this_.MaybeComputeUnknownFieldsSize(total_size, 1127 &this_._impl_._cached_size_); 1128 } 1129 1130 void KeyValue::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { 1131 auto* const _this = static_cast<KeyValue*>(&to_msg); 1132 auto& from = static_cast<const KeyValue&>(from_msg); 1133 // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.KeyValue) 1134 ABSL_DCHECK_NE(&from, _this); 1135 ::uint32_t cached_has_bits = 0; 1136 (void) cached_has_bits; 1137 1138 cached_has_bits = from._impl_._has_bits_[0]; 1139 if ((cached_has_bits & 0x00000003u) != 0) { 1140 if ((cached_has_bits & 0x00000001u) != 0) { 1141 if (!from._internal_key().empty()) { 1142 _this->_internal_set_key(from._internal_key()); 1143 } else { 1144 if (_this->_impl_.key_.IsDefault()) { 1145 _this->_internal_set_key(""); 1146 } 1147 } 1148 } 1149 if ((cached_has_bits & 0x00000002u) != 0) { 1150 if (!from._internal_value().empty()) { 1151 _this->_internal_set_value(from._internal_value()); 1152 } else { 1153 if (_this->_impl_.value_.IsDefault()) { 1154 _this->_internal_set_value(""); 1155 } 1156 } 1157 } 1158 } 1159 _this->_impl_._has_bits_[0] |= cached_has_bits; 1160 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); 1161 } 1162 1163 void KeyValue::CopyFrom(const KeyValue& from) { 1164 // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.KeyValue) 1165 if (&from == this) return; 1166 Clear(); 1167 MergeFrom(from); 1168 } 1169 1170 1171 void KeyValue::InternalSwap(KeyValue* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { 1172 using ::std::swap; 1173 auto* arena = GetArena(); 1174 ABSL_DCHECK_EQ(arena, other->GetArena()); 1175 _internal_metadata_.InternalSwap(&other->_internal_metadata_); 1176 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); 1177 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, &other->_impl_.key_, arena); 1178 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.value_, &other->_impl_.value_, arena); 1179 } 1180 1181 ::google::protobuf::Metadata KeyValue::GetMetadata() const { 1182 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); 1183 } 1184 // =================================================================== 1185 1186 class Duration::_Internal { 1187 public: 1188 using HasBits = 1189 decltype(::std::declval<Duration>()._impl_._has_bits_); 1190 static constexpr ::int32_t kHasBitsOffset = 1191 8 * PROTOBUF_FIELD_OFFSET(Duration, _impl_._has_bits_); 1192 }; 1193 1194 Duration::Duration(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 1195 #if defined(PROTOBUF_CUSTOM_VTABLE) 1196 : ::google::protobuf::Message(arena, Duration_class_data_.base()) { 1197 #else // PROTOBUF_CUSTOM_VTABLE 1198 : ::google::protobuf::Message(arena) { 1199 #endif // PROTOBUF_CUSTOM_VTABLE 1200 SharedCtor(arena); 1201 // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.Duration) 1202 } 1203 Duration::Duration( 1204 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Duration& from) 1205 #if defined(PROTOBUF_CUSTOM_VTABLE) 1206 : ::google::protobuf::Message(arena, Duration_class_data_.base()), 1207 #else // PROTOBUF_CUSTOM_VTABLE 1208 : ::google::protobuf::Message(arena), 1209 #endif // PROTOBUF_CUSTOM_VTABLE 1210 _impl_(from._impl_) { 1211 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( 1212 from._internal_metadata_); 1213 } 1214 PROTOBUF_NDEBUG_INLINE Duration::Impl_::Impl_( 1215 ::google::protobuf::internal::InternalVisibility visibility, 1216 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 1217 : _cached_size_{0} {} 1218 1219 inline void Duration::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { 1220 new (&_impl_) Impl_(internal_visibility(), arena); 1221 _impl_.seconds_ = {}; 1222 } 1223 Duration::~Duration() { 1224 // @@protoc_insertion_point(destructor:agones.dev.sdk.Duration) 1225 SharedDtor(*this); 1226 } 1227 inline void Duration::SharedDtor(MessageLite& self) { 1228 Duration& this_ = static_cast<Duration&>(self); 1229 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); 1230 ABSL_DCHECK(this_.GetArena() == nullptr); 1231 this_._impl_.~Impl_(); 1232 } 1233 1234 inline void* PROTOBUF_NONNULL Duration::PlacementNew_( 1235 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, 1236 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { 1237 return ::new (mem) Duration(arena); 1238 } 1239 constexpr auto Duration::InternalNewImpl_() { 1240 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Duration), 1241 alignof(Duration)); 1242 } 1243 constexpr auto Duration::InternalGenerateClassData_() { 1244 return ::google::protobuf::internal::ClassDataFull{ 1245 ::google::protobuf::internal::ClassData{ 1246 &_Duration_default_instance_._instance, 1247 &_table_.header, 1248 nullptr, // OnDemandRegisterArenaDtor 1249 nullptr, // IsInitialized 1250 &Duration::MergeImpl, 1251 ::google::protobuf::Message::GetNewImpl<Duration>(), 1252 #if defined(PROTOBUF_CUSTOM_VTABLE) 1253 &Duration::SharedDtor, 1254 ::google::protobuf::Message::GetClearImpl<Duration>(), &Duration::ByteSizeLong, 1255 &Duration::_InternalSerialize, 1256 #endif // PROTOBUF_CUSTOM_VTABLE 1257 PROTOBUF_FIELD_OFFSET(Duration, _impl_._cached_size_), 1258 false, 1259 }, 1260 &Duration::kDescriptorMethods, 1261 &descriptor_table_sdk_2eproto, 1262 nullptr, // tracker 1263 }; 1264 } 1265 1266 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const 1267 ::google::protobuf::internal::ClassDataFull Duration_class_data_ = 1268 Duration::InternalGenerateClassData_(); 1269 1270 PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL 1271 Duration::GetClassData() const { 1272 ::google::protobuf::internal::PrefetchToLocalCache(&Duration_class_data_); 1273 ::google::protobuf::internal::PrefetchToLocalCache(Duration_class_data_.tc_table); 1274 return Duration_class_data_.base(); 1275 } 1276 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 1277 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> 1278 Duration::_table_ = { 1279 { 1280 PROTOBUF_FIELD_OFFSET(Duration, _impl_._has_bits_), 1281 0, // no _extensions_ 1282 1, 0, // max_field_number, fast_idx_mask 1283 offsetof(decltype(_table_), field_lookup_table), 1284 4294967294, // skipmap 1285 offsetof(decltype(_table_), field_entries), 1286 1, // num_field_entries 1287 0, // num_aux_entries 1288 offsetof(decltype(_table_), field_names), // no aux_entries 1289 Duration_class_data_.base(), 1290 nullptr, // post_loop_handler 1291 ::_pbi::TcParser::GenericFallback, // fallback 1292 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE 1293 ::_pbi::TcParser::GetTable<::agones::dev::sdk::Duration>(), // to_prefetch 1294 #endif // PROTOBUF_PREFETCH_PARSE_TABLE 1295 }, {{ 1296 // int64 seconds = 1; 1297 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Duration, _impl_.seconds_), 0>(), 1298 {8, 0, 0, PROTOBUF_FIELD_OFFSET(Duration, _impl_.seconds_)}}, 1299 }}, {{ 1300 65535, 65535 1301 }}, {{ 1302 // int64 seconds = 1; 1303 {PROTOBUF_FIELD_OFFSET(Duration, _impl_.seconds_), _Internal::kHasBitsOffset + 0, 0, 1304 (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, 1305 }}, 1306 // no aux_entries 1307 {{ 1308 }}, 1309 }; 1310 PROTOBUF_NOINLINE void Duration::Clear() { 1311 // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.Duration) 1312 ::google::protobuf::internal::TSanWrite(&_impl_); 1313 ::uint32_t cached_has_bits = 0; 1314 // Prevent compiler warnings about cached_has_bits being unused 1315 (void) cached_has_bits; 1316 1317 _impl_.seconds_ = ::int64_t{0}; 1318 _impl_._has_bits_.Clear(); 1319 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); 1320 } 1321 1322 #if defined(PROTOBUF_CUSTOM_VTABLE) 1323 ::uint8_t* PROTOBUF_NONNULL Duration::_InternalSerialize( 1324 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, 1325 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { 1326 const Duration& this_ = static_cast<const Duration&>(base); 1327 #else // PROTOBUF_CUSTOM_VTABLE 1328 ::uint8_t* PROTOBUF_NONNULL Duration::_InternalSerialize( 1329 ::uint8_t* PROTOBUF_NONNULL target, 1330 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { 1331 const Duration& this_ = *this; 1332 #endif // PROTOBUF_CUSTOM_VTABLE 1333 // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.Duration) 1334 ::uint32_t cached_has_bits = 0; 1335 (void)cached_has_bits; 1336 1337 // int64 seconds = 1; 1338 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { 1339 if (this_._internal_seconds() != 0) { 1340 target = 1341 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( 1342 stream, this_._internal_seconds(), target); 1343 } 1344 } 1345 1346 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { 1347 target = 1348 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( 1349 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); 1350 } 1351 // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.Duration) 1352 return target; 1353 } 1354 1355 #if defined(PROTOBUF_CUSTOM_VTABLE) 1356 ::size_t Duration::ByteSizeLong(const MessageLite& base) { 1357 const Duration& this_ = static_cast<const Duration&>(base); 1358 #else // PROTOBUF_CUSTOM_VTABLE 1359 ::size_t Duration::ByteSizeLong() const { 1360 const Duration& this_ = *this; 1361 #endif // PROTOBUF_CUSTOM_VTABLE 1362 // @@protoc_insertion_point(message_byte_size_start:agones.dev.sdk.Duration) 1363 ::size_t total_size = 0; 1364 1365 ::uint32_t cached_has_bits = 0; 1366 // Prevent compiler warnings about cached_has_bits being unused 1367 (void)cached_has_bits; 1368 1369 { 1370 // int64 seconds = 1; 1371 cached_has_bits = this_._impl_._has_bits_[0]; 1372 if ((cached_has_bits & 0x00000001u) != 0) { 1373 if (this_._internal_seconds() != 0) { 1374 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( 1375 this_._internal_seconds()); 1376 } 1377 } 1378 } 1379 return this_.MaybeComputeUnknownFieldsSize(total_size, 1380 &this_._impl_._cached_size_); 1381 } 1382 1383 void Duration::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { 1384 auto* const _this = static_cast<Duration*>(&to_msg); 1385 auto& from = static_cast<const Duration&>(from_msg); 1386 // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.Duration) 1387 ABSL_DCHECK_NE(&from, _this); 1388 ::uint32_t cached_has_bits = 0; 1389 (void) cached_has_bits; 1390 1391 cached_has_bits = from._impl_._has_bits_[0]; 1392 if ((cached_has_bits & 0x00000001u) != 0) { 1393 if (from._internal_seconds() != 0) { 1394 _this->_impl_.seconds_ = from._impl_.seconds_; 1395 } 1396 } 1397 _this->_impl_._has_bits_[0] |= cached_has_bits; 1398 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); 1399 } 1400 1401 void Duration::CopyFrom(const Duration& from) { 1402 // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.Duration) 1403 if (&from == this) return; 1404 Clear(); 1405 MergeFrom(from); 1406 } 1407 1408 1409 void Duration::InternalSwap(Duration* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { 1410 using ::std::swap; 1411 _internal_metadata_.InternalSwap(&other->_internal_metadata_); 1412 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); 1413 swap(_impl_.seconds_, other->_impl_.seconds_); 1414 } 1415 1416 ::google::protobuf::Metadata Duration::GetMetadata() const { 1417 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); 1418 } 1419 // =================================================================== 1420 1421 #if defined(PROTOBUF_CUSTOM_VTABLE) 1422 GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse() 1423 : SuperType(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.base()) {} 1424 GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 1425 : SuperType(arena, GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.base()) {} 1426 #else // PROTOBUF_CUSTOM_VTABLE 1427 GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse() : SuperType() {} 1428 GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} 1429 #endif // PROTOBUF_CUSTOM_VTABLE 1430 inline void* PROTOBUF_NONNULL GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::PlacementNew_( 1431 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, 1432 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { 1433 return ::new (mem) GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(arena); 1434 } 1435 constexpr auto GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::InternalNewImpl_() { 1436 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse), 1437 alignof(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse)); 1438 } 1439 constexpr auto GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::InternalGenerateClassData_() { 1440 return ::google::protobuf::internal::ClassDataFull{ 1441 ::google::protobuf::internal::ClassData{ 1442 &_GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_default_instance_._instance, 1443 &_table_.header, 1444 nullptr, // OnDemandRegisterArenaDtor 1445 nullptr, // IsInitialized 1446 &GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::MergeImpl, 1447 ::google::protobuf::Message::GetNewImpl<GameServer_ObjectMeta_AnnotationsEntry_DoNotUse>(), 1448 #if defined(PROTOBUF_CUSTOM_VTABLE) 1449 &GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::SharedDtor, 1450 static_cast<void (::google::protobuf::MessageLite::*)()>(&GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::ClearImpl), 1451 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl 1452 , 1453 #endif // PROTOBUF_CUSTOM_VTABLE 1454 PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_._cached_size_), 1455 false, 1456 }, 1457 &GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::kDescriptorMethods, 1458 &descriptor_table_sdk_2eproto, 1459 nullptr, // tracker 1460 }; 1461 } 1462 1463 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const 1464 ::google::protobuf::internal::ClassDataFull GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_ = 1465 GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::InternalGenerateClassData_(); 1466 1467 PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL 1468 GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GetClassData() const { 1469 ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_); 1470 ::google::protobuf::internal::PrefetchToLocalCache(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.tc_table); 1471 return GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.base(); 1472 } 1473 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 1474 const ::_pbi::TcParseTable<1, 2, 0, 70, 2> 1475 GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::_table_ = { 1476 { 1477 PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_._has_bits_), 1478 0, // no _extensions_ 1479 2, 8, // max_field_number, fast_idx_mask 1480 offsetof(decltype(_table_), field_lookup_table), 1481 4294967292, // skipmap 1482 offsetof(decltype(_table_), field_entries), 1483 2, // num_field_entries 1484 0, // num_aux_entries 1485 offsetof(decltype(_table_), field_names), // no aux_entries 1486 GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.base(), 1487 nullptr, // post_loop_handler 1488 ::_pbi::TcParser::DiscardEverythingFallback, // fallback 1489 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE 1490 ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse>(), // to_prefetch 1491 #endif // PROTOBUF_PREFETCH_PARSE_TABLE 1492 }, {{ 1493 // string value = 2; 1494 {::_pbi::TcParser::FastUS1, 1495 {18, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_.value_)}}, 1496 // string key = 1; 1497 {::_pbi::TcParser::FastUS1, 1498 {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_.key_)}}, 1499 }}, {{ 1500 65535, 65535 1501 }}, {{ 1502 // string key = 1; 1503 {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, 1504 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, 1505 // string value = 2; 1506 {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, 1507 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, 1508 }}, 1509 // no aux_entries 1510 {{ 1511 "\65\3\5\0\0\0\0\0" 1512 "agones.dev.sdk.GameServer.ObjectMeta.AnnotationsEntry" 1513 "key" 1514 "value" 1515 }}, 1516 }; 1517 // =================================================================== 1518 1519 #if defined(PROTOBUF_CUSTOM_VTABLE) 1520 GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse() 1521 : SuperType(GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_.base()) {} 1522 GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 1523 : SuperType(arena, GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_.base()) {} 1524 #else // PROTOBUF_CUSTOM_VTABLE 1525 GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse() : SuperType() {} 1526 GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} 1527 #endif // PROTOBUF_CUSTOM_VTABLE 1528 inline void* PROTOBUF_NONNULL GameServer_ObjectMeta_LabelsEntry_DoNotUse::PlacementNew_( 1529 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, 1530 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { 1531 return ::new (mem) GameServer_ObjectMeta_LabelsEntry_DoNotUse(arena); 1532 } 1533 constexpr auto GameServer_ObjectMeta_LabelsEntry_DoNotUse::InternalNewImpl_() { 1534 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_ObjectMeta_LabelsEntry_DoNotUse), 1535 alignof(GameServer_ObjectMeta_LabelsEntry_DoNotUse)); 1536 } 1537 constexpr auto GameServer_ObjectMeta_LabelsEntry_DoNotUse::InternalGenerateClassData_() { 1538 return ::google::protobuf::internal::ClassDataFull{ 1539 ::google::protobuf::internal::ClassData{ 1540 &_GameServer_ObjectMeta_LabelsEntry_DoNotUse_default_instance_._instance, 1541 &_table_.header, 1542 nullptr, // OnDemandRegisterArenaDtor 1543 nullptr, // IsInitialized 1544 &GameServer_ObjectMeta_LabelsEntry_DoNotUse::MergeImpl, 1545 ::google::protobuf::Message::GetNewImpl<GameServer_ObjectMeta_LabelsEntry_DoNotUse>(), 1546 #if defined(PROTOBUF_CUSTOM_VTABLE) 1547 &GameServer_ObjectMeta_LabelsEntry_DoNotUse::SharedDtor, 1548 static_cast<void (::google::protobuf::MessageLite::*)()>(&GameServer_ObjectMeta_LabelsEntry_DoNotUse::ClearImpl), 1549 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl 1550 , 1551 #endif // PROTOBUF_CUSTOM_VTABLE 1552 PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_._cached_size_), 1553 false, 1554 }, 1555 &GameServer_ObjectMeta_LabelsEntry_DoNotUse::kDescriptorMethods, 1556 &descriptor_table_sdk_2eproto, 1557 nullptr, // tracker 1558 }; 1559 } 1560 1561 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const 1562 ::google::protobuf::internal::ClassDataFull GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_ = 1563 GameServer_ObjectMeta_LabelsEntry_DoNotUse::InternalGenerateClassData_(); 1564 1565 PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL 1566 GameServer_ObjectMeta_LabelsEntry_DoNotUse::GetClassData() const { 1567 ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_); 1568 ::google::protobuf::internal::PrefetchToLocalCache(GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_.tc_table); 1569 return GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_.base(); 1570 } 1571 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 1572 const ::_pbi::TcParseTable<1, 2, 0, 65, 2> 1573 GameServer_ObjectMeta_LabelsEntry_DoNotUse::_table_ = { 1574 { 1575 PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_._has_bits_), 1576 0, // no _extensions_ 1577 2, 8, // max_field_number, fast_idx_mask 1578 offsetof(decltype(_table_), field_lookup_table), 1579 4294967292, // skipmap 1580 offsetof(decltype(_table_), field_entries), 1581 2, // num_field_entries 1582 0, // num_aux_entries 1583 offsetof(decltype(_table_), field_names), // no aux_entries 1584 GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_.base(), 1585 nullptr, // post_loop_handler 1586 ::_pbi::TcParser::DiscardEverythingFallback, // fallback 1587 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE 1588 ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse>(), // to_prefetch 1589 #endif // PROTOBUF_PREFETCH_PARSE_TABLE 1590 }, {{ 1591 // string value = 2; 1592 {::_pbi::TcParser::FastUS1, 1593 {18, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_.value_)}}, 1594 // string key = 1; 1595 {::_pbi::TcParser::FastUS1, 1596 {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_.key_)}}, 1597 }}, {{ 1598 65535, 65535 1599 }}, {{ 1600 // string key = 1; 1601 {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, 1602 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, 1603 // string value = 2; 1604 {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, 1605 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, 1606 }}, 1607 // no aux_entries 1608 {{ 1609 "\60\3\5\0\0\0\0\0" 1610 "agones.dev.sdk.GameServer.ObjectMeta.LabelsEntry" 1611 "key" 1612 "value" 1613 }}, 1614 }; 1615 // =================================================================== 1616 1617 class GameServer_ObjectMeta::_Internal { 1618 public: 1619 using HasBits = 1620 decltype(::std::declval<GameServer_ObjectMeta>()._impl_._has_bits_); 1621 static constexpr ::int32_t kHasBitsOffset = 1622 8 * PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_._has_bits_); 1623 }; 1624 1625 GameServer_ObjectMeta::GameServer_ObjectMeta(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 1626 #if defined(PROTOBUF_CUSTOM_VTABLE) 1627 : ::google::protobuf::Message(arena, GameServer_ObjectMeta_class_data_.base()) { 1628 #else // PROTOBUF_CUSTOM_VTABLE 1629 : ::google::protobuf::Message(arena) { 1630 #endif // PROTOBUF_CUSTOM_VTABLE 1631 SharedCtor(arena); 1632 // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.ObjectMeta) 1633 } 1634 PROTOBUF_NDEBUG_INLINE GameServer_ObjectMeta::Impl_::Impl_( 1635 ::google::protobuf::internal::InternalVisibility visibility, 1636 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, 1637 const ::agones::dev::sdk::GameServer_ObjectMeta& from_msg) 1638 : _has_bits_{from._has_bits_}, 1639 _cached_size_{0}, 1640 annotations_{visibility, arena, from.annotations_}, 1641 labels_{visibility, arena, from.labels_}, 1642 name_(arena, from.name_), 1643 namespace__(arena, from.namespace__), 1644 uid_(arena, from.uid_), 1645 resource_version_(arena, from.resource_version_) {} 1646 1647 GameServer_ObjectMeta::GameServer_ObjectMeta( 1648 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, 1649 const GameServer_ObjectMeta& from) 1650 #if defined(PROTOBUF_CUSTOM_VTABLE) 1651 : ::google::protobuf::Message(arena, GameServer_ObjectMeta_class_data_.base()) { 1652 #else // PROTOBUF_CUSTOM_VTABLE 1653 : ::google::protobuf::Message(arena) { 1654 #endif // PROTOBUF_CUSTOM_VTABLE 1655 GameServer_ObjectMeta* const _this = this; 1656 (void)_this; 1657 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( 1658 from._internal_metadata_); 1659 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); 1660 ::memcpy(reinterpret_cast<char *>(&_impl_) + 1661 offsetof(Impl_, generation_), 1662 reinterpret_cast<const char *>(&from._impl_) + 1663 offsetof(Impl_, generation_), 1664 offsetof(Impl_, deletion_timestamp_) - 1665 offsetof(Impl_, generation_) + 1666 sizeof(Impl_::deletion_timestamp_)); 1667 1668 // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.ObjectMeta) 1669 } 1670 PROTOBUF_NDEBUG_INLINE GameServer_ObjectMeta::Impl_::Impl_( 1671 ::google::protobuf::internal::InternalVisibility visibility, 1672 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 1673 : _cached_size_{0}, 1674 annotations_{visibility, arena}, 1675 labels_{visibility, arena}, 1676 name_(arena), 1677 namespace__(arena), 1678 uid_(arena), 1679 resource_version_(arena) {} 1680 1681 inline void GameServer_ObjectMeta::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { 1682 new (&_impl_) Impl_(internal_visibility(), arena); 1683 ::memset(reinterpret_cast<char *>(&_impl_) + 1684 offsetof(Impl_, generation_), 1685 0, 1686 offsetof(Impl_, deletion_timestamp_) - 1687 offsetof(Impl_, generation_) + 1688 sizeof(Impl_::deletion_timestamp_)); 1689 } 1690 GameServer_ObjectMeta::~GameServer_ObjectMeta() { 1691 // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.ObjectMeta) 1692 SharedDtor(*this); 1693 } 1694 inline void GameServer_ObjectMeta::SharedDtor(MessageLite& self) { 1695 GameServer_ObjectMeta& this_ = static_cast<GameServer_ObjectMeta&>(self); 1696 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); 1697 ABSL_DCHECK(this_.GetArena() == nullptr); 1698 this_._impl_.name_.Destroy(); 1699 this_._impl_.namespace__.Destroy(); 1700 this_._impl_.uid_.Destroy(); 1701 this_._impl_.resource_version_.Destroy(); 1702 this_._impl_.~Impl_(); 1703 } 1704 1705 inline void* PROTOBUF_NONNULL GameServer_ObjectMeta::PlacementNew_( 1706 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, 1707 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { 1708 return ::new (mem) GameServer_ObjectMeta(arena); 1709 } 1710 constexpr auto GameServer_ObjectMeta::InternalNewImpl_() { 1711 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ 1712 PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.annotations_) + 1713 decltype(GameServer_ObjectMeta::_impl_.annotations_):: 1714 InternalGetArenaOffset( 1715 ::google::protobuf::Message::internal_visibility()), 1716 PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.annotations_) + 1717 decltype(GameServer_ObjectMeta::_impl_.annotations_):: 1718 InternalGetArenaOffsetAlt( 1719 ::google::protobuf::Message::internal_visibility()), 1720 PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.labels_) + 1721 decltype(GameServer_ObjectMeta::_impl_.labels_):: 1722 InternalGetArenaOffset( 1723 ::google::protobuf::Message::internal_visibility()), 1724 PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.labels_) + 1725 decltype(GameServer_ObjectMeta::_impl_.labels_):: 1726 InternalGetArenaOffsetAlt( 1727 ::google::protobuf::Message::internal_visibility()), 1728 }); 1729 if (arena_bits.has_value()) { 1730 return ::google::protobuf::internal::MessageCreator::CopyInit( 1731 sizeof(GameServer_ObjectMeta), alignof(GameServer_ObjectMeta), *arena_bits); 1732 } else { 1733 return ::google::protobuf::internal::MessageCreator(&GameServer_ObjectMeta::PlacementNew_, 1734 sizeof(GameServer_ObjectMeta), 1735 alignof(GameServer_ObjectMeta)); 1736 } 1737 } 1738 constexpr auto GameServer_ObjectMeta::InternalGenerateClassData_() { 1739 return ::google::protobuf::internal::ClassDataFull{ 1740 ::google::protobuf::internal::ClassData{ 1741 &_GameServer_ObjectMeta_default_instance_._instance, 1742 &_table_.header, 1743 nullptr, // OnDemandRegisterArenaDtor 1744 nullptr, // IsInitialized 1745 &GameServer_ObjectMeta::MergeImpl, 1746 ::google::protobuf::Message::GetNewImpl<GameServer_ObjectMeta>(), 1747 #if defined(PROTOBUF_CUSTOM_VTABLE) 1748 &GameServer_ObjectMeta::SharedDtor, 1749 ::google::protobuf::Message::GetClearImpl<GameServer_ObjectMeta>(), &GameServer_ObjectMeta::ByteSizeLong, 1750 &GameServer_ObjectMeta::_InternalSerialize, 1751 #endif // PROTOBUF_CUSTOM_VTABLE 1752 PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_._cached_size_), 1753 false, 1754 }, 1755 &GameServer_ObjectMeta::kDescriptorMethods, 1756 &descriptor_table_sdk_2eproto, 1757 nullptr, // tracker 1758 }; 1759 } 1760 1761 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const 1762 ::google::protobuf::internal::ClassDataFull GameServer_ObjectMeta_class_data_ = 1763 GameServer_ObjectMeta::InternalGenerateClassData_(); 1764 1765 PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL 1766 GameServer_ObjectMeta::GetClassData() const { 1767 ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_ObjectMeta_class_data_); 1768 ::google::protobuf::internal::PrefetchToLocalCache(GameServer_ObjectMeta_class_data_.tc_table); 1769 return GameServer_ObjectMeta_class_data_.base(); 1770 } 1771 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 1772 const ::_pbi::TcParseTable<3, 9, 2, 102, 2> 1773 GameServer_ObjectMeta::_table_ = { 1774 { 1775 PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_._has_bits_), 1776 0, // no _extensions_ 1777 9, 56, // max_field_number, fast_idx_mask 1778 offsetof(decltype(_table_), field_lookup_table), 1779 4294966784, // skipmap 1780 offsetof(decltype(_table_), field_entries), 1781 9, // num_field_entries 1782 2, // num_aux_entries 1783 offsetof(decltype(_table_), aux_entries), 1784 GameServer_ObjectMeta_class_data_.base(), 1785 nullptr, // post_loop_handler 1786 ::_pbi::TcParser::GenericFallback, // fallback 1787 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE 1788 ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_ObjectMeta>(), // to_prefetch 1789 #endif // PROTOBUF_PREFETCH_PARSE_TABLE 1790 }, {{ 1791 {::_pbi::TcParser::MiniParse, {}}, 1792 // string name = 1; 1793 {::_pbi::TcParser::FastUS1, 1794 {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.name_)}}, 1795 // string namespace = 2; 1796 {::_pbi::TcParser::FastUS1, 1797 {18, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.namespace__)}}, 1798 // string uid = 3; 1799 {::_pbi::TcParser::FastUS1, 1800 {26, 2, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.uid_)}}, 1801 // string resource_version = 4; 1802 {::_pbi::TcParser::FastUS1, 1803 {34, 3, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.resource_version_)}}, 1804 // int64 generation = 5; 1805 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_ObjectMeta, _impl_.generation_), 4>(), 1806 {40, 4, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.generation_)}}, 1807 // int64 creation_timestamp = 6; 1808 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_ObjectMeta, _impl_.creation_timestamp_), 5>(), 1809 {48, 5, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.creation_timestamp_)}}, 1810 // int64 deletion_timestamp = 7; 1811 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_ObjectMeta, _impl_.deletion_timestamp_), 6>(), 1812 {56, 6, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.deletion_timestamp_)}}, 1813 }}, {{ 1814 65535, 65535 1815 }}, {{ 1816 // string name = 1; 1817 {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, 1818 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, 1819 // string namespace = 2; 1820 {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.namespace__), _Internal::kHasBitsOffset + 1, 0, 1821 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, 1822 // string uid = 3; 1823 {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.uid_), _Internal::kHasBitsOffset + 2, 0, 1824 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, 1825 // string resource_version = 4; 1826 {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.resource_version_), _Internal::kHasBitsOffset + 3, 0, 1827 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, 1828 // int64 generation = 5; 1829 {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.generation_), _Internal::kHasBitsOffset + 4, 0, 1830 (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, 1831 // int64 creation_timestamp = 6; 1832 {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.creation_timestamp_), _Internal::kHasBitsOffset + 5, 0, 1833 (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, 1834 // int64 deletion_timestamp = 7; 1835 {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.deletion_timestamp_), _Internal::kHasBitsOffset + 6, 0, 1836 (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, 1837 // map<string, string> annotations = 8; 1838 {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.annotations_), -1, 0, 1839 (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, 1840 // map<string, string> labels = 9; 1841 {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.labels_), -1, 1, 1842 (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, 1843 }}, 1844 {{ 1845 {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, 1846 9, 9, 1847 0)}, 1848 {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, 1849 9, 9, 1850 0)}, 1851 }}, 1852 {{ 1853 "\44\4\11\3\20\0\0\0\13\6\0\0\0\0\0\0" 1854 "agones.dev.sdk.GameServer.ObjectMeta" 1855 "name" 1856 "namespace" 1857 "uid" 1858 "resource_version" 1859 "annotations" 1860 "labels" 1861 }}, 1862 }; 1863 PROTOBUF_NOINLINE void GameServer_ObjectMeta::Clear() { 1864 // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.ObjectMeta) 1865 ::google::protobuf::internal::TSanWrite(&_impl_); 1866 ::uint32_t cached_has_bits = 0; 1867 // Prevent compiler warnings about cached_has_bits being unused 1868 (void) cached_has_bits; 1869 1870 _impl_.annotations_.Clear(); 1871 _impl_.labels_.Clear(); 1872 cached_has_bits = _impl_._has_bits_[0]; 1873 if ((cached_has_bits & 0x0000000fu) != 0) { 1874 if ((cached_has_bits & 0x00000001u) != 0) { 1875 _impl_.name_.ClearNonDefaultToEmpty(); 1876 } 1877 if ((cached_has_bits & 0x00000002u) != 0) { 1878 _impl_.namespace__.ClearNonDefaultToEmpty(); 1879 } 1880 if ((cached_has_bits & 0x00000004u) != 0) { 1881 _impl_.uid_.ClearNonDefaultToEmpty(); 1882 } 1883 if ((cached_has_bits & 0x00000008u) != 0) { 1884 _impl_.resource_version_.ClearNonDefaultToEmpty(); 1885 } 1886 } 1887 if ((cached_has_bits & 0x00000070u) != 0) { 1888 ::memset(&_impl_.generation_, 0, static_cast<::size_t>( 1889 reinterpret_cast<char*>(&_impl_.deletion_timestamp_) - 1890 reinterpret_cast<char*>(&_impl_.generation_)) + sizeof(_impl_.deletion_timestamp_)); 1891 } 1892 _impl_._has_bits_.Clear(); 1893 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); 1894 } 1895 1896 #if defined(PROTOBUF_CUSTOM_VTABLE) 1897 ::uint8_t* PROTOBUF_NONNULL GameServer_ObjectMeta::_InternalSerialize( 1898 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, 1899 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { 1900 const GameServer_ObjectMeta& this_ = static_cast<const GameServer_ObjectMeta&>(base); 1901 #else // PROTOBUF_CUSTOM_VTABLE 1902 ::uint8_t* PROTOBUF_NONNULL GameServer_ObjectMeta::_InternalSerialize( 1903 ::uint8_t* PROTOBUF_NONNULL target, 1904 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { 1905 const GameServer_ObjectMeta& this_ = *this; 1906 #endif // PROTOBUF_CUSTOM_VTABLE 1907 // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.ObjectMeta) 1908 ::uint32_t cached_has_bits = 0; 1909 (void)cached_has_bits; 1910 1911 // string name = 1; 1912 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { 1913 if (!this_._internal_name().empty()) { 1914 const ::std::string& _s = this_._internal_name(); 1915 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1916 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.name"); 1917 target = stream->WriteStringMaybeAliased(1, _s, target); 1918 } 1919 } 1920 1921 // string namespace = 2; 1922 if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { 1923 if (!this_._internal_namespace_().empty()) { 1924 const ::std::string& _s = this_._internal_namespace_(); 1925 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1926 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.namespace"); 1927 target = stream->WriteStringMaybeAliased(2, _s, target); 1928 } 1929 } 1930 1931 // string uid = 3; 1932 if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { 1933 if (!this_._internal_uid().empty()) { 1934 const ::std::string& _s = this_._internal_uid(); 1935 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1936 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.uid"); 1937 target = stream->WriteStringMaybeAliased(3, _s, target); 1938 } 1939 } 1940 1941 // string resource_version = 4; 1942 if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { 1943 if (!this_._internal_resource_version().empty()) { 1944 const ::std::string& _s = this_._internal_resource_version(); 1945 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1946 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.resource_version"); 1947 target = stream->WriteStringMaybeAliased(4, _s, target); 1948 } 1949 } 1950 1951 // int64 generation = 5; 1952 if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) { 1953 if (this_._internal_generation() != 0) { 1954 target = 1955 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>( 1956 stream, this_._internal_generation(), target); 1957 } 1958 } 1959 1960 // int64 creation_timestamp = 6; 1961 if ((this_._impl_._has_bits_[0] & 0x00000020u) != 0) { 1962 if (this_._internal_creation_timestamp() != 0) { 1963 target = 1964 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>( 1965 stream, this_._internal_creation_timestamp(), target); 1966 } 1967 } 1968 1969 // int64 deletion_timestamp = 7; 1970 if ((this_._impl_._has_bits_[0] & 0x00000040u) != 0) { 1971 if (this_._internal_deletion_timestamp() != 0) { 1972 target = 1973 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<7>( 1974 stream, this_._internal_deletion_timestamp(), target); 1975 } 1976 } 1977 1978 // map<string, string> annotations = 8; 1979 if (!this_._internal_annotations().empty()) { 1980 using MapType = ::google::protobuf::Map<std::string, std::string>; 1981 using WireHelper = _pbi::MapEntryFuncs<std::string, std::string, 1982 _pbi::WireFormatLite::TYPE_STRING, 1983 _pbi::WireFormatLite::TYPE_STRING>; 1984 const auto& field = this_._internal_annotations(); 1985 1986 if (stream->IsSerializationDeterministic() && field.size() > 1) { 1987 for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) { 1988 target = WireHelper::InternalSerialize( 1989 8, entry.first, entry.second, target, stream); 1990 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1991 entry.first.data(), static_cast<int>(entry.first.length()), 1992 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.annotations"); 1993 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 1994 entry.second.data(), static_cast<int>(entry.second.length()), 1995 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.annotations"); 1996 } 1997 } else { 1998 for (const auto& entry : field) { 1999 target = WireHelper::InternalSerialize( 2000 8, entry.first, entry.second, target, stream); 2001 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2002 entry.first.data(), static_cast<int>(entry.first.length()), 2003 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.annotations"); 2004 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2005 entry.second.data(), static_cast<int>(entry.second.length()), 2006 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.annotations"); 2007 } 2008 } 2009 } 2010 2011 // map<string, string> labels = 9; 2012 if (!this_._internal_labels().empty()) { 2013 using MapType = ::google::protobuf::Map<std::string, std::string>; 2014 using WireHelper = _pbi::MapEntryFuncs<std::string, std::string, 2015 _pbi::WireFormatLite::TYPE_STRING, 2016 _pbi::WireFormatLite::TYPE_STRING>; 2017 const auto& field = this_._internal_labels(); 2018 2019 if (stream->IsSerializationDeterministic() && field.size() > 1) { 2020 for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) { 2021 target = WireHelper::InternalSerialize( 2022 9, entry.first, entry.second, target, stream); 2023 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2024 entry.first.data(), static_cast<int>(entry.first.length()), 2025 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.labels"); 2026 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2027 entry.second.data(), static_cast<int>(entry.second.length()), 2028 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.labels"); 2029 } 2030 } else { 2031 for (const auto& entry : field) { 2032 target = WireHelper::InternalSerialize( 2033 9, entry.first, entry.second, target, stream); 2034 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2035 entry.first.data(), static_cast<int>(entry.first.length()), 2036 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.labels"); 2037 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2038 entry.second.data(), static_cast<int>(entry.second.length()), 2039 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.labels"); 2040 } 2041 } 2042 } 2043 2044 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { 2045 target = 2046 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( 2047 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); 2048 } 2049 // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.ObjectMeta) 2050 return target; 2051 } 2052 2053 #if defined(PROTOBUF_CUSTOM_VTABLE) 2054 ::size_t GameServer_ObjectMeta::ByteSizeLong(const MessageLite& base) { 2055 const GameServer_ObjectMeta& this_ = static_cast<const GameServer_ObjectMeta&>(base); 2056 #else // PROTOBUF_CUSTOM_VTABLE 2057 ::size_t GameServer_ObjectMeta::ByteSizeLong() const { 2058 const GameServer_ObjectMeta& this_ = *this; 2059 #endif // PROTOBUF_CUSTOM_VTABLE 2060 // @@protoc_insertion_point(message_byte_size_start:agones.dev.sdk.GameServer.ObjectMeta) 2061 ::size_t total_size = 0; 2062 2063 ::uint32_t cached_has_bits = 0; 2064 // Prevent compiler warnings about cached_has_bits being unused 2065 (void)cached_has_bits; 2066 2067 ::_pbi::Prefetch5LinesFrom7Lines(&this_); 2068 { 2069 // map<string, string> annotations = 8; 2070 { 2071 total_size += 2072 1 * ::google::protobuf::internal::FromIntSize(this_._internal_annotations_size()); 2073 for (const auto& entry : this_._internal_annotations()) { 2074 total_size += _pbi::MapEntryFuncs<std::string, std::string, 2075 _pbi::WireFormatLite::TYPE_STRING, 2076 _pbi::WireFormatLite::TYPE_STRING>::ByteSizeLong(entry.first, entry.second); 2077 } 2078 } 2079 // map<string, string> labels = 9; 2080 { 2081 total_size += 2082 1 * ::google::protobuf::internal::FromIntSize(this_._internal_labels_size()); 2083 for (const auto& entry : this_._internal_labels()) { 2084 total_size += _pbi::MapEntryFuncs<std::string, std::string, 2085 _pbi::WireFormatLite::TYPE_STRING, 2086 _pbi::WireFormatLite::TYPE_STRING>::ByteSizeLong(entry.first, entry.second); 2087 } 2088 } 2089 } 2090 cached_has_bits = this_._impl_._has_bits_[0]; 2091 if ((cached_has_bits & 0x0000007fu) != 0) { 2092 // string name = 1; 2093 if ((cached_has_bits & 0x00000001u) != 0) { 2094 if (!this_._internal_name().empty()) { 2095 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( 2096 this_._internal_name()); 2097 } 2098 } 2099 // string namespace = 2; 2100 if ((cached_has_bits & 0x00000002u) != 0) { 2101 if (!this_._internal_namespace_().empty()) { 2102 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( 2103 this_._internal_namespace_()); 2104 } 2105 } 2106 // string uid = 3; 2107 if ((cached_has_bits & 0x00000004u) != 0) { 2108 if (!this_._internal_uid().empty()) { 2109 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( 2110 this_._internal_uid()); 2111 } 2112 } 2113 // string resource_version = 4; 2114 if ((cached_has_bits & 0x00000008u) != 0) { 2115 if (!this_._internal_resource_version().empty()) { 2116 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( 2117 this_._internal_resource_version()); 2118 } 2119 } 2120 // int64 generation = 5; 2121 if ((cached_has_bits & 0x00000010u) != 0) { 2122 if (this_._internal_generation() != 0) { 2123 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( 2124 this_._internal_generation()); 2125 } 2126 } 2127 // int64 creation_timestamp = 6; 2128 if ((cached_has_bits & 0x00000020u) != 0) { 2129 if (this_._internal_creation_timestamp() != 0) { 2130 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( 2131 this_._internal_creation_timestamp()); 2132 } 2133 } 2134 // int64 deletion_timestamp = 7; 2135 if ((cached_has_bits & 0x00000040u) != 0) { 2136 if (this_._internal_deletion_timestamp() != 0) { 2137 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( 2138 this_._internal_deletion_timestamp()); 2139 } 2140 } 2141 } 2142 return this_.MaybeComputeUnknownFieldsSize(total_size, 2143 &this_._impl_._cached_size_); 2144 } 2145 2146 void GameServer_ObjectMeta::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { 2147 auto* const _this = static_cast<GameServer_ObjectMeta*>(&to_msg); 2148 auto& from = static_cast<const GameServer_ObjectMeta&>(from_msg); 2149 // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.ObjectMeta) 2150 ABSL_DCHECK_NE(&from, _this); 2151 ::uint32_t cached_has_bits = 0; 2152 (void) cached_has_bits; 2153 2154 _this->_impl_.annotations_.MergeFrom(from._impl_.annotations_); 2155 _this->_impl_.labels_.MergeFrom(from._impl_.labels_); 2156 cached_has_bits = from._impl_._has_bits_[0]; 2157 if ((cached_has_bits & 0x0000007fu) != 0) { 2158 if ((cached_has_bits & 0x00000001u) != 0) { 2159 if (!from._internal_name().empty()) { 2160 _this->_internal_set_name(from._internal_name()); 2161 } else { 2162 if (_this->_impl_.name_.IsDefault()) { 2163 _this->_internal_set_name(""); 2164 } 2165 } 2166 } 2167 if ((cached_has_bits & 0x00000002u) != 0) { 2168 if (!from._internal_namespace_().empty()) { 2169 _this->_internal_set_namespace_(from._internal_namespace_()); 2170 } else { 2171 if (_this->_impl_.namespace__.IsDefault()) { 2172 _this->_internal_set_namespace_(""); 2173 } 2174 } 2175 } 2176 if ((cached_has_bits & 0x00000004u) != 0) { 2177 if (!from._internal_uid().empty()) { 2178 _this->_internal_set_uid(from._internal_uid()); 2179 } else { 2180 if (_this->_impl_.uid_.IsDefault()) { 2181 _this->_internal_set_uid(""); 2182 } 2183 } 2184 } 2185 if ((cached_has_bits & 0x00000008u) != 0) { 2186 if (!from._internal_resource_version().empty()) { 2187 _this->_internal_set_resource_version(from._internal_resource_version()); 2188 } else { 2189 if (_this->_impl_.resource_version_.IsDefault()) { 2190 _this->_internal_set_resource_version(""); 2191 } 2192 } 2193 } 2194 if ((cached_has_bits & 0x00000010u) != 0) { 2195 if (from._internal_generation() != 0) { 2196 _this->_impl_.generation_ = from._impl_.generation_; 2197 } 2198 } 2199 if ((cached_has_bits & 0x00000020u) != 0) { 2200 if (from._internal_creation_timestamp() != 0) { 2201 _this->_impl_.creation_timestamp_ = from._impl_.creation_timestamp_; 2202 } 2203 } 2204 if ((cached_has_bits & 0x00000040u) != 0) { 2205 if (from._internal_deletion_timestamp() != 0) { 2206 _this->_impl_.deletion_timestamp_ = from._impl_.deletion_timestamp_; 2207 } 2208 } 2209 } 2210 _this->_impl_._has_bits_[0] |= cached_has_bits; 2211 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); 2212 } 2213 2214 void GameServer_ObjectMeta::CopyFrom(const GameServer_ObjectMeta& from) { 2215 // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.ObjectMeta) 2216 if (&from == this) return; 2217 Clear(); 2218 MergeFrom(from); 2219 } 2220 2221 2222 void GameServer_ObjectMeta::InternalSwap(GameServer_ObjectMeta* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { 2223 using ::std::swap; 2224 auto* arena = GetArena(); 2225 ABSL_DCHECK_EQ(arena, other->GetArena()); 2226 _internal_metadata_.InternalSwap(&other->_internal_metadata_); 2227 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); 2228 _impl_.annotations_.InternalSwap(&other->_impl_.annotations_); 2229 _impl_.labels_.InternalSwap(&other->_impl_.labels_); 2230 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); 2231 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.namespace__, &other->_impl_.namespace__, arena); 2232 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.uid_, &other->_impl_.uid_, arena); 2233 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.resource_version_, &other->_impl_.resource_version_, arena); 2234 ::google::protobuf::internal::memswap< 2235 PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.deletion_timestamp_) 2236 + sizeof(GameServer_ObjectMeta::_impl_.deletion_timestamp_) 2237 - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.generation_)>( 2238 reinterpret_cast<char*>(&_impl_.generation_), 2239 reinterpret_cast<char*>(&other->_impl_.generation_)); 2240 } 2241 2242 ::google::protobuf::Metadata GameServer_ObjectMeta::GetMetadata() const { 2243 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); 2244 } 2245 // =================================================================== 2246 2247 class GameServer_Spec_Health::_Internal { 2248 public: 2249 using HasBits = 2250 decltype(::std::declval<GameServer_Spec_Health>()._impl_._has_bits_); 2251 static constexpr ::int32_t kHasBitsOffset = 2252 8 * PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_._has_bits_); 2253 }; 2254 2255 GameServer_Spec_Health::GameServer_Spec_Health(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 2256 #if defined(PROTOBUF_CUSTOM_VTABLE) 2257 : ::google::protobuf::Message(arena, GameServer_Spec_Health_class_data_.base()) { 2258 #else // PROTOBUF_CUSTOM_VTABLE 2259 : ::google::protobuf::Message(arena) { 2260 #endif // PROTOBUF_CUSTOM_VTABLE 2261 SharedCtor(arena); 2262 // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Spec.Health) 2263 } 2264 GameServer_Spec_Health::GameServer_Spec_Health( 2265 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Spec_Health& from) 2266 #if defined(PROTOBUF_CUSTOM_VTABLE) 2267 : ::google::protobuf::Message(arena, GameServer_Spec_Health_class_data_.base()), 2268 #else // PROTOBUF_CUSTOM_VTABLE 2269 : ::google::protobuf::Message(arena), 2270 #endif // PROTOBUF_CUSTOM_VTABLE 2271 _impl_(from._impl_) { 2272 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( 2273 from._internal_metadata_); 2274 } 2275 PROTOBUF_NDEBUG_INLINE GameServer_Spec_Health::Impl_::Impl_( 2276 ::google::protobuf::internal::InternalVisibility visibility, 2277 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 2278 : _cached_size_{0} {} 2279 2280 inline void GameServer_Spec_Health::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { 2281 new (&_impl_) Impl_(internal_visibility(), arena); 2282 ::memset(reinterpret_cast<char *>(&_impl_) + 2283 offsetof(Impl_, disabled_), 2284 0, 2285 offsetof(Impl_, initial_delay_seconds_) - 2286 offsetof(Impl_, disabled_) + 2287 sizeof(Impl_::initial_delay_seconds_)); 2288 } 2289 GameServer_Spec_Health::~GameServer_Spec_Health() { 2290 // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Spec.Health) 2291 SharedDtor(*this); 2292 } 2293 inline void GameServer_Spec_Health::SharedDtor(MessageLite& self) { 2294 GameServer_Spec_Health& this_ = static_cast<GameServer_Spec_Health&>(self); 2295 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); 2296 ABSL_DCHECK(this_.GetArena() == nullptr); 2297 this_._impl_.~Impl_(); 2298 } 2299 2300 inline void* PROTOBUF_NONNULL GameServer_Spec_Health::PlacementNew_( 2301 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, 2302 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { 2303 return ::new (mem) GameServer_Spec_Health(arena); 2304 } 2305 constexpr auto GameServer_Spec_Health::InternalNewImpl_() { 2306 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GameServer_Spec_Health), 2307 alignof(GameServer_Spec_Health)); 2308 } 2309 constexpr auto GameServer_Spec_Health::InternalGenerateClassData_() { 2310 return ::google::protobuf::internal::ClassDataFull{ 2311 ::google::protobuf::internal::ClassData{ 2312 &_GameServer_Spec_Health_default_instance_._instance, 2313 &_table_.header, 2314 nullptr, // OnDemandRegisterArenaDtor 2315 nullptr, // IsInitialized 2316 &GameServer_Spec_Health::MergeImpl, 2317 ::google::protobuf::Message::GetNewImpl<GameServer_Spec_Health>(), 2318 #if defined(PROTOBUF_CUSTOM_VTABLE) 2319 &GameServer_Spec_Health::SharedDtor, 2320 ::google::protobuf::Message::GetClearImpl<GameServer_Spec_Health>(), &GameServer_Spec_Health::ByteSizeLong, 2321 &GameServer_Spec_Health::_InternalSerialize, 2322 #endif // PROTOBUF_CUSTOM_VTABLE 2323 PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_._cached_size_), 2324 false, 2325 }, 2326 &GameServer_Spec_Health::kDescriptorMethods, 2327 &descriptor_table_sdk_2eproto, 2328 nullptr, // tracker 2329 }; 2330 } 2331 2332 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const 2333 ::google::protobuf::internal::ClassDataFull GameServer_Spec_Health_class_data_ = 2334 GameServer_Spec_Health::InternalGenerateClassData_(); 2335 2336 PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL 2337 GameServer_Spec_Health::GetClassData() const { 2338 ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Spec_Health_class_data_); 2339 ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Spec_Health_class_data_.tc_table); 2340 return GameServer_Spec_Health_class_data_.base(); 2341 } 2342 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 2343 const ::_pbi::TcParseTable<2, 4, 0, 0, 2> 2344 GameServer_Spec_Health::_table_ = { 2345 { 2346 PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_._has_bits_), 2347 0, // no _extensions_ 2348 4, 24, // max_field_number, fast_idx_mask 2349 offsetof(decltype(_table_), field_lookup_table), 2350 4294967280, // skipmap 2351 offsetof(decltype(_table_), field_entries), 2352 4, // num_field_entries 2353 0, // num_aux_entries 2354 offsetof(decltype(_table_), field_names), // no aux_entries 2355 GameServer_Spec_Health_class_data_.base(), 2356 nullptr, // post_loop_handler 2357 ::_pbi::TcParser::GenericFallback, // fallback 2358 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE 2359 ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Spec_Health>(), // to_prefetch 2360 #endif // PROTOBUF_PREFETCH_PARSE_TABLE 2361 }, {{ 2362 // int32 initial_delay_seconds = 4; 2363 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GameServer_Spec_Health, _impl_.initial_delay_seconds_), 3>(), 2364 {32, 3, 0, PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.initial_delay_seconds_)}}, 2365 // bool disabled = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { 2366 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(GameServer_Spec_Health, _impl_.disabled_), 0>(), 2367 {8, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.disabled_)}}, 2368 // int32 period_seconds = 2; 2369 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GameServer_Spec_Health, _impl_.period_seconds_), 1>(), 2370 {16, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.period_seconds_)}}, 2371 // int32 failure_threshold = 3; 2372 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GameServer_Spec_Health, _impl_.failure_threshold_), 2>(), 2373 {24, 2, 0, PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.failure_threshold_)}}, 2374 }}, {{ 2375 65535, 65535 2376 }}, {{ 2377 // bool disabled = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { 2378 {PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.disabled_), _Internal::kHasBitsOffset + 0, 0, 2379 (0 | ::_fl::kFcOptional | ::_fl::kBool)}, 2380 // int32 period_seconds = 2; 2381 {PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.period_seconds_), _Internal::kHasBitsOffset + 1, 0, 2382 (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, 2383 // int32 failure_threshold = 3; 2384 {PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.failure_threshold_), _Internal::kHasBitsOffset + 2, 0, 2385 (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, 2386 // int32 initial_delay_seconds = 4; 2387 {PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.initial_delay_seconds_), _Internal::kHasBitsOffset + 3, 0, 2388 (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, 2389 }}, 2390 // no aux_entries 2391 {{ 2392 }}, 2393 }; 2394 PROTOBUF_NOINLINE void GameServer_Spec_Health::Clear() { 2395 // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Spec.Health) 2396 ::google::protobuf::internal::TSanWrite(&_impl_); 2397 ::uint32_t cached_has_bits = 0; 2398 // Prevent compiler warnings about cached_has_bits being unused 2399 (void) cached_has_bits; 2400 2401 cached_has_bits = _impl_._has_bits_[0]; 2402 if ((cached_has_bits & 0x0000000fu) != 0) { 2403 ::memset(&_impl_.disabled_, 0, static_cast<::size_t>( 2404 reinterpret_cast<char*>(&_impl_.initial_delay_seconds_) - 2405 reinterpret_cast<char*>(&_impl_.disabled_)) + sizeof(_impl_.initial_delay_seconds_)); 2406 } 2407 _impl_._has_bits_.Clear(); 2408 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); 2409 } 2410 2411 #if defined(PROTOBUF_CUSTOM_VTABLE) 2412 ::uint8_t* PROTOBUF_NONNULL GameServer_Spec_Health::_InternalSerialize( 2413 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, 2414 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { 2415 const GameServer_Spec_Health& this_ = static_cast<const GameServer_Spec_Health&>(base); 2416 #else // PROTOBUF_CUSTOM_VTABLE 2417 ::uint8_t* PROTOBUF_NONNULL GameServer_Spec_Health::_InternalSerialize( 2418 ::uint8_t* PROTOBUF_NONNULL target, 2419 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { 2420 const GameServer_Spec_Health& this_ = *this; 2421 #endif // PROTOBUF_CUSTOM_VTABLE 2422 // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Spec.Health) 2423 ::uint32_t cached_has_bits = 0; 2424 (void)cached_has_bits; 2425 2426 // bool disabled = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { 2427 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { 2428 if (this_._internal_disabled() != 0) { 2429 target = stream->EnsureSpace(target); 2430 target = ::_pbi::WireFormatLite::WriteBoolToArray( 2431 1, this_._internal_disabled(), target); 2432 } 2433 } 2434 2435 // int32 period_seconds = 2; 2436 if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { 2437 if (this_._internal_period_seconds() != 0) { 2438 target = 2439 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( 2440 stream, this_._internal_period_seconds(), target); 2441 } 2442 } 2443 2444 // int32 failure_threshold = 3; 2445 if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { 2446 if (this_._internal_failure_threshold() != 0) { 2447 target = 2448 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( 2449 stream, this_._internal_failure_threshold(), target); 2450 } 2451 } 2452 2453 // int32 initial_delay_seconds = 4; 2454 if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { 2455 if (this_._internal_initial_delay_seconds() != 0) { 2456 target = 2457 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( 2458 stream, this_._internal_initial_delay_seconds(), target); 2459 } 2460 } 2461 2462 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { 2463 target = 2464 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( 2465 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); 2466 } 2467 // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.Spec.Health) 2468 return target; 2469 } 2470 2471 #if defined(PROTOBUF_CUSTOM_VTABLE) 2472 ::size_t GameServer_Spec_Health::ByteSizeLong(const MessageLite& base) { 2473 const GameServer_Spec_Health& this_ = static_cast<const GameServer_Spec_Health&>(base); 2474 #else // PROTOBUF_CUSTOM_VTABLE 2475 ::size_t GameServer_Spec_Health::ByteSizeLong() const { 2476 const GameServer_Spec_Health& this_ = *this; 2477 #endif // PROTOBUF_CUSTOM_VTABLE 2478 // @@protoc_insertion_point(message_byte_size_start:agones.dev.sdk.GameServer.Spec.Health) 2479 ::size_t total_size = 0; 2480 2481 ::uint32_t cached_has_bits = 0; 2482 // Prevent compiler warnings about cached_has_bits being unused 2483 (void)cached_has_bits; 2484 2485 ::_pbi::Prefetch5LinesFrom7Lines(&this_); 2486 cached_has_bits = this_._impl_._has_bits_[0]; 2487 if ((cached_has_bits & 0x0000000fu) != 0) { 2488 // bool disabled = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { 2489 if ((cached_has_bits & 0x00000001u) != 0) { 2490 if (this_._internal_disabled() != 0) { 2491 total_size += 2; 2492 } 2493 } 2494 // int32 period_seconds = 2; 2495 if ((cached_has_bits & 0x00000002u) != 0) { 2496 if (this_._internal_period_seconds() != 0) { 2497 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( 2498 this_._internal_period_seconds()); 2499 } 2500 } 2501 // int32 failure_threshold = 3; 2502 if ((cached_has_bits & 0x00000004u) != 0) { 2503 if (this_._internal_failure_threshold() != 0) { 2504 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( 2505 this_._internal_failure_threshold()); 2506 } 2507 } 2508 // int32 initial_delay_seconds = 4; 2509 if ((cached_has_bits & 0x00000008u) != 0) { 2510 if (this_._internal_initial_delay_seconds() != 0) { 2511 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( 2512 this_._internal_initial_delay_seconds()); 2513 } 2514 } 2515 } 2516 return this_.MaybeComputeUnknownFieldsSize(total_size, 2517 &this_._impl_._cached_size_); 2518 } 2519 2520 void GameServer_Spec_Health::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { 2521 auto* const _this = static_cast<GameServer_Spec_Health*>(&to_msg); 2522 auto& from = static_cast<const GameServer_Spec_Health&>(from_msg); 2523 // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Spec.Health) 2524 ABSL_DCHECK_NE(&from, _this); 2525 ::uint32_t cached_has_bits = 0; 2526 (void) cached_has_bits; 2527 2528 cached_has_bits = from._impl_._has_bits_[0]; 2529 if ((cached_has_bits & 0x0000000fu) != 0) { 2530 if ((cached_has_bits & 0x00000001u) != 0) { 2531 if (from._internal_disabled() != 0) { 2532 _this->_impl_.disabled_ = from._impl_.disabled_; 2533 } 2534 } 2535 if ((cached_has_bits & 0x00000002u) != 0) { 2536 if (from._internal_period_seconds() != 0) { 2537 _this->_impl_.period_seconds_ = from._impl_.period_seconds_; 2538 } 2539 } 2540 if ((cached_has_bits & 0x00000004u) != 0) { 2541 if (from._internal_failure_threshold() != 0) { 2542 _this->_impl_.failure_threshold_ = from._impl_.failure_threshold_; 2543 } 2544 } 2545 if ((cached_has_bits & 0x00000008u) != 0) { 2546 if (from._internal_initial_delay_seconds() != 0) { 2547 _this->_impl_.initial_delay_seconds_ = from._impl_.initial_delay_seconds_; 2548 } 2549 } 2550 } 2551 _this->_impl_._has_bits_[0] |= cached_has_bits; 2552 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); 2553 } 2554 2555 void GameServer_Spec_Health::CopyFrom(const GameServer_Spec_Health& from) { 2556 // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Spec.Health) 2557 if (&from == this) return; 2558 Clear(); 2559 MergeFrom(from); 2560 } 2561 2562 2563 void GameServer_Spec_Health::InternalSwap(GameServer_Spec_Health* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { 2564 using ::std::swap; 2565 _internal_metadata_.InternalSwap(&other->_internal_metadata_); 2566 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); 2567 ::google::protobuf::internal::memswap< 2568 PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.initial_delay_seconds_) 2569 + sizeof(GameServer_Spec_Health::_impl_.initial_delay_seconds_) 2570 - PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.disabled_)>( 2571 reinterpret_cast<char*>(&_impl_.disabled_), 2572 reinterpret_cast<char*>(&other->_impl_.disabled_)); 2573 } 2574 2575 ::google::protobuf::Metadata GameServer_Spec_Health::GetMetadata() const { 2576 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); 2577 } 2578 // =================================================================== 2579 2580 class GameServer_Spec::_Internal { 2581 public: 2582 using HasBits = 2583 decltype(::std::declval<GameServer_Spec>()._impl_._has_bits_); 2584 static constexpr ::int32_t kHasBitsOffset = 2585 8 * PROTOBUF_FIELD_OFFSET(GameServer_Spec, _impl_._has_bits_); 2586 }; 2587 2588 GameServer_Spec::GameServer_Spec(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 2589 #if defined(PROTOBUF_CUSTOM_VTABLE) 2590 : ::google::protobuf::Message(arena, GameServer_Spec_class_data_.base()) { 2591 #else // PROTOBUF_CUSTOM_VTABLE 2592 : ::google::protobuf::Message(arena) { 2593 #endif // PROTOBUF_CUSTOM_VTABLE 2594 SharedCtor(arena); 2595 // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Spec) 2596 } 2597 PROTOBUF_NDEBUG_INLINE GameServer_Spec::Impl_::Impl_( 2598 ::google::protobuf::internal::InternalVisibility visibility, 2599 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, 2600 const ::agones::dev::sdk::GameServer_Spec& from_msg) 2601 : _has_bits_{from._has_bits_}, 2602 _cached_size_{0} {} 2603 2604 GameServer_Spec::GameServer_Spec( 2605 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, 2606 const GameServer_Spec& from) 2607 #if defined(PROTOBUF_CUSTOM_VTABLE) 2608 : ::google::protobuf::Message(arena, GameServer_Spec_class_data_.base()) { 2609 #else // PROTOBUF_CUSTOM_VTABLE 2610 : ::google::protobuf::Message(arena) { 2611 #endif // PROTOBUF_CUSTOM_VTABLE 2612 GameServer_Spec* const _this = this; 2613 (void)_this; 2614 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( 2615 from._internal_metadata_); 2616 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); 2617 ::uint32_t cached_has_bits = _impl_._has_bits_[0]; 2618 _impl_.health_ = ((cached_has_bits & 0x00000001u) != 0) 2619 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.health_) 2620 : nullptr; 2621 2622 // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Spec) 2623 } 2624 PROTOBUF_NDEBUG_INLINE GameServer_Spec::Impl_::Impl_( 2625 ::google::protobuf::internal::InternalVisibility visibility, 2626 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 2627 : _cached_size_{0} {} 2628 2629 inline void GameServer_Spec::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { 2630 new (&_impl_) Impl_(internal_visibility(), arena); 2631 _impl_.health_ = {}; 2632 } 2633 GameServer_Spec::~GameServer_Spec() { 2634 // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Spec) 2635 SharedDtor(*this); 2636 } 2637 inline void GameServer_Spec::SharedDtor(MessageLite& self) { 2638 GameServer_Spec& this_ = static_cast<GameServer_Spec&>(self); 2639 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); 2640 ABSL_DCHECK(this_.GetArena() == nullptr); 2641 delete this_._impl_.health_; 2642 this_._impl_.~Impl_(); 2643 } 2644 2645 inline void* PROTOBUF_NONNULL GameServer_Spec::PlacementNew_( 2646 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, 2647 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { 2648 return ::new (mem) GameServer_Spec(arena); 2649 } 2650 constexpr auto GameServer_Spec::InternalNewImpl_() { 2651 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GameServer_Spec), 2652 alignof(GameServer_Spec)); 2653 } 2654 constexpr auto GameServer_Spec::InternalGenerateClassData_() { 2655 return ::google::protobuf::internal::ClassDataFull{ 2656 ::google::protobuf::internal::ClassData{ 2657 &_GameServer_Spec_default_instance_._instance, 2658 &_table_.header, 2659 nullptr, // OnDemandRegisterArenaDtor 2660 nullptr, // IsInitialized 2661 &GameServer_Spec::MergeImpl, 2662 ::google::protobuf::Message::GetNewImpl<GameServer_Spec>(), 2663 #if defined(PROTOBUF_CUSTOM_VTABLE) 2664 &GameServer_Spec::SharedDtor, 2665 ::google::protobuf::Message::GetClearImpl<GameServer_Spec>(), &GameServer_Spec::ByteSizeLong, 2666 &GameServer_Spec::_InternalSerialize, 2667 #endif // PROTOBUF_CUSTOM_VTABLE 2668 PROTOBUF_FIELD_OFFSET(GameServer_Spec, _impl_._cached_size_), 2669 false, 2670 }, 2671 &GameServer_Spec::kDescriptorMethods, 2672 &descriptor_table_sdk_2eproto, 2673 nullptr, // tracker 2674 }; 2675 } 2676 2677 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const 2678 ::google::protobuf::internal::ClassDataFull GameServer_Spec_class_data_ = 2679 GameServer_Spec::InternalGenerateClassData_(); 2680 2681 PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL 2682 GameServer_Spec::GetClassData() const { 2683 ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Spec_class_data_); 2684 ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Spec_class_data_.tc_table); 2685 return GameServer_Spec_class_data_.base(); 2686 } 2687 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 2688 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> 2689 GameServer_Spec::_table_ = { 2690 { 2691 PROTOBUF_FIELD_OFFSET(GameServer_Spec, _impl_._has_bits_), 2692 0, // no _extensions_ 2693 1, 0, // max_field_number, fast_idx_mask 2694 offsetof(decltype(_table_), field_lookup_table), 2695 4294967294, // skipmap 2696 offsetof(decltype(_table_), field_entries), 2697 1, // num_field_entries 2698 1, // num_aux_entries 2699 offsetof(decltype(_table_), aux_entries), 2700 GameServer_Spec_class_data_.base(), 2701 nullptr, // post_loop_handler 2702 ::_pbi::TcParser::GenericFallback, // fallback 2703 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE 2704 ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Spec>(), // to_prefetch 2705 #endif // PROTOBUF_PREFETCH_PARSE_TABLE 2706 }, {{ 2707 // .agones.dev.sdk.GameServer.Spec.Health health = 1; 2708 {::_pbi::TcParser::FastMtS1, 2709 {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Spec, _impl_.health_)}}, 2710 }}, {{ 2711 65535, 65535 2712 }}, {{ 2713 // .agones.dev.sdk.GameServer.Spec.Health health = 1; 2714 {PROTOBUF_FIELD_OFFSET(GameServer_Spec, _impl_.health_), _Internal::kHasBitsOffset + 0, 0, 2715 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, 2716 }}, 2717 {{ 2718 {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Spec_Health>()}, 2719 }}, 2720 {{ 2721 }}, 2722 }; 2723 PROTOBUF_NOINLINE void GameServer_Spec::Clear() { 2724 // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Spec) 2725 ::google::protobuf::internal::TSanWrite(&_impl_); 2726 ::uint32_t cached_has_bits = 0; 2727 // Prevent compiler warnings about cached_has_bits being unused 2728 (void) cached_has_bits; 2729 2730 cached_has_bits = _impl_._has_bits_[0]; 2731 if ((cached_has_bits & 0x00000001u) != 0) { 2732 ABSL_DCHECK(_impl_.health_ != nullptr); 2733 _impl_.health_->Clear(); 2734 } 2735 _impl_._has_bits_.Clear(); 2736 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); 2737 } 2738 2739 #if defined(PROTOBUF_CUSTOM_VTABLE) 2740 ::uint8_t* PROTOBUF_NONNULL GameServer_Spec::_InternalSerialize( 2741 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, 2742 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { 2743 const GameServer_Spec& this_ = static_cast<const GameServer_Spec&>(base); 2744 #else // PROTOBUF_CUSTOM_VTABLE 2745 ::uint8_t* PROTOBUF_NONNULL GameServer_Spec::_InternalSerialize( 2746 ::uint8_t* PROTOBUF_NONNULL target, 2747 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { 2748 const GameServer_Spec& this_ = *this; 2749 #endif // PROTOBUF_CUSTOM_VTABLE 2750 // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Spec) 2751 ::uint32_t cached_has_bits = 0; 2752 (void)cached_has_bits; 2753 2754 cached_has_bits = this_._impl_._has_bits_[0]; 2755 // .agones.dev.sdk.GameServer.Spec.Health health = 1; 2756 if ((cached_has_bits & 0x00000001u) != 0) { 2757 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 2758 1, *this_._impl_.health_, this_._impl_.health_->GetCachedSize(), target, 2759 stream); 2760 } 2761 2762 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { 2763 target = 2764 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( 2765 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); 2766 } 2767 // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.Spec) 2768 return target; 2769 } 2770 2771 #if defined(PROTOBUF_CUSTOM_VTABLE) 2772 ::size_t GameServer_Spec::ByteSizeLong(const MessageLite& base) { 2773 const GameServer_Spec& this_ = static_cast<const GameServer_Spec&>(base); 2774 #else // PROTOBUF_CUSTOM_VTABLE 2775 ::size_t GameServer_Spec::ByteSizeLong() const { 2776 const GameServer_Spec& this_ = *this; 2777 #endif // PROTOBUF_CUSTOM_VTABLE 2778 // @@protoc_insertion_point(message_byte_size_start:agones.dev.sdk.GameServer.Spec) 2779 ::size_t total_size = 0; 2780 2781 ::uint32_t cached_has_bits = 0; 2782 // Prevent compiler warnings about cached_has_bits being unused 2783 (void)cached_has_bits; 2784 2785 { 2786 // .agones.dev.sdk.GameServer.Spec.Health health = 1; 2787 cached_has_bits = this_._impl_._has_bits_[0]; 2788 if ((cached_has_bits & 0x00000001u) != 0) { 2789 total_size += 1 + 2790 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.health_); 2791 } 2792 } 2793 return this_.MaybeComputeUnknownFieldsSize(total_size, 2794 &this_._impl_._cached_size_); 2795 } 2796 2797 void GameServer_Spec::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { 2798 auto* const _this = static_cast<GameServer_Spec*>(&to_msg); 2799 auto& from = static_cast<const GameServer_Spec&>(from_msg); 2800 ::google::protobuf::Arena* arena = _this->GetArena(); 2801 // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Spec) 2802 ABSL_DCHECK_NE(&from, _this); 2803 ::uint32_t cached_has_bits = 0; 2804 (void) cached_has_bits; 2805 2806 cached_has_bits = from._impl_._has_bits_[0]; 2807 if ((cached_has_bits & 0x00000001u) != 0) { 2808 ABSL_DCHECK(from._impl_.health_ != nullptr); 2809 if (_this->_impl_.health_ == nullptr) { 2810 _this->_impl_.health_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.health_); 2811 } else { 2812 _this->_impl_.health_->MergeFrom(*from._impl_.health_); 2813 } 2814 } 2815 _this->_impl_._has_bits_[0] |= cached_has_bits; 2816 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); 2817 } 2818 2819 void GameServer_Spec::CopyFrom(const GameServer_Spec& from) { 2820 // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Spec) 2821 if (&from == this) return; 2822 Clear(); 2823 MergeFrom(from); 2824 } 2825 2826 2827 void GameServer_Spec::InternalSwap(GameServer_Spec* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { 2828 using ::std::swap; 2829 _internal_metadata_.InternalSwap(&other->_internal_metadata_); 2830 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); 2831 swap(_impl_.health_, other->_impl_.health_); 2832 } 2833 2834 ::google::protobuf::Metadata GameServer_Spec::GetMetadata() const { 2835 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); 2836 } 2837 // =================================================================== 2838 2839 class GameServer_Status_Address::_Internal { 2840 public: 2841 using HasBits = 2842 decltype(::std::declval<GameServer_Status_Address>()._impl_._has_bits_); 2843 static constexpr ::int32_t kHasBitsOffset = 2844 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_._has_bits_); 2845 }; 2846 2847 GameServer_Status_Address::GameServer_Status_Address(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 2848 #if defined(PROTOBUF_CUSTOM_VTABLE) 2849 : ::google::protobuf::Message(arena, GameServer_Status_Address_class_data_.base()) { 2850 #else // PROTOBUF_CUSTOM_VTABLE 2851 : ::google::protobuf::Message(arena) { 2852 #endif // PROTOBUF_CUSTOM_VTABLE 2853 SharedCtor(arena); 2854 // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status.Address) 2855 } 2856 PROTOBUF_NDEBUG_INLINE GameServer_Status_Address::Impl_::Impl_( 2857 ::google::protobuf::internal::InternalVisibility visibility, 2858 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, 2859 const ::agones::dev::sdk::GameServer_Status_Address& from_msg) 2860 : _has_bits_{from._has_bits_}, 2861 _cached_size_{0}, 2862 type_(arena, from.type_), 2863 address_(arena, from.address_) {} 2864 2865 GameServer_Status_Address::GameServer_Status_Address( 2866 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, 2867 const GameServer_Status_Address& from) 2868 #if defined(PROTOBUF_CUSTOM_VTABLE) 2869 : ::google::protobuf::Message(arena, GameServer_Status_Address_class_data_.base()) { 2870 #else // PROTOBUF_CUSTOM_VTABLE 2871 : ::google::protobuf::Message(arena) { 2872 #endif // PROTOBUF_CUSTOM_VTABLE 2873 GameServer_Status_Address* const _this = this; 2874 (void)_this; 2875 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( 2876 from._internal_metadata_); 2877 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); 2878 2879 // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Status.Address) 2880 } 2881 PROTOBUF_NDEBUG_INLINE GameServer_Status_Address::Impl_::Impl_( 2882 ::google::protobuf::internal::InternalVisibility visibility, 2883 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 2884 : _cached_size_{0}, 2885 type_(arena), 2886 address_(arena) {} 2887 2888 inline void GameServer_Status_Address::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { 2889 new (&_impl_) Impl_(internal_visibility(), arena); 2890 } 2891 GameServer_Status_Address::~GameServer_Status_Address() { 2892 // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Status.Address) 2893 SharedDtor(*this); 2894 } 2895 inline void GameServer_Status_Address::SharedDtor(MessageLite& self) { 2896 GameServer_Status_Address& this_ = static_cast<GameServer_Status_Address&>(self); 2897 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); 2898 ABSL_DCHECK(this_.GetArena() == nullptr); 2899 this_._impl_.type_.Destroy(); 2900 this_._impl_.address_.Destroy(); 2901 this_._impl_.~Impl_(); 2902 } 2903 2904 inline void* PROTOBUF_NONNULL GameServer_Status_Address::PlacementNew_( 2905 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, 2906 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { 2907 return ::new (mem) GameServer_Status_Address(arena); 2908 } 2909 constexpr auto GameServer_Status_Address::InternalNewImpl_() { 2910 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_Address), 2911 alignof(GameServer_Status_Address)); 2912 } 2913 constexpr auto GameServer_Status_Address::InternalGenerateClassData_() { 2914 return ::google::protobuf::internal::ClassDataFull{ 2915 ::google::protobuf::internal::ClassData{ 2916 &_GameServer_Status_Address_default_instance_._instance, 2917 &_table_.header, 2918 nullptr, // OnDemandRegisterArenaDtor 2919 nullptr, // IsInitialized 2920 &GameServer_Status_Address::MergeImpl, 2921 ::google::protobuf::Message::GetNewImpl<GameServer_Status_Address>(), 2922 #if defined(PROTOBUF_CUSTOM_VTABLE) 2923 &GameServer_Status_Address::SharedDtor, 2924 ::google::protobuf::Message::GetClearImpl<GameServer_Status_Address>(), &GameServer_Status_Address::ByteSizeLong, 2925 &GameServer_Status_Address::_InternalSerialize, 2926 #endif // PROTOBUF_CUSTOM_VTABLE 2927 PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_._cached_size_), 2928 false, 2929 }, 2930 &GameServer_Status_Address::kDescriptorMethods, 2931 &descriptor_table_sdk_2eproto, 2932 nullptr, // tracker 2933 }; 2934 } 2935 2936 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const 2937 ::google::protobuf::internal::ClassDataFull GameServer_Status_Address_class_data_ = 2938 GameServer_Status_Address::InternalGenerateClassData_(); 2939 2940 PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL 2941 GameServer_Status_Address::GetClassData() const { 2942 ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_Address_class_data_); 2943 ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_Address_class_data_.tc_table); 2944 return GameServer_Status_Address_class_data_.base(); 2945 } 2946 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 2947 const ::_pbi::TcParseTable<1, 2, 0, 60, 2> 2948 GameServer_Status_Address::_table_ = { 2949 { 2950 PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_._has_bits_), 2951 0, // no _extensions_ 2952 2, 8, // max_field_number, fast_idx_mask 2953 offsetof(decltype(_table_), field_lookup_table), 2954 4294967292, // skipmap 2955 offsetof(decltype(_table_), field_entries), 2956 2, // num_field_entries 2957 0, // num_aux_entries 2958 offsetof(decltype(_table_), field_names), // no aux_entries 2959 GameServer_Status_Address_class_data_.base(), 2960 nullptr, // post_loop_handler 2961 ::_pbi::TcParser::GenericFallback, // fallback 2962 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE 2963 ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_Address>(), // to_prefetch 2964 #endif // PROTOBUF_PREFETCH_PARSE_TABLE 2965 }, {{ 2966 // string address = 2; 2967 {::_pbi::TcParser::FastUS1, 2968 {18, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.address_)}}, 2969 // string type = 1; 2970 {::_pbi::TcParser::FastUS1, 2971 {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.type_)}}, 2972 }}, {{ 2973 65535, 65535 2974 }}, {{ 2975 // string type = 1; 2976 {PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.type_), _Internal::kHasBitsOffset + 0, 0, 2977 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, 2978 // string address = 2; 2979 {PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.address_), _Internal::kHasBitsOffset + 1, 0, 2980 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, 2981 }}, 2982 // no aux_entries 2983 {{ 2984 "\50\4\7\0\0\0\0\0" 2985 "agones.dev.sdk.GameServer.Status.Address" 2986 "type" 2987 "address" 2988 }}, 2989 }; 2990 PROTOBUF_NOINLINE void GameServer_Status_Address::Clear() { 2991 // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status.Address) 2992 ::google::protobuf::internal::TSanWrite(&_impl_); 2993 ::uint32_t cached_has_bits = 0; 2994 // Prevent compiler warnings about cached_has_bits being unused 2995 (void) cached_has_bits; 2996 2997 cached_has_bits = _impl_._has_bits_[0]; 2998 if ((cached_has_bits & 0x00000003u) != 0) { 2999 if ((cached_has_bits & 0x00000001u) != 0) { 3000 _impl_.type_.ClearNonDefaultToEmpty(); 3001 } 3002 if ((cached_has_bits & 0x00000002u) != 0) { 3003 _impl_.address_.ClearNonDefaultToEmpty(); 3004 } 3005 } 3006 _impl_._has_bits_.Clear(); 3007 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); 3008 } 3009 3010 #if defined(PROTOBUF_CUSTOM_VTABLE) 3011 ::uint8_t* PROTOBUF_NONNULL GameServer_Status_Address::_InternalSerialize( 3012 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, 3013 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { 3014 const GameServer_Status_Address& this_ = static_cast<const GameServer_Status_Address&>(base); 3015 #else // PROTOBUF_CUSTOM_VTABLE 3016 ::uint8_t* PROTOBUF_NONNULL GameServer_Status_Address::_InternalSerialize( 3017 ::uint8_t* PROTOBUF_NONNULL target, 3018 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { 3019 const GameServer_Status_Address& this_ = *this; 3020 #endif // PROTOBUF_CUSTOM_VTABLE 3021 // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status.Address) 3022 ::uint32_t cached_has_bits = 0; 3023 (void)cached_has_bits; 3024 3025 // string type = 1; 3026 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { 3027 if (!this_._internal_type().empty()) { 3028 const ::std::string& _s = this_._internal_type(); 3029 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3030 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.Address.type"); 3031 target = stream->WriteStringMaybeAliased(1, _s, target); 3032 } 3033 } 3034 3035 // string address = 2; 3036 if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { 3037 if (!this_._internal_address().empty()) { 3038 const ::std::string& _s = this_._internal_address(); 3039 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3040 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.Address.address"); 3041 target = stream->WriteStringMaybeAliased(2, _s, target); 3042 } 3043 } 3044 3045 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { 3046 target = 3047 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( 3048 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); 3049 } 3050 // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.Status.Address) 3051 return target; 3052 } 3053 3054 #if defined(PROTOBUF_CUSTOM_VTABLE) 3055 ::size_t GameServer_Status_Address::ByteSizeLong(const MessageLite& base) { 3056 const GameServer_Status_Address& this_ = static_cast<const GameServer_Status_Address&>(base); 3057 #else // PROTOBUF_CUSTOM_VTABLE 3058 ::size_t GameServer_Status_Address::ByteSizeLong() const { 3059 const GameServer_Status_Address& this_ = *this; 3060 #endif // PROTOBUF_CUSTOM_VTABLE 3061 // @@protoc_insertion_point(message_byte_size_start:agones.dev.sdk.GameServer.Status.Address) 3062 ::size_t total_size = 0; 3063 3064 ::uint32_t cached_has_bits = 0; 3065 // Prevent compiler warnings about cached_has_bits being unused 3066 (void)cached_has_bits; 3067 3068 ::_pbi::Prefetch5LinesFrom7Lines(&this_); 3069 cached_has_bits = this_._impl_._has_bits_[0]; 3070 if ((cached_has_bits & 0x00000003u) != 0) { 3071 // string type = 1; 3072 if ((cached_has_bits & 0x00000001u) != 0) { 3073 if (!this_._internal_type().empty()) { 3074 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( 3075 this_._internal_type()); 3076 } 3077 } 3078 // string address = 2; 3079 if ((cached_has_bits & 0x00000002u) != 0) { 3080 if (!this_._internal_address().empty()) { 3081 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( 3082 this_._internal_address()); 3083 } 3084 } 3085 } 3086 return this_.MaybeComputeUnknownFieldsSize(total_size, 3087 &this_._impl_._cached_size_); 3088 } 3089 3090 void GameServer_Status_Address::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { 3091 auto* const _this = static_cast<GameServer_Status_Address*>(&to_msg); 3092 auto& from = static_cast<const GameServer_Status_Address&>(from_msg); 3093 // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status.Address) 3094 ABSL_DCHECK_NE(&from, _this); 3095 ::uint32_t cached_has_bits = 0; 3096 (void) cached_has_bits; 3097 3098 cached_has_bits = from._impl_._has_bits_[0]; 3099 if ((cached_has_bits & 0x00000003u) != 0) { 3100 if ((cached_has_bits & 0x00000001u) != 0) { 3101 if (!from._internal_type().empty()) { 3102 _this->_internal_set_type(from._internal_type()); 3103 } else { 3104 if (_this->_impl_.type_.IsDefault()) { 3105 _this->_internal_set_type(""); 3106 } 3107 } 3108 } 3109 if ((cached_has_bits & 0x00000002u) != 0) { 3110 if (!from._internal_address().empty()) { 3111 _this->_internal_set_address(from._internal_address()); 3112 } else { 3113 if (_this->_impl_.address_.IsDefault()) { 3114 _this->_internal_set_address(""); 3115 } 3116 } 3117 } 3118 } 3119 _this->_impl_._has_bits_[0] |= cached_has_bits; 3120 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); 3121 } 3122 3123 void GameServer_Status_Address::CopyFrom(const GameServer_Status_Address& from) { 3124 // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status.Address) 3125 if (&from == this) return; 3126 Clear(); 3127 MergeFrom(from); 3128 } 3129 3130 3131 void GameServer_Status_Address::InternalSwap(GameServer_Status_Address* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { 3132 using ::std::swap; 3133 auto* arena = GetArena(); 3134 ABSL_DCHECK_EQ(arena, other->GetArena()); 3135 _internal_metadata_.InternalSwap(&other->_internal_metadata_); 3136 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); 3137 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); 3138 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.address_, &other->_impl_.address_, arena); 3139 } 3140 3141 ::google::protobuf::Metadata GameServer_Status_Address::GetMetadata() const { 3142 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); 3143 } 3144 // =================================================================== 3145 3146 class GameServer_Status_Port::_Internal { 3147 public: 3148 using HasBits = 3149 decltype(::std::declval<GameServer_Status_Port>()._impl_._has_bits_); 3150 static constexpr ::int32_t kHasBitsOffset = 3151 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_._has_bits_); 3152 }; 3153 3154 GameServer_Status_Port::GameServer_Status_Port(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 3155 #if defined(PROTOBUF_CUSTOM_VTABLE) 3156 : ::google::protobuf::Message(arena, GameServer_Status_Port_class_data_.base()) { 3157 #else // PROTOBUF_CUSTOM_VTABLE 3158 : ::google::protobuf::Message(arena) { 3159 #endif // PROTOBUF_CUSTOM_VTABLE 3160 SharedCtor(arena); 3161 // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status.Port) 3162 } 3163 PROTOBUF_NDEBUG_INLINE GameServer_Status_Port::Impl_::Impl_( 3164 ::google::protobuf::internal::InternalVisibility visibility, 3165 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, 3166 const ::agones::dev::sdk::GameServer_Status_Port& from_msg) 3167 : _has_bits_{from._has_bits_}, 3168 _cached_size_{0}, 3169 name_(arena, from.name_) {} 3170 3171 GameServer_Status_Port::GameServer_Status_Port( 3172 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, 3173 const GameServer_Status_Port& from) 3174 #if defined(PROTOBUF_CUSTOM_VTABLE) 3175 : ::google::protobuf::Message(arena, GameServer_Status_Port_class_data_.base()) { 3176 #else // PROTOBUF_CUSTOM_VTABLE 3177 : ::google::protobuf::Message(arena) { 3178 #endif // PROTOBUF_CUSTOM_VTABLE 3179 GameServer_Status_Port* const _this = this; 3180 (void)_this; 3181 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( 3182 from._internal_metadata_); 3183 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); 3184 _impl_.port_ = from._impl_.port_; 3185 3186 // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Status.Port) 3187 } 3188 PROTOBUF_NDEBUG_INLINE GameServer_Status_Port::Impl_::Impl_( 3189 ::google::protobuf::internal::InternalVisibility visibility, 3190 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 3191 : _cached_size_{0}, 3192 name_(arena) {} 3193 3194 inline void GameServer_Status_Port::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { 3195 new (&_impl_) Impl_(internal_visibility(), arena); 3196 _impl_.port_ = {}; 3197 } 3198 GameServer_Status_Port::~GameServer_Status_Port() { 3199 // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Status.Port) 3200 SharedDtor(*this); 3201 } 3202 inline void GameServer_Status_Port::SharedDtor(MessageLite& self) { 3203 GameServer_Status_Port& this_ = static_cast<GameServer_Status_Port&>(self); 3204 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); 3205 ABSL_DCHECK(this_.GetArena() == nullptr); 3206 this_._impl_.name_.Destroy(); 3207 this_._impl_.~Impl_(); 3208 } 3209 3210 inline void* PROTOBUF_NONNULL GameServer_Status_Port::PlacementNew_( 3211 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, 3212 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { 3213 return ::new (mem) GameServer_Status_Port(arena); 3214 } 3215 constexpr auto GameServer_Status_Port::InternalNewImpl_() { 3216 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_Port), 3217 alignof(GameServer_Status_Port)); 3218 } 3219 constexpr auto GameServer_Status_Port::InternalGenerateClassData_() { 3220 return ::google::protobuf::internal::ClassDataFull{ 3221 ::google::protobuf::internal::ClassData{ 3222 &_GameServer_Status_Port_default_instance_._instance, 3223 &_table_.header, 3224 nullptr, // OnDemandRegisterArenaDtor 3225 nullptr, // IsInitialized 3226 &GameServer_Status_Port::MergeImpl, 3227 ::google::protobuf::Message::GetNewImpl<GameServer_Status_Port>(), 3228 #if defined(PROTOBUF_CUSTOM_VTABLE) 3229 &GameServer_Status_Port::SharedDtor, 3230 ::google::protobuf::Message::GetClearImpl<GameServer_Status_Port>(), &GameServer_Status_Port::ByteSizeLong, 3231 &GameServer_Status_Port::_InternalSerialize, 3232 #endif // PROTOBUF_CUSTOM_VTABLE 3233 PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_._cached_size_), 3234 false, 3235 }, 3236 &GameServer_Status_Port::kDescriptorMethods, 3237 &descriptor_table_sdk_2eproto, 3238 nullptr, // tracker 3239 }; 3240 } 3241 3242 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const 3243 ::google::protobuf::internal::ClassDataFull GameServer_Status_Port_class_data_ = 3244 GameServer_Status_Port::InternalGenerateClassData_(); 3245 3246 PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL 3247 GameServer_Status_Port::GetClassData() const { 3248 ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_Port_class_data_); 3249 ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_Port_class_data_.tc_table); 3250 return GameServer_Status_Port_class_data_.base(); 3251 } 3252 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 3253 const ::_pbi::TcParseTable<1, 2, 0, 50, 2> 3254 GameServer_Status_Port::_table_ = { 3255 { 3256 PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_._has_bits_), 3257 0, // no _extensions_ 3258 2, 8, // max_field_number, fast_idx_mask 3259 offsetof(decltype(_table_), field_lookup_table), 3260 4294967292, // skipmap 3261 offsetof(decltype(_table_), field_entries), 3262 2, // num_field_entries 3263 0, // num_aux_entries 3264 offsetof(decltype(_table_), field_names), // no aux_entries 3265 GameServer_Status_Port_class_data_.base(), 3266 nullptr, // post_loop_handler 3267 ::_pbi::TcParser::GenericFallback, // fallback 3268 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE 3269 ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_Port>(), // to_prefetch 3270 #endif // PROTOBUF_PREFETCH_PARSE_TABLE 3271 }, {{ 3272 // int32 port = 2; 3273 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GameServer_Status_Port, _impl_.port_), 1>(), 3274 {16, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.port_)}}, 3275 // string name = 1; 3276 {::_pbi::TcParser::FastUS1, 3277 {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.name_)}}, 3278 }}, {{ 3279 65535, 65535 3280 }}, {{ 3281 // string name = 1; 3282 {PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, 3283 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, 3284 // int32 port = 2; 3285 {PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.port_), _Internal::kHasBitsOffset + 1, 0, 3286 (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, 3287 }}, 3288 // no aux_entries 3289 {{ 3290 "\45\4\0\0\0\0\0\0" 3291 "agones.dev.sdk.GameServer.Status.Port" 3292 "name" 3293 }}, 3294 }; 3295 PROTOBUF_NOINLINE void GameServer_Status_Port::Clear() { 3296 // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status.Port) 3297 ::google::protobuf::internal::TSanWrite(&_impl_); 3298 ::uint32_t cached_has_bits = 0; 3299 // Prevent compiler warnings about cached_has_bits being unused 3300 (void) cached_has_bits; 3301 3302 cached_has_bits = _impl_._has_bits_[0]; 3303 if ((cached_has_bits & 0x00000001u) != 0) { 3304 _impl_.name_.ClearNonDefaultToEmpty(); 3305 } 3306 _impl_.port_ = 0; 3307 _impl_._has_bits_.Clear(); 3308 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); 3309 } 3310 3311 #if defined(PROTOBUF_CUSTOM_VTABLE) 3312 ::uint8_t* PROTOBUF_NONNULL GameServer_Status_Port::_InternalSerialize( 3313 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, 3314 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { 3315 const GameServer_Status_Port& this_ = static_cast<const GameServer_Status_Port&>(base); 3316 #else // PROTOBUF_CUSTOM_VTABLE 3317 ::uint8_t* PROTOBUF_NONNULL GameServer_Status_Port::_InternalSerialize( 3318 ::uint8_t* PROTOBUF_NONNULL target, 3319 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { 3320 const GameServer_Status_Port& this_ = *this; 3321 #endif // PROTOBUF_CUSTOM_VTABLE 3322 // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status.Port) 3323 ::uint32_t cached_has_bits = 0; 3324 (void)cached_has_bits; 3325 3326 // string name = 1; 3327 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { 3328 if (!this_._internal_name().empty()) { 3329 const ::std::string& _s = this_._internal_name(); 3330 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3331 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.Port.name"); 3332 target = stream->WriteStringMaybeAliased(1, _s, target); 3333 } 3334 } 3335 3336 // int32 port = 2; 3337 if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { 3338 if (this_._internal_port() != 0) { 3339 target = 3340 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( 3341 stream, this_._internal_port(), target); 3342 } 3343 } 3344 3345 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { 3346 target = 3347 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( 3348 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); 3349 } 3350 // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.Status.Port) 3351 return target; 3352 } 3353 3354 #if defined(PROTOBUF_CUSTOM_VTABLE) 3355 ::size_t GameServer_Status_Port::ByteSizeLong(const MessageLite& base) { 3356 const GameServer_Status_Port& this_ = static_cast<const GameServer_Status_Port&>(base); 3357 #else // PROTOBUF_CUSTOM_VTABLE 3358 ::size_t GameServer_Status_Port::ByteSizeLong() const { 3359 const GameServer_Status_Port& this_ = *this; 3360 #endif // PROTOBUF_CUSTOM_VTABLE 3361 // @@protoc_insertion_point(message_byte_size_start:agones.dev.sdk.GameServer.Status.Port) 3362 ::size_t total_size = 0; 3363 3364 ::uint32_t cached_has_bits = 0; 3365 // Prevent compiler warnings about cached_has_bits being unused 3366 (void)cached_has_bits; 3367 3368 ::_pbi::Prefetch5LinesFrom7Lines(&this_); 3369 cached_has_bits = this_._impl_._has_bits_[0]; 3370 if ((cached_has_bits & 0x00000003u) != 0) { 3371 // string name = 1; 3372 if ((cached_has_bits & 0x00000001u) != 0) { 3373 if (!this_._internal_name().empty()) { 3374 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( 3375 this_._internal_name()); 3376 } 3377 } 3378 // int32 port = 2; 3379 if ((cached_has_bits & 0x00000002u) != 0) { 3380 if (this_._internal_port() != 0) { 3381 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( 3382 this_._internal_port()); 3383 } 3384 } 3385 } 3386 return this_.MaybeComputeUnknownFieldsSize(total_size, 3387 &this_._impl_._cached_size_); 3388 } 3389 3390 void GameServer_Status_Port::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { 3391 auto* const _this = static_cast<GameServer_Status_Port*>(&to_msg); 3392 auto& from = static_cast<const GameServer_Status_Port&>(from_msg); 3393 // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status.Port) 3394 ABSL_DCHECK_NE(&from, _this); 3395 ::uint32_t cached_has_bits = 0; 3396 (void) cached_has_bits; 3397 3398 cached_has_bits = from._impl_._has_bits_[0]; 3399 if ((cached_has_bits & 0x00000003u) != 0) { 3400 if ((cached_has_bits & 0x00000001u) != 0) { 3401 if (!from._internal_name().empty()) { 3402 _this->_internal_set_name(from._internal_name()); 3403 } else { 3404 if (_this->_impl_.name_.IsDefault()) { 3405 _this->_internal_set_name(""); 3406 } 3407 } 3408 } 3409 if ((cached_has_bits & 0x00000002u) != 0) { 3410 if (from._internal_port() != 0) { 3411 _this->_impl_.port_ = from._impl_.port_; 3412 } 3413 } 3414 } 3415 _this->_impl_._has_bits_[0] |= cached_has_bits; 3416 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); 3417 } 3418 3419 void GameServer_Status_Port::CopyFrom(const GameServer_Status_Port& from) { 3420 // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status.Port) 3421 if (&from == this) return; 3422 Clear(); 3423 MergeFrom(from); 3424 } 3425 3426 3427 void GameServer_Status_Port::InternalSwap(GameServer_Status_Port* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { 3428 using ::std::swap; 3429 auto* arena = GetArena(); 3430 ABSL_DCHECK_EQ(arena, other->GetArena()); 3431 _internal_metadata_.InternalSwap(&other->_internal_metadata_); 3432 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); 3433 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); 3434 swap(_impl_.port_, other->_impl_.port_); 3435 } 3436 3437 ::google::protobuf::Metadata GameServer_Status_Port::GetMetadata() const { 3438 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); 3439 } 3440 // =================================================================== 3441 3442 class GameServer_Status_PlayerStatus::_Internal { 3443 public: 3444 using HasBits = 3445 decltype(::std::declval<GameServer_Status_PlayerStatus>()._impl_._has_bits_); 3446 static constexpr ::int32_t kHasBitsOffset = 3447 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_._has_bits_); 3448 }; 3449 3450 GameServer_Status_PlayerStatus::GameServer_Status_PlayerStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 3451 #if defined(PROTOBUF_CUSTOM_VTABLE) 3452 : ::google::protobuf::Message(arena, GameServer_Status_PlayerStatus_class_data_.base()) { 3453 #else // PROTOBUF_CUSTOM_VTABLE 3454 : ::google::protobuf::Message(arena) { 3455 #endif // PROTOBUF_CUSTOM_VTABLE 3456 SharedCtor(arena); 3457 // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status.PlayerStatus) 3458 } 3459 PROTOBUF_NDEBUG_INLINE GameServer_Status_PlayerStatus::Impl_::Impl_( 3460 ::google::protobuf::internal::InternalVisibility visibility, 3461 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, 3462 const ::agones::dev::sdk::GameServer_Status_PlayerStatus& from_msg) 3463 : _has_bits_{from._has_bits_}, 3464 _cached_size_{0}, 3465 ids_{visibility, arena, from.ids_} {} 3466 3467 GameServer_Status_PlayerStatus::GameServer_Status_PlayerStatus( 3468 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, 3469 const GameServer_Status_PlayerStatus& from) 3470 #if defined(PROTOBUF_CUSTOM_VTABLE) 3471 : ::google::protobuf::Message(arena, GameServer_Status_PlayerStatus_class_data_.base()) { 3472 #else // PROTOBUF_CUSTOM_VTABLE 3473 : ::google::protobuf::Message(arena) { 3474 #endif // PROTOBUF_CUSTOM_VTABLE 3475 GameServer_Status_PlayerStatus* const _this = this; 3476 (void)_this; 3477 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( 3478 from._internal_metadata_); 3479 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); 3480 ::memcpy(reinterpret_cast<char *>(&_impl_) + 3481 offsetof(Impl_, count_), 3482 reinterpret_cast<const char *>(&from._impl_) + 3483 offsetof(Impl_, count_), 3484 offsetof(Impl_, capacity_) - 3485 offsetof(Impl_, count_) + 3486 sizeof(Impl_::capacity_)); 3487 3488 // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Status.PlayerStatus) 3489 } 3490 PROTOBUF_NDEBUG_INLINE GameServer_Status_PlayerStatus::Impl_::Impl_( 3491 ::google::protobuf::internal::InternalVisibility visibility, 3492 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 3493 : _cached_size_{0}, 3494 ids_{visibility, arena} {} 3495 3496 inline void GameServer_Status_PlayerStatus::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { 3497 new (&_impl_) Impl_(internal_visibility(), arena); 3498 ::memset(reinterpret_cast<char *>(&_impl_) + 3499 offsetof(Impl_, count_), 3500 0, 3501 offsetof(Impl_, capacity_) - 3502 offsetof(Impl_, count_) + 3503 sizeof(Impl_::capacity_)); 3504 } 3505 GameServer_Status_PlayerStatus::~GameServer_Status_PlayerStatus() { 3506 // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Status.PlayerStatus) 3507 SharedDtor(*this); 3508 } 3509 inline void GameServer_Status_PlayerStatus::SharedDtor(MessageLite& self) { 3510 GameServer_Status_PlayerStatus& this_ = static_cast<GameServer_Status_PlayerStatus&>(self); 3511 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); 3512 ABSL_DCHECK(this_.GetArena() == nullptr); 3513 this_._impl_.~Impl_(); 3514 } 3515 3516 inline void* PROTOBUF_NONNULL GameServer_Status_PlayerStatus::PlacementNew_( 3517 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, 3518 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { 3519 return ::new (mem) GameServer_Status_PlayerStatus(arena); 3520 } 3521 constexpr auto GameServer_Status_PlayerStatus::InternalNewImpl_() { 3522 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ 3523 PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.ids_) + 3524 decltype(GameServer_Status_PlayerStatus::_impl_.ids_):: 3525 InternalGetArenaOffset( 3526 ::google::protobuf::Message::internal_visibility()), 3527 }); 3528 if (arena_bits.has_value()) { 3529 return ::google::protobuf::internal::MessageCreator::ZeroInit( 3530 sizeof(GameServer_Status_PlayerStatus), alignof(GameServer_Status_PlayerStatus), *arena_bits); 3531 } else { 3532 return ::google::protobuf::internal::MessageCreator(&GameServer_Status_PlayerStatus::PlacementNew_, 3533 sizeof(GameServer_Status_PlayerStatus), 3534 alignof(GameServer_Status_PlayerStatus)); 3535 } 3536 } 3537 constexpr auto GameServer_Status_PlayerStatus::InternalGenerateClassData_() { 3538 return ::google::protobuf::internal::ClassDataFull{ 3539 ::google::protobuf::internal::ClassData{ 3540 &_GameServer_Status_PlayerStatus_default_instance_._instance, 3541 &_table_.header, 3542 nullptr, // OnDemandRegisterArenaDtor 3543 nullptr, // IsInitialized 3544 &GameServer_Status_PlayerStatus::MergeImpl, 3545 ::google::protobuf::Message::GetNewImpl<GameServer_Status_PlayerStatus>(), 3546 #if defined(PROTOBUF_CUSTOM_VTABLE) 3547 &GameServer_Status_PlayerStatus::SharedDtor, 3548 ::google::protobuf::Message::GetClearImpl<GameServer_Status_PlayerStatus>(), &GameServer_Status_PlayerStatus::ByteSizeLong, 3549 &GameServer_Status_PlayerStatus::_InternalSerialize, 3550 #endif // PROTOBUF_CUSTOM_VTABLE 3551 PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_._cached_size_), 3552 false, 3553 }, 3554 &GameServer_Status_PlayerStatus::kDescriptorMethods, 3555 &descriptor_table_sdk_2eproto, 3556 nullptr, // tracker 3557 }; 3558 } 3559 3560 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const 3561 ::google::protobuf::internal::ClassDataFull GameServer_Status_PlayerStatus_class_data_ = 3562 GameServer_Status_PlayerStatus::InternalGenerateClassData_(); 3563 3564 PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL 3565 GameServer_Status_PlayerStatus::GetClassData() const { 3566 ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_PlayerStatus_class_data_); 3567 ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_PlayerStatus_class_data_.tc_table); 3568 return GameServer_Status_PlayerStatus_class_data_.base(); 3569 } 3570 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 3571 const ::_pbi::TcParseTable<2, 3, 0, 57, 2> 3572 GameServer_Status_PlayerStatus::_table_ = { 3573 { 3574 PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_._has_bits_), 3575 0, // no _extensions_ 3576 3, 24, // max_field_number, fast_idx_mask 3577 offsetof(decltype(_table_), field_lookup_table), 3578 4294967288, // skipmap 3579 offsetof(decltype(_table_), field_entries), 3580 3, // num_field_entries 3581 0, // num_aux_entries 3582 offsetof(decltype(_table_), field_names), // no aux_entries 3583 GameServer_Status_PlayerStatus_class_data_.base(), 3584 nullptr, // post_loop_handler 3585 ::_pbi::TcParser::GenericFallback, // fallback 3586 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE 3587 ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_PlayerStatus>(), // to_prefetch 3588 #endif // PROTOBUF_PREFETCH_PARSE_TABLE 3589 }, {{ 3590 {::_pbi::TcParser::MiniParse, {}}, 3591 // int64 count = 1; 3592 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_Status_PlayerStatus, _impl_.count_), 0>(), 3593 {8, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.count_)}}, 3594 // int64 capacity = 2; 3595 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_Status_PlayerStatus, _impl_.capacity_), 1>(), 3596 {16, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.capacity_)}}, 3597 // repeated string ids = 3; 3598 {::_pbi::TcParser::FastUR1, 3599 {26, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.ids_)}}, 3600 }}, {{ 3601 65535, 65535 3602 }}, {{ 3603 // int64 count = 1; 3604 {PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.count_), _Internal::kHasBitsOffset + 0, 0, 3605 (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, 3606 // int64 capacity = 2; 3607 {PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.capacity_), _Internal::kHasBitsOffset + 1, 0, 3608 (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, 3609 // repeated string ids = 3; 3610 {PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.ids_), -1, 0, 3611 (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, 3612 }}, 3613 // no aux_entries 3614 {{ 3615 "\55\0\0\3\0\0\0\0" 3616 "agones.dev.sdk.GameServer.Status.PlayerStatus" 3617 "ids" 3618 }}, 3619 }; 3620 PROTOBUF_NOINLINE void GameServer_Status_PlayerStatus::Clear() { 3621 // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status.PlayerStatus) 3622 ::google::protobuf::internal::TSanWrite(&_impl_); 3623 ::uint32_t cached_has_bits = 0; 3624 // Prevent compiler warnings about cached_has_bits being unused 3625 (void) cached_has_bits; 3626 3627 _impl_.ids_.Clear(); 3628 cached_has_bits = _impl_._has_bits_[0]; 3629 if ((cached_has_bits & 0x00000003u) != 0) { 3630 ::memset(&_impl_.count_, 0, static_cast<::size_t>( 3631 reinterpret_cast<char*>(&_impl_.capacity_) - 3632 reinterpret_cast<char*>(&_impl_.count_)) + sizeof(_impl_.capacity_)); 3633 } 3634 _impl_._has_bits_.Clear(); 3635 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); 3636 } 3637 3638 #if defined(PROTOBUF_CUSTOM_VTABLE) 3639 ::uint8_t* PROTOBUF_NONNULL GameServer_Status_PlayerStatus::_InternalSerialize( 3640 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, 3641 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { 3642 const GameServer_Status_PlayerStatus& this_ = static_cast<const GameServer_Status_PlayerStatus&>(base); 3643 #else // PROTOBUF_CUSTOM_VTABLE 3644 ::uint8_t* PROTOBUF_NONNULL GameServer_Status_PlayerStatus::_InternalSerialize( 3645 ::uint8_t* PROTOBUF_NONNULL target, 3646 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { 3647 const GameServer_Status_PlayerStatus& this_ = *this; 3648 #endif // PROTOBUF_CUSTOM_VTABLE 3649 // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status.PlayerStatus) 3650 ::uint32_t cached_has_bits = 0; 3651 (void)cached_has_bits; 3652 3653 // int64 count = 1; 3654 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { 3655 if (this_._internal_count() != 0) { 3656 target = 3657 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( 3658 stream, this_._internal_count(), target); 3659 } 3660 } 3661 3662 // int64 capacity = 2; 3663 if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { 3664 if (this_._internal_capacity() != 0) { 3665 target = 3666 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( 3667 stream, this_._internal_capacity(), target); 3668 } 3669 } 3670 3671 // repeated string ids = 3; 3672 for (int i = 0, n = this_._internal_ids_size(); i < n; ++i) { 3673 const auto& s = this_._internal_ids().Get(i); 3674 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 3675 s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.PlayerStatus.ids"); 3676 target = stream->WriteString(3, s, target); 3677 } 3678 3679 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { 3680 target = 3681 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( 3682 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); 3683 } 3684 // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.Status.PlayerStatus) 3685 return target; 3686 } 3687 3688 #if defined(PROTOBUF_CUSTOM_VTABLE) 3689 ::size_t GameServer_Status_PlayerStatus::ByteSizeLong(const MessageLite& base) { 3690 const GameServer_Status_PlayerStatus& this_ = static_cast<const GameServer_Status_PlayerStatus&>(base); 3691 #else // PROTOBUF_CUSTOM_VTABLE 3692 ::size_t GameServer_Status_PlayerStatus::ByteSizeLong() const { 3693 const GameServer_Status_PlayerStatus& this_ = *this; 3694 #endif // PROTOBUF_CUSTOM_VTABLE 3695 // @@protoc_insertion_point(message_byte_size_start:agones.dev.sdk.GameServer.Status.PlayerStatus) 3696 ::size_t total_size = 0; 3697 3698 ::uint32_t cached_has_bits = 0; 3699 // Prevent compiler warnings about cached_has_bits being unused 3700 (void)cached_has_bits; 3701 3702 ::_pbi::Prefetch5LinesFrom7Lines(&this_); 3703 { 3704 // repeated string ids = 3; 3705 { 3706 total_size += 3707 1 * ::google::protobuf::internal::FromIntSize(this_._internal_ids().size()); 3708 for (int i = 0, n = this_._internal_ids().size(); i < n; ++i) { 3709 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( 3710 this_._internal_ids().Get(i)); 3711 } 3712 } 3713 } 3714 cached_has_bits = this_._impl_._has_bits_[0]; 3715 if ((cached_has_bits & 0x00000003u) != 0) { 3716 // int64 count = 1; 3717 if ((cached_has_bits & 0x00000001u) != 0) { 3718 if (this_._internal_count() != 0) { 3719 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( 3720 this_._internal_count()); 3721 } 3722 } 3723 // int64 capacity = 2; 3724 if ((cached_has_bits & 0x00000002u) != 0) { 3725 if (this_._internal_capacity() != 0) { 3726 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( 3727 this_._internal_capacity()); 3728 } 3729 } 3730 } 3731 return this_.MaybeComputeUnknownFieldsSize(total_size, 3732 &this_._impl_._cached_size_); 3733 } 3734 3735 void GameServer_Status_PlayerStatus::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { 3736 auto* const _this = static_cast<GameServer_Status_PlayerStatus*>(&to_msg); 3737 auto& from = static_cast<const GameServer_Status_PlayerStatus&>(from_msg); 3738 // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status.PlayerStatus) 3739 ABSL_DCHECK_NE(&from, _this); 3740 ::uint32_t cached_has_bits = 0; 3741 (void) cached_has_bits; 3742 3743 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids()); 3744 cached_has_bits = from._impl_._has_bits_[0]; 3745 if ((cached_has_bits & 0x00000003u) != 0) { 3746 if ((cached_has_bits & 0x00000001u) != 0) { 3747 if (from._internal_count() != 0) { 3748 _this->_impl_.count_ = from._impl_.count_; 3749 } 3750 } 3751 if ((cached_has_bits & 0x00000002u) != 0) { 3752 if (from._internal_capacity() != 0) { 3753 _this->_impl_.capacity_ = from._impl_.capacity_; 3754 } 3755 } 3756 } 3757 _this->_impl_._has_bits_[0] |= cached_has_bits; 3758 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); 3759 } 3760 3761 void GameServer_Status_PlayerStatus::CopyFrom(const GameServer_Status_PlayerStatus& from) { 3762 // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status.PlayerStatus) 3763 if (&from == this) return; 3764 Clear(); 3765 MergeFrom(from); 3766 } 3767 3768 3769 void GameServer_Status_PlayerStatus::InternalSwap(GameServer_Status_PlayerStatus* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { 3770 using ::std::swap; 3771 _internal_metadata_.InternalSwap(&other->_internal_metadata_); 3772 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); 3773 _impl_.ids_.InternalSwap(&other->_impl_.ids_); 3774 ::google::protobuf::internal::memswap< 3775 PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.capacity_) 3776 + sizeof(GameServer_Status_PlayerStatus::_impl_.capacity_) 3777 - PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.count_)>( 3778 reinterpret_cast<char*>(&_impl_.count_), 3779 reinterpret_cast<char*>(&other->_impl_.count_)); 3780 } 3781 3782 ::google::protobuf::Metadata GameServer_Status_PlayerStatus::GetMetadata() const { 3783 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); 3784 } 3785 // =================================================================== 3786 3787 class GameServer_Status_CounterStatus::_Internal { 3788 public: 3789 using HasBits = 3790 decltype(::std::declval<GameServer_Status_CounterStatus>()._impl_._has_bits_); 3791 static constexpr ::int32_t kHasBitsOffset = 3792 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_._has_bits_); 3793 }; 3794 3795 GameServer_Status_CounterStatus::GameServer_Status_CounterStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 3796 #if defined(PROTOBUF_CUSTOM_VTABLE) 3797 : ::google::protobuf::Message(arena, GameServer_Status_CounterStatus_class_data_.base()) { 3798 #else // PROTOBUF_CUSTOM_VTABLE 3799 : ::google::protobuf::Message(arena) { 3800 #endif // PROTOBUF_CUSTOM_VTABLE 3801 SharedCtor(arena); 3802 // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status.CounterStatus) 3803 } 3804 GameServer_Status_CounterStatus::GameServer_Status_CounterStatus( 3805 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Status_CounterStatus& from) 3806 #if defined(PROTOBUF_CUSTOM_VTABLE) 3807 : ::google::protobuf::Message(arena, GameServer_Status_CounterStatus_class_data_.base()), 3808 #else // PROTOBUF_CUSTOM_VTABLE 3809 : ::google::protobuf::Message(arena), 3810 #endif // PROTOBUF_CUSTOM_VTABLE 3811 _impl_(from._impl_) { 3812 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( 3813 from._internal_metadata_); 3814 } 3815 PROTOBUF_NDEBUG_INLINE GameServer_Status_CounterStatus::Impl_::Impl_( 3816 ::google::protobuf::internal::InternalVisibility visibility, 3817 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 3818 : _cached_size_{0} {} 3819 3820 inline void GameServer_Status_CounterStatus::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { 3821 new (&_impl_) Impl_(internal_visibility(), arena); 3822 ::memset(reinterpret_cast<char *>(&_impl_) + 3823 offsetof(Impl_, count_), 3824 0, 3825 offsetof(Impl_, capacity_) - 3826 offsetof(Impl_, count_) + 3827 sizeof(Impl_::capacity_)); 3828 } 3829 GameServer_Status_CounterStatus::~GameServer_Status_CounterStatus() { 3830 // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Status.CounterStatus) 3831 SharedDtor(*this); 3832 } 3833 inline void GameServer_Status_CounterStatus::SharedDtor(MessageLite& self) { 3834 GameServer_Status_CounterStatus& this_ = static_cast<GameServer_Status_CounterStatus&>(self); 3835 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); 3836 ABSL_DCHECK(this_.GetArena() == nullptr); 3837 this_._impl_.~Impl_(); 3838 } 3839 3840 inline void* PROTOBUF_NONNULL GameServer_Status_CounterStatus::PlacementNew_( 3841 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, 3842 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { 3843 return ::new (mem) GameServer_Status_CounterStatus(arena); 3844 } 3845 constexpr auto GameServer_Status_CounterStatus::InternalNewImpl_() { 3846 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GameServer_Status_CounterStatus), 3847 alignof(GameServer_Status_CounterStatus)); 3848 } 3849 constexpr auto GameServer_Status_CounterStatus::InternalGenerateClassData_() { 3850 return ::google::protobuf::internal::ClassDataFull{ 3851 ::google::protobuf::internal::ClassData{ 3852 &_GameServer_Status_CounterStatus_default_instance_._instance, 3853 &_table_.header, 3854 nullptr, // OnDemandRegisterArenaDtor 3855 nullptr, // IsInitialized 3856 &GameServer_Status_CounterStatus::MergeImpl, 3857 ::google::protobuf::Message::GetNewImpl<GameServer_Status_CounterStatus>(), 3858 #if defined(PROTOBUF_CUSTOM_VTABLE) 3859 &GameServer_Status_CounterStatus::SharedDtor, 3860 ::google::protobuf::Message::GetClearImpl<GameServer_Status_CounterStatus>(), &GameServer_Status_CounterStatus::ByteSizeLong, 3861 &GameServer_Status_CounterStatus::_InternalSerialize, 3862 #endif // PROTOBUF_CUSTOM_VTABLE 3863 PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_._cached_size_), 3864 false, 3865 }, 3866 &GameServer_Status_CounterStatus::kDescriptorMethods, 3867 &descriptor_table_sdk_2eproto, 3868 nullptr, // tracker 3869 }; 3870 } 3871 3872 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const 3873 ::google::protobuf::internal::ClassDataFull GameServer_Status_CounterStatus_class_data_ = 3874 GameServer_Status_CounterStatus::InternalGenerateClassData_(); 3875 3876 PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL 3877 GameServer_Status_CounterStatus::GetClassData() const { 3878 ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_CounterStatus_class_data_); 3879 ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_CounterStatus_class_data_.tc_table); 3880 return GameServer_Status_CounterStatus_class_data_.base(); 3881 } 3882 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 3883 const ::_pbi::TcParseTable<1, 2, 0, 0, 2> 3884 GameServer_Status_CounterStatus::_table_ = { 3885 { 3886 PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_._has_bits_), 3887 0, // no _extensions_ 3888 2, 8, // max_field_number, fast_idx_mask 3889 offsetof(decltype(_table_), field_lookup_table), 3890 4294967292, // skipmap 3891 offsetof(decltype(_table_), field_entries), 3892 2, // num_field_entries 3893 0, // num_aux_entries 3894 offsetof(decltype(_table_), field_names), // no aux_entries 3895 GameServer_Status_CounterStatus_class_data_.base(), 3896 nullptr, // post_loop_handler 3897 ::_pbi::TcParser::GenericFallback, // fallback 3898 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE 3899 ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_CounterStatus>(), // to_prefetch 3900 #endif // PROTOBUF_PREFETCH_PARSE_TABLE 3901 }, {{ 3902 // int64 capacity = 2; 3903 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_Status_CounterStatus, _impl_.capacity_), 1>(), 3904 {16, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.capacity_)}}, 3905 // int64 count = 1; 3906 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_Status_CounterStatus, _impl_.count_), 0>(), 3907 {8, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.count_)}}, 3908 }}, {{ 3909 65535, 65535 3910 }}, {{ 3911 // int64 count = 1; 3912 {PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.count_), _Internal::kHasBitsOffset + 0, 0, 3913 (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, 3914 // int64 capacity = 2; 3915 {PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.capacity_), _Internal::kHasBitsOffset + 1, 0, 3916 (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, 3917 }}, 3918 // no aux_entries 3919 {{ 3920 }}, 3921 }; 3922 PROTOBUF_NOINLINE void GameServer_Status_CounterStatus::Clear() { 3923 // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status.CounterStatus) 3924 ::google::protobuf::internal::TSanWrite(&_impl_); 3925 ::uint32_t cached_has_bits = 0; 3926 // Prevent compiler warnings about cached_has_bits being unused 3927 (void) cached_has_bits; 3928 3929 cached_has_bits = _impl_._has_bits_[0]; 3930 if ((cached_has_bits & 0x00000003u) != 0) { 3931 ::memset(&_impl_.count_, 0, static_cast<::size_t>( 3932 reinterpret_cast<char*>(&_impl_.capacity_) - 3933 reinterpret_cast<char*>(&_impl_.count_)) + sizeof(_impl_.capacity_)); 3934 } 3935 _impl_._has_bits_.Clear(); 3936 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); 3937 } 3938 3939 #if defined(PROTOBUF_CUSTOM_VTABLE) 3940 ::uint8_t* PROTOBUF_NONNULL GameServer_Status_CounterStatus::_InternalSerialize( 3941 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, 3942 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { 3943 const GameServer_Status_CounterStatus& this_ = static_cast<const GameServer_Status_CounterStatus&>(base); 3944 #else // PROTOBUF_CUSTOM_VTABLE 3945 ::uint8_t* PROTOBUF_NONNULL GameServer_Status_CounterStatus::_InternalSerialize( 3946 ::uint8_t* PROTOBUF_NONNULL target, 3947 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { 3948 const GameServer_Status_CounterStatus& this_ = *this; 3949 #endif // PROTOBUF_CUSTOM_VTABLE 3950 // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status.CounterStatus) 3951 ::uint32_t cached_has_bits = 0; 3952 (void)cached_has_bits; 3953 3954 // int64 count = 1; 3955 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { 3956 if (this_._internal_count() != 0) { 3957 target = 3958 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( 3959 stream, this_._internal_count(), target); 3960 } 3961 } 3962 3963 // int64 capacity = 2; 3964 if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { 3965 if (this_._internal_capacity() != 0) { 3966 target = 3967 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( 3968 stream, this_._internal_capacity(), target); 3969 } 3970 } 3971 3972 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { 3973 target = 3974 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( 3975 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); 3976 } 3977 // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.Status.CounterStatus) 3978 return target; 3979 } 3980 3981 #if defined(PROTOBUF_CUSTOM_VTABLE) 3982 ::size_t GameServer_Status_CounterStatus::ByteSizeLong(const MessageLite& base) { 3983 const GameServer_Status_CounterStatus& this_ = static_cast<const GameServer_Status_CounterStatus&>(base); 3984 #else // PROTOBUF_CUSTOM_VTABLE 3985 ::size_t GameServer_Status_CounterStatus::ByteSizeLong() const { 3986 const GameServer_Status_CounterStatus& this_ = *this; 3987 #endif // PROTOBUF_CUSTOM_VTABLE 3988 // @@protoc_insertion_point(message_byte_size_start:agones.dev.sdk.GameServer.Status.CounterStatus) 3989 ::size_t total_size = 0; 3990 3991 ::uint32_t cached_has_bits = 0; 3992 // Prevent compiler warnings about cached_has_bits being unused 3993 (void)cached_has_bits; 3994 3995 ::_pbi::Prefetch5LinesFrom7Lines(&this_); 3996 cached_has_bits = this_._impl_._has_bits_[0]; 3997 if ((cached_has_bits & 0x00000003u) != 0) { 3998 // int64 count = 1; 3999 if ((cached_has_bits & 0x00000001u) != 0) { 4000 if (this_._internal_count() != 0) { 4001 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( 4002 this_._internal_count()); 4003 } 4004 } 4005 // int64 capacity = 2; 4006 if ((cached_has_bits & 0x00000002u) != 0) { 4007 if (this_._internal_capacity() != 0) { 4008 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( 4009 this_._internal_capacity()); 4010 } 4011 } 4012 } 4013 return this_.MaybeComputeUnknownFieldsSize(total_size, 4014 &this_._impl_._cached_size_); 4015 } 4016 4017 void GameServer_Status_CounterStatus::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { 4018 auto* const _this = static_cast<GameServer_Status_CounterStatus*>(&to_msg); 4019 auto& from = static_cast<const GameServer_Status_CounterStatus&>(from_msg); 4020 // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status.CounterStatus) 4021 ABSL_DCHECK_NE(&from, _this); 4022 ::uint32_t cached_has_bits = 0; 4023 (void) cached_has_bits; 4024 4025 cached_has_bits = from._impl_._has_bits_[0]; 4026 if ((cached_has_bits & 0x00000003u) != 0) { 4027 if ((cached_has_bits & 0x00000001u) != 0) { 4028 if (from._internal_count() != 0) { 4029 _this->_impl_.count_ = from._impl_.count_; 4030 } 4031 } 4032 if ((cached_has_bits & 0x00000002u) != 0) { 4033 if (from._internal_capacity() != 0) { 4034 _this->_impl_.capacity_ = from._impl_.capacity_; 4035 } 4036 } 4037 } 4038 _this->_impl_._has_bits_[0] |= cached_has_bits; 4039 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); 4040 } 4041 4042 void GameServer_Status_CounterStatus::CopyFrom(const GameServer_Status_CounterStatus& from) { 4043 // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status.CounterStatus) 4044 if (&from == this) return; 4045 Clear(); 4046 MergeFrom(from); 4047 } 4048 4049 4050 void GameServer_Status_CounterStatus::InternalSwap(GameServer_Status_CounterStatus* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { 4051 using ::std::swap; 4052 _internal_metadata_.InternalSwap(&other->_internal_metadata_); 4053 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); 4054 ::google::protobuf::internal::memswap< 4055 PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.capacity_) 4056 + sizeof(GameServer_Status_CounterStatus::_impl_.capacity_) 4057 - PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.count_)>( 4058 reinterpret_cast<char*>(&_impl_.count_), 4059 reinterpret_cast<char*>(&other->_impl_.count_)); 4060 } 4061 4062 ::google::protobuf::Metadata GameServer_Status_CounterStatus::GetMetadata() const { 4063 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); 4064 } 4065 // =================================================================== 4066 4067 class GameServer_Status_ListStatus::_Internal { 4068 public: 4069 using HasBits = 4070 decltype(::std::declval<GameServer_Status_ListStatus>()._impl_._has_bits_); 4071 static constexpr ::int32_t kHasBitsOffset = 4072 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_._has_bits_); 4073 }; 4074 4075 GameServer_Status_ListStatus::GameServer_Status_ListStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 4076 #if defined(PROTOBUF_CUSTOM_VTABLE) 4077 : ::google::protobuf::Message(arena, GameServer_Status_ListStatus_class_data_.base()) { 4078 #else // PROTOBUF_CUSTOM_VTABLE 4079 : ::google::protobuf::Message(arena) { 4080 #endif // PROTOBUF_CUSTOM_VTABLE 4081 SharedCtor(arena); 4082 // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status.ListStatus) 4083 } 4084 PROTOBUF_NDEBUG_INLINE GameServer_Status_ListStatus::Impl_::Impl_( 4085 ::google::protobuf::internal::InternalVisibility visibility, 4086 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, 4087 const ::agones::dev::sdk::GameServer_Status_ListStatus& from_msg) 4088 : _has_bits_{from._has_bits_}, 4089 _cached_size_{0}, 4090 values_{visibility, arena, from.values_} {} 4091 4092 GameServer_Status_ListStatus::GameServer_Status_ListStatus( 4093 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, 4094 const GameServer_Status_ListStatus& from) 4095 #if defined(PROTOBUF_CUSTOM_VTABLE) 4096 : ::google::protobuf::Message(arena, GameServer_Status_ListStatus_class_data_.base()) { 4097 #else // PROTOBUF_CUSTOM_VTABLE 4098 : ::google::protobuf::Message(arena) { 4099 #endif // PROTOBUF_CUSTOM_VTABLE 4100 GameServer_Status_ListStatus* const _this = this; 4101 (void)_this; 4102 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( 4103 from._internal_metadata_); 4104 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); 4105 _impl_.capacity_ = from._impl_.capacity_; 4106 4107 // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Status.ListStatus) 4108 } 4109 PROTOBUF_NDEBUG_INLINE GameServer_Status_ListStatus::Impl_::Impl_( 4110 ::google::protobuf::internal::InternalVisibility visibility, 4111 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 4112 : _cached_size_{0}, 4113 values_{visibility, arena} {} 4114 4115 inline void GameServer_Status_ListStatus::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { 4116 new (&_impl_) Impl_(internal_visibility(), arena); 4117 _impl_.capacity_ = {}; 4118 } 4119 GameServer_Status_ListStatus::~GameServer_Status_ListStatus() { 4120 // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Status.ListStatus) 4121 SharedDtor(*this); 4122 } 4123 inline void GameServer_Status_ListStatus::SharedDtor(MessageLite& self) { 4124 GameServer_Status_ListStatus& this_ = static_cast<GameServer_Status_ListStatus&>(self); 4125 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); 4126 ABSL_DCHECK(this_.GetArena() == nullptr); 4127 this_._impl_.~Impl_(); 4128 } 4129 4130 inline void* PROTOBUF_NONNULL GameServer_Status_ListStatus::PlacementNew_( 4131 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, 4132 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { 4133 return ::new (mem) GameServer_Status_ListStatus(arena); 4134 } 4135 constexpr auto GameServer_Status_ListStatus::InternalNewImpl_() { 4136 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ 4137 PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.values_) + 4138 decltype(GameServer_Status_ListStatus::_impl_.values_):: 4139 InternalGetArenaOffset( 4140 ::google::protobuf::Message::internal_visibility()), 4141 }); 4142 if (arena_bits.has_value()) { 4143 return ::google::protobuf::internal::MessageCreator::ZeroInit( 4144 sizeof(GameServer_Status_ListStatus), alignof(GameServer_Status_ListStatus), *arena_bits); 4145 } else { 4146 return ::google::protobuf::internal::MessageCreator(&GameServer_Status_ListStatus::PlacementNew_, 4147 sizeof(GameServer_Status_ListStatus), 4148 alignof(GameServer_Status_ListStatus)); 4149 } 4150 } 4151 constexpr auto GameServer_Status_ListStatus::InternalGenerateClassData_() { 4152 return ::google::protobuf::internal::ClassDataFull{ 4153 ::google::protobuf::internal::ClassData{ 4154 &_GameServer_Status_ListStatus_default_instance_._instance, 4155 &_table_.header, 4156 nullptr, // OnDemandRegisterArenaDtor 4157 nullptr, // IsInitialized 4158 &GameServer_Status_ListStatus::MergeImpl, 4159 ::google::protobuf::Message::GetNewImpl<GameServer_Status_ListStatus>(), 4160 #if defined(PROTOBUF_CUSTOM_VTABLE) 4161 &GameServer_Status_ListStatus::SharedDtor, 4162 ::google::protobuf::Message::GetClearImpl<GameServer_Status_ListStatus>(), &GameServer_Status_ListStatus::ByteSizeLong, 4163 &GameServer_Status_ListStatus::_InternalSerialize, 4164 #endif // PROTOBUF_CUSTOM_VTABLE 4165 PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_._cached_size_), 4166 false, 4167 }, 4168 &GameServer_Status_ListStatus::kDescriptorMethods, 4169 &descriptor_table_sdk_2eproto, 4170 nullptr, // tracker 4171 }; 4172 } 4173 4174 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const 4175 ::google::protobuf::internal::ClassDataFull GameServer_Status_ListStatus_class_data_ = 4176 GameServer_Status_ListStatus::InternalGenerateClassData_(); 4177 4178 PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL 4179 GameServer_Status_ListStatus::GetClassData() const { 4180 ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_ListStatus_class_data_); 4181 ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_ListStatus_class_data_.tc_table); 4182 return GameServer_Status_ListStatus_class_data_.base(); 4183 } 4184 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 4185 const ::_pbi::TcParseTable<1, 2, 0, 58, 2> 4186 GameServer_Status_ListStatus::_table_ = { 4187 { 4188 PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_._has_bits_), 4189 0, // no _extensions_ 4190 2, 8, // max_field_number, fast_idx_mask 4191 offsetof(decltype(_table_), field_lookup_table), 4192 4294967292, // skipmap 4193 offsetof(decltype(_table_), field_entries), 4194 2, // num_field_entries 4195 0, // num_aux_entries 4196 offsetof(decltype(_table_), field_names), // no aux_entries 4197 GameServer_Status_ListStatus_class_data_.base(), 4198 nullptr, // post_loop_handler 4199 ::_pbi::TcParser::GenericFallback, // fallback 4200 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE 4201 ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_ListStatus>(), // to_prefetch 4202 #endif // PROTOBUF_PREFETCH_PARSE_TABLE 4203 }, {{ 4204 // repeated string values = 2; 4205 {::_pbi::TcParser::FastUR1, 4206 {18, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.values_)}}, 4207 // int64 capacity = 1; 4208 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_Status_ListStatus, _impl_.capacity_), 0>(), 4209 {8, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.capacity_)}}, 4210 }}, {{ 4211 65535, 65535 4212 }}, {{ 4213 // int64 capacity = 1; 4214 {PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.capacity_), _Internal::kHasBitsOffset + 0, 0, 4215 (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, 4216 // repeated string values = 2; 4217 {PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.values_), -1, 0, 4218 (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, 4219 }}, 4220 // no aux_entries 4221 {{ 4222 "\53\0\6\0\0\0\0\0" 4223 "agones.dev.sdk.GameServer.Status.ListStatus" 4224 "values" 4225 }}, 4226 }; 4227 PROTOBUF_NOINLINE void GameServer_Status_ListStatus::Clear() { 4228 // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status.ListStatus) 4229 ::google::protobuf::internal::TSanWrite(&_impl_); 4230 ::uint32_t cached_has_bits = 0; 4231 // Prevent compiler warnings about cached_has_bits being unused 4232 (void) cached_has_bits; 4233 4234 _impl_.values_.Clear(); 4235 _impl_.capacity_ = ::int64_t{0}; 4236 _impl_._has_bits_.Clear(); 4237 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); 4238 } 4239 4240 #if defined(PROTOBUF_CUSTOM_VTABLE) 4241 ::uint8_t* PROTOBUF_NONNULL GameServer_Status_ListStatus::_InternalSerialize( 4242 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, 4243 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { 4244 const GameServer_Status_ListStatus& this_ = static_cast<const GameServer_Status_ListStatus&>(base); 4245 #else // PROTOBUF_CUSTOM_VTABLE 4246 ::uint8_t* PROTOBUF_NONNULL GameServer_Status_ListStatus::_InternalSerialize( 4247 ::uint8_t* PROTOBUF_NONNULL target, 4248 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { 4249 const GameServer_Status_ListStatus& this_ = *this; 4250 #endif // PROTOBUF_CUSTOM_VTABLE 4251 // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status.ListStatus) 4252 ::uint32_t cached_has_bits = 0; 4253 (void)cached_has_bits; 4254 4255 // int64 capacity = 1; 4256 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { 4257 if (this_._internal_capacity() != 0) { 4258 target = 4259 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( 4260 stream, this_._internal_capacity(), target); 4261 } 4262 } 4263 4264 // repeated string values = 2; 4265 for (int i = 0, n = this_._internal_values_size(); i < n; ++i) { 4266 const auto& s = this_._internal_values().Get(i); 4267 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 4268 s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.ListStatus.values"); 4269 target = stream->WriteString(2, s, target); 4270 } 4271 4272 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { 4273 target = 4274 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( 4275 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); 4276 } 4277 // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.Status.ListStatus) 4278 return target; 4279 } 4280 4281 #if defined(PROTOBUF_CUSTOM_VTABLE) 4282 ::size_t GameServer_Status_ListStatus::ByteSizeLong(const MessageLite& base) { 4283 const GameServer_Status_ListStatus& this_ = static_cast<const GameServer_Status_ListStatus&>(base); 4284 #else // PROTOBUF_CUSTOM_VTABLE 4285 ::size_t GameServer_Status_ListStatus::ByteSizeLong() const { 4286 const GameServer_Status_ListStatus& this_ = *this; 4287 #endif // PROTOBUF_CUSTOM_VTABLE 4288 // @@protoc_insertion_point(message_byte_size_start:agones.dev.sdk.GameServer.Status.ListStatus) 4289 ::size_t total_size = 0; 4290 4291 ::uint32_t cached_has_bits = 0; 4292 // Prevent compiler warnings about cached_has_bits being unused 4293 (void)cached_has_bits; 4294 4295 ::_pbi::Prefetch5LinesFrom7Lines(&this_); 4296 { 4297 // repeated string values = 2; 4298 { 4299 total_size += 4300 1 * ::google::protobuf::internal::FromIntSize(this_._internal_values().size()); 4301 for (int i = 0, n = this_._internal_values().size(); i < n; ++i) { 4302 total_size += ::google::protobuf::internal::WireFormatLite::StringSize( 4303 this_._internal_values().Get(i)); 4304 } 4305 } 4306 } 4307 { 4308 // int64 capacity = 1; 4309 cached_has_bits = this_._impl_._has_bits_[0]; 4310 if ((cached_has_bits & 0x00000001u) != 0) { 4311 if (this_._internal_capacity() != 0) { 4312 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( 4313 this_._internal_capacity()); 4314 } 4315 } 4316 } 4317 return this_.MaybeComputeUnknownFieldsSize(total_size, 4318 &this_._impl_._cached_size_); 4319 } 4320 4321 void GameServer_Status_ListStatus::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { 4322 auto* const _this = static_cast<GameServer_Status_ListStatus*>(&to_msg); 4323 auto& from = static_cast<const GameServer_Status_ListStatus&>(from_msg); 4324 // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status.ListStatus) 4325 ABSL_DCHECK_NE(&from, _this); 4326 ::uint32_t cached_has_bits = 0; 4327 (void) cached_has_bits; 4328 4329 _this->_internal_mutable_values()->MergeFrom(from._internal_values()); 4330 cached_has_bits = from._impl_._has_bits_[0]; 4331 if ((cached_has_bits & 0x00000001u) != 0) { 4332 if (from._internal_capacity() != 0) { 4333 _this->_impl_.capacity_ = from._impl_.capacity_; 4334 } 4335 } 4336 _this->_impl_._has_bits_[0] |= cached_has_bits; 4337 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); 4338 } 4339 4340 void GameServer_Status_ListStatus::CopyFrom(const GameServer_Status_ListStatus& from) { 4341 // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status.ListStatus) 4342 if (&from == this) return; 4343 Clear(); 4344 MergeFrom(from); 4345 } 4346 4347 4348 void GameServer_Status_ListStatus::InternalSwap(GameServer_Status_ListStatus* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { 4349 using ::std::swap; 4350 _internal_metadata_.InternalSwap(&other->_internal_metadata_); 4351 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); 4352 _impl_.values_.InternalSwap(&other->_impl_.values_); 4353 swap(_impl_.capacity_, other->_impl_.capacity_); 4354 } 4355 4356 ::google::protobuf::Metadata GameServer_Status_ListStatus::GetMetadata() const { 4357 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); 4358 } 4359 // =================================================================== 4360 4361 #if defined(PROTOBUF_CUSTOM_VTABLE) 4362 GameServer_Status_CountersEntry_DoNotUse::GameServer_Status_CountersEntry_DoNotUse() 4363 : SuperType(GameServer_Status_CountersEntry_DoNotUse_class_data_.base()) {} 4364 GameServer_Status_CountersEntry_DoNotUse::GameServer_Status_CountersEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 4365 : SuperType(arena, GameServer_Status_CountersEntry_DoNotUse_class_data_.base()) {} 4366 #else // PROTOBUF_CUSTOM_VTABLE 4367 GameServer_Status_CountersEntry_DoNotUse::GameServer_Status_CountersEntry_DoNotUse() : SuperType() {} 4368 GameServer_Status_CountersEntry_DoNotUse::GameServer_Status_CountersEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} 4369 #endif // PROTOBUF_CUSTOM_VTABLE 4370 inline void* PROTOBUF_NONNULL GameServer_Status_CountersEntry_DoNotUse::PlacementNew_( 4371 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, 4372 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { 4373 return ::new (mem) GameServer_Status_CountersEntry_DoNotUse(arena); 4374 } 4375 constexpr auto GameServer_Status_CountersEntry_DoNotUse::InternalNewImpl_() { 4376 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_CountersEntry_DoNotUse), 4377 alignof(GameServer_Status_CountersEntry_DoNotUse)); 4378 } 4379 constexpr auto GameServer_Status_CountersEntry_DoNotUse::InternalGenerateClassData_() { 4380 return ::google::protobuf::internal::ClassDataFull{ 4381 ::google::protobuf::internal::ClassData{ 4382 &_GameServer_Status_CountersEntry_DoNotUse_default_instance_._instance, 4383 &_table_.header, 4384 nullptr, // OnDemandRegisterArenaDtor 4385 nullptr, // IsInitialized 4386 &GameServer_Status_CountersEntry_DoNotUse::MergeImpl, 4387 ::google::protobuf::Message::GetNewImpl<GameServer_Status_CountersEntry_DoNotUse>(), 4388 #if defined(PROTOBUF_CUSTOM_VTABLE) 4389 &GameServer_Status_CountersEntry_DoNotUse::SharedDtor, 4390 static_cast<void (::google::protobuf::MessageLite::*)()>(&GameServer_Status_CountersEntry_DoNotUse::ClearImpl), 4391 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl 4392 , 4393 #endif // PROTOBUF_CUSTOM_VTABLE 4394 PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_._cached_size_), 4395 false, 4396 }, 4397 &GameServer_Status_CountersEntry_DoNotUse::kDescriptorMethods, 4398 &descriptor_table_sdk_2eproto, 4399 nullptr, // tracker 4400 }; 4401 } 4402 4403 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const 4404 ::google::protobuf::internal::ClassDataFull GameServer_Status_CountersEntry_DoNotUse_class_data_ = 4405 GameServer_Status_CountersEntry_DoNotUse::InternalGenerateClassData_(); 4406 4407 PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL 4408 GameServer_Status_CountersEntry_DoNotUse::GetClassData() const { 4409 ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_CountersEntry_DoNotUse_class_data_); 4410 ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_CountersEntry_DoNotUse_class_data_.tc_table); 4411 return GameServer_Status_CountersEntry_DoNotUse_class_data_.base(); 4412 } 4413 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 4414 const ::_pbi::TcParseTable<1, 2, 1, 58, 2> 4415 GameServer_Status_CountersEntry_DoNotUse::_table_ = { 4416 { 4417 PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_._has_bits_), 4418 0, // no _extensions_ 4419 2, 8, // max_field_number, fast_idx_mask 4420 offsetof(decltype(_table_), field_lookup_table), 4421 4294967292, // skipmap 4422 offsetof(decltype(_table_), field_entries), 4423 2, // num_field_entries 4424 1, // num_aux_entries 4425 offsetof(decltype(_table_), aux_entries), 4426 GameServer_Status_CountersEntry_DoNotUse_class_data_.base(), 4427 nullptr, // post_loop_handler 4428 ::_pbi::TcParser::DiscardEverythingFallback, // fallback 4429 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE 4430 ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse>(), // to_prefetch 4431 #endif // PROTOBUF_PREFETCH_PARSE_TABLE 4432 }, {{ 4433 // .agones.dev.sdk.GameServer.Status.CounterStatus value = 2; 4434 {::_pbi::TcParser::FastMtS1, 4435 {18, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_.value_)}}, 4436 // string key = 1; 4437 {::_pbi::TcParser::FastUS1, 4438 {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_.key_)}}, 4439 }}, {{ 4440 65535, 65535 4441 }}, {{ 4442 // string key = 1; 4443 {PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, 4444 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, 4445 // .agones.dev.sdk.GameServer.Status.CounterStatus value = 2; 4446 {PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, 4447 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, 4448 }}, 4449 {{ 4450 {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_CounterStatus>()}, 4451 }}, 4452 {{ 4453 "\56\3\0\0\0\0\0\0" 4454 "agones.dev.sdk.GameServer.Status.CountersEntry" 4455 "key" 4456 }}, 4457 }; 4458 // =================================================================== 4459 4460 #if defined(PROTOBUF_CUSTOM_VTABLE) 4461 GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse() 4462 : SuperType(GameServer_Status_ListsEntry_DoNotUse_class_data_.base()) {} 4463 GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 4464 : SuperType(arena, GameServer_Status_ListsEntry_DoNotUse_class_data_.base()) {} 4465 #else // PROTOBUF_CUSTOM_VTABLE 4466 GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse() : SuperType() {} 4467 GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} 4468 #endif // PROTOBUF_CUSTOM_VTABLE 4469 inline void* PROTOBUF_NONNULL GameServer_Status_ListsEntry_DoNotUse::PlacementNew_( 4470 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, 4471 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { 4472 return ::new (mem) GameServer_Status_ListsEntry_DoNotUse(arena); 4473 } 4474 constexpr auto GameServer_Status_ListsEntry_DoNotUse::InternalNewImpl_() { 4475 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_ListsEntry_DoNotUse), 4476 alignof(GameServer_Status_ListsEntry_DoNotUse)); 4477 } 4478 constexpr auto GameServer_Status_ListsEntry_DoNotUse::InternalGenerateClassData_() { 4479 return ::google::protobuf::internal::ClassDataFull{ 4480 ::google::protobuf::internal::ClassData{ 4481 &_GameServer_Status_ListsEntry_DoNotUse_default_instance_._instance, 4482 &_table_.header, 4483 nullptr, // OnDemandRegisterArenaDtor 4484 nullptr, // IsInitialized 4485 &GameServer_Status_ListsEntry_DoNotUse::MergeImpl, 4486 ::google::protobuf::Message::GetNewImpl<GameServer_Status_ListsEntry_DoNotUse>(), 4487 #if defined(PROTOBUF_CUSTOM_VTABLE) 4488 &GameServer_Status_ListsEntry_DoNotUse::SharedDtor, 4489 static_cast<void (::google::protobuf::MessageLite::*)()>(&GameServer_Status_ListsEntry_DoNotUse::ClearImpl), 4490 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl 4491 , 4492 #endif // PROTOBUF_CUSTOM_VTABLE 4493 PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_._cached_size_), 4494 false, 4495 }, 4496 &GameServer_Status_ListsEntry_DoNotUse::kDescriptorMethods, 4497 &descriptor_table_sdk_2eproto, 4498 nullptr, // tracker 4499 }; 4500 } 4501 4502 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const 4503 ::google::protobuf::internal::ClassDataFull GameServer_Status_ListsEntry_DoNotUse_class_data_ = 4504 GameServer_Status_ListsEntry_DoNotUse::InternalGenerateClassData_(); 4505 4506 PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL 4507 GameServer_Status_ListsEntry_DoNotUse::GetClassData() const { 4508 ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_ListsEntry_DoNotUse_class_data_); 4509 ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_ListsEntry_DoNotUse_class_data_.tc_table); 4510 return GameServer_Status_ListsEntry_DoNotUse_class_data_.base(); 4511 } 4512 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 4513 const ::_pbi::TcParseTable<1, 2, 1, 55, 2> 4514 GameServer_Status_ListsEntry_DoNotUse::_table_ = { 4515 { 4516 PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_._has_bits_), 4517 0, // no _extensions_ 4518 2, 8, // max_field_number, fast_idx_mask 4519 offsetof(decltype(_table_), field_lookup_table), 4520 4294967292, // skipmap 4521 offsetof(decltype(_table_), field_entries), 4522 2, // num_field_entries 4523 1, // num_aux_entries 4524 offsetof(decltype(_table_), aux_entries), 4525 GameServer_Status_ListsEntry_DoNotUse_class_data_.base(), 4526 nullptr, // post_loop_handler 4527 ::_pbi::TcParser::DiscardEverythingFallback, // fallback 4528 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE 4529 ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse>(), // to_prefetch 4530 #endif // PROTOBUF_PREFETCH_PARSE_TABLE 4531 }, {{ 4532 // .agones.dev.sdk.GameServer.Status.ListStatus value = 2; 4533 {::_pbi::TcParser::FastMtS1, 4534 {18, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_.value_)}}, 4535 // string key = 1; 4536 {::_pbi::TcParser::FastUS1, 4537 {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_.key_)}}, 4538 }}, {{ 4539 65535, 65535 4540 }}, {{ 4541 // string key = 1; 4542 {PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, 4543 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, 4544 // .agones.dev.sdk.GameServer.Status.ListStatus value = 2; 4545 {PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, 4546 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, 4547 }}, 4548 {{ 4549 {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_ListStatus>()}, 4550 }}, 4551 {{ 4552 "\53\3\0\0\0\0\0\0" 4553 "agones.dev.sdk.GameServer.Status.ListsEntry" 4554 "key" 4555 }}, 4556 }; 4557 // =================================================================== 4558 4559 class GameServer_Status::_Internal { 4560 public: 4561 using HasBits = 4562 decltype(::std::declval<GameServer_Status>()._impl_._has_bits_); 4563 static constexpr ::int32_t kHasBitsOffset = 4564 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_._has_bits_); 4565 }; 4566 4567 GameServer_Status::GameServer_Status(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 4568 #if defined(PROTOBUF_CUSTOM_VTABLE) 4569 : ::google::protobuf::Message(arena, GameServer_Status_class_data_.base()) { 4570 #else // PROTOBUF_CUSTOM_VTABLE 4571 : ::google::protobuf::Message(arena) { 4572 #endif // PROTOBUF_CUSTOM_VTABLE 4573 SharedCtor(arena); 4574 // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status) 4575 } 4576 PROTOBUF_NDEBUG_INLINE GameServer_Status::Impl_::Impl_( 4577 ::google::protobuf::internal::InternalVisibility visibility, 4578 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, 4579 const ::agones::dev::sdk::GameServer_Status& from_msg) 4580 : _has_bits_{from._has_bits_}, 4581 _cached_size_{0}, 4582 ports_{visibility, arena, from.ports_}, 4583 counters_{visibility, arena, from.counters_}, 4584 lists_{visibility, arena, from.lists_}, 4585 addresses_{visibility, arena, from.addresses_}, 4586 state_(arena, from.state_), 4587 address_(arena, from.address_) {} 4588 4589 GameServer_Status::GameServer_Status( 4590 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, 4591 const GameServer_Status& from) 4592 #if defined(PROTOBUF_CUSTOM_VTABLE) 4593 : ::google::protobuf::Message(arena, GameServer_Status_class_data_.base()) { 4594 #else // PROTOBUF_CUSTOM_VTABLE 4595 : ::google::protobuf::Message(arena) { 4596 #endif // PROTOBUF_CUSTOM_VTABLE 4597 GameServer_Status* const _this = this; 4598 (void)_this; 4599 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( 4600 from._internal_metadata_); 4601 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); 4602 ::uint32_t cached_has_bits = _impl_._has_bits_[0]; 4603 _impl_.players_ = ((cached_has_bits & 0x00000004u) != 0) 4604 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.players_) 4605 : nullptr; 4606 4607 // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Status) 4608 } 4609 PROTOBUF_NDEBUG_INLINE GameServer_Status::Impl_::Impl_( 4610 ::google::protobuf::internal::InternalVisibility visibility, 4611 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 4612 : _cached_size_{0}, 4613 ports_{visibility, arena}, 4614 counters_{visibility, arena}, 4615 lists_{visibility, arena}, 4616 addresses_{visibility, arena}, 4617 state_(arena), 4618 address_(arena) {} 4619 4620 inline void GameServer_Status::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { 4621 new (&_impl_) Impl_(internal_visibility(), arena); 4622 _impl_.players_ = {}; 4623 } 4624 GameServer_Status::~GameServer_Status() { 4625 // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Status) 4626 SharedDtor(*this); 4627 } 4628 inline void GameServer_Status::SharedDtor(MessageLite& self) { 4629 GameServer_Status& this_ = static_cast<GameServer_Status&>(self); 4630 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); 4631 ABSL_DCHECK(this_.GetArena() == nullptr); 4632 this_._impl_.state_.Destroy(); 4633 this_._impl_.address_.Destroy(); 4634 delete this_._impl_.players_; 4635 this_._impl_.~Impl_(); 4636 } 4637 4638 inline void* PROTOBUF_NONNULL GameServer_Status::PlacementNew_( 4639 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, 4640 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { 4641 return ::new (mem) GameServer_Status(arena); 4642 } 4643 constexpr auto GameServer_Status::InternalNewImpl_() { 4644 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ 4645 PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.addresses_) + 4646 decltype(GameServer_Status::_impl_.addresses_):: 4647 InternalGetArenaOffset( 4648 ::google::protobuf::Message::internal_visibility()), 4649 PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.ports_) + 4650 decltype(GameServer_Status::_impl_.ports_):: 4651 InternalGetArenaOffset( 4652 ::google::protobuf::Message::internal_visibility()), 4653 PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.counters_) + 4654 decltype(GameServer_Status::_impl_.counters_):: 4655 InternalGetArenaOffset( 4656 ::google::protobuf::Message::internal_visibility()), 4657 PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.counters_) + 4658 decltype(GameServer_Status::_impl_.counters_):: 4659 InternalGetArenaOffsetAlt( 4660 ::google::protobuf::Message::internal_visibility()), 4661 PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.lists_) + 4662 decltype(GameServer_Status::_impl_.lists_):: 4663 InternalGetArenaOffset( 4664 ::google::protobuf::Message::internal_visibility()), 4665 PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.lists_) + 4666 decltype(GameServer_Status::_impl_.lists_):: 4667 InternalGetArenaOffsetAlt( 4668 ::google::protobuf::Message::internal_visibility()), 4669 }); 4670 if (arena_bits.has_value()) { 4671 return ::google::protobuf::internal::MessageCreator::CopyInit( 4672 sizeof(GameServer_Status), alignof(GameServer_Status), *arena_bits); 4673 } else { 4674 return ::google::protobuf::internal::MessageCreator(&GameServer_Status::PlacementNew_, 4675 sizeof(GameServer_Status), 4676 alignof(GameServer_Status)); 4677 } 4678 } 4679 constexpr auto GameServer_Status::InternalGenerateClassData_() { 4680 return ::google::protobuf::internal::ClassDataFull{ 4681 ::google::protobuf::internal::ClassData{ 4682 &_GameServer_Status_default_instance_._instance, 4683 &_table_.header, 4684 nullptr, // OnDemandRegisterArenaDtor 4685 nullptr, // IsInitialized 4686 &GameServer_Status::MergeImpl, 4687 ::google::protobuf::Message::GetNewImpl<GameServer_Status>(), 4688 #if defined(PROTOBUF_CUSTOM_VTABLE) 4689 &GameServer_Status::SharedDtor, 4690 ::google::protobuf::Message::GetClearImpl<GameServer_Status>(), &GameServer_Status::ByteSizeLong, 4691 &GameServer_Status::_InternalSerialize, 4692 #endif // PROTOBUF_CUSTOM_VTABLE 4693 PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_._cached_size_), 4694 false, 4695 }, 4696 &GameServer_Status::kDescriptorMethods, 4697 &descriptor_table_sdk_2eproto, 4698 nullptr, // tracker 4699 }; 4700 } 4701 4702 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const 4703 ::google::protobuf::internal::ClassDataFull GameServer_Status_class_data_ = 4704 GameServer_Status::InternalGenerateClassData_(); 4705 4706 PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL 4707 GameServer_Status::GetClassData() const { 4708 ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_class_data_); 4709 ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_class_data_.tc_table); 4710 return GameServer_Status_class_data_.base(); 4711 } 4712 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 4713 const ::_pbi::TcParseTable<3, 7, 7, 66, 2> 4714 GameServer_Status::_table_ = { 4715 { 4716 PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_._has_bits_), 4717 0, // no _extensions_ 4718 7, 56, // max_field_number, fast_idx_mask 4719 offsetof(decltype(_table_), field_lookup_table), 4720 4294967168, // skipmap 4721 offsetof(decltype(_table_), field_entries), 4722 7, // num_field_entries 4723 7, // num_aux_entries 4724 offsetof(decltype(_table_), aux_entries), 4725 GameServer_Status_class_data_.base(), 4726 nullptr, // post_loop_handler 4727 ::_pbi::TcParser::GenericFallback, // fallback 4728 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE 4729 ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status>(), // to_prefetch 4730 #endif // PROTOBUF_PREFETCH_PARSE_TABLE 4731 }, {{ 4732 {::_pbi::TcParser::MiniParse, {}}, 4733 // string state = 1; 4734 {::_pbi::TcParser::FastUS1, 4735 {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.state_)}}, 4736 // string address = 2; 4737 {::_pbi::TcParser::FastUS1, 4738 {18, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.address_)}}, 4739 // repeated .agones.dev.sdk.GameServer.Status.Port ports = 3; 4740 {::_pbi::TcParser::FastMtR1, 4741 {26, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.ports_)}}, 4742 // .agones.dev.sdk.GameServer.Status.PlayerStatus players = 4; 4743 {::_pbi::TcParser::FastMtS1, 4744 {34, 2, 1, PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.players_)}}, 4745 {::_pbi::TcParser::MiniParse, {}}, 4746 {::_pbi::TcParser::MiniParse, {}}, 4747 // repeated .agones.dev.sdk.GameServer.Status.Address addresses = 7; 4748 {::_pbi::TcParser::FastMtR1, 4749 {58, 63, 2, PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.addresses_)}}, 4750 }}, {{ 4751 65535, 65535 4752 }}, {{ 4753 // string state = 1; 4754 {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.state_), _Internal::kHasBitsOffset + 0, 0, 4755 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, 4756 // string address = 2; 4757 {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.address_), _Internal::kHasBitsOffset + 1, 0, 4758 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, 4759 // repeated .agones.dev.sdk.GameServer.Status.Port ports = 3; 4760 {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.ports_), -1, 0, 4761 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, 4762 // .agones.dev.sdk.GameServer.Status.PlayerStatus players = 4; 4763 {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.players_), _Internal::kHasBitsOffset + 2, 1, 4764 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, 4765 // map<string, .agones.dev.sdk.GameServer.Status.CounterStatus> counters = 5; 4766 {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.counters_), -1, 3, 4767 (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, 4768 // map<string, .agones.dev.sdk.GameServer.Status.ListStatus> lists = 6; 4769 {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.lists_), -1, 5, 4770 (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, 4771 // repeated .agones.dev.sdk.GameServer.Status.Address addresses = 7; 4772 {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.addresses_), -1, 2, 4773 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, 4774 }}, 4775 {{ 4776 {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_Port>()}, 4777 {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_PlayerStatus>()}, 4778 {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_Address>()}, 4779 {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, 4780 9, 11, 4781 0)}, 4782 {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_CounterStatus>()}, 4783 {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, 4784 9, 11, 4785 0)}, 4786 {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_ListStatus>()}, 4787 }}, 4788 {{ 4789 "\40\5\7\0\0\10\5\0" 4790 "agones.dev.sdk.GameServer.Status" 4791 "state" 4792 "address" 4793 "counters" 4794 "lists" 4795 }}, 4796 }; 4797 PROTOBUF_NOINLINE void GameServer_Status::Clear() { 4798 // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status) 4799 ::google::protobuf::internal::TSanWrite(&_impl_); 4800 ::uint32_t cached_has_bits = 0; 4801 // Prevent compiler warnings about cached_has_bits being unused 4802 (void) cached_has_bits; 4803 4804 _impl_.ports_.Clear(); 4805 _impl_.counters_.Clear(); 4806 _impl_.lists_.Clear(); 4807 _impl_.addresses_.Clear(); 4808 cached_has_bits = _impl_._has_bits_[0]; 4809 if ((cached_has_bits & 0x00000007u) != 0) { 4810 if ((cached_has_bits & 0x00000001u) != 0) { 4811 _impl_.state_.ClearNonDefaultToEmpty(); 4812 } 4813 if ((cached_has_bits & 0x00000002u) != 0) { 4814 _impl_.address_.ClearNonDefaultToEmpty(); 4815 } 4816 if ((cached_has_bits & 0x00000004u) != 0) { 4817 ABSL_DCHECK(_impl_.players_ != nullptr); 4818 _impl_.players_->Clear(); 4819 } 4820 } 4821 _impl_._has_bits_.Clear(); 4822 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); 4823 } 4824 4825 #if defined(PROTOBUF_CUSTOM_VTABLE) 4826 ::uint8_t* PROTOBUF_NONNULL GameServer_Status::_InternalSerialize( 4827 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, 4828 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { 4829 const GameServer_Status& this_ = static_cast<const GameServer_Status&>(base); 4830 #else // PROTOBUF_CUSTOM_VTABLE 4831 ::uint8_t* PROTOBUF_NONNULL GameServer_Status::_InternalSerialize( 4832 ::uint8_t* PROTOBUF_NONNULL target, 4833 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { 4834 const GameServer_Status& this_ = *this; 4835 #endif // PROTOBUF_CUSTOM_VTABLE 4836 // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status) 4837 ::uint32_t cached_has_bits = 0; 4838 (void)cached_has_bits; 4839 4840 // string state = 1; 4841 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { 4842 if (!this_._internal_state().empty()) { 4843 const ::std::string& _s = this_._internal_state(); 4844 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 4845 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.state"); 4846 target = stream->WriteStringMaybeAliased(1, _s, target); 4847 } 4848 } 4849 4850 // string address = 2; 4851 if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { 4852 if (!this_._internal_address().empty()) { 4853 const ::std::string& _s = this_._internal_address(); 4854 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 4855 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.address"); 4856 target = stream->WriteStringMaybeAliased(2, _s, target); 4857 } 4858 } 4859 4860 // repeated .agones.dev.sdk.GameServer.Status.Port ports = 3; 4861 for (unsigned i = 0, n = static_cast<unsigned>( 4862 this_._internal_ports_size()); 4863 i < n; i++) { 4864 const auto& repfield = this_._internal_ports().Get(i); 4865 target = 4866 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 4867 3, repfield, repfield.GetCachedSize(), 4868 target, stream); 4869 } 4870 4871 cached_has_bits = this_._impl_._has_bits_[0]; 4872 // .agones.dev.sdk.GameServer.Status.PlayerStatus players = 4; 4873 if ((cached_has_bits & 0x00000004u) != 0) { 4874 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 4875 4, *this_._impl_.players_, this_._impl_.players_->GetCachedSize(), target, 4876 stream); 4877 } 4878 4879 // map<string, .agones.dev.sdk.GameServer.Status.CounterStatus> counters = 5; 4880 if (!this_._internal_counters().empty()) { 4881 using MapType = ::google::protobuf::Map<std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus>; 4882 using WireHelper = _pbi::MapEntryFuncs<std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus, 4883 _pbi::WireFormatLite::TYPE_STRING, 4884 _pbi::WireFormatLite::TYPE_MESSAGE>; 4885 const auto& field = this_._internal_counters(); 4886 4887 if (stream->IsSerializationDeterministic() && field.size() > 1) { 4888 for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) { 4889 target = WireHelper::InternalSerialize( 4890 5, entry.first, entry.second, target, stream); 4891 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 4892 entry.first.data(), static_cast<int>(entry.first.length()), 4893 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.counters"); 4894 } 4895 } else { 4896 for (const auto& entry : field) { 4897 target = WireHelper::InternalSerialize( 4898 5, entry.first, entry.second, target, stream); 4899 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 4900 entry.first.data(), static_cast<int>(entry.first.length()), 4901 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.counters"); 4902 } 4903 } 4904 } 4905 4906 // map<string, .agones.dev.sdk.GameServer.Status.ListStatus> lists = 6; 4907 if (!this_._internal_lists().empty()) { 4908 using MapType = ::google::protobuf::Map<std::string, ::agones::dev::sdk::GameServer_Status_ListStatus>; 4909 using WireHelper = _pbi::MapEntryFuncs<std::string, ::agones::dev::sdk::GameServer_Status_ListStatus, 4910 _pbi::WireFormatLite::TYPE_STRING, 4911 _pbi::WireFormatLite::TYPE_MESSAGE>; 4912 const auto& field = this_._internal_lists(); 4913 4914 if (stream->IsSerializationDeterministic() && field.size() > 1) { 4915 for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) { 4916 target = WireHelper::InternalSerialize( 4917 6, entry.first, entry.second, target, stream); 4918 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 4919 entry.first.data(), static_cast<int>(entry.first.length()), 4920 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.lists"); 4921 } 4922 } else { 4923 for (const auto& entry : field) { 4924 target = WireHelper::InternalSerialize( 4925 6, entry.first, entry.second, target, stream); 4926 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 4927 entry.first.data(), static_cast<int>(entry.first.length()), 4928 ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.lists"); 4929 } 4930 } 4931 } 4932 4933 // repeated .agones.dev.sdk.GameServer.Status.Address addresses = 7; 4934 for (unsigned i = 0, n = static_cast<unsigned>( 4935 this_._internal_addresses_size()); 4936 i < n; i++) { 4937 const auto& repfield = this_._internal_addresses().Get(i); 4938 target = 4939 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 4940 7, repfield, repfield.GetCachedSize(), 4941 target, stream); 4942 } 4943 4944 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { 4945 target = 4946 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( 4947 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); 4948 } 4949 // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.Status) 4950 return target; 4951 } 4952 4953 #if defined(PROTOBUF_CUSTOM_VTABLE) 4954 ::size_t GameServer_Status::ByteSizeLong(const MessageLite& base) { 4955 const GameServer_Status& this_ = static_cast<const GameServer_Status&>(base); 4956 #else // PROTOBUF_CUSTOM_VTABLE 4957 ::size_t GameServer_Status::ByteSizeLong() const { 4958 const GameServer_Status& this_ = *this; 4959 #endif // PROTOBUF_CUSTOM_VTABLE 4960 // @@protoc_insertion_point(message_byte_size_start:agones.dev.sdk.GameServer.Status) 4961 ::size_t total_size = 0; 4962 4963 ::uint32_t cached_has_bits = 0; 4964 // Prevent compiler warnings about cached_has_bits being unused 4965 (void)cached_has_bits; 4966 4967 ::_pbi::Prefetch5LinesFrom7Lines(&this_); 4968 { 4969 // repeated .agones.dev.sdk.GameServer.Status.Port ports = 3; 4970 { 4971 total_size += 1UL * this_._internal_ports_size(); 4972 for (const auto& msg : this_._internal_ports()) { 4973 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); 4974 } 4975 } 4976 // map<string, .agones.dev.sdk.GameServer.Status.CounterStatus> counters = 5; 4977 { 4978 total_size += 4979 1 * ::google::protobuf::internal::FromIntSize(this_._internal_counters_size()); 4980 for (const auto& entry : this_._internal_counters()) { 4981 total_size += _pbi::MapEntryFuncs<std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus, 4982 _pbi::WireFormatLite::TYPE_STRING, 4983 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); 4984 } 4985 } 4986 // map<string, .agones.dev.sdk.GameServer.Status.ListStatus> lists = 6; 4987 { 4988 total_size += 4989 1 * ::google::protobuf::internal::FromIntSize(this_._internal_lists_size()); 4990 for (const auto& entry : this_._internal_lists()) { 4991 total_size += _pbi::MapEntryFuncs<std::string, ::agones::dev::sdk::GameServer_Status_ListStatus, 4992 _pbi::WireFormatLite::TYPE_STRING, 4993 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); 4994 } 4995 } 4996 // repeated .agones.dev.sdk.GameServer.Status.Address addresses = 7; 4997 { 4998 total_size += 1UL * this_._internal_addresses_size(); 4999 for (const auto& msg : this_._internal_addresses()) { 5000 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); 5001 } 5002 } 5003 } 5004 cached_has_bits = this_._impl_._has_bits_[0]; 5005 if ((cached_has_bits & 0x00000007u) != 0) { 5006 // string state = 1; 5007 if ((cached_has_bits & 0x00000001u) != 0) { 5008 if (!this_._internal_state().empty()) { 5009 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( 5010 this_._internal_state()); 5011 } 5012 } 5013 // string address = 2; 5014 if ((cached_has_bits & 0x00000002u) != 0) { 5015 if (!this_._internal_address().empty()) { 5016 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( 5017 this_._internal_address()); 5018 } 5019 } 5020 // .agones.dev.sdk.GameServer.Status.PlayerStatus players = 4; 5021 if ((cached_has_bits & 0x00000004u) != 0) { 5022 total_size += 1 + 5023 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.players_); 5024 } 5025 } 5026 return this_.MaybeComputeUnknownFieldsSize(total_size, 5027 &this_._impl_._cached_size_); 5028 } 5029 5030 void GameServer_Status::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { 5031 auto* const _this = static_cast<GameServer_Status*>(&to_msg); 5032 auto& from = static_cast<const GameServer_Status&>(from_msg); 5033 ::google::protobuf::Arena* arena = _this->GetArena(); 5034 // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status) 5035 ABSL_DCHECK_NE(&from, _this); 5036 ::uint32_t cached_has_bits = 0; 5037 (void) cached_has_bits; 5038 5039 _this->_internal_mutable_ports()->MergeFrom( 5040 from._internal_ports()); 5041 _this->_impl_.counters_.MergeFrom(from._impl_.counters_); 5042 _this->_impl_.lists_.MergeFrom(from._impl_.lists_); 5043 _this->_internal_mutable_addresses()->MergeFrom( 5044 from._internal_addresses()); 5045 cached_has_bits = from._impl_._has_bits_[0]; 5046 if ((cached_has_bits & 0x00000007u) != 0) { 5047 if ((cached_has_bits & 0x00000001u) != 0) { 5048 if (!from._internal_state().empty()) { 5049 _this->_internal_set_state(from._internal_state()); 5050 } else { 5051 if (_this->_impl_.state_.IsDefault()) { 5052 _this->_internal_set_state(""); 5053 } 5054 } 5055 } 5056 if ((cached_has_bits & 0x00000002u) != 0) { 5057 if (!from._internal_address().empty()) { 5058 _this->_internal_set_address(from._internal_address()); 5059 } else { 5060 if (_this->_impl_.address_.IsDefault()) { 5061 _this->_internal_set_address(""); 5062 } 5063 } 5064 } 5065 if ((cached_has_bits & 0x00000004u) != 0) { 5066 ABSL_DCHECK(from._impl_.players_ != nullptr); 5067 if (_this->_impl_.players_ == nullptr) { 5068 _this->_impl_.players_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.players_); 5069 } else { 5070 _this->_impl_.players_->MergeFrom(*from._impl_.players_); 5071 } 5072 } 5073 } 5074 _this->_impl_._has_bits_[0] |= cached_has_bits; 5075 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); 5076 } 5077 5078 void GameServer_Status::CopyFrom(const GameServer_Status& from) { 5079 // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status) 5080 if (&from == this) return; 5081 Clear(); 5082 MergeFrom(from); 5083 } 5084 5085 5086 void GameServer_Status::InternalSwap(GameServer_Status* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { 5087 using ::std::swap; 5088 auto* arena = GetArena(); 5089 ABSL_DCHECK_EQ(arena, other->GetArena()); 5090 _internal_metadata_.InternalSwap(&other->_internal_metadata_); 5091 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); 5092 _impl_.ports_.InternalSwap(&other->_impl_.ports_); 5093 _impl_.counters_.InternalSwap(&other->_impl_.counters_); 5094 _impl_.lists_.InternalSwap(&other->_impl_.lists_); 5095 _impl_.addresses_.InternalSwap(&other->_impl_.addresses_); 5096 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.state_, &other->_impl_.state_, arena); 5097 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.address_, &other->_impl_.address_, arena); 5098 swap(_impl_.players_, other->_impl_.players_); 5099 } 5100 5101 ::google::protobuf::Metadata GameServer_Status::GetMetadata() const { 5102 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); 5103 } 5104 // =================================================================== 5105 5106 class GameServer::_Internal { 5107 public: 5108 using HasBits = 5109 decltype(::std::declval<GameServer>()._impl_._has_bits_); 5110 static constexpr ::int32_t kHasBitsOffset = 5111 8 * PROTOBUF_FIELD_OFFSET(GameServer, _impl_._has_bits_); 5112 }; 5113 5114 GameServer::GameServer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 5115 #if defined(PROTOBUF_CUSTOM_VTABLE) 5116 : ::google::protobuf::Message(arena, GameServer_class_data_.base()) { 5117 #else // PROTOBUF_CUSTOM_VTABLE 5118 : ::google::protobuf::Message(arena) { 5119 #endif // PROTOBUF_CUSTOM_VTABLE 5120 SharedCtor(arena); 5121 // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer) 5122 } 5123 PROTOBUF_NDEBUG_INLINE GameServer::Impl_::Impl_( 5124 ::google::protobuf::internal::InternalVisibility visibility, 5125 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, 5126 const ::agones::dev::sdk::GameServer& from_msg) 5127 : _has_bits_{from._has_bits_}, 5128 _cached_size_{0} {} 5129 5130 GameServer::GameServer( 5131 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, 5132 const GameServer& from) 5133 #if defined(PROTOBUF_CUSTOM_VTABLE) 5134 : ::google::protobuf::Message(arena, GameServer_class_data_.base()) { 5135 #else // PROTOBUF_CUSTOM_VTABLE 5136 : ::google::protobuf::Message(arena) { 5137 #endif // PROTOBUF_CUSTOM_VTABLE 5138 GameServer* const _this = this; 5139 (void)_this; 5140 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( 5141 from._internal_metadata_); 5142 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); 5143 ::uint32_t cached_has_bits = _impl_._has_bits_[0]; 5144 _impl_.object_meta_ = ((cached_has_bits & 0x00000001u) != 0) 5145 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.object_meta_) 5146 : nullptr; 5147 _impl_.spec_ = ((cached_has_bits & 0x00000002u) != 0) 5148 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.spec_) 5149 : nullptr; 5150 _impl_.status_ = ((cached_has_bits & 0x00000004u) != 0) 5151 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.status_) 5152 : nullptr; 5153 5154 // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer) 5155 } 5156 PROTOBUF_NDEBUG_INLINE GameServer::Impl_::Impl_( 5157 ::google::protobuf::internal::InternalVisibility visibility, 5158 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) 5159 : _cached_size_{0} {} 5160 5161 inline void GameServer::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { 5162 new (&_impl_) Impl_(internal_visibility(), arena); 5163 ::memset(reinterpret_cast<char *>(&_impl_) + 5164 offsetof(Impl_, object_meta_), 5165 0, 5166 offsetof(Impl_, status_) - 5167 offsetof(Impl_, object_meta_) + 5168 sizeof(Impl_::status_)); 5169 } 5170 GameServer::~GameServer() { 5171 // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer) 5172 SharedDtor(*this); 5173 } 5174 inline void GameServer::SharedDtor(MessageLite& self) { 5175 GameServer& this_ = static_cast<GameServer&>(self); 5176 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); 5177 ABSL_DCHECK(this_.GetArena() == nullptr); 5178 delete this_._impl_.object_meta_; 5179 delete this_._impl_.spec_; 5180 delete this_._impl_.status_; 5181 this_._impl_.~Impl_(); 5182 } 5183 5184 inline void* PROTOBUF_NONNULL GameServer::PlacementNew_( 5185 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, 5186 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { 5187 return ::new (mem) GameServer(arena); 5188 } 5189 constexpr auto GameServer::InternalNewImpl_() { 5190 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GameServer), 5191 alignof(GameServer)); 5192 } 5193 constexpr auto GameServer::InternalGenerateClassData_() { 5194 return ::google::protobuf::internal::ClassDataFull{ 5195 ::google::protobuf::internal::ClassData{ 5196 &_GameServer_default_instance_._instance, 5197 &_table_.header, 5198 nullptr, // OnDemandRegisterArenaDtor 5199 nullptr, // IsInitialized 5200 &GameServer::MergeImpl, 5201 ::google::protobuf::Message::GetNewImpl<GameServer>(), 5202 #if defined(PROTOBUF_CUSTOM_VTABLE) 5203 &GameServer::SharedDtor, 5204 ::google::protobuf::Message::GetClearImpl<GameServer>(), &GameServer::ByteSizeLong, 5205 &GameServer::_InternalSerialize, 5206 #endif // PROTOBUF_CUSTOM_VTABLE 5207 PROTOBUF_FIELD_OFFSET(GameServer, _impl_._cached_size_), 5208 false, 5209 }, 5210 &GameServer::kDescriptorMethods, 5211 &descriptor_table_sdk_2eproto, 5212 nullptr, // tracker 5213 }; 5214 } 5215 5216 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const 5217 ::google::protobuf::internal::ClassDataFull GameServer_class_data_ = 5218 GameServer::InternalGenerateClassData_(); 5219 5220 PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL 5221 GameServer::GetClassData() const { 5222 ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_class_data_); 5223 ::google::protobuf::internal::PrefetchToLocalCache(GameServer_class_data_.tc_table); 5224 return GameServer_class_data_.base(); 5225 } 5226 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 5227 const ::_pbi::TcParseTable<2, 3, 3, 0, 2> 5228 GameServer::_table_ = { 5229 { 5230 PROTOBUF_FIELD_OFFSET(GameServer, _impl_._has_bits_), 5231 0, // no _extensions_ 5232 3, 24, // max_field_number, fast_idx_mask 5233 offsetof(decltype(_table_), field_lookup_table), 5234 4294967288, // skipmap 5235 offsetof(decltype(_table_), field_entries), 5236 3, // num_field_entries 5237 3, // num_aux_entries 5238 offsetof(decltype(_table_), aux_entries), 5239 GameServer_class_data_.base(), 5240 nullptr, // post_loop_handler 5241 ::_pbi::TcParser::GenericFallback, // fallback 5242 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE 5243 ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer>(), // to_prefetch 5244 #endif // PROTOBUF_PREFETCH_PARSE_TABLE 5245 }, {{ 5246 {::_pbi::TcParser::MiniParse, {}}, 5247 // .agones.dev.sdk.GameServer.ObjectMeta object_meta = 1; 5248 {::_pbi::TcParser::FastMtS1, 5249 {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer, _impl_.object_meta_)}}, 5250 // .agones.dev.sdk.GameServer.Spec spec = 2; 5251 {::_pbi::TcParser::FastMtS1, 5252 {18, 1, 1, PROTOBUF_FIELD_OFFSET(GameServer, _impl_.spec_)}}, 5253 // .agones.dev.sdk.GameServer.Status status = 3; 5254 {::_pbi::TcParser::FastMtS1, 5255 {26, 2, 2, PROTOBUF_FIELD_OFFSET(GameServer, _impl_.status_)}}, 5256 }}, {{ 5257 65535, 65535 5258 }}, {{ 5259 // .agones.dev.sdk.GameServer.ObjectMeta object_meta = 1; 5260 {PROTOBUF_FIELD_OFFSET(GameServer, _impl_.object_meta_), _Internal::kHasBitsOffset + 0, 0, 5261 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, 5262 // .agones.dev.sdk.GameServer.Spec spec = 2; 5263 {PROTOBUF_FIELD_OFFSET(GameServer, _impl_.spec_), _Internal::kHasBitsOffset + 1, 1, 5264 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, 5265 // .agones.dev.sdk.GameServer.Status status = 3; 5266 {PROTOBUF_FIELD_OFFSET(GameServer, _impl_.status_), _Internal::kHasBitsOffset + 2, 2, 5267 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, 5268 }}, 5269 {{ 5270 {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_ObjectMeta>()}, 5271 {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Spec>()}, 5272 {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status>()}, 5273 }}, 5274 {{ 5275 }}, 5276 }; 5277 PROTOBUF_NOINLINE void GameServer::Clear() { 5278 // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer) 5279 ::google::protobuf::internal::TSanWrite(&_impl_); 5280 ::uint32_t cached_has_bits = 0; 5281 // Prevent compiler warnings about cached_has_bits being unused 5282 (void) cached_has_bits; 5283 5284 cached_has_bits = _impl_._has_bits_[0]; 5285 if ((cached_has_bits & 0x00000007u) != 0) { 5286 if ((cached_has_bits & 0x00000001u) != 0) { 5287 ABSL_DCHECK(_impl_.object_meta_ != nullptr); 5288 _impl_.object_meta_->Clear(); 5289 } 5290 if ((cached_has_bits & 0x00000002u) != 0) { 5291 ABSL_DCHECK(_impl_.spec_ != nullptr); 5292 _impl_.spec_->Clear(); 5293 } 5294 if ((cached_has_bits & 0x00000004u) != 0) { 5295 ABSL_DCHECK(_impl_.status_ != nullptr); 5296 _impl_.status_->Clear(); 5297 } 5298 } 5299 _impl_._has_bits_.Clear(); 5300 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); 5301 } 5302 5303 #if defined(PROTOBUF_CUSTOM_VTABLE) 5304 ::uint8_t* PROTOBUF_NONNULL GameServer::_InternalSerialize( 5305 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, 5306 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { 5307 const GameServer& this_ = static_cast<const GameServer&>(base); 5308 #else // PROTOBUF_CUSTOM_VTABLE 5309 ::uint8_t* PROTOBUF_NONNULL GameServer::_InternalSerialize( 5310 ::uint8_t* PROTOBUF_NONNULL target, 5311 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { 5312 const GameServer& this_ = *this; 5313 #endif // PROTOBUF_CUSTOM_VTABLE 5314 // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer) 5315 ::uint32_t cached_has_bits = 0; 5316 (void)cached_has_bits; 5317 5318 cached_has_bits = this_._impl_._has_bits_[0]; 5319 // .agones.dev.sdk.GameServer.ObjectMeta object_meta = 1; 5320 if ((cached_has_bits & 0x00000001u) != 0) { 5321 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 5322 1, *this_._impl_.object_meta_, this_._impl_.object_meta_->GetCachedSize(), target, 5323 stream); 5324 } 5325 5326 // .agones.dev.sdk.GameServer.Spec spec = 2; 5327 if ((cached_has_bits & 0x00000002u) != 0) { 5328 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 5329 2, *this_._impl_.spec_, this_._impl_.spec_->GetCachedSize(), target, 5330 stream); 5331 } 5332 5333 // .agones.dev.sdk.GameServer.Status status = 3; 5334 if ((cached_has_bits & 0x00000004u) != 0) { 5335 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 5336 3, *this_._impl_.status_, this_._impl_.status_->GetCachedSize(), target, 5337 stream); 5338 } 5339 5340 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { 5341 target = 5342 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( 5343 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); 5344 } 5345 // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer) 5346 return target; 5347 } 5348 5349 #if defined(PROTOBUF_CUSTOM_VTABLE) 5350 ::size_t GameServer::ByteSizeLong(const MessageLite& base) { 5351 const GameServer& this_ = static_cast<const GameServer&>(base); 5352 #else // PROTOBUF_CUSTOM_VTABLE 5353 ::size_t GameServer::ByteSizeLong() const { 5354 const GameServer& this_ = *this; 5355 #endif // PROTOBUF_CUSTOM_VTABLE 5356 // @@protoc_insertion_point(message_byte_size_start:agones.dev.sdk.GameServer) 5357 ::size_t total_size = 0; 5358 5359 ::uint32_t cached_has_bits = 0; 5360 // Prevent compiler warnings about cached_has_bits being unused 5361 (void)cached_has_bits; 5362 5363 ::_pbi::Prefetch5LinesFrom7Lines(&this_); 5364 cached_has_bits = this_._impl_._has_bits_[0]; 5365 if ((cached_has_bits & 0x00000007u) != 0) { 5366 // .agones.dev.sdk.GameServer.ObjectMeta object_meta = 1; 5367 if ((cached_has_bits & 0x00000001u) != 0) { 5368 total_size += 1 + 5369 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.object_meta_); 5370 } 5371 // .agones.dev.sdk.GameServer.Spec spec = 2; 5372 if ((cached_has_bits & 0x00000002u) != 0) { 5373 total_size += 1 + 5374 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.spec_); 5375 } 5376 // .agones.dev.sdk.GameServer.Status status = 3; 5377 if ((cached_has_bits & 0x00000004u) != 0) { 5378 total_size += 1 + 5379 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.status_); 5380 } 5381 } 5382 return this_.MaybeComputeUnknownFieldsSize(total_size, 5383 &this_._impl_._cached_size_); 5384 } 5385 5386 void GameServer::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { 5387 auto* const _this = static_cast<GameServer*>(&to_msg); 5388 auto& from = static_cast<const GameServer&>(from_msg); 5389 ::google::protobuf::Arena* arena = _this->GetArena(); 5390 // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer) 5391 ABSL_DCHECK_NE(&from, _this); 5392 ::uint32_t cached_has_bits = 0; 5393 (void) cached_has_bits; 5394 5395 cached_has_bits = from._impl_._has_bits_[0]; 5396 if ((cached_has_bits & 0x00000007u) != 0) { 5397 if ((cached_has_bits & 0x00000001u) != 0) { 5398 ABSL_DCHECK(from._impl_.object_meta_ != nullptr); 5399 if (_this->_impl_.object_meta_ == nullptr) { 5400 _this->_impl_.object_meta_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.object_meta_); 5401 } else { 5402 _this->_impl_.object_meta_->MergeFrom(*from._impl_.object_meta_); 5403 } 5404 } 5405 if ((cached_has_bits & 0x00000002u) != 0) { 5406 ABSL_DCHECK(from._impl_.spec_ != nullptr); 5407 if (_this->_impl_.spec_ == nullptr) { 5408 _this->_impl_.spec_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.spec_); 5409 } else { 5410 _this->_impl_.spec_->MergeFrom(*from._impl_.spec_); 5411 } 5412 } 5413 if ((cached_has_bits & 0x00000004u) != 0) { 5414 ABSL_DCHECK(from._impl_.status_ != nullptr); 5415 if (_this->_impl_.status_ == nullptr) { 5416 _this->_impl_.status_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.status_); 5417 } else { 5418 _this->_impl_.status_->MergeFrom(*from._impl_.status_); 5419 } 5420 } 5421 } 5422 _this->_impl_._has_bits_[0] |= cached_has_bits; 5423 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); 5424 } 5425 5426 void GameServer::CopyFrom(const GameServer& from) { 5427 // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer) 5428 if (&from == this) return; 5429 Clear(); 5430 MergeFrom(from); 5431 } 5432 5433 5434 void GameServer::InternalSwap(GameServer* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { 5435 using ::std::swap; 5436 _internal_metadata_.InternalSwap(&other->_internal_metadata_); 5437 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); 5438 ::google::protobuf::internal::memswap< 5439 PROTOBUF_FIELD_OFFSET(GameServer, _impl_.status_) 5440 + sizeof(GameServer::_impl_.status_) 5441 - PROTOBUF_FIELD_OFFSET(GameServer, _impl_.object_meta_)>( 5442 reinterpret_cast<char*>(&_impl_.object_meta_), 5443 reinterpret_cast<char*>(&other->_impl_.object_meta_)); 5444 } 5445 5446 ::google::protobuf::Metadata GameServer::GetMetadata() const { 5447 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); 5448 } 5449 // @@protoc_insertion_point(namespace_scope) 5450 } // namespace sdk 5451 } // namespace dev 5452 } // namespace agones 5453 namespace google { 5454 namespace protobuf { 5455 } // namespace protobuf 5456 } // namespace google 5457 // @@protoc_insertion_point(global_scope) 5458 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type 5459 _static_init2_ [[maybe_unused]] = 5460 (::_pbi::AddDescriptors(&descriptor_table_sdk_2eproto), 5461 ::std::false_type{}); 5462 #include "google/protobuf/port_undef.inc"