From faf690898225e6507028d02b9aafd73fb482120d Mon Sep 17 00:00:00 2001 From: patrick kenneally Date: Fri, 27 Feb 2026 22:28:11 -0700 Subject: [PATCH 01/10] Add vcpkg config and manifest --- .gitignore | 23 ++++++++++++----------- vcpkg-configuration.json | 8 ++++++++ vcpkg.json | 12 ++++++++++++ 3 files changed, 32 insertions(+), 11 deletions(-) create mode 100644 vcpkg-configuration.json create mode 100644 vcpkg.json diff --git a/.gitignore b/.gitignore index 0b6a6451..2965d894 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,16 @@ # Custom ignore paths -/Saved -/Releases -/DerivedDataCache -/.git -/.vscode -/Intermediate - -# Third party build paths -/Source/ThirdParty/ProtobufLibrary/include -/Source/ThirdParty/ProtobufLibrary/lib -/Content/FlybyData +Saved +Releases +DerivedDataCache +.git +.vscode +Intermediate + +# Packages installed with vcpkg +vcpkg_installed/ + +# Protobuf bin files +Content/FlybyData build_config.json diff --git a/vcpkg-configuration.json b/vcpkg-configuration.json new file mode 100644 index 00000000..ace80ab0 --- /dev/null +++ b/vcpkg-configuration.json @@ -0,0 +1,8 @@ +{ + "default-registry": { + "kind": "git", + "baseline": "2b65c20fc66eda893aa15a15a453c3cf09500b19", + "repository": "https://github.com/microsoft/vcpkg" + }, + "registries": [] +} diff --git a/vcpkg.json b/vcpkg.json new file mode 100644 index 00000000..298263b7 --- /dev/null +++ b/vcpkg.json @@ -0,0 +1,12 @@ +{ + "name": "cielim", + "version-string": "0.1.0", + "dependencies": [ + "zeromq", + "cppzmq", + "protobuf" + ], + "overrides": [ + { "name": "protobuf", "version": "3.18.0", "port-version": 1 } + ] +} From 4f89c59044f93977a84d48337fe56b070f8fab6b Mon Sep 17 00:00:00 2001 From: Owen Allison Date: Mon, 18 May 2026 02:03:25 -0600 Subject: [PATCH 02/10] Update build.cs files for vcpkg --- .../ProtobufLibrary/ProtobufLibrary.Build.cs | 23 +++++++----- Source/ThirdParty/ZMQ/ZMQ.Build.cs | 28 +++++++-------- Source/cielim/cielim.Build.cs | 35 ++++++++++++++++--- 3 files changed, 59 insertions(+), 27 deletions(-) diff --git a/Source/ThirdParty/ProtobufLibrary/ProtobufLibrary.Build.cs b/Source/ThirdParty/ProtobufLibrary/ProtobufLibrary.Build.cs index a0670a76..9f170870 100644 --- a/Source/ThirdParty/ProtobufLibrary/ProtobufLibrary.Build.cs +++ b/Source/ThirdParty/ProtobufLibrary/ProtobufLibrary.Build.cs @@ -11,22 +11,27 @@ public ProtobufLibrary(ReadOnlyTargetRules Target) : base(Target) Type = ModuleRules.ModuleType.External; PrecompileForTargets = PrecompileTargetsType.Any; - // Link to protobuf libraries - if (Target.Platform == UnrealTargetPlatform.Mac || Target.Platform == UnrealTargetPlatform.Linux) + // Link protobuf library + + string VcpkgDir = Path.Combine(Target.ProjectFile.Directory.FullName, "vcpkg_installed"); + + string Architecture = Target.Architecture.ToString().Contains("arm64") ? "arm64" : "x64"; + + if (Target.Platform == UnrealTargetPlatform.Mac) + { + PublicAdditionalLibraries.Add(Path.Combine(VcpkgDir, $"{Architecture}-osx", "lib", "libprotobuf.a")); + } + else if (Target.Platform == UnrealTargetPlatform.Linux) { - PublicAdditionalLibraries.Add(Path.Combine(ModuleDirectory, "lib/libprotobuf.a")); + PublicAdditionalLibraries.Add(Path.Combine(VcpkgDir, $"{Architecture}-linux", "lib", "libprotobuf.a")); } else if (Target.Platform == UnrealTargetPlatform.Win64) { - PublicAdditionalLibraries.Add(Path.Combine(ModuleDirectory, "lib/libprotobuf.lib")); + PublicAdditionalLibraries.Add(Path.Combine(VcpkgDir, $"{Architecture}-windows-static-md", "lib", "libprotobuf.lib")); } else { - string Err = string.Format("Protobuf runtime not available for platform {0}", Target.Platform.ToString()); - throw new BuildException(Err); + throw new BuildException($"Unsupported platform: {Target.Platform}"); } - - // Add google headers to include path - PublicIncludePaths.Add(Path.Combine(ModuleDirectory, "include")); } } diff --git a/Source/ThirdParty/ZMQ/ZMQ.Build.cs b/Source/ThirdParty/ZMQ/ZMQ.Build.cs index 73b10471..80845aec 100644 --- a/Source/ThirdParty/ZMQ/ZMQ.Build.cs +++ b/Source/ThirdParty/ZMQ/ZMQ.Build.cs @@ -11,28 +11,28 @@ public ZMQ(ReadOnlyTargetRules Target) : base(Target) Type = ModuleRules.ModuleType.External; PrecompileForTargets = PrecompileTargetsType.Any; - // Link to libzmq libraries + // Link to libzmq library - if (Target.Platform == UnrealTargetPlatform.Mac || Target.Platform == UnrealTargetPlatform.Linux) + string VcpkgDir = Path.Combine(Target.ProjectFile.Directory.FullName, "vcpkg_installed"); + + string Architecture = Target.Architecture.ToString().Contains("arm64") ? "arm64" : "x64"; + + if (Target.Platform == UnrealTargetPlatform.Mac) + { + PublicAdditionalLibraries.Add(Path.Combine(VcpkgDir, $"{Architecture}-osx", "lib", "libzmq.a")); + } + else if (Target.Platform == UnrealTargetPlatform.Linux) { - // .a is unix specific library file - PublicAdditionalLibraries.Add(Path.Combine(ModuleDirectory, "libzmq/build/lib/libzmq.a")); + PublicAdditionalLibraries.Add(Path.Combine(VcpkgDir, $"{Architecture}-linux", "lib", "libzmq.a")); } else if (Target.Platform == UnrealTargetPlatform.Win64) { - RuntimeDependencies.Add(Path.Combine(ModuleDirectory, "libzmq/build/bin/Release/libzmq-v143-mt-4_3_6.dll")); - - // .lib is windows specific library file - PublicAdditionalLibraries.Add(Path.Combine(ModuleDirectory, "libzmq/build/lib/Release/libzmq-v143-mt-4_3_6.lib")); + PublicDefinitions.Add("ZMQ_STATIC"); + PublicAdditionalLibraries.Add(Path.Combine(VcpkgDir, $"{Architecture}-windows-static-md", "lib", "libzmq-mt-s-4_3_5.lib")); } else { - string Err = string.Format("ZMQ library not available for platform {0}", Target.Platform.ToString()); - throw new BuildException(Err); + throw new BuildException($"Unsupported platform: {Target.Platform}"); } - - // Add ZMQ headers to include path - PublicIncludePaths.Add(Path.Combine(ModuleDirectory, "cppzmq")); - PublicIncludePaths.Add(Path.Combine(ModuleDirectory, "libzmq/include")); } } diff --git a/Source/cielim/cielim.Build.cs b/Source/cielim/cielim.Build.cs index 1dcf24d8..0f9fdd43 100644 --- a/Source/cielim/cielim.Build.cs +++ b/Source/cielim/cielim.Build.cs @@ -1,4 +1,5 @@ using UnrealBuildTool; +using System; using System.IO; public class cielim : ModuleRules @@ -9,12 +10,38 @@ public cielim(ReadOnlyTargetRules Target) : base(Target) bEnableExceptions = true; // Allow c++ exception handling - // Add module dependencies + // Log platform and architecture in console output for debugging + Console.WriteLine("Platform: " + Target.Platform); + Console.WriteLine("Architecture: " + Target.Architecture); - PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "RenderCore", "Renderer", "RHI", "ProceduralMeshComponent" }); + // Add engine module dependencies + PrivateDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "RenderCore", "Renderer", "RHI", "ProceduralMeshComponent" }); + PrivateIncludePaths.AddRange(new string[] { Path.Combine(GetModuleDirectory("Renderer"), "Internal") }); + // Add third party module dependencies PrivateDependencyModuleNames.AddRange(new string[] { "ProtobufLibrary", "ZMQ" }); - - PrivateIncludePaths.AddRange(new string[] { Path.Combine(GetModuleDirectory("Renderer"), "Internal") }); + + // Add vcpkg includes + + string VcpkgDir = Path.Combine(Target.ProjectFile.Directory.FullName, "vcpkg_installed"); + + string Architecture = Target.Architecture.ToString().Contains("arm64") ? "arm64" : "x64"; + + if (Target.Platform == UnrealTargetPlatform.Mac) + { + PrivateIncludePaths.Add(Path.Combine(VcpkgDir, $"{Architecture}-osx", "include")); + } + else if (Target.Platform == UnrealTargetPlatform.Linux) + { + PrivateIncludePaths.Add(Path.Combine(VcpkgDir, $"{Architecture}-linux", "include")); + } + else if (Target.Platform == UnrealTargetPlatform.Win64) + { + PrivateIncludePaths.Add(Path.Combine(VcpkgDir, $"{Architecture}-windows-static-md", "include")); + } + else + { + throw new BuildException($"Unsupported platform: {Target.Platform}"); + } } } From 4eb0825430f5a131a2722ce27bd6dce1ce868043 Mon Sep 17 00:00:00 2001 From: patrick kenneally Date: Fri, 27 Feb 2026 22:30:12 -0700 Subject: [PATCH 03/10] Remove git submodules --- .gitmodules | 9 --- .../ProtobufLibrary/ProtobufLibrary_build.sh | 76 ------------------- .../ProtobufLibrary_build_win64.bat | 53 ------------- Source/ThirdParty/ProtobufLibrary/protobuf | 1 - .../ProtobufLibrary/protobuf_fix.patch | 47 ------------ Source/ThirdParty/ZMQ/ZMQ_build.sh | 37 --------- Source/ThirdParty/ZMQ/ZMQ_build_win64.bat | 43 ----------- Source/ThirdParty/ZMQ/cppzmq | 1 - Source/ThirdParty/ZMQ/libzmq | 1 - build.py | 39 ---------- 10 files changed, 307 deletions(-) delete mode 100644 .gitmodules delete mode 100755 Source/ThirdParty/ProtobufLibrary/ProtobufLibrary_build.sh delete mode 100644 Source/ThirdParty/ProtobufLibrary/ProtobufLibrary_build_win64.bat delete mode 160000 Source/ThirdParty/ProtobufLibrary/protobuf delete mode 100644 Source/ThirdParty/ProtobufLibrary/protobuf_fix.patch delete mode 100755 Source/ThirdParty/ZMQ/ZMQ_build.sh delete mode 100644 Source/ThirdParty/ZMQ/ZMQ_build_win64.bat delete mode 160000 Source/ThirdParty/ZMQ/cppzmq delete mode 160000 Source/ThirdParty/ZMQ/libzmq diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 729de9dc..00000000 --- a/.gitmodules +++ /dev/null @@ -1,9 +0,0 @@ -[submodule "Source/ThirdParty/ProtobufLibrary/protobuf"] - path = Source/ThirdParty/ProtobufLibrary/protobuf - url = https://github.com/protocolbuffers/protobuf.git -[submodule "Source/ThirdParty/ZMQ/libzmq"] - path = Source/ThirdParty/ZMQ/libzmq - url = https://github.com/zeromq/libzmq.git -[submodule "Source/ThirdParty/ZMQ/cppzmq"] - path = Source/ThirdParty/ZMQ/cppzmq - url = https://github.com/zeromq/cppzmq.git diff --git a/Source/ThirdParty/ProtobufLibrary/ProtobufLibrary_build.sh b/Source/ThirdParty/ProtobufLibrary/ProtobufLibrary_build.sh deleted file mode 100755 index 1d0da472..00000000 --- a/Source/ThirdParty/ProtobufLibrary/ProtobufLibrary_build.sh +++ /dev/null @@ -1,76 +0,0 @@ -#!/bin/tcsh -f -echo "Current working directory -> ${cwd}" -echo "Relative path -> ${1}" - -set protobuf_lib_path = "lib/libprotobuf.a" -echo "protobuf_lib_path: ${protobuf_lib_path}" - -set protobuf_lib_full_path = ${1}${protobuf_lib_path} -echo "protobuf_lib_full_path: ${protobuf_lib_full_path}" - -# Check if protobuf has already been built - -if ( -f $protobuf_lib_full_path ) then - echo "Library ${protobuf_lib_full_path} exists. It will not be rebuilt." -else - echo "Library ${protobuf_lib_path} not found. Beginning build process..." - - # Make sure we're in the ProtobufLibrary folder - cd ${1} - - # Update submodules (necessary) - cd protobuf - git submodule update --init --recursive - - # Apply patch for v3.18.0 which was fixed at the below URL - # but didn't get in to protobufs until 3.20.0. Unfortunately, - # the most recent version we can used is tied to BSK's - # currently or 3.18.0 - git apply ../protobuf_fix.patch - - # Link to fix: - # https://github.com/protocolbuffers/protobuf/commit/ef1c9fd9077440acacf4fec112153dda4a2c9d44#diff-d35d85d6ef5be92bdbaa901ca9155566f5d7dc2e4fbf5e4ae6d111a615169959 - - # AutoMake Build - echo "Building protobuf..." - ./autogen.sh - ./configure - make -j8 - - # Run checks - make check - - cd .. - - # Copy necessary includes to dedicated include folder - rm -rf include/google - mkdir -p include/google - cp -r protobuf/src/google/ include/google - - # Copy necessary libraries to dedicated lib folder - rm -rf lib - mkdir -p lib - cp protobuf/src/.libs/libprotobuf.a lib - - - # In case of upgrade to Cmake, use this --------------- - # ----------------------------------------------------- - # Create build directory - # cd .. - # mkdir -p build - - # Build w/ Cmake - # cd build - # cmake ../protobuf/ -D CMAKE_CXX_STANDARD=14 - # cmake --build . --parallel 8 - # sudo cmake --install . - - # cd .. - # mkdir -p include/google - # cp -r protobuf/src/google/ include/google - # cp -r protobuf/third_party/abseil-cpp/absl include/absl - - # mkdir -p lib/Release - # cp build/libprotobuf.a lib - -endif diff --git a/Source/ThirdParty/ProtobufLibrary/ProtobufLibrary_build_win64.bat b/Source/ThirdParty/ProtobufLibrary/ProtobufLibrary_build_win64.bat deleted file mode 100644 index c45a9b63..00000000 --- a/Source/ThirdParty/ProtobufLibrary/ProtobufLibrary_build_win64.bat +++ /dev/null @@ -1,53 +0,0 @@ -@echo off -echo Current working directory: %CD% -echo Relative path: %~1 - -:: Path from build directory to libprotobuf library file -set "protobuf_lib_path=lib\libprotobuf.lib" -echo protobuf_lib_path: %protobuf_lib_path% - -set "protobuf_lib_full_path=%~1%protobuf_lib_path%" -echo protobuf_lib_full_path: %protobuf_lib_full_path% - -:: Check if protobuf has already been built -if exist "%protobuf_lib_full_path%" ( - - echo Library %protobuf_lib_full_path% exists. It will not be rebuilt. - -) else ( - - echo Library %protobuf_lib_path% not found. Beginning build process... - - @REM Make sure we're in the ProtobufLibrary folder - cd /d "%~1" - - :: Update submodules (necessary) - cd protobuf - git submodule update --init --recursive - - @REM Apply patch for v3.18.0 which was fixed at the below URL - @REM but didn't get in to protobufs until 3.20.0. Unfortunately, - @REM the most recent version we can used is tied to BSK's - @REM currently or 3.18.0 - git apply ../protobuf_fix.patch - - @REM Link to fix: - @REM https://github.com/protocolbuffers/protobuf/commit/ef1c9fd9077440acacf4fec112153dda4a2c9d44#diff-d35d85d6ef5be92bdbaa901ca9155566f5d7dc2e4fbf5e4ae6d111a615169959 - - @REM Build w/ Cmake - mkdir compile - cd compile - cmake ../cmake -G "Visual Studio 17 2022" -A x64 ^ - -DCMAKE_BUILD_TYPE=Release ^ - -DCMAKE_CXX_STANDARD=14 ^ - -Dprotobuf_BUILD_SHARED_LIBS=OFF ^ - -Dprotobuf_MSVC_STATIC_RUNTIME=OFF - cmake --build . --parallel 8 --config Release - - cd "..\.." - mkdir include\google - robocopy "protobuf\src\google" "include\google" /E - - mkdir lib\Release - robocopy "protobuf\compile\Release" "lib" "libprotobuf.lib" -) diff --git a/Source/ThirdParty/ProtobufLibrary/protobuf b/Source/ThirdParty/ProtobufLibrary/protobuf deleted file mode 160000 index 89b14b1d..00000000 --- a/Source/ThirdParty/ProtobufLibrary/protobuf +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 89b14b1d16eba4d44af43256fc45b24a6a348557 diff --git a/Source/ThirdParty/ProtobufLibrary/protobuf_fix.patch b/Source/ThirdParty/ProtobufLibrary/protobuf_fix.patch deleted file mode 100644 index 378a62d3..00000000 --- a/Source/ThirdParty/ProtobufLibrary/protobuf_fix.patch +++ /dev/null @@ -1,47 +0,0 @@ -diff --git a/src/google/protobuf/inlined_string_field.h b/src/google/protobuf/inlined_string_field.h -index 17373f511..039de2854 100644 ---- a/src/google/protobuf/inlined_string_field.h -+++ b/src/google/protobuf/inlined_string_field.h -@@ -347,7 +347,7 @@ inline void InlinedStringField::Swap( - InlinedStringField* from, const std::string* /*default_value*/, - Arena* arena, bool donated, bool from_donated, uint32_t* donating_states, - uint32_t* from_donating_states, uint32_t mask) { --#if GOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE -+#ifdef GOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE - // If one is donated and the other is not, undonate the donated one. - if (donated && !from_donated) { - MutableSlow(arena, donated, donating_states, mask); -diff --git a/src/google/protobuf/port_def.inc b/src/google/protobuf/port_def.inc -index c440a8100..88557ddf3 100644 ---- a/src/google/protobuf/port_def.inc -+++ b/src/google/protobuf/port_def.inc -@@ -599,7 +599,7 @@ - #ifdef PROTOBUF_PRAGMA_INIT_SEG - #error PROTOBUF_PRAGMA_INIT_SEG was previously defined - #endif --#if _MSC_VER -+#ifdef _MSC_VER - #define PROTOBUF_PRAGMA_INIT_SEG __pragma(init_seg(lib)) - #else - #define PROTOBUF_PRAGMA_INIT_SEG -@@ -757,7 +757,7 @@ - #endif - - // Silence some MSVC warnings in all our code. --#if _MSC_VER -+#ifdef _MSC_VER - #pragma warning(push) - // For non-trivial unions - #pragma warning(disable : 4582) -diff --git a/src/google/protobuf/port_undef.inc b/src/google/protobuf/port_undef.inc -index 5fef6e455..ed8526501 100644 ---- a/src/google/protobuf/port_undef.inc -+++ b/src/google/protobuf/port_undef.inc -@@ -139,6 +139,6 @@ - #endif - - // Pop the warning(push) from port_def.inc --#if _MSC_VER -+#ifdef _MSC_VER - #pragma warning(pop) - #endif diff --git a/Source/ThirdParty/ZMQ/ZMQ_build.sh b/Source/ThirdParty/ZMQ/ZMQ_build.sh deleted file mode 100755 index ffa8a0d8..00000000 --- a/Source/ThirdParty/ZMQ/ZMQ_build.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/tcsh -f -echo "Current working directory -> ${cwd}" -echo "Relative path -> ${1}" - -set zmq_lib_path = "libzmq/build/lib/libzmq.a" -echo "zmq_lib_path: ${zmq_lib_path}" - -set zmq_lib_full_path = ${1}${zmq_lib_path} -echo "zmq_lib_full_path: ${zmq_lib_full_path}" - -if ( -f $zmq_lib_full_path ) then - echo "ZMQ will not be rebuilt. Library ${zmq_lib_full_path} exists." -else - echo "ZMQ will be built. Library ${zmq_lib_full_path} not found." - - # Make sure we're in the ZMQ folder - cd ${1} - - cd libzmq - git submodule update --init --recursive - - # CMake Build - echo "Building libzmq..." - mkdir -p build - cd build - cmake .. \ - -DCMAKE_BUILD_TYPE=Release \ - -DWITH_TLS="NO" - cmake --build . --parallel 8 --config Release - - cd ../.. - - # Check cppZMQ - cd cppzmq - git submodule update --init --recursive - -endif diff --git a/Source/ThirdParty/ZMQ/ZMQ_build_win64.bat b/Source/ThirdParty/ZMQ/ZMQ_build_win64.bat deleted file mode 100644 index 18717982..00000000 --- a/Source/ThirdParty/ZMQ/ZMQ_build_win64.bat +++ /dev/null @@ -1,43 +0,0 @@ -@echo off -echo Current working directory: %CD% -echo Relative path: %~1 - -:: Path from build directory to libzmq library file -set "zmq_lib_path=libzmq\build\lib\Release\libzmq-v143-mt-4_3_6.lib" -echo zmq_lib_path: %zmq_lib_path% - -set "zmq_lib_full_path=%~1%zmq_lib_path%" -echo zmq_lib_full_path: %zmq_lib_full_path% - -:: Check if ZMQ has already been built -if exist "%zmq_lib_full_path%" ( - - echo ZMQ will not be rebuilt. Library %zmq_lib_full_path% exists.' - -) else ( - - echo ZMQ will be built. Library %zmq_lib_full_path% not found. - - @REM Make sure we're in the ZMQ folder - cd /d "%~1" - - cd libzmq - git submodule update --init --recursive - - @REM CMake Build - echo Building libzmq... - IF NOT EXIST "build" ( - mkdir build - ) - cd build - cmake .. -G "Visual Studio 17 2022" -A x64 ^ - -DCMAKE_BUILD_TYPE=Release ^ - -DWITH_TLS="NO" - cmake --build . --parallel 8 --config Release - - cd "..\.." - - @REM Check cppZMQ - cd cppzmq - git submodule update --init --recursive -) diff --git a/Source/ThirdParty/ZMQ/cppzmq b/Source/ThirdParty/ZMQ/cppzmq deleted file mode 160000 index 6541dd1c..00000000 --- a/Source/ThirdParty/ZMQ/cppzmq +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6541dd1ce9c12bb252e4f7277ad35d3d80270dd1 diff --git a/Source/ThirdParty/ZMQ/libzmq b/Source/ThirdParty/ZMQ/libzmq deleted file mode 160000 index 64db7d28..00000000 --- a/Source/ThirdParty/ZMQ/libzmq +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 64db7d28fea695132834f6d2c5949cfea2f22d01 diff --git a/build.py b/build.py index a70879ff..c50f0165 100644 --- a/build.py +++ b/build.py @@ -13,45 +13,6 @@ def build(platform_name, executable, debug_mode): cielim_path = os.path.dirname(os.path.abspath(__file__)) - # check status of third party libraries - - print("Checking submodules exist...") - - result = subprocess.check_output(["git", "submodule", "status"], stderr=subprocess.STDOUT, text=True) - - for line in result.splitlines(): - if line.startswith("-"): - print("One or more git submodules haven't been cloned and thus the build process cannot proceed.") - response = input("Would you like to clone them now? (y/n) ").strip() - - if response == "y" or response == "yes": - print("Cloning submodules...") - - process = subprocess.Popen( - ["git", "submodule", "update", "--init", "--recursive"], - stdout=sys.stdout, - stderr=sys.stderr, - ) - - process.wait() - - break - - else: - exit() - - print("All submodules have been cloned.") - - print("Status of third party libraries:") - - proto_exists = os.path.exists(os.path.join(cielim_path, "Source/ThirdParty/ProtobufLibrary/lib")) - proto_status = "Built" if proto_exists else "Not built" - print(f"Protobuf... {proto_status}") - - zmq_exists = os.path.exists(os.path.join(cielim_path, "Source/ThirdParty/ZMQ/libzmq/build")) - zmq_status = "Built" if zmq_exists else "Not built" - print(f"ZMQ... {zmq_status}") - process = subprocess.Popen( [ f"{executable}", From 376a55a474e6dc8f21f4a58c7cf1f29b8a081588 Mon Sep 17 00:00:00 2001 From: Owen Allison Date: Tue, 19 May 2026 22:23:56 -0600 Subject: [PATCH 04/10] Add vcpkg install script --- build.py | 14 +++++++-- cielim.uproject | 12 ++++---- vcpkg_install.py | 80 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 97 insertions(+), 9 deletions(-) create mode 100644 vcpkg_install.py diff --git a/build.py b/build.py index c50f0165..f4056ee9 100644 --- a/build.py +++ b/build.py @@ -7,12 +7,17 @@ import argparse import json +import vcpkg_install + def build(platform_name, executable, debug_mode): print(f"Building for {platform_name} {platform.machine()} as {debug_mode}...") cielim_path = os.path.dirname(os.path.abspath(__file__)) + # Ensure dependencies are installed before building + vcpkg_install.install_vcpkg_packages() + process = subprocess.Popen( [ f"{executable}", @@ -30,7 +35,7 @@ def build(platform_name, executable, debug_mode): def cook(platform_name, executable): - print("Cooking content...") + print(f"Cooking content for {platform_name} {platform.machine()}...") cielim_path = os.path.dirname(os.path.abspath(__file__)) @@ -50,7 +55,7 @@ def cook(platform_name, executable): def package(platform_name, executable, debug_mode): - print("Packaging...") + print(f"Packaging for {platform_name} {platform.machine()} as {debug_mode}...") cielim_path = os.path.dirname(os.path.abspath(__file__)) @@ -78,10 +83,13 @@ def package(platform_name, executable, debug_mode): def fullBuildCookRun(platform_name, executable, debug_mode): - print("Doing full run...") + print(f"Doing full run for {platform_name} {platform.machine()} as {debug_mode}...") cielim_path = os.path.dirname(os.path.abspath(__file__)) + # Ensure dependencies are installed before building + vcpkg_install.install_vcpkg_packages() + process = subprocess.Popen( [ f"{executable}", diff --git a/cielim.uproject b/cielim.uproject index b1cd9b64..756faabb 100644 --- a/cielim.uproject +++ b/cielim.uproject @@ -118,20 +118,20 @@ } ], "TargetPlatforms": [ - "Linux", "Mac", + "Linux", "Windows" ], "PreBuildSteps": { "Mac": [ - "export PATH=/opt/homebrew/bin:$PATH", - "tcsh -ef $(ProjectDir)/Source/ThirdParty/ProtobufLibrary/ProtobufLibrary_build.sh \"$(ProjectDir)/Source/ThirdParty/ProtobufLibrary/\" ", - "tcsh -ef $(ProjectDir)/Source/ThirdParty/ZMQ/ZMQ_build.sh \"$(ProjectDir)/Source/ThirdParty/ZMQ/\" " + "python3 $(ProjectDir)/vcpkg_install.py", + ], + "Linux": [ + "python3 $(ProjectDir)/vcpkg_install.py", ], "Win64": [ - "call $(ProjectDir)\\Source\\ThirdParty\\ProtobufLibrary\\ProtobufLibrary_build_win64.bat \"$(ProjectDir)\\Source\\ThirdParty\\ProtobufLibrary\\\" ", - "call $(ProjectDir)\\Source\\ThirdParty\\ZMQ\\ZMQ_build_win64.bat \"$(ProjectDir)\\Source\\ThirdParty\\ZMQ\\\" " + "python $(ProjectDir)\\vcpkg_install.py" ] } } diff --git a/vcpkg_install.py b/vcpkg_install.py new file mode 100644 index 00000000..4722408c --- /dev/null +++ b/vcpkg_install.py @@ -0,0 +1,80 @@ +import os +import platform +import shutil +import subprocess +from pathlib import Path + + +def get_triplet(): + system = platform.system().lower() # Operating system name + machine = platform.machine().lower() # System architecture name + + if machine in ("x86_64", "amd64"): + architecture = "x64" + elif machine in ("arm64", "aarch64"): + architecture = "arm64" + else: + raise RuntimeError(f"Unsupported architecture: {machine}") + + # All libraries are static and so only static triplets should be used + if system == "windows": + return f"{architecture}-windows-static-md" + elif system == "darwin": + return f"{architecture}-osx" + elif system == "linux": + return f"{architecture}-linux" + else: + raise RuntimeError(f"Unsupported platform: {system}") + + +# Installs dependencies using vcpkg. Returns -1 on failure and 1 when packages are already installed, else 0. +def install_vcpkg_packages(): + if shutil.which("vcpkg") is None: + print("Vcpkg installation not detected") + return -1 + + project_root = str(Path(__file__).resolve().parent) + + triplet = None + + try: + triplet = get_triplet() + except RuntimeError as e: + print(f"Error getting vcpkg triplet: {e}") + return -1 + + vcpkg_installed = os.path.join(project_root, "vcpkg_installed") + + # Check if dependencies have already been installed by using libprotobuf as heuristic + + if platform.system().lower() == "windows": + heuristic = "libprotobuf.lib" + else: + heuristic = "libprotobuf.a" + + if os.path.isfile(os.path.join(vcpkg_installed, triplet, "lib", heuristic)): + print(f"Vcpkg dependencies already installed for {triplet}") + return 1 + + print(f"Installing vcpkg dependencies for {triplet}...") + + try: + subprocess.run( + [ + "vcpkg", + "install", + f"--triplet={triplet}", + f"--x-manifest-root={project_root}", + f"--x-install-root={vcpkg_installed}", + ], + check=True, + ) + except subprocess.CalledProcessError as e: + print(f"Vcpkg install failed with exit code {e.returncode}") + return -1 + + return 0 + + +if __name__ == "__main__": + install_vcpkg_packages() From 3849920f84d46ab23731edade6eb9e76f928f76e Mon Sep 17 00:00:00 2001 From: patrick kenneally Date: Mon, 2 Mar 2026 11:59:12 -0700 Subject: [PATCH 05/10] Add vcpkg_installed to folders to clean in build script --- build.py | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/build.py b/build.py index f4056ee9..412529b1 100644 --- a/build.py +++ b/build.py @@ -141,25 +141,16 @@ def clean(): cielim_path = os.path.dirname(os.path.abspath(__file__)) - try: - shutil.rmtree(os.path.join(cielim_path, "Saved")) - except Exception as e: - print(f"Saved/ could not be removed: {e}") - - try: - shutil.rmtree(os.path.join(cielim_path, "Binaries")) - except Exception as e: - print(f"Binaries/ could not be removed: {e}") - - try: - shutil.rmtree(os.path.join(cielim_path, "Intermediate")) - except Exception as e: - print(f"Intermediate/ could not be removed: {e}") - - try: - shutil.rmtree(os.path.join(cielim_path, "DerivedDataCache")) - except Exception as e: - print(f"DerivedDataCache/ could not be removed: {e}") + folders_to_clean = ["Saved", "Binaries", "Intermediate", "DerivedDataCache", "vcpkg_installed"] + + for folder in folders_to_clean: + dir = os.path.join(cielim_path, folder) + + if os.path.isdir(dir): + shutil.rmtree(dir) + print(f"Removed {folder}/") + else: + print(f"{folder}/ already clean") if __name__ == "__main__": From 86e22cc27da7c4a1675d936712f3856989c318c3 Mon Sep 17 00:00:00 2001 From: Owen Allison Date: Thu, 21 May 2026 00:06:22 -0600 Subject: [PATCH 06/10] Rename ProtobufLibrary module to Protobuf --- .../ProtobufLibrary.Build.cs => Protobuf/Protobuf.Build.cs} | 4 ++-- Source/cielim/cielim.Build.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename Source/ThirdParty/{ProtobufLibrary/ProtobufLibrary.Build.cs => Protobuf/Protobuf.Build.cs} (91%) diff --git a/Source/ThirdParty/ProtobufLibrary/ProtobufLibrary.Build.cs b/Source/ThirdParty/Protobuf/Protobuf.Build.cs similarity index 91% rename from Source/ThirdParty/ProtobufLibrary/ProtobufLibrary.Build.cs rename to Source/ThirdParty/Protobuf/Protobuf.Build.cs index 9f170870..9aec8f14 100644 --- a/Source/ThirdParty/ProtobufLibrary/ProtobufLibrary.Build.cs +++ b/Source/ThirdParty/Protobuf/Protobuf.Build.cs @@ -1,9 +1,9 @@ using UnrealBuildTool; using System.IO; -public class ProtobufLibrary : ModuleRules +public class Protobuf : ModuleRules { - public ProtobufLibrary(ReadOnlyTargetRules Target) : base(Target) + public Protobuf(ReadOnlyTargetRules Target) : base(Target) { PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs; bAddDefaultIncludePaths = false; diff --git a/Source/cielim/cielim.Build.cs b/Source/cielim/cielim.Build.cs index 0f9fdd43..216baecd 100644 --- a/Source/cielim/cielim.Build.cs +++ b/Source/cielim/cielim.Build.cs @@ -19,7 +19,7 @@ public cielim(ReadOnlyTargetRules Target) : base(Target) PrivateIncludePaths.AddRange(new string[] { Path.Combine(GetModuleDirectory("Renderer"), "Internal") }); // Add third party module dependencies - PrivateDependencyModuleNames.AddRange(new string[] { "ProtobufLibrary", "ZMQ" }); + PrivateDependencyModuleNames.AddRange(new string[] { "Protobuf", "ZMQ" }); // Add vcpkg includes From afdefbcf92347267f8d9993e497e870fb00533c0 Mon Sep 17 00:00:00 2001 From: patrick kenneally Date: Fri, 27 Feb 2026 22:29:27 -0700 Subject: [PATCH 07/10] Add vcpkg install and build documentation --- BUILDING.md | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 BUILDING.md diff --git a/BUILDING.md b/BUILDING.md new file mode 100644 index 00000000..8426eb4a --- /dev/null +++ b/BUILDING.md @@ -0,0 +1,96 @@ +# Building Cielim + +## Prerequisites + +### Unreal Engine 5.6 + +Install Unreal Engine 5.6 via the Epic Games Launcher. The build script will check that the engine is installed in the default location ``/Users/Shared/Epic Games/UE_5.6`` (Mac) or ``C:/Program Files/Epic Games/UE_5.6`` (Windows). If the engine is not found in the default location, a location will need to be provided which is then recorded in ``build_config.json``. + +### vcpkg + +Cielim uses [vcpkg](https://vcpkg.io) in **manifest mode** to manage its C++ third-party dependencies (zeromq, cppzmq, protobuf). vcpkg must be installed separately and does **not** live inside this repository. + +1. Clone and bootstrap vcpkg once. + + ```bash + git clone https://github.com/microsoft/vcpkg + cd vcpkg + ./bootstrap-vcpkg.sh -disableMetrics # Mac / Linux + bootstrap-vcpkg.bat -disableMetrics # Windows + ``` + +2. Set the ``VCPKG_ROOT`` environment variable to the vcpkg installation directory and add it to PATH, and add to your shell profile so it persists across sessions. + + ```bash + # ~/.zshrc or ~/.bash_profile (Mac/Linux) + export VCPKG_ROOT="" + export PATH="$VCPKG_ROOT:$PATH" + ``` + + For Windows, these must be added as system or user environment variables. + +### Python + +The build script ``build.py`` requires Python 3. No additional packages beyond the standard library are needed. + +## Building + +The project can be built from an IDE such as Rider or from the build script ``build.py``. When running the build script, options can be added to limit to just building, cooking assets / shaders, etc. These are elaborated in the Wiki pages for this repository. + + ```bash + python3 build.py # Build, cook, and package executable + python3 build.py --build # Only build files + ``` + +The script will: + +1. Locate the Unreal Engine installation. +2. Invoke ``RunUAT`` → ``BuildCookRun`` to build the editor target. + +As part of the Unreal Build Tool (UBT) **PreBuildSteps**, the python script ``vcpkg_install.py`` is called before the project source files are compiled which installs dependencies using vcpkg. Alternatively, this script can be called manually. If the dependencies are already installed, the script will do nothing. + +Vcpkg runs in **manifest mode**: dependencies and version overrides are declared in ``vcpkg.json``. If the packages are already up-to-date it exits in milliseconds. Libraries are installed to ``/vcpkg_installed//`` and are ignored by git. + +It is important that the toolchain version that vcpkg uses to build the dependencies **is the exact same** as the toolchain version used when building the project source files, otherwise you will experience linking errors. For example, if on Windows, vcpkg will say something like ``Compiler found: //bin/Hostx64/x64/cl.exe``, and the Unreal Build Tool (UBT) will output something like ``Using Visual Studio 2022 toolchain``. If those two versions do not match exactly, you will get linking errors. + +## Supported Platforms + +| Platform | vcpkg triplet | Linkage | +| -------- | ------------- | ------- | +| MacOS | ``arm64-osx`` | Static (.a) | +| Linux | ``x64-linux`` | Static (.a) | +| Windows | ``x64-windows-static-md`` | Static (.lib) | + +**Note**: Both arm64 and x64 architectures are supported for all platforms and the correct one is selected automatically. + +## Regenerating Protobuf Sources + +The generated files ``Source/cielim/Protobuf/cielimMessage.pb.{h,cc}`` and ``Source/cielim/Protobuf/imageDiagnostics.pb.{h,cc}`` must be regenerated whenever the corresponding ``.proto`` files change. Use the **same protoc version** as the linked library to avoid header/binary mismatches. + +After a successful vcpkg install, the matching protoc binary is available as a symlink in the installed tree. + + ```bash + PROTOC="vcpkg_installed//tools/protobuf/protoc" + PROTO_DIR="Source/cielim/Protobuf" + PROTO_DIR_PY="Source/cielim-python/cielim" + + $PROTOC --proto_path=$PROTO_DIR --cpp_out=$PROTO_DIR --python_out=$PROTO_DIR_PY cielimMessage.proto imageDiagnostics.proto + ``` + +## Troubleshooting + +- ``VCPKG_ROOT is not set`` / linker errors for zmq or protobuf symbols: + + Ensure ``VCPKG_ROOT`` is exported in your shell environment **before** launching the build. Also verify toolchain version match as described in the *Building* section of this document. If on MacOS, linking errors may also arise if CMake cannot locate your MacOS SDK version. This can be fixed by updating XCode / XCode Command Line Tools, or by manually exporting the `SDKROOT` environment variable. + + ```bash + export SDKROOT="$(xcrun --sdk macosx --show-sdk-path)" + ``` + +- ``vcpkg: command not found``: + + Bootstrap vcpkg first (see *Prerequisites* above) and confirm ``$VCPKG_ROOT/vcpkg`` is executable. Then add to PATH environment variable. + +- ``error: This file was generated by a newer version of protoc``: + + The generated ``*.pb.h`` files are out of sync with the installed protobuf version. Regenerate them using the *Regenerating Protobuf Sources* instructions above. From 2ca7b9fe3f6f07757e702f27848b8c29b723268f Mon Sep 17 00:00:00 2001 From: Owen Allison Date: Thu, 21 May 2026 00:50:11 -0600 Subject: [PATCH 08/10] Remove unused plugins from project --- cielim.uproject | 109 +----------------------------------------------- 1 file changed, 1 insertion(+), 108 deletions(-) diff --git a/cielim.uproject b/cielim.uproject index 756faabb..92da4b82 100644 --- a/cielim.uproject +++ b/cielim.uproject @@ -7,114 +7,7 @@ { "Name": "cielim", "Type": "Runtime", - "LoadingPhase": "PostConfigInit", - "AdditionalDependencies": [ - "Engine" - ] - } - ], - "Plugins": [ - { - "Name": "ModelingToolsEditorMode", - "Enabled": true, - "TargetAllowList": [ - "Editor" - ] - }, - { - "Name": "WmfMedia", - "Enabled": false - }, - { - "Name": "WindowsMoviePlayer", - "Enabled": false - }, - { - "Name": "WebMMoviePlayer", - "Enabled": false - }, - { - "Name": "AndroidMedia", - "Enabled": false - }, - { - "Name": "AndroidMoviePlayer", - "Enabled": false - }, - { - "Name": "AppleMoviePlayer", - "Enabled": false - }, - { - "Name": "AvfMedia", - "Enabled": false - }, - { - "Name": "MediaPlate", - "Enabled": false - }, - { - "Name": "MediaCompositing", - "Enabled": false - }, - { - "Name": "ImgMedia", - "Enabled": false - }, - { - "Name": "ChaosCloth", - "Enabled": false - }, - { - "Name": "NiagaraSimCaching", - "Enabled": false - }, - { - "Name": "AudioCapture", - "Enabled": false - }, - { - "Name": "Synthesis", - "Enabled": false - }, - { - "Name": "Metasound", - "Enabled": false - }, - { - "Name": "SoundFields", - "Enabled": false - }, - { - "Name": "ResonanceAudio", - "Enabled": false - }, - { - "Name": "EnvironmentQueryEditor", - "Enabled": false - }, - { - "Name": "AISupport", - "Enabled": false - }, - { - "Name": "OnlineSubsystemGooglePlay", - "Enabled": false, - "SupportedTargetPlatforms": [ - "Android" - ] - }, - { - "Name": "AndroidPermission", - "Enabled": false - }, - { - "Name": "AndroidFileServer", - "Enabled": false - }, - { - "Name": "GooglePAD", - "Enabled": false + "LoadingPhase": "PostConfigInit" } ], "TargetPlatforms": [ From 6917f75ac6c74a599cbe7e647f1c436c7647666b Mon Sep 17 00:00:00 2001 From: Owen Allison Date: Thu, 21 May 2026 17:32:28 -0600 Subject: [PATCH 09/10] Update Protobuf version to v33.4 --- Source/ThirdParty/Protobuf/Protobuf.Build.cs | 27 +- .../cielim-python/cielim/cielimMessage_pb2.py | 2239 +--- .../cielim/imageDiagnostics_pb2.py | 139 +- Source/cielim-python/requirements.txt | 2 +- Source/cielim/Protobuf/cielimMessage.pb.cc | 9804 ++++++++++------- Source/cielim/Protobuf/cielimMessage.pb.h | 8512 ++++++++------ Source/cielim/Protobuf/imageDiagnostics.pb.cc | 548 +- Source/cielim/Protobuf/imageDiagnostics.pb.h | 418 +- vcpkg-configuration.json | 2 +- vcpkg.json | 2 +- 10 files changed, 11258 insertions(+), 10435 deletions(-) diff --git a/Source/ThirdParty/Protobuf/Protobuf.Build.cs b/Source/ThirdParty/Protobuf/Protobuf.Build.cs index 9aec8f14..aed13756 100644 --- a/Source/ThirdParty/Protobuf/Protobuf.Build.cs +++ b/Source/ThirdParty/Protobuf/Protobuf.Build.cs @@ -17,21 +17,42 @@ public Protobuf(ReadOnlyTargetRules Target) : base(Target) string Architecture = Target.Architecture.ToString().Contains("arm64") ? "arm64" : "x64"; + string LibDirectory; + if (Target.Platform == UnrealTargetPlatform.Mac) { - PublicAdditionalLibraries.Add(Path.Combine(VcpkgDir, $"{Architecture}-osx", "lib", "libprotobuf.a")); + LibDirectory = Path.Combine(VcpkgDir, $"{Architecture}-osx", "lib"); + PublicAdditionalLibraries.Add(Path.Combine(LibDirectory, "libprotobuf.a")); } else if (Target.Platform == UnrealTargetPlatform.Linux) { - PublicAdditionalLibraries.Add(Path.Combine(VcpkgDir, $"{Architecture}-linux", "lib", "libprotobuf.a")); + LibDirectory = Path.Combine(VcpkgDir, $"{Architecture}-linux", "lib"); + PublicAdditionalLibraries.Add(Path.Combine(LibDirectory, "libprotobuf.a")); } else if (Target.Platform == UnrealTargetPlatform.Win64) { - PublicAdditionalLibraries.Add(Path.Combine(VcpkgDir, $"{Architecture}-windows-static-md", "lib", "libprotobuf.lib")); + LibDirectory = Path.Combine(VcpkgDir, $"{Architecture}-windows-static-md", "lib"); + PublicAdditionalLibraries.Add(Path.Combine(LibDirectory, "libprotobuf.lib")); } else { throw new BuildException($"Unsupported platform: {Target.Platform}"); } + + // Link all Abseil libraries + + foreach (string Lib in Directory.GetFiles(LibDirectory)) + { + string FileName = Path.GetFileName(Lib); + + bool IsAbsl = FileName.StartsWith("absl_") || FileName.StartsWith("libabsl_"); + + bool IsUtf8 = FileName.StartsWith("utf8_") || FileName.StartsWith("libutf8_"); + + if (IsAbsl || IsUtf8) + { + PublicAdditionalLibraries.Add(Lib); + } + } } } diff --git a/Source/cielim-python/cielim/cielimMessage_pb2.py b/Source/cielim-python/cielim/cielimMessage_pb2.py index 75ae5a7b..2ddcf30e 100644 --- a/Source/cielim-python/cielim/cielimMessage_pb2.py +++ b/Source/cielim-python/cielim/cielimMessage_pb2.py @@ -1,2208 +1,57 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: cielimMessage.proto +# Protobuf Python Version: 6.33.4 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 6, 33, 4, "", "cielimMessage.proto") # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="cielimMessage.proto", - package="cielimMessage", - syntax="proto3", - serialized_options=b"H\003", - create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x13\x63ielimMessage.proto\x12\rcielimMessage"8\n\tTimeStamp\x12\x13\n\x0b\x66rameNumber\x18\x01 \x01(\x03\x12\x16\n\x0esimTimeElapsed\x18\x02 \x01(\x01"j\n\rEpochDateTime\x12\x0c\n\x04year\x18\x01 \x01(\x05\x12\r\n\x05month\x18\x02 \x01(\x05\x12\x0b\n\x03\x64\x61y\x18\x03 \x01(\x05\x12\r\n\x05hours\x18\x04 \x01(\x05\x12\x0f\n\x07minutes\x18\x05 \x01(\x05\x12\x0f\n\x07seconds\x18\x06 \x01(\x01"\xbd\x01\n\x0eRenderingModel\x12\x13\n\x0bwavelength1\x18\x01 \x01(\x01\x12\x13\n\x0bwavelength2\x18\x02 \x01(\x01\x12\x13\n\x0bwavelength3\x18\x03 \x01(\x01\x12\x1d\n\x15\x63osmicRayStdDeviation\x18\x04 \x01(\x01\x12\x12\n\nstrayLight\x18\x05 \x01(\x01\x12\x11\n\tstarField\x18\x06 \x01(\x08\x12\x11\n\trendering\x18\x07 \x01(\t\x12\x13\n\x0b\x65nableSmear\x18\x08 \x01(\x08"e\n\x0bPerlinNoise\x12\x13\n\x0boctaveCount\x18\x01 \x01(\x05\x12\x15\n\rbaseFrequency\x18\x02 \x01(\x01\x12\x15\n\rbaseAmplitude\x18\x03 \x01(\x01\x12\x13\n\x0bpersistence\x18\x04 \x01(\x01"a\n\x10ReflectanceModel\x12\x11\n\tbrdfModel\x18\x01 \x01(\t\x12\x1b\n\x13isotropicScattering\x18\x02 \x01(\x01\x12\x1d\n\x15reflectanceParameters\x18\x03 \x03(\x01"\x85\x02\n\tMeshModel\x12\x12\n\nshapeModel\x18\x01 \x01(\t\x12\x12\n\nmeanRadius\x18\x02 \x01(\x01\x12\x17\n\x0fgeometricAlbedo\x18\x03 \x01(\x01\x12\x1f\n\x17principalAxisDistortion\x18\x04 \x03(\x01\x12\x19\n\x11inertialToBodyMrp\x18\x05 \x03(\x01\x12\x31\n\x08refModel\x18\x06 \x01(\x0b\x32\x1f.cielimMessage.ReflectanceModel\x12/\n\x0bperlinNoise\x18\x07 \x01(\x0b\x32\x1a.cielimMessage.PerlinNoise\x12\x17\n\x0fproceduralRocks\x18\x08 \x01(\x01"\x95\x01\n\rCelestialBody\x12\x10\n\x08\x62odyName\x18\x01 \x01(\t\x12\x10\n\x08position\x18\x02 \x03(\x01\x12\x10\n\x08velocity\x18\x03 \x03(\x01\x12\x10\n\x08\x61ttitude\x18\x04 \x03(\x01\x12\'\n\x05model\x18\x05 \x01(\x0b\x32\x18.cielimMessage.MeshModel\x12\x13\n\x0b\x63\x65ntralBody\x18\x06 \x01(\x08"Z\n\nSpacecraft\x12\x16\n\x0espacecraftName\x18\x01 \x01(\t\x12\x10\n\x08position\x18\x02 \x03(\x01\x12\x10\n\x08velocity\x18\x03 \x03(\x01\x12\x10\n\x08\x61ttitude\x18\x04 \x03(\x01"\xe8\x01\n\x11QuantumEfficiency\x12\x1f\n\x17integrationWeightFactor\x18\x01 \x01(\x01\x12\x11\n\tredValue1\x18\x02 \x01(\x01\x12\x11\n\tredValue2\x18\x03 \x01(\x01\x12\x11\n\tredValue3\x18\x04 \x01(\x01\x12\x13\n\x0bgreenValue1\x18\x05 \x01(\x01\x12\x13\n\x0bgreenValue2\x18\x06 \x01(\x01\x12\x13\n\x0bgreenValue3\x18\x07 \x01(\x01\x12\x12\n\nblueValue1\x18\x08 \x01(\x01\x12\x12\n\nblueValue2\x18\t \x01(\x01\x12\x12\n\nblueValue3\x18\n \x01(\x01"\xce\x01\n\tLensModel\x12\x13\n\x0b\x66ieldOfView\x18\x01 \x03(\x01\x12\x13\n\x0b\x66ocalLength\x18\x02 \x01(\x01\x12\x1b\n\x13pointSpreadFunction\x18\x03 \x01(\x01\x12\x16\n\x0e\x61pertureRadius\x18\x04 \x01(\x01\x12\x1c\n\x14horizontalVignetting\x18\x05 \x03(\x01\x12\x1a\n\x12verticalVignetting\x18\x06 \x03(\x01\x12\x12\n\ndistortion\x18\x07 \x03(\x01\x12\x14\n\x0ctransmission\x18\x08 \x01(\x01"\xa1\x02\n\x0bSensorModel\x12\x12\n\nresolution\x18\x01 \x03(\x03\x12\x12\n\nrenderRate\x18\x02 \x01(\x04\x12\x14\n\x0c\x65xposureTime\x18\x03 \x01(\x01\x12\x11\n\treadNoise\x18\x04 \x01(\x01\x12\x11\n\tshotNoise\x18\x05 \x01(\x08\x12\x13\n\x0b\x64\x61rkCurrent\x18\x06 \x01(\x01\x12\x12\n\nsystemGain\x18\x07 \x01(\x01\x12\x13\n\x0bsensorWidth\x18\x08 \x01(\x01\x12\x14\n\x0csensorHeight\x18\t \x01(\x01\x12\x18\n\x10\x66ullWellCapacity\x18\n \x01(\x01\x12\r\n\x05gamma\x18\x0b \x01(\x01\x12\x31\n\x07qeCurve\x18\x0c \x01(\x0b\x32 .cielimMessage.QuantumEfficiency"d\n\x0e\x41reaOfInterest\x12\x0f\n\x07\x63\x65nterX\x18\x01 \x01(\x01\x12\x0f\n\x07\x63\x65nterY\x18\x02 \x01(\x01\x12\r\n\x05width\x18\x03 \x01(\x01\x12\x0e\n\x06height\x18\x04 \x01(\x01\x12\x11\n\tthreshold\x18\x05 \x01(\x01"\x84\x02\n\x0b\x43\x61meraModel\x12\x10\n\x08\x63\x61meraId\x18\x01 \x01(\x03\x12\x12\n\nparentName\x18\x02 \x01(\t\x12\x1c\n\x14\x63\x61meraPositionInBody\x18\x03 \x03(\x01\x12\x1c\n\x14\x62odyFrameToCameraMrp\x18\x04 \x03(\x01\x12+\n\tlensModel\x18\x05 \x01(\x0b\x32\x18.cielimMessage.LensModel\x12/\n\x0bsensorModel\x18\x06 \x01(\x0b\x32\x1a.cielimMessage.SensorModel\x12\x35\n\x0e\x61reaOfInterest\x18\x07 \x01(\x0b\x32\x1d.cielimMessage.AreaOfInterest"\xb6\x02\n\rCielimMessage\x12+\n\x05\x65poch\x18\x01 \x01(\x0b\x32\x1c.cielimMessage.EpochDateTime\x12-\n\x0b\x63urrentTime\x18\x02 \x01(\x0b\x32\x18.cielimMessage.TimeStamp\x12\x37\n\x10renderParameters\x18\x03 \x01(\x0b\x32\x1d.cielimMessage.RenderingModel\x12\x35\n\x0f\x63\x65lestialBodies\x18\x04 \x03(\x0b\x32\x1c.cielimMessage.CelestialBody\x12-\n\nspacecraft\x18\x05 \x01(\x0b\x32\x19.cielimMessage.Spacecraft\x12*\n\x06\x63\x61mera\x18\x06 \x01(\x0b\x32\x1a.cielimMessage.CameraModelB\x02H\x03\x62\x06proto3', -) - - -_TIMESTAMP = _descriptor.Descriptor( - name="TimeStamp", - full_name="cielimMessage.TimeStamp", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="frameNumber", - full_name="cielimMessage.TimeStamp.frameNumber", - index=0, - number=1, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="simTimeElapsed", - full_name="cielimMessage.TimeStamp.simTimeElapsed", - index=1, - number=2, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=38, - serialized_end=94, -) - - -_EPOCHDATETIME = _descriptor.Descriptor( - name="EpochDateTime", - full_name="cielimMessage.EpochDateTime", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="year", - full_name="cielimMessage.EpochDateTime.year", - index=0, - number=1, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="month", - full_name="cielimMessage.EpochDateTime.month", - index=1, - number=2, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="day", - full_name="cielimMessage.EpochDateTime.day", - index=2, - number=3, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="hours", - full_name="cielimMessage.EpochDateTime.hours", - index=3, - number=4, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="minutes", - full_name="cielimMessage.EpochDateTime.minutes", - index=4, - number=5, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="seconds", - full_name="cielimMessage.EpochDateTime.seconds", - index=5, - number=6, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=96, - serialized_end=202, -) - - -_RENDERINGMODEL = _descriptor.Descriptor( - name="RenderingModel", - full_name="cielimMessage.RenderingModel", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="wavelength1", - full_name="cielimMessage.RenderingModel.wavelength1", - index=0, - number=1, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="wavelength2", - full_name="cielimMessage.RenderingModel.wavelength2", - index=1, - number=2, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="wavelength3", - full_name="cielimMessage.RenderingModel.wavelength3", - index=2, - number=3, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="cosmicRayStdDeviation", - full_name="cielimMessage.RenderingModel.cosmicRayStdDeviation", - index=3, - number=4, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="strayLight", - full_name="cielimMessage.RenderingModel.strayLight", - index=4, - number=5, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="starField", - full_name="cielimMessage.RenderingModel.starField", - index=5, - number=6, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="rendering", - full_name="cielimMessage.RenderingModel.rendering", - index=6, - number=7, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="enableSmear", - full_name="cielimMessage.RenderingModel.enableSmear", - index=7, - number=8, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=205, - serialized_end=394, -) - - -_PERLINNOISE = _descriptor.Descriptor( - name="PerlinNoise", - full_name="cielimMessage.PerlinNoise", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="octaveCount", - full_name="cielimMessage.PerlinNoise.octaveCount", - index=0, - number=1, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="baseFrequency", - full_name="cielimMessage.PerlinNoise.baseFrequency", - index=1, - number=2, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="baseAmplitude", - full_name="cielimMessage.PerlinNoise.baseAmplitude", - index=2, - number=3, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="persistence", - full_name="cielimMessage.PerlinNoise.persistence", - index=3, - number=4, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=396, - serialized_end=497, -) - - -_REFLECTANCEMODEL = _descriptor.Descriptor( - name="ReflectanceModel", - full_name="cielimMessage.ReflectanceModel", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="brdfModel", - full_name="cielimMessage.ReflectanceModel.brdfModel", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="isotropicScattering", - full_name="cielimMessage.ReflectanceModel.isotropicScattering", - index=1, - number=2, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="reflectanceParameters", - full_name="cielimMessage.ReflectanceModel.reflectanceParameters", - index=2, - number=3, - type=1, - cpp_type=5, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=499, - serialized_end=596, -) - - -_MESHMODEL = _descriptor.Descriptor( - name="MeshModel", - full_name="cielimMessage.MeshModel", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="shapeModel", - full_name="cielimMessage.MeshModel.shapeModel", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="meanRadius", - full_name="cielimMessage.MeshModel.meanRadius", - index=1, - number=2, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="geometricAlbedo", - full_name="cielimMessage.MeshModel.geometricAlbedo", - index=2, - number=3, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="principalAxisDistortion", - full_name="cielimMessage.MeshModel.principalAxisDistortion", - index=3, - number=4, - type=1, - cpp_type=5, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="inertialToBodyMrp", - full_name="cielimMessage.MeshModel.inertialToBodyMrp", - index=4, - number=5, - type=1, - cpp_type=5, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="refModel", - full_name="cielimMessage.MeshModel.refModel", - index=5, - number=6, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="perlinNoise", - full_name="cielimMessage.MeshModel.perlinNoise", - index=6, - number=7, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="proceduralRocks", - full_name="cielimMessage.MeshModel.proceduralRocks", - index=7, - number=8, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=599, - serialized_end=860, -) - - -_CELESTIALBODY = _descriptor.Descriptor( - name="CelestialBody", - full_name="cielimMessage.CelestialBody", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="bodyName", - full_name="cielimMessage.CelestialBody.bodyName", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="position", - full_name="cielimMessage.CelestialBody.position", - index=1, - number=2, - type=1, - cpp_type=5, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="velocity", - full_name="cielimMessage.CelestialBody.velocity", - index=2, - number=3, - type=1, - cpp_type=5, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="attitude", - full_name="cielimMessage.CelestialBody.attitude", - index=3, - number=4, - type=1, - cpp_type=5, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="model", - full_name="cielimMessage.CelestialBody.model", - index=4, - number=5, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="centralBody", - full_name="cielimMessage.CelestialBody.centralBody", - index=5, - number=6, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=863, - serialized_end=1012, -) - - -_SPACECRAFT = _descriptor.Descriptor( - name="Spacecraft", - full_name="cielimMessage.Spacecraft", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="spacecraftName", - full_name="cielimMessage.Spacecraft.spacecraftName", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="position", - full_name="cielimMessage.Spacecraft.position", - index=1, - number=2, - type=1, - cpp_type=5, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="velocity", - full_name="cielimMessage.Spacecraft.velocity", - index=2, - number=3, - type=1, - cpp_type=5, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="attitude", - full_name="cielimMessage.Spacecraft.attitude", - index=3, - number=4, - type=1, - cpp_type=5, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=1014, - serialized_end=1104, -) - - -_QUANTUMEFFICIENCY = _descriptor.Descriptor( - name="QuantumEfficiency", - full_name="cielimMessage.QuantumEfficiency", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="integrationWeightFactor", - full_name="cielimMessage.QuantumEfficiency.integrationWeightFactor", - index=0, - number=1, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="redValue1", - full_name="cielimMessage.QuantumEfficiency.redValue1", - index=1, - number=2, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="redValue2", - full_name="cielimMessage.QuantumEfficiency.redValue2", - index=2, - number=3, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="redValue3", - full_name="cielimMessage.QuantumEfficiency.redValue3", - index=3, - number=4, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="greenValue1", - full_name="cielimMessage.QuantumEfficiency.greenValue1", - index=4, - number=5, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="greenValue2", - full_name="cielimMessage.QuantumEfficiency.greenValue2", - index=5, - number=6, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="greenValue3", - full_name="cielimMessage.QuantumEfficiency.greenValue3", - index=6, - number=7, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="blueValue1", - full_name="cielimMessage.QuantumEfficiency.blueValue1", - index=7, - number=8, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="blueValue2", - full_name="cielimMessage.QuantumEfficiency.blueValue2", - index=8, - number=9, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="blueValue3", - full_name="cielimMessage.QuantumEfficiency.blueValue3", - index=9, - number=10, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=1107, - serialized_end=1339, -) - - -_LENSMODEL = _descriptor.Descriptor( - name="LensModel", - full_name="cielimMessage.LensModel", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="fieldOfView", - full_name="cielimMessage.LensModel.fieldOfView", - index=0, - number=1, - type=1, - cpp_type=5, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="focalLength", - full_name="cielimMessage.LensModel.focalLength", - index=1, - number=2, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="pointSpreadFunction", - full_name="cielimMessage.LensModel.pointSpreadFunction", - index=2, - number=3, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="apertureRadius", - full_name="cielimMessage.LensModel.apertureRadius", - index=3, - number=4, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="horizontalVignetting", - full_name="cielimMessage.LensModel.horizontalVignetting", - index=4, - number=5, - type=1, - cpp_type=5, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="verticalVignetting", - full_name="cielimMessage.LensModel.verticalVignetting", - index=5, - number=6, - type=1, - cpp_type=5, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="distortion", - full_name="cielimMessage.LensModel.distortion", - index=6, - number=7, - type=1, - cpp_type=5, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="transmission", - full_name="cielimMessage.LensModel.transmission", - index=7, - number=8, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=1342, - serialized_end=1548, -) - - -_SENSORMODEL = _descriptor.Descriptor( - name="SensorModel", - full_name="cielimMessage.SensorModel", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="resolution", - full_name="cielimMessage.SensorModel.resolution", - index=0, - number=1, - type=3, - cpp_type=2, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="renderRate", - full_name="cielimMessage.SensorModel.renderRate", - index=1, - number=2, - type=4, - cpp_type=4, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="exposureTime", - full_name="cielimMessage.SensorModel.exposureTime", - index=2, - number=3, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="readNoise", - full_name="cielimMessage.SensorModel.readNoise", - index=3, - number=4, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="shotNoise", - full_name="cielimMessage.SensorModel.shotNoise", - index=4, - number=5, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="darkCurrent", - full_name="cielimMessage.SensorModel.darkCurrent", - index=5, - number=6, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="systemGain", - full_name="cielimMessage.SensorModel.systemGain", - index=6, - number=7, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="sensorWidth", - full_name="cielimMessage.SensorModel.sensorWidth", - index=7, - number=8, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="sensorHeight", - full_name="cielimMessage.SensorModel.sensorHeight", - index=8, - number=9, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="fullWellCapacity", - full_name="cielimMessage.SensorModel.fullWellCapacity", - index=9, - number=10, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="gamma", - full_name="cielimMessage.SensorModel.gamma", - index=10, - number=11, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="qeCurve", - full_name="cielimMessage.SensorModel.qeCurve", - index=11, - number=12, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=1551, - serialized_end=1840, -) - - -_AREAOFINTEREST = _descriptor.Descriptor( - name="AreaOfInterest", - full_name="cielimMessage.AreaOfInterest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="centerX", - full_name="cielimMessage.AreaOfInterest.centerX", - index=0, - number=1, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="centerY", - full_name="cielimMessage.AreaOfInterest.centerY", - index=1, - number=2, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="width", - full_name="cielimMessage.AreaOfInterest.width", - index=2, - number=3, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="height", - full_name="cielimMessage.AreaOfInterest.height", - index=3, - number=4, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="threshold", - full_name="cielimMessage.AreaOfInterest.threshold", - index=4, - number=5, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=1842, - serialized_end=1942, -) - - -_CAMERAMODEL = _descriptor.Descriptor( - name="CameraModel", - full_name="cielimMessage.CameraModel", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="cameraId", - full_name="cielimMessage.CameraModel.cameraId", - index=0, - number=1, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="parentName", - full_name="cielimMessage.CameraModel.parentName", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="cameraPositionInBody", - full_name="cielimMessage.CameraModel.cameraPositionInBody", - index=2, - number=3, - type=1, - cpp_type=5, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="bodyFrameToCameraMrp", - full_name="cielimMessage.CameraModel.bodyFrameToCameraMrp", - index=3, - number=4, - type=1, - cpp_type=5, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="lensModel", - full_name="cielimMessage.CameraModel.lensModel", - index=4, - number=5, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="sensorModel", - full_name="cielimMessage.CameraModel.sensorModel", - index=5, - number=6, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="areaOfInterest", - full_name="cielimMessage.CameraModel.areaOfInterest", - index=6, - number=7, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=1945, - serialized_end=2205, -) - - -_CIELIMMESSAGE = _descriptor.Descriptor( - name="CielimMessage", - full_name="cielimMessage.CielimMessage", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="epoch", - full_name="cielimMessage.CielimMessage.epoch", - index=0, - number=1, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="currentTime", - full_name="cielimMessage.CielimMessage.currentTime", - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="renderParameters", - full_name="cielimMessage.CielimMessage.renderParameters", - index=2, - number=3, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="celestialBodies", - full_name="cielimMessage.CielimMessage.celestialBodies", - index=3, - number=4, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="spacecraft", - full_name="cielimMessage.CielimMessage.spacecraft", - index=4, - number=5, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="camera", - full_name="cielimMessage.CielimMessage.camera", - index=5, - number=6, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=2208, - serialized_end=2518, -) - -_MESHMODEL.fields_by_name["refModel"].message_type = _REFLECTANCEMODEL -_MESHMODEL.fields_by_name["perlinNoise"].message_type = _PERLINNOISE -_CELESTIALBODY.fields_by_name["model"].message_type = _MESHMODEL -_SENSORMODEL.fields_by_name["qeCurve"].message_type = _QUANTUMEFFICIENCY -_CAMERAMODEL.fields_by_name["lensModel"].message_type = _LENSMODEL -_CAMERAMODEL.fields_by_name["sensorModel"].message_type = _SENSORMODEL -_CAMERAMODEL.fields_by_name["areaOfInterest"].message_type = _AREAOFINTEREST -_CIELIMMESSAGE.fields_by_name["epoch"].message_type = _EPOCHDATETIME -_CIELIMMESSAGE.fields_by_name["currentTime"].message_type = _TIMESTAMP -_CIELIMMESSAGE.fields_by_name["renderParameters"].message_type = _RENDERINGMODEL -_CIELIMMESSAGE.fields_by_name["celestialBodies"].message_type = _CELESTIALBODY -_CIELIMMESSAGE.fields_by_name["spacecraft"].message_type = _SPACECRAFT -_CIELIMMESSAGE.fields_by_name["camera"].message_type = _CAMERAMODEL -DESCRIPTOR.message_types_by_name["TimeStamp"] = _TIMESTAMP -DESCRIPTOR.message_types_by_name["EpochDateTime"] = _EPOCHDATETIME -DESCRIPTOR.message_types_by_name["RenderingModel"] = _RENDERINGMODEL -DESCRIPTOR.message_types_by_name["PerlinNoise"] = _PERLINNOISE -DESCRIPTOR.message_types_by_name["ReflectanceModel"] = _REFLECTANCEMODEL -DESCRIPTOR.message_types_by_name["MeshModel"] = _MESHMODEL -DESCRIPTOR.message_types_by_name["CelestialBody"] = _CELESTIALBODY -DESCRIPTOR.message_types_by_name["Spacecraft"] = _SPACECRAFT -DESCRIPTOR.message_types_by_name["QuantumEfficiency"] = _QUANTUMEFFICIENCY -DESCRIPTOR.message_types_by_name["LensModel"] = _LENSMODEL -DESCRIPTOR.message_types_by_name["SensorModel"] = _SENSORMODEL -DESCRIPTOR.message_types_by_name["AreaOfInterest"] = _AREAOFINTEREST -DESCRIPTOR.message_types_by_name["CameraModel"] = _CAMERAMODEL -DESCRIPTOR.message_types_by_name["CielimMessage"] = _CIELIMMESSAGE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -TimeStamp = _reflection.GeneratedProtocolMessageType( - "TimeStamp", - (_message.Message,), - { - "DESCRIPTOR": _TIMESTAMP, - "__module__": "cielimMessage_pb2", - # @@protoc_insertion_point(class_scope:cielimMessage.TimeStamp) - }, -) -_sym_db.RegisterMessage(TimeStamp) - -EpochDateTime = _reflection.GeneratedProtocolMessageType( - "EpochDateTime", - (_message.Message,), - { - "DESCRIPTOR": _EPOCHDATETIME, - "__module__": "cielimMessage_pb2", - # @@protoc_insertion_point(class_scope:cielimMessage.EpochDateTime) - }, -) -_sym_db.RegisterMessage(EpochDateTime) - -RenderingModel = _reflection.GeneratedProtocolMessageType( - "RenderingModel", - (_message.Message,), - { - "DESCRIPTOR": _RENDERINGMODEL, - "__module__": "cielimMessage_pb2", - # @@protoc_insertion_point(class_scope:cielimMessage.RenderingModel) - }, -) -_sym_db.RegisterMessage(RenderingModel) - -PerlinNoise = _reflection.GeneratedProtocolMessageType( - "PerlinNoise", - (_message.Message,), - { - "DESCRIPTOR": _PERLINNOISE, - "__module__": "cielimMessage_pb2", - # @@protoc_insertion_point(class_scope:cielimMessage.PerlinNoise) - }, -) -_sym_db.RegisterMessage(PerlinNoise) - -ReflectanceModel = _reflection.GeneratedProtocolMessageType( - "ReflectanceModel", - (_message.Message,), - { - "DESCRIPTOR": _REFLECTANCEMODEL, - "__module__": "cielimMessage_pb2", - # @@protoc_insertion_point(class_scope:cielimMessage.ReflectanceModel) - }, -) -_sym_db.RegisterMessage(ReflectanceModel) - -MeshModel = _reflection.GeneratedProtocolMessageType( - "MeshModel", - (_message.Message,), - { - "DESCRIPTOR": _MESHMODEL, - "__module__": "cielimMessage_pb2", - # @@protoc_insertion_point(class_scope:cielimMessage.MeshModel) - }, -) -_sym_db.RegisterMessage(MeshModel) - -CelestialBody = _reflection.GeneratedProtocolMessageType( - "CelestialBody", - (_message.Message,), - { - "DESCRIPTOR": _CELESTIALBODY, - "__module__": "cielimMessage_pb2", - # @@protoc_insertion_point(class_scope:cielimMessage.CelestialBody) - }, -) -_sym_db.RegisterMessage(CelestialBody) - -Spacecraft = _reflection.GeneratedProtocolMessageType( - "Spacecraft", - (_message.Message,), - { - "DESCRIPTOR": _SPACECRAFT, - "__module__": "cielimMessage_pb2", - # @@protoc_insertion_point(class_scope:cielimMessage.Spacecraft) - }, -) -_sym_db.RegisterMessage(Spacecraft) - -QuantumEfficiency = _reflection.GeneratedProtocolMessageType( - "QuantumEfficiency", - (_message.Message,), - { - "DESCRIPTOR": _QUANTUMEFFICIENCY, - "__module__": "cielimMessage_pb2", - # @@protoc_insertion_point(class_scope:cielimMessage.QuantumEfficiency) - }, -) -_sym_db.RegisterMessage(QuantumEfficiency) - -LensModel = _reflection.GeneratedProtocolMessageType( - "LensModel", - (_message.Message,), - { - "DESCRIPTOR": _LENSMODEL, - "__module__": "cielimMessage_pb2", - # @@protoc_insertion_point(class_scope:cielimMessage.LensModel) - }, -) -_sym_db.RegisterMessage(LensModel) - -SensorModel = _reflection.GeneratedProtocolMessageType( - "SensorModel", - (_message.Message,), - { - "DESCRIPTOR": _SENSORMODEL, - "__module__": "cielimMessage_pb2", - # @@protoc_insertion_point(class_scope:cielimMessage.SensorModel) - }, -) -_sym_db.RegisterMessage(SensorModel) - -AreaOfInterest = _reflection.GeneratedProtocolMessageType( - "AreaOfInterest", - (_message.Message,), - { - "DESCRIPTOR": _AREAOFINTEREST, - "__module__": "cielimMessage_pb2", - # @@protoc_insertion_point(class_scope:cielimMessage.AreaOfInterest) - }, -) -_sym_db.RegisterMessage(AreaOfInterest) - -CameraModel = _reflection.GeneratedProtocolMessageType( - "CameraModel", - (_message.Message,), - { - "DESCRIPTOR": _CAMERAMODEL, - "__module__": "cielimMessage_pb2", - # @@protoc_insertion_point(class_scope:cielimMessage.CameraModel) - }, -) -_sym_db.RegisterMessage(CameraModel) - -CielimMessage = _reflection.GeneratedProtocolMessageType( - "CielimMessage", - (_message.Message,), - { - "DESCRIPTOR": _CIELIMMESSAGE, - "__module__": "cielimMessage_pb2", - # @@protoc_insertion_point(class_scope:cielimMessage.CielimMessage) - }, -) -_sym_db.RegisterMessage(CielimMessage) - - -DESCRIPTOR._options = None +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( + b'\n\x13\x63ielimMessage.proto\x12\rcielimMessage"8\n\tTimeStamp\x12\x13\n\x0b\x66rameNumber\x18\x01 \x01(\x03\x12\x16\n\x0esimTimeElapsed\x18\x02 \x01(\x01"j\n\rEpochDateTime\x12\x0c\n\x04year\x18\x01 \x01(\x05\x12\r\n\x05month\x18\x02 \x01(\x05\x12\x0b\n\x03\x64\x61y\x18\x03 \x01(\x05\x12\r\n\x05hours\x18\x04 \x01(\x05\x12\x0f\n\x07minutes\x18\x05 \x01(\x05\x12\x0f\n\x07seconds\x18\x06 \x01(\x01"\xbd\x01\n\x0eRenderingModel\x12\x13\n\x0bwavelength1\x18\x01 \x01(\x01\x12\x13\n\x0bwavelength2\x18\x02 \x01(\x01\x12\x13\n\x0bwavelength3\x18\x03 \x01(\x01\x12\x1d\n\x15\x63osmicRayStdDeviation\x18\x04 \x01(\x01\x12\x12\n\nstrayLight\x18\x05 \x01(\x01\x12\x11\n\tstarField\x18\x06 \x01(\x08\x12\x11\n\trendering\x18\x07 \x01(\t\x12\x13\n\x0b\x65nableSmear\x18\x08 \x01(\x08"e\n\x0bPerlinNoise\x12\x13\n\x0boctaveCount\x18\x01 \x01(\x05\x12\x15\n\rbaseFrequency\x18\x02 \x01(\x01\x12\x15\n\rbaseAmplitude\x18\x03 \x01(\x01\x12\x13\n\x0bpersistence\x18\x04 \x01(\x01"a\n\x10ReflectanceModel\x12\x11\n\tbrdfModel\x18\x01 \x01(\t\x12\x1b\n\x13isotropicScattering\x18\x02 \x01(\x01\x12\x1d\n\x15reflectanceParameters\x18\x03 \x03(\x01"\x85\x02\n\tMeshModel\x12\x12\n\nshapeModel\x18\x01 \x01(\t\x12\x12\n\nmeanRadius\x18\x02 \x01(\x01\x12\x17\n\x0fgeometricAlbedo\x18\x03 \x01(\x01\x12\x1f\n\x17principalAxisDistortion\x18\x04 \x03(\x01\x12\x19\n\x11inertialToBodyMrp\x18\x05 \x03(\x01\x12\x31\n\x08refModel\x18\x06 \x01(\x0b\x32\x1f.cielimMessage.ReflectanceModel\x12/\n\x0bperlinNoise\x18\x07 \x01(\x0b\x32\x1a.cielimMessage.PerlinNoise\x12\x17\n\x0fproceduralRocks\x18\x08 \x01(\x01"\x95\x01\n\rCelestialBody\x12\x10\n\x08\x62odyName\x18\x01 \x01(\t\x12\x10\n\x08position\x18\x02 \x03(\x01\x12\x10\n\x08velocity\x18\x03 \x03(\x01\x12\x10\n\x08\x61ttitude\x18\x04 \x03(\x01\x12\'\n\x05model\x18\x05 \x01(\x0b\x32\x18.cielimMessage.MeshModel\x12\x13\n\x0b\x63\x65ntralBody\x18\x06 \x01(\x08"Z\n\nSpacecraft\x12\x16\n\x0espacecraftName\x18\x01 \x01(\t\x12\x10\n\x08position\x18\x02 \x03(\x01\x12\x10\n\x08velocity\x18\x03 \x03(\x01\x12\x10\n\x08\x61ttitude\x18\x04 \x03(\x01"\xe8\x01\n\x11QuantumEfficiency\x12\x1f\n\x17integrationWeightFactor\x18\x01 \x01(\x01\x12\x11\n\tredValue1\x18\x02 \x01(\x01\x12\x11\n\tredValue2\x18\x03 \x01(\x01\x12\x11\n\tredValue3\x18\x04 \x01(\x01\x12\x13\n\x0bgreenValue1\x18\x05 \x01(\x01\x12\x13\n\x0bgreenValue2\x18\x06 \x01(\x01\x12\x13\n\x0bgreenValue3\x18\x07 \x01(\x01\x12\x12\n\nblueValue1\x18\x08 \x01(\x01\x12\x12\n\nblueValue2\x18\t \x01(\x01\x12\x12\n\nblueValue3\x18\n \x01(\x01"\xce\x01\n\tLensModel\x12\x13\n\x0b\x66ieldOfView\x18\x01 \x03(\x01\x12\x13\n\x0b\x66ocalLength\x18\x02 \x01(\x01\x12\x1b\n\x13pointSpreadFunction\x18\x03 \x01(\x01\x12\x16\n\x0e\x61pertureRadius\x18\x04 \x01(\x01\x12\x1c\n\x14horizontalVignetting\x18\x05 \x03(\x01\x12\x1a\n\x12verticalVignetting\x18\x06 \x03(\x01\x12\x12\n\ndistortion\x18\x07 \x03(\x01\x12\x14\n\x0ctransmission\x18\x08 \x01(\x01"\xa1\x02\n\x0bSensorModel\x12\x12\n\nresolution\x18\x01 \x03(\x03\x12\x12\n\nrenderRate\x18\x02 \x01(\x04\x12\x14\n\x0c\x65xposureTime\x18\x03 \x01(\x01\x12\x11\n\treadNoise\x18\x04 \x01(\x01\x12\x11\n\tshotNoise\x18\x05 \x01(\x08\x12\x13\n\x0b\x64\x61rkCurrent\x18\x06 \x01(\x01\x12\x12\n\nsystemGain\x18\x07 \x01(\x01\x12\x13\n\x0bsensorWidth\x18\x08 \x01(\x01\x12\x14\n\x0csensorHeight\x18\t \x01(\x01\x12\x18\n\x10\x66ullWellCapacity\x18\n \x01(\x01\x12\r\n\x05gamma\x18\x0b \x01(\x01\x12\x31\n\x07qeCurve\x18\x0c \x01(\x0b\x32 .cielimMessage.QuantumEfficiency"d\n\x0e\x41reaOfInterest\x12\x0f\n\x07\x63\x65nterX\x18\x01 \x01(\x01\x12\x0f\n\x07\x63\x65nterY\x18\x02 \x01(\x01\x12\r\n\x05width\x18\x03 \x01(\x01\x12\x0e\n\x06height\x18\x04 \x01(\x01\x12\x11\n\tthreshold\x18\x05 \x01(\x01"\x84\x02\n\x0b\x43\x61meraModel\x12\x10\n\x08\x63\x61meraId\x18\x01 \x01(\x03\x12\x12\n\nparentName\x18\x02 \x01(\t\x12\x1c\n\x14\x63\x61meraPositionInBody\x18\x03 \x03(\x01\x12\x1c\n\x14\x62odyFrameToCameraMrp\x18\x04 \x03(\x01\x12+\n\tlensModel\x18\x05 \x01(\x0b\x32\x18.cielimMessage.LensModel\x12/\n\x0bsensorModel\x18\x06 \x01(\x0b\x32\x1a.cielimMessage.SensorModel\x12\x35\n\x0e\x61reaOfInterest\x18\x07 \x01(\x0b\x32\x1d.cielimMessage.AreaOfInterest"\xb6\x02\n\rCielimMessage\x12+\n\x05\x65poch\x18\x01 \x01(\x0b\x32\x1c.cielimMessage.EpochDateTime\x12-\n\x0b\x63urrentTime\x18\x02 \x01(\x0b\x32\x18.cielimMessage.TimeStamp\x12\x37\n\x10renderParameters\x18\x03 \x01(\x0b\x32\x1d.cielimMessage.RenderingModel\x12\x35\n\x0f\x63\x65lestialBodies\x18\x04 \x03(\x0b\x32\x1c.cielimMessage.CelestialBody\x12-\n\nspacecraft\x18\x05 \x01(\x0b\x32\x19.cielimMessage.Spacecraft\x12*\n\x06\x63\x61mera\x18\x06 \x01(\x0b\x32\x1a.cielimMessage.CameraModelB\x02H\x03\x62\x06proto3' +) + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "cielimMessage_pb2", _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals["DESCRIPTOR"]._loaded_options = None + _globals["DESCRIPTOR"]._serialized_options = b"H\003" + _globals["_TIMESTAMP"]._serialized_start = 38 + _globals["_TIMESTAMP"]._serialized_end = 94 + _globals["_EPOCHDATETIME"]._serialized_start = 96 + _globals["_EPOCHDATETIME"]._serialized_end = 202 + _globals["_RENDERINGMODEL"]._serialized_start = 205 + _globals["_RENDERINGMODEL"]._serialized_end = 394 + _globals["_PERLINNOISE"]._serialized_start = 396 + _globals["_PERLINNOISE"]._serialized_end = 497 + _globals["_REFLECTANCEMODEL"]._serialized_start = 499 + _globals["_REFLECTANCEMODEL"]._serialized_end = 596 + _globals["_MESHMODEL"]._serialized_start = 599 + _globals["_MESHMODEL"]._serialized_end = 860 + _globals["_CELESTIALBODY"]._serialized_start = 863 + _globals["_CELESTIALBODY"]._serialized_end = 1012 + _globals["_SPACECRAFT"]._serialized_start = 1014 + _globals["_SPACECRAFT"]._serialized_end = 1104 + _globals["_QUANTUMEFFICIENCY"]._serialized_start = 1107 + _globals["_QUANTUMEFFICIENCY"]._serialized_end = 1339 + _globals["_LENSMODEL"]._serialized_start = 1342 + _globals["_LENSMODEL"]._serialized_end = 1548 + _globals["_SENSORMODEL"]._serialized_start = 1551 + _globals["_SENSORMODEL"]._serialized_end = 1840 + _globals["_AREAOFINTEREST"]._serialized_start = 1842 + _globals["_AREAOFINTEREST"]._serialized_end = 1942 + _globals["_CAMERAMODEL"]._serialized_start = 1945 + _globals["_CAMERAMODEL"]._serialized_end = 2205 + _globals["_CIELIMMESSAGE"]._serialized_start = 2208 + _globals["_CIELIMMESSAGE"]._serialized_end = 2518 # @@protoc_insertion_point(module_scope) diff --git a/Source/cielim-python/cielim/imageDiagnostics_pb2.py b/Source/cielim-python/cielim/imageDiagnostics_pb2.py index 22748286..04ed6a52 100644 --- a/Source/cielim-python/cielim/imageDiagnostics_pb2.py +++ b/Source/cielim-python/cielim/imageDiagnostics_pb2.py @@ -1,138 +1,31 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: imageDiagnostics.proto +# Protobuf Python Version: 6.33.4 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 6, 33, 4, "", "imageDiagnostics.proto") # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="imageDiagnostics.proto", - package="imageDiagnostics", - syntax="proto3", - serialized_options=b"H\003", - create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x16imageDiagnostics.proto\x12\x10imageDiagnostics"[\n\x0e\x44iagnosticData\x12\r\n\x05\x63ob_x\x18\x01 \x01(\x01\x12\r\n\x05\x63ob_y\x18\x02 \x01(\x01\x12\x10\n\x08\x63overage\x18\x03 \x01(\x01\x12\x19\n\x11totalBrightPixels\x18\x04 \x01(\x05\x42\x02H\x03\x62\x06proto3', +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( + b'\n\x16imageDiagnostics.proto\x12\x10imageDiagnostics"[\n\x0e\x44iagnosticData\x12\r\n\x05\x63ob_x\x18\x01 \x01(\x01\x12\r\n\x05\x63ob_y\x18\x02 \x01(\x01\x12\x10\n\x08\x63overage\x18\x03 \x01(\x01\x12\x19\n\x11totalBrightPixels\x18\x04 \x01(\x05\x42\x02H\x03\x62\x06proto3' ) - -_DIAGNOSTICDATA = _descriptor.Descriptor( - name="DiagnosticData", - full_name="imageDiagnostics.DiagnosticData", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="cob_x", - full_name="imageDiagnostics.DiagnosticData.cob_x", - index=0, - number=1, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="cob_y", - full_name="imageDiagnostics.DiagnosticData.cob_y", - index=1, - number=2, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="coverage", - full_name="imageDiagnostics.DiagnosticData.coverage", - index=2, - number=3, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="totalBrightPixels", - full_name="imageDiagnostics.DiagnosticData.totalBrightPixels", - index=3, - number=4, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=44, - serialized_end=135, -) - -DESCRIPTOR.message_types_by_name["DiagnosticData"] = _DIAGNOSTICDATA -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -DiagnosticData = _reflection.GeneratedProtocolMessageType( - "DiagnosticData", - (_message.Message,), - { - "DESCRIPTOR": _DIAGNOSTICDATA, - "__module__": "imageDiagnostics_pb2", - # @@protoc_insertion_point(class_scope:imageDiagnostics.DiagnosticData) - }, -) -_sym_db.RegisterMessage(DiagnosticData) - - -DESCRIPTOR._options = None +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "imageDiagnostics_pb2", _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals["DESCRIPTOR"]._loaded_options = None + _globals["DESCRIPTOR"]._serialized_options = b"H\003" + _globals["_DIAGNOSTICDATA"]._serialized_start = 44 + _globals["_DIAGNOSTICDATA"]._serialized_end = 135 # @@protoc_insertion_point(module_scope) diff --git a/Source/cielim-python/requirements.txt b/Source/cielim-python/requirements.txt index 2ef29835..cd5c8d62 100644 --- a/Source/cielim-python/requirements.txt +++ b/Source/cielim-python/requirements.txt @@ -1,6 +1,6 @@ delimited-protobuf==1.0.0 numpy -protobuf==3.19.1 +protobuf==6.33.4 zmq spiceypy==6.0.0 astropy==6.1.4 diff --git a/Source/cielim/Protobuf/cielimMessage.pb.cc b/Source/cielim/Protobuf/cielimMessage.pb.cc index 428d6e26..305615a5 100644 --- a/Source/cielim/Protobuf/cielimMessage.pb.cc +++ b/Source/cielim/Protobuf/cielimMessage.pb.cc @@ -1,5107 +1,6741 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: cielimMessage.proto +// Protobuf C++ Version: 6.33.4 -#include "cielimMessage.pb.h" +#if defined(_MSC_VER) +#pragma warning(push) +#pragma warning(disable: 4458 4702 4800) +#endif -#include +#pragma push_macro("check") +#pragma push_macro("verify") -/* It is necessary to silence these errors as MSVC will not build the project - and these warnings are generated in the protobuf headers themselves. */ +#undef check +#undef verify -#if PLATFORM_WINDOWS -#pragma warning(push) -#pragma warning(disable : 4800) // Disable warning C4800 -#pragma warning(disable : 4125) -#endif +#include "cielimMessage.pb.h" -#include -#include -#include -#include +#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.h" +#include "google/protobuf/io/zero_copy_stream_impl_lite.h" // @@protoc_insertion_point(includes) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace cielimMessage { -constexpr TimeStamp::TimeStamp( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : framenumber_(int64_t{0}) - , simtimeelapsed_(0){} + +inline constexpr TimeStamp::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + framenumber_{::int64_t{0}}, + simtimeelapsed_{0} {} + +template +PROTOBUF_CONSTEXPR TimeStamp::TimeStamp(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(TimeStamp_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TimeStampDefaultTypeInternal { - constexpr TimeStampDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR TimeStampDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TimeStampDefaultTypeInternal() {} union { TimeStamp _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT TimeStampDefaultTypeInternal _TimeStamp_default_instance_; -constexpr EpochDateTime::EpochDateTime( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : year_(0) - , month_(0) - , day_(0) - , hours_(0) - , seconds_(0) - , minutes_(0){} -struct EpochDateTimeDefaultTypeInternal { - constexpr EpochDateTimeDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~EpochDateTimeDefaultTypeInternal() {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TimeStampDefaultTypeInternal _TimeStamp_default_instance_; + +inline constexpr Spacecraft::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + position_{}, + velocity_{}, + attitude_{}, + spacecraftname_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR Spacecraft::Spacecraft(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(Spacecraft_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct SpacecraftDefaultTypeInternal { + PROTOBUF_CONSTEXPR SpacecraftDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SpacecraftDefaultTypeInternal() {} union { - EpochDateTime _instance; + Spacecraft _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT EpochDateTimeDefaultTypeInternal _EpochDateTime_default_instance_; -constexpr RenderingModel::RenderingModel( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : rendering_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , wavelength1_(0) - , wavelength2_(0) - , wavelength3_(0) - , cosmicraystddeviation_(0) - , straylight_(0) - , starfield_(false) - , enablesmear_(false){} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SpacecraftDefaultTypeInternal _Spacecraft_default_instance_; + +inline constexpr RenderingModel::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + rendering_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + wavelength1_{0}, + wavelength2_{0}, + wavelength3_{0}, + cosmicraystddeviation_{0}, + straylight_{0}, + starfield_{false}, + enablesmear_{false} {} + +template +PROTOBUF_CONSTEXPR RenderingModel::RenderingModel(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(RenderingModel_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct RenderingModelDefaultTypeInternal { - constexpr RenderingModelDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR RenderingModelDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~RenderingModelDefaultTypeInternal() {} union { RenderingModel _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RenderingModelDefaultTypeInternal _RenderingModel_default_instance_; -constexpr PerlinNoise::PerlinNoise( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : basefrequency_(0) - , baseamplitude_(0) - , persistence_(0) - , octavecount_(0){} -struct PerlinNoiseDefaultTypeInternal { - constexpr PerlinNoiseDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PerlinNoiseDefaultTypeInternal() {} - union { - PerlinNoise _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PerlinNoiseDefaultTypeInternal _PerlinNoise_default_instance_; -constexpr ReflectanceModel::ReflectanceModel( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : reflectanceparameters_() - , brdfmodel_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , isotropicscattering_(0){} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RenderingModelDefaultTypeInternal _RenderingModel_default_instance_; + +inline constexpr ReflectanceModel::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + reflectanceparameters_{}, + brdfmodel_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + isotropicscattering_{0} {} + +template +PROTOBUF_CONSTEXPR ReflectanceModel::ReflectanceModel(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(ReflectanceModel_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ReflectanceModelDefaultTypeInternal { - constexpr ReflectanceModelDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ReflectanceModelDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ReflectanceModelDefaultTypeInternal() {} union { ReflectanceModel _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ReflectanceModelDefaultTypeInternal _ReflectanceModel_default_instance_; -constexpr MeshModel::MeshModel( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : principalaxisdistortion_() - , inertialtobodymrp_() - , shapemodel_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , refmodel_(nullptr) - , perlinnoise_(nullptr) - , meanradius_(0) - , geometricalbedo_(0) - , proceduralrocks_(0){} -struct MeshModelDefaultTypeInternal { - constexpr MeshModelDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~MeshModelDefaultTypeInternal() {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReflectanceModelDefaultTypeInternal _ReflectanceModel_default_instance_; + +inline constexpr QuantumEfficiency::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + integrationweightfactor_{0}, + redvalue1_{0}, + redvalue2_{0}, + redvalue3_{0}, + greenvalue1_{0}, + greenvalue2_{0}, + greenvalue3_{0}, + bluevalue1_{0}, + bluevalue2_{0}, + bluevalue3_{0} {} + +template +PROTOBUF_CONSTEXPR QuantumEfficiency::QuantumEfficiency(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(QuantumEfficiency_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct QuantumEfficiencyDefaultTypeInternal { + PROTOBUF_CONSTEXPR QuantumEfficiencyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~QuantumEfficiencyDefaultTypeInternal() {} union { - MeshModel _instance; + QuantumEfficiency _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MeshModelDefaultTypeInternal _MeshModel_default_instance_; -constexpr CelestialBody::CelestialBody( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : position_() - , velocity_() - , attitude_() - , bodyname_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , model_(nullptr) - , centralbody_(false){} -struct CelestialBodyDefaultTypeInternal { - constexpr CelestialBodyDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~CelestialBodyDefaultTypeInternal() {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QuantumEfficiencyDefaultTypeInternal _QuantumEfficiency_default_instance_; + +inline constexpr PerlinNoise::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + basefrequency_{0}, + baseamplitude_{0}, + persistence_{0}, + octavecount_{0} {} + +template +PROTOBUF_CONSTEXPR PerlinNoise::PerlinNoise(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(PerlinNoise_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct PerlinNoiseDefaultTypeInternal { + PROTOBUF_CONSTEXPR PerlinNoiseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~PerlinNoiseDefaultTypeInternal() {} union { - CelestialBody _instance; + PerlinNoise _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CelestialBodyDefaultTypeInternal _CelestialBody_default_instance_; -constexpr Spacecraft::Spacecraft( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : position_() - , velocity_() - , attitude_() - , spacecraftname_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct SpacecraftDefaultTypeInternal { - constexpr SpacecraftDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~SpacecraftDefaultTypeInternal() {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PerlinNoiseDefaultTypeInternal _PerlinNoise_default_instance_; + +inline constexpr LensModel::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + fieldofview_{}, + horizontalvignetting_{}, + verticalvignetting_{}, + distortion_{}, + focallength_{0}, + pointspreadfunction_{0}, + apertureradius_{0}, + transmission_{0} {} + +template +PROTOBUF_CONSTEXPR LensModel::LensModel(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(LensModel_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct LensModelDefaultTypeInternal { + PROTOBUF_CONSTEXPR LensModelDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~LensModelDefaultTypeInternal() {} union { - Spacecraft _instance; + LensModel _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SpacecraftDefaultTypeInternal _Spacecraft_default_instance_; -constexpr QuantumEfficiency::QuantumEfficiency( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : integrationweightfactor_(0) - , redvalue1_(0) - , redvalue2_(0) - , redvalue3_(0) - , greenvalue1_(0) - , greenvalue2_(0) - , greenvalue3_(0) - , bluevalue1_(0) - , bluevalue2_(0) - , bluevalue3_(0){} -struct QuantumEfficiencyDefaultTypeInternal { - constexpr QuantumEfficiencyDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~QuantumEfficiencyDefaultTypeInternal() {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LensModelDefaultTypeInternal _LensModel_default_instance_; + +inline constexpr EpochDateTime::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + year_{0}, + month_{0}, + day_{0}, + hours_{0}, + seconds_{0}, + minutes_{0} {} + +template +PROTOBUF_CONSTEXPR EpochDateTime::EpochDateTime(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(EpochDateTime_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct EpochDateTimeDefaultTypeInternal { + PROTOBUF_CONSTEXPR EpochDateTimeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~EpochDateTimeDefaultTypeInternal() {} union { - QuantumEfficiency _instance; + EpochDateTime _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT QuantumEfficiencyDefaultTypeInternal _QuantumEfficiency_default_instance_; -constexpr LensModel::LensModel( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : fieldofview_() - , horizontalvignetting_() - , verticalvignetting_() - , distortion_() - , focallength_(0) - , pointspreadfunction_(0) - , apertureradius_(0) - , transmission_(0){} -struct LensModelDefaultTypeInternal { - constexpr LensModelDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~LensModelDefaultTypeInternal() {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EpochDateTimeDefaultTypeInternal _EpochDateTime_default_instance_; + +inline constexpr AreaOfInterest::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + centerx_{0}, + centery_{0}, + width_{0}, + height_{0}, + threshold_{0} {} + +template +PROTOBUF_CONSTEXPR AreaOfInterest::AreaOfInterest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(AreaOfInterest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct AreaOfInterestDefaultTypeInternal { + PROTOBUF_CONSTEXPR AreaOfInterestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~AreaOfInterestDefaultTypeInternal() {} union { - LensModel _instance; + AreaOfInterest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LensModelDefaultTypeInternal _LensModel_default_instance_; -constexpr SensorModel::SensorModel( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : resolution_() - , _resolution_cached_byte_size_(0) - , qecurve_(nullptr) - , renderrate_(uint64_t{0u}) - , exposuretime_(0) - , readnoise_(0) - , darkcurrent_(0) - , systemgain_(0) - , sensorwidth_(0) - , sensorheight_(0) - , fullwellcapacity_(0) - , gamma_(0) - , shotnoise_(false){} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AreaOfInterestDefaultTypeInternal _AreaOfInterest_default_instance_; + +inline constexpr SensorModel::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + resolution_{}, + _resolution_cached_byte_size_{0}, + qecurve_{nullptr}, + renderrate_{::uint64_t{0u}}, + exposuretime_{0}, + readnoise_{0}, + darkcurrent_{0}, + systemgain_{0}, + sensorwidth_{0}, + sensorheight_{0}, + fullwellcapacity_{0}, + gamma_{0}, + shotnoise_{false} {} + +template +PROTOBUF_CONSTEXPR SensorModel::SensorModel(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(SensorModel_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SensorModelDefaultTypeInternal { - constexpr SensorModelDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SensorModelDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SensorModelDefaultTypeInternal() {} union { SensorModel _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SensorModelDefaultTypeInternal _SensorModel_default_instance_; -constexpr AreaOfInterest::AreaOfInterest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : centerx_(0) - , centery_(0) - , width_(0) - , height_(0) - , threshold_(0){} -struct AreaOfInterestDefaultTypeInternal { - constexpr AreaOfInterestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~AreaOfInterestDefaultTypeInternal() {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SensorModelDefaultTypeInternal _SensorModel_default_instance_; + +inline constexpr MeshModel::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + principalaxisdistortion_{}, + inertialtobodymrp_{}, + shapemodel_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + refmodel_{nullptr}, + perlinnoise_{nullptr}, + meanradius_{0}, + geometricalbedo_{0}, + proceduralrocks_{0} {} + +template +PROTOBUF_CONSTEXPR MeshModel::MeshModel(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(MeshModel_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct MeshModelDefaultTypeInternal { + PROTOBUF_CONSTEXPR MeshModelDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~MeshModelDefaultTypeInternal() {} union { - AreaOfInterest _instance; + MeshModel _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MeshModelDefaultTypeInternal _MeshModel_default_instance_; + +inline constexpr CelestialBody::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + position_{}, + velocity_{}, + attitude_{}, + bodyname_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + model_{nullptr}, + centralbody_{false} {} + +template +PROTOBUF_CONSTEXPR CelestialBody::CelestialBody(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(CelestialBody_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct CelestialBodyDefaultTypeInternal { + PROTOBUF_CONSTEXPR CelestialBodyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CelestialBodyDefaultTypeInternal() {} + union { + CelestialBody _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AreaOfInterestDefaultTypeInternal _AreaOfInterest_default_instance_; -constexpr CameraModel::CameraModel( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : camerapositioninbody_() - , bodyframetocameramrp_() - , parentname_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , lensmodel_(nullptr) - , sensormodel_(nullptr) - , areaofinterest_(nullptr) - , cameraid_(int64_t{0}){} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CelestialBodyDefaultTypeInternal _CelestialBody_default_instance_; + +inline constexpr CameraModel::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + camerapositioninbody_{}, + bodyframetocameramrp_{}, + parentname_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + lensmodel_{nullptr}, + sensormodel_{nullptr}, + areaofinterest_{nullptr}, + cameraid_{::int64_t{0}} {} + +template +PROTOBUF_CONSTEXPR CameraModel::CameraModel(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(CameraModel_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct CameraModelDefaultTypeInternal { - constexpr CameraModelDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CameraModelDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CameraModelDefaultTypeInternal() {} union { CameraModel _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CameraModelDefaultTypeInternal _CameraModel_default_instance_; -constexpr CielimMessage::CielimMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : celestialbodies_() - , epoch_(nullptr) - , currenttime_(nullptr) - , renderparameters_(nullptr) - , spacecraft_(nullptr) - , camera_(nullptr){} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CameraModelDefaultTypeInternal _CameraModel_default_instance_; + +inline constexpr CielimMessage::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + celestialbodies_{}, + epoch_{nullptr}, + currenttime_{nullptr}, + renderparameters_{nullptr}, + spacecraft_{nullptr}, + camera_{nullptr} {} + +template +PROTOBUF_CONSTEXPR CielimMessage::CielimMessage(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(CielimMessage_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct CielimMessageDefaultTypeInternal { - constexpr CielimMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CielimMessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CielimMessageDefaultTypeInternal() {} union { CielimMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CielimMessageDefaultTypeInternal _CielimMessage_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CielimMessageDefaultTypeInternal _CielimMessage_default_instance_; } // namespace cielimMessage namespace cielimMessage { - // =================================================================== class TimeStamp::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(TimeStamp, _impl_._has_bits_); }; -TimeStamp::TimeStamp(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +TimeStamp::TimeStamp(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, TimeStamp_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:cielimMessage.TimeStamp) } -TimeStamp::TimeStamp(const TimeStamp& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&framenumber_, &from.framenumber_, - static_cast(reinterpret_cast(&simtimeelapsed_) - - reinterpret_cast(&framenumber_)) + sizeof(simtimeelapsed_)); - // @@protoc_insertion_point(copy_constructor:cielimMessage.TimeStamp) -} - -void TimeStamp::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&framenumber_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&simtimeelapsed_) - - reinterpret_cast(&framenumber_)) + sizeof(simtimeelapsed_)); +TimeStamp::TimeStamp( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TimeStamp& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, TimeStamp_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} +PROTOBUF_NDEBUG_INLINE TimeStamp::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} + +inline void TimeStamp::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, framenumber_), + 0, + offsetof(Impl_, simtimeelapsed_) - + offsetof(Impl_, framenumber_) + + sizeof(Impl_::simtimeelapsed_)); } - TimeStamp::~TimeStamp() { // @@protoc_insertion_point(destructor:cielimMessage.TimeStamp) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void TimeStamp::SharedDtor(MessageLite& self) { + TimeStamp& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL TimeStamp::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) TimeStamp(arena); +} +constexpr auto TimeStamp::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TimeStamp), + alignof(TimeStamp)); +} +constexpr auto TimeStamp::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<24>{ + { + &_TimeStamp_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TimeStamp::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TimeStamp::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &TimeStamp::ByteSizeLong, + &TimeStamp::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TimeStamp, _impl_._cached_size_), + true, + }, + "cielimMessage.TimeStamp", + }; } -inline void TimeStamp::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<24> TimeStamp_class_data_ = + TimeStamp::InternalGenerateClassData_(); -void TimeStamp::ArenaDtor(void* object) { - TimeStamp* _this = reinterpret_cast< TimeStamp* >(object); - (void)_this; -} -void TimeStamp::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +TimeStamp::GetClassData() const { + return TimeStamp_class_data_.base(); } -void TimeStamp::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void TimeStamp::Clear() { +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +TimeStamp::_table_ = { + { + PROTOBUF_FIELD_OFFSET(TimeStamp, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + TimeStamp_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::cielimMessage::TimeStamp>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // double simTimeElapsed = 2; + {::_pbi::TcParser::FastF64S1, + {17, 1, 0, + PROTOBUF_FIELD_OFFSET(TimeStamp, _impl_.simtimeelapsed_)}}, + // int64 frameNumber = 1; + {::_pbi::TcParser::FastV64S1, + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(TimeStamp, _impl_.framenumber_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // int64 frameNumber = 1; + {PROTOBUF_FIELD_OFFSET(TimeStamp, _impl_.framenumber_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // double simTimeElapsed = 2; + {PROTOBUF_FIELD_OFFSET(TimeStamp, _impl_.simtimeelapsed_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void TimeStamp::Clear() { // @@protoc_insertion_point(message_clear_start:cielimMessage.TimeStamp) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&framenumber_, 0, static_cast( - reinterpret_cast(&simtimeelapsed_) - - reinterpret_cast(&framenumber_)) + sizeof(simtimeelapsed_)); - _internal_metadata_.Clear(); -} - -const char* TimeStamp::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // int64 frameNumber = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - framenumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // double simTimeElapsed = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { - simtimeelapsed_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* TimeStamp::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + ::memset(&_impl_.framenumber_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.simtimeelapsed_) - + reinterpret_cast(&_impl_.framenumber_)) + sizeof(_impl_.simtimeelapsed_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL TimeStamp::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const TimeStamp& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL TimeStamp::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const TimeStamp& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:cielimMessage.TimeStamp) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // int64 frameNumber = 1; - if (this->_internal_framenumber() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_framenumber(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (this_._internal_framenumber() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( + stream, this_._internal_framenumber(), target); + } } // double simTimeElapsed = 2; - if (!(this->_internal_simtimeelapsed() <= 0 && this->_internal_simtimeelapsed() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_simtimeelapsed(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_simtimeelapsed()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 2, this_._internal_simtimeelapsed(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:cielimMessage.TimeStamp) return target; } -size_t TimeStamp::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:cielimMessage.TimeStamp) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t TimeStamp::ByteSizeLong(const MessageLite& base) { + const TimeStamp& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t TimeStamp::ByteSizeLong() const { + const TimeStamp& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:cielimMessage.TimeStamp) + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // int64 frameNumber = 1; - if (this->_internal_framenumber() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_framenumber()); - } - - // double simTimeElapsed = 2; - if (!(this->_internal_simtimeelapsed() <= 0 && this->_internal_simtimeelapsed() >= 0)) { - total_size += 1 + 8; + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // int64 frameNumber = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (this_._internal_framenumber() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_framenumber()); + } + } + // double simTimeElapsed = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_simtimeelapsed()) != 0) { + total_size += 9; + } + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void TimeStamp::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void TimeStamp::MergeFrom(const TimeStamp& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.TimeStamp) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_framenumber() != 0) { - _internal_set_framenumber(from._internal_framenumber()); - } - if (!(from._internal_simtimeelapsed() <= 0 && from._internal_simtimeelapsed() >= 0)) { - _internal_set_simtimeelapsed(from._internal_simtimeelapsed()); +void TimeStamp::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.TimeStamp) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (from._internal_framenumber() != 0) { + _this->_impl_.framenumber_ = from._impl_.framenumber_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_simtimeelapsed()) != 0) { + _this->_impl_.simtimeelapsed_ = from._impl_.simtimeelapsed_; + } + } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void TimeStamp::CopyFrom(const TimeStamp& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.TimeStamp) + // @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.TimeStamp) if (&from == this) return; Clear(); MergeFrom(from); } -bool TimeStamp::IsInitialized() const { - return true; -} -void TimeStamp::InternalSwap(TimeStamp* other) { - using std::swap; +void TimeStamp::InternalSwap(TimeStamp* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(TimeStamp, simtimeelapsed_) - + sizeof(TimeStamp::simtimeelapsed_) - - PROTOBUF_FIELD_OFFSET(TimeStamp, framenumber_)>( - reinterpret_cast(&framenumber_), - reinterpret_cast(&other->framenumber_)); -} - -std::string TimeStamp::GetTypeName() const { - return "cielimMessage.TimeStamp"; + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(TimeStamp, _impl_.simtimeelapsed_) + + sizeof(TimeStamp::_impl_.simtimeelapsed_) + - PROTOBUF_FIELD_OFFSET(TimeStamp, _impl_.framenumber_)>( + reinterpret_cast(&_impl_.framenumber_), + reinterpret_cast(&other->_impl_.framenumber_)); } - // =================================================================== class EpochDateTime::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(EpochDateTime, _impl_._has_bits_); }; -EpochDateTime::EpochDateTime(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +EpochDateTime::EpochDateTime(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, EpochDateTime_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:cielimMessage.EpochDateTime) } -EpochDateTime::EpochDateTime(const EpochDateTime& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&year_, &from.year_, - static_cast(reinterpret_cast(&minutes_) - - reinterpret_cast(&year_)) + sizeof(minutes_)); - // @@protoc_insertion_point(copy_constructor:cielimMessage.EpochDateTime) -} - -void EpochDateTime::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&year_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&minutes_) - - reinterpret_cast(&year_)) + sizeof(minutes_)); +EpochDateTime::EpochDateTime( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const EpochDateTime& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, EpochDateTime_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} +PROTOBUF_NDEBUG_INLINE EpochDateTime::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} + +inline void EpochDateTime::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, year_), + 0, + offsetof(Impl_, minutes_) - + offsetof(Impl_, year_) + + sizeof(Impl_::minutes_)); } - EpochDateTime::~EpochDateTime() { // @@protoc_insertion_point(destructor:cielimMessage.EpochDateTime) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void EpochDateTime::SharedDtor(MessageLite& self) { + EpochDateTime& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL EpochDateTime::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) EpochDateTime(arena); +} +constexpr auto EpochDateTime::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(EpochDateTime), + alignof(EpochDateTime)); +} +constexpr auto EpochDateTime::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<28>{ + { + &_EpochDateTime_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &EpochDateTime::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &EpochDateTime::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &EpochDateTime::ByteSizeLong, + &EpochDateTime::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(EpochDateTime, _impl_._cached_size_), + true, + }, + "cielimMessage.EpochDateTime", + }; } -inline void EpochDateTime::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<28> EpochDateTime_class_data_ = + EpochDateTime::InternalGenerateClassData_(); -void EpochDateTime::ArenaDtor(void* object) { - EpochDateTime* _this = reinterpret_cast< EpochDateTime* >(object); - (void)_this; -} -void EpochDateTime::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +EpochDateTime::GetClassData() const { + return EpochDateTime_class_data_.base(); } -void EpochDateTime::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void EpochDateTime::Clear() { +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 6, 0, 0, 2> +EpochDateTime::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EpochDateTime, _impl_._has_bits_), + 0, // no _extensions_ + 6, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967232, // skipmap + offsetof(decltype(_table_), field_entries), + 6, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + EpochDateTime_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::cielimMessage::EpochDateTime>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // int32 year = 1; + {::_pbi::TcParser::FastV32S1, + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(EpochDateTime, _impl_.year_)}}, + // int32 month = 2; + {::_pbi::TcParser::FastV32S1, + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(EpochDateTime, _impl_.month_)}}, + // int32 day = 3; + {::_pbi::TcParser::FastV32S1, + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(EpochDateTime, _impl_.day_)}}, + // int32 hours = 4; + {::_pbi::TcParser::FastV32S1, + {32, 3, 0, + PROTOBUF_FIELD_OFFSET(EpochDateTime, _impl_.hours_)}}, + // int32 minutes = 5; + {::_pbi::TcParser::FastV32S1, + {40, 5, 0, + PROTOBUF_FIELD_OFFSET(EpochDateTime, _impl_.minutes_)}}, + // double seconds = 6; + {::_pbi::TcParser::FastF64S1, + {49, 4, 0, + PROTOBUF_FIELD_OFFSET(EpochDateTime, _impl_.seconds_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // int32 year = 1; + {PROTOBUF_FIELD_OFFSET(EpochDateTime, _impl_.year_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // int32 month = 2; + {PROTOBUF_FIELD_OFFSET(EpochDateTime, _impl_.month_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // int32 day = 3; + {PROTOBUF_FIELD_OFFSET(EpochDateTime, _impl_.day_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // int32 hours = 4; + {PROTOBUF_FIELD_OFFSET(EpochDateTime, _impl_.hours_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // int32 minutes = 5; + {PROTOBUF_FIELD_OFFSET(EpochDateTime, _impl_.minutes_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // double seconds = 6; + {PROTOBUF_FIELD_OFFSET(EpochDateTime, _impl_.seconds_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void EpochDateTime::Clear() { // @@protoc_insertion_point(message_clear_start:cielimMessage.EpochDateTime) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&year_, 0, static_cast( - reinterpret_cast(&minutes_) - - reinterpret_cast(&year_)) + sizeof(minutes_)); - _internal_metadata_.Clear(); -} - -const char* EpochDateTime::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // int32 year = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - year_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // int32 month = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - month_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // int32 day = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - day_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // int32 hours = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - hours_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // int32 minutes = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { - minutes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // double seconds = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 49)) { - seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* EpochDateTime::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + ::memset(&_impl_.year_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.minutes_) - + reinterpret_cast(&_impl_.year_)) + sizeof(_impl_.minutes_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL EpochDateTime::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const EpochDateTime& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL EpochDateTime::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const EpochDateTime& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:cielimMessage.EpochDateTime) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // int32 year = 1; - if (this->_internal_year() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_year(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (this_._internal_year() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_year(), target); + } } // int32 month = 2; - if (this->_internal_month() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_month(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_month() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_month(), target); + } } // int32 day = 3; - if (this->_internal_day() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_day(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_day() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_day(), target); + } } // int32 hours = 4; - if (this->_internal_hours() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_hours(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_hours() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( + stream, this_._internal_hours(), target); + } } // int32 minutes = 5; - if (this->_internal_minutes() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_minutes(), target); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_minutes() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>( + stream, this_._internal_minutes(), target); + } } // double seconds = 6; - if (!(this->_internal_seconds() <= 0 && this->_internal_seconds() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(6, this->_internal_seconds(), target); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_seconds()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 6, this_._internal_seconds(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:cielimMessage.EpochDateTime) return target; } -size_t EpochDateTime::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:cielimMessage.EpochDateTime) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t EpochDateTime::ByteSizeLong(const MessageLite& base) { + const EpochDateTime& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t EpochDateTime::ByteSizeLong() const { + const EpochDateTime& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:cielimMessage.EpochDateTime) + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // int32 year = 1; - if (this->_internal_year() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_year()); - } - - // int32 month = 2; - if (this->_internal_month() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_month()); - } - - // int32 day = 3; - if (this->_internal_day() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_day()); - } - - // int32 hours = 4; - if (this->_internal_hours() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_hours()); - } - - // double seconds = 6; - if (!(this->_internal_seconds() <= 0 && this->_internal_seconds() >= 0)) { - total_size += 1 + 8; - } - - // int32 minutes = 5; - if (this->_internal_minutes() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_minutes()); + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + // int32 year = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (this_._internal_year() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_year()); + } + } + // int32 month = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_month() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_month()); + } + } + // int32 day = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_day() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_day()); + } + } + // int32 hours = 4; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_hours() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_hours()); + } + } + // double seconds = 6; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_seconds()) != 0) { + total_size += 9; + } + } + // int32 minutes = 5; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_minutes() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_minutes()); + } + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void EpochDateTime::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void EpochDateTime::MergeFrom(const EpochDateTime& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.EpochDateTime) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_year() != 0) { - _internal_set_year(from._internal_year()); - } - if (from._internal_month() != 0) { - _internal_set_month(from._internal_month()); - } - if (from._internal_day() != 0) { - _internal_set_day(from._internal_day()); - } - if (from._internal_hours() != 0) { - _internal_set_hours(from._internal_hours()); - } - if (!(from._internal_seconds() <= 0 && from._internal_seconds() >= 0)) { - _internal_set_seconds(from._internal_seconds()); - } - if (from._internal_minutes() != 0) { - _internal_set_minutes(from._internal_minutes()); +void EpochDateTime::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.EpochDateTime) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (from._internal_year() != 0) { + _this->_impl_.year_ = from._impl_.year_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_month() != 0) { + _this->_impl_.month_ = from._impl_.month_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (from._internal_day() != 0) { + _this->_impl_.day_ = from._impl_.day_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (from._internal_hours() != 0) { + _this->_impl_.hours_ = from._impl_.hours_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_seconds()) != 0) { + _this->_impl_.seconds_ = from._impl_.seconds_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (from._internal_minutes() != 0) { + _this->_impl_.minutes_ = from._impl_.minutes_; + } + } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void EpochDateTime::CopyFrom(const EpochDateTime& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.EpochDateTime) + // @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.EpochDateTime) if (&from == this) return; Clear(); MergeFrom(from); } -bool EpochDateTime::IsInitialized() const { - return true; -} -void EpochDateTime::InternalSwap(EpochDateTime* other) { - using std::swap; +void EpochDateTime::InternalSwap(EpochDateTime* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(EpochDateTime, minutes_) - + sizeof(EpochDateTime::minutes_) - - PROTOBUF_FIELD_OFFSET(EpochDateTime, year_)>( - reinterpret_cast(&year_), - reinterpret_cast(&other->year_)); -} - -std::string EpochDateTime::GetTypeName() const { - return "cielimMessage.EpochDateTime"; + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(EpochDateTime, _impl_.minutes_) + + sizeof(EpochDateTime::_impl_.minutes_) + - PROTOBUF_FIELD_OFFSET(EpochDateTime, _impl_.year_)>( + reinterpret_cast(&_impl_.year_), + reinterpret_cast(&other->_impl_.year_)); } - // =================================================================== class RenderingModel::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(RenderingModel, _impl_._has_bits_); }; -RenderingModel::RenderingModel(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +RenderingModel::RenderingModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, RenderingModel_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:cielimMessage.RenderingModel) } -RenderingModel::RenderingModel(const RenderingModel& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - rendering_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_rendering().empty()) { - rendering_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_rendering(), - GetArenaForAllocation()); - } - ::memcpy(&wavelength1_, &from.wavelength1_, - static_cast(reinterpret_cast(&enablesmear_) - - reinterpret_cast(&wavelength1_)) + sizeof(enablesmear_)); +PROTOBUF_NDEBUG_INLINE RenderingModel::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::cielimMessage::RenderingModel& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + rendering_(arena, from.rendering_) {} + +RenderingModel::RenderingModel( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const RenderingModel& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, RenderingModel_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + RenderingModel* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, wavelength1_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, wavelength1_), + offsetof(Impl_, enablesmear_) - + offsetof(Impl_, wavelength1_) + + sizeof(Impl_::enablesmear_)); + // @@protoc_insertion_point(copy_constructor:cielimMessage.RenderingModel) } - -void RenderingModel::SharedCtor() { -rendering_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&wavelength1_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&enablesmear_) - - reinterpret_cast(&wavelength1_)) + sizeof(enablesmear_)); +PROTOBUF_NDEBUG_INLINE RenderingModel::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + rendering_(arena) {} + +inline void RenderingModel::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, wavelength1_), + 0, + offsetof(Impl_, enablesmear_) - + offsetof(Impl_, wavelength1_) + + sizeof(Impl_::enablesmear_)); } - RenderingModel::~RenderingModel() { // @@protoc_insertion_point(destructor:cielimMessage.RenderingModel) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void RenderingModel::SharedDtor(MessageLite& self) { + RenderingModel& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.rendering_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL RenderingModel::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) RenderingModel(arena); +} +constexpr auto RenderingModel::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RenderingModel), + alignof(RenderingModel)); +} +constexpr auto RenderingModel::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<29>{ + { + &_RenderingModel_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RenderingModel::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RenderingModel::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &RenderingModel::ByteSizeLong, + &RenderingModel::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RenderingModel, _impl_._cached_size_), + true, + }, + "cielimMessage.RenderingModel", + }; } -inline void RenderingModel::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - rendering_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<29> RenderingModel_class_data_ = + RenderingModel::InternalGenerateClassData_(); -void RenderingModel::ArenaDtor(void* object) { - RenderingModel* _this = reinterpret_cast< RenderingModel* >(object); - (void)_this; +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +RenderingModel::GetClassData() const { + return RenderingModel_class_data_.base(); } -void RenderingModel::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void RenderingModel::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void RenderingModel::Clear() { +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 8, 0, 54, 2> +RenderingModel::_table_ = { + { + PROTOBUF_FIELD_OFFSET(RenderingModel, _impl_._has_bits_), + 0, // no _extensions_ + 8, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967040, // skipmap + offsetof(decltype(_table_), field_entries), + 8, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + RenderingModel_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::cielimMessage::RenderingModel>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // bool enableSmear = 8; + {::_pbi::TcParser::FastV8S1, + {64, 7, 0, + PROTOBUF_FIELD_OFFSET(RenderingModel, _impl_.enablesmear_)}}, + // double wavelength1 = 1; + {::_pbi::TcParser::FastF64S1, + {9, 1, 0, + PROTOBUF_FIELD_OFFSET(RenderingModel, _impl_.wavelength1_)}}, + // double wavelength2 = 2; + {::_pbi::TcParser::FastF64S1, + {17, 2, 0, + PROTOBUF_FIELD_OFFSET(RenderingModel, _impl_.wavelength2_)}}, + // double wavelength3 = 3; + {::_pbi::TcParser::FastF64S1, + {25, 3, 0, + PROTOBUF_FIELD_OFFSET(RenderingModel, _impl_.wavelength3_)}}, + // double cosmicRayStdDeviation = 4; + {::_pbi::TcParser::FastF64S1, + {33, 4, 0, + PROTOBUF_FIELD_OFFSET(RenderingModel, _impl_.cosmicraystddeviation_)}}, + // double strayLight = 5; + {::_pbi::TcParser::FastF64S1, + {41, 5, 0, + PROTOBUF_FIELD_OFFSET(RenderingModel, _impl_.straylight_)}}, + // bool starField = 6; + {::_pbi::TcParser::FastV8S1, + {48, 6, 0, + PROTOBUF_FIELD_OFFSET(RenderingModel, _impl_.starfield_)}}, + // string rendering = 7; + {::_pbi::TcParser::FastUS1, + {58, 0, 0, + PROTOBUF_FIELD_OFFSET(RenderingModel, _impl_.rendering_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // double wavelength1 = 1; + {PROTOBUF_FIELD_OFFSET(RenderingModel, _impl_.wavelength1_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double wavelength2 = 2; + {PROTOBUF_FIELD_OFFSET(RenderingModel, _impl_.wavelength2_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double wavelength3 = 3; + {PROTOBUF_FIELD_OFFSET(RenderingModel, _impl_.wavelength3_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double cosmicRayStdDeviation = 4; + {PROTOBUF_FIELD_OFFSET(RenderingModel, _impl_.cosmicraystddeviation_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double strayLight = 5; + {PROTOBUF_FIELD_OFFSET(RenderingModel, _impl_.straylight_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // bool starField = 6; + {PROTOBUF_FIELD_OFFSET(RenderingModel, _impl_.starfield_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // string rendering = 7; + {PROTOBUF_FIELD_OFFSET(RenderingModel, _impl_.rendering_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // bool enableSmear = 8; + {PROTOBUF_FIELD_OFFSET(RenderingModel, _impl_.enablesmear_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + // no aux_entries + {{ + "\34\0\0\0\0\0\0\11\0\0\0\0\0\0\0\0" + "cielimMessage.RenderingModel" + "rendering" + }}, +}; +PROTOBUF_NOINLINE void RenderingModel::Clear() { // @@protoc_insertion_point(message_clear_start:cielimMessage.RenderingModel) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - rendering_.ClearToEmpty(); - ::memset(&wavelength1_, 0, static_cast( - reinterpret_cast(&enablesmear_) - - reinterpret_cast(&wavelength1_)) + sizeof(enablesmear_)); - _internal_metadata_.Clear(); -} - -const char* RenderingModel::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // double wavelength1 = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) { - wavelength1_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double wavelength2 = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { - wavelength2_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double wavelength3 = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25)) { - wavelength3_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double cosmicRayStdDeviation = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33)) { - cosmicraystddeviation_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double strayLight = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 41)) { - straylight_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // bool starField = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { - starfield_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // string rendering = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { - auto str = _internal_mutable_rendering(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, nullptr)); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // bool enableSmear = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { - enablesmear_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* RenderingModel::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.rendering_.ClearNonDefaultToEmpty(); + } + if (BatchCheckHasBit(cached_has_bits, 0x000000feU)) { + ::memset(&_impl_.wavelength1_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.enablesmear_) - + reinterpret_cast(&_impl_.wavelength1_)) + sizeof(_impl_.enablesmear_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL RenderingModel::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const RenderingModel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL RenderingModel::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const RenderingModel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:cielimMessage.RenderingModel) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // double wavelength1 = 1; - if (!(this->_internal_wavelength1() <= 0 && this->_internal_wavelength1() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->_internal_wavelength1(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_wavelength1()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 1, this_._internal_wavelength1(), target); + } } // double wavelength2 = 2; - if (!(this->_internal_wavelength2() <= 0 && this->_internal_wavelength2() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_wavelength2(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_wavelength2()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 2, this_._internal_wavelength2(), target); + } } // double wavelength3 = 3; - if (!(this->_internal_wavelength3() <= 0 && this->_internal_wavelength3() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(3, this->_internal_wavelength3(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_wavelength3()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 3, this_._internal_wavelength3(), target); + } } // double cosmicRayStdDeviation = 4; - if (!(this->_internal_cosmicraystddeviation() <= 0 && this->_internal_cosmicraystddeviation() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_cosmicraystddeviation(), target); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_cosmicraystddeviation()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 4, this_._internal_cosmicraystddeviation(), target); + } } // double strayLight = 5; - if (!(this->_internal_straylight() <= 0 && this->_internal_straylight() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(5, this->_internal_straylight(), target); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_straylight()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 5, this_._internal_straylight(), target); + } } // bool starField = 6; - if (this->_internal_starfield() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_starfield(), target); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_starfield() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 6, this_._internal_starfield(), target); + } } // string rendering = 7; - if (!this->_internal_rendering().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_rendering().data(), static_cast(this->_internal_rendering().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "cielimMessage.RenderingModel.rendering"); - target = stream->WriteStringMaybeAliased( - 7, this->_internal_rendering(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_rendering().empty()) { + const ::std::string& _s = this_._internal_rendering(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "cielimMessage.RenderingModel.rendering"); + target = stream->WriteStringMaybeAliased(7, _s, target); + } } // bool enableSmear = 8; - if (this->_internal_enablesmear() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(8, this->_internal_enablesmear(), target); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_enablesmear() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 8, this_._internal_enablesmear(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:cielimMessage.RenderingModel) return target; } -size_t RenderingModel::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:cielimMessage.RenderingModel) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t RenderingModel::ByteSizeLong(const MessageLite& base) { + const RenderingModel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t RenderingModel::ByteSizeLong() const { + const RenderingModel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:cielimMessage.RenderingModel) + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string rendering = 7; - if (!this->_internal_rendering().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_rendering()); + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // string rendering = 7; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_rendering().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_rendering()); + } + } + // double wavelength1 = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_wavelength1()) != 0) { + total_size += 9; + } + } + // double wavelength2 = 2; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_wavelength2()) != 0) { + total_size += 9; + } + } + // double wavelength3 = 3; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_wavelength3()) != 0) { + total_size += 9; + } + } + // double cosmicRayStdDeviation = 4; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_cosmicraystddeviation()) != 0) { + total_size += 9; + } + } + // double strayLight = 5; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_straylight()) != 0) { + total_size += 9; + } + } + // bool starField = 6; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_starfield() != 0) { + total_size += 2; + } + } + // bool enableSmear = 8; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_enablesmear() != 0) { + total_size += 2; + } + } } - - // double wavelength1 = 1; - if (!(this->_internal_wavelength1() <= 0 && this->_internal_wavelength1() >= 0)) { - total_size += 1 + 8; + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); + return total_size; +} - // double wavelength2 = 2; - if (!(this->_internal_wavelength2() <= 0 && this->_internal_wavelength2() >= 0)) { - total_size += 1 + 8; +void RenderingModel::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.RenderingModel) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_rendering().empty()) { + _this->_internal_set_rendering(from._internal_rendering()); + } else { + if (_this->_impl_.rendering_.IsDefault()) { + _this->_internal_set_rendering(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_wavelength1()) != 0) { + _this->_impl_.wavelength1_ = from._impl_.wavelength1_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_wavelength2()) != 0) { + _this->_impl_.wavelength2_ = from._impl_.wavelength2_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_wavelength3()) != 0) { + _this->_impl_.wavelength3_ = from._impl_.wavelength3_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_cosmicraystddeviation()) != 0) { + _this->_impl_.cosmicraystddeviation_ = from._impl_.cosmicraystddeviation_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_straylight()) != 0) { + _this->_impl_.straylight_ = from._impl_.straylight_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (from._internal_starfield() != 0) { + _this->_impl_.starfield_ = from._impl_.starfield_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (from._internal_enablesmear() != 0) { + _this->_impl_.enablesmear_ = from._impl_.enablesmear_; + } + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} - // double wavelength3 = 3; - if (!(this->_internal_wavelength3() <= 0 && this->_internal_wavelength3() >= 0)) { - total_size += 1 + 8; - } +void RenderingModel::CopyFrom(const RenderingModel& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.RenderingModel) + if (&from == this) return; + Clear(); + MergeFrom(from); +} - // double cosmicRayStdDeviation = 4; - if (!(this->_internal_cosmicraystddeviation() <= 0 && this->_internal_cosmicraystddeviation() >= 0)) { - total_size += 1 + 8; - } - // double strayLight = 5; - if (!(this->_internal_straylight() <= 0 && this->_internal_straylight() >= 0)) { - total_size += 1 + 8; - } +void RenderingModel::InternalSwap(RenderingModel* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.rendering_, &other->_impl_.rendering_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(RenderingModel, _impl_.enablesmear_) + + sizeof(RenderingModel::_impl_.enablesmear_) + - PROTOBUF_FIELD_OFFSET(RenderingModel, _impl_.wavelength1_)>( + reinterpret_cast(&_impl_.wavelength1_), + reinterpret_cast(&other->_impl_.wavelength1_)); +} - // bool starField = 6; - if (this->_internal_starfield() != 0) { - total_size += 1 + 1; - } - - // bool enableSmear = 8; - if (this->_internal_enablesmear() != 0) { - total_size += 1 + 1; - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void RenderingModel::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void RenderingModel::MergeFrom(const RenderingModel& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.RenderingModel) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_rendering().empty()) { - _internal_set_rendering(from._internal_rendering()); - } - if (!(from._internal_wavelength1() <= 0 && from._internal_wavelength1() >= 0)) { - _internal_set_wavelength1(from._internal_wavelength1()); - } - if (!(from._internal_wavelength2() <= 0 && from._internal_wavelength2() >= 0)) { - _internal_set_wavelength2(from._internal_wavelength2()); - } - if (!(from._internal_wavelength3() <= 0 && from._internal_wavelength3() >= 0)) { - _internal_set_wavelength3(from._internal_wavelength3()); - } - if (!(from._internal_cosmicraystddeviation() <= 0 && from._internal_cosmicraystddeviation() >= 0)) { - _internal_set_cosmicraystddeviation(from._internal_cosmicraystddeviation()); - } - if (!(from._internal_straylight() <= 0 && from._internal_straylight() >= 0)) { - _internal_set_straylight(from._internal_straylight()); - } - if (from._internal_starfield() != 0) { - _internal_set_starfield(from._internal_starfield()); - } - if (from._internal_enablesmear() != 0) { - _internal_set_enablesmear(from._internal_enablesmear()); - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void RenderingModel::CopyFrom(const RenderingModel& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.RenderingModel) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RenderingModel::IsInitialized() const { - return true; -} - -void RenderingModel::InternalSwap(RenderingModel* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &rendering_, lhs_arena, - &other->rendering_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(RenderingModel, enablesmear_) - + sizeof(RenderingModel::enablesmear_) - - PROTOBUF_FIELD_OFFSET(RenderingModel, wavelength1_)>( - reinterpret_cast(&wavelength1_), - reinterpret_cast(&other->wavelength1_)); -} - -std::string RenderingModel::GetTypeName() const { - return "cielimMessage.RenderingModel"; -} - - -// =================================================================== +// =================================================================== class PerlinNoise::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(PerlinNoise, _impl_._has_bits_); }; -PerlinNoise::PerlinNoise(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +PerlinNoise::PerlinNoise(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, PerlinNoise_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:cielimMessage.PerlinNoise) } -PerlinNoise::PerlinNoise(const PerlinNoise& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&basefrequency_, &from.basefrequency_, - static_cast(reinterpret_cast(&octavecount_) - - reinterpret_cast(&basefrequency_)) + sizeof(octavecount_)); - // @@protoc_insertion_point(copy_constructor:cielimMessage.PerlinNoise) -} - -void PerlinNoise::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&basefrequency_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&octavecount_) - - reinterpret_cast(&basefrequency_)) + sizeof(octavecount_)); +PerlinNoise::PerlinNoise( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PerlinNoise& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, PerlinNoise_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} +PROTOBUF_NDEBUG_INLINE PerlinNoise::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} + +inline void PerlinNoise::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, basefrequency_), + 0, + offsetof(Impl_, octavecount_) - + offsetof(Impl_, basefrequency_) + + sizeof(Impl_::octavecount_)); } - PerlinNoise::~PerlinNoise() { // @@protoc_insertion_point(destructor:cielimMessage.PerlinNoise) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void PerlinNoise::SharedDtor(MessageLite& self) { + PerlinNoise& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL PerlinNoise::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) PerlinNoise(arena); +} +constexpr auto PerlinNoise::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(PerlinNoise), + alignof(PerlinNoise)); +} +constexpr auto PerlinNoise::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<26>{ + { + &_PerlinNoise_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &PerlinNoise::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &PerlinNoise::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &PerlinNoise::ByteSizeLong, + &PerlinNoise::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(PerlinNoise, _impl_._cached_size_), + true, + }, + "cielimMessage.PerlinNoise", + }; } -inline void PerlinNoise::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<26> PerlinNoise_class_data_ = + PerlinNoise::InternalGenerateClassData_(); -void PerlinNoise::ArenaDtor(void* object) { - PerlinNoise* _this = reinterpret_cast< PerlinNoise* >(object); - (void)_this; +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +PerlinNoise::GetClassData() const { + return PerlinNoise_class_data_.base(); } -void PerlinNoise::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PerlinNoise::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void PerlinNoise::Clear() { +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 0, 0, 2> +PerlinNoise::_table_ = { + { + PROTOBUF_FIELD_OFFSET(PerlinNoise, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + PerlinNoise_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::cielimMessage::PerlinNoise>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // double persistence = 4; + {::_pbi::TcParser::FastF64S1, + {33, 2, 0, + PROTOBUF_FIELD_OFFSET(PerlinNoise, _impl_.persistence_)}}, + // int32 octaveCount = 1; + {::_pbi::TcParser::FastV32S1, + {8, 3, 0, + PROTOBUF_FIELD_OFFSET(PerlinNoise, _impl_.octavecount_)}}, + // double baseFrequency = 2; + {::_pbi::TcParser::FastF64S1, + {17, 0, 0, + PROTOBUF_FIELD_OFFSET(PerlinNoise, _impl_.basefrequency_)}}, + // double baseAmplitude = 3; + {::_pbi::TcParser::FastF64S1, + {25, 1, 0, + PROTOBUF_FIELD_OFFSET(PerlinNoise, _impl_.baseamplitude_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // int32 octaveCount = 1; + {PROTOBUF_FIELD_OFFSET(PerlinNoise, _impl_.octavecount_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // double baseFrequency = 2; + {PROTOBUF_FIELD_OFFSET(PerlinNoise, _impl_.basefrequency_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double baseAmplitude = 3; + {PROTOBUF_FIELD_OFFSET(PerlinNoise, _impl_.baseamplitude_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double persistence = 4; + {PROTOBUF_FIELD_OFFSET(PerlinNoise, _impl_.persistence_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void PerlinNoise::Clear() { // @@protoc_insertion_point(message_clear_start:cielimMessage.PerlinNoise) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&basefrequency_, 0, static_cast( - reinterpret_cast(&octavecount_) - - reinterpret_cast(&basefrequency_)) + sizeof(octavecount_)); - _internal_metadata_.Clear(); -} - -const char* PerlinNoise::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // int32 octaveCount = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - octavecount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // double baseFrequency = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { - basefrequency_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double baseAmplitude = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25)) { - baseamplitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double persistence = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33)) { - persistence_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PerlinNoise::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + ::memset(&_impl_.basefrequency_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.octavecount_) - + reinterpret_cast(&_impl_.basefrequency_)) + sizeof(_impl_.octavecount_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL PerlinNoise::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const PerlinNoise& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL PerlinNoise::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const PerlinNoise& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:cielimMessage.PerlinNoise) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // int32 octaveCount = 1; - if (this->_internal_octavecount() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_octavecount(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_octavecount() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_octavecount(), target); + } } // double baseFrequency = 2; - if (!(this->_internal_basefrequency() <= 0 && this->_internal_basefrequency() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_basefrequency(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_basefrequency()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 2, this_._internal_basefrequency(), target); + } } // double baseAmplitude = 3; - if (!(this->_internal_baseamplitude() <= 0 && this->_internal_baseamplitude() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(3, this->_internal_baseamplitude(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_baseamplitude()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 3, this_._internal_baseamplitude(), target); + } } // double persistence = 4; - if (!(this->_internal_persistence() <= 0 && this->_internal_persistence() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_persistence(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_persistence()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 4, this_._internal_persistence(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:cielimMessage.PerlinNoise) return target; } -size_t PerlinNoise::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:cielimMessage.PerlinNoise) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t PerlinNoise::ByteSizeLong(const MessageLite& base) { + const PerlinNoise& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t PerlinNoise::ByteSizeLong() const { + const PerlinNoise& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:cielimMessage.PerlinNoise) + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // double baseFrequency = 2; - if (!(this->_internal_basefrequency() <= 0 && this->_internal_basefrequency() >= 0)) { - total_size += 1 + 8; - } - - // double baseAmplitude = 3; - if (!(this->_internal_baseamplitude() <= 0 && this->_internal_baseamplitude() >= 0)) { - total_size += 1 + 8; - } - - // double persistence = 4; - if (!(this->_internal_persistence() <= 0 && this->_internal_persistence() >= 0)) { - total_size += 1 + 8; - } - - // int32 octaveCount = 1; - if (this->_internal_octavecount() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_octavecount()); + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + // double baseFrequency = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_basefrequency()) != 0) { + total_size += 9; + } + } + // double baseAmplitude = 3; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_baseamplitude()) != 0) { + total_size += 9; + } + } + // double persistence = 4; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_persistence()) != 0) { + total_size += 9; + } + } + // int32 octaveCount = 1; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_octavecount() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_octavecount()); + } + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void PerlinNoise::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void PerlinNoise::MergeFrom(const PerlinNoise& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.PerlinNoise) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (!(from._internal_basefrequency() <= 0 && from._internal_basefrequency() >= 0)) { - _internal_set_basefrequency(from._internal_basefrequency()); - } - if (!(from._internal_baseamplitude() <= 0 && from._internal_baseamplitude() >= 0)) { - _internal_set_baseamplitude(from._internal_baseamplitude()); - } - if (!(from._internal_persistence() <= 0 && from._internal_persistence() >= 0)) { - _internal_set_persistence(from._internal_persistence()); - } - if (from._internal_octavecount() != 0) { - _internal_set_octavecount(from._internal_octavecount()); +void PerlinNoise::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.PerlinNoise) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_basefrequency()) != 0) { + _this->_impl_.basefrequency_ = from._impl_.basefrequency_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_baseamplitude()) != 0) { + _this->_impl_.baseamplitude_ = from._impl_.baseamplitude_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_persistence()) != 0) { + _this->_impl_.persistence_ = from._impl_.persistence_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (from._internal_octavecount() != 0) { + _this->_impl_.octavecount_ = from._impl_.octavecount_; + } + } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void PerlinNoise::CopyFrom(const PerlinNoise& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.PerlinNoise) + // @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.PerlinNoise) if (&from == this) return; Clear(); MergeFrom(from); } -bool PerlinNoise::IsInitialized() const { - return true; -} -void PerlinNoise::InternalSwap(PerlinNoise* other) { - using std::swap; +void PerlinNoise::InternalSwap(PerlinNoise* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(PerlinNoise, octavecount_) - + sizeof(PerlinNoise::octavecount_) - - PROTOBUF_FIELD_OFFSET(PerlinNoise, basefrequency_)>( - reinterpret_cast(&basefrequency_), - reinterpret_cast(&other->basefrequency_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(PerlinNoise, _impl_.octavecount_) + + sizeof(PerlinNoise::_impl_.octavecount_) + - PROTOBUF_FIELD_OFFSET(PerlinNoise, _impl_.basefrequency_)>( + reinterpret_cast(&_impl_.basefrequency_), + reinterpret_cast(&other->_impl_.basefrequency_)); } -std::string PerlinNoise::GetTypeName() const { - return "cielimMessage.PerlinNoise"; -} - - // =================================================================== class ReflectanceModel::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ReflectanceModel, _impl_._has_bits_); }; -ReflectanceModel::ReflectanceModel(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - reflectanceparameters_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +ReflectanceModel::ReflectanceModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, ReflectanceModel_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:cielimMessage.ReflectanceModel) } -ReflectanceModel::ReflectanceModel(const ReflectanceModel& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - reflectanceparameters_(from.reflectanceparameters_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - brdfmodel_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_brdfmodel().empty()) { - brdfmodel_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_brdfmodel(), - GetArenaForAllocation()); - } - isotropicscattering_ = from.isotropicscattering_; +PROTOBUF_NDEBUG_INLINE ReflectanceModel::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::cielimMessage::ReflectanceModel& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + reflectanceparameters_{visibility, arena, from.reflectanceparameters_}, + brdfmodel_(arena, from.brdfmodel_) {} + +ReflectanceModel::ReflectanceModel( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const ReflectanceModel& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, ReflectanceModel_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + ReflectanceModel* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.isotropicscattering_ = from._impl_.isotropicscattering_; + // @@protoc_insertion_point(copy_constructor:cielimMessage.ReflectanceModel) } +PROTOBUF_NDEBUG_INLINE ReflectanceModel::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + reflectanceparameters_{visibility, arena}, + brdfmodel_(arena) {} -void ReflectanceModel::SharedCtor() { -brdfmodel_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -isotropicscattering_ = 0; +inline void ReflectanceModel::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.isotropicscattering_ = {}; } - ReflectanceModel::~ReflectanceModel() { // @@protoc_insertion_point(destructor:cielimMessage.ReflectanceModel) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void ReflectanceModel::SharedDtor(MessageLite& self) { + ReflectanceModel& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.brdfmodel_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL ReflectanceModel::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ReflectanceModel(arena); +} +constexpr auto ReflectanceModel::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(ReflectanceModel, _impl_.reflectanceparameters_) + + decltype(ReflectanceModel::_impl_.reflectanceparameters_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(ReflectanceModel), alignof(ReflectanceModel), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&ReflectanceModel::PlacementNew_, + sizeof(ReflectanceModel), + alignof(ReflectanceModel)); + } +} +constexpr auto ReflectanceModel::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<31>{ + { + &_ReflectanceModel_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ReflectanceModel::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ReflectanceModel::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &ReflectanceModel::ByteSizeLong, + &ReflectanceModel::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ReflectanceModel, _impl_._cached_size_), + true, + }, + "cielimMessage.ReflectanceModel", + }; } -inline void ReflectanceModel::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - brdfmodel_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<31> ReflectanceModel_class_data_ = + ReflectanceModel::InternalGenerateClassData_(); -void ReflectanceModel::ArenaDtor(void* object) { - ReflectanceModel* _this = reinterpret_cast< ReflectanceModel* >(object); - (void)_this; +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ReflectanceModel::GetClassData() const { + return ReflectanceModel_class_data_.base(); } -void ReflectanceModel::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ReflectanceModel::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void ReflectanceModel::Clear() { +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 48, 2> +ReflectanceModel::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ReflectanceModel, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + ReflectanceModel_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::cielimMessage::ReflectanceModel>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string brdfModel = 1; + {::_pbi::TcParser::FastUS1, + {10, 1, 0, + PROTOBUF_FIELD_OFFSET(ReflectanceModel, _impl_.brdfmodel_)}}, + // double isotropicScattering = 2; + {::_pbi::TcParser::FastF64S1, + {17, 2, 0, + PROTOBUF_FIELD_OFFSET(ReflectanceModel, _impl_.isotropicscattering_)}}, + // repeated double reflectanceParameters = 3; + {::_pbi::TcParser::FastF64P1, + {26, 0, 0, + PROTOBUF_FIELD_OFFSET(ReflectanceModel, _impl_.reflectanceparameters_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string brdfModel = 1; + {PROTOBUF_FIELD_OFFSET(ReflectanceModel, _impl_.brdfmodel_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // double isotropicScattering = 2; + {PROTOBUF_FIELD_OFFSET(ReflectanceModel, _impl_.isotropicscattering_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // repeated double reflectanceParameters = 3; + {PROTOBUF_FIELD_OFFSET(ReflectanceModel, _impl_.reflectanceparameters_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, + }}, + // no aux_entries + {{ + "\36\11\0\0\0\0\0\0" + "cielimMessage.ReflectanceModel" + "brdfModel" + }}, +}; +PROTOBUF_NOINLINE void ReflectanceModel::Clear() { // @@protoc_insertion_point(message_clear_start:cielimMessage.ReflectanceModel) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - reflectanceparameters_.Clear(); - brdfmodel_.ClearToEmpty(); - isotropicscattering_ = 0; - _internal_metadata_.Clear(); -} - -const char* ReflectanceModel::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string brdfModel = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_brdfmodel(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, nullptr)); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // double isotropicScattering = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { - isotropicscattering_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // repeated double reflectanceParameters = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_reflectanceparameters(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25) { - _internal_add_reflectanceparameters(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* ReflectanceModel::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.reflectanceparameters_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.brdfmodel_.ClearNonDefaultToEmpty(); + } + } + _impl_.isotropicscattering_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ReflectanceModel::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ReflectanceModel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ReflectanceModel::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ReflectanceModel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:cielimMessage.ReflectanceModel) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // string brdfModel = 1; - if (!this->_internal_brdfmodel().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_brdfmodel().data(), static_cast(this->_internal_brdfmodel().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "cielimMessage.ReflectanceModel.brdfModel"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_brdfmodel(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_brdfmodel().empty()) { + const ::std::string& _s = this_._internal_brdfmodel(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "cielimMessage.ReflectanceModel.brdfModel"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } } // double isotropicScattering = 2; - if (!(this->_internal_isotropicscattering() <= 0 && this->_internal_isotropicscattering() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_isotropicscattering(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_isotropicscattering()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 2, this_._internal_isotropicscattering(), target); + } } // repeated double reflectanceParameters = 3; - if (this->_internal_reflectanceparameters_size() > 0) { - target = stream->WriteFixedPacked(3, _internal_reflectanceparameters(), target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + if (this_._internal_reflectanceparameters_size() > 0) { + target = stream->WriteFixedPacked(3, this_._internal_reflectanceparameters(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:cielimMessage.ReflectanceModel) return target; } -size_t ReflectanceModel::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:cielimMessage.ReflectanceModel) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ReflectanceModel::ByteSizeLong(const MessageLite& base) { + const ReflectanceModel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ReflectanceModel::ByteSizeLong() const { + const ReflectanceModel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:cielimMessage.ReflectanceModel) + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated double reflectanceParameters = 3; - { - unsigned int count = static_cast(this->_internal_reflectanceparameters_size()); - size_t data_size = 8UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + // repeated double reflectanceParameters = 3; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + ::size_t data_size = ::size_t{8} * + ::_pbi::FromIntSize(this_._internal_reflectanceparameters_size()); + ::size_t tag_size = data_size == 0 + ? 0 + : 1 + ::_pbi::WireFormatLite::Int32Size( + static_cast<::int32_t>(data_size)); + total_size += tag_size + data_size; + } + // string brdfModel = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_brdfmodel().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_brdfmodel()); + } + } + // double isotropicScattering = 2; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_isotropicscattering()) != 0) { + total_size += 9; + } } - total_size += data_size; - } - - // string brdfModel = 1; - if (!this->_internal_brdfmodel().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_brdfmodel()); - } - - // double isotropicScattering = 2; - if (!(this->_internal_isotropicscattering() <= 0 && this->_internal_isotropicscattering() >= 0)) { - total_size += 1 + 8; } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void ReflectanceModel::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ReflectanceModel::MergeFrom(const ReflectanceModel& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.ReflectanceModel) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - reflectanceparameters_.MergeFrom(from.reflectanceparameters_); - if (!from._internal_brdfmodel().empty()) { - _internal_set_brdfmodel(from._internal_brdfmodel()); +void ReflectanceModel::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (!(from._internal_isotropicscattering() <= 0 && from._internal_isotropicscattering() >= 0)) { - _internal_set_isotropicscattering(from._internal_isotropicscattering()); + // @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.ReflectanceModel) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_reflectanceparameters()->MergeFrom(from._internal_reflectanceparameters()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!from._internal_brdfmodel().empty()) { + _this->_internal_set_brdfmodel(from._internal_brdfmodel()); + } else { + if (_this->_impl_.brdfmodel_.IsDefault()) { + _this->_internal_set_brdfmodel(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_isotropicscattering()) != 0) { + _this->_impl_.isotropicscattering_ = from._impl_.isotropicscattering_; + } + } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void ReflectanceModel::CopyFrom(const ReflectanceModel& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.ReflectanceModel) + // @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.ReflectanceModel) if (&from == this) return; Clear(); MergeFrom(from); } -bool ReflectanceModel::IsInitialized() const { - return true; -} -void ReflectanceModel::InternalSwap(ReflectanceModel* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void ReflectanceModel::InternalSwap(ReflectanceModel* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - reflectanceparameters_.InternalSwap(&other->reflectanceparameters_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &brdfmodel_, lhs_arena, - &other->brdfmodel_, rhs_arena - ); - swap(isotropicscattering_, other->isotropicscattering_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.reflectanceparameters_.InternalSwap(&other->_impl_.reflectanceparameters_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.brdfmodel_, &other->_impl_.brdfmodel_, arena); + swap(_impl_.isotropicscattering_, other->_impl_.isotropicscattering_); } -std::string ReflectanceModel::GetTypeName() const { - return "cielimMessage.ReflectanceModel"; -} - - // =================================================================== class MeshModel::_Internal { public: - static const ::cielimMessage::ReflectanceModel& refmodel(const MeshModel* msg); - static const ::cielimMessage::PerlinNoise& perlinnoise(const MeshModel* msg); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(MeshModel, _impl_._has_bits_); }; -const ::cielimMessage::ReflectanceModel& -MeshModel::_Internal::refmodel(const MeshModel* msg) { - return *msg->refmodel_; -} -const ::cielimMessage::PerlinNoise& -MeshModel::_Internal::perlinnoise(const MeshModel* msg) { - return *msg->perlinnoise_; -} -MeshModel::MeshModel(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - principalaxisdistortion_(arena), - inertialtobodymrp_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +MeshModel::MeshModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, MeshModel_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:cielimMessage.MeshModel) } -MeshModel::MeshModel(const MeshModel& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - principalaxisdistortion_(from.principalaxisdistortion_), - inertialtobodymrp_(from.inertialtobodymrp_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - shapemodel_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_shapemodel().empty()) { - shapemodel_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_shapemodel(), - GetArenaForAllocation()); - } - if (from._internal_has_refmodel()) { - refmodel_ = new ::cielimMessage::ReflectanceModel(*from.refmodel_); - } else { - refmodel_ = nullptr; - } - if (from._internal_has_perlinnoise()) { - perlinnoise_ = new ::cielimMessage::PerlinNoise(*from.perlinnoise_); - } else { - perlinnoise_ = nullptr; - } - ::memcpy(&meanradius_, &from.meanradius_, - static_cast(reinterpret_cast(&proceduralrocks_) - - reinterpret_cast(&meanradius_)) + sizeof(proceduralrocks_)); +PROTOBUF_NDEBUG_INLINE MeshModel::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::cielimMessage::MeshModel& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + principalaxisdistortion_{visibility, arena, from.principalaxisdistortion_}, + inertialtobodymrp_{visibility, arena, from.inertialtobodymrp_}, + shapemodel_(arena, from.shapemodel_) {} + +MeshModel::MeshModel( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const MeshModel& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, MeshModel_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + MeshModel* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.refmodel_ = (CheckHasBit(cached_has_bits, 0x00000008U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.refmodel_) + : nullptr; + _impl_.perlinnoise_ = (CheckHasBit(cached_has_bits, 0x00000010U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.perlinnoise_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, meanradius_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, meanradius_), + offsetof(Impl_, proceduralrocks_) - + offsetof(Impl_, meanradius_) + + sizeof(Impl_::proceduralrocks_)); + // @@protoc_insertion_point(copy_constructor:cielimMessage.MeshModel) } - -void MeshModel::SharedCtor() { -shapemodel_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&refmodel_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&proceduralrocks_) - - reinterpret_cast(&refmodel_)) + sizeof(proceduralrocks_)); +PROTOBUF_NDEBUG_INLINE MeshModel::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + principalaxisdistortion_{visibility, arena}, + inertialtobodymrp_{visibility, arena}, + shapemodel_(arena) {} + +inline void MeshModel::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, refmodel_), + 0, + offsetof(Impl_, proceduralrocks_) - + offsetof(Impl_, refmodel_) + + sizeof(Impl_::proceduralrocks_)); } - MeshModel::~MeshModel() { // @@protoc_insertion_point(destructor:cielimMessage.MeshModel) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void MeshModel::SharedDtor(MessageLite& self) { + MeshModel& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.shapemodel_.Destroy(); + delete this_._impl_.refmodel_; + delete this_._impl_.perlinnoise_; + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL MeshModel::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) MeshModel(arena); +} +constexpr auto MeshModel::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(MeshModel, _impl_.principalaxisdistortion_) + + decltype(MeshModel::_impl_.principalaxisdistortion_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + PROTOBUF_FIELD_OFFSET(MeshModel, _impl_.inertialtobodymrp_) + + decltype(MeshModel::_impl_.inertialtobodymrp_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(MeshModel), alignof(MeshModel), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&MeshModel::PlacementNew_, + sizeof(MeshModel), + alignof(MeshModel)); + } +} +constexpr auto MeshModel::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<24>{ + { + &_MeshModel_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &MeshModel::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &MeshModel::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &MeshModel::ByteSizeLong, + &MeshModel::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(MeshModel, _impl_._cached_size_), + true, + }, + "cielimMessage.MeshModel", + }; } -inline void MeshModel::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - shapemodel_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete refmodel_; - if (this != internal_default_instance()) delete perlinnoise_; -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<24> MeshModel_class_data_ = + MeshModel::InternalGenerateClassData_(); -void MeshModel::ArenaDtor(void* object) { - MeshModel* _this = reinterpret_cast< MeshModel* >(object); - (void)_this; -} -void MeshModel::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MeshModel::SetCachedSize(int size) const { - _cached_size_.Set(size); +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +MeshModel::GetClassData() const { + return MeshModel_class_data_.base(); } - -void MeshModel::Clear() { +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 8, 2, 50, 2> +MeshModel::_table_ = { + { + PROTOBUF_FIELD_OFFSET(MeshModel, _impl_._has_bits_), + 0, // no _extensions_ + 8, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967040, // skipmap + offsetof(decltype(_table_), field_entries), + 8, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + MeshModel_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::cielimMessage::MeshModel>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // double proceduralRocks = 8; + {::_pbi::TcParser::FastF64S1, + {65, 7, 0, + PROTOBUF_FIELD_OFFSET(MeshModel, _impl_.proceduralrocks_)}}, + // string shapeModel = 1; + {::_pbi::TcParser::FastUS1, + {10, 2, 0, + PROTOBUF_FIELD_OFFSET(MeshModel, _impl_.shapemodel_)}}, + // double meanRadius = 2; + {::_pbi::TcParser::FastF64S1, + {17, 5, 0, + PROTOBUF_FIELD_OFFSET(MeshModel, _impl_.meanradius_)}}, + // double geometricAlbedo = 3; + {::_pbi::TcParser::FastF64S1, + {25, 6, 0, + PROTOBUF_FIELD_OFFSET(MeshModel, _impl_.geometricalbedo_)}}, + // repeated double principalAxisDistortion = 4; + {::_pbi::TcParser::FastF64P1, + {34, 0, 0, + PROTOBUF_FIELD_OFFSET(MeshModel, _impl_.principalaxisdistortion_)}}, + // repeated double inertialToBodyMrp = 5; + {::_pbi::TcParser::FastF64P1, + {42, 1, 0, + PROTOBUF_FIELD_OFFSET(MeshModel, _impl_.inertialtobodymrp_)}}, + // .cielimMessage.ReflectanceModel refModel = 6; + {::_pbi::TcParser::FastMtS1, + {50, 3, 0, + PROTOBUF_FIELD_OFFSET(MeshModel, _impl_.refmodel_)}}, + // .cielimMessage.PerlinNoise perlinNoise = 7; + {::_pbi::TcParser::FastMtS1, + {58, 4, 1, + PROTOBUF_FIELD_OFFSET(MeshModel, _impl_.perlinnoise_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string shapeModel = 1; + {PROTOBUF_FIELD_OFFSET(MeshModel, _impl_.shapemodel_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // double meanRadius = 2; + {PROTOBUF_FIELD_OFFSET(MeshModel, _impl_.meanradius_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double geometricAlbedo = 3; + {PROTOBUF_FIELD_OFFSET(MeshModel, _impl_.geometricalbedo_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // repeated double principalAxisDistortion = 4; + {PROTOBUF_FIELD_OFFSET(MeshModel, _impl_.principalaxisdistortion_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, + // repeated double inertialToBodyMrp = 5; + {PROTOBUF_FIELD_OFFSET(MeshModel, _impl_.inertialtobodymrp_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, + // .cielimMessage.ReflectanceModel refModel = 6; + {PROTOBUF_FIELD_OFFSET(MeshModel, _impl_.refmodel_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .cielimMessage.PerlinNoise perlinNoise = 7; + {PROTOBUF_FIELD_OFFSET(MeshModel, _impl_.perlinnoise_), _Internal::kHasBitsOffset + 4, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // double proceduralRocks = 8; + {PROTOBUF_FIELD_OFFSET(MeshModel, _impl_.proceduralrocks_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::cielimMessage::ReflectanceModel>()}, + {::_pbi::TcParser::GetTable<::cielimMessage::PerlinNoise>()}, + }}, + {{ + "\27\12\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "cielimMessage.MeshModel" + "shapeModel" + }}, +}; +PROTOBUF_NOINLINE void MeshModel::Clear() { // @@protoc_insertion_point(message_clear_start:cielimMessage.MeshModel) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - principalaxisdistortion_.Clear(); - inertialtobodymrp_.Clear(); - shapemodel_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && refmodel_ != nullptr) { - delete refmodel_; - } - refmodel_ = nullptr; - if (GetArenaForAllocation() == nullptr && perlinnoise_ != nullptr) { - delete perlinnoise_; - } - perlinnoise_ = nullptr; - ::memset(&meanradius_, 0, static_cast( - reinterpret_cast(&proceduralrocks_) - - reinterpret_cast(&meanradius_)) + sizeof(proceduralrocks_)); - _internal_metadata_.Clear(); -} - -const char* MeshModel::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string shapeModel = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_shapemodel(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, nullptr)); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // double meanRadius = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { - meanradius_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double geometricAlbedo = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25)) { - geometricalbedo_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // repeated double principalAxisDistortion = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_principalaxisdistortion(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33) { - _internal_add_principalaxisdistortion(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // repeated double inertialToBodyMrp = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_inertialtobodymrp(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 41) { - _internal_add_inertialtobodymrp(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // .cielimMessage.ReflectanceModel refModel = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_refmodel(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .cielimMessage.PerlinNoise perlinNoise = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { - ptr = ctx->ParseMessage(_internal_mutable_perlinnoise(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // double proceduralRocks = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 65)) { - proceduralrocks_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* MeshModel::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.principalaxisdistortion_.Clear(); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _impl_.inertialtobodymrp_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.shapemodel_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(_impl_.refmodel_ != nullptr); + _impl_.refmodel_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + ABSL_DCHECK(_impl_.perlinnoise_ != nullptr); + _impl_.perlinnoise_->Clear(); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x000000e0U)) { + ::memset(&_impl_.meanradius_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.proceduralrocks_) - + reinterpret_cast(&_impl_.meanradius_)) + sizeof(_impl_.proceduralrocks_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL MeshModel::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const MeshModel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL MeshModel::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const MeshModel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:cielimMessage.MeshModel) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // string shapeModel = 1; - if (!this->_internal_shapemodel().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_shapemodel().data(), static_cast(this->_internal_shapemodel().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "cielimMessage.MeshModel.shapeModel"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_shapemodel(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_shapemodel().empty()) { + const ::std::string& _s = this_._internal_shapemodel(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "cielimMessage.MeshModel.shapeModel"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } } // double meanRadius = 2; - if (!(this->_internal_meanradius() <= 0 && this->_internal_meanradius() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_meanradius(), target); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_meanradius()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 2, this_._internal_meanradius(), target); + } } // double geometricAlbedo = 3; - if (!(this->_internal_geometricalbedo() <= 0 && this->_internal_geometricalbedo() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(3, this->_internal_geometricalbedo(), target); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_geometricalbedo()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 3, this_._internal_geometricalbedo(), target); + } } // repeated double principalAxisDistortion = 4; - if (this->_internal_principalaxisdistortion_size() > 0) { - target = stream->WriteFixedPacked(4, _internal_principalaxisdistortion(), target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + if (this_._internal_principalaxisdistortion_size() > 0) { + target = stream->WriteFixedPacked(4, this_._internal_principalaxisdistortion(), target); + } } // repeated double inertialToBodyMrp = 5; - if (this->_internal_inertialtobodymrp_size() > 0) { - target = stream->WriteFixedPacked(5, _internal_inertialtobodymrp(), target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + if (this_._internal_inertialtobodymrp_size() > 0) { + target = stream->WriteFixedPacked(5, this_._internal_inertialtobodymrp(), target); + } } // .cielimMessage.ReflectanceModel refModel = 6; - if (this->_internal_has_refmodel()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::refmodel(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *this_._impl_.refmodel_, this_._impl_.refmodel_->GetCachedSize(), target, + stream); } // .cielimMessage.PerlinNoise perlinNoise = 7; - if (this->_internal_has_perlinnoise()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 7, _Internal::perlinnoise(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 7, *this_._impl_.perlinnoise_, this_._impl_.perlinnoise_->GetCachedSize(), target, + stream); } // double proceduralRocks = 8; - if (!(this->_internal_proceduralrocks() <= 0 && this->_internal_proceduralrocks() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(8, this->_internal_proceduralrocks(), target); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_proceduralrocks()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 8, this_._internal_proceduralrocks(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:cielimMessage.MeshModel) return target; } -size_t MeshModel::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:cielimMessage.MeshModel) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t MeshModel::ByteSizeLong(const MessageLite& base) { + const MeshModel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t MeshModel::ByteSizeLong() const { + const MeshModel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:cielimMessage.MeshModel) + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated double principalAxisDistortion = 4; - { - unsigned int count = static_cast(this->_internal_principalaxisdistortion_size()); - size_t data_size = 8UL * count; - if (data_size > 0) { + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // repeated double principalAxisDistortion = 4; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + ::size_t data_size = ::size_t{8} * + ::_pbi::FromIntSize(this_._internal_principalaxisdistortion_size()); + ::size_t tag_size = data_size == 0 + ? 0 + : 1 + ::_pbi::WireFormatLite::Int32Size( + static_cast<::int32_t>(data_size)); + total_size += tag_size + data_size; + } + // repeated double inertialToBodyMrp = 5; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + ::size_t data_size = ::size_t{8} * + ::_pbi::FromIntSize(this_._internal_inertialtobodymrp_size()); + ::size_t tag_size = data_size == 0 + ? 0 + : 1 + ::_pbi::WireFormatLite::Int32Size( + static_cast<::int32_t>(data_size)); + total_size += tag_size + data_size; + } + // string shapeModel = 1; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_shapemodel().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_shapemodel()); + } + } + // .cielimMessage.ReflectanceModel refModel = 6; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.refmodel_); } - total_size += data_size; - } - - // repeated double inertialToBodyMrp = 5; - { - unsigned int count = static_cast(this->_internal_inertialtobodymrp_size()); - size_t data_size = 8UL * count; - if (data_size > 0) { + // .cielimMessage.PerlinNoise perlinNoise = 7; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.perlinnoise_); + } + // double meanRadius = 2; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_meanradius()) != 0) { + total_size += 9; + } + } + // double geometricAlbedo = 3; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_geometricalbedo()) != 0) { + total_size += 9; + } + } + // double proceduralRocks = 8; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_proceduralrocks()) != 0) { + total_size += 9; + } } - total_size += data_size; - } - - // string shapeModel = 1; - if (!this->_internal_shapemodel().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_shapemodel()); - } - - // .cielimMessage.ReflectanceModel refModel = 6; - if (this->_internal_has_refmodel()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *refmodel_); - } - - // .cielimMessage.PerlinNoise perlinNoise = 7; - if (this->_internal_has_perlinnoise()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *perlinnoise_); - } - - // double meanRadius = 2; - if (!(this->_internal_meanradius() <= 0 && this->_internal_meanradius() >= 0)) { - total_size += 1 + 8; - } - - // double geometricAlbedo = 3; - if (!(this->_internal_geometricalbedo() <= 0 && this->_internal_geometricalbedo() >= 0)) { - total_size += 1 + 8; - } - - // double proceduralRocks = 8; - if (!(this->_internal_proceduralrocks() <= 0 && this->_internal_proceduralrocks() >= 0)) { - total_size += 1 + 8; } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void MeshModel::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void MeshModel::MergeFrom(const MeshModel& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.MeshModel) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - principalaxisdistortion_.MergeFrom(from.principalaxisdistortion_); - inertialtobodymrp_.MergeFrom(from.inertialtobodymrp_); - if (!from._internal_shapemodel().empty()) { - _internal_set_shapemodel(from._internal_shapemodel()); - } - if (from._internal_has_refmodel()) { - _internal_mutable_refmodel()->::cielimMessage::ReflectanceModel::MergeFrom(from._internal_refmodel()); - } - if (from._internal_has_perlinnoise()) { - _internal_mutable_perlinnoise()->::cielimMessage::PerlinNoise::MergeFrom(from._internal_perlinnoise()); - } - if (!(from._internal_meanradius() <= 0 && from._internal_meanradius() >= 0)) { - _internal_set_meanradius(from._internal_meanradius()); - } - if (!(from._internal_geometricalbedo() <= 0 && from._internal_geometricalbedo() >= 0)) { - _internal_set_geometricalbedo(from._internal_geometricalbedo()); - } - if (!(from._internal_proceduralrocks() <= 0 && from._internal_proceduralrocks() >= 0)) { - _internal_set_proceduralrocks(from._internal_proceduralrocks()); +void MeshModel::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.MeshModel) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_principalaxisdistortion()->MergeFrom(from._internal_principalaxisdistortion()); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _this->_internal_mutable_inertialtobodymrp()->MergeFrom(from._internal_inertialtobodymrp()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!from._internal_shapemodel().empty()) { + _this->_internal_set_shapemodel(from._internal_shapemodel()); + } else { + if (_this->_impl_.shapemodel_.IsDefault()) { + _this->_internal_set_shapemodel(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(from._impl_.refmodel_ != nullptr); + if (_this->_impl_.refmodel_ == nullptr) { + _this->_impl_.refmodel_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.refmodel_); + } else { + _this->_impl_.refmodel_->MergeFrom(*from._impl_.refmodel_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + ABSL_DCHECK(from._impl_.perlinnoise_ != nullptr); + if (_this->_impl_.perlinnoise_ == nullptr) { + _this->_impl_.perlinnoise_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.perlinnoise_); + } else { + _this->_impl_.perlinnoise_->MergeFrom(*from._impl_.perlinnoise_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_meanradius()) != 0) { + _this->_impl_.meanradius_ = from._impl_.meanradius_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_geometricalbedo()) != 0) { + _this->_impl_.geometricalbedo_ = from._impl_.geometricalbedo_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_proceduralrocks()) != 0) { + _this->_impl_.proceduralrocks_ = from._impl_.proceduralrocks_; + } + } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void MeshModel::CopyFrom(const MeshModel& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.MeshModel) + // @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.MeshModel) if (&from == this) return; Clear(); MergeFrom(from); } -bool MeshModel::IsInitialized() const { - return true; -} -void MeshModel::InternalSwap(MeshModel* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void MeshModel::InternalSwap(MeshModel* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - principalaxisdistortion_.InternalSwap(&other->principalaxisdistortion_); - inertialtobodymrp_.InternalSwap(&other->inertialtobodymrp_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &shapemodel_, lhs_arena, - &other->shapemodel_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MeshModel, proceduralrocks_) - + sizeof(MeshModel::proceduralrocks_) - - PROTOBUF_FIELD_OFFSET(MeshModel, refmodel_)>( - reinterpret_cast(&refmodel_), - reinterpret_cast(&other->refmodel_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.principalaxisdistortion_.InternalSwap(&other->_impl_.principalaxisdistortion_); + _impl_.inertialtobodymrp_.InternalSwap(&other->_impl_.inertialtobodymrp_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.shapemodel_, &other->_impl_.shapemodel_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(MeshModel, _impl_.proceduralrocks_) + + sizeof(MeshModel::_impl_.proceduralrocks_) + - PROTOBUF_FIELD_OFFSET(MeshModel, _impl_.refmodel_)>( + reinterpret_cast(&_impl_.refmodel_), + reinterpret_cast(&other->_impl_.refmodel_)); } -std::string MeshModel::GetTypeName() const { - return "cielimMessage.MeshModel"; -} - - // =================================================================== class CelestialBody::_Internal { public: - static const ::cielimMessage::MeshModel& model(const CelestialBody* msg); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CelestialBody, _impl_._has_bits_); }; -const ::cielimMessage::MeshModel& -CelestialBody::_Internal::model(const CelestialBody* msg) { - return *msg->model_; -} -CelestialBody::CelestialBody(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - position_(arena), - velocity_(arena), - attitude_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +CelestialBody::CelestialBody(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, CelestialBody_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:cielimMessage.CelestialBody) } -CelestialBody::CelestialBody(const CelestialBody& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - position_(from.position_), - velocity_(from.velocity_), - attitude_(from.attitude_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - bodyname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_bodyname().empty()) { - bodyname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_bodyname(), - GetArenaForAllocation()); - } - if (from._internal_has_model()) { - model_ = new ::cielimMessage::MeshModel(*from.model_); - } else { - model_ = nullptr; - } - centralbody_ = from.centralbody_; +PROTOBUF_NDEBUG_INLINE CelestialBody::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::cielimMessage::CelestialBody& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + position_{visibility, arena, from.position_}, + velocity_{visibility, arena, from.velocity_}, + attitude_{visibility, arena, from.attitude_}, + bodyname_(arena, from.bodyname_) {} + +CelestialBody::CelestialBody( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const CelestialBody& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, CelestialBody_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + CelestialBody* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.model_ = (CheckHasBit(cached_has_bits, 0x00000010U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.model_) + : nullptr; + _impl_.centralbody_ = from._impl_.centralbody_; + // @@protoc_insertion_point(copy_constructor:cielimMessage.CelestialBody) } - -void CelestialBody::SharedCtor() { -bodyname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&model_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(¢ralbody_) - - reinterpret_cast(&model_)) + sizeof(centralbody_)); +PROTOBUF_NDEBUG_INLINE CelestialBody::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + position_{visibility, arena}, + velocity_{visibility, arena}, + attitude_{visibility, arena}, + bodyname_(arena) {} + +inline void CelestialBody::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, model_), + 0, + offsetof(Impl_, centralbody_) - + offsetof(Impl_, model_) + + sizeof(Impl_::centralbody_)); } - CelestialBody::~CelestialBody() { // @@protoc_insertion_point(destructor:cielimMessage.CelestialBody) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void CelestialBody::SharedDtor(MessageLite& self) { + CelestialBody& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.bodyname_.Destroy(); + delete this_._impl_.model_; + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL CelestialBody::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) CelestialBody(arena); +} +constexpr auto CelestialBody::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(CelestialBody, _impl_.position_) + + decltype(CelestialBody::_impl_.position_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + PROTOBUF_FIELD_OFFSET(CelestialBody, _impl_.velocity_) + + decltype(CelestialBody::_impl_.velocity_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + PROTOBUF_FIELD_OFFSET(CelestialBody, _impl_.attitude_) + + decltype(CelestialBody::_impl_.attitude_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(CelestialBody), alignof(CelestialBody), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&CelestialBody::PlacementNew_, + sizeof(CelestialBody), + alignof(CelestialBody)); + } +} +constexpr auto CelestialBody::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<28>{ + { + &_CelestialBody_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CelestialBody::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CelestialBody::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &CelestialBody::ByteSizeLong, + &CelestialBody::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CelestialBody, _impl_._cached_size_), + true, + }, + "cielimMessage.CelestialBody", + }; } -inline void CelestialBody::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - bodyname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete model_; -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<28> CelestialBody_class_data_ = + CelestialBody::InternalGenerateClassData_(); -void CelestialBody::ArenaDtor(void* object) { - CelestialBody* _this = reinterpret_cast< CelestialBody* >(object); - (void)_this; -} -void CelestialBody::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +CelestialBody::GetClassData() const { + return CelestialBody_class_data_.base(); } -void CelestialBody::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void CelestialBody::Clear() { +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 6, 1, 44, 2> +CelestialBody::_table_ = { + { + PROTOBUF_FIELD_OFFSET(CelestialBody, _impl_._has_bits_), + 0, // no _extensions_ + 6, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967232, // skipmap + offsetof(decltype(_table_), field_entries), + 6, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + CelestialBody_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::cielimMessage::CelestialBody>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string bodyName = 1; + {::_pbi::TcParser::FastUS1, + {10, 3, 0, + PROTOBUF_FIELD_OFFSET(CelestialBody, _impl_.bodyname_)}}, + // repeated double position = 2; + {::_pbi::TcParser::FastF64P1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(CelestialBody, _impl_.position_)}}, + // repeated double velocity = 3; + {::_pbi::TcParser::FastF64P1, + {26, 1, 0, + PROTOBUF_FIELD_OFFSET(CelestialBody, _impl_.velocity_)}}, + // repeated double attitude = 4; + {::_pbi::TcParser::FastF64P1, + {34, 2, 0, + PROTOBUF_FIELD_OFFSET(CelestialBody, _impl_.attitude_)}}, + // .cielimMessage.MeshModel model = 5; + {::_pbi::TcParser::FastMtS1, + {42, 4, 0, + PROTOBUF_FIELD_OFFSET(CelestialBody, _impl_.model_)}}, + // bool centralBody = 6; + {::_pbi::TcParser::FastV8S1, + {48, 5, 0, + PROTOBUF_FIELD_OFFSET(CelestialBody, _impl_.centralbody_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string bodyName = 1; + {PROTOBUF_FIELD_OFFSET(CelestialBody, _impl_.bodyname_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated double position = 2; + {PROTOBUF_FIELD_OFFSET(CelestialBody, _impl_.position_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, + // repeated double velocity = 3; + {PROTOBUF_FIELD_OFFSET(CelestialBody, _impl_.velocity_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, + // repeated double attitude = 4; + {PROTOBUF_FIELD_OFFSET(CelestialBody, _impl_.attitude_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, + // .cielimMessage.MeshModel model = 5; + {PROTOBUF_FIELD_OFFSET(CelestialBody, _impl_.model_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // bool centralBody = 6; + {PROTOBUF_FIELD_OFFSET(CelestialBody, _impl_.centralbody_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::cielimMessage::MeshModel>()}, + }}, + {{ + "\33\10\0\0\0\0\0\0" + "cielimMessage.CelestialBody" + "bodyName" + }}, +}; +PROTOBUF_NOINLINE void CelestialBody::Clear() { // @@protoc_insertion_point(message_clear_start:cielimMessage.CelestialBody) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - position_.Clear(); - velocity_.Clear(); - attitude_.Clear(); - bodyname_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && model_ != nullptr) { - delete model_; - } - model_ = nullptr; - centralbody_ = false; - _internal_metadata_.Clear(); -} - -const char* CelestialBody::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string bodyName = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_bodyname(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, nullptr)); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated double position = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_position(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17) { - _internal_add_position(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // repeated double velocity = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_velocity(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25) { - _internal_add_velocity(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // repeated double attitude = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_attitude(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33) { - _internal_add_attitude(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // .cielimMessage.MeshModel model = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_model(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // bool centralBody = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { - centralbody_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* CelestialBody::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.position_.Clear(); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _impl_.velocity_.Clear(); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + _impl_.attitude_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.bodyname_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + ABSL_DCHECK(_impl_.model_ != nullptr); + _impl_.model_->Clear(); + } + } + _impl_.centralbody_ = false; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL CelestialBody::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const CelestialBody& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL CelestialBody::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const CelestialBody& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:cielimMessage.CelestialBody) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // string bodyName = 1; - if (!this->_internal_bodyname().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_bodyname().data(), static_cast(this->_internal_bodyname().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "cielimMessage.CelestialBody.bodyName"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_bodyname(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!this_._internal_bodyname().empty()) { + const ::std::string& _s = this_._internal_bodyname(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "cielimMessage.CelestialBody.bodyName"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } } // repeated double position = 2; - if (this->_internal_position_size() > 0) { - target = stream->WriteFixedPacked(2, _internal_position(), target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + if (this_._internal_position_size() > 0) { + target = stream->WriteFixedPacked(2, this_._internal_position(), target); + } } // repeated double velocity = 3; - if (this->_internal_velocity_size() > 0) { - target = stream->WriteFixedPacked(3, _internal_velocity(), target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + if (this_._internal_velocity_size() > 0) { + target = stream->WriteFixedPacked(3, this_._internal_velocity(), target); + } } // repeated double attitude = 4; - if (this->_internal_attitude_size() > 0) { - target = stream->WriteFixedPacked(4, _internal_attitude(), target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + if (this_._internal_attitude_size() > 0) { + target = stream->WriteFixedPacked(4, this_._internal_attitude(), target); + } } // .cielimMessage.MeshModel model = 5; - if (this->_internal_has_model()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::model(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, *this_._impl_.model_, this_._impl_.model_->GetCachedSize(), target, + stream); } // bool centralBody = 6; - if (this->_internal_centralbody() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_centralbody(), target); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_centralbody() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 6, this_._internal_centralbody(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:cielimMessage.CelestialBody) return target; } -size_t CelestialBody::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:cielimMessage.CelestialBody) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t CelestialBody::ByteSizeLong(const MessageLite& base) { + const CelestialBody& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t CelestialBody::ByteSizeLong() const { + const CelestialBody& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:cielimMessage.CelestialBody) + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated double position = 2; - { - unsigned int count = static_cast(this->_internal_position_size()); - size_t data_size = 8UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + // repeated double position = 2; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + ::size_t data_size = ::size_t{8} * + ::_pbi::FromIntSize(this_._internal_position_size()); + ::size_t tag_size = data_size == 0 + ? 0 + : 1 + ::_pbi::WireFormatLite::Int32Size( + static_cast<::int32_t>(data_size)); + total_size += tag_size + data_size; } - total_size += data_size; - } - - // repeated double velocity = 3; - { - unsigned int count = static_cast(this->_internal_velocity_size()); - size_t data_size = 8UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + // repeated double velocity = 3; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + ::size_t data_size = ::size_t{8} * + ::_pbi::FromIntSize(this_._internal_velocity_size()); + ::size_t tag_size = data_size == 0 + ? 0 + : 1 + ::_pbi::WireFormatLite::Int32Size( + static_cast<::int32_t>(data_size)); + total_size += tag_size + data_size; } - total_size += data_size; - } - - // repeated double attitude = 4; - { - unsigned int count = static_cast(this->_internal_attitude_size()); - size_t data_size = 8UL * count; - if (data_size > 0) { + // repeated double attitude = 4; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + ::size_t data_size = ::size_t{8} * + ::_pbi::FromIntSize(this_._internal_attitude_size()); + ::size_t tag_size = data_size == 0 + ? 0 + : 1 + ::_pbi::WireFormatLite::Int32Size( + static_cast<::int32_t>(data_size)); + total_size += tag_size + data_size; + } + // string bodyName = 1; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!this_._internal_bodyname().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_bodyname()); + } + } + // .cielimMessage.MeshModel model = 5; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.model_); + } + // bool centralBody = 6; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_centralbody() != 0) { + total_size += 2; + } } - total_size += data_size; - } - - // string bodyName = 1; - if (!this->_internal_bodyname().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_bodyname()); - } - - // .cielimMessage.MeshModel model = 5; - if (this->_internal_has_model()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *model_); - } - - // bool centralBody = 6; - if (this->_internal_centralbody() != 0) { - total_size += 1 + 1; } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void CelestialBody::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void CelestialBody::MergeFrom(const CelestialBody& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.CelestialBody) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - position_.MergeFrom(from.position_); - velocity_.MergeFrom(from.velocity_); - attitude_.MergeFrom(from.attitude_); - if (!from._internal_bodyname().empty()) { - _internal_set_bodyname(from._internal_bodyname()); - } - if (from._internal_has_model()) { - _internal_mutable_model()->::cielimMessage::MeshModel::MergeFrom(from._internal_model()); - } - if (from._internal_centralbody() != 0) { - _internal_set_centralbody(from._internal_centralbody()); +void CelestialBody::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.CelestialBody) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_position()->MergeFrom(from._internal_position()); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _this->_internal_mutable_velocity()->MergeFrom(from._internal_velocity()); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + _this->_internal_mutable_attitude()->MergeFrom(from._internal_attitude()); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!from._internal_bodyname().empty()) { + _this->_internal_set_bodyname(from._internal_bodyname()); + } else { + if (_this->_impl_.bodyname_.IsDefault()) { + _this->_internal_set_bodyname(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + ABSL_DCHECK(from._impl_.model_ != nullptr); + if (_this->_impl_.model_ == nullptr) { + _this->_impl_.model_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.model_); + } else { + _this->_impl_.model_->MergeFrom(*from._impl_.model_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (from._internal_centralbody() != 0) { + _this->_impl_.centralbody_ = from._impl_.centralbody_; + } + } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void CelestialBody::CopyFrom(const CelestialBody& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.CelestialBody) + // @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.CelestialBody) if (&from == this) return; Clear(); MergeFrom(from); } -bool CelestialBody::IsInitialized() const { - return true; -} -void CelestialBody::InternalSwap(CelestialBody* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void CelestialBody::InternalSwap(CelestialBody* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - position_.InternalSwap(&other->position_); - velocity_.InternalSwap(&other->velocity_); - attitude_.InternalSwap(&other->attitude_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &bodyname_, lhs_arena, - &other->bodyname_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(CelestialBody, centralbody_) - + sizeof(CelestialBody::centralbody_) - - PROTOBUF_FIELD_OFFSET(CelestialBody, model_)>( - reinterpret_cast(&model_), - reinterpret_cast(&other->model_)); -} - -std::string CelestialBody::GetTypeName() const { - return "cielimMessage.CelestialBody"; + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.position_.InternalSwap(&other->_impl_.position_); + _impl_.velocity_.InternalSwap(&other->_impl_.velocity_); + _impl_.attitude_.InternalSwap(&other->_impl_.attitude_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.bodyname_, &other->_impl_.bodyname_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(CelestialBody, _impl_.centralbody_) + + sizeof(CelestialBody::_impl_.centralbody_) + - PROTOBUF_FIELD_OFFSET(CelestialBody, _impl_.model_)>( + reinterpret_cast(&_impl_.model_), + reinterpret_cast(&other->_impl_.model_)); } - // =================================================================== class Spacecraft::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Spacecraft, _impl_._has_bits_); }; -Spacecraft::Spacecraft(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - position_(arena), - velocity_(arena), - attitude_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +Spacecraft::Spacecraft(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Spacecraft_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:cielimMessage.Spacecraft) } -Spacecraft::Spacecraft(const Spacecraft& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - position_(from.position_), - velocity_(from.velocity_), - attitude_(from.attitude_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - spacecraftname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_spacecraftname().empty()) { - spacecraftname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_spacecraftname(), - GetArenaForAllocation()); - } +PROTOBUF_NDEBUG_INLINE Spacecraft::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::cielimMessage::Spacecraft& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + position_{visibility, arena, from.position_}, + velocity_{visibility, arena, from.velocity_}, + attitude_{visibility, arena, from.attitude_}, + spacecraftname_(arena, from.spacecraftname_) {} + +Spacecraft::Spacecraft( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const Spacecraft& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, Spacecraft_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Spacecraft* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:cielimMessage.Spacecraft) } +PROTOBUF_NDEBUG_INLINE Spacecraft::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + position_{visibility, arena}, + velocity_{visibility, arena}, + attitude_{visibility, arena}, + spacecraftname_(arena) {} -void Spacecraft::SharedCtor() { -spacecraftname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void Spacecraft::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - Spacecraft::~Spacecraft() { // @@protoc_insertion_point(destructor:cielimMessage.Spacecraft) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void Spacecraft::SharedDtor(MessageLite& self) { + Spacecraft& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.spacecraftname_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL Spacecraft::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Spacecraft(arena); +} +constexpr auto Spacecraft::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(Spacecraft, _impl_.position_) + + decltype(Spacecraft::_impl_.position_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Spacecraft, _impl_.velocity_) + + decltype(Spacecraft::_impl_.velocity_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Spacecraft, _impl_.attitude_) + + decltype(Spacecraft::_impl_.attitude_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(Spacecraft), alignof(Spacecraft), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&Spacecraft::PlacementNew_, + sizeof(Spacecraft), + alignof(Spacecraft)); + } +} +constexpr auto Spacecraft::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<25>{ + { + &_Spacecraft_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Spacecraft::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Spacecraft::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &Spacecraft::ByteSizeLong, + &Spacecraft::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Spacecraft, _impl_._cached_size_), + true, + }, + "cielimMessage.Spacecraft", + }; } -inline void Spacecraft::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - spacecraftname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<25> Spacecraft_class_data_ = + Spacecraft::InternalGenerateClassData_(); -void Spacecraft::ArenaDtor(void* object) { - Spacecraft* _this = reinterpret_cast< Spacecraft* >(object); - (void)_this; -} -void Spacecraft::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Spacecraft::GetClassData() const { + return Spacecraft_class_data_.base(); } -void Spacecraft::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void Spacecraft::Clear() { +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 0, 47, 2> +Spacecraft::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Spacecraft, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + Spacecraft_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::cielimMessage::Spacecraft>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated double attitude = 4; + {::_pbi::TcParser::FastF64P1, + {34, 2, 0, + PROTOBUF_FIELD_OFFSET(Spacecraft, _impl_.attitude_)}}, + // string spacecraftName = 1; + {::_pbi::TcParser::FastUS1, + {10, 3, 0, + PROTOBUF_FIELD_OFFSET(Spacecraft, _impl_.spacecraftname_)}}, + // repeated double position = 2; + {::_pbi::TcParser::FastF64P1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(Spacecraft, _impl_.position_)}}, + // repeated double velocity = 3; + {::_pbi::TcParser::FastF64P1, + {26, 1, 0, + PROTOBUF_FIELD_OFFSET(Spacecraft, _impl_.velocity_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string spacecraftName = 1; + {PROTOBUF_FIELD_OFFSET(Spacecraft, _impl_.spacecraftname_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated double position = 2; + {PROTOBUF_FIELD_OFFSET(Spacecraft, _impl_.position_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, + // repeated double velocity = 3; + {PROTOBUF_FIELD_OFFSET(Spacecraft, _impl_.velocity_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, + // repeated double attitude = 4; + {PROTOBUF_FIELD_OFFSET(Spacecraft, _impl_.attitude_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, + }}, + // no aux_entries + {{ + "\30\16\0\0\0\0\0\0" + "cielimMessage.Spacecraft" + "spacecraftName" + }}, +}; +PROTOBUF_NOINLINE void Spacecraft::Clear() { // @@protoc_insertion_point(message_clear_start:cielimMessage.Spacecraft) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - position_.Clear(); - velocity_.Clear(); - attitude_.Clear(); - spacecraftname_.ClearToEmpty(); - _internal_metadata_.Clear(); -} - -const char* Spacecraft::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string spacecraftName = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_spacecraftname(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, nullptr)); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated double position = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_position(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17) { - _internal_add_position(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // repeated double velocity = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_velocity(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25) { - _internal_add_velocity(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // repeated double attitude = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_attitude(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33) { - _internal_add_attitude(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* Spacecraft::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.position_.Clear(); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _impl_.velocity_.Clear(); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + _impl_.attitude_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.spacecraftname_.ClearNonDefaultToEmpty(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Spacecraft::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Spacecraft& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Spacecraft::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Spacecraft& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:cielimMessage.Spacecraft) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // string spacecraftName = 1; - if (!this->_internal_spacecraftname().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_spacecraftname().data(), static_cast(this->_internal_spacecraftname().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "cielimMessage.Spacecraft.spacecraftName"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_spacecraftname(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!this_._internal_spacecraftname().empty()) { + const ::std::string& _s = this_._internal_spacecraftname(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "cielimMessage.Spacecraft.spacecraftName"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } } // repeated double position = 2; - if (this->_internal_position_size() > 0) { - target = stream->WriteFixedPacked(2, _internal_position(), target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + if (this_._internal_position_size() > 0) { + target = stream->WriteFixedPacked(2, this_._internal_position(), target); + } } // repeated double velocity = 3; - if (this->_internal_velocity_size() > 0) { - target = stream->WriteFixedPacked(3, _internal_velocity(), target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + if (this_._internal_velocity_size() > 0) { + target = stream->WriteFixedPacked(3, this_._internal_velocity(), target); + } } // repeated double attitude = 4; - if (this->_internal_attitude_size() > 0) { - target = stream->WriteFixedPacked(4, _internal_attitude(), target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + if (this_._internal_attitude_size() > 0) { + target = stream->WriteFixedPacked(4, this_._internal_attitude(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:cielimMessage.Spacecraft) return target; } -size_t Spacecraft::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:cielimMessage.Spacecraft) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Spacecraft::ByteSizeLong(const MessageLite& base) { + const Spacecraft& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Spacecraft::ByteSizeLong() const { + const Spacecraft& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:cielimMessage.Spacecraft) + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated double position = 2; - { - unsigned int count = static_cast(this->_internal_position_size()); - size_t data_size = 8UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + // repeated double position = 2; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + ::size_t data_size = ::size_t{8} * + ::_pbi::FromIntSize(this_._internal_position_size()); + ::size_t tag_size = data_size == 0 + ? 0 + : 1 + ::_pbi::WireFormatLite::Int32Size( + static_cast<::int32_t>(data_size)); + total_size += tag_size + data_size; } - total_size += data_size; - } - - // repeated double velocity = 3; - { - unsigned int count = static_cast(this->_internal_velocity_size()); - size_t data_size = 8UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + // repeated double velocity = 3; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + ::size_t data_size = ::size_t{8} * + ::_pbi::FromIntSize(this_._internal_velocity_size()); + ::size_t tag_size = data_size == 0 + ? 0 + : 1 + ::_pbi::WireFormatLite::Int32Size( + static_cast<::int32_t>(data_size)); + total_size += tag_size + data_size; } - total_size += data_size; - } - - // repeated double attitude = 4; - { - unsigned int count = static_cast(this->_internal_attitude_size()); - size_t data_size = 8UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + // repeated double attitude = 4; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + ::size_t data_size = ::size_t{8} * + ::_pbi::FromIntSize(this_._internal_attitude_size()); + ::size_t tag_size = data_size == 0 + ? 0 + : 1 + ::_pbi::WireFormatLite::Int32Size( + static_cast<::int32_t>(data_size)); + total_size += tag_size + data_size; + } + // string spacecraftName = 1; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!this_._internal_spacecraftname().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_spacecraftname()); + } } - total_size += data_size; - } - - // string spacecraftName = 1; - if (!this->_internal_spacecraftname().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_spacecraftname()); } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void Spacecraft::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void Spacecraft::MergeFrom(const Spacecraft& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.Spacecraft) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; +void Spacecraft::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.Spacecraft) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - position_.MergeFrom(from.position_); - velocity_.MergeFrom(from.velocity_); - attitude_.MergeFrom(from.attitude_); - if (!from._internal_spacecraftname().empty()) { - _internal_set_spacecraftname(from._internal_spacecraftname()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_position()->MergeFrom(from._internal_position()); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _this->_internal_mutable_velocity()->MergeFrom(from._internal_velocity()); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + _this->_internal_mutable_attitude()->MergeFrom(from._internal_attitude()); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!from._internal_spacecraftname().empty()) { + _this->_internal_set_spacecraftname(from._internal_spacecraftname()); + } else { + if (_this->_impl_.spacecraftname_.IsDefault()) { + _this->_internal_set_spacecraftname(""); + } + } + } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void Spacecraft::CopyFrom(const Spacecraft& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.Spacecraft) + // @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.Spacecraft) if (&from == this) return; Clear(); MergeFrom(from); } -bool Spacecraft::IsInitialized() const { - return true; -} -void Spacecraft::InternalSwap(Spacecraft* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void Spacecraft::InternalSwap(Spacecraft* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - position_.InternalSwap(&other->position_); - velocity_.InternalSwap(&other->velocity_); - attitude_.InternalSwap(&other->attitude_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &spacecraftname_, lhs_arena, - &other->spacecraftname_, rhs_arena - ); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.position_.InternalSwap(&other->_impl_.position_); + _impl_.velocity_.InternalSwap(&other->_impl_.velocity_); + _impl_.attitude_.InternalSwap(&other->_impl_.attitude_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.spacecraftname_, &other->_impl_.spacecraftname_, arena); } -std::string Spacecraft::GetTypeName() const { - return "cielimMessage.Spacecraft"; -} - - // =================================================================== class QuantumEfficiency::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_._has_bits_); }; -QuantumEfficiency::QuantumEfficiency(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +QuantumEfficiency::QuantumEfficiency(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, QuantumEfficiency_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:cielimMessage.QuantumEfficiency) } -QuantumEfficiency::QuantumEfficiency(const QuantumEfficiency& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&integrationweightfactor_, &from.integrationweightfactor_, - static_cast(reinterpret_cast(&bluevalue3_) - - reinterpret_cast(&integrationweightfactor_)) + sizeof(bluevalue3_)); - // @@protoc_insertion_point(copy_constructor:cielimMessage.QuantumEfficiency) +QuantumEfficiency::QuantumEfficiency( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const QuantumEfficiency& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, QuantumEfficiency_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} +PROTOBUF_NDEBUG_INLINE QuantumEfficiency::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} + +inline void QuantumEfficiency::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, integrationweightfactor_), + 0, + offsetof(Impl_, bluevalue3_) - + offsetof(Impl_, integrationweightfactor_) + + sizeof(Impl_::bluevalue3_)); } - -void QuantumEfficiency::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&integrationweightfactor_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&bluevalue3_) - - reinterpret_cast(&integrationweightfactor_)) + sizeof(bluevalue3_)); -} - QuantumEfficiency::~QuantumEfficiency() { // @@protoc_insertion_point(destructor:cielimMessage.QuantumEfficiency) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void QuantumEfficiency::SharedDtor(MessageLite& self) { + QuantumEfficiency& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL QuantumEfficiency::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) QuantumEfficiency(arena); +} +constexpr auto QuantumEfficiency::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(QuantumEfficiency), + alignof(QuantumEfficiency)); +} +constexpr auto QuantumEfficiency::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<32>{ + { + &_QuantumEfficiency_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &QuantumEfficiency::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &QuantumEfficiency::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &QuantumEfficiency::ByteSizeLong, + &QuantumEfficiency::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_._cached_size_), + true, + }, + "cielimMessage.QuantumEfficiency", + }; } -inline void QuantumEfficiency::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<32> QuantumEfficiency_class_data_ = + QuantumEfficiency::InternalGenerateClassData_(); -void QuantumEfficiency::ArenaDtor(void* object) { - QuantumEfficiency* _this = reinterpret_cast< QuantumEfficiency* >(object); - (void)_this; -} -void QuantumEfficiency::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void QuantumEfficiency::SetCachedSize(int size) const { - _cached_size_.Set(size); +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +QuantumEfficiency::GetClassData() const { + return QuantumEfficiency_class_data_.base(); } - -void QuantumEfficiency::Clear() { +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 10, 0, 0, 2> +QuantumEfficiency::_table_ = { + { + PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_._has_bits_), + 0, // no _extensions_ + 10, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294966272, // skipmap + offsetof(decltype(_table_), field_entries), + 10, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + QuantumEfficiency_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::cielimMessage::QuantumEfficiency>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // double integrationWeightFactor = 1; + {::_pbi::TcParser::FastF64S1, + {9, 0, 0, + PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_.integrationweightfactor_)}}, + // double redValue1 = 2; + {::_pbi::TcParser::FastF64S1, + {17, 1, 0, + PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_.redvalue1_)}}, + // double redValue2 = 3; + {::_pbi::TcParser::FastF64S1, + {25, 2, 0, + PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_.redvalue2_)}}, + // double redValue3 = 4; + {::_pbi::TcParser::FastF64S1, + {33, 3, 0, + PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_.redvalue3_)}}, + // double greenValue1 = 5; + {::_pbi::TcParser::FastF64S1, + {41, 4, 0, + PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_.greenvalue1_)}}, + // double greenValue2 = 6; + {::_pbi::TcParser::FastF64S1, + {49, 5, 0, + PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_.greenvalue2_)}}, + // double greenValue3 = 7; + {::_pbi::TcParser::FastF64S1, + {57, 6, 0, + PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_.greenvalue3_)}}, + // double blueValue1 = 8; + {::_pbi::TcParser::FastF64S1, + {65, 7, 0, + PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_.bluevalue1_)}}, + // double blueValue2 = 9; + {::_pbi::TcParser::FastF64S1, + {73, 8, 0, + PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_.bluevalue2_)}}, + // double blueValue3 = 10; + {::_pbi::TcParser::FastF64S1, + {81, 9, 0, + PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_.bluevalue3_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // double integrationWeightFactor = 1; + {PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_.integrationweightfactor_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double redValue1 = 2; + {PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_.redvalue1_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double redValue2 = 3; + {PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_.redvalue2_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double redValue3 = 4; + {PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_.redvalue3_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double greenValue1 = 5; + {PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_.greenvalue1_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double greenValue2 = 6; + {PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_.greenvalue2_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double greenValue3 = 7; + {PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_.greenvalue3_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double blueValue1 = 8; + {PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_.bluevalue1_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double blueValue2 = 9; + {PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_.bluevalue2_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double blueValue3 = 10; + {PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_.bluevalue3_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void QuantumEfficiency::Clear() { // @@protoc_insertion_point(message_clear_start:cielimMessage.QuantumEfficiency) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&integrationweightfactor_, 0, static_cast( - reinterpret_cast(&bluevalue3_) - - reinterpret_cast(&integrationweightfactor_)) + sizeof(bluevalue3_)); - _internal_metadata_.Clear(); -} - -const char* QuantumEfficiency::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // double integrationWeightFactor = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) { - integrationweightfactor_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double redValue1 = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { - redvalue1_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double redValue2 = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25)) { - redvalue2_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double redValue3 = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33)) { - redvalue3_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double greenValue1 = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 41)) { - greenvalue1_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double greenValue2 = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 49)) { - greenvalue2_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double greenValue3 = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 57)) { - greenvalue3_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double blueValue1 = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 65)) { - bluevalue1_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double blueValue2 = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 73)) { - bluevalue2_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double blueValue3 = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 81)) { - bluevalue3_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* QuantumEfficiency::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + ::memset(&_impl_.integrationweightfactor_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.bluevalue1_) - + reinterpret_cast(&_impl_.integrationweightfactor_)) + sizeof(_impl_.bluevalue1_)); + } + if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { + ::memset(&_impl_.bluevalue2_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.bluevalue3_) - + reinterpret_cast(&_impl_.bluevalue2_)) + sizeof(_impl_.bluevalue3_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL QuantumEfficiency::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const QuantumEfficiency& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL QuantumEfficiency::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const QuantumEfficiency& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:cielimMessage.QuantumEfficiency) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // double integrationWeightFactor = 1; - if (!(this->_internal_integrationweightfactor() <= 0 && this->_internal_integrationweightfactor() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->_internal_integrationweightfactor(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_integrationweightfactor()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 1, this_._internal_integrationweightfactor(), target); + } } // double redValue1 = 2; - if (!(this->_internal_redvalue1() <= 0 && this->_internal_redvalue1() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_redvalue1(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_redvalue1()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 2, this_._internal_redvalue1(), target); + } } // double redValue2 = 3; - if (!(this->_internal_redvalue2() <= 0 && this->_internal_redvalue2() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(3, this->_internal_redvalue2(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_redvalue2()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 3, this_._internal_redvalue2(), target); + } } // double redValue3 = 4; - if (!(this->_internal_redvalue3() <= 0 && this->_internal_redvalue3() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_redvalue3(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_redvalue3()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 4, this_._internal_redvalue3(), target); + } } // double greenValue1 = 5; - if (!(this->_internal_greenvalue1() <= 0 && this->_internal_greenvalue1() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(5, this->_internal_greenvalue1(), target); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_greenvalue1()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 5, this_._internal_greenvalue1(), target); + } } // double greenValue2 = 6; - if (!(this->_internal_greenvalue2() <= 0 && this->_internal_greenvalue2() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(6, this->_internal_greenvalue2(), target); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_greenvalue2()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 6, this_._internal_greenvalue2(), target); + } } // double greenValue3 = 7; - if (!(this->_internal_greenvalue3() <= 0 && this->_internal_greenvalue3() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(7, this->_internal_greenvalue3(), target); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_greenvalue3()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 7, this_._internal_greenvalue3(), target); + } } // double blueValue1 = 8; - if (!(this->_internal_bluevalue1() <= 0 && this->_internal_bluevalue1() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(8, this->_internal_bluevalue1(), target); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_bluevalue1()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 8, this_._internal_bluevalue1(), target); + } } // double blueValue2 = 9; - if (!(this->_internal_bluevalue2() <= 0 && this->_internal_bluevalue2() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(9, this->_internal_bluevalue2(), target); + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_bluevalue2()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 9, this_._internal_bluevalue2(), target); + } } // double blueValue3 = 10; - if (!(this->_internal_bluevalue3() <= 0 && this->_internal_bluevalue3() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(10, this->_internal_bluevalue3(), target); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_bluevalue3()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 10, this_._internal_bluevalue3(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:cielimMessage.QuantumEfficiency) return target; } -size_t QuantumEfficiency::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:cielimMessage.QuantumEfficiency) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t QuantumEfficiency::ByteSizeLong(const MessageLite& base) { + const QuantumEfficiency& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t QuantumEfficiency::ByteSizeLong() const { + const QuantumEfficiency& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:cielimMessage.QuantumEfficiency) + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // double integrationWeightFactor = 1; - if (!(this->_internal_integrationweightfactor() <= 0 && this->_internal_integrationweightfactor() >= 0)) { - total_size += 1 + 8; - } - - // double redValue1 = 2; - if (!(this->_internal_redvalue1() <= 0 && this->_internal_redvalue1() >= 0)) { - total_size += 1 + 8; - } - - // double redValue2 = 3; - if (!(this->_internal_redvalue2() <= 0 && this->_internal_redvalue2() >= 0)) { - total_size += 1 + 8; - } - - // double redValue3 = 4; - if (!(this->_internal_redvalue3() <= 0 && this->_internal_redvalue3() >= 0)) { - total_size += 1 + 8; - } - - // double greenValue1 = 5; - if (!(this->_internal_greenvalue1() <= 0 && this->_internal_greenvalue1() >= 0)) { - total_size += 1 + 8; - } - - // double greenValue2 = 6; - if (!(this->_internal_greenvalue2() <= 0 && this->_internal_greenvalue2() >= 0)) { - total_size += 1 + 8; - } - - // double greenValue3 = 7; - if (!(this->_internal_greenvalue3() <= 0 && this->_internal_greenvalue3() >= 0)) { - total_size += 1 + 8; - } - - // double blueValue1 = 8; - if (!(this->_internal_bluevalue1() <= 0 && this->_internal_bluevalue1() >= 0)) { - total_size += 1 + 8; - } - - // double blueValue2 = 9; - if (!(this->_internal_bluevalue2() <= 0 && this->_internal_bluevalue2() >= 0)) { - total_size += 1 + 8; + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // double integrationWeightFactor = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_integrationweightfactor()) != 0) { + total_size += 9; + } + } + // double redValue1 = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_redvalue1()) != 0) { + total_size += 9; + } + } + // double redValue2 = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_redvalue2()) != 0) { + total_size += 9; + } + } + // double redValue3 = 4; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_redvalue3()) != 0) { + total_size += 9; + } + } + // double greenValue1 = 5; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_greenvalue1()) != 0) { + total_size += 9; + } + } + // double greenValue2 = 6; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_greenvalue2()) != 0) { + total_size += 9; + } + } + // double greenValue3 = 7; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_greenvalue3()) != 0) { + total_size += 9; + } + } + // double blueValue1 = 8; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_bluevalue1()) != 0) { + total_size += 9; + } + } } - - // double blueValue3 = 10; - if (!(this->_internal_bluevalue3() <= 0 && this->_internal_bluevalue3() >= 0)) { - total_size += 1 + 8; + if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { + // double blueValue2 = 9; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_bluevalue2()) != 0) { + total_size += 9; + } + } + // double blueValue3 = 10; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_bluevalue3()) != 0) { + total_size += 9; + } + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void QuantumEfficiency::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void QuantumEfficiency::MergeFrom(const QuantumEfficiency& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.QuantumEfficiency) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (!(from._internal_integrationweightfactor() <= 0 && from._internal_integrationweightfactor() >= 0)) { - _internal_set_integrationweightfactor(from._internal_integrationweightfactor()); - } - if (!(from._internal_redvalue1() <= 0 && from._internal_redvalue1() >= 0)) { - _internal_set_redvalue1(from._internal_redvalue1()); - } - if (!(from._internal_redvalue2() <= 0 && from._internal_redvalue2() >= 0)) { - _internal_set_redvalue2(from._internal_redvalue2()); - } - if (!(from._internal_redvalue3() <= 0 && from._internal_redvalue3() >= 0)) { - _internal_set_redvalue3(from._internal_redvalue3()); - } - if (!(from._internal_greenvalue1() <= 0 && from._internal_greenvalue1() >= 0)) { - _internal_set_greenvalue1(from._internal_greenvalue1()); - } - if (!(from._internal_greenvalue2() <= 0 && from._internal_greenvalue2() >= 0)) { - _internal_set_greenvalue2(from._internal_greenvalue2()); - } - if (!(from._internal_greenvalue3() <= 0 && from._internal_greenvalue3() >= 0)) { - _internal_set_greenvalue3(from._internal_greenvalue3()); - } - if (!(from._internal_bluevalue1() <= 0 && from._internal_bluevalue1() >= 0)) { - _internal_set_bluevalue1(from._internal_bluevalue1()); - } - if (!(from._internal_bluevalue2() <= 0 && from._internal_bluevalue2() >= 0)) { - _internal_set_bluevalue2(from._internal_bluevalue2()); +void QuantumEfficiency::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.QuantumEfficiency) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_integrationweightfactor()) != 0) { + _this->_impl_.integrationweightfactor_ = from._impl_.integrationweightfactor_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_redvalue1()) != 0) { + _this->_impl_.redvalue1_ = from._impl_.redvalue1_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_redvalue2()) != 0) { + _this->_impl_.redvalue2_ = from._impl_.redvalue2_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_redvalue3()) != 0) { + _this->_impl_.redvalue3_ = from._impl_.redvalue3_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_greenvalue1()) != 0) { + _this->_impl_.greenvalue1_ = from._impl_.greenvalue1_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_greenvalue2()) != 0) { + _this->_impl_.greenvalue2_ = from._impl_.greenvalue2_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_greenvalue3()) != 0) { + _this->_impl_.greenvalue3_ = from._impl_.greenvalue3_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_bluevalue1()) != 0) { + _this->_impl_.bluevalue1_ = from._impl_.bluevalue1_; + } + } } - if (!(from._internal_bluevalue3() <= 0 && from._internal_bluevalue3() >= 0)) { - _internal_set_bluevalue3(from._internal_bluevalue3()); + if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_bluevalue2()) != 0) { + _this->_impl_.bluevalue2_ = from._impl_.bluevalue2_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_bluevalue3()) != 0) { + _this->_impl_.bluevalue3_ = from._impl_.bluevalue3_; + } + } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void QuantumEfficiency::CopyFrom(const QuantumEfficiency& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.QuantumEfficiency) + // @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.QuantumEfficiency) if (&from == this) return; Clear(); MergeFrom(from); } -bool QuantumEfficiency::IsInitialized() const { - return true; -} -void QuantumEfficiency::InternalSwap(QuantumEfficiency* other) { - using std::swap; +void QuantumEfficiency::InternalSwap(QuantumEfficiency* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(QuantumEfficiency, bluevalue3_) - + sizeof(QuantumEfficiency::bluevalue3_) - - PROTOBUF_FIELD_OFFSET(QuantumEfficiency, integrationweightfactor_)>( - reinterpret_cast(&integrationweightfactor_), - reinterpret_cast(&other->integrationweightfactor_)); -} - -std::string QuantumEfficiency::GetTypeName() const { - return "cielimMessage.QuantumEfficiency"; + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_.bluevalue3_) + + sizeof(QuantumEfficiency::_impl_.bluevalue3_) + - PROTOBUF_FIELD_OFFSET(QuantumEfficiency, _impl_.integrationweightfactor_)>( + reinterpret_cast(&_impl_.integrationweightfactor_), + reinterpret_cast(&other->_impl_.integrationweightfactor_)); } - // =================================================================== class LensModel::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(LensModel, _impl_._has_bits_); }; -LensModel::LensModel(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - fieldofview_(arena), - horizontalvignetting_(arena), - verticalvignetting_(arena), - distortion_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +LensModel::LensModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, LensModel_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:cielimMessage.LensModel) } -LensModel::LensModel(const LensModel& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - fieldofview_(from.fieldofview_), - horizontalvignetting_(from.horizontalvignetting_), - verticalvignetting_(from.verticalvignetting_), - distortion_(from.distortion_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&focallength_, &from.focallength_, - static_cast(reinterpret_cast(&transmission_) - - reinterpret_cast(&focallength_)) + sizeof(transmission_)); +PROTOBUF_NDEBUG_INLINE LensModel::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::cielimMessage::LensModel& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + fieldofview_{visibility, arena, from.fieldofview_}, + horizontalvignetting_{visibility, arena, from.horizontalvignetting_}, + verticalvignetting_{visibility, arena, from.verticalvignetting_}, + distortion_{visibility, arena, from.distortion_} {} + +LensModel::LensModel( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const LensModel& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, LensModel_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + LensModel* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, focallength_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, focallength_), + offsetof(Impl_, transmission_) - + offsetof(Impl_, focallength_) + + sizeof(Impl_::transmission_)); + // @@protoc_insertion_point(copy_constructor:cielimMessage.LensModel) } - -void LensModel::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&focallength_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&transmission_) - - reinterpret_cast(&focallength_)) + sizeof(transmission_)); +PROTOBUF_NDEBUG_INLINE LensModel::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + fieldofview_{visibility, arena}, + horizontalvignetting_{visibility, arena}, + verticalvignetting_{visibility, arena}, + distortion_{visibility, arena} {} + +inline void LensModel::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, focallength_), + 0, + offsetof(Impl_, transmission_) - + offsetof(Impl_, focallength_) + + sizeof(Impl_::transmission_)); } - LensModel::~LensModel() { // @@protoc_insertion_point(destructor:cielimMessage.LensModel) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void LensModel::SharedDtor(MessageLite& self) { + LensModel& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL LensModel::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) LensModel(arena); +} +constexpr auto LensModel::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(LensModel, _impl_.fieldofview_) + + decltype(LensModel::_impl_.fieldofview_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + PROTOBUF_FIELD_OFFSET(LensModel, _impl_.horizontalvignetting_) + + decltype(LensModel::_impl_.horizontalvignetting_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + PROTOBUF_FIELD_OFFSET(LensModel, _impl_.verticalvignetting_) + + decltype(LensModel::_impl_.verticalvignetting_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + PROTOBUF_FIELD_OFFSET(LensModel, _impl_.distortion_) + + decltype(LensModel::_impl_.distortion_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(LensModel), alignof(LensModel), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&LensModel::PlacementNew_, + sizeof(LensModel), + alignof(LensModel)); + } +} +constexpr auto LensModel::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<24>{ + { + &_LensModel_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &LensModel::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &LensModel::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &LensModel::ByteSizeLong, + &LensModel::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(LensModel, _impl_._cached_size_), + true, + }, + "cielimMessage.LensModel", + }; } -inline void LensModel::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<24> LensModel_class_data_ = + LensModel::InternalGenerateClassData_(); -void LensModel::ArenaDtor(void* object) { - LensModel* _this = reinterpret_cast< LensModel* >(object); - (void)_this; -} -void LensModel::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void LensModel::SetCachedSize(int size) const { - _cached_size_.Set(size); +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +LensModel::GetClassData() const { + return LensModel_class_data_.base(); } - -void LensModel::Clear() { +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 8, 0, 0, 2> +LensModel::_table_ = { + { + PROTOBUF_FIELD_OFFSET(LensModel, _impl_._has_bits_), + 0, // no _extensions_ + 8, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967040, // skipmap + offsetof(decltype(_table_), field_entries), + 8, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + LensModel_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::cielimMessage::LensModel>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // double transmission = 8; + {::_pbi::TcParser::FastF64S1, + {65, 7, 0, + PROTOBUF_FIELD_OFFSET(LensModel, _impl_.transmission_)}}, + // repeated double fieldOfView = 1; + {::_pbi::TcParser::FastF64P1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(LensModel, _impl_.fieldofview_)}}, + // double focalLength = 2; + {::_pbi::TcParser::FastF64S1, + {17, 4, 0, + PROTOBUF_FIELD_OFFSET(LensModel, _impl_.focallength_)}}, + // double pointSpreadFunction = 3; + {::_pbi::TcParser::FastF64S1, + {25, 5, 0, + PROTOBUF_FIELD_OFFSET(LensModel, _impl_.pointspreadfunction_)}}, + // double apertureRadius = 4; + {::_pbi::TcParser::FastF64S1, + {33, 6, 0, + PROTOBUF_FIELD_OFFSET(LensModel, _impl_.apertureradius_)}}, + // repeated double horizontalVignetting = 5; + {::_pbi::TcParser::FastF64P1, + {42, 1, 0, + PROTOBUF_FIELD_OFFSET(LensModel, _impl_.horizontalvignetting_)}}, + // repeated double verticalVignetting = 6; + {::_pbi::TcParser::FastF64P1, + {50, 2, 0, + PROTOBUF_FIELD_OFFSET(LensModel, _impl_.verticalvignetting_)}}, + // repeated double distortion = 7; + {::_pbi::TcParser::FastF64P1, + {58, 3, 0, + PROTOBUF_FIELD_OFFSET(LensModel, _impl_.distortion_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated double fieldOfView = 1; + {PROTOBUF_FIELD_OFFSET(LensModel, _impl_.fieldofview_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, + // double focalLength = 2; + {PROTOBUF_FIELD_OFFSET(LensModel, _impl_.focallength_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double pointSpreadFunction = 3; + {PROTOBUF_FIELD_OFFSET(LensModel, _impl_.pointspreadfunction_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double apertureRadius = 4; + {PROTOBUF_FIELD_OFFSET(LensModel, _impl_.apertureradius_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // repeated double horizontalVignetting = 5; + {PROTOBUF_FIELD_OFFSET(LensModel, _impl_.horizontalvignetting_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, + // repeated double verticalVignetting = 6; + {PROTOBUF_FIELD_OFFSET(LensModel, _impl_.verticalvignetting_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, + // repeated double distortion = 7; + {PROTOBUF_FIELD_OFFSET(LensModel, _impl_.distortion_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, + // double transmission = 8; + {PROTOBUF_FIELD_OFFSET(LensModel, _impl_.transmission_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void LensModel::Clear() { // @@protoc_insertion_point(message_clear_start:cielimMessage.LensModel) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - fieldofview_.Clear(); - horizontalvignetting_.Clear(); - verticalvignetting_.Clear(); - distortion_.Clear(); - ::memset(&focallength_, 0, static_cast( - reinterpret_cast(&transmission_) - - reinterpret_cast(&focallength_)) + sizeof(transmission_)); - _internal_metadata_.Clear(); -} - -const char* LensModel::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated double fieldOfView = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_fieldofview(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9) { - _internal_add_fieldofview(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double focalLength = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { - focallength_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double pointSpreadFunction = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25)) { - pointspreadfunction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double apertureRadius = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33)) { - apertureradius_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // repeated double horizontalVignetting = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_horizontalvignetting(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 41) { - _internal_add_horizontalvignetting(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // repeated double verticalVignetting = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_verticalvignetting(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 49) { - _internal_add_verticalvignetting(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // repeated double distortion = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_distortion(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 57) { - _internal_add_distortion(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double transmission = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 65)) { - transmission_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* LensModel::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.fieldofview_.Clear(); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _impl_.horizontalvignetting_.Clear(); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + _impl_.verticalvignetting_.Clear(); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) { + _impl_.distortion_.Clear(); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x000000f0U)) { + ::memset(&_impl_.focallength_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.transmission_) - + reinterpret_cast(&_impl_.focallength_)) + sizeof(_impl_.transmission_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL LensModel::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const LensModel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL LensModel::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const LensModel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:cielimMessage.LensModel) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // repeated double fieldOfView = 1; - if (this->_internal_fieldofview_size() > 0) { - target = stream->WriteFixedPacked(1, _internal_fieldofview(), target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + if (this_._internal_fieldofview_size() > 0) { + target = stream->WriteFixedPacked(1, this_._internal_fieldofview(), target); + } } // double focalLength = 2; - if (!(this->_internal_focallength() <= 0 && this->_internal_focallength() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_focallength(), target); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_focallength()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 2, this_._internal_focallength(), target); + } } // double pointSpreadFunction = 3; - if (!(this->_internal_pointspreadfunction() <= 0 && this->_internal_pointspreadfunction() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(3, this->_internal_pointspreadfunction(), target); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_pointspreadfunction()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 3, this_._internal_pointspreadfunction(), target); + } } // double apertureRadius = 4; - if (!(this->_internal_apertureradius() <= 0 && this->_internal_apertureradius() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_apertureradius(), target); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_apertureradius()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 4, this_._internal_apertureradius(), target); + } } // repeated double horizontalVignetting = 5; - if (this->_internal_horizontalvignetting_size() > 0) { - target = stream->WriteFixedPacked(5, _internal_horizontalvignetting(), target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + if (this_._internal_horizontalvignetting_size() > 0) { + target = stream->WriteFixedPacked(5, this_._internal_horizontalvignetting(), target); + } } // repeated double verticalVignetting = 6; - if (this->_internal_verticalvignetting_size() > 0) { - target = stream->WriteFixedPacked(6, _internal_verticalvignetting(), target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + if (this_._internal_verticalvignetting_size() > 0) { + target = stream->WriteFixedPacked(6, this_._internal_verticalvignetting(), target); + } } // repeated double distortion = 7; - if (this->_internal_distortion_size() > 0) { - target = stream->WriteFixedPacked(7, _internal_distortion(), target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) { + if (this_._internal_distortion_size() > 0) { + target = stream->WriteFixedPacked(7, this_._internal_distortion(), target); + } } // double transmission = 8; - if (!(this->_internal_transmission() <= 0 && this->_internal_transmission() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(8, this->_internal_transmission(), target); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_transmission()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 8, this_._internal_transmission(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:cielimMessage.LensModel) return target; } -size_t LensModel::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:cielimMessage.LensModel) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t LensModel::ByteSizeLong(const MessageLite& base) { + const LensModel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t LensModel::ByteSizeLong() const { + const LensModel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:cielimMessage.LensModel) + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated double fieldOfView = 1; - { - unsigned int count = static_cast(this->_internal_fieldofview_size()); - size_t data_size = 8UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // repeated double fieldOfView = 1; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + ::size_t data_size = ::size_t{8} * + ::_pbi::FromIntSize(this_._internal_fieldofview_size()); + ::size_t tag_size = data_size == 0 + ? 0 + : 1 + ::_pbi::WireFormatLite::Int32Size( + static_cast<::int32_t>(data_size)); + total_size += tag_size + data_size; } - total_size += data_size; - } - - // repeated double horizontalVignetting = 5; - { - unsigned int count = static_cast(this->_internal_horizontalvignetting_size()); - size_t data_size = 8UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + // repeated double horizontalVignetting = 5; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + ::size_t data_size = ::size_t{8} * + ::_pbi::FromIntSize(this_._internal_horizontalvignetting_size()); + ::size_t tag_size = data_size == 0 + ? 0 + : 1 + ::_pbi::WireFormatLite::Int32Size( + static_cast<::int32_t>(data_size)); + total_size += tag_size + data_size; } - total_size += data_size; - } - - // repeated double verticalVignetting = 6; - { - unsigned int count = static_cast(this->_internal_verticalvignetting_size()); - size_t data_size = 8UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + // repeated double verticalVignetting = 6; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + ::size_t data_size = ::size_t{8} * + ::_pbi::FromIntSize(this_._internal_verticalvignetting_size()); + ::size_t tag_size = data_size == 0 + ? 0 + : 1 + ::_pbi::WireFormatLite::Int32Size( + static_cast<::int32_t>(data_size)); + total_size += tag_size + data_size; } - total_size += data_size; - } - - // repeated double distortion = 7; - { - unsigned int count = static_cast(this->_internal_distortion_size()); - size_t data_size = 8UL * count; - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + // repeated double distortion = 7; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) { + ::size_t data_size = ::size_t{8} * + ::_pbi::FromIntSize(this_._internal_distortion_size()); + ::size_t tag_size = data_size == 0 + ? 0 + : 1 + ::_pbi::WireFormatLite::Int32Size( + static_cast<::int32_t>(data_size)); + total_size += tag_size + data_size; + } + // double focalLength = 2; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_focallength()) != 0) { + total_size += 9; + } + } + // double pointSpreadFunction = 3; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_pointspreadfunction()) != 0) { + total_size += 9; + } + } + // double apertureRadius = 4; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_apertureradius()) != 0) { + total_size += 9; + } + } + // double transmission = 8; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_transmission()) != 0) { + total_size += 9; + } } - total_size += data_size; } - - // double focalLength = 2; - if (!(this->_internal_focallength() <= 0 && this->_internal_focallength() >= 0)) { - total_size += 1 + 8; + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); + return total_size; +} - // double pointSpreadFunction = 3; - if (!(this->_internal_pointspreadfunction() <= 0 && this->_internal_pointspreadfunction() >= 0)) { - total_size += 1 + 8; +void LensModel::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } + // @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.LensModel) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; - // double apertureRadius = 4; - if (!(this->_internal_apertureradius() <= 0 && this->_internal_apertureradius() >= 0)) { - total_size += 1 + 8; + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_fieldofview()->MergeFrom(from._internal_fieldofview()); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _this->_internal_mutable_horizontalvignetting()->MergeFrom(from._internal_horizontalvignetting()); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + _this->_internal_mutable_verticalvignetting()->MergeFrom(from._internal_verticalvignetting()); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) { + _this->_internal_mutable_distortion()->MergeFrom(from._internal_distortion()); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_focallength()) != 0) { + _this->_impl_.focallength_ = from._impl_.focallength_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_pointspreadfunction()) != 0) { + _this->_impl_.pointspreadfunction_ = from._impl_.pointspreadfunction_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_apertureradius()) != 0) { + _this->_impl_.apertureradius_ = from._impl_.apertureradius_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_transmission()) != 0) { + _this->_impl_.transmission_ = from._impl_.transmission_; + } + } } - - // double transmission = 8; - if (!(this->_internal_transmission() <= 0 && this->_internal_transmission() >= 0)) { - total_size += 1 + 8; - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void LensModel::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void LensModel::MergeFrom(const LensModel& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.LensModel) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - fieldofview_.MergeFrom(from.fieldofview_); - horizontalvignetting_.MergeFrom(from.horizontalvignetting_); - verticalvignetting_.MergeFrom(from.verticalvignetting_); - distortion_.MergeFrom(from.distortion_); - if (!(from._internal_focallength() <= 0 && from._internal_focallength() >= 0)) { - _internal_set_focallength(from._internal_focallength()); - } - if (!(from._internal_pointspreadfunction() <= 0 && from._internal_pointspreadfunction() >= 0)) { - _internal_set_pointspreadfunction(from._internal_pointspreadfunction()); - } - if (!(from._internal_apertureradius() <= 0 && from._internal_apertureradius() >= 0)) { - _internal_set_apertureradius(from._internal_apertureradius()); - } - if (!(from._internal_transmission() <= 0 && from._internal_transmission() >= 0)) { - _internal_set_transmission(from._internal_transmission()); - } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void LensModel::CopyFrom(const LensModel& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.LensModel) + // @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.LensModel) if (&from == this) return; Clear(); MergeFrom(from); } -bool LensModel::IsInitialized() const { - return true; -} -void LensModel::InternalSwap(LensModel* other) { - using std::swap; +void LensModel::InternalSwap(LensModel* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - fieldofview_.InternalSwap(&other->fieldofview_); - horizontalvignetting_.InternalSwap(&other->horizontalvignetting_); - verticalvignetting_.InternalSwap(&other->verticalvignetting_); - distortion_.InternalSwap(&other->distortion_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(LensModel, transmission_) - + sizeof(LensModel::transmission_) - - PROTOBUF_FIELD_OFFSET(LensModel, focallength_)>( - reinterpret_cast(&focallength_), - reinterpret_cast(&other->focallength_)); -} - -std::string LensModel::GetTypeName() const { - return "cielimMessage.LensModel"; + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.fieldofview_.InternalSwap(&other->_impl_.fieldofview_); + _impl_.horizontalvignetting_.InternalSwap(&other->_impl_.horizontalvignetting_); + _impl_.verticalvignetting_.InternalSwap(&other->_impl_.verticalvignetting_); + _impl_.distortion_.InternalSwap(&other->_impl_.distortion_); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(LensModel, _impl_.transmission_) + + sizeof(LensModel::_impl_.transmission_) + - PROTOBUF_FIELD_OFFSET(LensModel, _impl_.focallength_)>( + reinterpret_cast(&_impl_.focallength_), + reinterpret_cast(&other->_impl_.focallength_)); } - // =================================================================== class SensorModel::_Internal { public: - static const ::cielimMessage::QuantumEfficiency& qecurve(const SensorModel* msg); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SensorModel, _impl_._has_bits_); }; -const ::cielimMessage::QuantumEfficiency& -SensorModel::_Internal::qecurve(const SensorModel* msg) { - return *msg->qecurve_; -} -SensorModel::SensorModel(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - resolution_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +SensorModel::SensorModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SensorModel_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:cielimMessage.SensorModel) } -SensorModel::SensorModel(const SensorModel& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - resolution_(from.resolution_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_qecurve()) { - qecurve_ = new ::cielimMessage::QuantumEfficiency(*from.qecurve_); - } else { - qecurve_ = nullptr; - } - ::memcpy(&renderrate_, &from.renderrate_, - static_cast(reinterpret_cast(&shotnoise_) - - reinterpret_cast(&renderrate_)) + sizeof(shotnoise_)); +PROTOBUF_NDEBUG_INLINE SensorModel::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::cielimMessage::SensorModel& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + resolution_{visibility, arena, from.resolution_}, + _resolution_cached_byte_size_{0} {} + +SensorModel::SensorModel( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const SensorModel& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, SensorModel_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SensorModel* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.qecurve_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.qecurve_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, renderrate_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, renderrate_), + offsetof(Impl_, shotnoise_) - + offsetof(Impl_, renderrate_) + + sizeof(Impl_::shotnoise_)); + // @@protoc_insertion_point(copy_constructor:cielimMessage.SensorModel) } - -void SensorModel::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&qecurve_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&shotnoise_) - - reinterpret_cast(&qecurve_)) + sizeof(shotnoise_)); +PROTOBUF_NDEBUG_INLINE SensorModel::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + resolution_{visibility, arena}, + _resolution_cached_byte_size_{0} {} + +inline void SensorModel::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, qecurve_), + 0, + offsetof(Impl_, shotnoise_) - + offsetof(Impl_, qecurve_) + + sizeof(Impl_::shotnoise_)); } - SensorModel::~SensorModel() { // @@protoc_insertion_point(destructor:cielimMessage.SensorModel) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void SensorModel::SharedDtor(MessageLite& self) { + SensorModel& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.qecurve_; + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL SensorModel::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SensorModel(arena); +} +constexpr auto SensorModel::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.resolution_) + + decltype(SensorModel::_impl_.resolution_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SensorModel), alignof(SensorModel), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&SensorModel::PlacementNew_, + sizeof(SensorModel), + alignof(SensorModel)); + } +} +constexpr auto SensorModel::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<26>{ + { + &_SensorModel_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SensorModel::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SensorModel::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &SensorModel::ByteSizeLong, + &SensorModel::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SensorModel, _impl_._cached_size_), + true, + }, + "cielimMessage.SensorModel", + }; } -inline void SensorModel::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete qecurve_; -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<26> SensorModel_class_data_ = + SensorModel::InternalGenerateClassData_(); -void SensorModel::ArenaDtor(void* object) { - SensorModel* _this = reinterpret_cast< SensorModel* >(object); - (void)_this; -} -void SensorModel::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SensorModel::GetClassData() const { + return SensorModel_class_data_.base(); } -void SensorModel::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void SensorModel::Clear() { +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 12, 1, 0, 2> +SensorModel::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SensorModel, _impl_._has_bits_), + 0, // no _extensions_ + 12, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294963200, // skipmap + offsetof(decltype(_table_), field_entries), + 12, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + SensorModel_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::cielimMessage::SensorModel>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // repeated int64 resolution = 1; + {::_pbi::TcParser::FastV64P1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.resolution_)}}, + // uint64 renderRate = 2; + {::_pbi::TcParser::FastV64S1, + {16, 2, 0, + PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.renderrate_)}}, + // double exposureTime = 3; + {::_pbi::TcParser::FastF64S1, + {25, 3, 0, + PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.exposuretime_)}}, + // double readNoise = 4; + {::_pbi::TcParser::FastF64S1, + {33, 4, 0, + PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.readnoise_)}}, + // bool shotNoise = 5; + {::_pbi::TcParser::FastV8S1, + {40, 11, 0, + PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.shotnoise_)}}, + // double darkCurrent = 6; + {::_pbi::TcParser::FastF64S1, + {49, 5, 0, + PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.darkcurrent_)}}, + // double systemGain = 7; + {::_pbi::TcParser::FastF64S1, + {57, 6, 0, + PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.systemgain_)}}, + // double sensorWidth = 8; + {::_pbi::TcParser::FastF64S1, + {65, 7, 0, + PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.sensorwidth_)}}, + // double sensorHeight = 9; + {::_pbi::TcParser::FastF64S1, + {73, 8, 0, + PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.sensorheight_)}}, + // double fullWellCapacity = 10; + {::_pbi::TcParser::FastF64S1, + {81, 9, 0, + PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.fullwellcapacity_)}}, + // double gamma = 11; + {::_pbi::TcParser::FastF64S1, + {89, 10, 0, + PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.gamma_)}}, + // .cielimMessage.QuantumEfficiency qeCurve = 12; + {::_pbi::TcParser::FastMtS1, + {98, 1, 0, + PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.qecurve_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated int64 resolution = 1; + {PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.resolution_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)}, + // uint64 renderRate = 2; + {PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.renderrate_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // double exposureTime = 3; + {PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.exposuretime_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double readNoise = 4; + {PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.readnoise_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // bool shotNoise = 5; + {PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.shotnoise_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // double darkCurrent = 6; + {PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.darkcurrent_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double systemGain = 7; + {PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.systemgain_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double sensorWidth = 8; + {PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.sensorwidth_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double sensorHeight = 9; + {PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.sensorheight_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double fullWellCapacity = 10; + {PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.fullwellcapacity_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double gamma = 11; + {PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.gamma_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // .cielimMessage.QuantumEfficiency qeCurve = 12; + {PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.qecurve_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::cielimMessage::QuantumEfficiency>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void SensorModel::Clear() { // @@protoc_insertion_point(message_clear_start:cielimMessage.SensorModel) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - resolution_.Clear(); - if (GetArenaForAllocation() == nullptr && qecurve_ != nullptr) { - delete qecurve_; - } - qecurve_ = nullptr; - ::memset(&renderrate_, 0, static_cast( - reinterpret_cast(&shotnoise_) - - reinterpret_cast(&renderrate_)) + sizeof(shotnoise_)); - _internal_metadata_.Clear(); -} - -const char* SensorModel::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated int64 resolution = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_resolution(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) { - _internal_add_resolution(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // uint64 renderRate = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - renderrate_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // double exposureTime = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25)) { - exposuretime_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double readNoise = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33)) { - readnoise_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // bool shotNoise = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { - shotnoise_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // double darkCurrent = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 49)) { - darkcurrent_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double systemGain = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 57)) { - systemgain_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double sensorWidth = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 65)) { - sensorwidth_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double sensorHeight = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 73)) { - sensorheight_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double fullWellCapacity = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 81)) { - fullwellcapacity_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double gamma = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 89)) { - gamma_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // .cielimMessage.QuantumEfficiency qeCurve = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { - ptr = ctx->ParseMessage(_internal_mutable_qecurve(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* SensorModel::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.resolution_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.qecurve_ != nullptr); + _impl_.qecurve_->Clear(); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x000000fcU)) { + ::memset(&_impl_.renderrate_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.sensorwidth_) - + reinterpret_cast(&_impl_.renderrate_)) + sizeof(_impl_.sensorwidth_)); + } + if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) { + ::memset(&_impl_.sensorheight_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.shotnoise_) - + reinterpret_cast(&_impl_.sensorheight_)) + sizeof(_impl_.shotnoise_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL SensorModel::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const SensorModel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL SensorModel::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const SensorModel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:cielimMessage.SensorModel) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // repeated int64 resolution = 1; - { - int byte_size = _resolution_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt64Packed( - 1, _internal_resolution(), byte_size, target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + { + int byte_size = this_._impl_._resolution_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteInt64Packed( + 1, this_._internal_resolution(), byte_size, target); + } } } // uint64 renderRate = 2; - if (this->_internal_renderrate() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_renderrate(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_renderrate() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_renderrate(), target); + } } // double exposureTime = 3; - if (!(this->_internal_exposuretime() <= 0 && this->_internal_exposuretime() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(3, this->_internal_exposuretime(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_exposuretime()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 3, this_._internal_exposuretime(), target); + } } // double readNoise = 4; - if (!(this->_internal_readnoise() <= 0 && this->_internal_readnoise() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_readnoise(), target); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_readnoise()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 4, this_._internal_readnoise(), target); + } } // bool shotNoise = 5; - if (this->_internal_shotnoise() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_shotnoise(), target); + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (this_._internal_shotnoise() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 5, this_._internal_shotnoise(), target); + } } // double darkCurrent = 6; - if (!(this->_internal_darkcurrent() <= 0 && this->_internal_darkcurrent() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(6, this->_internal_darkcurrent(), target); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_darkcurrent()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 6, this_._internal_darkcurrent(), target); + } } // double systemGain = 7; - if (!(this->_internal_systemgain() <= 0 && this->_internal_systemgain() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(7, this->_internal_systemgain(), target); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_systemgain()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 7, this_._internal_systemgain(), target); + } } // double sensorWidth = 8; - if (!(this->_internal_sensorwidth() <= 0 && this->_internal_sensorwidth() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(8, this->_internal_sensorwidth(), target); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_sensorwidth()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 8, this_._internal_sensorwidth(), target); + } } // double sensorHeight = 9; - if (!(this->_internal_sensorheight() <= 0 && this->_internal_sensorheight() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(9, this->_internal_sensorheight(), target); + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_sensorheight()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 9, this_._internal_sensorheight(), target); + } } // double fullWellCapacity = 10; - if (!(this->_internal_fullwellcapacity() <= 0 && this->_internal_fullwellcapacity() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(10, this->_internal_fullwellcapacity(), target); + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_fullwellcapacity()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 10, this_._internal_fullwellcapacity(), target); + } } // double gamma = 11; - if (!(this->_internal_gamma() <= 0 && this->_internal_gamma() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(11, this->_internal_gamma(), target); + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_gamma()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 11, this_._internal_gamma(), target); + } } // .cielimMessage.QuantumEfficiency qeCurve = 12; - if (this->_internal_has_qecurve()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 12, _Internal::qecurve(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 12, *this_._impl_.qecurve_, this_._impl_.qecurve_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:cielimMessage.SensorModel) return target; } -size_t SensorModel::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:cielimMessage.SensorModel) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t SensorModel::ByteSizeLong(const MessageLite& base) { + const SensorModel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t SensorModel::ByteSizeLong() const { + const SensorModel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:cielimMessage.SensorModel) + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int64 resolution = 1; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int64Size(this->resolution_); - if (data_size > 0) { + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // repeated int64 resolution = 1; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += + ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize( + this_._internal_resolution(), 1, + this_._impl_._resolution_cached_byte_size_); + } + // .cielimMessage.QuantumEfficiency qeCurve = 12; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.qecurve_); + } + // uint64 renderRate = 2; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_renderrate() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_renderrate()); + } + } + // double exposureTime = 3; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_exposuretime()) != 0) { + total_size += 9; + } + } + // double readNoise = 4; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_readnoise()) != 0) { + total_size += 9; + } + } + // double darkCurrent = 6; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_darkcurrent()) != 0) { + total_size += 9; + } + } + // double systemGain = 7; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_systemgain()) != 0) { + total_size += 9; + } + } + // double sensorWidth = 8; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_sensorwidth()) != 0) { + total_size += 9; + } } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _resolution_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // .cielimMessage.QuantumEfficiency qeCurve = 12; - if (this->_internal_has_qecurve()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *qecurve_); - } - - // uint64 renderRate = 2; - if (this->_internal_renderrate() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_renderrate()); - } - - // double exposureTime = 3; - if (!(this->_internal_exposuretime() <= 0 && this->_internal_exposuretime() >= 0)) { - total_size += 1 + 8; - } - - // double readNoise = 4; - if (!(this->_internal_readnoise() <= 0 && this->_internal_readnoise() >= 0)) { - total_size += 1 + 8; - } - - // double darkCurrent = 6; - if (!(this->_internal_darkcurrent() <= 0 && this->_internal_darkcurrent() >= 0)) { - total_size += 1 + 8; - } - - // double systemGain = 7; - if (!(this->_internal_systemgain() <= 0 && this->_internal_systemgain() >= 0)) { - total_size += 1 + 8; - } - - // double sensorWidth = 8; - if (!(this->_internal_sensorwidth() <= 0 && this->_internal_sensorwidth() >= 0)) { - total_size += 1 + 8; - } - - // double sensorHeight = 9; - if (!(this->_internal_sensorheight() <= 0 && this->_internal_sensorheight() >= 0)) { - total_size += 1 + 8; - } - - // double fullWellCapacity = 10; - if (!(this->_internal_fullwellcapacity() <= 0 && this->_internal_fullwellcapacity() >= 0)) { - total_size += 1 + 8; - } - - // double gamma = 11; - if (!(this->_internal_gamma() <= 0 && this->_internal_gamma() >= 0)) { - total_size += 1 + 8; } - - // bool shotNoise = 5; - if (this->_internal_shotnoise() != 0) { - total_size += 1 + 1; + if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) { + // double sensorHeight = 9; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_sensorheight()) != 0) { + total_size += 9; + } + } + // double fullWellCapacity = 10; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_fullwellcapacity()) != 0) { + total_size += 9; + } + } + // double gamma = 11; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_gamma()) != 0) { + total_size += 9; + } + } + // bool shotNoise = 5; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (this_._internal_shotnoise() != 0) { + total_size += 2; + } + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void SensorModel::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void SensorModel::MergeFrom(const SensorModel& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.SensorModel) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - resolution_.MergeFrom(from.resolution_); - if (from._internal_has_qecurve()) { - _internal_mutable_qecurve()->::cielimMessage::QuantumEfficiency::MergeFrom(from._internal_qecurve()); - } - if (from._internal_renderrate() != 0) { - _internal_set_renderrate(from._internal_renderrate()); - } - if (!(from._internal_exposuretime() <= 0 && from._internal_exposuretime() >= 0)) { - _internal_set_exposuretime(from._internal_exposuretime()); - } - if (!(from._internal_readnoise() <= 0 && from._internal_readnoise() >= 0)) { - _internal_set_readnoise(from._internal_readnoise()); - } - if (!(from._internal_darkcurrent() <= 0 && from._internal_darkcurrent() >= 0)) { - _internal_set_darkcurrent(from._internal_darkcurrent()); - } - if (!(from._internal_systemgain() <= 0 && from._internal_systemgain() >= 0)) { - _internal_set_systemgain(from._internal_systemgain()); - } - if (!(from._internal_sensorwidth() <= 0 && from._internal_sensorwidth() >= 0)) { - _internal_set_sensorwidth(from._internal_sensorwidth()); - } - if (!(from._internal_sensorheight() <= 0 && from._internal_sensorheight() >= 0)) { - _internal_set_sensorheight(from._internal_sensorheight()); - } - if (!(from._internal_fullwellcapacity() <= 0 && from._internal_fullwellcapacity() >= 0)) { - _internal_set_fullwellcapacity(from._internal_fullwellcapacity()); - } - if (!(from._internal_gamma() <= 0 && from._internal_gamma() >= 0)) { - _internal_set_gamma(from._internal_gamma()); +void SensorModel::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.SensorModel) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_resolution()->MergeFrom(from._internal_resolution()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.qecurve_ != nullptr); + if (_this->_impl_.qecurve_ == nullptr) { + _this->_impl_.qecurve_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.qecurve_); + } else { + _this->_impl_.qecurve_->MergeFrom(*from._impl_.qecurve_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (from._internal_renderrate() != 0) { + _this->_impl_.renderrate_ = from._impl_.renderrate_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_exposuretime()) != 0) { + _this->_impl_.exposuretime_ = from._impl_.exposuretime_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_readnoise()) != 0) { + _this->_impl_.readnoise_ = from._impl_.readnoise_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_darkcurrent()) != 0) { + _this->_impl_.darkcurrent_ = from._impl_.darkcurrent_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_systemgain()) != 0) { + _this->_impl_.systemgain_ = from._impl_.systemgain_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_sensorwidth()) != 0) { + _this->_impl_.sensorwidth_ = from._impl_.sensorwidth_; + } + } } - if (from._internal_shotnoise() != 0) { - _internal_set_shotnoise(from._internal_shotnoise()); + if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_sensorheight()) != 0) { + _this->_impl_.sensorheight_ = from._impl_.sensorheight_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_fullwellcapacity()) != 0) { + _this->_impl_.fullwellcapacity_ = from._impl_.fullwellcapacity_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_gamma()) != 0) { + _this->_impl_.gamma_ = from._impl_.gamma_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (from._internal_shotnoise() != 0) { + _this->_impl_.shotnoise_ = from._impl_.shotnoise_; + } + } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void SensorModel::CopyFrom(const SensorModel& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.SensorModel) + // @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.SensorModel) if (&from == this) return; Clear(); MergeFrom(from); } -bool SensorModel::IsInitialized() const { - return true; -} -void SensorModel::InternalSwap(SensorModel* other) { - using std::swap; +void SensorModel::InternalSwap(SensorModel* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - resolution_.InternalSwap(&other->resolution_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SensorModel, shotnoise_) - + sizeof(SensorModel::shotnoise_) - - PROTOBUF_FIELD_OFFSET(SensorModel, qecurve_)>( - reinterpret_cast(&qecurve_), - reinterpret_cast(&other->qecurve_)); -} - -std::string SensorModel::GetTypeName() const { - return "cielimMessage.SensorModel"; + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.resolution_.InternalSwap(&other->_impl_.resolution_); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.shotnoise_) + + sizeof(SensorModel::_impl_.shotnoise_) + - PROTOBUF_FIELD_OFFSET(SensorModel, _impl_.qecurve_)>( + reinterpret_cast(&_impl_.qecurve_), + reinterpret_cast(&other->_impl_.qecurve_)); } - // =================================================================== class AreaOfInterest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(AreaOfInterest, _impl_._has_bits_); }; -AreaOfInterest::AreaOfInterest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +AreaOfInterest::AreaOfInterest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, AreaOfInterest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:cielimMessage.AreaOfInterest) } -AreaOfInterest::AreaOfInterest(const AreaOfInterest& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(¢erx_, &from.centerx_, - static_cast(reinterpret_cast(&threshold_) - - reinterpret_cast(¢erx_)) + sizeof(threshold_)); - // @@protoc_insertion_point(copy_constructor:cielimMessage.AreaOfInterest) +AreaOfInterest::AreaOfInterest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const AreaOfInterest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, AreaOfInterest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); +} +PROTOBUF_NDEBUG_INLINE AreaOfInterest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} + +inline void AreaOfInterest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, centerx_), + 0, + offsetof(Impl_, threshold_) - + offsetof(Impl_, centerx_) + + sizeof(Impl_::threshold_)); } - -void AreaOfInterest::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(¢erx_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&threshold_) - - reinterpret_cast(¢erx_)) + sizeof(threshold_)); -} - AreaOfInterest::~AreaOfInterest() { // @@protoc_insertion_point(destructor:cielimMessage.AreaOfInterest) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void AreaOfInterest::SharedDtor(MessageLite& self) { + AreaOfInterest& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL AreaOfInterest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) AreaOfInterest(arena); +} +constexpr auto AreaOfInterest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(AreaOfInterest), + alignof(AreaOfInterest)); +} +constexpr auto AreaOfInterest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<29>{ + { + &_AreaOfInterest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &AreaOfInterest::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &AreaOfInterest::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &AreaOfInterest::ByteSizeLong, + &AreaOfInterest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(AreaOfInterest, _impl_._cached_size_), + true, + }, + "cielimMessage.AreaOfInterest", + }; } -inline void AreaOfInterest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<29> AreaOfInterest_class_data_ = + AreaOfInterest::InternalGenerateClassData_(); -void AreaOfInterest::ArenaDtor(void* object) { - AreaOfInterest* _this = reinterpret_cast< AreaOfInterest* >(object); - (void)_this; +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +AreaOfInterest::GetClassData() const { + return AreaOfInterest_class_data_.base(); } -void AreaOfInterest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void AreaOfInterest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void AreaOfInterest::Clear() { +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 5, 0, 0, 2> +AreaOfInterest::_table_ = { + { + PROTOBUF_FIELD_OFFSET(AreaOfInterest, _impl_._has_bits_), + 0, // no _extensions_ + 5, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967264, // skipmap + offsetof(decltype(_table_), field_entries), + 5, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + AreaOfInterest_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::cielimMessage::AreaOfInterest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // double centerX = 1; + {::_pbi::TcParser::FastF64S1, + {9, 0, 0, + PROTOBUF_FIELD_OFFSET(AreaOfInterest, _impl_.centerx_)}}, + // double centerY = 2; + {::_pbi::TcParser::FastF64S1, + {17, 1, 0, + PROTOBUF_FIELD_OFFSET(AreaOfInterest, _impl_.centery_)}}, + // double width = 3; + {::_pbi::TcParser::FastF64S1, + {25, 2, 0, + PROTOBUF_FIELD_OFFSET(AreaOfInterest, _impl_.width_)}}, + // double height = 4; + {::_pbi::TcParser::FastF64S1, + {33, 3, 0, + PROTOBUF_FIELD_OFFSET(AreaOfInterest, _impl_.height_)}}, + // double threshold = 5; + {::_pbi::TcParser::FastF64S1, + {41, 4, 0, + PROTOBUF_FIELD_OFFSET(AreaOfInterest, _impl_.threshold_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // double centerX = 1; + {PROTOBUF_FIELD_OFFSET(AreaOfInterest, _impl_.centerx_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double centerY = 2; + {PROTOBUF_FIELD_OFFSET(AreaOfInterest, _impl_.centery_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double width = 3; + {PROTOBUF_FIELD_OFFSET(AreaOfInterest, _impl_.width_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double height = 4; + {PROTOBUF_FIELD_OFFSET(AreaOfInterest, _impl_.height_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double threshold = 5; + {PROTOBUF_FIELD_OFFSET(AreaOfInterest, _impl_.threshold_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void AreaOfInterest::Clear() { // @@protoc_insertion_point(message_clear_start:cielimMessage.AreaOfInterest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(¢erx_, 0, static_cast( - reinterpret_cast(&threshold_) - - reinterpret_cast(¢erx_)) + sizeof(threshold_)); - _internal_metadata_.Clear(); -} - -const char* AreaOfInterest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // double centerX = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) { - centerx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double centerY = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { - centery_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double width = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25)) { - width_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double height = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33)) { - height_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double threshold = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 41)) { - threshold_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* AreaOfInterest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + ::memset(&_impl_.centerx_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.threshold_) - + reinterpret_cast(&_impl_.centerx_)) + sizeof(_impl_.threshold_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL AreaOfInterest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const AreaOfInterest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL AreaOfInterest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const AreaOfInterest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:cielimMessage.AreaOfInterest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // double centerX = 1; - if (!(this->_internal_centerx() <= 0 && this->_internal_centerx() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->_internal_centerx(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_centerx()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 1, this_._internal_centerx(), target); + } } // double centerY = 2; - if (!(this->_internal_centery() <= 0 && this->_internal_centery() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_centery(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_centery()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 2, this_._internal_centery(), target); + } } // double width = 3; - if (!(this->_internal_width() <= 0 && this->_internal_width() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(3, this->_internal_width(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_width()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 3, this_._internal_width(), target); + } } // double height = 4; - if (!(this->_internal_height() <= 0 && this->_internal_height() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_height(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_height()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 4, this_._internal_height(), target); + } } // double threshold = 5; - if (!(this->_internal_threshold() <= 0 && this->_internal_threshold() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(5, this->_internal_threshold(), target); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_threshold()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 5, this_._internal_threshold(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:cielimMessage.AreaOfInterest) return target; } -size_t AreaOfInterest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:cielimMessage.AreaOfInterest) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t AreaOfInterest::ByteSizeLong(const MessageLite& base) { + const AreaOfInterest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t AreaOfInterest::ByteSizeLong() const { + const AreaOfInterest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:cielimMessage.AreaOfInterest) + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // double centerX = 1; - if (!(this->_internal_centerx() <= 0 && this->_internal_centerx() >= 0)) { - total_size += 1 + 8; - } - - // double centerY = 2; - if (!(this->_internal_centery() <= 0 && this->_internal_centery() >= 0)) { - total_size += 1 + 8; - } - - // double width = 3; - if (!(this->_internal_width() <= 0 && this->_internal_width() >= 0)) { - total_size += 1 + 8; - } - - // double height = 4; - if (!(this->_internal_height() <= 0 && this->_internal_height() >= 0)) { - total_size += 1 + 8; - } - - // double threshold = 5; - if (!(this->_internal_threshold() <= 0 && this->_internal_threshold() >= 0)) { - total_size += 1 + 8; + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + // double centerX = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_centerx()) != 0) { + total_size += 9; + } + } + // double centerY = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_centery()) != 0) { + total_size += 9; + } + } + // double width = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_width()) != 0) { + total_size += 9; + } + } + // double height = 4; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_height()) != 0) { + total_size += 9; + } + } + // double threshold = 5; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_threshold()) != 0) { + total_size += 9; + } + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void AreaOfInterest::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void AreaOfInterest::MergeFrom(const AreaOfInterest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.AreaOfInterest) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (!(from._internal_centerx() <= 0 && from._internal_centerx() >= 0)) { - _internal_set_centerx(from._internal_centerx()); - } - if (!(from._internal_centery() <= 0 && from._internal_centery() >= 0)) { - _internal_set_centery(from._internal_centery()); - } - if (!(from._internal_width() <= 0 && from._internal_width() >= 0)) { - _internal_set_width(from._internal_width()); - } - if (!(from._internal_height() <= 0 && from._internal_height() >= 0)) { - _internal_set_height(from._internal_height()); - } - if (!(from._internal_threshold() <= 0 && from._internal_threshold() >= 0)) { - _internal_set_threshold(from._internal_threshold()); +void AreaOfInterest::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.AreaOfInterest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_centerx()) != 0) { + _this->_impl_.centerx_ = from._impl_.centerx_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_centery()) != 0) { + _this->_impl_.centery_ = from._impl_.centery_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_width()) != 0) { + _this->_impl_.width_ = from._impl_.width_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_height()) != 0) { + _this->_impl_.height_ = from._impl_.height_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_threshold()) != 0) { + _this->_impl_.threshold_ = from._impl_.threshold_; + } + } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void AreaOfInterest::CopyFrom(const AreaOfInterest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.AreaOfInterest) + // @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.AreaOfInterest) if (&from == this) return; Clear(); MergeFrom(from); } -bool AreaOfInterest::IsInitialized() const { - return true; -} -void AreaOfInterest::InternalSwap(AreaOfInterest* other) { - using std::swap; +void AreaOfInterest::InternalSwap(AreaOfInterest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(AreaOfInterest, threshold_) - + sizeof(AreaOfInterest::threshold_) - - PROTOBUF_FIELD_OFFSET(AreaOfInterest, centerx_)>( - reinterpret_cast(¢erx_), - reinterpret_cast(&other->centerx_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(AreaOfInterest, _impl_.threshold_) + + sizeof(AreaOfInterest::_impl_.threshold_) + - PROTOBUF_FIELD_OFFSET(AreaOfInterest, _impl_.centerx_)>( + reinterpret_cast(&_impl_.centerx_), + reinterpret_cast(&other->_impl_.centerx_)); } -std::string AreaOfInterest::GetTypeName() const { - return "cielimMessage.AreaOfInterest"; -} - - // =================================================================== class CameraModel::_Internal { public: - static const ::cielimMessage::LensModel& lensmodel(const CameraModel* msg); - static const ::cielimMessage::SensorModel& sensormodel(const CameraModel* msg); - static const ::cielimMessage::AreaOfInterest& areaofinterest(const CameraModel* msg); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CameraModel, _impl_._has_bits_); }; -const ::cielimMessage::LensModel& -CameraModel::_Internal::lensmodel(const CameraModel* msg) { - return *msg->lensmodel_; -} -const ::cielimMessage::SensorModel& -CameraModel::_Internal::sensormodel(const CameraModel* msg) { - return *msg->sensormodel_; -} -const ::cielimMessage::AreaOfInterest& -CameraModel::_Internal::areaofinterest(const CameraModel* msg) { - return *msg->areaofinterest_; -} -CameraModel::CameraModel(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - camerapositioninbody_(arena), - bodyframetocameramrp_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +CameraModel::CameraModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, CameraModel_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:cielimMessage.CameraModel) } -CameraModel::CameraModel(const CameraModel& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - camerapositioninbody_(from.camerapositioninbody_), - bodyframetocameramrp_(from.bodyframetocameramrp_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - parentname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_parentname().empty()) { - parentname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_parentname(), - GetArenaForAllocation()); - } - if (from._internal_has_lensmodel()) { - lensmodel_ = new ::cielimMessage::LensModel(*from.lensmodel_); - } else { - lensmodel_ = nullptr; - } - if (from._internal_has_sensormodel()) { - sensormodel_ = new ::cielimMessage::SensorModel(*from.sensormodel_); - } else { - sensormodel_ = nullptr; - } - if (from._internal_has_areaofinterest()) { - areaofinterest_ = new ::cielimMessage::AreaOfInterest(*from.areaofinterest_); - } else { - areaofinterest_ = nullptr; - } - cameraid_ = from.cameraid_; +PROTOBUF_NDEBUG_INLINE CameraModel::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::cielimMessage::CameraModel& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + camerapositioninbody_{visibility, arena, from.camerapositioninbody_}, + bodyframetocameramrp_{visibility, arena, from.bodyframetocameramrp_}, + parentname_(arena, from.parentname_) {} + +CameraModel::CameraModel( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const CameraModel& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, CameraModel_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + CameraModel* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.lensmodel_ = (CheckHasBit(cached_has_bits, 0x00000008U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.lensmodel_) + : nullptr; + _impl_.sensormodel_ = (CheckHasBit(cached_has_bits, 0x00000010U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.sensormodel_) + : nullptr; + _impl_.areaofinterest_ = (CheckHasBit(cached_has_bits, 0x00000020U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.areaofinterest_) + : nullptr; + _impl_.cameraid_ = from._impl_.cameraid_; + // @@protoc_insertion_point(copy_constructor:cielimMessage.CameraModel) } - -void CameraModel::SharedCtor() { -parentname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&lensmodel_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&cameraid_) - - reinterpret_cast(&lensmodel_)) + sizeof(cameraid_)); +PROTOBUF_NDEBUG_INLINE CameraModel::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + camerapositioninbody_{visibility, arena}, + bodyframetocameramrp_{visibility, arena}, + parentname_(arena) {} + +inline void CameraModel::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, lensmodel_), + 0, + offsetof(Impl_, cameraid_) - + offsetof(Impl_, lensmodel_) + + sizeof(Impl_::cameraid_)); } - CameraModel::~CameraModel() { // @@protoc_insertion_point(destructor:cielimMessage.CameraModel) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void CameraModel::SharedDtor(MessageLite& self) { + CameraModel& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.parentname_.Destroy(); + delete this_._impl_.lensmodel_; + delete this_._impl_.sensormodel_; + delete this_._impl_.areaofinterest_; + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL CameraModel::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) CameraModel(arena); +} +constexpr auto CameraModel::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(CameraModel, _impl_.camerapositioninbody_) + + decltype(CameraModel::_impl_.camerapositioninbody_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + PROTOBUF_FIELD_OFFSET(CameraModel, _impl_.bodyframetocameramrp_) + + decltype(CameraModel::_impl_.bodyframetocameramrp_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(CameraModel), alignof(CameraModel), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&CameraModel::PlacementNew_, + sizeof(CameraModel), + alignof(CameraModel)); + } +} +constexpr auto CameraModel::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<26>{ + { + &_CameraModel_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CameraModel::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CameraModel::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &CameraModel::ByteSizeLong, + &CameraModel::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CameraModel, _impl_._cached_size_), + true, + }, + "cielimMessage.CameraModel", + }; } -inline void CameraModel::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - parentname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete lensmodel_; - if (this != internal_default_instance()) delete sensormodel_; - if (this != internal_default_instance()) delete areaofinterest_; -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<26> CameraModel_class_data_ = + CameraModel::InternalGenerateClassData_(); -void CameraModel::ArenaDtor(void* object) { - CameraModel* _this = reinterpret_cast< CameraModel* >(object); - (void)_this; +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +CameraModel::GetClassData() const { + return CameraModel_class_data_.base(); } -void CameraModel::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void CameraModel::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void CameraModel::Clear() { +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 7, 3, 44, 2> +CameraModel::_table_ = { + { + PROTOBUF_FIELD_OFFSET(CameraModel, _impl_._has_bits_), + 0, // no _extensions_ + 7, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967168, // skipmap + offsetof(decltype(_table_), field_entries), + 7, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + CameraModel_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::cielimMessage::CameraModel>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // int64 cameraId = 1; + {::_pbi::TcParser::FastV64S1, + {8, 6, 0, + PROTOBUF_FIELD_OFFSET(CameraModel, _impl_.cameraid_)}}, + // string parentName = 2; + {::_pbi::TcParser::FastUS1, + {18, 2, 0, + PROTOBUF_FIELD_OFFSET(CameraModel, _impl_.parentname_)}}, + // repeated double cameraPositionInBody = 3; + {::_pbi::TcParser::FastF64P1, + {26, 0, 0, + PROTOBUF_FIELD_OFFSET(CameraModel, _impl_.camerapositioninbody_)}}, + // repeated double bodyFrameToCameraMrp = 4; + {::_pbi::TcParser::FastF64P1, + {34, 1, 0, + PROTOBUF_FIELD_OFFSET(CameraModel, _impl_.bodyframetocameramrp_)}}, + // .cielimMessage.LensModel lensModel = 5; + {::_pbi::TcParser::FastMtS1, + {42, 3, 0, + PROTOBUF_FIELD_OFFSET(CameraModel, _impl_.lensmodel_)}}, + // .cielimMessage.SensorModel sensorModel = 6; + {::_pbi::TcParser::FastMtS1, + {50, 4, 1, + PROTOBUF_FIELD_OFFSET(CameraModel, _impl_.sensormodel_)}}, + // .cielimMessage.AreaOfInterest areaOfInterest = 7; + {::_pbi::TcParser::FastMtS1, + {58, 5, 2, + PROTOBUF_FIELD_OFFSET(CameraModel, _impl_.areaofinterest_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // int64 cameraId = 1; + {PROTOBUF_FIELD_OFFSET(CameraModel, _impl_.cameraid_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // string parentName = 2; + {PROTOBUF_FIELD_OFFSET(CameraModel, _impl_.parentname_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated double cameraPositionInBody = 3; + {PROTOBUF_FIELD_OFFSET(CameraModel, _impl_.camerapositioninbody_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, + // repeated double bodyFrameToCameraMrp = 4; + {PROTOBUF_FIELD_OFFSET(CameraModel, _impl_.bodyframetocameramrp_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, + // .cielimMessage.LensModel lensModel = 5; + {PROTOBUF_FIELD_OFFSET(CameraModel, _impl_.lensmodel_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .cielimMessage.SensorModel sensorModel = 6; + {PROTOBUF_FIELD_OFFSET(CameraModel, _impl_.sensormodel_), _Internal::kHasBitsOffset + 4, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .cielimMessage.AreaOfInterest areaOfInterest = 7; + {PROTOBUF_FIELD_OFFSET(CameraModel, _impl_.areaofinterest_), _Internal::kHasBitsOffset + 5, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::cielimMessage::LensModel>()}, + {::_pbi::TcParser::GetTable<::cielimMessage::SensorModel>()}, + {::_pbi::TcParser::GetTable<::cielimMessage::AreaOfInterest>()}, + }}, + {{ + "\31\0\12\0\0\0\0\0" + "cielimMessage.CameraModel" + "parentName" + }}, +}; +PROTOBUF_NOINLINE void CameraModel::Clear() { // @@protoc_insertion_point(message_clear_start:cielimMessage.CameraModel) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - camerapositioninbody_.Clear(); - bodyframetocameramrp_.Clear(); - parentname_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && lensmodel_ != nullptr) { - delete lensmodel_; - } - lensmodel_ = nullptr; - if (GetArenaForAllocation() == nullptr && sensormodel_ != nullptr) { - delete sensormodel_; - } - sensormodel_ = nullptr; - if (GetArenaForAllocation() == nullptr && areaofinterest_ != nullptr) { - delete areaofinterest_; - } - areaofinterest_ = nullptr; - cameraid_ = int64_t{0}; - _internal_metadata_.Clear(); -} - -const char* CameraModel::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // int64 cameraId = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - cameraid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // string parentName = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_parentname(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, nullptr)); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated double cameraPositionInBody = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_camerapositioninbody(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25) { - _internal_add_camerapositioninbody(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // repeated double bodyFrameToCameraMrp = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_bodyframetocameramrp(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33) { - _internal_add_bodyframetocameramrp(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // .cielimMessage.LensModel lensModel = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_lensmodel(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .cielimMessage.SensorModel sensorModel = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_sensormodel(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .cielimMessage.AreaOfInterest areaOfInterest = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { - ptr = ctx->ParseMessage(_internal_mutable_areaofinterest(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* CameraModel::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.camerapositioninbody_.Clear(); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _impl_.bodyframetocameramrp_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.parentname_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(_impl_.lensmodel_ != nullptr); + _impl_.lensmodel_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + ABSL_DCHECK(_impl_.sensormodel_ != nullptr); + _impl_.sensormodel_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + ABSL_DCHECK(_impl_.areaofinterest_ != nullptr); + _impl_.areaofinterest_->Clear(); + } + } + _impl_.cameraid_ = ::int64_t{0}; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL CameraModel::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const CameraModel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL CameraModel::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const CameraModel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:cielimMessage.CameraModel) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // int64 cameraId = 1; - if (this->_internal_cameraid() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_cameraid(), target); + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_cameraid() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( + stream, this_._internal_cameraid(), target); + } } // string parentName = 2; - if (!this->_internal_parentname().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_parentname().data(), static_cast(this->_internal_parentname().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "cielimMessage.CameraModel.parentName"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_parentname(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_parentname().empty()) { + const ::std::string& _s = this_._internal_parentname(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "cielimMessage.CameraModel.parentName"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } } // repeated double cameraPositionInBody = 3; - if (this->_internal_camerapositioninbody_size() > 0) { - target = stream->WriteFixedPacked(3, _internal_camerapositioninbody(), target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + if (this_._internal_camerapositioninbody_size() > 0) { + target = stream->WriteFixedPacked(3, this_._internal_camerapositioninbody(), target); + } } // repeated double bodyFrameToCameraMrp = 4; - if (this->_internal_bodyframetocameramrp_size() > 0) { - target = stream->WriteFixedPacked(4, _internal_bodyframetocameramrp(), target); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + if (this_._internal_bodyframetocameramrp_size() > 0) { + target = stream->WriteFixedPacked(4, this_._internal_bodyframetocameramrp(), target); + } } // .cielimMessage.LensModel lensModel = 5; - if (this->_internal_has_lensmodel()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::lensmodel(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, *this_._impl_.lensmodel_, this_._impl_.lensmodel_->GetCachedSize(), target, + stream); } // .cielimMessage.SensorModel sensorModel = 6; - if (this->_internal_has_sensormodel()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::sensormodel(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *this_._impl_.sensormodel_, this_._impl_.sensormodel_->GetCachedSize(), target, + stream); } // .cielimMessage.AreaOfInterest areaOfInterest = 7; - if (this->_internal_has_areaofinterest()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 7, _Internal::areaofinterest(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 7, *this_._impl_.areaofinterest_, this_._impl_.areaofinterest_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:cielimMessage.CameraModel) return target; } -size_t CameraModel::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:cielimMessage.CameraModel) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t CameraModel::ByteSizeLong(const MessageLite& base) { + const CameraModel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t CameraModel::ByteSizeLong() const { + const CameraModel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:cielimMessage.CameraModel) + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated double cameraPositionInBody = 3; - { - unsigned int count = static_cast(this->_internal_camerapositioninbody_size()); - size_t data_size = 8UL * count; - if (data_size > 0) { + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { + // repeated double cameraPositionInBody = 3; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + ::size_t data_size = ::size_t{8} * + ::_pbi::FromIntSize(this_._internal_camerapositioninbody_size()); + ::size_t tag_size = data_size == 0 + ? 0 + : 1 + ::_pbi::WireFormatLite::Int32Size( + static_cast<::int32_t>(data_size)); + total_size += tag_size + data_size; + } + // repeated double bodyFrameToCameraMrp = 4; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + ::size_t data_size = ::size_t{8} * + ::_pbi::FromIntSize(this_._internal_bodyframetocameramrp_size()); + ::size_t tag_size = data_size == 0 + ? 0 + : 1 + ::_pbi::WireFormatLite::Int32Size( + static_cast<::int32_t>(data_size)); + total_size += tag_size + data_size; + } + // string parentName = 2; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_parentname().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_parentname()); + } + } + // .cielimMessage.LensModel lensModel = 5; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.lensmodel_); } - total_size += data_size; - } - - // repeated double bodyFrameToCameraMrp = 4; - { - unsigned int count = static_cast(this->_internal_bodyframetocameramrp_size()); - size_t data_size = 8UL * count; - if (data_size > 0) { + // .cielimMessage.SensorModel sensorModel = 6; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.sensormodel_); + } + // .cielimMessage.AreaOfInterest areaOfInterest = 7; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.areaofinterest_); + } + // int64 cameraId = 1; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_cameraid() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_cameraid()); + } } - total_size += data_size; - } - - // string parentName = 2; - if (!this->_internal_parentname().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_parentname()); - } - - // .cielimMessage.LensModel lensModel = 5; - if (this->_internal_has_lensmodel()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *lensmodel_); - } - - // .cielimMessage.SensorModel sensorModel = 6; - if (this->_internal_has_sensormodel()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *sensormodel_); - } - - // .cielimMessage.AreaOfInterest areaOfInterest = 7; - if (this->_internal_has_areaofinterest()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *areaofinterest_); - } - - // int64 cameraId = 1; - if (this->_internal_cameraid() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_cameraid()); } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void CameraModel::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void CameraModel::MergeFrom(const CameraModel& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.CameraModel) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - camerapositioninbody_.MergeFrom(from.camerapositioninbody_); - bodyframetocameramrp_.MergeFrom(from.bodyframetocameramrp_); - if (!from._internal_parentname().empty()) { - _internal_set_parentname(from._internal_parentname()); - } - if (from._internal_has_lensmodel()) { - _internal_mutable_lensmodel()->::cielimMessage::LensModel::MergeFrom(from._internal_lensmodel()); - } - if (from._internal_has_sensormodel()) { - _internal_mutable_sensormodel()->::cielimMessage::SensorModel::MergeFrom(from._internal_sensormodel()); - } - if (from._internal_has_areaofinterest()) { - _internal_mutable_areaofinterest()->::cielimMessage::AreaOfInterest::MergeFrom(from._internal_areaofinterest()); - } - if (from._internal_cameraid() != 0) { - _internal_set_cameraid(from._internal_cameraid()); +void CameraModel::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.CameraModel) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_camerapositioninbody()->MergeFrom(from._internal_camerapositioninbody()); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _this->_internal_mutable_bodyframetocameramrp()->MergeFrom(from._internal_bodyframetocameramrp()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!from._internal_parentname().empty()) { + _this->_internal_set_parentname(from._internal_parentname()); + } else { + if (_this->_impl_.parentname_.IsDefault()) { + _this->_internal_set_parentname(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(from._impl_.lensmodel_ != nullptr); + if (_this->_impl_.lensmodel_ == nullptr) { + _this->_impl_.lensmodel_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.lensmodel_); + } else { + _this->_impl_.lensmodel_->MergeFrom(*from._impl_.lensmodel_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + ABSL_DCHECK(from._impl_.sensormodel_ != nullptr); + if (_this->_impl_.sensormodel_ == nullptr) { + _this->_impl_.sensormodel_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.sensormodel_); + } else { + _this->_impl_.sensormodel_->MergeFrom(*from._impl_.sensormodel_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + ABSL_DCHECK(from._impl_.areaofinterest_ != nullptr); + if (_this->_impl_.areaofinterest_ == nullptr) { + _this->_impl_.areaofinterest_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.areaofinterest_); + } else { + _this->_impl_.areaofinterest_->MergeFrom(*from._impl_.areaofinterest_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (from._internal_cameraid() != 0) { + _this->_impl_.cameraid_ = from._impl_.cameraid_; + } + } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void CameraModel::CopyFrom(const CameraModel& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.CameraModel) + // @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.CameraModel) if (&from == this) return; Clear(); MergeFrom(from); } -bool CameraModel::IsInitialized() const { - return true; -} -void CameraModel::InternalSwap(CameraModel* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); +void CameraModel::InternalSwap(CameraModel* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - camerapositioninbody_.InternalSwap(&other->camerapositioninbody_); - bodyframetocameramrp_.InternalSwap(&other->bodyframetocameramrp_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &parentname_, lhs_arena, - &other->parentname_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(CameraModel, cameraid_) - + sizeof(CameraModel::cameraid_) - - PROTOBUF_FIELD_OFFSET(CameraModel, lensmodel_)>( - reinterpret_cast(&lensmodel_), - reinterpret_cast(&other->lensmodel_)); -} - -std::string CameraModel::GetTypeName() const { - return "cielimMessage.CameraModel"; + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.camerapositioninbody_.InternalSwap(&other->_impl_.camerapositioninbody_); + _impl_.bodyframetocameramrp_.InternalSwap(&other->_impl_.bodyframetocameramrp_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parentname_, &other->_impl_.parentname_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(CameraModel, _impl_.cameraid_) + + sizeof(CameraModel::_impl_.cameraid_) + - PROTOBUF_FIELD_OFFSET(CameraModel, _impl_.lensmodel_)>( + reinterpret_cast(&_impl_.lensmodel_), + reinterpret_cast(&other->_impl_.lensmodel_)); } - // =================================================================== class CielimMessage::_Internal { public: - static const ::cielimMessage::EpochDateTime& epoch(const CielimMessage* msg); - static const ::cielimMessage::TimeStamp& currenttime(const CielimMessage* msg); - static const ::cielimMessage::RenderingModel& renderparameters(const CielimMessage* msg); - static const ::cielimMessage::Spacecraft& spacecraft(const CielimMessage* msg); - static const ::cielimMessage::CameraModel& camera(const CielimMessage* msg); + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CielimMessage, _impl_._has_bits_); }; -const ::cielimMessage::EpochDateTime& -CielimMessage::_Internal::epoch(const CielimMessage* msg) { - return *msg->epoch_; -} -const ::cielimMessage::TimeStamp& -CielimMessage::_Internal::currenttime(const CielimMessage* msg) { - return *msg->currenttime_; -} -const ::cielimMessage::RenderingModel& -CielimMessage::_Internal::renderparameters(const CielimMessage* msg) { - return *msg->renderparameters_; -} -const ::cielimMessage::Spacecraft& -CielimMessage::_Internal::spacecraft(const CielimMessage* msg) { - return *msg->spacecraft_; -} -const ::cielimMessage::CameraModel& -CielimMessage::_Internal::camera(const CielimMessage* msg) { - return *msg->camera_; -} -CielimMessage::CielimMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - celestialbodies_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +CielimMessage::CielimMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, CielimMessage_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:cielimMessage.CielimMessage) } -CielimMessage::CielimMessage(const CielimMessage& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - celestialbodies_(from.celestialbodies_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_epoch()) { - epoch_ = new ::cielimMessage::EpochDateTime(*from.epoch_); - } else { - epoch_ = nullptr; - } - if (from._internal_has_currenttime()) { - currenttime_ = new ::cielimMessage::TimeStamp(*from.currenttime_); - } else { - currenttime_ = nullptr; - } - if (from._internal_has_renderparameters()) { - renderparameters_ = new ::cielimMessage::RenderingModel(*from.renderparameters_); - } else { - renderparameters_ = nullptr; - } - if (from._internal_has_spacecraft()) { - spacecraft_ = new ::cielimMessage::Spacecraft(*from.spacecraft_); - } else { - spacecraft_ = nullptr; - } - if (from._internal_has_camera()) { - camera_ = new ::cielimMessage::CameraModel(*from.camera_); - } else { - camera_ = nullptr; - } +PROTOBUF_NDEBUG_INLINE CielimMessage::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::cielimMessage::CielimMessage& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + celestialbodies_{visibility, arena, from.celestialbodies_} {} + +CielimMessage::CielimMessage( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const CielimMessage& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, CielimMessage_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + CielimMessage* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.epoch_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.epoch_) + : nullptr; + _impl_.currenttime_ = (CheckHasBit(cached_has_bits, 0x00000004U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.currenttime_) + : nullptr; + _impl_.renderparameters_ = (CheckHasBit(cached_has_bits, 0x00000008U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.renderparameters_) + : nullptr; + _impl_.spacecraft_ = (CheckHasBit(cached_has_bits, 0x00000010U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.spacecraft_) + : nullptr; + _impl_.camera_ = (CheckHasBit(cached_has_bits, 0x00000020U)) + ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.camera_) + : nullptr; + // @@protoc_insertion_point(copy_constructor:cielimMessage.CielimMessage) } - -void CielimMessage::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&epoch_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&camera_) - - reinterpret_cast(&epoch_)) + sizeof(camera_)); +PROTOBUF_NDEBUG_INLINE CielimMessage::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + celestialbodies_{visibility, arena} {} + +inline void CielimMessage::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, epoch_), + 0, + offsetof(Impl_, camera_) - + offsetof(Impl_, epoch_) + + sizeof(Impl_::camera_)); } - CielimMessage::~CielimMessage() { // @@protoc_insertion_point(destructor:cielimMessage.CielimMessage) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); +} +inline void CielimMessage::SharedDtor(MessageLite& self) { + CielimMessage& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.epoch_; + delete this_._impl_.currenttime_; + delete this_._impl_.renderparameters_; + delete this_._impl_.spacecraft_; + delete this_._impl_.camera_; + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL CielimMessage::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) CielimMessage(arena); +} +constexpr auto CielimMessage::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(CielimMessage, _impl_.celestialbodies_) + + decltype(CielimMessage::_impl_.celestialbodies_):: + InternalGetArenaOffset( + ::google::protobuf::MessageLite::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(CielimMessage), alignof(CielimMessage), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&CielimMessage::PlacementNew_, + sizeof(CielimMessage), + alignof(CielimMessage)); + } +} +constexpr auto CielimMessage::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<28>{ + { + &_CielimMessage_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CielimMessage::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CielimMessage::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &CielimMessage::ByteSizeLong, + &CielimMessage::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CielimMessage, _impl_._cached_size_), + true, + }, + "cielimMessage.CielimMessage", + }; } -inline void CielimMessage::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete epoch_; - if (this != internal_default_instance()) delete currenttime_; - if (this != internal_default_instance()) delete renderparameters_; - if (this != internal_default_instance()) delete spacecraft_; - if (this != internal_default_instance()) delete camera_; -} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<28> CielimMessage_class_data_ = + CielimMessage::InternalGenerateClassData_(); -void CielimMessage::ArenaDtor(void* object) { - CielimMessage* _this = reinterpret_cast< CielimMessage* >(object); - (void)_this; -} -void CielimMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +CielimMessage::GetClassData() const { + return CielimMessage_class_data_.base(); } -void CielimMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void CielimMessage::Clear() { +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 6, 6, 0, 2> +CielimMessage::_table_ = { + { + PROTOBUF_FIELD_OFFSET(CielimMessage, _impl_._has_bits_), + 0, // no _extensions_ + 6, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967232, // skipmap + offsetof(decltype(_table_), field_entries), + 6, // num_field_entries + 6, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + CielimMessage_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::cielimMessage::CielimMessage>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // .cielimMessage.EpochDateTime epoch = 1; + {::_pbi::TcParser::FastMtS1, + {10, 1, 0, + PROTOBUF_FIELD_OFFSET(CielimMessage, _impl_.epoch_)}}, + // .cielimMessage.TimeStamp currentTime = 2; + {::_pbi::TcParser::FastMtS1, + {18, 2, 1, + PROTOBUF_FIELD_OFFSET(CielimMessage, _impl_.currenttime_)}}, + // .cielimMessage.RenderingModel renderParameters = 3; + {::_pbi::TcParser::FastMtS1, + {26, 3, 2, + PROTOBUF_FIELD_OFFSET(CielimMessage, _impl_.renderparameters_)}}, + // repeated .cielimMessage.CelestialBody celestialBodies = 4; + {::_pbi::TcParser::FastMtR1, + {34, 0, 3, + PROTOBUF_FIELD_OFFSET(CielimMessage, _impl_.celestialbodies_)}}, + // .cielimMessage.Spacecraft spacecraft = 5; + {::_pbi::TcParser::FastMtS1, + {42, 4, 4, + PROTOBUF_FIELD_OFFSET(CielimMessage, _impl_.spacecraft_)}}, + // .cielimMessage.CameraModel camera = 6; + {::_pbi::TcParser::FastMtS1, + {50, 5, 5, + PROTOBUF_FIELD_OFFSET(CielimMessage, _impl_.camera_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // .cielimMessage.EpochDateTime epoch = 1; + {PROTOBUF_FIELD_OFFSET(CielimMessage, _impl_.epoch_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .cielimMessage.TimeStamp currentTime = 2; + {PROTOBUF_FIELD_OFFSET(CielimMessage, _impl_.currenttime_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .cielimMessage.RenderingModel renderParameters = 3; + {PROTOBUF_FIELD_OFFSET(CielimMessage, _impl_.renderparameters_), _Internal::kHasBitsOffset + 3, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .cielimMessage.CelestialBody celestialBodies = 4; + {PROTOBUF_FIELD_OFFSET(CielimMessage, _impl_.celestialbodies_), _Internal::kHasBitsOffset + 0, 3, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // .cielimMessage.Spacecraft spacecraft = 5; + {PROTOBUF_FIELD_OFFSET(CielimMessage, _impl_.spacecraft_), _Internal::kHasBitsOffset + 4, 4, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .cielimMessage.CameraModel camera = 6; + {PROTOBUF_FIELD_OFFSET(CielimMessage, _impl_.camera_), _Internal::kHasBitsOffset + 5, 5, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::cielimMessage::EpochDateTime>()}, + {::_pbi::TcParser::GetTable<::cielimMessage::TimeStamp>()}, + {::_pbi::TcParser::GetTable<::cielimMessage::RenderingModel>()}, + {::_pbi::TcParser::GetTable<::cielimMessage::CelestialBody>()}, + {::_pbi::TcParser::GetTable<::cielimMessage::Spacecraft>()}, + {::_pbi::TcParser::GetTable<::cielimMessage::CameraModel>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void CielimMessage::Clear() { // @@protoc_insertion_point(message_clear_start:cielimMessage.CielimMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - celestialbodies_.Clear(); - if (GetArenaForAllocation() == nullptr && epoch_ != nullptr) { - delete epoch_; - } - epoch_ = nullptr; - if (GetArenaForAllocation() == nullptr && currenttime_ != nullptr) { - delete currenttime_; - } - currenttime_ = nullptr; - if (GetArenaForAllocation() == nullptr && renderparameters_ != nullptr) { - delete renderparameters_; - } - renderparameters_ = nullptr; - if (GetArenaForAllocation() == nullptr && spacecraft_ != nullptr) { - delete spacecraft_; - } - spacecraft_ = nullptr; - if (GetArenaForAllocation() == nullptr && camera_ != nullptr) { - delete camera_; - } - camera_ = nullptr; - _internal_metadata_.Clear(); -} - -const char* CielimMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .cielimMessage.EpochDateTime epoch = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_epoch(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .cielimMessage.TimeStamp currentTime = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_currenttime(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .cielimMessage.RenderingModel renderParameters = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_renderparameters(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .cielimMessage.CelestialBody celestialBodies = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_celestialbodies(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else - goto handle_unusual; - continue; - // .cielimMessage.Spacecraft spacecraft = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_spacecraft(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .cielimMessage.CameraModel camera = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_camera(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* CielimMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.celestialbodies_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.epoch_ != nullptr); + _impl_.epoch_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(_impl_.currenttime_ != nullptr); + _impl_.currenttime_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(_impl_.renderparameters_ != nullptr); + _impl_.renderparameters_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + ABSL_DCHECK(_impl_.spacecraft_ != nullptr); + _impl_.spacecraft_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + ABSL_DCHECK(_impl_.camera_ != nullptr); + _impl_.camera_->Clear(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL CielimMessage::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const CielimMessage& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL CielimMessage::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const CielimMessage& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:cielimMessage.CielimMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // .cielimMessage.EpochDateTime epoch = 1; - if (this->_internal_has_epoch()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::epoch(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.epoch_, this_._impl_.epoch_->GetCachedSize(), target, + stream); } // .cielimMessage.TimeStamp currentTime = 2; - if (this->_internal_has_currenttime()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::currenttime(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.currenttime_, this_._impl_.currenttime_->GetCachedSize(), target, + stream); } // .cielimMessage.RenderingModel renderParameters = 3; - if (this->_internal_has_renderparameters()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::renderparameters(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.renderparameters_, this_._impl_.renderparameters_->GetCachedSize(), target, + stream); } // repeated .cielimMessage.CelestialBody celestialBodies = 4; - for (unsigned int i = 0, - n = static_cast(this->_internal_celestialbodies_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, this->_internal_celestialbodies(i), target, stream); + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + for (unsigned i = 0, n = static_cast( + this_._internal_celestialbodies_size()); + i < n; i++) { + const auto& repfield = this_._internal_celestialbodies().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, repfield, repfield.GetCachedSize(), + target, stream); + } } // .cielimMessage.Spacecraft spacecraft = 5; - if (this->_internal_has_spacecraft()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::spacecraft(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, *this_._impl_.spacecraft_, this_._impl_.spacecraft_->GetCachedSize(), target, + stream); } // .cielimMessage.CameraModel camera = 6; - if (this->_internal_has_camera()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::camera(this), target, stream); + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *this_._impl_.camera_, this_._impl_.camera_->GetCachedSize(), target, + stream); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:cielimMessage.CielimMessage) return target; } -size_t CielimMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:cielimMessage.CielimMessage) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t CielimMessage::ByteSizeLong(const MessageLite& base) { + const CielimMessage& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t CielimMessage::ByteSizeLong() const { + const CielimMessage& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:cielimMessage.CielimMessage) + ::size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .cielimMessage.CelestialBody celestialBodies = 4; - total_size += 1UL * this->_internal_celestialbodies_size(); - for (const auto& msg : this->celestialbodies_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // .cielimMessage.EpochDateTime epoch = 1; - if (this->_internal_has_epoch()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *epoch_); - } - - // .cielimMessage.TimeStamp currentTime = 2; - if (this->_internal_has_currenttime()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *currenttime_); - } - - // .cielimMessage.RenderingModel renderParameters = 3; - if (this->_internal_has_renderparameters()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *renderparameters_); - } - - // .cielimMessage.Spacecraft spacecraft = 5; - if (this->_internal_has_spacecraft()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *spacecraft_); - } - - // .cielimMessage.CameraModel camera = 6; - if (this->_internal_has_camera()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *camera_); + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + // repeated .cielimMessage.CelestialBody celestialBodies = 4; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += 1UL * this_._internal_celestialbodies_size(); + for (const auto& msg : this_._internal_celestialbodies()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // .cielimMessage.EpochDateTime epoch = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.epoch_); + } + // .cielimMessage.TimeStamp currentTime = 2; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.currenttime_); + } + // .cielimMessage.RenderingModel renderParameters = 3; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.renderparameters_); + } + // .cielimMessage.Spacecraft spacecraft = 5; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.spacecraft_); + } + // .cielimMessage.CameraModel camera = 6; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_); + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void CielimMessage::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void CielimMessage::MergeFrom(const CielimMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.CielimMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - celestialbodies_.MergeFrom(from.celestialbodies_); - if (from._internal_has_epoch()) { - _internal_mutable_epoch()->::cielimMessage::EpochDateTime::MergeFrom(from._internal_epoch()); - } - if (from._internal_has_currenttime()) { - _internal_mutable_currenttime()->::cielimMessage::TimeStamp::MergeFrom(from._internal_currenttime()); - } - if (from._internal_has_renderparameters()) { - _internal_mutable_renderparameters()->::cielimMessage::RenderingModel::MergeFrom(from._internal_renderparameters()); - } - if (from._internal_has_spacecraft()) { - _internal_mutable_spacecraft()->::cielimMessage::Spacecraft::MergeFrom(from._internal_spacecraft()); - } - if (from._internal_has_camera()) { - _internal_mutable_camera()->::cielimMessage::CameraModel::MergeFrom(from._internal_camera()); +void CielimMessage::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:cielimMessage.CielimMessage) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_celestialbodies()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_celestialbodies()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.epoch_ != nullptr); + if (_this->_impl_.epoch_ == nullptr) { + _this->_impl_.epoch_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.epoch_); + } else { + _this->_impl_.epoch_->MergeFrom(*from._impl_.epoch_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + ABSL_DCHECK(from._impl_.currenttime_ != nullptr); + if (_this->_impl_.currenttime_ == nullptr) { + _this->_impl_.currenttime_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.currenttime_); + } else { + _this->_impl_.currenttime_->MergeFrom(*from._impl_.currenttime_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + ABSL_DCHECK(from._impl_.renderparameters_ != nullptr); + if (_this->_impl_.renderparameters_ == nullptr) { + _this->_impl_.renderparameters_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.renderparameters_); + } else { + _this->_impl_.renderparameters_->MergeFrom(*from._impl_.renderparameters_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + ABSL_DCHECK(from._impl_.spacecraft_ != nullptr); + if (_this->_impl_.spacecraft_ == nullptr) { + _this->_impl_.spacecraft_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.spacecraft_); + } else { + _this->_impl_.spacecraft_->MergeFrom(*from._impl_.spacecraft_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + ABSL_DCHECK(from._impl_.camera_ != nullptr); + if (_this->_impl_.camera_ == nullptr) { + _this->_impl_.camera_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.camera_); + } else { + _this->_impl_.camera_->MergeFrom(*from._impl_.camera_); + } + } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void CielimMessage::CopyFrom(const CielimMessage& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.CielimMessage) + // @@protoc_insertion_point(class_specific_copy_from_start:cielimMessage.CielimMessage) if (&from == this) return; Clear(); MergeFrom(from); } -bool CielimMessage::IsInitialized() const { - return true; -} -void CielimMessage::InternalSwap(CielimMessage* other) { - using std::swap; +void CielimMessage::InternalSwap(CielimMessage* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - celestialbodies_.InternalSwap(&other->celestialbodies_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(CielimMessage, camera_) - + sizeof(CielimMessage::camera_) - - PROTOBUF_FIELD_OFFSET(CielimMessage, epoch_)>( - reinterpret_cast(&epoch_), - reinterpret_cast(&other->epoch_)); -} - -std::string CielimMessage::GetTypeName() const { - return "cielimMessage.CielimMessage"; + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.celestialbodies_.InternalSwap(&other->_impl_.celestialbodies_); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(CielimMessage, _impl_.camera_) + + sizeof(CielimMessage::_impl_.camera_) + - PROTOBUF_FIELD_OFFSET(CielimMessage, _impl_.epoch_)>( + reinterpret_cast(&_impl_.epoch_), + reinterpret_cast(&other->_impl_.epoch_)); } - // @@protoc_insertion_point(namespace_scope) } // namespace cielimMessage -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::cielimMessage::TimeStamp* Arena::CreateMaybeMessage< ::cielimMessage::TimeStamp >(Arena* arena) { - return Arena::CreateMessageInternal< ::cielimMessage::TimeStamp >(arena); -} -template<> PROTOBUF_NOINLINE ::cielimMessage::EpochDateTime* Arena::CreateMaybeMessage< ::cielimMessage::EpochDateTime >(Arena* arena) { - return Arena::CreateMessageInternal< ::cielimMessage::EpochDateTime >(arena); -} -template<> PROTOBUF_NOINLINE ::cielimMessage::RenderingModel* Arena::CreateMaybeMessage< ::cielimMessage::RenderingModel >(Arena* arena) { - return Arena::CreateMessageInternal< ::cielimMessage::RenderingModel >(arena); -} -template<> PROTOBUF_NOINLINE ::cielimMessage::PerlinNoise* Arena::CreateMaybeMessage< ::cielimMessage::PerlinNoise >(Arena* arena) { - return Arena::CreateMessageInternal< ::cielimMessage::PerlinNoise >(arena); -} -template<> PROTOBUF_NOINLINE ::cielimMessage::ReflectanceModel* Arena::CreateMaybeMessage< ::cielimMessage::ReflectanceModel >(Arena* arena) { - return Arena::CreateMessageInternal< ::cielimMessage::ReflectanceModel >(arena); -} -template<> PROTOBUF_NOINLINE ::cielimMessage::MeshModel* Arena::CreateMaybeMessage< ::cielimMessage::MeshModel >(Arena* arena) { - return Arena::CreateMessageInternal< ::cielimMessage::MeshModel >(arena); -} -template<> PROTOBUF_NOINLINE ::cielimMessage::CelestialBody* Arena::CreateMaybeMessage< ::cielimMessage::CelestialBody >(Arena* arena) { - return Arena::CreateMessageInternal< ::cielimMessage::CelestialBody >(arena); -} -template<> PROTOBUF_NOINLINE ::cielimMessage::Spacecraft* Arena::CreateMaybeMessage< ::cielimMessage::Spacecraft >(Arena* arena) { - return Arena::CreateMessageInternal< ::cielimMessage::Spacecraft >(arena); -} -template<> PROTOBUF_NOINLINE ::cielimMessage::QuantumEfficiency* Arena::CreateMaybeMessage< ::cielimMessage::QuantumEfficiency >(Arena* arena) { - return Arena::CreateMessageInternal< ::cielimMessage::QuantumEfficiency >(arena); -} -template<> PROTOBUF_NOINLINE ::cielimMessage::LensModel* Arena::CreateMaybeMessage< ::cielimMessage::LensModel >(Arena* arena) { - return Arena::CreateMessageInternal< ::cielimMessage::LensModel >(arena); -} -template<> PROTOBUF_NOINLINE ::cielimMessage::SensorModel* Arena::CreateMaybeMessage< ::cielimMessage::SensorModel >(Arena* arena) { - return Arena::CreateMessageInternal< ::cielimMessage::SensorModel >(arena); -} -template<> PROTOBUF_NOINLINE ::cielimMessage::AreaOfInterest* Arena::CreateMaybeMessage< ::cielimMessage::AreaOfInterest >(Arena* arena) { - return Arena::CreateMessageInternal< ::cielimMessage::AreaOfInterest >(arena); -} -template<> PROTOBUF_NOINLINE ::cielimMessage::CameraModel* Arena::CreateMaybeMessage< ::cielimMessage::CameraModel >(Arena* arena) { - return Arena::CreateMessageInternal< ::cielimMessage::CameraModel >(arena); -} -template<> PROTOBUF_NOINLINE ::cielimMessage::CielimMessage* Arena::CreateMaybeMessage< ::cielimMessage::CielimMessage >(Arena* arena) { - return Arena::CreateMessageInternal< ::cielimMessage::CielimMessage >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" + +#pragma pop_macro("verify") +#pragma pop_macro("check") + +#if defined(_MSC_VER) +#pragma warning(pop) +#endif diff --git a/Source/cielim/Protobuf/cielimMessage.pb.h b/Source/cielim/Protobuf/cielimMessage.pb.h index 8c503bf6..41b24151 100644 --- a/Source/cielim/Protobuf/cielimMessage.pb.h +++ b/Source/cielim/Protobuf/cielimMessage.pb.h @@ -1,143 +1,158 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: cielimMessage.proto +// Protobuf C++ Version: 6.33.4 -#ifndef GOOGLE_PROTOBUF_INCLUDED_cielimMessage_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_cielimMessage_2eproto +#ifndef cielimMessage_2eproto_2epb_2eh +#define cielimMessage_2eproto_2epb_2eh + +#if defined(_MSC_VER) +#pragma warning(push) +#pragma warning(disable: 4458 4702 4800) +#endif + +#pragma push_macro("check") +#pragma push_macro("verify") + +#undef check +#undef verify #include #include - -#include -#if PROTOBUF_VERSION < 3018000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3018000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033004 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_cielimMessage_2eproto -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_cielimMessage_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[14] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; + static const ::uint32_t offsets[]; }; namespace cielimMessage { class AreaOfInterest; struct AreaOfInterestDefaultTypeInternal; extern AreaOfInterestDefaultTypeInternal _AreaOfInterest_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<29> AreaOfInterest_class_data_; class CameraModel; struct CameraModelDefaultTypeInternal; extern CameraModelDefaultTypeInternal _CameraModel_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<26> CameraModel_class_data_; class CelestialBody; struct CelestialBodyDefaultTypeInternal; extern CelestialBodyDefaultTypeInternal _CelestialBody_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<28> CelestialBody_class_data_; class CielimMessage; struct CielimMessageDefaultTypeInternal; extern CielimMessageDefaultTypeInternal _CielimMessage_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<28> CielimMessage_class_data_; class EpochDateTime; struct EpochDateTimeDefaultTypeInternal; extern EpochDateTimeDefaultTypeInternal _EpochDateTime_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<28> EpochDateTime_class_data_; class LensModel; struct LensModelDefaultTypeInternal; extern LensModelDefaultTypeInternal _LensModel_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<24> LensModel_class_data_; class MeshModel; struct MeshModelDefaultTypeInternal; extern MeshModelDefaultTypeInternal _MeshModel_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<24> MeshModel_class_data_; class PerlinNoise; struct PerlinNoiseDefaultTypeInternal; extern PerlinNoiseDefaultTypeInternal _PerlinNoise_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<26> PerlinNoise_class_data_; class QuantumEfficiency; struct QuantumEfficiencyDefaultTypeInternal; extern QuantumEfficiencyDefaultTypeInternal _QuantumEfficiency_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<32> QuantumEfficiency_class_data_; class ReflectanceModel; struct ReflectanceModelDefaultTypeInternal; extern ReflectanceModelDefaultTypeInternal _ReflectanceModel_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<31> ReflectanceModel_class_data_; class RenderingModel; struct RenderingModelDefaultTypeInternal; extern RenderingModelDefaultTypeInternal _RenderingModel_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<29> RenderingModel_class_data_; class SensorModel; struct SensorModelDefaultTypeInternal; extern SensorModelDefaultTypeInternal _SensorModel_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<26> SensorModel_class_data_; class Spacecraft; struct SpacecraftDefaultTypeInternal; extern SpacecraftDefaultTypeInternal _Spacecraft_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<25> Spacecraft_class_data_; class TimeStamp; struct TimeStampDefaultTypeInternal; extern TimeStampDefaultTypeInternal _TimeStamp_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<24> TimeStamp_class_data_; } // namespace cielimMessage -PROTOBUF_NAMESPACE_OPEN -template<> ::cielimMessage::AreaOfInterest* Arena::CreateMaybeMessage<::cielimMessage::AreaOfInterest>(Arena*); -template<> ::cielimMessage::CameraModel* Arena::CreateMaybeMessage<::cielimMessage::CameraModel>(Arena*); -template<> ::cielimMessage::CelestialBody* Arena::CreateMaybeMessage<::cielimMessage::CelestialBody>(Arena*); -template<> ::cielimMessage::CielimMessage* Arena::CreateMaybeMessage<::cielimMessage::CielimMessage>(Arena*); -template<> ::cielimMessage::EpochDateTime* Arena::CreateMaybeMessage<::cielimMessage::EpochDateTime>(Arena*); -template<> ::cielimMessage::LensModel* Arena::CreateMaybeMessage<::cielimMessage::LensModel>(Arena*); -template<> ::cielimMessage::MeshModel* Arena::CreateMaybeMessage<::cielimMessage::MeshModel>(Arena*); -template<> ::cielimMessage::PerlinNoise* Arena::CreateMaybeMessage<::cielimMessage::PerlinNoise>(Arena*); -template<> ::cielimMessage::QuantumEfficiency* Arena::CreateMaybeMessage<::cielimMessage::QuantumEfficiency>(Arena*); -template<> ::cielimMessage::ReflectanceModel* Arena::CreateMaybeMessage<::cielimMessage::ReflectanceModel>(Arena*); -template<> ::cielimMessage::RenderingModel* Arena::CreateMaybeMessage<::cielimMessage::RenderingModel>(Arena*); -template<> ::cielimMessage::SensorModel* Arena::CreateMaybeMessage<::cielimMessage::SensorModel>(Arena*); -template<> ::cielimMessage::Spacecraft* Arena::CreateMaybeMessage<::cielimMessage::Spacecraft>(Arena*); -template<> ::cielimMessage::TimeStamp* Arena::CreateMaybeMessage<::cielimMessage::TimeStamp>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace cielimMessage { // =================================================================== -class TimeStamp final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:cielimMessage.TimeStamp) */ { + +// ------------------------------------------------------------------- + +class TimeStamp final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:cielimMessage.TimeStamp) */ { public: inline TimeStamp() : TimeStamp(nullptr) {} - ~TimeStamp() override; - explicit constexpr TimeStamp(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~TimeStamp() PROTOBUF_FINAL; - TimeStamp(const TimeStamp& from); - TimeStamp(TimeStamp&& from) noexcept - : TimeStamp() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TimeStamp* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TimeStamp)); } +#endif + template + explicit PROTOBUF_CONSTEXPR TimeStamp(::google::protobuf::internal::ConstantInitialized); + + inline TimeStamp(const TimeStamp& from) : TimeStamp(nullptr, from) {} + inline TimeStamp(TimeStamp&& from) noexcept + : TimeStamp(nullptr, ::std::move(from)) {} inline TimeStamp& operator=(const TimeStamp& from) { CopyFrom(from); return *this; } inline TimeStamp& operator=(TimeStamp&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -145,138 +160,189 @@ class TimeStamp final : return *this; } - static const TimeStamp& default_instance() { - return *internal_default_instance(); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - static inline const TimeStamp* internal_default_instance() { - return reinterpret_cast( - &_TimeStamp_default_instance_); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static constexpr int kIndexInFileMessages = - 0; - friend void swap(TimeStamp& a, TimeStamp& b) { - a.Swap(&b); + static const TimeStamp& default_instance() { + return *reinterpret_cast( + &_TimeStamp_default_instance_); } - inline void Swap(TimeStamp* other) { + static constexpr int kIndexInFileMessages = 0; + friend void swap(TimeStamp& a, TimeStamp& b) { a.Swap(&b); } + inline void Swap(TimeStamp* PROTOBUF_NONNULL other) { if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TimeStamp* other) { + void UnsafeArenaSwap(TimeStamp* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline TimeStamp* New() const final { - return new TimeStamp(); - } - - TimeStamp* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + TimeStamp* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const TimeStamp& from); - void MergeFrom(const TimeStamp& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const TimeStamp& from) { TimeStamp::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(TimeStamp* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "cielimMessage.TimeStamp"; + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; } - protected: - explicit TimeStamp(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(TimeStamp* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "cielimMessage.TimeStamp"; } + + explicit TimeStamp(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + TimeStamp(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TimeStamp& from); + TimeStamp( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, TimeStamp&& from) noexcept + : TimeStamp(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); - std::string GetTypeName() const final; + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kFrameNumberFieldNumber = 1, kSimTimeElapsedFieldNumber = 2, }; // int64 frameNumber = 1; - void clear_framenumber(); - ::PROTOBUF_NAMESPACE_ID::int64 framenumber() const; - void set_framenumber(::PROTOBUF_NAMESPACE_ID::int64 value); + void clear_framenumber() ; + ::int64_t framenumber() const; + void set_framenumber(::int64_t value); + private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_framenumber() const; - void _internal_set_framenumber(::PROTOBUF_NAMESPACE_ID::int64 value); - public: + ::int64_t _internal_framenumber() const; + void _internal_set_framenumber(::int64_t value); + public: // double simTimeElapsed = 2; - void clear_simtimeelapsed(); + void clear_simtimeelapsed() ; double simtimeelapsed() const; void set_simtimeelapsed(double value); + private: double _internal_simtimeelapsed() const; void _internal_set_simtimeelapsed(double value); - public: + public: // @@protoc_insertion_point(class_scope:cielimMessage.TimeStamp) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::int64 framenumber_; - double simtimeelapsed_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const TimeStamp& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int64_t framenumber_; + double simtimeelapsed_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_cielimMessage_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<24> TimeStamp_class_data_; // ------------------------------------------------------------------- -class EpochDateTime final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:cielimMessage.EpochDateTime) */ { +class Spacecraft final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:cielimMessage.Spacecraft) */ { public: - inline EpochDateTime() : EpochDateTime(nullptr) {} - ~EpochDateTime() override; - explicit constexpr EpochDateTime(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline Spacecraft() : Spacecraft(nullptr) {} + ~Spacecraft() PROTOBUF_FINAL; - EpochDateTime(const EpochDateTime& from); - EpochDateTime(EpochDateTime&& from) noexcept - : EpochDateTime() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Spacecraft* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Spacecraft)); } +#endif - inline EpochDateTime& operator=(const EpochDateTime& from) { + template + explicit PROTOBUF_CONSTEXPR Spacecraft(::google::protobuf::internal::ConstantInitialized); + + inline Spacecraft(const Spacecraft& from) : Spacecraft(nullptr, from) {} + inline Spacecraft(Spacecraft&& from) noexcept + : Spacecraft(nullptr, ::std::move(from)) {} + inline Spacecraft& operator=(const Spacecraft& from) { CopyFrom(from); return *this; } - inline EpochDateTime& operator=(EpochDateTime&& from) noexcept { + inline Spacecraft& operator=(Spacecraft&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -284,182 +350,242 @@ class EpochDateTime final : return *this; } - static const EpochDateTime& default_instance() { - return *internal_default_instance(); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - static inline const EpochDateTime* internal_default_instance() { - return reinterpret_cast( - &_EpochDateTime_default_instance_); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static constexpr int kIndexInFileMessages = - 1; - friend void swap(EpochDateTime& a, EpochDateTime& b) { - a.Swap(&b); + static const Spacecraft& default_instance() { + return *reinterpret_cast( + &_Spacecraft_default_instance_); } - inline void Swap(EpochDateTime* other) { + static constexpr int kIndexInFileMessages = 7; + friend void swap(Spacecraft& a, Spacecraft& b) { a.Swap(&b); } + inline void Swap(Spacecraft* PROTOBUF_NONNULL other) { if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EpochDateTime* other) { + void UnsafeArenaSwap(Spacecraft* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline EpochDateTime* New() const final { - return new EpochDateTime(); + Spacecraft* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } + void CopyFrom(const Spacecraft& from); + void MergeFrom(const Spacecraft& from) { Spacecraft::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - EpochDateTime* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + public: + bool IsInitialized() const { + return true; } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const EpochDateTime& from); - void MergeFrom(const EpochDateTime& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(EpochDateTime* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "cielimMessage.EpochDateTime"; + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Spacecraft* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "cielimMessage.Spacecraft"; } + + explicit Spacecraft(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Spacecraft(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Spacecraft& from); + Spacecraft( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Spacecraft&& from) noexcept + : Spacecraft(arena) { + *this = ::std::move(from); } - protected: - explicit EpochDateTime(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); - std::string GetTypeName() const final; + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kYearFieldNumber = 1, - kMonthFieldNumber = 2, - kDayFieldNumber = 3, - kHoursFieldNumber = 4, - kSecondsFieldNumber = 6, - kMinutesFieldNumber = 5, + kPositionFieldNumber = 2, + kVelocityFieldNumber = 3, + kAttitudeFieldNumber = 4, + kSpacecraftNameFieldNumber = 1, }; - // int32 year = 1; - void clear_year(); - ::PROTOBUF_NAMESPACE_ID::int32 year() const; - void set_year(::PROTOBUF_NAMESPACE_ID::int32 value); + // repeated double position = 2; + int position_size() const; private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_year() const; - void _internal_set_year(::PROTOBUF_NAMESPACE_ID::int32 value); + int _internal_position_size() const; + public: + void clear_position() ; + double position(int index) const; + void set_position(int index, double value); + void add_position(double value); + const ::google::protobuf::RepeatedField& position() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_position(); - // int32 month = 2; - void clear_month(); - ::PROTOBUF_NAMESPACE_ID::int32 month() const; - void set_month(::PROTOBUF_NAMESPACE_ID::int32 value); private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_month() const; - void _internal_set_month(::PROTOBUF_NAMESPACE_ID::int32 value); - public: + const ::google::protobuf::RepeatedField& _internal_position() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_position(); - // int32 day = 3; - void clear_day(); - ::PROTOBUF_NAMESPACE_ID::int32 day() const; - void set_day(::PROTOBUF_NAMESPACE_ID::int32 value); + public: + // repeated double velocity = 3; + int velocity_size() const; private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_day() const; - void _internal_set_day(::PROTOBUF_NAMESPACE_ID::int32 value); + int _internal_velocity_size() const; + public: + void clear_velocity() ; + double velocity(int index) const; + void set_velocity(int index, double value); + void add_velocity(double value); + const ::google::protobuf::RepeatedField& velocity() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_velocity(); - // int32 hours = 4; - void clear_hours(); - ::PROTOBUF_NAMESPACE_ID::int32 hours() const; - void set_hours(::PROTOBUF_NAMESPACE_ID::int32 value); private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_hours() const; - void _internal_set_hours(::PROTOBUF_NAMESPACE_ID::int32 value); - public: + const ::google::protobuf::RepeatedField& _internal_velocity() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_velocity(); - // double seconds = 6; - void clear_seconds(); - double seconds() const; - void set_seconds(double value); + public: + // repeated double attitude = 4; + int attitude_size() const; private: - double _internal_seconds() const; - void _internal_set_seconds(double value); + int _internal_attitude_size() const; + public: + void clear_attitude() ; + double attitude(int index) const; + void set_attitude(int index, double value); + void add_attitude(double value); + const ::google::protobuf::RepeatedField& attitude() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_attitude(); - // int32 minutes = 5; - void clear_minutes(); - ::PROTOBUF_NAMESPACE_ID::int32 minutes() const; - void set_minutes(::PROTOBUF_NAMESPACE_ID::int32 value); private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_minutes() const; - void _internal_set_minutes(::PROTOBUF_NAMESPACE_ID::int32 value); + const ::google::protobuf::RepeatedField& _internal_attitude() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_attitude(); + public: + // string spacecraftName = 1; + void clear_spacecraftname() ; + const ::std::string& spacecraftname() const; + template + void set_spacecraftname(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_spacecraftname(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_spacecraftname(); + void set_allocated_spacecraftname(::std::string* PROTOBUF_NULLABLE value); - // @@protoc_insertion_point(class_scope:cielimMessage.EpochDateTime) + private: + const ::std::string& _internal_spacecraftname() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_spacecraftname(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_spacecraftname(); + + public: + // @@protoc_insertion_point(class_scope:cielimMessage.Spacecraft) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::int32 year_; - ::PROTOBUF_NAMESPACE_ID::int32 month_; - ::PROTOBUF_NAMESPACE_ID::int32 day_; - ::PROTOBUF_NAMESPACE_ID::int32 hours_; - double seconds_; - ::PROTOBUF_NAMESPACE_ID::int32 minutes_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 0, 47, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Spacecraft& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField position_; + ::google::protobuf::RepeatedField velocity_; + ::google::protobuf::RepeatedField attitude_; + ::google::protobuf::internal::ArenaStringPtr spacecraftname_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_cielimMessage_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<25> Spacecraft_class_data_; // ------------------------------------------------------------------- -class RenderingModel final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:cielimMessage.RenderingModel) */ { +class RenderingModel final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:cielimMessage.RenderingModel) */ { public: inline RenderingModel() : RenderingModel(nullptr) {} - ~RenderingModel() override; - explicit constexpr RenderingModel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~RenderingModel() PROTOBUF_FINAL; - RenderingModel(const RenderingModel& from); - RenderingModel(RenderingModel&& from) noexcept - : RenderingModel() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(RenderingModel* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(RenderingModel)); } +#endif + template + explicit PROTOBUF_CONSTEXPR RenderingModel(::google::protobuf::internal::ConstantInitialized); + + inline RenderingModel(const RenderingModel& from) : RenderingModel(nullptr, from) {} + inline RenderingModel(RenderingModel&& from) noexcept + : RenderingModel(nullptr, ::std::move(from)) {} inline RenderingModel& operator=(const RenderingModel& from) { CopyFrom(from); return *this; } inline RenderingModel& operator=(RenderingModel&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -467,78 +593,102 @@ class RenderingModel final : return *this; } - static const RenderingModel& default_instance() { - return *internal_default_instance(); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - static inline const RenderingModel* internal_default_instance() { - return reinterpret_cast( - &_RenderingModel_default_instance_); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static constexpr int kIndexInFileMessages = - 2; - friend void swap(RenderingModel& a, RenderingModel& b) { - a.Swap(&b); + static const RenderingModel& default_instance() { + return *reinterpret_cast( + &_RenderingModel_default_instance_); } - inline void Swap(RenderingModel* other) { + static constexpr int kIndexInFileMessages = 2; + friend void swap(RenderingModel& a, RenderingModel& b) { a.Swap(&b); } + inline void Swap(RenderingModel* PROTOBUF_NONNULL other) { if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RenderingModel* other) { + void UnsafeArenaSwap(RenderingModel* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline RenderingModel* New() const final { - return new RenderingModel(); - } - - RenderingModel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + RenderingModel* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const RenderingModel& from); - void MergeFrom(const RenderingModel& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const RenderingModel& from) { RenderingModel::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(RenderingModel* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "cielimMessage.RenderingModel"; + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; } - protected: - explicit RenderingModel(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(RenderingModel* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "cielimMessage.RenderingModel"; } + + explicit RenderingModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + RenderingModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RenderingModel& from); + RenderingModel( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RenderingModel&& from) noexcept + : RenderingModel(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); - std::string GetTypeName() const final; + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kRenderingFieldNumber = 7, kWavelength1FieldNumber = 1, @@ -550,126 +700,159 @@ class RenderingModel final : kEnableSmearFieldNumber = 8, }; // string rendering = 7; - void clear_rendering(); - const std::string& rendering() const; - template - void set_rendering(ArgT0&& arg0, ArgT... args); - std::string* mutable_rendering(); - PROTOBUF_MUST_USE_RESULT std::string* release_rendering(); - void set_allocated_rendering(std::string* rendering); + void clear_rendering() ; + const ::std::string& rendering() const; + template + void set_rendering(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_rendering(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_rendering(); + void set_allocated_rendering(::std::string* PROTOBUF_NULLABLE value); + private: - const std::string& _internal_rendering() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_rendering(const std::string& value); - std::string* _internal_mutable_rendering(); - public: + const ::std::string& _internal_rendering() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_rendering(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_rendering(); + public: // double wavelength1 = 1; - void clear_wavelength1(); + void clear_wavelength1() ; double wavelength1() const; void set_wavelength1(double value); + private: double _internal_wavelength1() const; void _internal_set_wavelength1(double value); - public: + public: // double wavelength2 = 2; - void clear_wavelength2(); + void clear_wavelength2() ; double wavelength2() const; void set_wavelength2(double value); + private: double _internal_wavelength2() const; void _internal_set_wavelength2(double value); - public: + public: // double wavelength3 = 3; - void clear_wavelength3(); + void clear_wavelength3() ; double wavelength3() const; void set_wavelength3(double value); + private: double _internal_wavelength3() const; void _internal_set_wavelength3(double value); - public: + public: // double cosmicRayStdDeviation = 4; - void clear_cosmicraystddeviation(); + void clear_cosmicraystddeviation() ; double cosmicraystddeviation() const; void set_cosmicraystddeviation(double value); + private: double _internal_cosmicraystddeviation() const; void _internal_set_cosmicraystddeviation(double value); - public: + public: // double strayLight = 5; - void clear_straylight(); + void clear_straylight() ; double straylight() const; void set_straylight(double value); + private: double _internal_straylight() const; void _internal_set_straylight(double value); - public: + public: // bool starField = 6; - void clear_starfield(); + void clear_starfield() ; bool starfield() const; void set_starfield(bool value); + private: bool _internal_starfield() const; void _internal_set_starfield(bool value); - public: + public: // bool enableSmear = 8; - void clear_enablesmear(); + void clear_enablesmear() ; bool enablesmear() const; void set_enablesmear(bool value); + private: bool _internal_enablesmear() const; void _internal_set_enablesmear(bool value); - public: + public: // @@protoc_insertion_point(class_scope:cielimMessage.RenderingModel) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr rendering_; - double wavelength1_; - double wavelength2_; - double wavelength3_; - double cosmicraystddeviation_; - double straylight_; - bool starfield_; - bool enablesmear_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 8, + 0, 54, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const RenderingModel& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr rendering_; + double wavelength1_; + double wavelength2_; + double wavelength3_; + double cosmicraystddeviation_; + double straylight_; + bool starfield_; + bool enablesmear_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_cielimMessage_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<29> RenderingModel_class_data_; // ------------------------------------------------------------------- -class PerlinNoise final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:cielimMessage.PerlinNoise) */ { +class ReflectanceModel final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:cielimMessage.ReflectanceModel) */ { public: - inline PerlinNoise() : PerlinNoise(nullptr) {} - ~PerlinNoise() override; - explicit constexpr PerlinNoise(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ReflectanceModel() : ReflectanceModel(nullptr) {} + ~ReflectanceModel() PROTOBUF_FINAL; - PerlinNoise(const PerlinNoise& from); - PerlinNoise(PerlinNoise&& from) noexcept - : PerlinNoise() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ReflectanceModel* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ReflectanceModel)); } +#endif - inline PerlinNoise& operator=(const PerlinNoise& from) { + template + explicit PROTOBUF_CONSTEXPR ReflectanceModel(::google::protobuf::internal::ConstantInitialized); + + inline ReflectanceModel(const ReflectanceModel& from) : ReflectanceModel(nullptr, from) {} + inline ReflectanceModel(ReflectanceModel&& from) noexcept + : ReflectanceModel(nullptr, ::std::move(from)) {} + inline ReflectanceModel& operator=(const ReflectanceModel& from) { CopyFrom(from); return *this; } - inline PerlinNoise& operator=(PerlinNoise&& from) noexcept { + inline ReflectanceModel& operator=(ReflectanceModel&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -677,160 +860,214 @@ class PerlinNoise final : return *this; } - static const PerlinNoise& default_instance() { - return *internal_default_instance(); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - static inline const PerlinNoise* internal_default_instance() { - return reinterpret_cast( - &_PerlinNoise_default_instance_); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static constexpr int kIndexInFileMessages = - 3; - friend void swap(PerlinNoise& a, PerlinNoise& b) { - a.Swap(&b); + static const ReflectanceModel& default_instance() { + return *reinterpret_cast( + &_ReflectanceModel_default_instance_); } - inline void Swap(PerlinNoise* other) { + static constexpr int kIndexInFileMessages = 4; + friend void swap(ReflectanceModel& a, ReflectanceModel& b) { a.Swap(&b); } + inline void Swap(ReflectanceModel* PROTOBUF_NONNULL other) { if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PerlinNoise* other) { + void UnsafeArenaSwap(ReflectanceModel* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline PerlinNoise* New() const final { - return new PerlinNoise(); + ReflectanceModel* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } + void CopyFrom(const ReflectanceModel& from); + void MergeFrom(const ReflectanceModel& from) { ReflectanceModel::MergeImpl(*this, from); } - PerlinNoise* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const PerlinNoise& from); - void MergeFrom(const PerlinNoise& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(PerlinNoise* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "cielimMessage.PerlinNoise"; + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ReflectanceModel* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "cielimMessage.ReflectanceModel"; } + + explicit ReflectanceModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ReflectanceModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ReflectanceModel& from); + ReflectanceModel( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ReflectanceModel&& from) noexcept + : ReflectanceModel(arena) { + *this = ::std::move(from); } - protected: - explicit PerlinNoise(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); - std::string GetTypeName() const final; + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kBaseFrequencyFieldNumber = 2, - kBaseAmplitudeFieldNumber = 3, - kPersistenceFieldNumber = 4, - kOctaveCountFieldNumber = 1, + kReflectanceParametersFieldNumber = 3, + kBrdfModelFieldNumber = 1, + kIsotropicScatteringFieldNumber = 2, }; - // double baseFrequency = 2; - void clear_basefrequency(); - double basefrequency() const; - void set_basefrequency(double value); + // repeated double reflectanceParameters = 3; + int reflectanceparameters_size() const; private: - double _internal_basefrequency() const; - void _internal_set_basefrequency(double value); + int _internal_reflectanceparameters_size() const; + public: + void clear_reflectanceparameters() ; + double reflectanceparameters(int index) const; + void set_reflectanceparameters(int index, double value); + void add_reflectanceparameters(double value); + const ::google::protobuf::RepeatedField& reflectanceparameters() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_reflectanceparameters(); - // double baseAmplitude = 3; - void clear_baseamplitude(); - double baseamplitude() const; - void set_baseamplitude(double value); private: - double _internal_baseamplitude() const; - void _internal_set_baseamplitude(double value); + const ::google::protobuf::RepeatedField& _internal_reflectanceparameters() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_reflectanceparameters(); + public: + // string brdfModel = 1; + void clear_brdfmodel() ; + const ::std::string& brdfmodel() const; + template + void set_brdfmodel(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_brdfmodel(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_brdfmodel(); + void set_allocated_brdfmodel(::std::string* PROTOBUF_NULLABLE value); - // double persistence = 4; - void clear_persistence(); - double persistence() const; - void set_persistence(double value); private: - double _internal_persistence() const; - void _internal_set_persistence(double value); + const ::std::string& _internal_brdfmodel() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_brdfmodel(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_brdfmodel(); + public: + // double isotropicScattering = 2; + void clear_isotropicscattering() ; + double isotropicscattering() const; + void set_isotropicscattering(double value); - // int32 octaveCount = 1; - void clear_octavecount(); - ::PROTOBUF_NAMESPACE_ID::int32 octavecount() const; - void set_octavecount(::PROTOBUF_NAMESPACE_ID::int32 value); private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_octavecount() const; - void _internal_set_octavecount(::PROTOBUF_NAMESPACE_ID::int32 value); - public: + double _internal_isotropicscattering() const; + void _internal_set_isotropicscattering(double value); - // @@protoc_insertion_point(class_scope:cielimMessage.PerlinNoise) + public: + // @@protoc_insertion_point(class_scope:cielimMessage.ReflectanceModel) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - double basefrequency_; - double baseamplitude_; - double persistence_; - ::PROTOBUF_NAMESPACE_ID::int32 octavecount_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 48, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ReflectanceModel& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField reflectanceparameters_; + ::google::protobuf::internal::ArenaStringPtr brdfmodel_; + double isotropicscattering_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_cielimMessage_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<31> ReflectanceModel_class_data_; // ------------------------------------------------------------------- -class ReflectanceModel final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:cielimMessage.ReflectanceModel) */ { +class QuantumEfficiency final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:cielimMessage.QuantumEfficiency) */ { public: - inline ReflectanceModel() : ReflectanceModel(nullptr) {} - ~ReflectanceModel() override; - explicit constexpr ReflectanceModel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline QuantumEfficiency() : QuantumEfficiency(nullptr) {} + ~QuantumEfficiency() PROTOBUF_FINAL; - ReflectanceModel(const ReflectanceModel& from); - ReflectanceModel(ReflectanceModel&& from) noexcept - : ReflectanceModel() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(QuantumEfficiency* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(QuantumEfficiency)); } +#endif - inline ReflectanceModel& operator=(const ReflectanceModel& from) { + template + explicit PROTOBUF_CONSTEXPR QuantumEfficiency(::google::protobuf::internal::ConstantInitialized); + + inline QuantumEfficiency(const QuantumEfficiency& from) : QuantumEfficiency(nullptr, from) {} + inline QuantumEfficiency(QuantumEfficiency&& from) noexcept + : QuantumEfficiency(nullptr, ::std::move(from)) {} + inline QuantumEfficiency& operator=(const QuantumEfficiency& from) { CopyFrom(from); return *this; } - inline ReflectanceModel& operator=(ReflectanceModel&& from) noexcept { + inline QuantumEfficiency& operator=(QuantumEfficiency&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -838,167 +1075,285 @@ class ReflectanceModel final : return *this; } - static const ReflectanceModel& default_instance() { - return *internal_default_instance(); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - static inline const ReflectanceModel* internal_default_instance() { - return reinterpret_cast( - &_ReflectanceModel_default_instance_); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static constexpr int kIndexInFileMessages = - 4; - friend void swap(ReflectanceModel& a, ReflectanceModel& b) { - a.Swap(&b); + static const QuantumEfficiency& default_instance() { + return *reinterpret_cast( + &_QuantumEfficiency_default_instance_); } - inline void Swap(ReflectanceModel* other) { + static constexpr int kIndexInFileMessages = 8; + friend void swap(QuantumEfficiency& a, QuantumEfficiency& b) { a.Swap(&b); } + inline void Swap(QuantumEfficiency* PROTOBUF_NONNULL other) { if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ReflectanceModel* other) { + void UnsafeArenaSwap(QuantumEfficiency* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline ReflectanceModel* New() const final { - return new ReflectanceModel(); - } - - ReflectanceModel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + QuantumEfficiency* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ReflectanceModel& from); - void MergeFrom(const ReflectanceModel& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + void CopyFrom(const QuantumEfficiency& from); + void MergeFrom(const QuantumEfficiency& from) { QuantumEfficiency::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ReflectanceModel* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "cielimMessage.ReflectanceModel"; + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; } - protected: - explicit ReflectanceModel(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(QuantumEfficiency* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "cielimMessage.QuantumEfficiency"; } + + explicit QuantumEfficiency(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + QuantumEfficiency(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const QuantumEfficiency& from); + QuantumEfficiency( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, QuantumEfficiency&& from) noexcept + : QuantumEfficiency(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); - std::string GetTypeName() const final; + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kReflectanceParametersFieldNumber = 3, - kBrdfModelFieldNumber = 1, - kIsotropicScatteringFieldNumber = 2, + kIntegrationWeightFactorFieldNumber = 1, + kRedValue1FieldNumber = 2, + kRedValue2FieldNumber = 3, + kRedValue3FieldNumber = 4, + kGreenValue1FieldNumber = 5, + kGreenValue2FieldNumber = 6, + kGreenValue3FieldNumber = 7, + kBlueValue1FieldNumber = 8, + kBlueValue2FieldNumber = 9, + kBlueValue3FieldNumber = 10, }; - // repeated double reflectanceParameters = 3; - int reflectanceparameters_size() const; + // double integrationWeightFactor = 1; + void clear_integrationweightfactor() ; + double integrationweightfactor() const; + void set_integrationweightfactor(double value); + private: - int _internal_reflectanceparameters_size() const; + double _internal_integrationweightfactor() const; + void _internal_set_integrationweightfactor(double value); + public: - void clear_reflectanceparameters(); + // double redValue1 = 2; + void clear_redvalue1() ; + double redvalue1() const; + void set_redvalue1(double value); + private: - double _internal_reflectanceparameters(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - _internal_reflectanceparameters() const; - void _internal_add_reflectanceparameters(double value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - _internal_mutable_reflectanceparameters(); + double _internal_redvalue1() const; + void _internal_set_redvalue1(double value); + public: - double reflectanceparameters(int index) const; - void set_reflectanceparameters(int index, double value); - void add_reflectanceparameters(double value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - reflectanceparameters() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - mutable_reflectanceparameters(); + // double redValue2 = 3; + void clear_redvalue2() ; + double redvalue2() const; + void set_redvalue2(double value); - // string brdfModel = 1; - void clear_brdfmodel(); - const std::string& brdfmodel() const; - template - void set_brdfmodel(ArgT0&& arg0, ArgT... args); - std::string* mutable_brdfmodel(); - PROTOBUF_MUST_USE_RESULT std::string* release_brdfmodel(); - void set_allocated_brdfmodel(std::string* brdfmodel); private: - const std::string& _internal_brdfmodel() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_brdfmodel(const std::string& value); - std::string* _internal_mutable_brdfmodel(); + double _internal_redvalue2() const; + void _internal_set_redvalue2(double value); + public: + // double redValue3 = 4; + void clear_redvalue3() ; + double redvalue3() const; + void set_redvalue3(double value); - // double isotropicScattering = 2; - void clear_isotropicscattering(); - double isotropicscattering() const; - void set_isotropicscattering(double value); private: - double _internal_isotropicscattering() const; - void _internal_set_isotropicscattering(double value); + double _internal_redvalue3() const; + void _internal_set_redvalue3(double value); + public: + // double greenValue1 = 5; + void clear_greenvalue1() ; + double greenvalue1() const; + void set_greenvalue1(double value); - // @@protoc_insertion_point(class_scope:cielimMessage.ReflectanceModel) + private: + double _internal_greenvalue1() const; + void _internal_set_greenvalue1(double value); + + public: + // double greenValue2 = 6; + void clear_greenvalue2() ; + double greenvalue2() const; + void set_greenvalue2(double value); + + private: + double _internal_greenvalue2() const; + void _internal_set_greenvalue2(double value); + + public: + // double greenValue3 = 7; + void clear_greenvalue3() ; + double greenvalue3() const; + void set_greenvalue3(double value); + + private: + double _internal_greenvalue3() const; + void _internal_set_greenvalue3(double value); + + public: + // double blueValue1 = 8; + void clear_bluevalue1() ; + double bluevalue1() const; + void set_bluevalue1(double value); + + private: + double _internal_bluevalue1() const; + void _internal_set_bluevalue1(double value); + + public: + // double blueValue2 = 9; + void clear_bluevalue2() ; + double bluevalue2() const; + void set_bluevalue2(double value); + + private: + double _internal_bluevalue2() const; + void _internal_set_bluevalue2(double value); + + public: + // double blueValue3 = 10; + void clear_bluevalue3() ; + double bluevalue3() const; + void set_bluevalue3(double value); + + private: + double _internal_bluevalue3() const; + void _internal_set_bluevalue3(double value); + + public: + // @@protoc_insertion_point(class_scope:cielimMessage.QuantumEfficiency) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > reflectanceparameters_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr brdfmodel_; - double isotropicscattering_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 10, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const QuantumEfficiency& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + double integrationweightfactor_; + double redvalue1_; + double redvalue2_; + double redvalue3_; + double greenvalue1_; + double greenvalue2_; + double greenvalue3_; + double bluevalue1_; + double bluevalue2_; + double bluevalue3_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_cielimMessage_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<32> QuantumEfficiency_class_data_; // ------------------------------------------------------------------- -class MeshModel final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:cielimMessage.MeshModel) */ { +class PerlinNoise final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:cielimMessage.PerlinNoise) */ { public: - inline MeshModel() : MeshModel(nullptr) {} - ~MeshModel() override; - explicit constexpr MeshModel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline PerlinNoise() : PerlinNoise(nullptr) {} + ~PerlinNoise() PROTOBUF_FINAL; - MeshModel(const MeshModel& from); - MeshModel(MeshModel&& from) noexcept - : MeshModel() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(PerlinNoise* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(PerlinNoise)); } +#endif - inline MeshModel& operator=(const MeshModel& from) { + template + explicit PROTOBUF_CONSTEXPR PerlinNoise(::google::protobuf::internal::ConstantInitialized); + + inline PerlinNoise(const PerlinNoise& from) : PerlinNoise(nullptr, from) {} + inline PerlinNoise(PerlinNoise&& from) noexcept + : PerlinNoise(nullptr, ::std::move(from)) {} + inline PerlinNoise& operator=(const PerlinNoise& from) { CopyFrom(from); return *this; } - inline MeshModel& operator=(MeshModel&& from) noexcept { + inline PerlinNoise& operator=(PerlinNoise&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1006,253 +1361,213 @@ class MeshModel final : return *this; } - static const MeshModel& default_instance() { - return *internal_default_instance(); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - static inline const MeshModel* internal_default_instance() { - return reinterpret_cast( - &_MeshModel_default_instance_); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static constexpr int kIndexInFileMessages = - 5; - friend void swap(MeshModel& a, MeshModel& b) { - a.Swap(&b); + static const PerlinNoise& default_instance() { + return *reinterpret_cast( + &_PerlinNoise_default_instance_); } - inline void Swap(MeshModel* other) { + static constexpr int kIndexInFileMessages = 3; + friend void swap(PerlinNoise& a, PerlinNoise& b) { a.Swap(&b); } + inline void Swap(PerlinNoise* PROTOBUF_NONNULL other) { if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(MeshModel* other) { + void UnsafeArenaSwap(PerlinNoise* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline MeshModel* New() const final { - return new MeshModel(); + PerlinNoise* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } + void CopyFrom(const PerlinNoise& from); + void MergeFrom(const PerlinNoise& from) { PerlinNoise::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - MeshModel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + public: + bool IsInitialized() const { + return true; } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const MeshModel& from); - void MergeFrom(const MeshModel& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(MeshModel* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "cielimMessage.MeshModel"; + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(PerlinNoise* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "cielimMessage.PerlinNoise"; } + + explicit PerlinNoise(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + PerlinNoise(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PerlinNoise& from); + PerlinNoise( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, PerlinNoise&& from) noexcept + : PerlinNoise(arena) { + *this = ::std::move(from); } - protected: - explicit MeshModel(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); - std::string GetTypeName() const final; + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPrincipalAxisDistortionFieldNumber = 4, - kInertialToBodyMrpFieldNumber = 5, - kShapeModelFieldNumber = 1, - kRefModelFieldNumber = 6, - kPerlinNoiseFieldNumber = 7, - kMeanRadiusFieldNumber = 2, - kGeometricAlbedoFieldNumber = 3, - kProceduralRocksFieldNumber = 8, + kBaseFrequencyFieldNumber = 2, + kBaseAmplitudeFieldNumber = 3, + kPersistenceFieldNumber = 4, + kOctaveCountFieldNumber = 1, }; - // repeated double principalAxisDistortion = 4; - int principalaxisdistortion_size() const; - private: - int _internal_principalaxisdistortion_size() const; - public: - void clear_principalaxisdistortion(); - private: - double _internal_principalaxisdistortion(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - _internal_principalaxisdistortion() const; - void _internal_add_principalaxisdistortion(double value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - _internal_mutable_principalaxisdistortion(); - public: - double principalaxisdistortion(int index) const; - void set_principalaxisdistortion(int index, double value); - void add_principalaxisdistortion(double value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - principalaxisdistortion() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - mutable_principalaxisdistortion(); + // double baseFrequency = 2; + void clear_basefrequency() ; + double basefrequency() const; + void set_basefrequency(double value); - // repeated double inertialToBodyMrp = 5; - int inertialtobodymrp_size() const; - private: - int _internal_inertialtobodymrp_size() const; - public: - void clear_inertialtobodymrp(); private: - double _internal_inertialtobodymrp(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - _internal_inertialtobodymrp() const; - void _internal_add_inertialtobodymrp(double value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - _internal_mutable_inertialtobodymrp(); - public: - double inertialtobodymrp(int index) const; - void set_inertialtobodymrp(int index, double value); - void add_inertialtobodymrp(double value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - inertialtobodymrp() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - mutable_inertialtobodymrp(); + double _internal_basefrequency() const; + void _internal_set_basefrequency(double value); - // string shapeModel = 1; - void clear_shapemodel(); - const std::string& shapemodel() const; - template - void set_shapemodel(ArgT0&& arg0, ArgT... args); - std::string* mutable_shapemodel(); - PROTOBUF_MUST_USE_RESULT std::string* release_shapemodel(); - void set_allocated_shapemodel(std::string* shapemodel); - private: - const std::string& _internal_shapemodel() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_shapemodel(const std::string& value); - std::string* _internal_mutable_shapemodel(); public: + // double baseAmplitude = 3; + void clear_baseamplitude() ; + double baseamplitude() const; + void set_baseamplitude(double value); - // .cielimMessage.ReflectanceModel refModel = 6; - bool has_refmodel() const; - private: - bool _internal_has_refmodel() const; - public: - void clear_refmodel(); - const ::cielimMessage::ReflectanceModel& refmodel() const; - PROTOBUF_MUST_USE_RESULT ::cielimMessage::ReflectanceModel* release_refmodel(); - ::cielimMessage::ReflectanceModel* mutable_refmodel(); - void set_allocated_refmodel(::cielimMessage::ReflectanceModel* refmodel); private: - const ::cielimMessage::ReflectanceModel& _internal_refmodel() const; - ::cielimMessage::ReflectanceModel* _internal_mutable_refmodel(); - public: - void unsafe_arena_set_allocated_refmodel( - ::cielimMessage::ReflectanceModel* refmodel); - ::cielimMessage::ReflectanceModel* unsafe_arena_release_refmodel(); + double _internal_baseamplitude() const; + void _internal_set_baseamplitude(double value); - // .cielimMessage.PerlinNoise perlinNoise = 7; - bool has_perlinnoise() const; - private: - bool _internal_has_perlinnoise() const; - public: - void clear_perlinnoise(); - const ::cielimMessage::PerlinNoise& perlinnoise() const; - PROTOBUF_MUST_USE_RESULT ::cielimMessage::PerlinNoise* release_perlinnoise(); - ::cielimMessage::PerlinNoise* mutable_perlinnoise(); - void set_allocated_perlinnoise(::cielimMessage::PerlinNoise* perlinnoise); - private: - const ::cielimMessage::PerlinNoise& _internal_perlinnoise() const; - ::cielimMessage::PerlinNoise* _internal_mutable_perlinnoise(); public: - void unsafe_arena_set_allocated_perlinnoise( - ::cielimMessage::PerlinNoise* perlinnoise); - ::cielimMessage::PerlinNoise* unsafe_arena_release_perlinnoise(); + // double persistence = 4; + void clear_persistence() ; + double persistence() const; + void set_persistence(double value); - // double meanRadius = 2; - void clear_meanradius(); - double meanradius() const; - void set_meanradius(double value); private: - double _internal_meanradius() const; - void _internal_set_meanradius(double value); - public: + double _internal_persistence() const; + void _internal_set_persistence(double value); - // double geometricAlbedo = 3; - void clear_geometricalbedo(); - double geometricalbedo() const; - void set_geometricalbedo(double value); - private: - double _internal_geometricalbedo() const; - void _internal_set_geometricalbedo(double value); public: + // int32 octaveCount = 1; + void clear_octavecount() ; + ::int32_t octavecount() const; + void set_octavecount(::int32_t value); - // double proceduralRocks = 8; - void clear_proceduralrocks(); - double proceduralrocks() const; - void set_proceduralrocks(double value); private: - double _internal_proceduralrocks() const; - void _internal_set_proceduralrocks(double value); - public: + ::int32_t _internal_octavecount() const; + void _internal_set_octavecount(::int32_t value); - // @@protoc_insertion_point(class_scope:cielimMessage.MeshModel) + public: + // @@protoc_insertion_point(class_scope:cielimMessage.PerlinNoise) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > principalaxisdistortion_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > inertialtobodymrp_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr shapemodel_; - ::cielimMessage::ReflectanceModel* refmodel_; - ::cielimMessage::PerlinNoise* perlinnoise_; - double meanradius_; - double geometricalbedo_; - double proceduralrocks_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const PerlinNoise& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + double basefrequency_; + double baseamplitude_; + double persistence_; + ::int32_t octavecount_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_cielimMessage_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<26> PerlinNoise_class_data_; // ------------------------------------------------------------------- -class CelestialBody final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:cielimMessage.CelestialBody) */ { +class LensModel final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:cielimMessage.LensModel) */ { public: - inline CelestialBody() : CelestialBody(nullptr) {} - ~CelestialBody() override; - explicit constexpr CelestialBody(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline LensModel() : LensModel(nullptr) {} + ~LensModel() PROTOBUF_FINAL; - CelestialBody(const CelestialBody& from); - CelestialBody(CelestialBody&& from) noexcept - : CelestialBody() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(LensModel* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(LensModel)); } +#endif - inline CelestialBody& operator=(const CelestialBody& from) { + template + explicit PROTOBUF_CONSTEXPR LensModel(::google::protobuf::internal::ConstantInitialized); + + inline LensModel(const LensModel& from) : LensModel(nullptr, from) {} + inline LensModel(LensModel&& from) noexcept + : LensModel(nullptr, ::std::move(from)) {} + inline LensModel& operator=(const LensModel& from) { CopyFrom(from); return *this; } - inline CelestialBody& operator=(CelestialBody&& from) noexcept { + inline LensModel& operator=(LensModel&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1260,235 +1575,293 @@ class CelestialBody final : return *this; } - static const CelestialBody& default_instance() { - return *internal_default_instance(); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - static inline const CelestialBody* internal_default_instance() { - return reinterpret_cast( - &_CelestialBody_default_instance_); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static constexpr int kIndexInFileMessages = - 6; - friend void swap(CelestialBody& a, CelestialBody& b) { - a.Swap(&b); + static const LensModel& default_instance() { + return *reinterpret_cast( + &_LensModel_default_instance_); } - inline void Swap(CelestialBody* other) { + static constexpr int kIndexInFileMessages = 9; + friend void swap(LensModel& a, LensModel& b) { a.Swap(&b); } + inline void Swap(LensModel* PROTOBUF_NONNULL other) { if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CelestialBody* other) { + void UnsafeArenaSwap(LensModel* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline CelestialBody* New() const final { - return new CelestialBody(); + LensModel* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } + void CopyFrom(const LensModel& from); + void MergeFrom(const LensModel& from) { LensModel::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - CelestialBody* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + public: + bool IsInitialized() const { + return true; } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const CelestialBody& from); - void MergeFrom(const CelestialBody& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(CelestialBody* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "cielimMessage.CelestialBody"; + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(LensModel* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "cielimMessage.LensModel"; } + + explicit LensModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + LensModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const LensModel& from); + LensModel( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, LensModel&& from) noexcept + : LensModel(arena) { + *this = ::std::move(from); } - protected: - explicit CelestialBody(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); - std::string GetTypeName() const final; + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPositionFieldNumber = 2, - kVelocityFieldNumber = 3, - kAttitudeFieldNumber = 4, - kBodyNameFieldNumber = 1, - kModelFieldNumber = 5, - kCentralBodyFieldNumber = 6, + kFieldOfViewFieldNumber = 1, + kHorizontalVignettingFieldNumber = 5, + kVerticalVignettingFieldNumber = 6, + kDistortionFieldNumber = 7, + kFocalLengthFieldNumber = 2, + kPointSpreadFunctionFieldNumber = 3, + kApertureRadiusFieldNumber = 4, + kTransmissionFieldNumber = 8, }; - // repeated double position = 2; - int position_size() const; + // repeated double fieldOfView = 1; + int fieldofview_size() const; private: - int _internal_position_size() const; + int _internal_fieldofview_size() const; + public: - void clear_position(); + void clear_fieldofview() ; + double fieldofview(int index) const; + void set_fieldofview(int index, double value); + void add_fieldofview(double value); + const ::google::protobuf::RepeatedField& fieldofview() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_fieldofview(); + private: - double _internal_position(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - _internal_position() const; - void _internal_add_position(double value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - _internal_mutable_position(); + const ::google::protobuf::RepeatedField& _internal_fieldofview() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_fieldofview(); + public: - double position(int index) const; - void set_position(int index, double value); - void add_position(double value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - position() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - mutable_position(); + // repeated double horizontalVignetting = 5; + int horizontalvignetting_size() const; + private: + int _internal_horizontalvignetting_size() const; + + public: + void clear_horizontalvignetting() ; + double horizontalvignetting(int index) const; + void set_horizontalvignetting(int index, double value); + void add_horizontalvignetting(double value); + const ::google::protobuf::RepeatedField& horizontalvignetting() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_horizontalvignetting(); - // repeated double velocity = 3; - int velocity_size() const; private: - int _internal_velocity_size() const; + const ::google::protobuf::RepeatedField& _internal_horizontalvignetting() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_horizontalvignetting(); + public: - void clear_velocity(); + // repeated double verticalVignetting = 6; + int verticalvignetting_size() const; private: - double _internal_velocity(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - _internal_velocity() const; - void _internal_add_velocity(double value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - _internal_mutable_velocity(); + int _internal_verticalvignetting_size() const; + public: - double velocity(int index) const; - void set_velocity(int index, double value); - void add_velocity(double value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - velocity() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - mutable_velocity(); + void clear_verticalvignetting() ; + double verticalvignetting(int index) const; + void set_verticalvignetting(int index, double value); + void add_verticalvignetting(double value); + const ::google::protobuf::RepeatedField& verticalvignetting() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_verticalvignetting(); - // repeated double attitude = 4; - int attitude_size() const; private: - int _internal_attitude_size() const; + const ::google::protobuf::RepeatedField& _internal_verticalvignetting() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_verticalvignetting(); + public: - void clear_attitude(); + // repeated double distortion = 7; + int distortion_size() const; private: - double _internal_attitude(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - _internal_attitude() const; - void _internal_add_attitude(double value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - _internal_mutable_attitude(); + int _internal_distortion_size() const; + public: - double attitude(int index) const; - void set_attitude(int index, double value); - void add_attitude(double value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - attitude() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - mutable_attitude(); + void clear_distortion() ; + double distortion(int index) const; + void set_distortion(int index, double value); + void add_distortion(double value); + const ::google::protobuf::RepeatedField& distortion() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_distortion(); - // string bodyName = 1; - void clear_bodyname(); - const std::string& bodyname() const; - template - void set_bodyname(ArgT0&& arg0, ArgT... args); - std::string* mutable_bodyname(); - PROTOBUF_MUST_USE_RESULT std::string* release_bodyname(); - void set_allocated_bodyname(std::string* bodyname); private: - const std::string& _internal_bodyname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_bodyname(const std::string& value); - std::string* _internal_mutable_bodyname(); + const ::google::protobuf::RepeatedField& _internal_distortion() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_distortion(); + public: + // double focalLength = 2; + void clear_focallength() ; + double focallength() const; + void set_focallength(double value); - // .cielimMessage.MeshModel model = 5; - bool has_model() const; private: - bool _internal_has_model() const; + double _internal_focallength() const; + void _internal_set_focallength(double value); + public: - void clear_model(); - const ::cielimMessage::MeshModel& model() const; - PROTOBUF_MUST_USE_RESULT ::cielimMessage::MeshModel* release_model(); - ::cielimMessage::MeshModel* mutable_model(); - void set_allocated_model(::cielimMessage::MeshModel* model); + // double pointSpreadFunction = 3; + void clear_pointspreadfunction() ; + double pointspreadfunction() const; + void set_pointspreadfunction(double value); + private: - const ::cielimMessage::MeshModel& _internal_model() const; - ::cielimMessage::MeshModel* _internal_mutable_model(); + double _internal_pointspreadfunction() const; + void _internal_set_pointspreadfunction(double value); + public: - void unsafe_arena_set_allocated_model( - ::cielimMessage::MeshModel* model); - ::cielimMessage::MeshModel* unsafe_arena_release_model(); + // double apertureRadius = 4; + void clear_apertureradius() ; + double apertureradius() const; + void set_apertureradius(double value); - // bool centralBody = 6; - void clear_centralbody(); - bool centralbody() const; - void set_centralbody(bool value); private: - bool _internal_centralbody() const; - void _internal_set_centralbody(bool value); + double _internal_apertureradius() const; + void _internal_set_apertureradius(double value); + public: + // double transmission = 8; + void clear_transmission() ; + double transmission() const; + void set_transmission(double value); - // @@protoc_insertion_point(class_scope:cielimMessage.CelestialBody) + private: + double _internal_transmission() const; + void _internal_set_transmission(double value); + + public: + // @@protoc_insertion_point(class_scope:cielimMessage.LensModel) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > position_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > velocity_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > attitude_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bodyname_; - ::cielimMessage::MeshModel* model_; - bool centralbody_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 8, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const LensModel& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField fieldofview_; + ::google::protobuf::RepeatedField horizontalvignetting_; + ::google::protobuf::RepeatedField verticalvignetting_; + ::google::protobuf::RepeatedField distortion_; + double focallength_; + double pointspreadfunction_; + double apertureradius_; + double transmission_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_cielimMessage_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<24> LensModel_class_data_; // ------------------------------------------------------------------- -class Spacecraft final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:cielimMessage.Spacecraft) */ { +class EpochDateTime final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:cielimMessage.EpochDateTime) */ { public: - inline Spacecraft() : Spacecraft(nullptr) {} - ~Spacecraft() override; - explicit constexpr Spacecraft(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline EpochDateTime() : EpochDateTime(nullptr) {} + ~EpochDateTime() PROTOBUF_FINAL; - Spacecraft(const Spacecraft& from); - Spacecraft(Spacecraft&& from) noexcept - : Spacecraft() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(EpochDateTime* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(EpochDateTime)); } +#endif - inline Spacecraft& operator=(const Spacecraft& from) { + template + explicit PROTOBUF_CONSTEXPR EpochDateTime(::google::protobuf::internal::ConstantInitialized); + + inline EpochDateTime(const EpochDateTime& from) : EpochDateTime(nullptr, from) {} + inline EpochDateTime(EpochDateTime&& from) noexcept + : EpochDateTime(nullptr, ::std::move(from)) {} + inline EpochDateTime& operator=(const EpochDateTime& from) { CopyFrom(from); return *this; } - inline Spacecraft& operator=(Spacecraft&& from) noexcept { + inline EpochDateTime& operator=(EpochDateTime&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1496,204 +1869,237 @@ class Spacecraft final : return *this; } - static const Spacecraft& default_instance() { - return *internal_default_instance(); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - static inline const Spacecraft* internal_default_instance() { - return reinterpret_cast( - &_Spacecraft_default_instance_); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static constexpr int kIndexInFileMessages = - 7; - friend void swap(Spacecraft& a, Spacecraft& b) { - a.Swap(&b); + static const EpochDateTime& default_instance() { + return *reinterpret_cast( + &_EpochDateTime_default_instance_); } - inline void Swap(Spacecraft* other) { + static constexpr int kIndexInFileMessages = 1; + friend void swap(EpochDateTime& a, EpochDateTime& b) { a.Swap(&b); } + inline void Swap(EpochDateTime* PROTOBUF_NONNULL other) { if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Spacecraft* other) { + void UnsafeArenaSwap(EpochDateTime* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline Spacecraft* New() const final { - return new Spacecraft(); + EpochDateTime* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } + void CopyFrom(const EpochDateTime& from); + void MergeFrom(const EpochDateTime& from) { EpochDateTime::MergeImpl(*this, from); } - Spacecraft* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const Spacecraft& from); - void MergeFrom(const Spacecraft& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Spacecraft* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "cielimMessage.Spacecraft"; + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(EpochDateTime* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "cielimMessage.EpochDateTime"; } + + explicit EpochDateTime(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + EpochDateTime(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const EpochDateTime& from); + EpochDateTime( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, EpochDateTime&& from) noexcept + : EpochDateTime(arena) { + *this = ::std::move(from); } - protected: - explicit Spacecraft(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); - std::string GetTypeName() const final; + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPositionFieldNumber = 2, - kVelocityFieldNumber = 3, - kAttitudeFieldNumber = 4, - kSpacecraftNameFieldNumber = 1, + kYearFieldNumber = 1, + kMonthFieldNumber = 2, + kDayFieldNumber = 3, + kHoursFieldNumber = 4, + kSecondsFieldNumber = 6, + kMinutesFieldNumber = 5, }; - // repeated double position = 2; - int position_size() const; - private: - int _internal_position_size() const; - public: - void clear_position(); + // int32 year = 1; + void clear_year() ; + ::int32_t year() const; + void set_year(::int32_t value); + private: - double _internal_position(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - _internal_position() const; - void _internal_add_position(double value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - _internal_mutable_position(); + ::int32_t _internal_year() const; + void _internal_set_year(::int32_t value); + public: - double position(int index) const; - void set_position(int index, double value); - void add_position(double value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - position() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - mutable_position(); + // int32 month = 2; + void clear_month() ; + ::int32_t month() const; + void set_month(::int32_t value); - // repeated double velocity = 3; - int velocity_size() const; private: - int _internal_velocity_size() const; + ::int32_t _internal_month() const; + void _internal_set_month(::int32_t value); + public: - void clear_velocity(); + // int32 day = 3; + void clear_day() ; + ::int32_t day() const; + void set_day(::int32_t value); + private: - double _internal_velocity(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - _internal_velocity() const; - void _internal_add_velocity(double value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - _internal_mutable_velocity(); + ::int32_t _internal_day() const; + void _internal_set_day(::int32_t value); + public: - double velocity(int index) const; - void set_velocity(int index, double value); - void add_velocity(double value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - velocity() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - mutable_velocity(); + // int32 hours = 4; + void clear_hours() ; + ::int32_t hours() const; + void set_hours(::int32_t value); - // repeated double attitude = 4; - int attitude_size() const; private: - int _internal_attitude_size() const; + ::int32_t _internal_hours() const; + void _internal_set_hours(::int32_t value); + public: - void clear_attitude(); + // double seconds = 6; + void clear_seconds() ; + double seconds() const; + void set_seconds(double value); + private: - double _internal_attitude(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - _internal_attitude() const; - void _internal_add_attitude(double value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - _internal_mutable_attitude(); + double _internal_seconds() const; + void _internal_set_seconds(double value); + public: - double attitude(int index) const; - void set_attitude(int index, double value); - void add_attitude(double value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - attitude() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - mutable_attitude(); + // int32 minutes = 5; + void clear_minutes() ; + ::int32_t minutes() const; + void set_minutes(::int32_t value); - // string spacecraftName = 1; - void clear_spacecraftname(); - const std::string& spacecraftname() const; - template - void set_spacecraftname(ArgT0&& arg0, ArgT... args); - std::string* mutable_spacecraftname(); - PROTOBUF_MUST_USE_RESULT std::string* release_spacecraftname(); - void set_allocated_spacecraftname(std::string* spacecraftname); private: - const std::string& _internal_spacecraftname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_spacecraftname(const std::string& value); - std::string* _internal_mutable_spacecraftname(); - public: + ::int32_t _internal_minutes() const; + void _internal_set_minutes(::int32_t value); - // @@protoc_insertion_point(class_scope:cielimMessage.Spacecraft) + public: + // @@protoc_insertion_point(class_scope:cielimMessage.EpochDateTime) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > position_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > velocity_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > attitude_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr spacecraftname_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 6, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const EpochDateTime& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::int32_t year_; + ::int32_t month_; + ::int32_t day_; + ::int32_t hours_; + double seconds_; + ::int32_t minutes_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_cielimMessage_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<28> EpochDateTime_class_data_; // ------------------------------------------------------------------- -class QuantumEfficiency final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:cielimMessage.QuantumEfficiency) */ { +class AreaOfInterest final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:cielimMessage.AreaOfInterest) */ { public: - inline QuantumEfficiency() : QuantumEfficiency(nullptr) {} - ~QuantumEfficiency() override; - explicit constexpr QuantumEfficiency(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline AreaOfInterest() : AreaOfInterest(nullptr) {} + ~AreaOfInterest() PROTOBUF_FINAL; - QuantumEfficiency(const QuantumEfficiency& from); - QuantumEfficiency(QuantumEfficiency&& from) noexcept - : QuantumEfficiency() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(AreaOfInterest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(AreaOfInterest)); } +#endif - inline QuantumEfficiency& operator=(const QuantumEfficiency& from) { + template + explicit PROTOBUF_CONSTEXPR AreaOfInterest(::google::protobuf::internal::ConstantInitialized); + + inline AreaOfInterest(const AreaOfInterest& from) : AreaOfInterest(nullptr, from) {} + inline AreaOfInterest(AreaOfInterest&& from) noexcept + : AreaOfInterest(nullptr, ::std::move(from)) {} + inline AreaOfInterest& operator=(const AreaOfInterest& from) { CopyFrom(from); return *this; } - inline QuantumEfficiency& operator=(QuantumEfficiency&& from) noexcept { + inline AreaOfInterest& operator=(AreaOfInterest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1701,226 +2107,225 @@ class QuantumEfficiency final : return *this; } - static const QuantumEfficiency& default_instance() { - return *internal_default_instance(); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - static inline const QuantumEfficiency* internal_default_instance() { - return reinterpret_cast( - &_QuantumEfficiency_default_instance_); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static constexpr int kIndexInFileMessages = - 8; - friend void swap(QuantumEfficiency& a, QuantumEfficiency& b) { - a.Swap(&b); + static const AreaOfInterest& default_instance() { + return *reinterpret_cast( + &_AreaOfInterest_default_instance_); } - inline void Swap(QuantumEfficiency* other) { + static constexpr int kIndexInFileMessages = 11; + friend void swap(AreaOfInterest& a, AreaOfInterest& b) { a.Swap(&b); } + inline void Swap(AreaOfInterest* PROTOBUF_NONNULL other) { if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(QuantumEfficiency* other) { + void UnsafeArenaSwap(AreaOfInterest* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline QuantumEfficiency* New() const final { - return new QuantumEfficiency(); + AreaOfInterest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } + void CopyFrom(const AreaOfInterest& from); + void MergeFrom(const AreaOfInterest& from) { AreaOfInterest::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - QuantumEfficiency* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + public: + bool IsInitialized() const { + return true; } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const QuantumEfficiency& from); - void MergeFrom(const QuantumEfficiency& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(QuantumEfficiency* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "cielimMessage.QuantumEfficiency"; + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(AreaOfInterest* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "cielimMessage.AreaOfInterest"; } + + explicit AreaOfInterest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + AreaOfInterest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const AreaOfInterest& from); + AreaOfInterest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, AreaOfInterest&& from) noexcept + : AreaOfInterest(arena) { + *this = ::std::move(from); } - protected: - explicit QuantumEfficiency(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); - std::string GetTypeName() const final; + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kIntegrationWeightFactorFieldNumber = 1, - kRedValue1FieldNumber = 2, - kRedValue2FieldNumber = 3, - kRedValue3FieldNumber = 4, - kGreenValue1FieldNumber = 5, - kGreenValue2FieldNumber = 6, - kGreenValue3FieldNumber = 7, - kBlueValue1FieldNumber = 8, - kBlueValue2FieldNumber = 9, - kBlueValue3FieldNumber = 10, + kCenterXFieldNumber = 1, + kCenterYFieldNumber = 2, + kWidthFieldNumber = 3, + kHeightFieldNumber = 4, + kThresholdFieldNumber = 5, }; - // double integrationWeightFactor = 1; - void clear_integrationweightfactor(); - double integrationweightfactor() const; - void set_integrationweightfactor(double value); + // double centerX = 1; + void clear_centerx() ; + double centerx() const; + void set_centerx(double value); + private: - double _internal_integrationweightfactor() const; - void _internal_set_integrationweightfactor(double value); + double _internal_centerx() const; + void _internal_set_centerx(double value); + public: + // double centerY = 2; + void clear_centery() ; + double centery() const; + void set_centery(double value); - // double redValue1 = 2; - void clear_redvalue1(); - double redvalue1() const; - void set_redvalue1(double value); private: - double _internal_redvalue1() const; - void _internal_set_redvalue1(double value); + double _internal_centery() const; + void _internal_set_centery(double value); + public: + // double width = 3; + void clear_width() ; + double width() const; + void set_width(double value); - // double redValue2 = 3; - void clear_redvalue2(); - double redvalue2() const; - void set_redvalue2(double value); private: - double _internal_redvalue2() const; - void _internal_set_redvalue2(double value); - public: - - // double redValue3 = 4; - void clear_redvalue3(); - double redvalue3() const; - void set_redvalue3(double value); - private: - double _internal_redvalue3() const; - void _internal_set_redvalue3(double value); - public: - - // double greenValue1 = 5; - void clear_greenvalue1(); - double greenvalue1() const; - void set_greenvalue1(double value); - private: - double _internal_greenvalue1() const; - void _internal_set_greenvalue1(double value); - public: + double _internal_width() const; + void _internal_set_width(double value); - // double greenValue2 = 6; - void clear_greenvalue2(); - double greenvalue2() const; - void set_greenvalue2(double value); - private: - double _internal_greenvalue2() const; - void _internal_set_greenvalue2(double value); public: + // double height = 4; + void clear_height() ; + double height() const; + void set_height(double value); - // double greenValue3 = 7; - void clear_greenvalue3(); - double greenvalue3() const; - void set_greenvalue3(double value); private: - double _internal_greenvalue3() const; - void _internal_set_greenvalue3(double value); - public: + double _internal_height() const; + void _internal_set_height(double value); - // double blueValue1 = 8; - void clear_bluevalue1(); - double bluevalue1() const; - void set_bluevalue1(double value); - private: - double _internal_bluevalue1() const; - void _internal_set_bluevalue1(double value); public: + // double threshold = 5; + void clear_threshold() ; + double threshold() const; + void set_threshold(double value); - // double blueValue2 = 9; - void clear_bluevalue2(); - double bluevalue2() const; - void set_bluevalue2(double value); private: - double _internal_bluevalue2() const; - void _internal_set_bluevalue2(double value); - public: + double _internal_threshold() const; + void _internal_set_threshold(double value); - // double blueValue3 = 10; - void clear_bluevalue3(); - double bluevalue3() const; - void set_bluevalue3(double value); - private: - double _internal_bluevalue3() const; - void _internal_set_bluevalue3(double value); public: - - // @@protoc_insertion_point(class_scope:cielimMessage.QuantumEfficiency) + // @@protoc_insertion_point(class_scope:cielimMessage.AreaOfInterest) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - double integrationweightfactor_; - double redvalue1_; - double redvalue2_; - double redvalue3_; - double greenvalue1_; - double greenvalue2_; - double greenvalue3_; - double bluevalue1_; - double bluevalue2_; - double bluevalue3_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 5, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const AreaOfInterest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + double centerx_; + double centery_; + double width_; + double height_; + double threshold_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_cielimMessage_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<29> AreaOfInterest_class_data_; // ------------------------------------------------------------------- -class LensModel final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:cielimMessage.LensModel) */ { +class SensorModel final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:cielimMessage.SensorModel) */ { public: - inline LensModel() : LensModel(nullptr) {} - ~LensModel() override; - explicit constexpr LensModel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SensorModel() : SensorModel(nullptr) {} + ~SensorModel() PROTOBUF_FINAL; - LensModel(const LensModel& from); - LensModel(LensModel&& from) noexcept - : LensModel() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SensorModel* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SensorModel)); } +#endif - inline LensModel& operator=(const LensModel& from) { + template + explicit PROTOBUF_CONSTEXPR SensorModel(::google::protobuf::internal::ConstantInitialized); + + inline SensorModel(const SensorModel& from) : SensorModel(nullptr, from) {} + inline SensorModel(SensorModel&& from) noexcept + : SensorModel(nullptr, ::std::move(from)) {} + inline SensorModel& operator=(const SensorModel& from) { CopyFrom(from); return *this; } - inline LensModel& operator=(LensModel&& from) noexcept { + inline SensorModel& operator=(SensorModel&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1928,256 +2333,323 @@ class LensModel final : return *this; } - static const LensModel& default_instance() { - return *internal_default_instance(); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - static inline const LensModel* internal_default_instance() { - return reinterpret_cast( - &_LensModel_default_instance_); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static constexpr int kIndexInFileMessages = - 9; - friend void swap(LensModel& a, LensModel& b) { - a.Swap(&b); + static const SensorModel& default_instance() { + return *reinterpret_cast( + &_SensorModel_default_instance_); } - inline void Swap(LensModel* other) { + static constexpr int kIndexInFileMessages = 10; + friend void swap(SensorModel& a, SensorModel& b) { a.Swap(&b); } + inline void Swap(SensorModel* PROTOBUF_NONNULL other) { if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LensModel* other) { + void UnsafeArenaSwap(SensorModel* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline LensModel* New() const final { - return new LensModel(); + SensorModel* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } + void CopyFrom(const SensorModel& from); + void MergeFrom(const SensorModel& from) { SensorModel::MergeImpl(*this, from); } - LensModel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const LensModel& from); - void MergeFrom(const LensModel& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(LensModel* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "cielimMessage.LensModel"; + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(SensorModel* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "cielimMessage.SensorModel"; } + + explicit SensorModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + SensorModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SensorModel& from); + SensorModel( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SensorModel&& from) noexcept + : SensorModel(arena) { + *this = ::std::move(from); } - protected: - explicit LensModel(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); - std::string GetTypeName() const final; + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kFieldOfViewFieldNumber = 1, - kHorizontalVignettingFieldNumber = 5, - kVerticalVignettingFieldNumber = 6, - kDistortionFieldNumber = 7, - kFocalLengthFieldNumber = 2, - kPointSpreadFunctionFieldNumber = 3, - kApertureRadiusFieldNumber = 4, - kTransmissionFieldNumber = 8, + kResolutionFieldNumber = 1, + kQeCurveFieldNumber = 12, + kRenderRateFieldNumber = 2, + kExposureTimeFieldNumber = 3, + kReadNoiseFieldNumber = 4, + kDarkCurrentFieldNumber = 6, + kSystemGainFieldNumber = 7, + kSensorWidthFieldNumber = 8, + kSensorHeightFieldNumber = 9, + kFullWellCapacityFieldNumber = 10, + kGammaFieldNumber = 11, + kShotNoiseFieldNumber = 5, }; - // repeated double fieldOfView = 1; - int fieldofview_size() const; + // repeated int64 resolution = 1; + int resolution_size() const; private: - int _internal_fieldofview_size() const; + int _internal_resolution_size() const; + public: - void clear_fieldofview(); + void clear_resolution() ; + ::int64_t resolution(int index) const; + void set_resolution(int index, ::int64_t value); + void add_resolution(::int64_t value); + const ::google::protobuf::RepeatedField<::int64_t>& resolution() const; + ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL mutable_resolution(); + private: - double _internal_fieldofview(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - _internal_fieldofview() const; - void _internal_add_fieldofview(double value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - _internal_mutable_fieldofview(); + const ::google::protobuf::RepeatedField<::int64_t>& _internal_resolution() const; + ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL _internal_mutable_resolution(); + public: - double fieldofview(int index) const; - void set_fieldofview(int index, double value); - void add_fieldofview(double value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - fieldofview() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - mutable_fieldofview(); + // .cielimMessage.QuantumEfficiency qeCurve = 12; + bool has_qecurve() const; + void clear_qecurve() ; + const ::cielimMessage::QuantumEfficiency& qecurve() const; + [[nodiscard]] ::cielimMessage::QuantumEfficiency* PROTOBUF_NULLABLE release_qecurve(); + ::cielimMessage::QuantumEfficiency* PROTOBUF_NONNULL mutable_qecurve(); + void set_allocated_qecurve(::cielimMessage::QuantumEfficiency* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_qecurve(::cielimMessage::QuantumEfficiency* PROTOBUF_NULLABLE value); + ::cielimMessage::QuantumEfficiency* PROTOBUF_NULLABLE unsafe_arena_release_qecurve(); - // repeated double horizontalVignetting = 5; - int horizontalvignetting_size() const; private: - int _internal_horizontalvignetting_size() const; + const ::cielimMessage::QuantumEfficiency& _internal_qecurve() const; + ::cielimMessage::QuantumEfficiency* PROTOBUF_NONNULL _internal_mutable_qecurve(); + public: - void clear_horizontalvignetting(); + // uint64 renderRate = 2; + void clear_renderrate() ; + ::uint64_t renderrate() const; + void set_renderrate(::uint64_t value); + private: - double _internal_horizontalvignetting(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - _internal_horizontalvignetting() const; - void _internal_add_horizontalvignetting(double value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - _internal_mutable_horizontalvignetting(); + ::uint64_t _internal_renderrate() const; + void _internal_set_renderrate(::uint64_t value); + public: - double horizontalvignetting(int index) const; - void set_horizontalvignetting(int index, double value); - void add_horizontalvignetting(double value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - horizontalvignetting() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - mutable_horizontalvignetting(); + // double exposureTime = 3; + void clear_exposuretime() ; + double exposuretime() const; + void set_exposuretime(double value); - // repeated double verticalVignetting = 6; - int verticalvignetting_size() const; private: - int _internal_verticalvignetting_size() const; + double _internal_exposuretime() const; + void _internal_set_exposuretime(double value); + public: - void clear_verticalvignetting(); + // double readNoise = 4; + void clear_readnoise() ; + double readnoise() const; + void set_readnoise(double value); + private: - double _internal_verticalvignetting(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - _internal_verticalvignetting() const; - void _internal_add_verticalvignetting(double value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - _internal_mutable_verticalvignetting(); + double _internal_readnoise() const; + void _internal_set_readnoise(double value); + public: - double verticalvignetting(int index) const; - void set_verticalvignetting(int index, double value); - void add_verticalvignetting(double value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - verticalvignetting() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - mutable_verticalvignetting(); + // double darkCurrent = 6; + void clear_darkcurrent() ; + double darkcurrent() const; + void set_darkcurrent(double value); - // repeated double distortion = 7; - int distortion_size() const; private: - int _internal_distortion_size() const; + double _internal_darkcurrent() const; + void _internal_set_darkcurrent(double value); + public: - void clear_distortion(); + // double systemGain = 7; + void clear_systemgain() ; + double systemgain() const; + void set_systemgain(double value); + private: - double _internal_distortion(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - _internal_distortion() const; - void _internal_add_distortion(double value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - _internal_mutable_distortion(); + double _internal_systemgain() const; + void _internal_set_systemgain(double value); + public: - double distortion(int index) const; - void set_distortion(int index, double value); - void add_distortion(double value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - distortion() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - mutable_distortion(); + // double sensorWidth = 8; + void clear_sensorwidth() ; + double sensorwidth() const; + void set_sensorwidth(double value); - // double focalLength = 2; - void clear_focallength(); - double focallength() const; - void set_focallength(double value); private: - double _internal_focallength() const; - void _internal_set_focallength(double value); + double _internal_sensorwidth() const; + void _internal_set_sensorwidth(double value); + public: + // double sensorHeight = 9; + void clear_sensorheight() ; + double sensorheight() const; + void set_sensorheight(double value); - // double pointSpreadFunction = 3; - void clear_pointspreadfunction(); - double pointspreadfunction() const; - void set_pointspreadfunction(double value); private: - double _internal_pointspreadfunction() const; - void _internal_set_pointspreadfunction(double value); + double _internal_sensorheight() const; + void _internal_set_sensorheight(double value); + public: + // double fullWellCapacity = 10; + void clear_fullwellcapacity() ; + double fullwellcapacity() const; + void set_fullwellcapacity(double value); - // double apertureRadius = 4; - void clear_apertureradius(); - double apertureradius() const; - void set_apertureradius(double value); private: - double _internal_apertureradius() const; - void _internal_set_apertureradius(double value); + double _internal_fullwellcapacity() const; + void _internal_set_fullwellcapacity(double value); + public: + // double gamma = 11; + void clear_gamma() ; + double gamma() const; + void set_gamma(double value); - // double transmission = 8; - void clear_transmission(); - double transmission() const; - void set_transmission(double value); private: - double _internal_transmission() const; - void _internal_set_transmission(double value); + double _internal_gamma() const; + void _internal_set_gamma(double value); + public: + // bool shotNoise = 5; + void clear_shotnoise() ; + bool shotnoise() const; + void set_shotnoise(bool value); - // @@protoc_insertion_point(class_scope:cielimMessage.LensModel) + private: + bool _internal_shotnoise() const; + void _internal_set_shotnoise(bool value); + + public: + // @@protoc_insertion_point(class_scope:cielimMessage.SensorModel) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > fieldofview_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > horizontalvignetting_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > verticalvignetting_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > distortion_; - double focallength_; - double pointspreadfunction_; - double apertureradius_; - double transmission_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 12, + 1, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const SensorModel& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField<::int64_t> resolution_; + ::google::protobuf::internal::CachedSize _resolution_cached_byte_size_; + ::cielimMessage::QuantumEfficiency* PROTOBUF_NULLABLE qecurve_; + ::uint64_t renderrate_; + double exposuretime_; + double readnoise_; + double darkcurrent_; + double systemgain_; + double sensorwidth_; + double sensorheight_; + double fullwellcapacity_; + double gamma_; + bool shotnoise_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_cielimMessage_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<26> SensorModel_class_data_; // ------------------------------------------------------------------- -class SensorModel final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:cielimMessage.SensorModel) */ { +class MeshModel final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:cielimMessage.MeshModel) */ { public: - inline SensorModel() : SensorModel(nullptr) {} - ~SensorModel() override; - explicit constexpr SensorModel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline MeshModel() : MeshModel(nullptr) {} + ~MeshModel() PROTOBUF_FINAL; - SensorModel(const SensorModel& from); - SensorModel(SensorModel&& from) noexcept - : SensorModel() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(MeshModel* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(MeshModel)); } +#endif - inline SensorModel& operator=(const SensorModel& from) { + template + explicit PROTOBUF_CONSTEXPR MeshModel(::google::protobuf::internal::ConstantInitialized); + + inline MeshModel(const MeshModel& from) : MeshModel(nullptr, from) {} + inline MeshModel(MeshModel&& from) noexcept + : MeshModel(nullptr, ::std::move(from)) {} + inline MeshModel& operator=(const MeshModel& from) { CopyFrom(from); return *this; } - inline SensorModel& operator=(SensorModel&& from) noexcept { + inline MeshModel& operator=(MeshModel&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2185,271 +2657,292 @@ class SensorModel final : return *this; } - static const SensorModel& default_instance() { - return *internal_default_instance(); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - static inline const SensorModel* internal_default_instance() { - return reinterpret_cast( - &_SensorModel_default_instance_); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static constexpr int kIndexInFileMessages = - 10; - friend void swap(SensorModel& a, SensorModel& b) { - a.Swap(&b); + static const MeshModel& default_instance() { + return *reinterpret_cast( + &_MeshModel_default_instance_); } - inline void Swap(SensorModel* other) { + static constexpr int kIndexInFileMessages = 5; + friend void swap(MeshModel& a, MeshModel& b) { a.Swap(&b); } + inline void Swap(MeshModel* PROTOBUF_NONNULL other) { if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SensorModel* other) { + void UnsafeArenaSwap(MeshModel* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline SensorModel* New() const final { - return new SensorModel(); + MeshModel* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } + void CopyFrom(const MeshModel& from); + void MergeFrom(const MeshModel& from) { MeshModel::MergeImpl(*this, from); } - SensorModel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const SensorModel& from); - void MergeFrom(const SensorModel& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(SensorModel* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "cielimMessage.SensorModel"; + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(MeshModel* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "cielimMessage.MeshModel"; } + + explicit MeshModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + MeshModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MeshModel& from); + MeshModel( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, MeshModel&& from) noexcept + : MeshModel(arena) { + *this = ::std::move(from); } - protected: - explicit SensorModel(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); - std::string GetTypeName() const final; + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kResolutionFieldNumber = 1, - kQeCurveFieldNumber = 12, - kRenderRateFieldNumber = 2, - kExposureTimeFieldNumber = 3, - kReadNoiseFieldNumber = 4, - kDarkCurrentFieldNumber = 6, - kSystemGainFieldNumber = 7, - kSensorWidthFieldNumber = 8, - kSensorHeightFieldNumber = 9, - kFullWellCapacityFieldNumber = 10, - kGammaFieldNumber = 11, - kShotNoiseFieldNumber = 5, + kPrincipalAxisDistortionFieldNumber = 4, + kInertialToBodyMrpFieldNumber = 5, + kShapeModelFieldNumber = 1, + kRefModelFieldNumber = 6, + kPerlinNoiseFieldNumber = 7, + kMeanRadiusFieldNumber = 2, + kGeometricAlbedoFieldNumber = 3, + kProceduralRocksFieldNumber = 8, }; - // repeated int64 resolution = 1; - int resolution_size() const; - private: - int _internal_resolution_size() const; - public: - void clear_resolution(); + // repeated double principalAxisDistortion = 4; + int principalaxisdistortion_size() const; private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_resolution(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - _internal_resolution() const; - void _internal_add_resolution(::PROTOBUF_NAMESPACE_ID::int64 value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - _internal_mutable_resolution(); - public: - ::PROTOBUF_NAMESPACE_ID::int64 resolution(int index) const; - void set_resolution(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); - void add_resolution(::PROTOBUF_NAMESPACE_ID::int64 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - resolution() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - mutable_resolution(); + int _internal_principalaxisdistortion_size() const; - // .cielimMessage.QuantumEfficiency qeCurve = 12; - bool has_qecurve() const; - private: - bool _internal_has_qecurve() const; - public: - void clear_qecurve(); - const ::cielimMessage::QuantumEfficiency& qecurve() const; - PROTOBUF_MUST_USE_RESULT ::cielimMessage::QuantumEfficiency* release_qecurve(); - ::cielimMessage::QuantumEfficiency* mutable_qecurve(); - void set_allocated_qecurve(::cielimMessage::QuantumEfficiency* qecurve); - private: - const ::cielimMessage::QuantumEfficiency& _internal_qecurve() const; - ::cielimMessage::QuantumEfficiency* _internal_mutable_qecurve(); public: - void unsafe_arena_set_allocated_qecurve( - ::cielimMessage::QuantumEfficiency* qecurve); - ::cielimMessage::QuantumEfficiency* unsafe_arena_release_qecurve(); + void clear_principalaxisdistortion() ; + double principalaxisdistortion(int index) const; + void set_principalaxisdistortion(int index, double value); + void add_principalaxisdistortion(double value); + const ::google::protobuf::RepeatedField& principalaxisdistortion() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_principalaxisdistortion(); - // uint64 renderRate = 2; - void clear_renderrate(); - ::PROTOBUF_NAMESPACE_ID::uint64 renderrate() const; - void set_renderrate(::PROTOBUF_NAMESPACE_ID::uint64 value); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_renderrate() const; - void _internal_set_renderrate(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: + const ::google::protobuf::RepeatedField& _internal_principalaxisdistortion() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_principalaxisdistortion(); - // double exposureTime = 3; - void clear_exposuretime(); - double exposuretime() const; - void set_exposuretime(double value); - private: - double _internal_exposuretime() const; - void _internal_set_exposuretime(double value); public: - - // double readNoise = 4; - void clear_readnoise(); - double readnoise() const; - void set_readnoise(double value); + // repeated double inertialToBodyMrp = 5; + int inertialtobodymrp_size() const; private: - double _internal_readnoise() const; - void _internal_set_readnoise(double value); - public: + int _internal_inertialtobodymrp_size() const; - // double darkCurrent = 6; - void clear_darkcurrent(); - double darkcurrent() const; - void set_darkcurrent(double value); - private: - double _internal_darkcurrent() const; - void _internal_set_darkcurrent(double value); public: + void clear_inertialtobodymrp() ; + double inertialtobodymrp(int index) const; + void set_inertialtobodymrp(int index, double value); + void add_inertialtobodymrp(double value); + const ::google::protobuf::RepeatedField& inertialtobodymrp() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_inertialtobodymrp(); - // double systemGain = 7; - void clear_systemgain(); - double systemgain() const; - void set_systemgain(double value); private: - double _internal_systemgain() const; - void _internal_set_systemgain(double value); + const ::google::protobuf::RepeatedField& _internal_inertialtobodymrp() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_inertialtobodymrp(); + public: + // string shapeModel = 1; + void clear_shapemodel() ; + const ::std::string& shapemodel() const; + template + void set_shapemodel(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_shapemodel(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_shapemodel(); + void set_allocated_shapemodel(::std::string* PROTOBUF_NULLABLE value); - // double sensorWidth = 8; - void clear_sensorwidth(); - double sensorwidth() const; - void set_sensorwidth(double value); private: - double _internal_sensorwidth() const; - void _internal_set_sensorwidth(double value); + const ::std::string& _internal_shapemodel() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_shapemodel(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_shapemodel(); + public: + // .cielimMessage.ReflectanceModel refModel = 6; + bool has_refmodel() const; + void clear_refmodel() ; + const ::cielimMessage::ReflectanceModel& refmodel() const; + [[nodiscard]] ::cielimMessage::ReflectanceModel* PROTOBUF_NULLABLE release_refmodel(); + ::cielimMessage::ReflectanceModel* PROTOBUF_NONNULL mutable_refmodel(); + void set_allocated_refmodel(::cielimMessage::ReflectanceModel* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_refmodel(::cielimMessage::ReflectanceModel* PROTOBUF_NULLABLE value); + ::cielimMessage::ReflectanceModel* PROTOBUF_NULLABLE unsafe_arena_release_refmodel(); - // double sensorHeight = 9; - void clear_sensorheight(); - double sensorheight() const; - void set_sensorheight(double value); private: - double _internal_sensorheight() const; - void _internal_set_sensorheight(double value); + const ::cielimMessage::ReflectanceModel& _internal_refmodel() const; + ::cielimMessage::ReflectanceModel* PROTOBUF_NONNULL _internal_mutable_refmodel(); + public: + // .cielimMessage.PerlinNoise perlinNoise = 7; + bool has_perlinnoise() const; + void clear_perlinnoise() ; + const ::cielimMessage::PerlinNoise& perlinnoise() const; + [[nodiscard]] ::cielimMessage::PerlinNoise* PROTOBUF_NULLABLE release_perlinnoise(); + ::cielimMessage::PerlinNoise* PROTOBUF_NONNULL mutable_perlinnoise(); + void set_allocated_perlinnoise(::cielimMessage::PerlinNoise* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_perlinnoise(::cielimMessage::PerlinNoise* PROTOBUF_NULLABLE value); + ::cielimMessage::PerlinNoise* PROTOBUF_NULLABLE unsafe_arena_release_perlinnoise(); - // double fullWellCapacity = 10; - void clear_fullwellcapacity(); - double fullwellcapacity() const; - void set_fullwellcapacity(double value); private: - double _internal_fullwellcapacity() const; - void _internal_set_fullwellcapacity(double value); + const ::cielimMessage::PerlinNoise& _internal_perlinnoise() const; + ::cielimMessage::PerlinNoise* PROTOBUF_NONNULL _internal_mutable_perlinnoise(); + public: + // double meanRadius = 2; + void clear_meanradius() ; + double meanradius() const; + void set_meanradius(double value); - // double gamma = 11; - void clear_gamma(); - double gamma() const; - void set_gamma(double value); private: - double _internal_gamma() const; - void _internal_set_gamma(double value); + double _internal_meanradius() const; + void _internal_set_meanradius(double value); + public: + // double geometricAlbedo = 3; + void clear_geometricalbedo() ; + double geometricalbedo() const; + void set_geometricalbedo(double value); - // bool shotNoise = 5; - void clear_shotnoise(); - bool shotnoise() const; - void set_shotnoise(bool value); private: - bool _internal_shotnoise() const; - void _internal_set_shotnoise(bool value); + double _internal_geometricalbedo() const; + void _internal_set_geometricalbedo(double value); + public: + // double proceduralRocks = 8; + void clear_proceduralrocks() ; + double proceduralrocks() const; + void set_proceduralrocks(double value); - // @@protoc_insertion_point(class_scope:cielimMessage.SensorModel) + private: + double _internal_proceduralrocks() const; + void _internal_set_proceduralrocks(double value); + + public: + // @@protoc_insertion_point(class_scope:cielimMessage.MeshModel) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > resolution_; - mutable std::atomic _resolution_cached_byte_size_; - ::cielimMessage::QuantumEfficiency* qecurve_; - ::PROTOBUF_NAMESPACE_ID::uint64 renderrate_; - double exposuretime_; - double readnoise_; - double darkcurrent_; - double systemgain_; - double sensorwidth_; - double sensorheight_; - double fullwellcapacity_; - double gamma_; - bool shotnoise_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 8, + 2, 50, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const MeshModel& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField principalaxisdistortion_; + ::google::protobuf::RepeatedField inertialtobodymrp_; + ::google::protobuf::internal::ArenaStringPtr shapemodel_; + ::cielimMessage::ReflectanceModel* PROTOBUF_NULLABLE refmodel_; + ::cielimMessage::PerlinNoise* PROTOBUF_NULLABLE perlinnoise_; + double meanradius_; + double geometricalbedo_; + double proceduralrocks_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_cielimMessage_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<24> MeshModel_class_data_; // ------------------------------------------------------------------- -class AreaOfInterest final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:cielimMessage.AreaOfInterest) */ { +class CelestialBody final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:cielimMessage.CelestialBody) */ { public: - inline AreaOfInterest() : AreaOfInterest(nullptr) {} - ~AreaOfInterest() override; - explicit constexpr AreaOfInterest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline CelestialBody() : CelestialBody(nullptr) {} + ~CelestialBody() PROTOBUF_FINAL; - AreaOfInterest(const AreaOfInterest& from); - AreaOfInterest(AreaOfInterest&& from) noexcept - : AreaOfInterest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CelestialBody* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(CelestialBody)); } +#endif - inline AreaOfInterest& operator=(const AreaOfInterest& from) { + template + explicit PROTOBUF_CONSTEXPR CelestialBody(::google::protobuf::internal::ConstantInitialized); + + inline CelestialBody(const CelestialBody& from) : CelestialBody(nullptr, from) {} + inline CelestialBody(CelestialBody&& from) noexcept + : CelestialBody(nullptr, ::std::move(from)) {} + inline CelestialBody& operator=(const CelestialBody& from) { CopyFrom(from); return *this; } - inline AreaOfInterest& operator=(AreaOfInterest&& from) noexcept { + inline CelestialBody& operator=(CelestialBody&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2457,171 +2950,271 @@ class AreaOfInterest final : return *this; } - static const AreaOfInterest& default_instance() { - return *internal_default_instance(); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - static inline const AreaOfInterest* internal_default_instance() { - return reinterpret_cast( - &_AreaOfInterest_default_instance_); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static constexpr int kIndexInFileMessages = - 11; - friend void swap(AreaOfInterest& a, AreaOfInterest& b) { - a.Swap(&b); + static const CelestialBody& default_instance() { + return *reinterpret_cast( + &_CelestialBody_default_instance_); } - inline void Swap(AreaOfInterest* other) { + static constexpr int kIndexInFileMessages = 6; + friend void swap(CelestialBody& a, CelestialBody& b) { a.Swap(&b); } + inline void Swap(CelestialBody* PROTOBUF_NONNULL other) { if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AreaOfInterest* other) { + void UnsafeArenaSwap(CelestialBody* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline AreaOfInterest* New() const final { - return new AreaOfInterest(); + CelestialBody* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } + void CopyFrom(const CelestialBody& from); + void MergeFrom(const CelestialBody& from) { CelestialBody::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - AreaOfInterest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + public: + bool IsInitialized() const { + return true; } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const AreaOfInterest& from); - void MergeFrom(const AreaOfInterest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(AreaOfInterest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "cielimMessage.AreaOfInterest"; + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(CelestialBody* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "cielimMessage.CelestialBody"; } + + explicit CelestialBody(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + CelestialBody(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CelestialBody& from); + CelestialBody( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, CelestialBody&& from) noexcept + : CelestialBody(arena) { + *this = ::std::move(from); } - protected: - explicit AreaOfInterest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); - std::string GetTypeName() const final; + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kCenterXFieldNumber = 1, - kCenterYFieldNumber = 2, - kWidthFieldNumber = 3, - kHeightFieldNumber = 4, - kThresholdFieldNumber = 5, + kPositionFieldNumber = 2, + kVelocityFieldNumber = 3, + kAttitudeFieldNumber = 4, + kBodyNameFieldNumber = 1, + kModelFieldNumber = 5, + kCentralBodyFieldNumber = 6, }; - // double centerX = 1; - void clear_centerx(); - double centerx() const; - void set_centerx(double value); + // repeated double position = 2; + int position_size() const; private: - double _internal_centerx() const; - void _internal_set_centerx(double value); + int _internal_position_size() const; + public: + void clear_position() ; + double position(int index) const; + void set_position(int index, double value); + void add_position(double value); + const ::google::protobuf::RepeatedField& position() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_position(); - // double centerY = 2; - void clear_centery(); - double centery() const; - void set_centery(double value); private: - double _internal_centery() const; - void _internal_set_centery(double value); + const ::google::protobuf::RepeatedField& _internal_position() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_position(); + public: + // repeated double velocity = 3; + int velocity_size() const; + private: + int _internal_velocity_size() const; + + public: + void clear_velocity() ; + double velocity(int index) const; + void set_velocity(int index, double value); + void add_velocity(double value); + const ::google::protobuf::RepeatedField& velocity() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_velocity(); - // double width = 3; - void clear_width(); - double width() const; - void set_width(double value); private: - double _internal_width() const; - void _internal_set_width(double value); + const ::google::protobuf::RepeatedField& _internal_velocity() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_velocity(); + + public: + // repeated double attitude = 4; + int attitude_size() const; + private: + int _internal_attitude_size() const; + public: + void clear_attitude() ; + double attitude(int index) const; + void set_attitude(int index, double value); + void add_attitude(double value); + const ::google::protobuf::RepeatedField& attitude() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_attitude(); - // double height = 4; - void clear_height(); - double height() const; - void set_height(double value); private: - double _internal_height() const; - void _internal_set_height(double value); + const ::google::protobuf::RepeatedField& _internal_attitude() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_attitude(); + public: + // string bodyName = 1; + void clear_bodyname() ; + const ::std::string& bodyname() const; + template + void set_bodyname(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_bodyname(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_bodyname(); + void set_allocated_bodyname(::std::string* PROTOBUF_NULLABLE value); - // double threshold = 5; - void clear_threshold(); - double threshold() const; - void set_threshold(double value); private: - double _internal_threshold() const; - void _internal_set_threshold(double value); + const ::std::string& _internal_bodyname() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_bodyname(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_bodyname(); + public: + // .cielimMessage.MeshModel model = 5; + bool has_model() const; + void clear_model() ; + const ::cielimMessage::MeshModel& model() const; + [[nodiscard]] ::cielimMessage::MeshModel* PROTOBUF_NULLABLE release_model(); + ::cielimMessage::MeshModel* PROTOBUF_NONNULL mutable_model(); + void set_allocated_model(::cielimMessage::MeshModel* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_model(::cielimMessage::MeshModel* PROTOBUF_NULLABLE value); + ::cielimMessage::MeshModel* PROTOBUF_NULLABLE unsafe_arena_release_model(); - // @@protoc_insertion_point(class_scope:cielimMessage.AreaOfInterest) + private: + const ::cielimMessage::MeshModel& _internal_model() const; + ::cielimMessage::MeshModel* PROTOBUF_NONNULL _internal_mutable_model(); + + public: + // bool centralBody = 6; + void clear_centralbody() ; + bool centralbody() const; + void set_centralbody(bool value); + + private: + bool _internal_centralbody() const; + void _internal_set_centralbody(bool value); + + public: + // @@protoc_insertion_point(class_scope:cielimMessage.CelestialBody) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - double centerx_; - double centery_; - double width_; - double height_; - double threshold_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 6, + 1, 44, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const CelestialBody& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField position_; + ::google::protobuf::RepeatedField velocity_; + ::google::protobuf::RepeatedField attitude_; + ::google::protobuf::internal::ArenaStringPtr bodyname_; + ::cielimMessage::MeshModel* PROTOBUF_NULLABLE model_; + bool centralbody_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_cielimMessage_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<28> CelestialBody_class_data_; // ------------------------------------------------------------------- -class CameraModel final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:cielimMessage.CameraModel) */ { +class CameraModel final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:cielimMessage.CameraModel) */ { public: inline CameraModel() : CameraModel(nullptr) {} - ~CameraModel() override; - explicit constexpr CameraModel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~CameraModel() PROTOBUF_FINAL; - CameraModel(const CameraModel& from); - CameraModel(CameraModel&& from) noexcept - : CameraModel() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CameraModel* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(CameraModel)); } +#endif + template + explicit PROTOBUF_CONSTEXPR CameraModel(::google::protobuf::internal::ConstantInitialized); + + inline CameraModel(const CameraModel& from) : CameraModel(nullptr, from) {} + inline CameraModel(CameraModel&& from) noexcept + : CameraModel(nullptr, ::std::move(from)) {} inline CameraModel& operator=(const CameraModel& from) { CopyFrom(from); return *this; } inline CameraModel& operator=(CameraModel&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2629,78 +3222,102 @@ class CameraModel final : return *this; } - static const CameraModel& default_instance() { - return *internal_default_instance(); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - static inline const CameraModel* internal_default_instance() { - return reinterpret_cast( - &_CameraModel_default_instance_); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static constexpr int kIndexInFileMessages = - 12; - friend void swap(CameraModel& a, CameraModel& b) { - a.Swap(&b); + static const CameraModel& default_instance() { + return *reinterpret_cast( + &_CameraModel_default_instance_); } - inline void Swap(CameraModel* other) { + static constexpr int kIndexInFileMessages = 12; + friend void swap(CameraModel& a, CameraModel& b) { a.Swap(&b); } + inline void Swap(CameraModel* PROTOBUF_NONNULL other) { if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CameraModel* other) { + void UnsafeArenaSwap(CameraModel* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline CameraModel* New() const final { - return new CameraModel(); - } - - CameraModel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + CameraModel* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const CameraModel& from); - void MergeFrom(const CameraModel& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const CameraModel& from) { CameraModel::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(CameraModel* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "cielimMessage.CameraModel"; + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; } - protected: - explicit CameraModel(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(CameraModel* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "cielimMessage.CameraModel"; } + + explicit CameraModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + CameraModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CameraModel& from); + CameraModel( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, CameraModel&& from) noexcept + : CameraModel(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); - std::string GetTypeName() const final; + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kCameraPositionInBodyFieldNumber = 3, kBodyFrameToCameraMrpFieldNumber = 4, @@ -2714,166 +3331,176 @@ class CameraModel final : int camerapositioninbody_size() const; private: int _internal_camerapositioninbody_size() const; + public: - void clear_camerapositioninbody(); - private: - double _internal_camerapositioninbody(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - _internal_camerapositioninbody() const; - void _internal_add_camerapositioninbody(double value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - _internal_mutable_camerapositioninbody(); - public: + void clear_camerapositioninbody() ; double camerapositioninbody(int index) const; void set_camerapositioninbody(int index, double value); void add_camerapositioninbody(double value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - camerapositioninbody() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - mutable_camerapositioninbody(); + const ::google::protobuf::RepeatedField& camerapositioninbody() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_camerapositioninbody(); + private: + const ::google::protobuf::RepeatedField& _internal_camerapositioninbody() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_camerapositioninbody(); + + public: // repeated double bodyFrameToCameraMrp = 4; int bodyframetocameramrp_size() const; private: int _internal_bodyframetocameramrp_size() const; + public: - void clear_bodyframetocameramrp(); - private: - double _internal_bodyframetocameramrp(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - _internal_bodyframetocameramrp() const; - void _internal_add_bodyframetocameramrp(double value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - _internal_mutable_bodyframetocameramrp(); - public: + void clear_bodyframetocameramrp() ; double bodyframetocameramrp(int index) const; void set_bodyframetocameramrp(int index, double value); void add_bodyframetocameramrp(double value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& - bodyframetocameramrp() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* - mutable_bodyframetocameramrp(); + const ::google::protobuf::RepeatedField& bodyframetocameramrp() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_bodyframetocameramrp(); - // string parentName = 2; - void clear_parentname(); - const std::string& parentname() const; - template - void set_parentname(ArgT0&& arg0, ArgT... args); - std::string* mutable_parentname(); - PROTOBUF_MUST_USE_RESULT std::string* release_parentname(); - void set_allocated_parentname(std::string* parentname); private: - const std::string& _internal_parentname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_parentname(const std::string& value); - std::string* _internal_mutable_parentname(); + const ::google::protobuf::RepeatedField& _internal_bodyframetocameramrp() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_bodyframetocameramrp(); + public: + // string parentName = 2; + void clear_parentname() ; + const ::std::string& parentname() const; + template + void set_parentname(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_parentname(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_parentname(); + void set_allocated_parentname(::std::string* PROTOBUF_NULLABLE value); - // .cielimMessage.LensModel lensModel = 5; - bool has_lensmodel() const; private: - bool _internal_has_lensmodel() const; + const ::std::string& _internal_parentname() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_parentname(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_parentname(); + public: - void clear_lensmodel(); + // .cielimMessage.LensModel lensModel = 5; + bool has_lensmodel() const; + void clear_lensmodel() ; const ::cielimMessage::LensModel& lensmodel() const; - PROTOBUF_MUST_USE_RESULT ::cielimMessage::LensModel* release_lensmodel(); - ::cielimMessage::LensModel* mutable_lensmodel(); - void set_allocated_lensmodel(::cielimMessage::LensModel* lensmodel); + [[nodiscard]] ::cielimMessage::LensModel* PROTOBUF_NULLABLE release_lensmodel(); + ::cielimMessage::LensModel* PROTOBUF_NONNULL mutable_lensmodel(); + void set_allocated_lensmodel(::cielimMessage::LensModel* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_lensmodel(::cielimMessage::LensModel* PROTOBUF_NULLABLE value); + ::cielimMessage::LensModel* PROTOBUF_NULLABLE unsafe_arena_release_lensmodel(); + private: const ::cielimMessage::LensModel& _internal_lensmodel() const; - ::cielimMessage::LensModel* _internal_mutable_lensmodel(); - public: - void unsafe_arena_set_allocated_lensmodel( - ::cielimMessage::LensModel* lensmodel); - ::cielimMessage::LensModel* unsafe_arena_release_lensmodel(); + ::cielimMessage::LensModel* PROTOBUF_NONNULL _internal_mutable_lensmodel(); + public: // .cielimMessage.SensorModel sensorModel = 6; bool has_sensormodel() const; - private: - bool _internal_has_sensormodel() const; - public: - void clear_sensormodel(); + void clear_sensormodel() ; const ::cielimMessage::SensorModel& sensormodel() const; - PROTOBUF_MUST_USE_RESULT ::cielimMessage::SensorModel* release_sensormodel(); - ::cielimMessage::SensorModel* mutable_sensormodel(); - void set_allocated_sensormodel(::cielimMessage::SensorModel* sensormodel); + [[nodiscard]] ::cielimMessage::SensorModel* PROTOBUF_NULLABLE release_sensormodel(); + ::cielimMessage::SensorModel* PROTOBUF_NONNULL mutable_sensormodel(); + void set_allocated_sensormodel(::cielimMessage::SensorModel* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_sensormodel(::cielimMessage::SensorModel* PROTOBUF_NULLABLE value); + ::cielimMessage::SensorModel* PROTOBUF_NULLABLE unsafe_arena_release_sensormodel(); + private: const ::cielimMessage::SensorModel& _internal_sensormodel() const; - ::cielimMessage::SensorModel* _internal_mutable_sensormodel(); - public: - void unsafe_arena_set_allocated_sensormodel( - ::cielimMessage::SensorModel* sensormodel); - ::cielimMessage::SensorModel* unsafe_arena_release_sensormodel(); + ::cielimMessage::SensorModel* PROTOBUF_NONNULL _internal_mutable_sensormodel(); + public: // .cielimMessage.AreaOfInterest areaOfInterest = 7; bool has_areaofinterest() const; - private: - bool _internal_has_areaofinterest() const; - public: - void clear_areaofinterest(); + void clear_areaofinterest() ; const ::cielimMessage::AreaOfInterest& areaofinterest() const; - PROTOBUF_MUST_USE_RESULT ::cielimMessage::AreaOfInterest* release_areaofinterest(); - ::cielimMessage::AreaOfInterest* mutable_areaofinterest(); - void set_allocated_areaofinterest(::cielimMessage::AreaOfInterest* areaofinterest); + [[nodiscard]] ::cielimMessage::AreaOfInterest* PROTOBUF_NULLABLE release_areaofinterest(); + ::cielimMessage::AreaOfInterest* PROTOBUF_NONNULL mutable_areaofinterest(); + void set_allocated_areaofinterest(::cielimMessage::AreaOfInterest* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_areaofinterest(::cielimMessage::AreaOfInterest* PROTOBUF_NULLABLE value); + ::cielimMessage::AreaOfInterest* PROTOBUF_NULLABLE unsafe_arena_release_areaofinterest(); + private: const ::cielimMessage::AreaOfInterest& _internal_areaofinterest() const; - ::cielimMessage::AreaOfInterest* _internal_mutable_areaofinterest(); - public: - void unsafe_arena_set_allocated_areaofinterest( - ::cielimMessage::AreaOfInterest* areaofinterest); - ::cielimMessage::AreaOfInterest* unsafe_arena_release_areaofinterest(); + ::cielimMessage::AreaOfInterest* PROTOBUF_NONNULL _internal_mutable_areaofinterest(); + public: // int64 cameraId = 1; - void clear_cameraid(); - ::PROTOBUF_NAMESPACE_ID::int64 cameraid() const; - void set_cameraid(::PROTOBUF_NAMESPACE_ID::int64 value); + void clear_cameraid() ; + ::int64_t cameraid() const; + void set_cameraid(::int64_t value); + private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_cameraid() const; - void _internal_set_cameraid(::PROTOBUF_NAMESPACE_ID::int64 value); - public: + ::int64_t _internal_cameraid() const; + void _internal_set_cameraid(::int64_t value); + public: // @@protoc_insertion_point(class_scope:cielimMessage.CameraModel) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > camerapositioninbody_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > bodyframetocameramrp_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parentname_; - ::cielimMessage::LensModel* lensmodel_; - ::cielimMessage::SensorModel* sensormodel_; - ::cielimMessage::AreaOfInterest* areaofinterest_; - ::PROTOBUF_NAMESPACE_ID::int64 cameraid_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 7, + 3, 44, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const CameraModel& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField camerapositioninbody_; + ::google::protobuf::RepeatedField bodyframetocameramrp_; + ::google::protobuf::internal::ArenaStringPtr parentname_; + ::cielimMessage::LensModel* PROTOBUF_NULLABLE lensmodel_; + ::cielimMessage::SensorModel* PROTOBUF_NULLABLE sensormodel_; + ::cielimMessage::AreaOfInterest* PROTOBUF_NULLABLE areaofinterest_; + ::int64_t cameraid_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_cielimMessage_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<26> CameraModel_class_data_; // ------------------------------------------------------------------- -class CielimMessage final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:cielimMessage.CielimMessage) */ { +class CielimMessage final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:cielimMessage.CielimMessage) */ { public: inline CielimMessage() : CielimMessage(nullptr) {} - ~CielimMessage() override; - explicit constexpr CielimMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~CielimMessage() PROTOBUF_FINAL; - CielimMessage(const CielimMessage& from); - CielimMessage(CielimMessage&& from) noexcept - : CielimMessage() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CielimMessage* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(CielimMessage)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR CielimMessage(::google::protobuf::internal::ConstantInitialized); + inline CielimMessage(const CielimMessage& from) : CielimMessage(nullptr, from) {} + inline CielimMessage(CielimMessage&& from) noexcept + : CielimMessage(nullptr, ::std::move(from)) {} inline CielimMessage& operator=(const CielimMessage& from) { CopyFrom(from); return *this; } inline CielimMessage& operator=(CielimMessage&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2881,78 +3508,102 @@ class CielimMessage final : return *this; } - static const CielimMessage& default_instance() { - return *internal_default_instance(); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - static inline const CielimMessage* internal_default_instance() { - return reinterpret_cast( - &_CielimMessage_default_instance_); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static constexpr int kIndexInFileMessages = - 13; - friend void swap(CielimMessage& a, CielimMessage& b) { - a.Swap(&b); + static const CielimMessage& default_instance() { + return *reinterpret_cast( + &_CielimMessage_default_instance_); } - inline void Swap(CielimMessage* other) { + static constexpr int kIndexInFileMessages = 13; + friend void swap(CielimMessage& a, CielimMessage& b) { a.Swap(&b); } + inline void Swap(CielimMessage* PROTOBUF_NONNULL other) { if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CielimMessage* other) { + void UnsafeArenaSwap(CielimMessage* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline CielimMessage* New() const final { - return new CielimMessage(); - } - - CielimMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + CielimMessage* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const CielimMessage& from); - void MergeFrom(const CielimMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const CielimMessage& from) { CielimMessage::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(CielimMessage* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "cielimMessage.CielimMessage"; + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; } - protected: - explicit CielimMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(CielimMessage* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "cielimMessage.CielimMessage"; } + + explicit CielimMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + CielimMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CielimMessage& from); + CielimMessage( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, CielimMessage&& from) noexcept + : CielimMessage(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); - std::string GetTypeName() const final; + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kCelestialBodiesFieldNumber = 4, kEpochFieldNumber = 1, @@ -2965,176 +3616,199 @@ class CielimMessage final : int celestialbodies_size() const; private: int _internal_celestialbodies_size() const; + public: - void clear_celestialbodies(); - ::cielimMessage::CelestialBody* mutable_celestialbodies(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::cielimMessage::CelestialBody >* - mutable_celestialbodies(); + void clear_celestialbodies() ; + ::cielimMessage::CelestialBody* PROTOBUF_NONNULL mutable_celestialbodies(int index); + ::google::protobuf::RepeatedPtrField<::cielimMessage::CelestialBody>* PROTOBUF_NONNULL mutable_celestialbodies(); + private: - const ::cielimMessage::CelestialBody& _internal_celestialbodies(int index) const; - ::cielimMessage::CelestialBody* _internal_add_celestialbodies(); + const ::google::protobuf::RepeatedPtrField<::cielimMessage::CelestialBody>& _internal_celestialbodies() const; + ::google::protobuf::RepeatedPtrField<::cielimMessage::CelestialBody>* PROTOBUF_NONNULL _internal_mutable_celestialbodies(); public: const ::cielimMessage::CelestialBody& celestialbodies(int index) const; - ::cielimMessage::CelestialBody* add_celestialbodies(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::cielimMessage::CelestialBody >& - celestialbodies() const; - + ::cielimMessage::CelestialBody* PROTOBUF_NONNULL add_celestialbodies(); + const ::google::protobuf::RepeatedPtrField<::cielimMessage::CelestialBody>& celestialbodies() const; // .cielimMessage.EpochDateTime epoch = 1; bool has_epoch() const; - private: - bool _internal_has_epoch() const; - public: - void clear_epoch(); + void clear_epoch() ; const ::cielimMessage::EpochDateTime& epoch() const; - PROTOBUF_MUST_USE_RESULT ::cielimMessage::EpochDateTime* release_epoch(); - ::cielimMessage::EpochDateTime* mutable_epoch(); - void set_allocated_epoch(::cielimMessage::EpochDateTime* epoch); + [[nodiscard]] ::cielimMessage::EpochDateTime* PROTOBUF_NULLABLE release_epoch(); + ::cielimMessage::EpochDateTime* PROTOBUF_NONNULL mutable_epoch(); + void set_allocated_epoch(::cielimMessage::EpochDateTime* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_epoch(::cielimMessage::EpochDateTime* PROTOBUF_NULLABLE value); + ::cielimMessage::EpochDateTime* PROTOBUF_NULLABLE unsafe_arena_release_epoch(); + private: const ::cielimMessage::EpochDateTime& _internal_epoch() const; - ::cielimMessage::EpochDateTime* _internal_mutable_epoch(); - public: - void unsafe_arena_set_allocated_epoch( - ::cielimMessage::EpochDateTime* epoch); - ::cielimMessage::EpochDateTime* unsafe_arena_release_epoch(); + ::cielimMessage::EpochDateTime* PROTOBUF_NONNULL _internal_mutable_epoch(); + public: // .cielimMessage.TimeStamp currentTime = 2; bool has_currenttime() const; - private: - bool _internal_has_currenttime() const; - public: - void clear_currenttime(); + void clear_currenttime() ; const ::cielimMessage::TimeStamp& currenttime() const; - PROTOBUF_MUST_USE_RESULT ::cielimMessage::TimeStamp* release_currenttime(); - ::cielimMessage::TimeStamp* mutable_currenttime(); - void set_allocated_currenttime(::cielimMessage::TimeStamp* currenttime); + [[nodiscard]] ::cielimMessage::TimeStamp* PROTOBUF_NULLABLE release_currenttime(); + ::cielimMessage::TimeStamp* PROTOBUF_NONNULL mutable_currenttime(); + void set_allocated_currenttime(::cielimMessage::TimeStamp* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_currenttime(::cielimMessage::TimeStamp* PROTOBUF_NULLABLE value); + ::cielimMessage::TimeStamp* PROTOBUF_NULLABLE unsafe_arena_release_currenttime(); + private: const ::cielimMessage::TimeStamp& _internal_currenttime() const; - ::cielimMessage::TimeStamp* _internal_mutable_currenttime(); - public: - void unsafe_arena_set_allocated_currenttime( - ::cielimMessage::TimeStamp* currenttime); - ::cielimMessage::TimeStamp* unsafe_arena_release_currenttime(); + ::cielimMessage::TimeStamp* PROTOBUF_NONNULL _internal_mutable_currenttime(); + public: // .cielimMessage.RenderingModel renderParameters = 3; bool has_renderparameters() const; - private: - bool _internal_has_renderparameters() const; - public: - void clear_renderparameters(); + void clear_renderparameters() ; const ::cielimMessage::RenderingModel& renderparameters() const; - PROTOBUF_MUST_USE_RESULT ::cielimMessage::RenderingModel* release_renderparameters(); - ::cielimMessage::RenderingModel* mutable_renderparameters(); - void set_allocated_renderparameters(::cielimMessage::RenderingModel* renderparameters); + [[nodiscard]] ::cielimMessage::RenderingModel* PROTOBUF_NULLABLE release_renderparameters(); + ::cielimMessage::RenderingModel* PROTOBUF_NONNULL mutable_renderparameters(); + void set_allocated_renderparameters(::cielimMessage::RenderingModel* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_renderparameters(::cielimMessage::RenderingModel* PROTOBUF_NULLABLE value); + ::cielimMessage::RenderingModel* PROTOBUF_NULLABLE unsafe_arena_release_renderparameters(); + private: const ::cielimMessage::RenderingModel& _internal_renderparameters() const; - ::cielimMessage::RenderingModel* _internal_mutable_renderparameters(); - public: - void unsafe_arena_set_allocated_renderparameters( - ::cielimMessage::RenderingModel* renderparameters); - ::cielimMessage::RenderingModel* unsafe_arena_release_renderparameters(); + ::cielimMessage::RenderingModel* PROTOBUF_NONNULL _internal_mutable_renderparameters(); + public: // .cielimMessage.Spacecraft spacecraft = 5; bool has_spacecraft() const; - private: - bool _internal_has_spacecraft() const; - public: - void clear_spacecraft(); + void clear_spacecraft() ; const ::cielimMessage::Spacecraft& spacecraft() const; - PROTOBUF_MUST_USE_RESULT ::cielimMessage::Spacecraft* release_spacecraft(); - ::cielimMessage::Spacecraft* mutable_spacecraft(); - void set_allocated_spacecraft(::cielimMessage::Spacecraft* spacecraft); + [[nodiscard]] ::cielimMessage::Spacecraft* PROTOBUF_NULLABLE release_spacecraft(); + ::cielimMessage::Spacecraft* PROTOBUF_NONNULL mutable_spacecraft(); + void set_allocated_spacecraft(::cielimMessage::Spacecraft* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_spacecraft(::cielimMessage::Spacecraft* PROTOBUF_NULLABLE value); + ::cielimMessage::Spacecraft* PROTOBUF_NULLABLE unsafe_arena_release_spacecraft(); + private: const ::cielimMessage::Spacecraft& _internal_spacecraft() const; - ::cielimMessage::Spacecraft* _internal_mutable_spacecraft(); - public: - void unsafe_arena_set_allocated_spacecraft( - ::cielimMessage::Spacecraft* spacecraft); - ::cielimMessage::Spacecraft* unsafe_arena_release_spacecraft(); + ::cielimMessage::Spacecraft* PROTOBUF_NONNULL _internal_mutable_spacecraft(); + public: // .cielimMessage.CameraModel camera = 6; bool has_camera() const; - private: - bool _internal_has_camera() const; - public: - void clear_camera(); + void clear_camera() ; const ::cielimMessage::CameraModel& camera() const; - PROTOBUF_MUST_USE_RESULT ::cielimMessage::CameraModel* release_camera(); - ::cielimMessage::CameraModel* mutable_camera(); - void set_allocated_camera(::cielimMessage::CameraModel* camera); + [[nodiscard]] ::cielimMessage::CameraModel* PROTOBUF_NULLABLE release_camera(); + ::cielimMessage::CameraModel* PROTOBUF_NONNULL mutable_camera(); + void set_allocated_camera(::cielimMessage::CameraModel* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_camera(::cielimMessage::CameraModel* PROTOBUF_NULLABLE value); + ::cielimMessage::CameraModel* PROTOBUF_NULLABLE unsafe_arena_release_camera(); + private: const ::cielimMessage::CameraModel& _internal_camera() const; - ::cielimMessage::CameraModel* _internal_mutable_camera(); - public: - void unsafe_arena_set_allocated_camera( - ::cielimMessage::CameraModel* camera); - ::cielimMessage::CameraModel* unsafe_arena_release_camera(); + ::cielimMessage::CameraModel* PROTOBUF_NONNULL _internal_mutable_camera(); + public: // @@protoc_insertion_point(class_scope:cielimMessage.CielimMessage) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::cielimMessage::CelestialBody > celestialbodies_; - ::cielimMessage::EpochDateTime* epoch_; - ::cielimMessage::TimeStamp* currenttime_; - ::cielimMessage::RenderingModel* renderparameters_; - ::cielimMessage::Spacecraft* spacecraft_; - ::cielimMessage::CameraModel* camera_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 6, + 6, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const CielimMessage& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::cielimMessage::CelestialBody > celestialbodies_; + ::cielimMessage::EpochDateTime* PROTOBUF_NULLABLE epoch_; + ::cielimMessage::TimeStamp* PROTOBUF_NULLABLE currenttime_; + ::cielimMessage::RenderingModel* PROTOBUF_NULLABLE renderparameters_; + ::cielimMessage::Spacecraft* PROTOBUF_NULLABLE spacecraft_; + ::cielimMessage::CameraModel* PROTOBUF_NULLABLE camera_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_cielimMessage_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<28> CielimMessage_class_data_; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // TimeStamp // int64 frameNumber = 1; inline void TimeStamp::clear_framenumber() { - framenumber_ = int64_t{0}; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 TimeStamp::_internal_framenumber() const { - return framenumber_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.framenumber_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline ::PROTOBUF_NAMESPACE_ID::int64 TimeStamp::framenumber() const { +inline ::int64_t TimeStamp::framenumber() const { // @@protoc_insertion_point(field_get:cielimMessage.TimeStamp.frameNumber) return _internal_framenumber(); } -inline void TimeStamp::_internal_set_framenumber(::PROTOBUF_NAMESPACE_ID::int64 value) { - - framenumber_ = value; -} -inline void TimeStamp::set_framenumber(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void TimeStamp::set_framenumber(::int64_t value) { _internal_set_framenumber(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:cielimMessage.TimeStamp.frameNumber) } +inline ::int64_t TimeStamp::_internal_framenumber() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.framenumber_; +} +inline void TimeStamp::_internal_set_framenumber(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.framenumber_ = value; +} // double simTimeElapsed = 2; inline void TimeStamp::clear_simtimeelapsed() { - simtimeelapsed_ = 0; -} -inline double TimeStamp::_internal_simtimeelapsed() const { - return simtimeelapsed_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.simtimeelapsed_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline double TimeStamp::simtimeelapsed() const { // @@protoc_insertion_point(field_get:cielimMessage.TimeStamp.simTimeElapsed) return _internal_simtimeelapsed(); } -inline void TimeStamp::_internal_set_simtimeelapsed(double value) { - - simtimeelapsed_ = value; -} inline void TimeStamp::set_simtimeelapsed(double value) { _internal_set_simtimeelapsed(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:cielimMessage.TimeStamp.simTimeElapsed) } +inline double TimeStamp::_internal_simtimeelapsed() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.simtimeelapsed_; +} +inline void TimeStamp::_internal_set_simtimeelapsed(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.simtimeelapsed_ = value; +} // ------------------------------------------------------------------- @@ -3142,123 +3816,153 @@ inline void TimeStamp::set_simtimeelapsed(double value) { // int32 year = 1; inline void EpochDateTime::clear_year() { - year_ = 0; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 EpochDateTime::_internal_year() const { - return year_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.year_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline ::PROTOBUF_NAMESPACE_ID::int32 EpochDateTime::year() const { +inline ::int32_t EpochDateTime::year() const { // @@protoc_insertion_point(field_get:cielimMessage.EpochDateTime.year) return _internal_year(); } -inline void EpochDateTime::_internal_set_year(::PROTOBUF_NAMESPACE_ID::int32 value) { - - year_ = value; -} -inline void EpochDateTime::set_year(::PROTOBUF_NAMESPACE_ID::int32 value) { +inline void EpochDateTime::set_year(::int32_t value) { _internal_set_year(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:cielimMessage.EpochDateTime.year) } +inline ::int32_t EpochDateTime::_internal_year() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.year_; +} +inline void EpochDateTime::_internal_set_year(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.year_ = value; +} // int32 month = 2; inline void EpochDateTime::clear_month() { - month_ = 0; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 EpochDateTime::_internal_month() const { - return month_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.month_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline ::PROTOBUF_NAMESPACE_ID::int32 EpochDateTime::month() const { +inline ::int32_t EpochDateTime::month() const { // @@protoc_insertion_point(field_get:cielimMessage.EpochDateTime.month) return _internal_month(); } -inline void EpochDateTime::_internal_set_month(::PROTOBUF_NAMESPACE_ID::int32 value) { - - month_ = value; -} -inline void EpochDateTime::set_month(::PROTOBUF_NAMESPACE_ID::int32 value) { +inline void EpochDateTime::set_month(::int32_t value) { _internal_set_month(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:cielimMessage.EpochDateTime.month) } +inline ::int32_t EpochDateTime::_internal_month() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.month_; +} +inline void EpochDateTime::_internal_set_month(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.month_ = value; +} // int32 day = 3; inline void EpochDateTime::clear_day() { - day_ = 0; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 EpochDateTime::_internal_day() const { - return day_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.day_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline ::PROTOBUF_NAMESPACE_ID::int32 EpochDateTime::day() const { +inline ::int32_t EpochDateTime::day() const { // @@protoc_insertion_point(field_get:cielimMessage.EpochDateTime.day) return _internal_day(); } -inline void EpochDateTime::_internal_set_day(::PROTOBUF_NAMESPACE_ID::int32 value) { - - day_ = value; -} -inline void EpochDateTime::set_day(::PROTOBUF_NAMESPACE_ID::int32 value) { +inline void EpochDateTime::set_day(::int32_t value) { _internal_set_day(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:cielimMessage.EpochDateTime.day) } +inline ::int32_t EpochDateTime::_internal_day() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.day_; +} +inline void EpochDateTime::_internal_set_day(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.day_ = value; +} // int32 hours = 4; inline void EpochDateTime::clear_hours() { - hours_ = 0; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 EpochDateTime::_internal_hours() const { - return hours_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.hours_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline ::PROTOBUF_NAMESPACE_ID::int32 EpochDateTime::hours() const { +inline ::int32_t EpochDateTime::hours() const { // @@protoc_insertion_point(field_get:cielimMessage.EpochDateTime.hours) return _internal_hours(); } -inline void EpochDateTime::_internal_set_hours(::PROTOBUF_NAMESPACE_ID::int32 value) { - - hours_ = value; -} -inline void EpochDateTime::set_hours(::PROTOBUF_NAMESPACE_ID::int32 value) { +inline void EpochDateTime::set_hours(::int32_t value) { _internal_set_hours(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:cielimMessage.EpochDateTime.hours) } +inline ::int32_t EpochDateTime::_internal_hours() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.hours_; +} +inline void EpochDateTime::_internal_set_hours(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.hours_ = value; +} // int32 minutes = 5; inline void EpochDateTime::clear_minutes() { - minutes_ = 0; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 EpochDateTime::_internal_minutes() const { - return minutes_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.minutes_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } -inline ::PROTOBUF_NAMESPACE_ID::int32 EpochDateTime::minutes() const { +inline ::int32_t EpochDateTime::minutes() const { // @@protoc_insertion_point(field_get:cielimMessage.EpochDateTime.minutes) return _internal_minutes(); } -inline void EpochDateTime::_internal_set_minutes(::PROTOBUF_NAMESPACE_ID::int32 value) { - - minutes_ = value; -} -inline void EpochDateTime::set_minutes(::PROTOBUF_NAMESPACE_ID::int32 value) { +inline void EpochDateTime::set_minutes(::int32_t value) { _internal_set_minutes(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:cielimMessage.EpochDateTime.minutes) } +inline ::int32_t EpochDateTime::_internal_minutes() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.minutes_; +} +inline void EpochDateTime::_internal_set_minutes(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.minutes_ = value; +} // double seconds = 6; inline void EpochDateTime::clear_seconds() { - seconds_ = 0; -} -inline double EpochDateTime::_internal_seconds() const { - return seconds_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.seconds_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline double EpochDateTime::seconds() const { // @@protoc_insertion_point(field_get:cielimMessage.EpochDateTime.seconds) return _internal_seconds(); } -inline void EpochDateTime::_internal_set_seconds(double value) { - - seconds_ = value; -} inline void EpochDateTime::set_seconds(double value) { _internal_set_seconds(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:cielimMessage.EpochDateTime.seconds) } +inline double EpochDateTime::_internal_seconds() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.seconds_; +} +inline void EpochDateTime::_internal_set_seconds(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.seconds_ = value; +} // ------------------------------------------------------------------- @@ -3266,189 +3970,243 @@ inline void EpochDateTime::set_seconds(double value) { // double wavelength1 = 1; inline void RenderingModel::clear_wavelength1() { - wavelength1_ = 0; -} -inline double RenderingModel::_internal_wavelength1() const { - return wavelength1_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.wavelength1_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline double RenderingModel::wavelength1() const { // @@protoc_insertion_point(field_get:cielimMessage.RenderingModel.wavelength1) return _internal_wavelength1(); } -inline void RenderingModel::_internal_set_wavelength1(double value) { - - wavelength1_ = value; -} inline void RenderingModel::set_wavelength1(double value) { _internal_set_wavelength1(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:cielimMessage.RenderingModel.wavelength1) } +inline double RenderingModel::_internal_wavelength1() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.wavelength1_; +} +inline void RenderingModel::_internal_set_wavelength1(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.wavelength1_ = value; +} // double wavelength2 = 2; inline void RenderingModel::clear_wavelength2() { - wavelength2_ = 0; -} -inline double RenderingModel::_internal_wavelength2() const { - return wavelength2_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.wavelength2_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline double RenderingModel::wavelength2() const { // @@protoc_insertion_point(field_get:cielimMessage.RenderingModel.wavelength2) return _internal_wavelength2(); } -inline void RenderingModel::_internal_set_wavelength2(double value) { - - wavelength2_ = value; -} inline void RenderingModel::set_wavelength2(double value) { _internal_set_wavelength2(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:cielimMessage.RenderingModel.wavelength2) } +inline double RenderingModel::_internal_wavelength2() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.wavelength2_; +} +inline void RenderingModel::_internal_set_wavelength2(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.wavelength2_ = value; +} // double wavelength3 = 3; inline void RenderingModel::clear_wavelength3() { - wavelength3_ = 0; -} -inline double RenderingModel::_internal_wavelength3() const { - return wavelength3_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.wavelength3_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline double RenderingModel::wavelength3() const { // @@protoc_insertion_point(field_get:cielimMessage.RenderingModel.wavelength3) return _internal_wavelength3(); } -inline void RenderingModel::_internal_set_wavelength3(double value) { - - wavelength3_ = value; -} inline void RenderingModel::set_wavelength3(double value) { _internal_set_wavelength3(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:cielimMessage.RenderingModel.wavelength3) } +inline double RenderingModel::_internal_wavelength3() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.wavelength3_; +} +inline void RenderingModel::_internal_set_wavelength3(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.wavelength3_ = value; +} // double cosmicRayStdDeviation = 4; inline void RenderingModel::clear_cosmicraystddeviation() { - cosmicraystddeviation_ = 0; -} -inline double RenderingModel::_internal_cosmicraystddeviation() const { - return cosmicraystddeviation_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.cosmicraystddeviation_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline double RenderingModel::cosmicraystddeviation() const { // @@protoc_insertion_point(field_get:cielimMessage.RenderingModel.cosmicRayStdDeviation) return _internal_cosmicraystddeviation(); } -inline void RenderingModel::_internal_set_cosmicraystddeviation(double value) { - - cosmicraystddeviation_ = value; -} inline void RenderingModel::set_cosmicraystddeviation(double value) { _internal_set_cosmicraystddeviation(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:cielimMessage.RenderingModel.cosmicRayStdDeviation) } +inline double RenderingModel::_internal_cosmicraystddeviation() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.cosmicraystddeviation_; +} +inline void RenderingModel::_internal_set_cosmicraystddeviation(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.cosmicraystddeviation_ = value; +} // double strayLight = 5; inline void RenderingModel::clear_straylight() { - straylight_ = 0; -} -inline double RenderingModel::_internal_straylight() const { - return straylight_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.straylight_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline double RenderingModel::straylight() const { // @@protoc_insertion_point(field_get:cielimMessage.RenderingModel.strayLight) return _internal_straylight(); } -inline void RenderingModel::_internal_set_straylight(double value) { - - straylight_ = value; -} inline void RenderingModel::set_straylight(double value) { _internal_set_straylight(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:cielimMessage.RenderingModel.strayLight) } +inline double RenderingModel::_internal_straylight() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.straylight_; +} +inline void RenderingModel::_internal_set_straylight(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.straylight_ = value; +} // bool starField = 6; inline void RenderingModel::clear_starfield() { - starfield_ = false; -} -inline bool RenderingModel::_internal_starfield() const { - return starfield_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.starfield_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline bool RenderingModel::starfield() const { // @@protoc_insertion_point(field_get:cielimMessage.RenderingModel.starField) return _internal_starfield(); } -inline void RenderingModel::_internal_set_starfield(bool value) { - - starfield_ = value; -} inline void RenderingModel::set_starfield(bool value) { _internal_set_starfield(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:cielimMessage.RenderingModel.starField) } +inline bool RenderingModel::_internal_starfield() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.starfield_; +} +inline void RenderingModel::_internal_set_starfield(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.starfield_ = value; +} // string rendering = 7; inline void RenderingModel::clear_rendering() { - rendering_.ClearToEmpty(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.rendering_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& RenderingModel::rendering() const { +inline const ::std::string& RenderingModel::rendering() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:cielimMessage.RenderingModel.rendering) return _internal_rendering(); } -template -inline PROTOBUF_ALWAYS_INLINE -void RenderingModel::set_rendering(ArgT0&& arg0, ArgT... args) { - - rendering_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void RenderingModel::set_rendering(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.rendering_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:cielimMessage.RenderingModel.rendering) } -inline std::string* RenderingModel::mutable_rendering() { - std::string* _s = _internal_mutable_rendering(); +inline ::std::string* PROTOBUF_NONNULL RenderingModel::mutable_rendering() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_rendering(); // @@protoc_insertion_point(field_mutable:cielimMessage.RenderingModel.rendering) return _s; } -inline const std::string& RenderingModel::_internal_rendering() const { - return rendering_.Get(); +inline const ::std::string& RenderingModel::_internal_rendering() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.rendering_.Get(); } -inline void RenderingModel::_internal_set_rendering(const std::string& value) { - - rendering_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void RenderingModel::_internal_set_rendering(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.rendering_.Set(value, GetArena()); } -inline std::string* RenderingModel::_internal_mutable_rendering() { - - return rendering_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL RenderingModel::_internal_mutable_rendering() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.rendering_.Mutable( GetArena()); } -inline std::string* RenderingModel::release_rendering() { +inline ::std::string* PROTOBUF_NULLABLE RenderingModel::release_rendering() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:cielimMessage.RenderingModel.rendering) - return rendering_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.rendering_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.rendering_.Set("", GetArena()); + } + return released; } -inline void RenderingModel::set_allocated_rendering(std::string* rendering) { - if (rendering != nullptr) { - +inline void RenderingModel::set_allocated_rendering(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + _impl_.rendering_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.rendering_.IsDefault()) { + _impl_.rendering_.Set("", GetArena()); } - rendering_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), rendering, - GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:cielimMessage.RenderingModel.rendering) } // bool enableSmear = 8; inline void RenderingModel::clear_enablesmear() { - enablesmear_ = false; -} -inline bool RenderingModel::_internal_enablesmear() const { - return enablesmear_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.enablesmear_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline bool RenderingModel::enablesmear() const { // @@protoc_insertion_point(field_get:cielimMessage.RenderingModel.enableSmear) return _internal_enablesmear(); } -inline void RenderingModel::_internal_set_enablesmear(bool value) { - - enablesmear_ = value; -} inline void RenderingModel::set_enablesmear(bool value) { _internal_set_enablesmear(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:cielimMessage.RenderingModel.enableSmear) } +inline bool RenderingModel::_internal_enablesmear() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.enablesmear_; +} +inline void RenderingModel::_internal_set_enablesmear(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.enablesmear_ = value; +} // ------------------------------------------------------------------- @@ -3456,83 +4214,103 @@ inline void RenderingModel::set_enablesmear(bool value) { // int32 octaveCount = 1; inline void PerlinNoise::clear_octavecount() { - octavecount_ = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.octavecount_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline ::PROTOBUF_NAMESPACE_ID::int32 PerlinNoise::_internal_octavecount() const { - return octavecount_; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 PerlinNoise::octavecount() const { +inline ::int32_t PerlinNoise::octavecount() const { // @@protoc_insertion_point(field_get:cielimMessage.PerlinNoise.octaveCount) return _internal_octavecount(); } -inline void PerlinNoise::_internal_set_octavecount(::PROTOBUF_NAMESPACE_ID::int32 value) { - - octavecount_ = value; -} -inline void PerlinNoise::set_octavecount(::PROTOBUF_NAMESPACE_ID::int32 value) { +inline void PerlinNoise::set_octavecount(::int32_t value) { _internal_set_octavecount(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:cielimMessage.PerlinNoise.octaveCount) } +inline ::int32_t PerlinNoise::_internal_octavecount() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.octavecount_; +} +inline void PerlinNoise::_internal_set_octavecount(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.octavecount_ = value; +} // double baseFrequency = 2; inline void PerlinNoise::clear_basefrequency() { - basefrequency_ = 0; -} -inline double PerlinNoise::_internal_basefrequency() const { - return basefrequency_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.basefrequency_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline double PerlinNoise::basefrequency() const { // @@protoc_insertion_point(field_get:cielimMessage.PerlinNoise.baseFrequency) return _internal_basefrequency(); } -inline void PerlinNoise::_internal_set_basefrequency(double value) { - - basefrequency_ = value; -} inline void PerlinNoise::set_basefrequency(double value) { _internal_set_basefrequency(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:cielimMessage.PerlinNoise.baseFrequency) } +inline double PerlinNoise::_internal_basefrequency() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.basefrequency_; +} +inline void PerlinNoise::_internal_set_basefrequency(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.basefrequency_ = value; +} // double baseAmplitude = 3; inline void PerlinNoise::clear_baseamplitude() { - baseamplitude_ = 0; -} -inline double PerlinNoise::_internal_baseamplitude() const { - return baseamplitude_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.baseamplitude_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline double PerlinNoise::baseamplitude() const { // @@protoc_insertion_point(field_get:cielimMessage.PerlinNoise.baseAmplitude) return _internal_baseamplitude(); } -inline void PerlinNoise::_internal_set_baseamplitude(double value) { - - baseamplitude_ = value; -} inline void PerlinNoise::set_baseamplitude(double value) { _internal_set_baseamplitude(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:cielimMessage.PerlinNoise.baseAmplitude) } +inline double PerlinNoise::_internal_baseamplitude() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.baseamplitude_; +} +inline void PerlinNoise::_internal_set_baseamplitude(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.baseamplitude_ = value; +} // double persistence = 4; inline void PerlinNoise::clear_persistence() { - persistence_ = 0; -} -inline double PerlinNoise::_internal_persistence() const { - return persistence_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.persistence_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline double PerlinNoise::persistence() const { // @@protoc_insertion_point(field_get:cielimMessage.PerlinNoise.persistence) return _internal_persistence(); } -inline void PerlinNoise::_internal_set_persistence(double value) { - - persistence_ = value; -} inline void PerlinNoise::set_persistence(double value) { _internal_set_persistence(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:cielimMessage.PerlinNoise.persistence) } +inline double PerlinNoise::_internal_persistence() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.persistence_; +} +inline void PerlinNoise::_internal_set_persistence(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.persistence_ = value; +} // ------------------------------------------------------------------- @@ -3540,116 +4318,143 @@ inline void PerlinNoise::set_persistence(double value) { // string brdfModel = 1; inline void ReflectanceModel::clear_brdfmodel() { - brdfmodel_.ClearToEmpty(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.brdfmodel_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& ReflectanceModel::brdfmodel() const { +inline const ::std::string& ReflectanceModel::brdfmodel() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:cielimMessage.ReflectanceModel.brdfModel) return _internal_brdfmodel(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ReflectanceModel::set_brdfmodel(ArgT0&& arg0, ArgT... args) { - - brdfmodel_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void ReflectanceModel::set_brdfmodel(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_.brdfmodel_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:cielimMessage.ReflectanceModel.brdfModel) } -inline std::string* ReflectanceModel::mutable_brdfmodel() { - std::string* _s = _internal_mutable_brdfmodel(); +inline ::std::string* PROTOBUF_NONNULL ReflectanceModel::mutable_brdfmodel() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_brdfmodel(); // @@protoc_insertion_point(field_mutable:cielimMessage.ReflectanceModel.brdfModel) return _s; } -inline const std::string& ReflectanceModel::_internal_brdfmodel() const { - return brdfmodel_.Get(); +inline const ::std::string& ReflectanceModel::_internal_brdfmodel() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.brdfmodel_.Get(); } -inline void ReflectanceModel::_internal_set_brdfmodel(const std::string& value) { - - brdfmodel_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void ReflectanceModel::_internal_set_brdfmodel(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.brdfmodel_.Set(value, GetArena()); } -inline std::string* ReflectanceModel::_internal_mutable_brdfmodel() { - - return brdfmodel_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL ReflectanceModel::_internal_mutable_brdfmodel() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.brdfmodel_.Mutable( GetArena()); } -inline std::string* ReflectanceModel::release_brdfmodel() { +inline ::std::string* PROTOBUF_NULLABLE ReflectanceModel::release_brdfmodel() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:cielimMessage.ReflectanceModel.brdfModel) - return brdfmodel_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.brdfmodel_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.brdfmodel_.Set("", GetArena()); + } + return released; } -inline void ReflectanceModel::set_allocated_brdfmodel(std::string* brdfmodel) { - if (brdfmodel != nullptr) { - +inline void ReflectanceModel::set_allocated_brdfmodel(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } + _impl_.brdfmodel_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.brdfmodel_.IsDefault()) { + _impl_.brdfmodel_.Set("", GetArena()); } - brdfmodel_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), brdfmodel, - GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:cielimMessage.ReflectanceModel.brdfModel) } // double isotropicScattering = 2; inline void ReflectanceModel::clear_isotropicscattering() { - isotropicscattering_ = 0; -} -inline double ReflectanceModel::_internal_isotropicscattering() const { - return isotropicscattering_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.isotropicscattering_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline double ReflectanceModel::isotropicscattering() const { // @@protoc_insertion_point(field_get:cielimMessage.ReflectanceModel.isotropicScattering) return _internal_isotropicscattering(); } -inline void ReflectanceModel::_internal_set_isotropicscattering(double value) { - - isotropicscattering_ = value; -} inline void ReflectanceModel::set_isotropicscattering(double value) { _internal_set_isotropicscattering(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:cielimMessage.ReflectanceModel.isotropicScattering) } +inline double ReflectanceModel::_internal_isotropicscattering() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.isotropicscattering_; +} +inline void ReflectanceModel::_internal_set_isotropicscattering(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.isotropicscattering_ = value; +} // repeated double reflectanceParameters = 3; inline int ReflectanceModel::_internal_reflectanceparameters_size() const { - return reflectanceparameters_.size(); + return _internal_reflectanceparameters().size(); } inline int ReflectanceModel::reflectanceparameters_size() const { return _internal_reflectanceparameters_size(); } inline void ReflectanceModel::clear_reflectanceparameters() { - reflectanceparameters_.Clear(); -} -inline double ReflectanceModel::_internal_reflectanceparameters(int index) const { - return reflectanceparameters_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.reflectanceparameters_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } inline double ReflectanceModel::reflectanceparameters(int index) const { // @@protoc_insertion_point(field_get:cielimMessage.ReflectanceModel.reflectanceParameters) - return _internal_reflectanceparameters(index); + return _internal_reflectanceparameters().Get(index); } inline void ReflectanceModel::set_reflectanceparameters(int index, double value) { - reflectanceparameters_.Set(index, value); + _internal_mutable_reflectanceparameters()->Set(index, value); // @@protoc_insertion_point(field_set:cielimMessage.ReflectanceModel.reflectanceParameters) } -inline void ReflectanceModel::_internal_add_reflectanceparameters(double value) { - reflectanceparameters_.Add(value); -} inline void ReflectanceModel::add_reflectanceparameters(double value) { - _internal_add_reflectanceparameters(value); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_reflectanceparameters()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:cielimMessage.ReflectanceModel.reflectanceParameters) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -ReflectanceModel::_internal_reflectanceparameters() const { - return reflectanceparameters_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -ReflectanceModel::reflectanceparameters() const { +inline const ::google::protobuf::RepeatedField& ReflectanceModel::reflectanceparameters() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:cielimMessage.ReflectanceModel.reflectanceParameters) return _internal_reflectanceparameters(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -ReflectanceModel::_internal_mutable_reflectanceparameters() { - return &reflectanceparameters_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -ReflectanceModel::mutable_reflectanceparameters() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL ReflectanceModel::mutable_reflectanceparameters() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:cielimMessage.ReflectanceModel.reflectanceParameters) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_reflectanceparameters(); } +inline const ::google::protobuf::RepeatedField& +ReflectanceModel::_internal_reflectanceparameters() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.reflectanceparameters_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +ReflectanceModel::_internal_mutable_reflectanceparameters() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.reflectanceparameters_; +} // ------------------------------------------------------------------- @@ -3657,383 +4462,441 @@ ReflectanceModel::mutable_reflectanceparameters() { // string shapeModel = 1; inline void MeshModel::clear_shapemodel() { - shapemodel_.ClearToEmpty(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.shapemodel_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& MeshModel::shapemodel() const { +inline const ::std::string& MeshModel::shapemodel() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:cielimMessage.MeshModel.shapeModel) return _internal_shapemodel(); } -template -inline PROTOBUF_ALWAYS_INLINE -void MeshModel::set_shapemodel(ArgT0&& arg0, ArgT... args) { - - shapemodel_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void MeshModel::set_shapemodel(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.shapemodel_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:cielimMessage.MeshModel.shapeModel) } -inline std::string* MeshModel::mutable_shapemodel() { - std::string* _s = _internal_mutable_shapemodel(); +inline ::std::string* PROTOBUF_NONNULL MeshModel::mutable_shapemodel() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_shapemodel(); // @@protoc_insertion_point(field_mutable:cielimMessage.MeshModel.shapeModel) return _s; } -inline const std::string& MeshModel::_internal_shapemodel() const { - return shapemodel_.Get(); +inline const ::std::string& MeshModel::_internal_shapemodel() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.shapemodel_.Get(); } -inline void MeshModel::_internal_set_shapemodel(const std::string& value) { - - shapemodel_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void MeshModel::_internal_set_shapemodel(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.shapemodel_.Set(value, GetArena()); } -inline std::string* MeshModel::_internal_mutable_shapemodel() { - - return shapemodel_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL MeshModel::_internal_mutable_shapemodel() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.shapemodel_.Mutable( GetArena()); } -inline std::string* MeshModel::release_shapemodel() { +inline ::std::string* PROTOBUF_NULLABLE MeshModel::release_shapemodel() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:cielimMessage.MeshModel.shapeModel) - return shapemodel_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.shapemodel_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.shapemodel_.Set("", GetArena()); + } + return released; } -inline void MeshModel::set_allocated_shapemodel(std::string* shapemodel) { - if (shapemodel != nullptr) { - +inline void MeshModel::set_allocated_shapemodel(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + } + _impl_.shapemodel_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.shapemodel_.IsDefault()) { + _impl_.shapemodel_.Set("", GetArena()); } - shapemodel_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), shapemodel, - GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:cielimMessage.MeshModel.shapeModel) } // double meanRadius = 2; inline void MeshModel::clear_meanradius() { - meanradius_ = 0; -} -inline double MeshModel::_internal_meanradius() const { - return meanradius_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.meanradius_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline double MeshModel::meanradius() const { // @@protoc_insertion_point(field_get:cielimMessage.MeshModel.meanRadius) return _internal_meanradius(); } -inline void MeshModel::_internal_set_meanradius(double value) { - - meanradius_ = value; -} inline void MeshModel::set_meanradius(double value) { _internal_set_meanradius(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:cielimMessage.MeshModel.meanRadius) } +inline double MeshModel::_internal_meanradius() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.meanradius_; +} +inline void MeshModel::_internal_set_meanradius(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.meanradius_ = value; +} // double geometricAlbedo = 3; inline void MeshModel::clear_geometricalbedo() { - geometricalbedo_ = 0; -} -inline double MeshModel::_internal_geometricalbedo() const { - return geometricalbedo_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.geometricalbedo_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline double MeshModel::geometricalbedo() const { // @@protoc_insertion_point(field_get:cielimMessage.MeshModel.geometricAlbedo) return _internal_geometricalbedo(); } -inline void MeshModel::_internal_set_geometricalbedo(double value) { - - geometricalbedo_ = value; -} inline void MeshModel::set_geometricalbedo(double value) { _internal_set_geometricalbedo(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:cielimMessage.MeshModel.geometricAlbedo) } +inline double MeshModel::_internal_geometricalbedo() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.geometricalbedo_; +} +inline void MeshModel::_internal_set_geometricalbedo(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.geometricalbedo_ = value; +} // repeated double principalAxisDistortion = 4; inline int MeshModel::_internal_principalaxisdistortion_size() const { - return principalaxisdistortion_.size(); + return _internal_principalaxisdistortion().size(); } inline int MeshModel::principalaxisdistortion_size() const { return _internal_principalaxisdistortion_size(); } inline void MeshModel::clear_principalaxisdistortion() { - principalaxisdistortion_.Clear(); -} -inline double MeshModel::_internal_principalaxisdistortion(int index) const { - return principalaxisdistortion_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.principalaxisdistortion_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } inline double MeshModel::principalaxisdistortion(int index) const { // @@protoc_insertion_point(field_get:cielimMessage.MeshModel.principalAxisDistortion) - return _internal_principalaxisdistortion(index); + return _internal_principalaxisdistortion().Get(index); } inline void MeshModel::set_principalaxisdistortion(int index, double value) { - principalaxisdistortion_.Set(index, value); + _internal_mutable_principalaxisdistortion()->Set(index, value); // @@protoc_insertion_point(field_set:cielimMessage.MeshModel.principalAxisDistortion) } -inline void MeshModel::_internal_add_principalaxisdistortion(double value) { - principalaxisdistortion_.Add(value); -} inline void MeshModel::add_principalaxisdistortion(double value) { - _internal_add_principalaxisdistortion(value); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_principalaxisdistortion()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:cielimMessage.MeshModel.principalAxisDistortion) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -MeshModel::_internal_principalaxisdistortion() const { - return principalaxisdistortion_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -MeshModel::principalaxisdistortion() const { +inline const ::google::protobuf::RepeatedField& MeshModel::principalaxisdistortion() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:cielimMessage.MeshModel.principalAxisDistortion) return _internal_principalaxisdistortion(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -MeshModel::_internal_mutable_principalaxisdistortion() { - return &principalaxisdistortion_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -MeshModel::mutable_principalaxisdistortion() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL MeshModel::mutable_principalaxisdistortion() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:cielimMessage.MeshModel.principalAxisDistortion) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_principalaxisdistortion(); } +inline const ::google::protobuf::RepeatedField& +MeshModel::_internal_principalaxisdistortion() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.principalaxisdistortion_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +MeshModel::_internal_mutable_principalaxisdistortion() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.principalaxisdistortion_; +} // repeated double inertialToBodyMrp = 5; inline int MeshModel::_internal_inertialtobodymrp_size() const { - return inertialtobodymrp_.size(); + return _internal_inertialtobodymrp().size(); } inline int MeshModel::inertialtobodymrp_size() const { return _internal_inertialtobodymrp_size(); } inline void MeshModel::clear_inertialtobodymrp() { - inertialtobodymrp_.Clear(); -} -inline double MeshModel::_internal_inertialtobodymrp(int index) const { - return inertialtobodymrp_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.inertialtobodymrp_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000002U); } inline double MeshModel::inertialtobodymrp(int index) const { // @@protoc_insertion_point(field_get:cielimMessage.MeshModel.inertialToBodyMrp) - return _internal_inertialtobodymrp(index); + return _internal_inertialtobodymrp().Get(index); } inline void MeshModel::set_inertialtobodymrp(int index, double value) { - inertialtobodymrp_.Set(index, value); + _internal_mutable_inertialtobodymrp()->Set(index, value); // @@protoc_insertion_point(field_set:cielimMessage.MeshModel.inertialToBodyMrp) } -inline void MeshModel::_internal_add_inertialtobodymrp(double value) { - inertialtobodymrp_.Add(value); -} inline void MeshModel::add_inertialtobodymrp(double value) { - _internal_add_inertialtobodymrp(value); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_inertialtobodymrp()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add:cielimMessage.MeshModel.inertialToBodyMrp) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -MeshModel::_internal_inertialtobodymrp() const { - return inertialtobodymrp_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -MeshModel::inertialtobodymrp() const { +inline const ::google::protobuf::RepeatedField& MeshModel::inertialtobodymrp() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:cielimMessage.MeshModel.inertialToBodyMrp) return _internal_inertialtobodymrp(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -MeshModel::_internal_mutable_inertialtobodymrp() { - return &inertialtobodymrp_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -MeshModel::mutable_inertialtobodymrp() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL MeshModel::mutable_inertialtobodymrp() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_mutable_list:cielimMessage.MeshModel.inertialToBodyMrp) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_inertialtobodymrp(); } +inline const ::google::protobuf::RepeatedField& +MeshModel::_internal_inertialtobodymrp() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.inertialtobodymrp_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +MeshModel::_internal_mutable_inertialtobodymrp() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.inertialtobodymrp_; +} // .cielimMessage.ReflectanceModel refModel = 6; -inline bool MeshModel::_internal_has_refmodel() const { - return this != internal_default_instance() && refmodel_ != nullptr; -} inline bool MeshModel::has_refmodel() const { - return _internal_has_refmodel(); + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + PROTOBUF_ASSUME(!value || _impl_.refmodel_ != nullptr); + return value; } inline void MeshModel::clear_refmodel() { - if (GetArenaForAllocation() == nullptr && refmodel_ != nullptr) { - delete refmodel_; - } - refmodel_ = nullptr; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.refmodel_ != nullptr) _impl_.refmodel_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline const ::cielimMessage::ReflectanceModel& MeshModel::_internal_refmodel() const { - const ::cielimMessage::ReflectanceModel* p = refmodel_; - return p != nullptr ? *p : reinterpret_cast( - ::cielimMessage::_ReflectanceModel_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::cielimMessage::ReflectanceModel* p = _impl_.refmodel_; + return p != nullptr ? *p : reinterpret_cast(::cielimMessage::_ReflectanceModel_default_instance_); } -inline const ::cielimMessage::ReflectanceModel& MeshModel::refmodel() const { +inline const ::cielimMessage::ReflectanceModel& MeshModel::refmodel() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:cielimMessage.MeshModel.refModel) return _internal_refmodel(); } inline void MeshModel::unsafe_arena_set_allocated_refmodel( - ::cielimMessage::ReflectanceModel* refmodel) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(refmodel_); - } - refmodel_ = refmodel; - if (refmodel) { - + ::cielimMessage::ReflectanceModel* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.refmodel_); + } + _impl_.refmodel_ = reinterpret_cast<::cielimMessage::ReflectanceModel*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:cielimMessage.MeshModel.refModel) } -inline ::cielimMessage::ReflectanceModel* MeshModel::release_refmodel() { - - ::cielimMessage::ReflectanceModel* temp = refmodel_; - refmodel_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; +inline ::cielimMessage::ReflectanceModel* PROTOBUF_NULLABLE MeshModel::release_refmodel() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::cielimMessage::ReflectanceModel* released = _impl_.refmodel_; + _impl_.refmodel_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } -inline ::cielimMessage::ReflectanceModel* MeshModel::unsafe_arena_release_refmodel() { +inline ::cielimMessage::ReflectanceModel* PROTOBUF_NULLABLE MeshModel::unsafe_arena_release_refmodel() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:cielimMessage.MeshModel.refModel) - - ::cielimMessage::ReflectanceModel* temp = refmodel_; - refmodel_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::cielimMessage::ReflectanceModel* temp = _impl_.refmodel_; + _impl_.refmodel_ = nullptr; return temp; } -inline ::cielimMessage::ReflectanceModel* MeshModel::_internal_mutable_refmodel() { - - if (refmodel_ == nullptr) { - auto* p = CreateMaybeMessage<::cielimMessage::ReflectanceModel>(GetArenaForAllocation()); - refmodel_ = p; +inline ::cielimMessage::ReflectanceModel* PROTOBUF_NONNULL MeshModel::_internal_mutable_refmodel() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.refmodel_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::cielimMessage::ReflectanceModel>(GetArena()); + _impl_.refmodel_ = reinterpret_cast<::cielimMessage::ReflectanceModel*>(p); } - return refmodel_; + return _impl_.refmodel_; } -inline ::cielimMessage::ReflectanceModel* MeshModel::mutable_refmodel() { +inline ::cielimMessage::ReflectanceModel* PROTOBUF_NONNULL MeshModel::mutable_refmodel() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::cielimMessage::ReflectanceModel* _msg = _internal_mutable_refmodel(); // @@protoc_insertion_point(field_mutable:cielimMessage.MeshModel.refModel) return _msg; } -inline void MeshModel::set_allocated_refmodel(::cielimMessage::ReflectanceModel* refmodel) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void MeshModel::set_allocated_refmodel(::cielimMessage::ReflectanceModel* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete refmodel_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.refmodel_); } - if (refmodel) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::cielimMessage::ReflectanceModel>::GetOwningArena(refmodel); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - refmodel = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, refmodel, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } - refmodel_ = refmodel; + + _impl_.refmodel_ = reinterpret_cast<::cielimMessage::ReflectanceModel*>(value); // @@protoc_insertion_point(field_set_allocated:cielimMessage.MeshModel.refModel) } // .cielimMessage.PerlinNoise perlinNoise = 7; -inline bool MeshModel::_internal_has_perlinnoise() const { - return this != internal_default_instance() && perlinnoise_ != nullptr; -} inline bool MeshModel::has_perlinnoise() const { - return _internal_has_perlinnoise(); + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); + PROTOBUF_ASSUME(!value || _impl_.perlinnoise_ != nullptr); + return value; } inline void MeshModel::clear_perlinnoise() { - if (GetArenaForAllocation() == nullptr && perlinnoise_ != nullptr) { - delete perlinnoise_; - } - perlinnoise_ = nullptr; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.perlinnoise_ != nullptr) _impl_.perlinnoise_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline const ::cielimMessage::PerlinNoise& MeshModel::_internal_perlinnoise() const { - const ::cielimMessage::PerlinNoise* p = perlinnoise_; - return p != nullptr ? *p : reinterpret_cast( - ::cielimMessage::_PerlinNoise_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::cielimMessage::PerlinNoise* p = _impl_.perlinnoise_; + return p != nullptr ? *p : reinterpret_cast(::cielimMessage::_PerlinNoise_default_instance_); } -inline const ::cielimMessage::PerlinNoise& MeshModel::perlinnoise() const { +inline const ::cielimMessage::PerlinNoise& MeshModel::perlinnoise() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:cielimMessage.MeshModel.perlinNoise) return _internal_perlinnoise(); } inline void MeshModel::unsafe_arena_set_allocated_perlinnoise( - ::cielimMessage::PerlinNoise* perlinnoise) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(perlinnoise_); - } - perlinnoise_ = perlinnoise; - if (perlinnoise) { - + ::cielimMessage::PerlinNoise* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.perlinnoise_); + } + _impl_.perlinnoise_ = reinterpret_cast<::cielimMessage::PerlinNoise*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:cielimMessage.MeshModel.perlinNoise) } -inline ::cielimMessage::PerlinNoise* MeshModel::release_perlinnoise() { - - ::cielimMessage::PerlinNoise* temp = perlinnoise_; - perlinnoise_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; +inline ::cielimMessage::PerlinNoise* PROTOBUF_NULLABLE MeshModel::release_perlinnoise() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + ::cielimMessage::PerlinNoise* released = _impl_.perlinnoise_; + _impl_.perlinnoise_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } -inline ::cielimMessage::PerlinNoise* MeshModel::unsafe_arena_release_perlinnoise() { +inline ::cielimMessage::PerlinNoise* PROTOBUF_NULLABLE MeshModel::unsafe_arena_release_perlinnoise() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:cielimMessage.MeshModel.perlinNoise) - - ::cielimMessage::PerlinNoise* temp = perlinnoise_; - perlinnoise_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + ::cielimMessage::PerlinNoise* temp = _impl_.perlinnoise_; + _impl_.perlinnoise_ = nullptr; return temp; } -inline ::cielimMessage::PerlinNoise* MeshModel::_internal_mutable_perlinnoise() { - - if (perlinnoise_ == nullptr) { - auto* p = CreateMaybeMessage<::cielimMessage::PerlinNoise>(GetArenaForAllocation()); - perlinnoise_ = p; +inline ::cielimMessage::PerlinNoise* PROTOBUF_NONNULL MeshModel::_internal_mutable_perlinnoise() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.perlinnoise_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::cielimMessage::PerlinNoise>(GetArena()); + _impl_.perlinnoise_ = reinterpret_cast<::cielimMessage::PerlinNoise*>(p); } - return perlinnoise_; + return _impl_.perlinnoise_; } -inline ::cielimMessage::PerlinNoise* MeshModel::mutable_perlinnoise() { +inline ::cielimMessage::PerlinNoise* PROTOBUF_NONNULL MeshModel::mutable_perlinnoise() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); ::cielimMessage::PerlinNoise* _msg = _internal_mutable_perlinnoise(); // @@protoc_insertion_point(field_mutable:cielimMessage.MeshModel.perlinNoise) return _msg; } -inline void MeshModel::set_allocated_perlinnoise(::cielimMessage::PerlinNoise* perlinnoise) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void MeshModel::set_allocated_perlinnoise(::cielimMessage::PerlinNoise* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete perlinnoise_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.perlinnoise_); } - if (perlinnoise) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::cielimMessage::PerlinNoise>::GetOwningArena(perlinnoise); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - perlinnoise = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, perlinnoise, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } - perlinnoise_ = perlinnoise; + + _impl_.perlinnoise_ = reinterpret_cast<::cielimMessage::PerlinNoise*>(value); // @@protoc_insertion_point(field_set_allocated:cielimMessage.MeshModel.perlinNoise) } // double proceduralRocks = 8; inline void MeshModel::clear_proceduralrocks() { - proceduralrocks_ = 0; -} -inline double MeshModel::_internal_proceduralrocks() const { - return proceduralrocks_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.proceduralrocks_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline double MeshModel::proceduralrocks() const { // @@protoc_insertion_point(field_get:cielimMessage.MeshModel.proceduralRocks) return _internal_proceduralrocks(); } -inline void MeshModel::_internal_set_proceduralrocks(double value) { - - proceduralrocks_ = value; -} inline void MeshModel::set_proceduralrocks(double value) { _internal_set_proceduralrocks(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:cielimMessage.MeshModel.proceduralRocks) } +inline double MeshModel::_internal_proceduralrocks() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.proceduralrocks_; +} +inline void MeshModel::_internal_set_proceduralrocks(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.proceduralrocks_ = value; +} // ------------------------------------------------------------------- @@ -4041,300 +4904,342 @@ inline void MeshModel::set_proceduralrocks(double value) { // string bodyName = 1; inline void CelestialBody::clear_bodyname() { - bodyname_.ClearToEmpty(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bodyname_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline const std::string& CelestialBody::bodyname() const { +inline const ::std::string& CelestialBody::bodyname() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:cielimMessage.CelestialBody.bodyName) return _internal_bodyname(); } -template -inline PROTOBUF_ALWAYS_INLINE -void CelestialBody::set_bodyname(ArgT0&& arg0, ArgT... args) { - - bodyname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void CelestialBody::set_bodyname(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_.bodyname_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:cielimMessage.CelestialBody.bodyName) } -inline std::string* CelestialBody::mutable_bodyname() { - std::string* _s = _internal_mutable_bodyname(); +inline ::std::string* PROTOBUF_NONNULL CelestialBody::mutable_bodyname() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::std::string* _s = _internal_mutable_bodyname(); // @@protoc_insertion_point(field_mutable:cielimMessage.CelestialBody.bodyName) return _s; } -inline const std::string& CelestialBody::_internal_bodyname() const { - return bodyname_.Get(); +inline const ::std::string& CelestialBody::_internal_bodyname() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.bodyname_.Get(); } -inline void CelestialBody::_internal_set_bodyname(const std::string& value) { - - bodyname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void CelestialBody::_internal_set_bodyname(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bodyname_.Set(value, GetArena()); } -inline std::string* CelestialBody::_internal_mutable_bodyname() { - - return bodyname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL CelestialBody::_internal_mutable_bodyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.bodyname_.Mutable( GetArena()); } -inline std::string* CelestialBody::release_bodyname() { +inline ::std::string* PROTOBUF_NULLABLE CelestialBody::release_bodyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:cielimMessage.CelestialBody.bodyName) - return bodyname_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + auto* released = _impl_.bodyname_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.bodyname_.Set("", GetArena()); + } + return released; } -inline void CelestialBody::set_allocated_bodyname(std::string* bodyname) { - if (bodyname != nullptr) { - +inline void CelestialBody::set_allocated_bodyname(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + } + _impl_.bodyname_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.bodyname_.IsDefault()) { + _impl_.bodyname_.Set("", GetArena()); } - bodyname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), bodyname, - GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:cielimMessage.CelestialBody.bodyName) } // repeated double position = 2; inline int CelestialBody::_internal_position_size() const { - return position_.size(); + return _internal_position().size(); } inline int CelestialBody::position_size() const { return _internal_position_size(); } inline void CelestialBody::clear_position() { - position_.Clear(); -} -inline double CelestialBody::_internal_position(int index) const { - return position_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.position_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } inline double CelestialBody::position(int index) const { // @@protoc_insertion_point(field_get:cielimMessage.CelestialBody.position) - return _internal_position(index); + return _internal_position().Get(index); } inline void CelestialBody::set_position(int index, double value) { - position_.Set(index, value); + _internal_mutable_position()->Set(index, value); // @@protoc_insertion_point(field_set:cielimMessage.CelestialBody.position) } -inline void CelestialBody::_internal_add_position(double value) { - position_.Add(value); -} inline void CelestialBody::add_position(double value) { - _internal_add_position(value); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_position()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:cielimMessage.CelestialBody.position) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -CelestialBody::_internal_position() const { - return position_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -CelestialBody::position() const { +inline const ::google::protobuf::RepeatedField& CelestialBody::position() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:cielimMessage.CelestialBody.position) return _internal_position(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -CelestialBody::_internal_mutable_position() { - return &position_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -CelestialBody::mutable_position() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL CelestialBody::mutable_position() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:cielimMessage.CelestialBody.position) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_position(); } +inline const ::google::protobuf::RepeatedField& +CelestialBody::_internal_position() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.position_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +CelestialBody::_internal_mutable_position() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.position_; +} // repeated double velocity = 3; inline int CelestialBody::_internal_velocity_size() const { - return velocity_.size(); + return _internal_velocity().size(); } inline int CelestialBody::velocity_size() const { return _internal_velocity_size(); } inline void CelestialBody::clear_velocity() { - velocity_.Clear(); -} -inline double CelestialBody::_internal_velocity(int index) const { - return velocity_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.velocity_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000002U); } inline double CelestialBody::velocity(int index) const { // @@protoc_insertion_point(field_get:cielimMessage.CelestialBody.velocity) - return _internal_velocity(index); + return _internal_velocity().Get(index); } inline void CelestialBody::set_velocity(int index, double value) { - velocity_.Set(index, value); + _internal_mutable_velocity()->Set(index, value); // @@protoc_insertion_point(field_set:cielimMessage.CelestialBody.velocity) } -inline void CelestialBody::_internal_add_velocity(double value) { - velocity_.Add(value); -} inline void CelestialBody::add_velocity(double value) { - _internal_add_velocity(value); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_velocity()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add:cielimMessage.CelestialBody.velocity) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -CelestialBody::_internal_velocity() const { - return velocity_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -CelestialBody::velocity() const { +inline const ::google::protobuf::RepeatedField& CelestialBody::velocity() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:cielimMessage.CelestialBody.velocity) return _internal_velocity(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -CelestialBody::_internal_mutable_velocity() { - return &velocity_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -CelestialBody::mutable_velocity() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL CelestialBody::mutable_velocity() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_mutable_list:cielimMessage.CelestialBody.velocity) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_velocity(); } +inline const ::google::protobuf::RepeatedField& +CelestialBody::_internal_velocity() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.velocity_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +CelestialBody::_internal_mutable_velocity() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.velocity_; +} // repeated double attitude = 4; inline int CelestialBody::_internal_attitude_size() const { - return attitude_.size(); + return _internal_attitude().size(); } inline int CelestialBody::attitude_size() const { return _internal_attitude_size(); } inline void CelestialBody::clear_attitude() { - attitude_.Clear(); -} -inline double CelestialBody::_internal_attitude(int index) const { - return attitude_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.attitude_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000004U); } inline double CelestialBody::attitude(int index) const { // @@protoc_insertion_point(field_get:cielimMessage.CelestialBody.attitude) - return _internal_attitude(index); + return _internal_attitude().Get(index); } inline void CelestialBody::set_attitude(int index, double value) { - attitude_.Set(index, value); + _internal_mutable_attitude()->Set(index, value); // @@protoc_insertion_point(field_set:cielimMessage.CelestialBody.attitude) } -inline void CelestialBody::_internal_add_attitude(double value) { - attitude_.Add(value); -} inline void CelestialBody::add_attitude(double value) { - _internal_add_attitude(value); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_attitude()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_add:cielimMessage.CelestialBody.attitude) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -CelestialBody::_internal_attitude() const { - return attitude_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -CelestialBody::attitude() const { +inline const ::google::protobuf::RepeatedField& CelestialBody::attitude() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:cielimMessage.CelestialBody.attitude) return _internal_attitude(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -CelestialBody::_internal_mutable_attitude() { - return &attitude_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -CelestialBody::mutable_attitude() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL CelestialBody::mutable_attitude() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_mutable_list:cielimMessage.CelestialBody.attitude) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_attitude(); } +inline const ::google::protobuf::RepeatedField& +CelestialBody::_internal_attitude() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.attitude_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +CelestialBody::_internal_mutable_attitude() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.attitude_; +} // .cielimMessage.MeshModel model = 5; -inline bool CelestialBody::_internal_has_model() const { - return this != internal_default_instance() && model_ != nullptr; -} inline bool CelestialBody::has_model() const { - return _internal_has_model(); + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); + PROTOBUF_ASSUME(!value || _impl_.model_ != nullptr); + return value; } inline void CelestialBody::clear_model() { - if (GetArenaForAllocation() == nullptr && model_ != nullptr) { - delete model_; - } - model_ = nullptr; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.model_ != nullptr) _impl_.model_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline const ::cielimMessage::MeshModel& CelestialBody::_internal_model() const { - const ::cielimMessage::MeshModel* p = model_; - return p != nullptr ? *p : reinterpret_cast( - ::cielimMessage::_MeshModel_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::cielimMessage::MeshModel* p = _impl_.model_; + return p != nullptr ? *p : reinterpret_cast(::cielimMessage::_MeshModel_default_instance_); } -inline const ::cielimMessage::MeshModel& CelestialBody::model() const { +inline const ::cielimMessage::MeshModel& CelestialBody::model() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:cielimMessage.CelestialBody.model) return _internal_model(); } inline void CelestialBody::unsafe_arena_set_allocated_model( - ::cielimMessage::MeshModel* model) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(model_); - } - model_ = model; - if (model) { - + ::cielimMessage::MeshModel* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_); + } + _impl_.model_ = reinterpret_cast<::cielimMessage::MeshModel*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:cielimMessage.CelestialBody.model) } -inline ::cielimMessage::MeshModel* CelestialBody::release_model() { - - ::cielimMessage::MeshModel* temp = model_; - model_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; +inline ::cielimMessage::MeshModel* PROTOBUF_NULLABLE CelestialBody::release_model() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + ::cielimMessage::MeshModel* released = _impl_.model_; + _impl_.model_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } -inline ::cielimMessage::MeshModel* CelestialBody::unsafe_arena_release_model() { +inline ::cielimMessage::MeshModel* PROTOBUF_NULLABLE CelestialBody::unsafe_arena_release_model() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:cielimMessage.CelestialBody.model) - - ::cielimMessage::MeshModel* temp = model_; - model_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + ::cielimMessage::MeshModel* temp = _impl_.model_; + _impl_.model_ = nullptr; return temp; } -inline ::cielimMessage::MeshModel* CelestialBody::_internal_mutable_model() { - - if (model_ == nullptr) { - auto* p = CreateMaybeMessage<::cielimMessage::MeshModel>(GetArenaForAllocation()); - model_ = p; +inline ::cielimMessage::MeshModel* PROTOBUF_NONNULL CelestialBody::_internal_mutable_model() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.model_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::cielimMessage::MeshModel>(GetArena()); + _impl_.model_ = reinterpret_cast<::cielimMessage::MeshModel*>(p); } - return model_; + return _impl_.model_; } -inline ::cielimMessage::MeshModel* CelestialBody::mutable_model() { +inline ::cielimMessage::MeshModel* PROTOBUF_NONNULL CelestialBody::mutable_model() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); ::cielimMessage::MeshModel* _msg = _internal_mutable_model(); // @@protoc_insertion_point(field_mutable:cielimMessage.CelestialBody.model) return _msg; } -inline void CelestialBody::set_allocated_model(::cielimMessage::MeshModel* model) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void CelestialBody::set_allocated_model(::cielimMessage::MeshModel* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete model_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_); } - if (model) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::cielimMessage::MeshModel>::GetOwningArena(model); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - model = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, model, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } - model_ = model; + + _impl_.model_ = reinterpret_cast<::cielimMessage::MeshModel*>(value); // @@protoc_insertion_point(field_set_allocated:cielimMessage.CelestialBody.model) } // bool centralBody = 6; inline void CelestialBody::clear_centralbody() { - centralbody_ = false; -} -inline bool CelestialBody::_internal_centralbody() const { - return centralbody_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.centralbody_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline bool CelestialBody::centralbody() const { // @@protoc_insertion_point(field_get:cielimMessage.CelestialBody.centralBody) return _internal_centralbody(); } -inline void CelestialBody::_internal_set_centralbody(bool value) { - - centralbody_ = value; -} inline void CelestialBody::set_centralbody(bool value) { _internal_set_centralbody(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:cielimMessage.CelestialBody.centralBody) } +inline bool CelestialBody::_internal_centralbody() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.centralbody_; +} +inline void CelestialBody::_internal_set_centralbody(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.centralbody_ = value; +} // ------------------------------------------------------------------- @@ -4342,190 +5247,218 @@ inline void CelestialBody::set_centralbody(bool value) { // string spacecraftName = 1; inline void Spacecraft::clear_spacecraftname() { - spacecraftname_.ClearToEmpty(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.spacecraftname_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline const std::string& Spacecraft::spacecraftname() const { +inline const ::std::string& Spacecraft::spacecraftname() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:cielimMessage.Spacecraft.spacecraftName) return _internal_spacecraftname(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Spacecraft::set_spacecraftname(ArgT0&& arg0, ArgT... args) { - - spacecraftname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void Spacecraft::set_spacecraftname(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_.spacecraftname_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:cielimMessage.Spacecraft.spacecraftName) } -inline std::string* Spacecraft::mutable_spacecraftname() { - std::string* _s = _internal_mutable_spacecraftname(); +inline ::std::string* PROTOBUF_NONNULL Spacecraft::mutable_spacecraftname() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::std::string* _s = _internal_mutable_spacecraftname(); // @@protoc_insertion_point(field_mutable:cielimMessage.Spacecraft.spacecraftName) return _s; } -inline const std::string& Spacecraft::_internal_spacecraftname() const { - return spacecraftname_.Get(); +inline const ::std::string& Spacecraft::_internal_spacecraftname() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.spacecraftname_.Get(); } -inline void Spacecraft::_internal_set_spacecraftname(const std::string& value) { - - spacecraftname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void Spacecraft::_internal_set_spacecraftname(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.spacecraftname_.Set(value, GetArena()); } -inline std::string* Spacecraft::_internal_mutable_spacecraftname() { - - return spacecraftname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL Spacecraft::_internal_mutable_spacecraftname() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.spacecraftname_.Mutable( GetArena()); } -inline std::string* Spacecraft::release_spacecraftname() { +inline ::std::string* PROTOBUF_NULLABLE Spacecraft::release_spacecraftname() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:cielimMessage.Spacecraft.spacecraftName) - return spacecraftname_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + auto* released = _impl_.spacecraftname_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.spacecraftname_.Set("", GetArena()); + } + return released; } -inline void Spacecraft::set_allocated_spacecraftname(std::string* spacecraftname) { - if (spacecraftname != nullptr) { - +inline void Spacecraft::set_allocated_spacecraftname(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + } + _impl_.spacecraftname_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.spacecraftname_.IsDefault()) { + _impl_.spacecraftname_.Set("", GetArena()); } - spacecraftname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), spacecraftname, - GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:cielimMessage.Spacecraft.spacecraftName) } // repeated double position = 2; inline int Spacecraft::_internal_position_size() const { - return position_.size(); + return _internal_position().size(); } inline int Spacecraft::position_size() const { return _internal_position_size(); } inline void Spacecraft::clear_position() { - position_.Clear(); -} -inline double Spacecraft::_internal_position(int index) const { - return position_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.position_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } inline double Spacecraft::position(int index) const { // @@protoc_insertion_point(field_get:cielimMessage.Spacecraft.position) - return _internal_position(index); + return _internal_position().Get(index); } inline void Spacecraft::set_position(int index, double value) { - position_.Set(index, value); + _internal_mutable_position()->Set(index, value); // @@protoc_insertion_point(field_set:cielimMessage.Spacecraft.position) } -inline void Spacecraft::_internal_add_position(double value) { - position_.Add(value); -} inline void Spacecraft::add_position(double value) { - _internal_add_position(value); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_position()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:cielimMessage.Spacecraft.position) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -Spacecraft::_internal_position() const { - return position_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -Spacecraft::position() const { +inline const ::google::protobuf::RepeatedField& Spacecraft::position() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:cielimMessage.Spacecraft.position) return _internal_position(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -Spacecraft::_internal_mutable_position() { - return &position_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -Spacecraft::mutable_position() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL Spacecraft::mutable_position() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:cielimMessage.Spacecraft.position) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_position(); } +inline const ::google::protobuf::RepeatedField& +Spacecraft::_internal_position() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.position_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +Spacecraft::_internal_mutable_position() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.position_; +} // repeated double velocity = 3; inline int Spacecraft::_internal_velocity_size() const { - return velocity_.size(); + return _internal_velocity().size(); } inline int Spacecraft::velocity_size() const { return _internal_velocity_size(); } inline void Spacecraft::clear_velocity() { - velocity_.Clear(); -} -inline double Spacecraft::_internal_velocity(int index) const { - return velocity_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.velocity_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000002U); } inline double Spacecraft::velocity(int index) const { // @@protoc_insertion_point(field_get:cielimMessage.Spacecraft.velocity) - return _internal_velocity(index); + return _internal_velocity().Get(index); } inline void Spacecraft::set_velocity(int index, double value) { - velocity_.Set(index, value); + _internal_mutable_velocity()->Set(index, value); // @@protoc_insertion_point(field_set:cielimMessage.Spacecraft.velocity) } -inline void Spacecraft::_internal_add_velocity(double value) { - velocity_.Add(value); -} inline void Spacecraft::add_velocity(double value) { - _internal_add_velocity(value); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_velocity()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add:cielimMessage.Spacecraft.velocity) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -Spacecraft::_internal_velocity() const { - return velocity_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -Spacecraft::velocity() const { +inline const ::google::protobuf::RepeatedField& Spacecraft::velocity() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:cielimMessage.Spacecraft.velocity) return _internal_velocity(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -Spacecraft::_internal_mutable_velocity() { - return &velocity_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -Spacecraft::mutable_velocity() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL Spacecraft::mutable_velocity() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_mutable_list:cielimMessage.Spacecraft.velocity) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_velocity(); } +inline const ::google::protobuf::RepeatedField& +Spacecraft::_internal_velocity() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.velocity_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +Spacecraft::_internal_mutable_velocity() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.velocity_; +} // repeated double attitude = 4; inline int Spacecraft::_internal_attitude_size() const { - return attitude_.size(); + return _internal_attitude().size(); } inline int Spacecraft::attitude_size() const { return _internal_attitude_size(); } inline void Spacecraft::clear_attitude() { - attitude_.Clear(); -} -inline double Spacecraft::_internal_attitude(int index) const { - return attitude_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.attitude_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000004U); } inline double Spacecraft::attitude(int index) const { // @@protoc_insertion_point(field_get:cielimMessage.Spacecraft.attitude) - return _internal_attitude(index); + return _internal_attitude().Get(index); } inline void Spacecraft::set_attitude(int index, double value) { - attitude_.Set(index, value); + _internal_mutable_attitude()->Set(index, value); // @@protoc_insertion_point(field_set:cielimMessage.Spacecraft.attitude) } -inline void Spacecraft::_internal_add_attitude(double value) { - attitude_.Add(value); -} inline void Spacecraft::add_attitude(double value) { - _internal_add_attitude(value); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_attitude()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_add:cielimMessage.Spacecraft.attitude) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -Spacecraft::_internal_attitude() const { - return attitude_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -Spacecraft::attitude() const { +inline const ::google::protobuf::RepeatedField& Spacecraft::attitude() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:cielimMessage.Spacecraft.attitude) return _internal_attitude(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -Spacecraft::_internal_mutable_attitude() { - return &attitude_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -Spacecraft::mutable_attitude() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL Spacecraft::mutable_attitude() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_mutable_list:cielimMessage.Spacecraft.attitude) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_attitude(); } +inline const ::google::protobuf::RepeatedField& +Spacecraft::_internal_attitude() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.attitude_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +Spacecraft::_internal_mutable_attitude() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.attitude_; +} // ------------------------------------------------------------------- @@ -4533,203 +5466,253 @@ Spacecraft::mutable_attitude() { // double integrationWeightFactor = 1; inline void QuantumEfficiency::clear_integrationweightfactor() { - integrationweightfactor_ = 0; -} -inline double QuantumEfficiency::_internal_integrationweightfactor() const { - return integrationweightfactor_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.integrationweightfactor_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline double QuantumEfficiency::integrationweightfactor() const { // @@protoc_insertion_point(field_get:cielimMessage.QuantumEfficiency.integrationWeightFactor) return _internal_integrationweightfactor(); } -inline void QuantumEfficiency::_internal_set_integrationweightfactor(double value) { - - integrationweightfactor_ = value; -} inline void QuantumEfficiency::set_integrationweightfactor(double value) { _internal_set_integrationweightfactor(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:cielimMessage.QuantumEfficiency.integrationWeightFactor) } +inline double QuantumEfficiency::_internal_integrationweightfactor() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.integrationweightfactor_; +} +inline void QuantumEfficiency::_internal_set_integrationweightfactor(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.integrationweightfactor_ = value; +} // double redValue1 = 2; inline void QuantumEfficiency::clear_redvalue1() { - redvalue1_ = 0; -} -inline double QuantumEfficiency::_internal_redvalue1() const { - return redvalue1_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.redvalue1_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline double QuantumEfficiency::redvalue1() const { // @@protoc_insertion_point(field_get:cielimMessage.QuantumEfficiency.redValue1) return _internal_redvalue1(); } -inline void QuantumEfficiency::_internal_set_redvalue1(double value) { - - redvalue1_ = value; -} inline void QuantumEfficiency::set_redvalue1(double value) { _internal_set_redvalue1(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:cielimMessage.QuantumEfficiency.redValue1) } +inline double QuantumEfficiency::_internal_redvalue1() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.redvalue1_; +} +inline void QuantumEfficiency::_internal_set_redvalue1(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.redvalue1_ = value; +} // double redValue2 = 3; inline void QuantumEfficiency::clear_redvalue2() { - redvalue2_ = 0; -} -inline double QuantumEfficiency::_internal_redvalue2() const { - return redvalue2_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.redvalue2_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline double QuantumEfficiency::redvalue2() const { // @@protoc_insertion_point(field_get:cielimMessage.QuantumEfficiency.redValue2) return _internal_redvalue2(); } -inline void QuantumEfficiency::_internal_set_redvalue2(double value) { - - redvalue2_ = value; -} inline void QuantumEfficiency::set_redvalue2(double value) { _internal_set_redvalue2(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:cielimMessage.QuantumEfficiency.redValue2) } +inline double QuantumEfficiency::_internal_redvalue2() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.redvalue2_; +} +inline void QuantumEfficiency::_internal_set_redvalue2(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.redvalue2_ = value; +} // double redValue3 = 4; inline void QuantumEfficiency::clear_redvalue3() { - redvalue3_ = 0; -} -inline double QuantumEfficiency::_internal_redvalue3() const { - return redvalue3_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.redvalue3_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline double QuantumEfficiency::redvalue3() const { // @@protoc_insertion_point(field_get:cielimMessage.QuantumEfficiency.redValue3) return _internal_redvalue3(); } -inline void QuantumEfficiency::_internal_set_redvalue3(double value) { - - redvalue3_ = value; -} inline void QuantumEfficiency::set_redvalue3(double value) { _internal_set_redvalue3(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:cielimMessage.QuantumEfficiency.redValue3) } +inline double QuantumEfficiency::_internal_redvalue3() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.redvalue3_; +} +inline void QuantumEfficiency::_internal_set_redvalue3(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.redvalue3_ = value; +} // double greenValue1 = 5; inline void QuantumEfficiency::clear_greenvalue1() { - greenvalue1_ = 0; -} -inline double QuantumEfficiency::_internal_greenvalue1() const { - return greenvalue1_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.greenvalue1_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline double QuantumEfficiency::greenvalue1() const { // @@protoc_insertion_point(field_get:cielimMessage.QuantumEfficiency.greenValue1) return _internal_greenvalue1(); } -inline void QuantumEfficiency::_internal_set_greenvalue1(double value) { - - greenvalue1_ = value; -} inline void QuantumEfficiency::set_greenvalue1(double value) { _internal_set_greenvalue1(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:cielimMessage.QuantumEfficiency.greenValue1) } +inline double QuantumEfficiency::_internal_greenvalue1() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.greenvalue1_; +} +inline void QuantumEfficiency::_internal_set_greenvalue1(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.greenvalue1_ = value; +} // double greenValue2 = 6; inline void QuantumEfficiency::clear_greenvalue2() { - greenvalue2_ = 0; -} -inline double QuantumEfficiency::_internal_greenvalue2() const { - return greenvalue2_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.greenvalue2_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline double QuantumEfficiency::greenvalue2() const { // @@protoc_insertion_point(field_get:cielimMessage.QuantumEfficiency.greenValue2) return _internal_greenvalue2(); } -inline void QuantumEfficiency::_internal_set_greenvalue2(double value) { - - greenvalue2_ = value; -} inline void QuantumEfficiency::set_greenvalue2(double value) { _internal_set_greenvalue2(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:cielimMessage.QuantumEfficiency.greenValue2) } +inline double QuantumEfficiency::_internal_greenvalue2() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.greenvalue2_; +} +inline void QuantumEfficiency::_internal_set_greenvalue2(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.greenvalue2_ = value; +} // double greenValue3 = 7; inline void QuantumEfficiency::clear_greenvalue3() { - greenvalue3_ = 0; -} -inline double QuantumEfficiency::_internal_greenvalue3() const { - return greenvalue3_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.greenvalue3_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline double QuantumEfficiency::greenvalue3() const { // @@protoc_insertion_point(field_get:cielimMessage.QuantumEfficiency.greenValue3) return _internal_greenvalue3(); } -inline void QuantumEfficiency::_internal_set_greenvalue3(double value) { - - greenvalue3_ = value; -} inline void QuantumEfficiency::set_greenvalue3(double value) { _internal_set_greenvalue3(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:cielimMessage.QuantumEfficiency.greenValue3) } +inline double QuantumEfficiency::_internal_greenvalue3() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.greenvalue3_; +} +inline void QuantumEfficiency::_internal_set_greenvalue3(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.greenvalue3_ = value; +} // double blueValue1 = 8; inline void QuantumEfficiency::clear_bluevalue1() { - bluevalue1_ = 0; -} -inline double QuantumEfficiency::_internal_bluevalue1() const { - return bluevalue1_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bluevalue1_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline double QuantumEfficiency::bluevalue1() const { // @@protoc_insertion_point(field_get:cielimMessage.QuantumEfficiency.blueValue1) return _internal_bluevalue1(); } -inline void QuantumEfficiency::_internal_set_bluevalue1(double value) { - - bluevalue1_ = value; -} inline void QuantumEfficiency::set_bluevalue1(double value) { _internal_set_bluevalue1(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:cielimMessage.QuantumEfficiency.blueValue1) } +inline double QuantumEfficiency::_internal_bluevalue1() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.bluevalue1_; +} +inline void QuantumEfficiency::_internal_set_bluevalue1(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bluevalue1_ = value; +} // double blueValue2 = 9; inline void QuantumEfficiency::clear_bluevalue2() { - bluevalue2_ = 0; -} -inline double QuantumEfficiency::_internal_bluevalue2() const { - return bluevalue2_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bluevalue2_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline double QuantumEfficiency::bluevalue2() const { // @@protoc_insertion_point(field_get:cielimMessage.QuantumEfficiency.blueValue2) return _internal_bluevalue2(); } -inline void QuantumEfficiency::_internal_set_bluevalue2(double value) { - - bluevalue2_ = value; -} inline void QuantumEfficiency::set_bluevalue2(double value) { _internal_set_bluevalue2(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:cielimMessage.QuantumEfficiency.blueValue2) } +inline double QuantumEfficiency::_internal_bluevalue2() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.bluevalue2_; +} +inline void QuantumEfficiency::_internal_set_bluevalue2(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bluevalue2_ = value; +} // double blueValue3 = 10; inline void QuantumEfficiency::clear_bluevalue3() { - bluevalue3_ = 0; -} -inline double QuantumEfficiency::_internal_bluevalue3() const { - return bluevalue3_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bluevalue3_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } inline double QuantumEfficiency::bluevalue3() const { // @@protoc_insertion_point(field_get:cielimMessage.QuantumEfficiency.blueValue3) return _internal_bluevalue3(); } -inline void QuantumEfficiency::_internal_set_bluevalue3(double value) { - - bluevalue3_ = value; -} inline void QuantumEfficiency::set_bluevalue3(double value) { _internal_set_bluevalue3(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:cielimMessage.QuantumEfficiency.blueValue3) } +inline double QuantumEfficiency::_internal_bluevalue3() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.bluevalue3_; +} +inline void QuantumEfficiency::_internal_set_bluevalue3(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bluevalue3_ = value; +} // ------------------------------------------------------------------- @@ -4737,271 +5720,303 @@ inline void QuantumEfficiency::set_bluevalue3(double value) { // repeated double fieldOfView = 1; inline int LensModel::_internal_fieldofview_size() const { - return fieldofview_.size(); + return _internal_fieldofview().size(); } inline int LensModel::fieldofview_size() const { return _internal_fieldofview_size(); } inline void LensModel::clear_fieldofview() { - fieldofview_.Clear(); -} -inline double LensModel::_internal_fieldofview(int index) const { - return fieldofview_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.fieldofview_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } inline double LensModel::fieldofview(int index) const { // @@protoc_insertion_point(field_get:cielimMessage.LensModel.fieldOfView) - return _internal_fieldofview(index); + return _internal_fieldofview().Get(index); } inline void LensModel::set_fieldofview(int index, double value) { - fieldofview_.Set(index, value); + _internal_mutable_fieldofview()->Set(index, value); // @@protoc_insertion_point(field_set:cielimMessage.LensModel.fieldOfView) } -inline void LensModel::_internal_add_fieldofview(double value) { - fieldofview_.Add(value); -} inline void LensModel::add_fieldofview(double value) { - _internal_add_fieldofview(value); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_fieldofview()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:cielimMessage.LensModel.fieldOfView) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -LensModel::_internal_fieldofview() const { - return fieldofview_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -LensModel::fieldofview() const { +inline const ::google::protobuf::RepeatedField& LensModel::fieldofview() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:cielimMessage.LensModel.fieldOfView) return _internal_fieldofview(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -LensModel::_internal_mutable_fieldofview() { - return &fieldofview_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -LensModel::mutable_fieldofview() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL LensModel::mutable_fieldofview() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:cielimMessage.LensModel.fieldOfView) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_fieldofview(); } +inline const ::google::protobuf::RepeatedField& +LensModel::_internal_fieldofview() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.fieldofview_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +LensModel::_internal_mutable_fieldofview() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.fieldofview_; +} // double focalLength = 2; inline void LensModel::clear_focallength() { - focallength_ = 0; -} -inline double LensModel::_internal_focallength() const { - return focallength_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.focallength_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline double LensModel::focallength() const { // @@protoc_insertion_point(field_get:cielimMessage.LensModel.focalLength) return _internal_focallength(); } -inline void LensModel::_internal_set_focallength(double value) { - - focallength_ = value; -} inline void LensModel::set_focallength(double value) { _internal_set_focallength(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:cielimMessage.LensModel.focalLength) } +inline double LensModel::_internal_focallength() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.focallength_; +} +inline void LensModel::_internal_set_focallength(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.focallength_ = value; +} // double pointSpreadFunction = 3; inline void LensModel::clear_pointspreadfunction() { - pointspreadfunction_ = 0; -} -inline double LensModel::_internal_pointspreadfunction() const { - return pointspreadfunction_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.pointspreadfunction_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline double LensModel::pointspreadfunction() const { // @@protoc_insertion_point(field_get:cielimMessage.LensModel.pointSpreadFunction) return _internal_pointspreadfunction(); } -inline void LensModel::_internal_set_pointspreadfunction(double value) { - - pointspreadfunction_ = value; -} inline void LensModel::set_pointspreadfunction(double value) { _internal_set_pointspreadfunction(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:cielimMessage.LensModel.pointSpreadFunction) } +inline double LensModel::_internal_pointspreadfunction() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.pointspreadfunction_; +} +inline void LensModel::_internal_set_pointspreadfunction(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.pointspreadfunction_ = value; +} // double apertureRadius = 4; inline void LensModel::clear_apertureradius() { - apertureradius_ = 0; -} -inline double LensModel::_internal_apertureradius() const { - return apertureradius_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.apertureradius_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline double LensModel::apertureradius() const { // @@protoc_insertion_point(field_get:cielimMessage.LensModel.apertureRadius) return _internal_apertureradius(); } -inline void LensModel::_internal_set_apertureradius(double value) { - - apertureradius_ = value; -} inline void LensModel::set_apertureradius(double value) { _internal_set_apertureradius(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:cielimMessage.LensModel.apertureRadius) } +inline double LensModel::_internal_apertureradius() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.apertureradius_; +} +inline void LensModel::_internal_set_apertureradius(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.apertureradius_ = value; +} // repeated double horizontalVignetting = 5; inline int LensModel::_internal_horizontalvignetting_size() const { - return horizontalvignetting_.size(); + return _internal_horizontalvignetting().size(); } inline int LensModel::horizontalvignetting_size() const { return _internal_horizontalvignetting_size(); } inline void LensModel::clear_horizontalvignetting() { - horizontalvignetting_.Clear(); -} -inline double LensModel::_internal_horizontalvignetting(int index) const { - return horizontalvignetting_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.horizontalvignetting_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000002U); } inline double LensModel::horizontalvignetting(int index) const { // @@protoc_insertion_point(field_get:cielimMessage.LensModel.horizontalVignetting) - return _internal_horizontalvignetting(index); + return _internal_horizontalvignetting().Get(index); } inline void LensModel::set_horizontalvignetting(int index, double value) { - horizontalvignetting_.Set(index, value); + _internal_mutable_horizontalvignetting()->Set(index, value); // @@protoc_insertion_point(field_set:cielimMessage.LensModel.horizontalVignetting) } -inline void LensModel::_internal_add_horizontalvignetting(double value) { - horizontalvignetting_.Add(value); -} inline void LensModel::add_horizontalvignetting(double value) { - _internal_add_horizontalvignetting(value); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_horizontalvignetting()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add:cielimMessage.LensModel.horizontalVignetting) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -LensModel::_internal_horizontalvignetting() const { - return horizontalvignetting_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -LensModel::horizontalvignetting() const { +inline const ::google::protobuf::RepeatedField& LensModel::horizontalvignetting() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:cielimMessage.LensModel.horizontalVignetting) return _internal_horizontalvignetting(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -LensModel::_internal_mutable_horizontalvignetting() { - return &horizontalvignetting_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -LensModel::mutable_horizontalvignetting() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL LensModel::mutable_horizontalvignetting() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_mutable_list:cielimMessage.LensModel.horizontalVignetting) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_horizontalvignetting(); } +inline const ::google::protobuf::RepeatedField& +LensModel::_internal_horizontalvignetting() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.horizontalvignetting_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +LensModel::_internal_mutable_horizontalvignetting() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.horizontalvignetting_; +} // repeated double verticalVignetting = 6; inline int LensModel::_internal_verticalvignetting_size() const { - return verticalvignetting_.size(); + return _internal_verticalvignetting().size(); } inline int LensModel::verticalvignetting_size() const { return _internal_verticalvignetting_size(); } inline void LensModel::clear_verticalvignetting() { - verticalvignetting_.Clear(); -} -inline double LensModel::_internal_verticalvignetting(int index) const { - return verticalvignetting_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.verticalvignetting_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000004U); } inline double LensModel::verticalvignetting(int index) const { // @@protoc_insertion_point(field_get:cielimMessage.LensModel.verticalVignetting) - return _internal_verticalvignetting(index); + return _internal_verticalvignetting().Get(index); } inline void LensModel::set_verticalvignetting(int index, double value) { - verticalvignetting_.Set(index, value); + _internal_mutable_verticalvignetting()->Set(index, value); // @@protoc_insertion_point(field_set:cielimMessage.LensModel.verticalVignetting) } -inline void LensModel::_internal_add_verticalvignetting(double value) { - verticalvignetting_.Add(value); -} inline void LensModel::add_verticalvignetting(double value) { - _internal_add_verticalvignetting(value); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_verticalvignetting()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_add:cielimMessage.LensModel.verticalVignetting) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -LensModel::_internal_verticalvignetting() const { - return verticalvignetting_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -LensModel::verticalvignetting() const { +inline const ::google::protobuf::RepeatedField& LensModel::verticalvignetting() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:cielimMessage.LensModel.verticalVignetting) return _internal_verticalvignetting(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -LensModel::_internal_mutable_verticalvignetting() { - return &verticalvignetting_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -LensModel::mutable_verticalvignetting() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL LensModel::mutable_verticalvignetting() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_mutable_list:cielimMessage.LensModel.verticalVignetting) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_verticalvignetting(); } +inline const ::google::protobuf::RepeatedField& +LensModel::_internal_verticalvignetting() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.verticalvignetting_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +LensModel::_internal_mutable_verticalvignetting() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.verticalvignetting_; +} // repeated double distortion = 7; inline int LensModel::_internal_distortion_size() const { - return distortion_.size(); + return _internal_distortion().size(); } inline int LensModel::distortion_size() const { return _internal_distortion_size(); } inline void LensModel::clear_distortion() { - distortion_.Clear(); -} -inline double LensModel::_internal_distortion(int index) const { - return distortion_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.distortion_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000008U); } inline double LensModel::distortion(int index) const { // @@protoc_insertion_point(field_get:cielimMessage.LensModel.distortion) - return _internal_distortion(index); + return _internal_distortion().Get(index); } inline void LensModel::set_distortion(int index, double value) { - distortion_.Set(index, value); + _internal_mutable_distortion()->Set(index, value); // @@protoc_insertion_point(field_set:cielimMessage.LensModel.distortion) } -inline void LensModel::_internal_add_distortion(double value) { - distortion_.Add(value); -} inline void LensModel::add_distortion(double value) { - _internal_add_distortion(value); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_distortion()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_add:cielimMessage.LensModel.distortion) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -LensModel::_internal_distortion() const { - return distortion_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -LensModel::distortion() const { +inline const ::google::protobuf::RepeatedField& LensModel::distortion() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:cielimMessage.LensModel.distortion) return _internal_distortion(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -LensModel::_internal_mutable_distortion() { - return &distortion_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -LensModel::mutable_distortion() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL LensModel::mutable_distortion() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_mutable_list:cielimMessage.LensModel.distortion) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_distortion(); } +inline const ::google::protobuf::RepeatedField& +LensModel::_internal_distortion() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.distortion_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +LensModel::_internal_mutable_distortion() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.distortion_; +} // double transmission = 8; inline void LensModel::clear_transmission() { - transmission_ = 0; -} -inline double LensModel::_internal_transmission() const { - return transmission_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.transmission_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline double LensModel::transmission() const { // @@protoc_insertion_point(field_get:cielimMessage.LensModel.transmission) return _internal_transmission(); } -inline void LensModel::_internal_set_transmission(double value) { - - transmission_ = value; -} inline void LensModel::set_transmission(double value) { _internal_set_transmission(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:cielimMessage.LensModel.transmission) } +inline double LensModel::_internal_transmission() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.transmission_; +} +inline void LensModel::_internal_set_transmission(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.transmission_ = value; +} // ------------------------------------------------------------------- @@ -5009,338 +6024,400 @@ inline void LensModel::set_transmission(double value) { // repeated int64 resolution = 1; inline int SensorModel::_internal_resolution_size() const { - return resolution_.size(); + return _internal_resolution().size(); } inline int SensorModel::resolution_size() const { return _internal_resolution_size(); } inline void SensorModel::clear_resolution() { - resolution_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 SensorModel::_internal_resolution(int index) const { - return resolution_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.resolution_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } -inline ::PROTOBUF_NAMESPACE_ID::int64 SensorModel::resolution(int index) const { +inline ::int64_t SensorModel::resolution(int index) const { // @@protoc_insertion_point(field_get:cielimMessage.SensorModel.resolution) - return _internal_resolution(index); + return _internal_resolution().Get(index); } -inline void SensorModel::set_resolution(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { - resolution_.Set(index, value); +inline void SensorModel::set_resolution(int index, ::int64_t value) { + _internal_mutable_resolution()->Set(index, value); // @@protoc_insertion_point(field_set:cielimMessage.SensorModel.resolution) } -inline void SensorModel::_internal_add_resolution(::PROTOBUF_NAMESPACE_ID::int64 value) { - resolution_.Add(value); -} -inline void SensorModel::add_resolution(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_add_resolution(value); +inline void SensorModel::add_resolution(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_resolution()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:cielimMessage.SensorModel.resolution) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -SensorModel::_internal_resolution() const { - return resolution_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -SensorModel::resolution() const { +inline const ::google::protobuf::RepeatedField<::int64_t>& SensorModel::resolution() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:cielimMessage.SensorModel.resolution) return _internal_resolution(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -SensorModel::_internal_mutable_resolution() { - return &resolution_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -SensorModel::mutable_resolution() { +inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL SensorModel::mutable_resolution() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:cielimMessage.SensorModel.resolution) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_resolution(); } +inline const ::google::protobuf::RepeatedField<::int64_t>& +SensorModel::_internal_resolution() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.resolution_; +} +inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL +SensorModel::_internal_mutable_resolution() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.resolution_; +} // uint64 renderRate = 2; inline void SensorModel::clear_renderrate() { - renderrate_ = uint64_t{0u}; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 SensorModel::_internal_renderrate() const { - return renderrate_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.renderrate_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 SensorModel::renderrate() const { +inline ::uint64_t SensorModel::renderrate() const { // @@protoc_insertion_point(field_get:cielimMessage.SensorModel.renderRate) return _internal_renderrate(); } -inline void SensorModel::_internal_set_renderrate(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - renderrate_ = value; -} -inline void SensorModel::set_renderrate(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void SensorModel::set_renderrate(::uint64_t value) { _internal_set_renderrate(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:cielimMessage.SensorModel.renderRate) } +inline ::uint64_t SensorModel::_internal_renderrate() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.renderrate_; +} +inline void SensorModel::_internal_set_renderrate(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.renderrate_ = value; +} // double exposureTime = 3; inline void SensorModel::clear_exposuretime() { - exposuretime_ = 0; -} -inline double SensorModel::_internal_exposuretime() const { - return exposuretime_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.exposuretime_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline double SensorModel::exposuretime() const { // @@protoc_insertion_point(field_get:cielimMessage.SensorModel.exposureTime) return _internal_exposuretime(); } -inline void SensorModel::_internal_set_exposuretime(double value) { - - exposuretime_ = value; -} inline void SensorModel::set_exposuretime(double value) { _internal_set_exposuretime(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:cielimMessage.SensorModel.exposureTime) } +inline double SensorModel::_internal_exposuretime() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.exposuretime_; +} +inline void SensorModel::_internal_set_exposuretime(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.exposuretime_ = value; +} // double readNoise = 4; inline void SensorModel::clear_readnoise() { - readnoise_ = 0; -} -inline double SensorModel::_internal_readnoise() const { - return readnoise_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.readnoise_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline double SensorModel::readnoise() const { // @@protoc_insertion_point(field_get:cielimMessage.SensorModel.readNoise) return _internal_readnoise(); } -inline void SensorModel::_internal_set_readnoise(double value) { - - readnoise_ = value; -} inline void SensorModel::set_readnoise(double value) { _internal_set_readnoise(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:cielimMessage.SensorModel.readNoise) } +inline double SensorModel::_internal_readnoise() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.readnoise_; +} +inline void SensorModel::_internal_set_readnoise(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.readnoise_ = value; +} // bool shotNoise = 5; -inline void SensorModel::clear_shotnoise() { - shotnoise_ = false; -} -inline bool SensorModel::_internal_shotnoise() const { - return shotnoise_; +inline void SensorModel::clear_shotnoise() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.shotnoise_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000800U); } inline bool SensorModel::shotnoise() const { // @@protoc_insertion_point(field_get:cielimMessage.SensorModel.shotNoise) return _internal_shotnoise(); } -inline void SensorModel::_internal_set_shotnoise(bool value) { - - shotnoise_ = value; -} inline void SensorModel::set_shotnoise(bool value) { _internal_set_shotnoise(value); + SetHasBit(_impl_._has_bits_[0], 0x00000800U); // @@protoc_insertion_point(field_set:cielimMessage.SensorModel.shotNoise) } +inline bool SensorModel::_internal_shotnoise() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.shotnoise_; +} +inline void SensorModel::_internal_set_shotnoise(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.shotnoise_ = value; +} // double darkCurrent = 6; inline void SensorModel::clear_darkcurrent() { - darkcurrent_ = 0; -} -inline double SensorModel::_internal_darkcurrent() const { - return darkcurrent_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.darkcurrent_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline double SensorModel::darkcurrent() const { // @@protoc_insertion_point(field_get:cielimMessage.SensorModel.darkCurrent) return _internal_darkcurrent(); } -inline void SensorModel::_internal_set_darkcurrent(double value) { - - darkcurrent_ = value; -} inline void SensorModel::set_darkcurrent(double value) { _internal_set_darkcurrent(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:cielimMessage.SensorModel.darkCurrent) } +inline double SensorModel::_internal_darkcurrent() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.darkcurrent_; +} +inline void SensorModel::_internal_set_darkcurrent(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.darkcurrent_ = value; +} // double systemGain = 7; inline void SensorModel::clear_systemgain() { - systemgain_ = 0; -} -inline double SensorModel::_internal_systemgain() const { - return systemgain_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.systemgain_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline double SensorModel::systemgain() const { // @@protoc_insertion_point(field_get:cielimMessage.SensorModel.systemGain) return _internal_systemgain(); } -inline void SensorModel::_internal_set_systemgain(double value) { - - systemgain_ = value; -} inline void SensorModel::set_systemgain(double value) { _internal_set_systemgain(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:cielimMessage.SensorModel.systemGain) } +inline double SensorModel::_internal_systemgain() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.systemgain_; +} +inline void SensorModel::_internal_set_systemgain(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.systemgain_ = value; +} // double sensorWidth = 8; inline void SensorModel::clear_sensorwidth() { - sensorwidth_ = 0; -} -inline double SensorModel::_internal_sensorwidth() const { - return sensorwidth_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sensorwidth_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline double SensorModel::sensorwidth() const { // @@protoc_insertion_point(field_get:cielimMessage.SensorModel.sensorWidth) return _internal_sensorwidth(); } -inline void SensorModel::_internal_set_sensorwidth(double value) { - - sensorwidth_ = value; -} inline void SensorModel::set_sensorwidth(double value) { _internal_set_sensorwidth(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:cielimMessage.SensorModel.sensorWidth) } +inline double SensorModel::_internal_sensorwidth() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.sensorwidth_; +} +inline void SensorModel::_internal_set_sensorwidth(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sensorwidth_ = value; +} // double sensorHeight = 9; inline void SensorModel::clear_sensorheight() { - sensorheight_ = 0; -} -inline double SensorModel::_internal_sensorheight() const { - return sensorheight_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sensorheight_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline double SensorModel::sensorheight() const { // @@protoc_insertion_point(field_get:cielimMessage.SensorModel.sensorHeight) return _internal_sensorheight(); } -inline void SensorModel::_internal_set_sensorheight(double value) { - - sensorheight_ = value; -} inline void SensorModel::set_sensorheight(double value) { _internal_set_sensorheight(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:cielimMessage.SensorModel.sensorHeight) } +inline double SensorModel::_internal_sensorheight() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.sensorheight_; +} +inline void SensorModel::_internal_set_sensorheight(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sensorheight_ = value; +} // double fullWellCapacity = 10; inline void SensorModel::clear_fullwellcapacity() { - fullwellcapacity_ = 0; -} -inline double SensorModel::_internal_fullwellcapacity() const { - return fullwellcapacity_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.fullwellcapacity_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } inline double SensorModel::fullwellcapacity() const { // @@protoc_insertion_point(field_get:cielimMessage.SensorModel.fullWellCapacity) return _internal_fullwellcapacity(); } -inline void SensorModel::_internal_set_fullwellcapacity(double value) { - - fullwellcapacity_ = value; -} inline void SensorModel::set_fullwellcapacity(double value) { _internal_set_fullwellcapacity(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:cielimMessage.SensorModel.fullWellCapacity) } +inline double SensorModel::_internal_fullwellcapacity() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.fullwellcapacity_; +} +inline void SensorModel::_internal_set_fullwellcapacity(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.fullwellcapacity_ = value; +} // double gamma = 11; inline void SensorModel::clear_gamma() { - gamma_ = 0; -} -inline double SensorModel::_internal_gamma() const { - return gamma_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.gamma_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } inline double SensorModel::gamma() const { // @@protoc_insertion_point(field_get:cielimMessage.SensorModel.gamma) return _internal_gamma(); } -inline void SensorModel::_internal_set_gamma(double value) { - - gamma_ = value; -} inline void SensorModel::set_gamma(double value) { _internal_set_gamma(value); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_set:cielimMessage.SensorModel.gamma) } +inline double SensorModel::_internal_gamma() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.gamma_; +} +inline void SensorModel::_internal_set_gamma(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.gamma_ = value; +} // .cielimMessage.QuantumEfficiency qeCurve = 12; -inline bool SensorModel::_internal_has_qecurve() const { - return this != internal_default_instance() && qecurve_ != nullptr; -} inline bool SensorModel::has_qecurve() const { - return _internal_has_qecurve(); + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.qecurve_ != nullptr); + return value; } inline void SensorModel::clear_qecurve() { - if (GetArenaForAllocation() == nullptr && qecurve_ != nullptr) { - delete qecurve_; - } - qecurve_ = nullptr; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.qecurve_ != nullptr) _impl_.qecurve_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::cielimMessage::QuantumEfficiency& SensorModel::_internal_qecurve() const { - const ::cielimMessage::QuantumEfficiency* p = qecurve_; - return p != nullptr ? *p : reinterpret_cast( - ::cielimMessage::_QuantumEfficiency_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::cielimMessage::QuantumEfficiency* p = _impl_.qecurve_; + return p != nullptr ? *p : reinterpret_cast(::cielimMessage::_QuantumEfficiency_default_instance_); } -inline const ::cielimMessage::QuantumEfficiency& SensorModel::qecurve() const { +inline const ::cielimMessage::QuantumEfficiency& SensorModel::qecurve() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:cielimMessage.SensorModel.qeCurve) return _internal_qecurve(); } inline void SensorModel::unsafe_arena_set_allocated_qecurve( - ::cielimMessage::QuantumEfficiency* qecurve) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(qecurve_); - } - qecurve_ = qecurve; - if (qecurve) { - + ::cielimMessage::QuantumEfficiency* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.qecurve_); + } + _impl_.qecurve_ = reinterpret_cast<::cielimMessage::QuantumEfficiency*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:cielimMessage.SensorModel.qeCurve) } -inline ::cielimMessage::QuantumEfficiency* SensorModel::release_qecurve() { - - ::cielimMessage::QuantumEfficiency* temp = qecurve_; - qecurve_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; +inline ::cielimMessage::QuantumEfficiency* PROTOBUF_NULLABLE SensorModel::release_qecurve() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::cielimMessage::QuantumEfficiency* released = _impl_.qecurve_; + _impl_.qecurve_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } -inline ::cielimMessage::QuantumEfficiency* SensorModel::unsafe_arena_release_qecurve() { +inline ::cielimMessage::QuantumEfficiency* PROTOBUF_NULLABLE SensorModel::unsafe_arena_release_qecurve() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:cielimMessage.SensorModel.qeCurve) - - ::cielimMessage::QuantumEfficiency* temp = qecurve_; - qecurve_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::cielimMessage::QuantumEfficiency* temp = _impl_.qecurve_; + _impl_.qecurve_ = nullptr; return temp; } -inline ::cielimMessage::QuantumEfficiency* SensorModel::_internal_mutable_qecurve() { - - if (qecurve_ == nullptr) { - auto* p = CreateMaybeMessage<::cielimMessage::QuantumEfficiency>(GetArenaForAllocation()); - qecurve_ = p; +inline ::cielimMessage::QuantumEfficiency* PROTOBUF_NONNULL SensorModel::_internal_mutable_qecurve() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.qecurve_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::cielimMessage::QuantumEfficiency>(GetArena()); + _impl_.qecurve_ = reinterpret_cast<::cielimMessage::QuantumEfficiency*>(p); } - return qecurve_; + return _impl_.qecurve_; } -inline ::cielimMessage::QuantumEfficiency* SensorModel::mutable_qecurve() { +inline ::cielimMessage::QuantumEfficiency* PROTOBUF_NONNULL SensorModel::mutable_qecurve() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::cielimMessage::QuantumEfficiency* _msg = _internal_mutable_qecurve(); // @@protoc_insertion_point(field_mutable:cielimMessage.SensorModel.qeCurve) return _msg; } -inline void SensorModel::set_allocated_qecurve(::cielimMessage::QuantumEfficiency* qecurve) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SensorModel::set_allocated_qecurve(::cielimMessage::QuantumEfficiency* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete qecurve_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.qecurve_); } - if (qecurve) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::cielimMessage::QuantumEfficiency>::GetOwningArena(qecurve); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - qecurve = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, qecurve, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - qecurve_ = qecurve; + + _impl_.qecurve_ = reinterpret_cast<::cielimMessage::QuantumEfficiency*>(value); // @@protoc_insertion_point(field_set_allocated:cielimMessage.SensorModel.qeCurve) } @@ -5350,103 +6427,128 @@ inline void SensorModel::set_allocated_qecurve(::cielimMessage::QuantumEfficienc // double centerX = 1; inline void AreaOfInterest::clear_centerx() { - centerx_ = 0; -} -inline double AreaOfInterest::_internal_centerx() const { - return centerx_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.centerx_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline double AreaOfInterest::centerx() const { // @@protoc_insertion_point(field_get:cielimMessage.AreaOfInterest.centerX) return _internal_centerx(); } -inline void AreaOfInterest::_internal_set_centerx(double value) { - - centerx_ = value; -} inline void AreaOfInterest::set_centerx(double value) { _internal_set_centerx(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:cielimMessage.AreaOfInterest.centerX) } +inline double AreaOfInterest::_internal_centerx() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.centerx_; +} +inline void AreaOfInterest::_internal_set_centerx(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.centerx_ = value; +} // double centerY = 2; inline void AreaOfInterest::clear_centery() { - centery_ = 0; -} -inline double AreaOfInterest::_internal_centery() const { - return centery_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.centery_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline double AreaOfInterest::centery() const { // @@protoc_insertion_point(field_get:cielimMessage.AreaOfInterest.centerY) return _internal_centery(); } -inline void AreaOfInterest::_internal_set_centery(double value) { - - centery_ = value; -} inline void AreaOfInterest::set_centery(double value) { _internal_set_centery(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:cielimMessage.AreaOfInterest.centerY) } +inline double AreaOfInterest::_internal_centery() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.centery_; +} +inline void AreaOfInterest::_internal_set_centery(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.centery_ = value; +} // double width = 3; inline void AreaOfInterest::clear_width() { - width_ = 0; -} -inline double AreaOfInterest::_internal_width() const { - return width_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.width_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline double AreaOfInterest::width() const { // @@protoc_insertion_point(field_get:cielimMessage.AreaOfInterest.width) return _internal_width(); } -inline void AreaOfInterest::_internal_set_width(double value) { - - width_ = value; -} inline void AreaOfInterest::set_width(double value) { _internal_set_width(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:cielimMessage.AreaOfInterest.width) } +inline double AreaOfInterest::_internal_width() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.width_; +} +inline void AreaOfInterest::_internal_set_width(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.width_ = value; +} // double height = 4; inline void AreaOfInterest::clear_height() { - height_ = 0; -} -inline double AreaOfInterest::_internal_height() const { - return height_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.height_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline double AreaOfInterest::height() const { // @@protoc_insertion_point(field_get:cielimMessage.AreaOfInterest.height) return _internal_height(); } -inline void AreaOfInterest::_internal_set_height(double value) { - - height_ = value; -} inline void AreaOfInterest::set_height(double value) { _internal_set_height(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:cielimMessage.AreaOfInterest.height) } +inline double AreaOfInterest::_internal_height() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.height_; +} +inline void AreaOfInterest::_internal_set_height(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.height_ = value; +} // double threshold = 5; inline void AreaOfInterest::clear_threshold() { - threshold_ = 0; -} -inline double AreaOfInterest::_internal_threshold() const { - return threshold_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.threshold_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline double AreaOfInterest::threshold() const { // @@protoc_insertion_point(field_get:cielimMessage.AreaOfInterest.threshold) return _internal_threshold(); } -inline void AreaOfInterest::_internal_set_threshold(double value) { - - threshold_ = value; -} inline void AreaOfInterest::set_threshold(double value) { _internal_set_threshold(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:cielimMessage.AreaOfInterest.threshold) } +inline double AreaOfInterest::_internal_threshold() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.threshold_; +} +inline void AreaOfInterest::_internal_set_threshold(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.threshold_ = value; +} // ------------------------------------------------------------------- @@ -5454,431 +6556,488 @@ inline void AreaOfInterest::set_threshold(double value) { // int64 cameraId = 1; inline void CameraModel::clear_cameraid() { - cameraid_ = int64_t{0}; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.cameraid_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } -inline ::PROTOBUF_NAMESPACE_ID::int64 CameraModel::_internal_cameraid() const { - return cameraid_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 CameraModel::cameraid() const { +inline ::int64_t CameraModel::cameraid() const { // @@protoc_insertion_point(field_get:cielimMessage.CameraModel.cameraId) return _internal_cameraid(); } -inline void CameraModel::_internal_set_cameraid(::PROTOBUF_NAMESPACE_ID::int64 value) { - - cameraid_ = value; -} -inline void CameraModel::set_cameraid(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void CameraModel::set_cameraid(::int64_t value) { _internal_set_cameraid(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:cielimMessage.CameraModel.cameraId) } +inline ::int64_t CameraModel::_internal_cameraid() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.cameraid_; +} +inline void CameraModel::_internal_set_cameraid(::int64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.cameraid_ = value; +} // string parentName = 2; inline void CameraModel::clear_parentname() { - parentname_.ClearToEmpty(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.parentname_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& CameraModel::parentname() const { +inline const ::std::string& CameraModel::parentname() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:cielimMessage.CameraModel.parentName) return _internal_parentname(); } -template -inline PROTOBUF_ALWAYS_INLINE -void CameraModel::set_parentname(ArgT0&& arg0, ArgT... args) { - - parentname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); +template +PROTOBUF_ALWAYS_INLINE void CameraModel::set_parentname(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.parentname_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:cielimMessage.CameraModel.parentName) } -inline std::string* CameraModel::mutable_parentname() { - std::string* _s = _internal_mutable_parentname(); +inline ::std::string* PROTOBUF_NONNULL CameraModel::mutable_parentname() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_parentname(); // @@protoc_insertion_point(field_mutable:cielimMessage.CameraModel.parentName) return _s; } -inline const std::string& CameraModel::_internal_parentname() const { - return parentname_.Get(); +inline const ::std::string& CameraModel::_internal_parentname() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.parentname_.Get(); } -inline void CameraModel::_internal_set_parentname(const std::string& value) { - - parentname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +inline void CameraModel::_internal_set_parentname(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.parentname_.Set(value, GetArena()); } -inline std::string* CameraModel::_internal_mutable_parentname() { - - return parentname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +inline ::std::string* PROTOBUF_NONNULL CameraModel::_internal_mutable_parentname() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.parentname_.Mutable( GetArena()); } -inline std::string* CameraModel::release_parentname() { +inline ::std::string* PROTOBUF_NULLABLE CameraModel::release_parentname() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:cielimMessage.CameraModel.parentName) - return parentname_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.parentname_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.parentname_.Set("", GetArena()); + } + return released; } -inline void CameraModel::set_allocated_parentname(std::string* parentname) { - if (parentname != nullptr) { - +inline void CameraModel::set_allocated_parentname(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + } + _impl_.parentname_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.parentname_.IsDefault()) { + _impl_.parentname_.Set("", GetArena()); } - parentname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parentname, - GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:cielimMessage.CameraModel.parentName) } // repeated double cameraPositionInBody = 3; inline int CameraModel::_internal_camerapositioninbody_size() const { - return camerapositioninbody_.size(); + return _internal_camerapositioninbody().size(); } inline int CameraModel::camerapositioninbody_size() const { return _internal_camerapositioninbody_size(); } inline void CameraModel::clear_camerapositioninbody() { - camerapositioninbody_.Clear(); -} -inline double CameraModel::_internal_camerapositioninbody(int index) const { - return camerapositioninbody_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.camerapositioninbody_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } inline double CameraModel::camerapositioninbody(int index) const { // @@protoc_insertion_point(field_get:cielimMessage.CameraModel.cameraPositionInBody) - return _internal_camerapositioninbody(index); + return _internal_camerapositioninbody().Get(index); } inline void CameraModel::set_camerapositioninbody(int index, double value) { - camerapositioninbody_.Set(index, value); + _internal_mutable_camerapositioninbody()->Set(index, value); // @@protoc_insertion_point(field_set:cielimMessage.CameraModel.cameraPositionInBody) } -inline void CameraModel::_internal_add_camerapositioninbody(double value) { - camerapositioninbody_.Add(value); -} inline void CameraModel::add_camerapositioninbody(double value) { - _internal_add_camerapositioninbody(value); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_camerapositioninbody()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:cielimMessage.CameraModel.cameraPositionInBody) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -CameraModel::_internal_camerapositioninbody() const { - return camerapositioninbody_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -CameraModel::camerapositioninbody() const { +inline const ::google::protobuf::RepeatedField& CameraModel::camerapositioninbody() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:cielimMessage.CameraModel.cameraPositionInBody) return _internal_camerapositioninbody(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -CameraModel::_internal_mutable_camerapositioninbody() { - return &camerapositioninbody_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -CameraModel::mutable_camerapositioninbody() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL CameraModel::mutable_camerapositioninbody() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:cielimMessage.CameraModel.cameraPositionInBody) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_camerapositioninbody(); } +inline const ::google::protobuf::RepeatedField& +CameraModel::_internal_camerapositioninbody() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.camerapositioninbody_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +CameraModel::_internal_mutable_camerapositioninbody() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.camerapositioninbody_; +} // repeated double bodyFrameToCameraMrp = 4; inline int CameraModel::_internal_bodyframetocameramrp_size() const { - return bodyframetocameramrp_.size(); + return _internal_bodyframetocameramrp().size(); } inline int CameraModel::bodyframetocameramrp_size() const { return _internal_bodyframetocameramrp_size(); } inline void CameraModel::clear_bodyframetocameramrp() { - bodyframetocameramrp_.Clear(); -} -inline double CameraModel::_internal_bodyframetocameramrp(int index) const { - return bodyframetocameramrp_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bodyframetocameramrp_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000002U); } inline double CameraModel::bodyframetocameramrp(int index) const { // @@protoc_insertion_point(field_get:cielimMessage.CameraModel.bodyFrameToCameraMrp) - return _internal_bodyframetocameramrp(index); + return _internal_bodyframetocameramrp().Get(index); } inline void CameraModel::set_bodyframetocameramrp(int index, double value) { - bodyframetocameramrp_.Set(index, value); + _internal_mutable_bodyframetocameramrp()->Set(index, value); // @@protoc_insertion_point(field_set:cielimMessage.CameraModel.bodyFrameToCameraMrp) } -inline void CameraModel::_internal_add_bodyframetocameramrp(double value) { - bodyframetocameramrp_.Add(value); -} inline void CameraModel::add_bodyframetocameramrp(double value) { - _internal_add_bodyframetocameramrp(value); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_bodyframetocameramrp()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add:cielimMessage.CameraModel.bodyFrameToCameraMrp) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -CameraModel::_internal_bodyframetocameramrp() const { - return bodyframetocameramrp_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& -CameraModel::bodyframetocameramrp() const { +inline const ::google::protobuf::RepeatedField& CameraModel::bodyframetocameramrp() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:cielimMessage.CameraModel.bodyFrameToCameraMrp) return _internal_bodyframetocameramrp(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -CameraModel::_internal_mutable_bodyframetocameramrp() { - return &bodyframetocameramrp_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* -CameraModel::mutable_bodyframetocameramrp() { +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL CameraModel::mutable_bodyframetocameramrp() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_mutable_list:cielimMessage.CameraModel.bodyFrameToCameraMrp) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_bodyframetocameramrp(); } +inline const ::google::protobuf::RepeatedField& +CameraModel::_internal_bodyframetocameramrp() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.bodyframetocameramrp_; +} +inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL +CameraModel::_internal_mutable_bodyframetocameramrp() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.bodyframetocameramrp_; +} // .cielimMessage.LensModel lensModel = 5; -inline bool CameraModel::_internal_has_lensmodel() const { - return this != internal_default_instance() && lensmodel_ != nullptr; -} inline bool CameraModel::has_lensmodel() const { - return _internal_has_lensmodel(); + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + PROTOBUF_ASSUME(!value || _impl_.lensmodel_ != nullptr); + return value; } inline void CameraModel::clear_lensmodel() { - if (GetArenaForAllocation() == nullptr && lensmodel_ != nullptr) { - delete lensmodel_; - } - lensmodel_ = nullptr; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.lensmodel_ != nullptr) _impl_.lensmodel_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline const ::cielimMessage::LensModel& CameraModel::_internal_lensmodel() const { - const ::cielimMessage::LensModel* p = lensmodel_; - return p != nullptr ? *p : reinterpret_cast( - ::cielimMessage::_LensModel_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::cielimMessage::LensModel* p = _impl_.lensmodel_; + return p != nullptr ? *p : reinterpret_cast(::cielimMessage::_LensModel_default_instance_); } -inline const ::cielimMessage::LensModel& CameraModel::lensmodel() const { +inline const ::cielimMessage::LensModel& CameraModel::lensmodel() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:cielimMessage.CameraModel.lensModel) return _internal_lensmodel(); } inline void CameraModel::unsafe_arena_set_allocated_lensmodel( - ::cielimMessage::LensModel* lensmodel) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(lensmodel_); - } - lensmodel_ = lensmodel; - if (lensmodel) { - + ::cielimMessage::LensModel* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.lensmodel_); + } + _impl_.lensmodel_ = reinterpret_cast<::cielimMessage::LensModel*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:cielimMessage.CameraModel.lensModel) } -inline ::cielimMessage::LensModel* CameraModel::release_lensmodel() { - - ::cielimMessage::LensModel* temp = lensmodel_; - lensmodel_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; +inline ::cielimMessage::LensModel* PROTOBUF_NULLABLE CameraModel::release_lensmodel() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::cielimMessage::LensModel* released = _impl_.lensmodel_; + _impl_.lensmodel_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } -inline ::cielimMessage::LensModel* CameraModel::unsafe_arena_release_lensmodel() { +inline ::cielimMessage::LensModel* PROTOBUF_NULLABLE CameraModel::unsafe_arena_release_lensmodel() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:cielimMessage.CameraModel.lensModel) - - ::cielimMessage::LensModel* temp = lensmodel_; - lensmodel_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::cielimMessage::LensModel* temp = _impl_.lensmodel_; + _impl_.lensmodel_ = nullptr; return temp; } -inline ::cielimMessage::LensModel* CameraModel::_internal_mutable_lensmodel() { - - if (lensmodel_ == nullptr) { - auto* p = CreateMaybeMessage<::cielimMessage::LensModel>(GetArenaForAllocation()); - lensmodel_ = p; +inline ::cielimMessage::LensModel* PROTOBUF_NONNULL CameraModel::_internal_mutable_lensmodel() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.lensmodel_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::cielimMessage::LensModel>(GetArena()); + _impl_.lensmodel_ = reinterpret_cast<::cielimMessage::LensModel*>(p); } - return lensmodel_; + return _impl_.lensmodel_; } -inline ::cielimMessage::LensModel* CameraModel::mutable_lensmodel() { +inline ::cielimMessage::LensModel* PROTOBUF_NONNULL CameraModel::mutable_lensmodel() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::cielimMessage::LensModel* _msg = _internal_mutable_lensmodel(); // @@protoc_insertion_point(field_mutable:cielimMessage.CameraModel.lensModel) return _msg; } -inline void CameraModel::set_allocated_lensmodel(::cielimMessage::LensModel* lensmodel) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void CameraModel::set_allocated_lensmodel(::cielimMessage::LensModel* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete lensmodel_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.lensmodel_); } - if (lensmodel) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::cielimMessage::LensModel>::GetOwningArena(lensmodel); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - lensmodel = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, lensmodel, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } - lensmodel_ = lensmodel; + + _impl_.lensmodel_ = reinterpret_cast<::cielimMessage::LensModel*>(value); // @@protoc_insertion_point(field_set_allocated:cielimMessage.CameraModel.lensModel) } // .cielimMessage.SensorModel sensorModel = 6; -inline bool CameraModel::_internal_has_sensormodel() const { - return this != internal_default_instance() && sensormodel_ != nullptr; -} inline bool CameraModel::has_sensormodel() const { - return _internal_has_sensormodel(); + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); + PROTOBUF_ASSUME(!value || _impl_.sensormodel_ != nullptr); + return value; } inline void CameraModel::clear_sensormodel() { - if (GetArenaForAllocation() == nullptr && sensormodel_ != nullptr) { - delete sensormodel_; - } - sensormodel_ = nullptr; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.sensormodel_ != nullptr) _impl_.sensormodel_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline const ::cielimMessage::SensorModel& CameraModel::_internal_sensormodel() const { - const ::cielimMessage::SensorModel* p = sensormodel_; - return p != nullptr ? *p : reinterpret_cast( - ::cielimMessage::_SensorModel_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::cielimMessage::SensorModel* p = _impl_.sensormodel_; + return p != nullptr ? *p : reinterpret_cast(::cielimMessage::_SensorModel_default_instance_); } -inline const ::cielimMessage::SensorModel& CameraModel::sensormodel() const { +inline const ::cielimMessage::SensorModel& CameraModel::sensormodel() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:cielimMessage.CameraModel.sensorModel) return _internal_sensormodel(); } inline void CameraModel::unsafe_arena_set_allocated_sensormodel( - ::cielimMessage::SensorModel* sensormodel) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(sensormodel_); - } - sensormodel_ = sensormodel; - if (sensormodel) { - + ::cielimMessage::SensorModel* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.sensormodel_); + } + _impl_.sensormodel_ = reinterpret_cast<::cielimMessage::SensorModel*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:cielimMessage.CameraModel.sensorModel) } -inline ::cielimMessage::SensorModel* CameraModel::release_sensormodel() { - - ::cielimMessage::SensorModel* temp = sensormodel_; - sensormodel_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; +inline ::cielimMessage::SensorModel* PROTOBUF_NULLABLE CameraModel::release_sensormodel() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + ::cielimMessage::SensorModel* released = _impl_.sensormodel_; + _impl_.sensormodel_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } -inline ::cielimMessage::SensorModel* CameraModel::unsafe_arena_release_sensormodel() { +inline ::cielimMessage::SensorModel* PROTOBUF_NULLABLE CameraModel::unsafe_arena_release_sensormodel() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:cielimMessage.CameraModel.sensorModel) - - ::cielimMessage::SensorModel* temp = sensormodel_; - sensormodel_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + ::cielimMessage::SensorModel* temp = _impl_.sensormodel_; + _impl_.sensormodel_ = nullptr; return temp; } -inline ::cielimMessage::SensorModel* CameraModel::_internal_mutable_sensormodel() { - - if (sensormodel_ == nullptr) { - auto* p = CreateMaybeMessage<::cielimMessage::SensorModel>(GetArenaForAllocation()); - sensormodel_ = p; +inline ::cielimMessage::SensorModel* PROTOBUF_NONNULL CameraModel::_internal_mutable_sensormodel() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.sensormodel_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::cielimMessage::SensorModel>(GetArena()); + _impl_.sensormodel_ = reinterpret_cast<::cielimMessage::SensorModel*>(p); } - return sensormodel_; + return _impl_.sensormodel_; } -inline ::cielimMessage::SensorModel* CameraModel::mutable_sensormodel() { +inline ::cielimMessage::SensorModel* PROTOBUF_NONNULL CameraModel::mutable_sensormodel() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); ::cielimMessage::SensorModel* _msg = _internal_mutable_sensormodel(); // @@protoc_insertion_point(field_mutable:cielimMessage.CameraModel.sensorModel) return _msg; } -inline void CameraModel::set_allocated_sensormodel(::cielimMessage::SensorModel* sensormodel) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void CameraModel::set_allocated_sensormodel(::cielimMessage::SensorModel* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete sensormodel_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.sensormodel_); } - if (sensormodel) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::cielimMessage::SensorModel>::GetOwningArena(sensormodel); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - sensormodel = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, sensormodel, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } - sensormodel_ = sensormodel; + + _impl_.sensormodel_ = reinterpret_cast<::cielimMessage::SensorModel*>(value); // @@protoc_insertion_point(field_set_allocated:cielimMessage.CameraModel.sensorModel) } // .cielimMessage.AreaOfInterest areaOfInterest = 7; -inline bool CameraModel::_internal_has_areaofinterest() const { - return this != internal_default_instance() && areaofinterest_ != nullptr; -} inline bool CameraModel::has_areaofinterest() const { - return _internal_has_areaofinterest(); + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); + PROTOBUF_ASSUME(!value || _impl_.areaofinterest_ != nullptr); + return value; } inline void CameraModel::clear_areaofinterest() { - if (GetArenaForAllocation() == nullptr && areaofinterest_ != nullptr) { - delete areaofinterest_; - } - areaofinterest_ = nullptr; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.areaofinterest_ != nullptr) _impl_.areaofinterest_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline const ::cielimMessage::AreaOfInterest& CameraModel::_internal_areaofinterest() const { - const ::cielimMessage::AreaOfInterest* p = areaofinterest_; - return p != nullptr ? *p : reinterpret_cast( - ::cielimMessage::_AreaOfInterest_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::cielimMessage::AreaOfInterest* p = _impl_.areaofinterest_; + return p != nullptr ? *p : reinterpret_cast(::cielimMessage::_AreaOfInterest_default_instance_); } -inline const ::cielimMessage::AreaOfInterest& CameraModel::areaofinterest() const { +inline const ::cielimMessage::AreaOfInterest& CameraModel::areaofinterest() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:cielimMessage.CameraModel.areaOfInterest) return _internal_areaofinterest(); } inline void CameraModel::unsafe_arena_set_allocated_areaofinterest( - ::cielimMessage::AreaOfInterest* areaofinterest) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(areaofinterest_); - } - areaofinterest_ = areaofinterest; - if (areaofinterest) { - + ::cielimMessage::AreaOfInterest* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.areaofinterest_); + } + _impl_.areaofinterest_ = reinterpret_cast<::cielimMessage::AreaOfInterest*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:cielimMessage.CameraModel.areaOfInterest) } -inline ::cielimMessage::AreaOfInterest* CameraModel::release_areaofinterest() { - - ::cielimMessage::AreaOfInterest* temp = areaofinterest_; - areaofinterest_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; +inline ::cielimMessage::AreaOfInterest* PROTOBUF_NULLABLE CameraModel::release_areaofinterest() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + ::cielimMessage::AreaOfInterest* released = _impl_.areaofinterest_; + _impl_.areaofinterest_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } -inline ::cielimMessage::AreaOfInterest* CameraModel::unsafe_arena_release_areaofinterest() { +inline ::cielimMessage::AreaOfInterest* PROTOBUF_NULLABLE CameraModel::unsafe_arena_release_areaofinterest() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:cielimMessage.CameraModel.areaOfInterest) - - ::cielimMessage::AreaOfInterest* temp = areaofinterest_; - areaofinterest_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + ::cielimMessage::AreaOfInterest* temp = _impl_.areaofinterest_; + _impl_.areaofinterest_ = nullptr; return temp; } -inline ::cielimMessage::AreaOfInterest* CameraModel::_internal_mutable_areaofinterest() { - - if (areaofinterest_ == nullptr) { - auto* p = CreateMaybeMessage<::cielimMessage::AreaOfInterest>(GetArenaForAllocation()); - areaofinterest_ = p; +inline ::cielimMessage::AreaOfInterest* PROTOBUF_NONNULL CameraModel::_internal_mutable_areaofinterest() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.areaofinterest_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::cielimMessage::AreaOfInterest>(GetArena()); + _impl_.areaofinterest_ = reinterpret_cast<::cielimMessage::AreaOfInterest*>(p); } - return areaofinterest_; + return _impl_.areaofinterest_; } -inline ::cielimMessage::AreaOfInterest* CameraModel::mutable_areaofinterest() { +inline ::cielimMessage::AreaOfInterest* PROTOBUF_NONNULL CameraModel::mutable_areaofinterest() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); ::cielimMessage::AreaOfInterest* _msg = _internal_mutable_areaofinterest(); // @@protoc_insertion_point(field_mutable:cielimMessage.CameraModel.areaOfInterest) return _msg; } -inline void CameraModel::set_allocated_areaofinterest(::cielimMessage::AreaOfInterest* areaofinterest) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void CameraModel::set_allocated_areaofinterest(::cielimMessage::AreaOfInterest* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete areaofinterest_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.areaofinterest_); } - if (areaofinterest) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::cielimMessage::AreaOfInterest>::GetOwningArena(areaofinterest); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - areaofinterest = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, areaofinterest, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } - areaofinterest_ = areaofinterest; + + _impl_.areaofinterest_ = reinterpret_cast<::cielimMessage::AreaOfInterest*>(value); // @@protoc_insertion_point(field_set_allocated:cielimMessage.CameraModel.areaOfInterest) } @@ -5887,530 +7046,573 @@ inline void CameraModel::set_allocated_areaofinterest(::cielimMessage::AreaOfInt // CielimMessage // .cielimMessage.EpochDateTime epoch = 1; -inline bool CielimMessage::_internal_has_epoch() const { - return this != internal_default_instance() && epoch_ != nullptr; -} inline bool CielimMessage::has_epoch() const { - return _internal_has_epoch(); + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + PROTOBUF_ASSUME(!value || _impl_.epoch_ != nullptr); + return value; } inline void CielimMessage::clear_epoch() { - if (GetArenaForAllocation() == nullptr && epoch_ != nullptr) { - delete epoch_; - } - epoch_ = nullptr; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.epoch_ != nullptr) _impl_.epoch_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::cielimMessage::EpochDateTime& CielimMessage::_internal_epoch() const { - const ::cielimMessage::EpochDateTime* p = epoch_; - return p != nullptr ? *p : reinterpret_cast( - ::cielimMessage::_EpochDateTime_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::cielimMessage::EpochDateTime* p = _impl_.epoch_; + return p != nullptr ? *p : reinterpret_cast(::cielimMessage::_EpochDateTime_default_instance_); } -inline const ::cielimMessage::EpochDateTime& CielimMessage::epoch() const { +inline const ::cielimMessage::EpochDateTime& CielimMessage::epoch() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:cielimMessage.CielimMessage.epoch) return _internal_epoch(); } inline void CielimMessage::unsafe_arena_set_allocated_epoch( - ::cielimMessage::EpochDateTime* epoch) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(epoch_); - } - epoch_ = epoch; - if (epoch) { - + ::cielimMessage::EpochDateTime* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.epoch_); + } + _impl_.epoch_ = reinterpret_cast<::cielimMessage::EpochDateTime*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:cielimMessage.CielimMessage.epoch) } -inline ::cielimMessage::EpochDateTime* CielimMessage::release_epoch() { - - ::cielimMessage::EpochDateTime* temp = epoch_; - epoch_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; +inline ::cielimMessage::EpochDateTime* PROTOBUF_NULLABLE CielimMessage::release_epoch() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::cielimMessage::EpochDateTime* released = _impl_.epoch_; + _impl_.epoch_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } -inline ::cielimMessage::EpochDateTime* CielimMessage::unsafe_arena_release_epoch() { +inline ::cielimMessage::EpochDateTime* PROTOBUF_NULLABLE CielimMessage::unsafe_arena_release_epoch() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:cielimMessage.CielimMessage.epoch) - - ::cielimMessage::EpochDateTime* temp = epoch_; - epoch_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + ::cielimMessage::EpochDateTime* temp = _impl_.epoch_; + _impl_.epoch_ = nullptr; return temp; } -inline ::cielimMessage::EpochDateTime* CielimMessage::_internal_mutable_epoch() { - - if (epoch_ == nullptr) { - auto* p = CreateMaybeMessage<::cielimMessage::EpochDateTime>(GetArenaForAllocation()); - epoch_ = p; +inline ::cielimMessage::EpochDateTime* PROTOBUF_NONNULL CielimMessage::_internal_mutable_epoch() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.epoch_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::cielimMessage::EpochDateTime>(GetArena()); + _impl_.epoch_ = reinterpret_cast<::cielimMessage::EpochDateTime*>(p); } - return epoch_; + return _impl_.epoch_; } -inline ::cielimMessage::EpochDateTime* CielimMessage::mutable_epoch() { +inline ::cielimMessage::EpochDateTime* PROTOBUF_NONNULL CielimMessage::mutable_epoch() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::cielimMessage::EpochDateTime* _msg = _internal_mutable_epoch(); // @@protoc_insertion_point(field_mutable:cielimMessage.CielimMessage.epoch) return _msg; } -inline void CielimMessage::set_allocated_epoch(::cielimMessage::EpochDateTime* epoch) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void CielimMessage::set_allocated_epoch(::cielimMessage::EpochDateTime* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete epoch_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.epoch_); } - if (epoch) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::cielimMessage::EpochDateTime>::GetOwningArena(epoch); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - epoch = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, epoch, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } - epoch_ = epoch; + + _impl_.epoch_ = reinterpret_cast<::cielimMessage::EpochDateTime*>(value); // @@protoc_insertion_point(field_set_allocated:cielimMessage.CielimMessage.epoch) } // .cielimMessage.TimeStamp currentTime = 2; -inline bool CielimMessage::_internal_has_currenttime() const { - return this != internal_default_instance() && currenttime_ != nullptr; -} inline bool CielimMessage::has_currenttime() const { - return _internal_has_currenttime(); + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + PROTOBUF_ASSUME(!value || _impl_.currenttime_ != nullptr); + return value; } inline void CielimMessage::clear_currenttime() { - if (GetArenaForAllocation() == nullptr && currenttime_ != nullptr) { - delete currenttime_; - } - currenttime_ = nullptr; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.currenttime_ != nullptr) _impl_.currenttime_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline const ::cielimMessage::TimeStamp& CielimMessage::_internal_currenttime() const { - const ::cielimMessage::TimeStamp* p = currenttime_; - return p != nullptr ? *p : reinterpret_cast( - ::cielimMessage::_TimeStamp_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::cielimMessage::TimeStamp* p = _impl_.currenttime_; + return p != nullptr ? *p : reinterpret_cast(::cielimMessage::_TimeStamp_default_instance_); } -inline const ::cielimMessage::TimeStamp& CielimMessage::currenttime() const { +inline const ::cielimMessage::TimeStamp& CielimMessage::currenttime() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:cielimMessage.CielimMessage.currentTime) return _internal_currenttime(); } inline void CielimMessage::unsafe_arena_set_allocated_currenttime( - ::cielimMessage::TimeStamp* currenttime) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(currenttime_); - } - currenttime_ = currenttime; - if (currenttime) { - + ::cielimMessage::TimeStamp* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.currenttime_); + } + _impl_.currenttime_ = reinterpret_cast<::cielimMessage::TimeStamp*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:cielimMessage.CielimMessage.currentTime) } -inline ::cielimMessage::TimeStamp* CielimMessage::release_currenttime() { - - ::cielimMessage::TimeStamp* temp = currenttime_; - currenttime_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; +inline ::cielimMessage::TimeStamp* PROTOBUF_NULLABLE CielimMessage::release_currenttime() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::cielimMessage::TimeStamp* released = _impl_.currenttime_; + _impl_.currenttime_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } -inline ::cielimMessage::TimeStamp* CielimMessage::unsafe_arena_release_currenttime() { +inline ::cielimMessage::TimeStamp* PROTOBUF_NULLABLE CielimMessage::unsafe_arena_release_currenttime() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:cielimMessage.CielimMessage.currentTime) - - ::cielimMessage::TimeStamp* temp = currenttime_; - currenttime_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + ::cielimMessage::TimeStamp* temp = _impl_.currenttime_; + _impl_.currenttime_ = nullptr; return temp; } -inline ::cielimMessage::TimeStamp* CielimMessage::_internal_mutable_currenttime() { - - if (currenttime_ == nullptr) { - auto* p = CreateMaybeMessage<::cielimMessage::TimeStamp>(GetArenaForAllocation()); - currenttime_ = p; +inline ::cielimMessage::TimeStamp* PROTOBUF_NONNULL CielimMessage::_internal_mutable_currenttime() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.currenttime_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::cielimMessage::TimeStamp>(GetArena()); + _impl_.currenttime_ = reinterpret_cast<::cielimMessage::TimeStamp*>(p); } - return currenttime_; + return _impl_.currenttime_; } -inline ::cielimMessage::TimeStamp* CielimMessage::mutable_currenttime() { +inline ::cielimMessage::TimeStamp* PROTOBUF_NONNULL CielimMessage::mutable_currenttime() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::cielimMessage::TimeStamp* _msg = _internal_mutable_currenttime(); // @@protoc_insertion_point(field_mutable:cielimMessage.CielimMessage.currentTime) return _msg; } -inline void CielimMessage::set_allocated_currenttime(::cielimMessage::TimeStamp* currenttime) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void CielimMessage::set_allocated_currenttime(::cielimMessage::TimeStamp* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete currenttime_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.currenttime_); } - if (currenttime) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::cielimMessage::TimeStamp>::GetOwningArena(currenttime); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - currenttime = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, currenttime, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } - currenttime_ = currenttime; + + _impl_.currenttime_ = reinterpret_cast<::cielimMessage::TimeStamp*>(value); // @@protoc_insertion_point(field_set_allocated:cielimMessage.CielimMessage.currentTime) } // .cielimMessage.RenderingModel renderParameters = 3; -inline bool CielimMessage::_internal_has_renderparameters() const { - return this != internal_default_instance() && renderparameters_ != nullptr; -} inline bool CielimMessage::has_renderparameters() const { - return _internal_has_renderparameters(); + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + PROTOBUF_ASSUME(!value || _impl_.renderparameters_ != nullptr); + return value; } inline void CielimMessage::clear_renderparameters() { - if (GetArenaForAllocation() == nullptr && renderparameters_ != nullptr) { - delete renderparameters_; - } - renderparameters_ = nullptr; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.renderparameters_ != nullptr) _impl_.renderparameters_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline const ::cielimMessage::RenderingModel& CielimMessage::_internal_renderparameters() const { - const ::cielimMessage::RenderingModel* p = renderparameters_; - return p != nullptr ? *p : reinterpret_cast( - ::cielimMessage::_RenderingModel_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::cielimMessage::RenderingModel* p = _impl_.renderparameters_; + return p != nullptr ? *p : reinterpret_cast(::cielimMessage::_RenderingModel_default_instance_); } -inline const ::cielimMessage::RenderingModel& CielimMessage::renderparameters() const { +inline const ::cielimMessage::RenderingModel& CielimMessage::renderparameters() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:cielimMessage.CielimMessage.renderParameters) return _internal_renderparameters(); } inline void CielimMessage::unsafe_arena_set_allocated_renderparameters( - ::cielimMessage::RenderingModel* renderparameters) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(renderparameters_); - } - renderparameters_ = renderparameters; - if (renderparameters) { - + ::cielimMessage::RenderingModel* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.renderparameters_); + } + _impl_.renderparameters_ = reinterpret_cast<::cielimMessage::RenderingModel*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:cielimMessage.CielimMessage.renderParameters) } -inline ::cielimMessage::RenderingModel* CielimMessage::release_renderparameters() { - - ::cielimMessage::RenderingModel* temp = renderparameters_; - renderparameters_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; +inline ::cielimMessage::RenderingModel* PROTOBUF_NULLABLE CielimMessage::release_renderparameters() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::cielimMessage::RenderingModel* released = _impl_.renderparameters_; + _impl_.renderparameters_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } -inline ::cielimMessage::RenderingModel* CielimMessage::unsafe_arena_release_renderparameters() { +inline ::cielimMessage::RenderingModel* PROTOBUF_NULLABLE CielimMessage::unsafe_arena_release_renderparameters() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:cielimMessage.CielimMessage.renderParameters) - - ::cielimMessage::RenderingModel* temp = renderparameters_; - renderparameters_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + ::cielimMessage::RenderingModel* temp = _impl_.renderparameters_; + _impl_.renderparameters_ = nullptr; return temp; } -inline ::cielimMessage::RenderingModel* CielimMessage::_internal_mutable_renderparameters() { - - if (renderparameters_ == nullptr) { - auto* p = CreateMaybeMessage<::cielimMessage::RenderingModel>(GetArenaForAllocation()); - renderparameters_ = p; +inline ::cielimMessage::RenderingModel* PROTOBUF_NONNULL CielimMessage::_internal_mutable_renderparameters() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.renderparameters_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::cielimMessage::RenderingModel>(GetArena()); + _impl_.renderparameters_ = reinterpret_cast<::cielimMessage::RenderingModel*>(p); } - return renderparameters_; + return _impl_.renderparameters_; } -inline ::cielimMessage::RenderingModel* CielimMessage::mutable_renderparameters() { +inline ::cielimMessage::RenderingModel* PROTOBUF_NONNULL CielimMessage::mutable_renderparameters() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::cielimMessage::RenderingModel* _msg = _internal_mutable_renderparameters(); // @@protoc_insertion_point(field_mutable:cielimMessage.CielimMessage.renderParameters) return _msg; } -inline void CielimMessage::set_allocated_renderparameters(::cielimMessage::RenderingModel* renderparameters) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void CielimMessage::set_allocated_renderparameters(::cielimMessage::RenderingModel* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete renderparameters_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.renderparameters_); } - if (renderparameters) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::cielimMessage::RenderingModel>::GetOwningArena(renderparameters); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - renderparameters = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, renderparameters, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } - renderparameters_ = renderparameters; + + _impl_.renderparameters_ = reinterpret_cast<::cielimMessage::RenderingModel*>(value); // @@protoc_insertion_point(field_set_allocated:cielimMessage.CielimMessage.renderParameters) } // repeated .cielimMessage.CelestialBody celestialBodies = 4; inline int CielimMessage::_internal_celestialbodies_size() const { - return celestialbodies_.size(); + return _internal_celestialbodies().size(); } inline int CielimMessage::celestialbodies_size() const { return _internal_celestialbodies_size(); } inline void CielimMessage::clear_celestialbodies() { - celestialbodies_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.celestialbodies_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } -inline ::cielimMessage::CelestialBody* CielimMessage::mutable_celestialbodies(int index) { +inline ::cielimMessage::CelestialBody* PROTOBUF_NONNULL CielimMessage::mutable_celestialbodies(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:cielimMessage.CielimMessage.celestialBodies) - return celestialbodies_.Mutable(index); + return _internal_mutable_celestialbodies()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::cielimMessage::CelestialBody >* -CielimMessage::mutable_celestialbodies() { +inline ::google::protobuf::RepeatedPtrField<::cielimMessage::CelestialBody>* PROTOBUF_NONNULL CielimMessage::mutable_celestialbodies() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:cielimMessage.CielimMessage.celestialBodies) - return &celestialbodies_; -} -inline const ::cielimMessage::CelestialBody& CielimMessage::_internal_celestialbodies(int index) const { - return celestialbodies_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_celestialbodies(); } -inline const ::cielimMessage::CelestialBody& CielimMessage::celestialbodies(int index) const { +inline const ::cielimMessage::CelestialBody& CielimMessage::celestialbodies(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:cielimMessage.CielimMessage.celestialBodies) - return _internal_celestialbodies(index); -} -inline ::cielimMessage::CelestialBody* CielimMessage::_internal_add_celestialbodies() { - return celestialbodies_.Add(); -} -inline ::cielimMessage::CelestialBody* CielimMessage::add_celestialbodies() { - ::cielimMessage::CelestialBody* _add = _internal_add_celestialbodies(); + return _internal_celestialbodies().Get(index); +} +inline ::cielimMessage::CelestialBody* PROTOBUF_NONNULL CielimMessage::add_celestialbodies() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::cielimMessage::CelestialBody* _add = + _internal_mutable_celestialbodies()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:cielimMessage.CielimMessage.celestialBodies) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::cielimMessage::CelestialBody >& -CielimMessage::celestialbodies() const { +inline const ::google::protobuf::RepeatedPtrField<::cielimMessage::CelestialBody>& CielimMessage::celestialbodies() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:cielimMessage.CielimMessage.celestialBodies) - return celestialbodies_; + return _internal_celestialbodies(); +} +inline const ::google::protobuf::RepeatedPtrField<::cielimMessage::CelestialBody>& +CielimMessage::_internal_celestialbodies() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.celestialbodies_; +} +inline ::google::protobuf::RepeatedPtrField<::cielimMessage::CelestialBody>* PROTOBUF_NONNULL +CielimMessage::_internal_mutable_celestialbodies() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.celestialbodies_; } // .cielimMessage.Spacecraft spacecraft = 5; -inline bool CielimMessage::_internal_has_spacecraft() const { - return this != internal_default_instance() && spacecraft_ != nullptr; -} inline bool CielimMessage::has_spacecraft() const { - return _internal_has_spacecraft(); + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); + PROTOBUF_ASSUME(!value || _impl_.spacecraft_ != nullptr); + return value; } inline void CielimMessage::clear_spacecraft() { - if (GetArenaForAllocation() == nullptr && spacecraft_ != nullptr) { - delete spacecraft_; - } - spacecraft_ = nullptr; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.spacecraft_ != nullptr) _impl_.spacecraft_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline const ::cielimMessage::Spacecraft& CielimMessage::_internal_spacecraft() const { - const ::cielimMessage::Spacecraft* p = spacecraft_; - return p != nullptr ? *p : reinterpret_cast( - ::cielimMessage::_Spacecraft_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::cielimMessage::Spacecraft* p = _impl_.spacecraft_; + return p != nullptr ? *p : reinterpret_cast(::cielimMessage::_Spacecraft_default_instance_); } -inline const ::cielimMessage::Spacecraft& CielimMessage::spacecraft() const { +inline const ::cielimMessage::Spacecraft& CielimMessage::spacecraft() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:cielimMessage.CielimMessage.spacecraft) return _internal_spacecraft(); } inline void CielimMessage::unsafe_arena_set_allocated_spacecraft( - ::cielimMessage::Spacecraft* spacecraft) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(spacecraft_); - } - spacecraft_ = spacecraft; - if (spacecraft) { - + ::cielimMessage::Spacecraft* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.spacecraft_); + } + _impl_.spacecraft_ = reinterpret_cast<::cielimMessage::Spacecraft*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:cielimMessage.CielimMessage.spacecraft) } -inline ::cielimMessage::Spacecraft* CielimMessage::release_spacecraft() { - - ::cielimMessage::Spacecraft* temp = spacecraft_; - spacecraft_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; +inline ::cielimMessage::Spacecraft* PROTOBUF_NULLABLE CielimMessage::release_spacecraft() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + ::cielimMessage::Spacecraft* released = _impl_.spacecraft_; + _impl_.spacecraft_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } -inline ::cielimMessage::Spacecraft* CielimMessage::unsafe_arena_release_spacecraft() { +inline ::cielimMessage::Spacecraft* PROTOBUF_NULLABLE CielimMessage::unsafe_arena_release_spacecraft() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:cielimMessage.CielimMessage.spacecraft) - - ::cielimMessage::Spacecraft* temp = spacecraft_; - spacecraft_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + ::cielimMessage::Spacecraft* temp = _impl_.spacecraft_; + _impl_.spacecraft_ = nullptr; return temp; } -inline ::cielimMessage::Spacecraft* CielimMessage::_internal_mutable_spacecraft() { - - if (spacecraft_ == nullptr) { - auto* p = CreateMaybeMessage<::cielimMessage::Spacecraft>(GetArenaForAllocation()); - spacecraft_ = p; +inline ::cielimMessage::Spacecraft* PROTOBUF_NONNULL CielimMessage::_internal_mutable_spacecraft() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.spacecraft_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::cielimMessage::Spacecraft>(GetArena()); + _impl_.spacecraft_ = reinterpret_cast<::cielimMessage::Spacecraft*>(p); } - return spacecraft_; + return _impl_.spacecraft_; } -inline ::cielimMessage::Spacecraft* CielimMessage::mutable_spacecraft() { +inline ::cielimMessage::Spacecraft* PROTOBUF_NONNULL CielimMessage::mutable_spacecraft() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); ::cielimMessage::Spacecraft* _msg = _internal_mutable_spacecraft(); // @@protoc_insertion_point(field_mutable:cielimMessage.CielimMessage.spacecraft) return _msg; } -inline void CielimMessage::set_allocated_spacecraft(::cielimMessage::Spacecraft* spacecraft) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void CielimMessage::set_allocated_spacecraft(::cielimMessage::Spacecraft* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete spacecraft_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.spacecraft_); } - if (spacecraft) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::cielimMessage::Spacecraft>::GetOwningArena(spacecraft); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - spacecraft = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, spacecraft, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } - spacecraft_ = spacecraft; + + _impl_.spacecraft_ = reinterpret_cast<::cielimMessage::Spacecraft*>(value); // @@protoc_insertion_point(field_set_allocated:cielimMessage.CielimMessage.spacecraft) } // .cielimMessage.CameraModel camera = 6; -inline bool CielimMessage::_internal_has_camera() const { - return this != internal_default_instance() && camera_ != nullptr; -} inline bool CielimMessage::has_camera() const { - return _internal_has_camera(); + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); + PROTOBUF_ASSUME(!value || _impl_.camera_ != nullptr); + return value; } inline void CielimMessage::clear_camera() { - if (GetArenaForAllocation() == nullptr && camera_ != nullptr) { - delete camera_; - } - camera_ = nullptr; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.camera_ != nullptr) _impl_.camera_->Clear(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline const ::cielimMessage::CameraModel& CielimMessage::_internal_camera() const { - const ::cielimMessage::CameraModel* p = camera_; - return p != nullptr ? *p : reinterpret_cast( - ::cielimMessage::_CameraModel_default_instance_); + ::google::protobuf::internal::TSanRead(&_impl_); + const ::cielimMessage::CameraModel* p = _impl_.camera_; + return p != nullptr ? *p : reinterpret_cast(::cielimMessage::_CameraModel_default_instance_); } -inline const ::cielimMessage::CameraModel& CielimMessage::camera() const { +inline const ::cielimMessage::CameraModel& CielimMessage::camera() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:cielimMessage.CielimMessage.camera) return _internal_camera(); } inline void CielimMessage::unsafe_arena_set_allocated_camera( - ::cielimMessage::CameraModel* camera) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(camera_); - } - camera_ = camera; - if (camera) { - + ::cielimMessage::CameraModel* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.camera_); + } + _impl_.camera_ = reinterpret_cast<::cielimMessage::CameraModel*>(value); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:cielimMessage.CielimMessage.camera) } -inline ::cielimMessage::CameraModel* CielimMessage::release_camera() { - - ::cielimMessage::CameraModel* temp = camera_; - camera_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; +inline ::cielimMessage::CameraModel* PROTOBUF_NULLABLE CielimMessage::release_camera() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + ::cielimMessage::CameraModel* released = _impl_.camera_; + _impl_.camera_ = nullptr; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } -inline ::cielimMessage::CameraModel* CielimMessage::unsafe_arena_release_camera() { +inline ::cielimMessage::CameraModel* PROTOBUF_NULLABLE CielimMessage::unsafe_arena_release_camera() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:cielimMessage.CielimMessage.camera) - - ::cielimMessage::CameraModel* temp = camera_; - camera_ = nullptr; + + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + ::cielimMessage::CameraModel* temp = _impl_.camera_; + _impl_.camera_ = nullptr; return temp; } -inline ::cielimMessage::CameraModel* CielimMessage::_internal_mutable_camera() { - - if (camera_ == nullptr) { - auto* p = CreateMaybeMessage<::cielimMessage::CameraModel>(GetArenaForAllocation()); - camera_ = p; +inline ::cielimMessage::CameraModel* PROTOBUF_NONNULL CielimMessage::_internal_mutable_camera() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.camera_ == nullptr) { + auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::cielimMessage::CameraModel>(GetArena()); + _impl_.camera_ = reinterpret_cast<::cielimMessage::CameraModel*>(p); } - return camera_; + return _impl_.camera_; } -inline ::cielimMessage::CameraModel* CielimMessage::mutable_camera() { +inline ::cielimMessage::CameraModel* PROTOBUF_NONNULL CielimMessage::mutable_camera() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); ::cielimMessage::CameraModel* _msg = _internal_mutable_camera(); // @@protoc_insertion_point(field_mutable:cielimMessage.CielimMessage.camera) return _msg; } -inline void CielimMessage::set_allocated_camera(::cielimMessage::CameraModel* camera) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void CielimMessage::set_allocated_camera(::cielimMessage::CameraModel* PROTOBUF_NULLABLE value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete camera_; + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.camera_); } - if (camera) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::cielimMessage::CameraModel>::GetOwningArena(camera); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { - camera = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, camera, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } - camera_ = camera; + + _impl_.camera_ = reinterpret_cast<::cielimMessage::CameraModel*>(value); // @@protoc_insertion_point(field_set_allocated:cielimMessage.CielimMessage.camera) } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- -// ------------------------------------------------------------------- +// @@protoc_insertion_point(namespace_scope) +} // namespace cielimMessage -// ------------------------------------------------------------------- +// @@protoc_insertion_point(global_scope) -// @@protoc_insertion_point(namespace_scope) +#include "google/protobuf/port_undef.inc" -} // namespace cielimMessage +#pragma pop_macro("verify") +#pragma pop_macro("check") -// @@protoc_insertion_point(global_scope) +#if defined(_MSC_VER) +#pragma warning(pop) +#endif -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_cielimMessage_2eproto +#endif // cielimMessage_2eproto_2epb_2eh diff --git a/Source/cielim/Protobuf/imageDiagnostics.pb.cc b/Source/cielim/Protobuf/imageDiagnostics.pb.cc index 32a4a22a..e61d83f6 100644 --- a/Source/cielim/Protobuf/imageDiagnostics.pb.cc +++ b/Source/cielim/Protobuf/imageDiagnostics.pb.cc @@ -1,297 +1,421 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: imageDiagnostics.proto +// Protobuf C++ Version: 6.33.4 + +#if defined(_MSC_VER) +#pragma warning(push) +#pragma warning(disable: 4458 4702 4800) +#endif + +#pragma push_macro("check") +#pragma push_macro("verify") + +#undef check +#undef verify #include "imageDiagnostics.pb.h" #include - -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.h" +#include "google/protobuf/io/zero_copy_stream_impl_lite.h" // @@protoc_insertion_point(includes) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace imageDiagnostics { -constexpr DiagnosticData::DiagnosticData( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : cob_x_(0) - , cob_y_(0) - , coverage_(0) - , totalbrightpixels_(0){} + +inline constexpr DiagnosticData::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + cob_x_{0}, + cob_y_{0}, + coverage_{0}, + totalbrightpixels_{0} {} + +template +PROTOBUF_CONSTEXPR DiagnosticData::DiagnosticData(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(DiagnosticData_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct DiagnosticDataDefaultTypeInternal { - constexpr DiagnosticDataDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR DiagnosticDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~DiagnosticDataDefaultTypeInternal() {} union { DiagnosticData _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DiagnosticDataDefaultTypeInternal _DiagnosticData_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiagnosticDataDefaultTypeInternal _DiagnosticData_default_instance_; } // namespace imageDiagnostics namespace imageDiagnostics { - // =================================================================== class DiagnosticData::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(DiagnosticData, _impl_._has_bits_); }; -DiagnosticData::DiagnosticData(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } +DiagnosticData::DiagnosticData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, DiagnosticData_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:imageDiagnostics.DiagnosticData) } -DiagnosticData::DiagnosticData(const DiagnosticData& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&cob_x_, &from.cob_x_, - static_cast(reinterpret_cast(&totalbrightpixels_) - - reinterpret_cast(&cob_x_)) + sizeof(totalbrightpixels_)); - // @@protoc_insertion_point(copy_constructor:imageDiagnostics.DiagnosticData) +DiagnosticData::DiagnosticData( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DiagnosticData& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::MessageLite(arena, DiagnosticData_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::MessageLite(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } - -void DiagnosticData::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&cob_x_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&totalbrightpixels_) - - reinterpret_cast(&cob_x_)) + sizeof(totalbrightpixels_)); +PROTOBUF_NDEBUG_INLINE DiagnosticData::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0} {} + +inline void DiagnosticData::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, cob_x_), + 0, + offsetof(Impl_, totalbrightpixels_) - + offsetof(Impl_, cob_x_) + + sizeof(Impl_::totalbrightpixels_)); } - DiagnosticData::~DiagnosticData() { // @@protoc_insertion_point(destructor:imageDiagnostics.DiagnosticData) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); + SharedDtor(*this); } - -inline void DiagnosticData::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void DiagnosticData::SharedDtor(MessageLite& self) { + DiagnosticData& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::std::string>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -void DiagnosticData::ArenaDtor(void* object) { - DiagnosticData* _this = reinterpret_cast< DiagnosticData* >(object); - (void)_this; +inline void* PROTOBUF_NONNULL DiagnosticData::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) DiagnosticData(arena); } -void DiagnosticData::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +constexpr auto DiagnosticData::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(DiagnosticData), + alignof(DiagnosticData)); } -void DiagnosticData::SetCachedSize(int size) const { - _cached_size_.Set(size); +constexpr auto DiagnosticData::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataLite<32>{ + { + &_DiagnosticData_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &DiagnosticData::MergeImpl, + ::google::protobuf::MessageLite::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &DiagnosticData::SharedDtor, + ::google::protobuf::MessageLite::GetClearImpl(), &DiagnosticData::ByteSizeLong, + &DiagnosticData::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(DiagnosticData, _impl_._cached_size_), + true, + }, + "imageDiagnostics.DiagnosticData", + }; } -void DiagnosticData::Clear() { +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataLite<32> DiagnosticData_class_data_ = + DiagnosticData::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +DiagnosticData::GetClassData() const { + return DiagnosticData_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 0, 0, 2> +DiagnosticData::_table_ = { + { + PROTOBUF_FIELD_OFFSET(DiagnosticData, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + DiagnosticData_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallbackLite, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::imageDiagnostics::DiagnosticData>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // int32 totalBrightPixels = 4; + {::_pbi::TcParser::FastV32S1, + {32, 3, 0, + PROTOBUF_FIELD_OFFSET(DiagnosticData, _impl_.totalbrightpixels_)}}, + // double cob_x = 1; + {::_pbi::TcParser::FastF64S1, + {9, 0, 0, + PROTOBUF_FIELD_OFFSET(DiagnosticData, _impl_.cob_x_)}}, + // double cob_y = 2; + {::_pbi::TcParser::FastF64S1, + {17, 1, 0, + PROTOBUF_FIELD_OFFSET(DiagnosticData, _impl_.cob_y_)}}, + // double coverage = 3; + {::_pbi::TcParser::FastF64S1, + {25, 2, 0, + PROTOBUF_FIELD_OFFSET(DiagnosticData, _impl_.coverage_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // double cob_x = 1; + {PROTOBUF_FIELD_OFFSET(DiagnosticData, _impl_.cob_x_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double cob_y = 2; + {PROTOBUF_FIELD_OFFSET(DiagnosticData, _impl_.cob_y_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double coverage = 3; + {PROTOBUF_FIELD_OFFSET(DiagnosticData, _impl_.coverage_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // int32 totalBrightPixels = 4; + {PROTOBUF_FIELD_OFFSET(DiagnosticData, _impl_.totalbrightpixels_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void DiagnosticData::Clear() { // @@protoc_insertion_point(message_clear_start:imageDiagnostics.DiagnosticData) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&cob_x_, 0, static_cast( - reinterpret_cast(&totalbrightpixels_) - - reinterpret_cast(&cob_x_)) + sizeof(totalbrightpixels_)); - _internal_metadata_.Clear(); -} - -const char* DiagnosticData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // double cob_x = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) { - cob_x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double cob_y = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { - cob_y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double coverage = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25)) { - coverage_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // int32 totalBrightPixels = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - totalbrightpixels_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + ::memset(&_impl_.cob_x_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.totalbrightpixels_) - + reinterpret_cast(&_impl_.cob_x_)) + sizeof(_impl_.totalbrightpixels_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::std::string>(); } -::PROTOBUF_NAMESPACE_ID::uint8* DiagnosticData::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL DiagnosticData::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const DiagnosticData& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL DiagnosticData::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const DiagnosticData& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:imageDiagnostics.DiagnosticData) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // double cob_x = 1; - if (!(this->_internal_cob_x() <= 0 && this->_internal_cob_x() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->_internal_cob_x(), target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_cob_x()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 1, this_._internal_cob_x(), target); + } } // double cob_y = 2; - if (!(this->_internal_cob_y() <= 0 && this->_internal_cob_y() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_cob_y(), target); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_cob_y()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 2, this_._internal_cob_y(), target); + } } // double coverage = 3; - if (!(this->_internal_coverage() <= 0 && this->_internal_coverage() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(3, this->_internal_coverage(), target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_coverage()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 3, this_._internal_coverage(), target); + } } // int32 totalBrightPixels = 4; - if (this->_internal_totalbrightpixels() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_totalbrightpixels(), target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_totalbrightpixels() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( + stream, this_._internal_totalbrightpixels(), target); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw( + this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), + static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:imageDiagnostics.DiagnosticData) return target; } -size_t DiagnosticData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:imageDiagnostics.DiagnosticData) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t DiagnosticData::ByteSizeLong(const MessageLite& base) { + const DiagnosticData& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t DiagnosticData::ByteSizeLong() const { + const DiagnosticData& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:imageDiagnostics.DiagnosticData) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // double cob_x = 1; - if (!(this->_internal_cob_x() <= 0 && this->_internal_cob_x() >= 0)) { - total_size += 1 + 8; - } - - // double cob_y = 2; - if (!(this->_internal_cob_y() <= 0 && this->_internal_cob_y() >= 0)) { - total_size += 1 + 8; - } - - // double coverage = 3; - if (!(this->_internal_coverage() <= 0 && this->_internal_coverage() >= 0)) { - total_size += 1 + 8; - } - - // int32 totalBrightPixels = 4; - if (this->_internal_totalbrightpixels() != 0) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_totalbrightpixels()); + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + // double cob_x = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_cob_x()) != 0) { + total_size += 9; + } + } + // double cob_y = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_cob_y()) != 0) { + total_size += 9; + } + } + // double coverage = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (::absl::bit_cast<::uint64_t>(this_._internal_coverage()) != 0) { + total_size += 9; + } + } + // int32 totalBrightPixels = 4; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_totalbrightpixels() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_totalbrightpixels()); + } + } } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); return total_size; } -void DiagnosticData::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void DiagnosticData::MergeFrom(const DiagnosticData& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:imageDiagnostics.DiagnosticData) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (!(from._internal_cob_x() <= 0 && from._internal_cob_x() >= 0)) { - _internal_set_cob_x(from._internal_cob_x()); - } - if (!(from._internal_cob_y() <= 0 && from._internal_cob_y() >= 0)) { - _internal_set_cob_y(from._internal_cob_y()); +void DiagnosticData::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (!(from._internal_coverage() <= 0 && from._internal_coverage() >= 0)) { - _internal_set_coverage(from._internal_coverage()); - } - if (from._internal_totalbrightpixels() != 0) { - _internal_set_totalbrightpixels(from._internal_totalbrightpixels()); + // @@protoc_insertion_point(class_specific_merge_from_start:imageDiagnostics.DiagnosticData) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_cob_x()) != 0) { + _this->_impl_.cob_x_ = from._impl_.cob_x_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_cob_y()) != 0) { + _this->_impl_.cob_y_ = from._impl_.cob_y_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (::absl::bit_cast<::uint64_t>(from._internal_coverage()) != 0) { + _this->_impl_.coverage_ = from._impl_.coverage_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (from._internal_totalbrightpixels() != 0) { + _this->_impl_.totalbrightpixels_ = from._impl_.totalbrightpixels_; + } + } } - _internal_metadata_.MergeFrom(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::std::string>( + from._internal_metadata_); } void DiagnosticData::CopyFrom(const DiagnosticData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:imageDiagnostics.DiagnosticData) + // @@protoc_insertion_point(class_specific_copy_from_start:imageDiagnostics.DiagnosticData) if (&from == this) return; Clear(); MergeFrom(from); } -bool DiagnosticData::IsInitialized() const { - return true; -} -void DiagnosticData::InternalSwap(DiagnosticData* other) { - using std::swap; +void DiagnosticData::InternalSwap(DiagnosticData* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(DiagnosticData, totalbrightpixels_) - + sizeof(DiagnosticData::totalbrightpixels_) - - PROTOBUF_FIELD_OFFSET(DiagnosticData, cob_x_)>( - reinterpret_cast(&cob_x_), - reinterpret_cast(&other->cob_x_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(DiagnosticData, _impl_.totalbrightpixels_) + + sizeof(DiagnosticData::_impl_.totalbrightpixels_) + - PROTOBUF_FIELD_OFFSET(DiagnosticData, _impl_.cob_x_)>( + reinterpret_cast(&_impl_.cob_x_), + reinterpret_cast(&other->_impl_.cob_x_)); } -std::string DiagnosticData::GetTypeName() const { - return "imageDiagnostics.DiagnosticData"; -} - - // @@protoc_insertion_point(namespace_scope) } // namespace imageDiagnostics -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::imageDiagnostics::DiagnosticData* Arena::CreateMaybeMessage< ::imageDiagnostics::DiagnosticData >(Arena* arena) { - return Arena::CreateMessageInternal< ::imageDiagnostics::DiagnosticData >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" + +#pragma pop_macro("verify") +#pragma pop_macro("check") + +#if defined(_MSC_VER) +#pragma warning(pop) +#endif diff --git a/Source/cielim/Protobuf/imageDiagnostics.pb.h b/Source/cielim/Protobuf/imageDiagnostics.pb.h index d9717fa3..2695c0d6 100644 --- a/Source/cielim/Protobuf/imageDiagnostics.pb.h +++ b/Source/cielim/Protobuf/imageDiagnostics.pb.h @@ -1,91 +1,106 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: imageDiagnostics.proto +// Protobuf C++ Version: 6.33.4 -#ifndef GOOGLE_PROTOBUF_INCLUDED_imageDiagnostics_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_imageDiagnostics_2eproto +#ifndef imageDiagnostics_2eproto_2epb_2eh +#define imageDiagnostics_2eproto_2epb_2eh + +#if defined(_MSC_VER) +#pragma warning(push) +#pragma warning(disable: 4458 4702 4800) +#endif + +#pragma push_macro("check") +#pragma push_macro("verify") + +#undef check +#undef verify #include #include - -#include -#if PROTOBUF_VERSION < 3018000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3018000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 6033004 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_imageDiagnostics_2eproto -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_imageDiagnostics_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; + static const ::uint32_t offsets[]; }; namespace imageDiagnostics { class DiagnosticData; struct DiagnosticDataDefaultTypeInternal; extern DiagnosticDataDefaultTypeInternal _DiagnosticData_default_instance_; +extern const ::google::protobuf::internal::ClassDataLite<32> DiagnosticData_class_data_; } // namespace imageDiagnostics -PROTOBUF_NAMESPACE_OPEN -template<> ::imageDiagnostics::DiagnosticData* Arena::CreateMaybeMessage<::imageDiagnostics::DiagnosticData>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace imageDiagnostics { // =================================================================== -class DiagnosticData final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:imageDiagnostics.DiagnosticData) */ { + +// ------------------------------------------------------------------- + +class DiagnosticData final : public ::google::protobuf::MessageLite +/* @@protoc_insertion_point(class_definition:imageDiagnostics.DiagnosticData) */ { public: inline DiagnosticData() : DiagnosticData(nullptr) {} - ~DiagnosticData() override; - explicit constexpr DiagnosticData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~DiagnosticData() PROTOBUF_FINAL; - DiagnosticData(const DiagnosticData& from); - DiagnosticData(DiagnosticData&& from) noexcept - : DiagnosticData() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(DiagnosticData* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(DiagnosticData)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR DiagnosticData(::google::protobuf::internal::ConstantInitialized); + inline DiagnosticData(const DiagnosticData& from) : DiagnosticData(nullptr, from) {} + inline DiagnosticData(DiagnosticData&& from) noexcept + : DiagnosticData(nullptr, ::std::move(from)) {} inline DiagnosticData& operator=(const DiagnosticData& from) { CopyFrom(from); return *this; } inline DiagnosticData& operator=(DiagnosticData&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -93,78 +108,102 @@ class DiagnosticData final : return *this; } - static const DiagnosticData& default_instance() { - return *internal_default_instance(); + inline const ::std::string& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); } - static inline const DiagnosticData* internal_default_instance() { - return reinterpret_cast( - &_DiagnosticData_default_instance_); + inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::std::string>(); } - static constexpr int kIndexInFileMessages = - 0; - friend void swap(DiagnosticData& a, DiagnosticData& b) { - a.Swap(&b); + static const DiagnosticData& default_instance() { + return *reinterpret_cast( + &_DiagnosticData_default_instance_); } - inline void Swap(DiagnosticData* other) { + static constexpr int kIndexInFileMessages = 0; + friend void swap(DiagnosticData& a, DiagnosticData& b) { a.Swap(&b); } + inline void Swap(DiagnosticData* PROTOBUF_NONNULL other) { if (other == this) return; - if (GetOwningArena() == other->GetOwningArena()) { + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DiagnosticData* other) { + void UnsafeArenaSwap(DiagnosticData* PROTOBUF_NONNULL other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline DiagnosticData* New() const final { - return new DiagnosticData(); - } - - DiagnosticData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + DiagnosticData* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::MessageLite::DefaultConstruct(arena); } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; void CopyFrom(const DiagnosticData& from); - void MergeFrom(const DiagnosticData& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } + void MergeFrom(const DiagnosticData& from) { DiagnosticData::MergeImpl(*this, from); } private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(DiagnosticData* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "imageDiagnostics.DiagnosticData"; + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; } - protected: - explicit DiagnosticData(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - std::string GetTypeName() const final; + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(DiagnosticData* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "imageDiagnostics.DiagnosticData"; } + + explicit DiagnosticData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + DiagnosticData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DiagnosticData& from); + DiagnosticData( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, DiagnosticData&& from) noexcept + : DiagnosticData(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kCobXFieldNumber = 1, kCobYFieldNumber = 2, @@ -172,155 +211,216 @@ class DiagnosticData final : kTotalBrightPixelsFieldNumber = 4, }; // double cob_x = 1; - void clear_cob_x(); + void clear_cob_x() ; double cob_x() const; void set_cob_x(double value); + private: double _internal_cob_x() const; void _internal_set_cob_x(double value); - public: + public: // double cob_y = 2; - void clear_cob_y(); + void clear_cob_y() ; double cob_y() const; void set_cob_y(double value); + private: double _internal_cob_y() const; void _internal_set_cob_y(double value); - public: + public: // double coverage = 3; - void clear_coverage(); + void clear_coverage() ; double coverage() const; void set_coverage(double value); + private: double _internal_coverage() const; void _internal_set_coverage(double value); - public: + public: // int32 totalBrightPixels = 4; - void clear_totalbrightpixels(); - ::PROTOBUF_NAMESPACE_ID::int32 totalbrightpixels() const; - void set_totalbrightpixels(::PROTOBUF_NAMESPACE_ID::int32 value); + void clear_totalbrightpixels() ; + ::int32_t totalbrightpixels() const; + void set_totalbrightpixels(::int32_t value); + private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_totalbrightpixels() const; - void _internal_set_totalbrightpixels(::PROTOBUF_NAMESPACE_ID::int32 value); - public: + ::int32_t _internal_totalbrightpixels() const; + void _internal_set_totalbrightpixels(::int32_t value); + public: // @@protoc_insertion_point(class_scope:imageDiagnostics.DiagnosticData) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - double cob_x_; - double cob_y_; - double coverage_; - ::PROTOBUF_NAMESPACE_ID::int32 totalbrightpixels_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const DiagnosticData& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + double cob_x_; + double cob_y_; + double coverage_; + ::int32_t totalbrightpixels_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_imageDiagnostics_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataLite<32> DiagnosticData_class_data_; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // DiagnosticData // double cob_x = 1; inline void DiagnosticData::clear_cob_x() { - cob_x_ = 0; -} -inline double DiagnosticData::_internal_cob_x() const { - return cob_x_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.cob_x_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline double DiagnosticData::cob_x() const { // @@protoc_insertion_point(field_get:imageDiagnostics.DiagnosticData.cob_x) return _internal_cob_x(); } -inline void DiagnosticData::_internal_set_cob_x(double value) { - - cob_x_ = value; -} inline void DiagnosticData::set_cob_x(double value) { _internal_set_cob_x(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:imageDiagnostics.DiagnosticData.cob_x) } +inline double DiagnosticData::_internal_cob_x() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.cob_x_; +} +inline void DiagnosticData::_internal_set_cob_x(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.cob_x_ = value; +} // double cob_y = 2; inline void DiagnosticData::clear_cob_y() { - cob_y_ = 0; -} -inline double DiagnosticData::_internal_cob_y() const { - return cob_y_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.cob_y_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline double DiagnosticData::cob_y() const { // @@protoc_insertion_point(field_get:imageDiagnostics.DiagnosticData.cob_y) return _internal_cob_y(); } -inline void DiagnosticData::_internal_set_cob_y(double value) { - - cob_y_ = value; -} inline void DiagnosticData::set_cob_y(double value) { _internal_set_cob_y(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:imageDiagnostics.DiagnosticData.cob_y) } +inline double DiagnosticData::_internal_cob_y() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.cob_y_; +} +inline void DiagnosticData::_internal_set_cob_y(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.cob_y_ = value; +} // double coverage = 3; inline void DiagnosticData::clear_coverage() { - coverage_ = 0; -} -inline double DiagnosticData::_internal_coverage() const { - return coverage_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.coverage_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline double DiagnosticData::coverage() const { // @@protoc_insertion_point(field_get:imageDiagnostics.DiagnosticData.coverage) return _internal_coverage(); } -inline void DiagnosticData::_internal_set_coverage(double value) { - - coverage_ = value; -} inline void DiagnosticData::set_coverage(double value) { _internal_set_coverage(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:imageDiagnostics.DiagnosticData.coverage) } +inline double DiagnosticData::_internal_coverage() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.coverage_; +} +inline void DiagnosticData::_internal_set_coverage(double value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.coverage_ = value; +} // int32 totalBrightPixels = 4; inline void DiagnosticData::clear_totalbrightpixels() { - totalbrightpixels_ = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.totalbrightpixels_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline ::PROTOBUF_NAMESPACE_ID::int32 DiagnosticData::_internal_totalbrightpixels() const { - return totalbrightpixels_; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 DiagnosticData::totalbrightpixels() const { +inline ::int32_t DiagnosticData::totalbrightpixels() const { // @@protoc_insertion_point(field_get:imageDiagnostics.DiagnosticData.totalBrightPixels) return _internal_totalbrightpixels(); } -inline void DiagnosticData::_internal_set_totalbrightpixels(::PROTOBUF_NAMESPACE_ID::int32 value) { - - totalbrightpixels_ = value; -} -inline void DiagnosticData::set_totalbrightpixels(::PROTOBUF_NAMESPACE_ID::int32 value) { +inline void DiagnosticData::set_totalbrightpixels(::int32_t value) { _internal_set_totalbrightpixels(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:imageDiagnostics.DiagnosticData.totalBrightPixels) } +inline ::int32_t DiagnosticData::_internal_totalbrightpixels() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.totalbrightpixels_; +} +inline void DiagnosticData::_internal_set_totalbrightpixels(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.totalbrightpixels_ = value; +} #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) - } // namespace imageDiagnostics + // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_imageDiagnostics_2eproto +#include "google/protobuf/port_undef.inc" + +#pragma pop_macro("verify") +#pragma pop_macro("check") + +#if defined(_MSC_VER) +#pragma warning(pop) +#endif + +#endif // imageDiagnostics_2eproto_2epb_2eh diff --git a/vcpkg-configuration.json b/vcpkg-configuration.json index ace80ab0..7773824d 100644 --- a/vcpkg-configuration.json +++ b/vcpkg-configuration.json @@ -1,7 +1,7 @@ { "default-registry": { "kind": "git", - "baseline": "2b65c20fc66eda893aa15a15a453c3cf09500b19", + "baseline": "8528134bac3d39db8d36f4097755a97a1394e4dc", "repository": "https://github.com/microsoft/vcpkg" }, "registries": [] diff --git a/vcpkg.json b/vcpkg.json index 298263b7..8dd9ab8c 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -7,6 +7,6 @@ "protobuf" ], "overrides": [ - { "name": "protobuf", "version": "3.18.0", "port-version": 1 } + { "name": "protobuf", "version": "6.33.4", "port-version": 2 } ] } From 3fe66fe0da3154d32a94d77e3407553086ab50a9 Mon Sep 17 00:00:00 2001 From: Owen Allison Date: Fri, 22 May 2026 02:33:41 -0600 Subject: [PATCH 10/10] Add script to build .proto files --- BUILDING.md | 2 +- Source/cielim/Protobuf/build_protobuf.py | 157 +++++++++++++++++++++++ 2 files changed, 158 insertions(+), 1 deletion(-) create mode 100644 Source/cielim/Protobuf/build_protobuf.py diff --git a/BUILDING.md b/BUILDING.md index 8426eb4a..31ea71b0 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -67,7 +67,7 @@ It is important that the toolchain version that vcpkg uses to build the dependen The generated files ``Source/cielim/Protobuf/cielimMessage.pb.{h,cc}`` and ``Source/cielim/Protobuf/imageDiagnostics.pb.{h,cc}`` must be regenerated whenever the corresponding ``.proto`` files change. Use the **same protoc version** as the linked library to avoid header/binary mismatches. -After a successful vcpkg install, the matching protoc binary is available as a symlink in the installed tree. +After a successful vcpkg install, the matching protoc binary is available as a symlink in the installed tree. The generated files can then be rebuilt using the python script ``build_protobuf.py`` or manually. ```bash PROTOC="vcpkg_installed//tools/protobuf/protoc" diff --git a/Source/cielim/Protobuf/build_protobuf.py b/Source/cielim/Protobuf/build_protobuf.py new file mode 100644 index 00000000..aa740d23 --- /dev/null +++ b/Source/cielim/Protobuf/build_protobuf.py @@ -0,0 +1,157 @@ +import sys +import os +import subprocess +from pathlib import Path + +PROJECT_ROOT = Path(__file__).resolve().parent.parent.parent.parent +PROTO_ROOT = Path(__file__).resolve().parent + +sys.path.append(str(PROJECT_ROOT)) + +from vcpkg_install import get_triplet + +TOP_BLOCK = r"""#if defined(_MSC_VER) +#pragma warning(push) +#pragma warning(disable: 4458 4702 4800) +#endif + +#pragma push_macro("check") +#pragma push_macro("verify") + +#undef check +#undef verify +""" + +BOTTOM_BLOCK = r"""#pragma pop_macro("verify") +#pragma pop_macro("check") + +#if defined(_MSC_VER) +#pragma warning(pop) +#endif +""" + + +# Adds header and footer to .pb.h files to fix macro collisions with Unreal and ignore Protobuf internal warnings +def patch_pb_h(): + for file in PROTO_ROOT.rglob("*.pb.h"): + text = file.read_text(encoding="utf-8") + + if '#pragma push_macro("check")' in text: + print(f"{file.name} has already been patched") + continue + + lines = text.splitlines(keepends=True) + + top_index = None + + # Insert top block after header guard + for i, line in enumerate(lines): + if "#define" in line: + top_index = i + 1 + break + + if top_index is None: + print(f"Could not find top macro block insertion point in {file.name}") + continue + + lines.insert(top_index, "\n" + TOP_BLOCK) + + bottom_index = None + + # Insert bottom block after protobuf macro undef + for i, line in enumerate(lines): + if "google/protobuf/port_undef.inc" in line: + bottom_index = i + 1 + break + + if bottom_index is None: + print(f"Could not find bottom macro block insertion point in {file.name}") + continue + + lines.insert(bottom_index, "\n" + BOTTOM_BLOCK) + + file.write_text("".join(lines), encoding="utf-8") + + print(f"{file.name} has been patched") + + +# Adds header and footer to .pb.cc files to fix macro collisions with Unreal and ignore Protobuf internal warnings +def patch_pb_cc(): + for file in PROTO_ROOT.rglob("*.pb.cc"): + text = file.read_text(encoding="utf-8") + + if '#pragma push_macro("check")' in text: + print(f"{file.name} has already been patched") + continue + + lines = text.splitlines(keepends=True) + + top_index = None + + # Insert top block after autogenerated comments + for i, line in enumerate(lines): + if "// Protobuf C++ Version:" in line: + top_index = i + 1 + break + + if top_index is None: + print(f"Could not find top macro block insertion point in {file.name}") + continue + + lines.insert(top_index, "\n" + TOP_BLOCK) + + bottom_index = None + + # Insert bottom block after protobuf macro undef + for i, line in enumerate(lines): + if "google/protobuf/port_undef.inc" in line: + bottom_index = i + 1 + break + + if bottom_index is None: + print(f"Could not find bottom macro block insertion point in {file.name}") + continue + + lines.insert(bottom_index, "\n" + BOTTOM_BLOCK) + + file.write_text("".join(lines), encoding="utf-8") + + print(f"{file.name} has been patched") + + +def build_proto_files(): + triplet = get_triplet() + + if "windows" in triplet: + protoc_name = "protoc.exe" + else: + protoc_name = "protoc" + + protoc_exec = os.path.join(str(PROJECT_ROOT), "vcpkg_installed", triplet, "tools", "protobuf", protoc_name) + + if not os.path.exists(protoc_exec): + raise FileNotFoundError(f"Could not find protoc executable at {protoc_exec}") + + for file in PROTO_ROOT.rglob("*.proto"): + print(f"Building {file.name}...") + + try: + subprocess.run( + [ + protoc_exec, + f"--proto_path={str(PROTO_ROOT)}", + f"--cpp_out={str(PROTO_ROOT)}", + f"--python_out={os.path.join(str(PROJECT_ROOT), 'Source', 'cielim-python', 'cielim')}", + file.name, + ], + check=True, + ) + except subprocess.CalledProcessError as e: + print(f"Protoc failed building {file.name} with exit code {e.returncode}") + continue + + +if __name__ == "__main__": + build_proto_files() + patch_pb_h() + patch_pb_cc()