diff --git a/LICENSE.txt b/LICENSE.txt index 6beaaac22..878375c0c 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -222,6 +222,11 @@ licenses, and/or restrictions: Program Directory ------- --------- -Google Test llbuild/utils/unittest/googletest -LLVM llbuild/lib/llvm, llbuild/include/llvm +BLAKE3 thirdparty/BLAKE3 CMake cmake/modules/FindSQLite3.cmake +LLVM llbuild/lib/llvm, llbuild/include/llvm +Google Protobuf thirdparty/protobuf +Google Test llbuild/utils/unittest/googletest +Swift Protobuf thridparty/swift-protobuf +result.hpp products/llbuild3/Result.hpp + diff --git a/Makefile b/Makefile index e825f2e8b..67cfd73ec 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# Helper makefile for generating Tritium protobuf files +# Helper makefile for generating llbuild3 protobuf files .PHONY: generate generate: generate-protos @@ -15,7 +15,7 @@ generate-protos: proto-toolchain --swift_out=src \ --swift_opt=Visibility=Public \ --swift_opt=ProtoPathModuleMappings=src/module_map.asciipb \ - $$(find src -name \*.proto) + $$(find src -name \*.proto -not -name \*Internal\*) .PHONY: proto-toolchain proto-toolchain: diff --git a/README.tritium.md b/README.llbuild3.md similarity index 91% rename from README.tritium.md rename to README.llbuild3.md index 1af3d071c..14f2c142c 100644 --- a/README.tritium.md +++ b/README.llbuild3.md @@ -1,4 +1,4 @@ -# Tritium — llbuild3 +# llbuild3 ## Objectives @@ -18,7 +18,7 @@ ## API Overview — Ergonomics -Tritium will incorporate concepts from llbuild1, llbuild2, and llbuild2fx. The constructs are intended to enable a separation of the items that can be produced (Artifacts) from the computations that can produce them (Rules/Tasks), addressing an expression challenge that exists today in llbuild2fx rule definition. +llbuild3 will incorporate concepts from llbuild1, llbuild2, and llbuild2fx. The constructs are intended to enable a separation of the items that can be produced (Artifacts) from the computations that can produce them (Rules/Tasks), addressing an expression challenge that exists today in llbuild2fx rule definition. ### Dynamic Graph Definition @@ -53,7 +53,7 @@ Tritium will incorporate concepts from llbuild1, llbuild2, and llbuild2fx. The * Build * Outstanding, in-progress request to produce a specific artifact from the overall build namespace -![Tritium Classes](./docs/tritium.jpg) +![llbuild3 Classes](./docs/llbuild3.jpg) ### Engine Components @@ -111,8 +111,8 @@ Next steps Code Structure * Framework Headers - * products/Tritium + * products/llbuild3 * Framework Sources - * src/tritium + * src/llbuild3 * Unit Tests - * unittests/TritiumCoreTests + * unittests/llbuild3CoreTests diff --git a/Xcode/Configs/TritiumCommon.xcconfig b/Xcode/Configs/llbuild3Common.xcconfig similarity index 91% rename from Xcode/Configs/TritiumCommon.xcconfig rename to Xcode/Configs/llbuild3Common.xcconfig index f1e76d83e..2ad0c48b7 100644 --- a/Xcode/Configs/TritiumCommon.xcconfig +++ b/Xcode/Configs/llbuild3Common.xcconfig @@ -10,8 +10,8 @@ // //===----------------------------------------------------------------------===// -TRITIUM_INSTALL_BASE_PATH = $(TRITIUM_INSTALL_DIR:default=$(LOCAL_LIBRARY_DIR)) -TRITIUM_FRAMEWORKS_INSTALL_DIR = $(TRITIUM_INSTALL_BASE_PATH)/Frameworks +LLBUILD3_INSTALL_BASE_PATH = $(LLBUILD3_INSTALL_DIR:default=$(LOCAL_LIBRARY_DIR)) +LLBUILD3_FRAMEWORKS_INSTALL_DIR = $(LLBUILD3_INSTALL_BASE_PATH)/Frameworks // Set the default product name. PRODUCT_NAME = $(TARGET_NAME) @@ -69,4 +69,4 @@ CODE_SIGN_ENTITLEMENTS = $(LLBUILD_CODE_SIGN_ENTITLEMENTS__producttype_eq_$(PROD LLBUILD_CODE_SIGN_ENTITLEMENTS__producttype_eq_com_apple_product_type_tool = $(LLBUILD_TOOL_CODE_SIGN_ENTITLEMENTS) LLBUILD_TOOL_CODE_SIGN_ENTITLEMENTS = -#include? "TritiumOverrides.xcconfig" +#include? "llbuild3Overrides.xcconfig" diff --git a/Xcode/Configs/TritiumDebug.xcconfig b/Xcode/Configs/llbuild3Debug.xcconfig similarity index 95% rename from Xcode/Configs/TritiumDebug.xcconfig rename to Xcode/Configs/llbuild3Debug.xcconfig index 21d0dc354..928dbdc08 100644 --- a/Xcode/Configs/TritiumDebug.xcconfig +++ b/Xcode/Configs/llbuild3Debug.xcconfig @@ -11,7 +11,7 @@ //===----------------------------------------------------------------------===// // Shared build settings. -#include "TritiumCommon.xcconfig" +#include "llbuild3Common.xcconfig" // Only build the active architecture for Debug. ONLY_ACTIVE_ARCH = YES diff --git a/Xcode/Configs/TritiumRelease.xcconfig b/Xcode/Configs/llbuild3Release.xcconfig similarity index 96% rename from Xcode/Configs/TritiumRelease.xcconfig rename to Xcode/Configs/llbuild3Release.xcconfig index 1af2cc98f..19cc0f16b 100644 --- a/Xcode/Configs/TritiumRelease.xcconfig +++ b/Xcode/Configs/llbuild3Release.xcconfig @@ -11,7 +11,7 @@ //===----------------------------------------------------------------------===// // Shared build settings. -#include "TritiumCommon.xcconfig" +#include "llbuild3Common.xcconfig" // Prefer binary Info.plists for Release. INFOPLIST_OUTPUT_FORMAT = binary diff --git a/Xcode/Tritium.xctestplan b/Xcode/llbuild3.xctestplan similarity index 91% rename from Xcode/Tritium.xctestplan rename to Xcode/llbuild3.xctestplan index 54eaead29..779e8a2d9 100644 --- a/Xcode/Tritium.xctestplan +++ b/Xcode/llbuild3.xctestplan @@ -16,7 +16,7 @@ "target" : { "containerPath" : "container:llbuild.xcodeproj", "identifier" : "4072B5DD2C51BE5100B68221", - "name" : "TritiumTests" + "name" : "llbuild3Tests" } } ], diff --git a/docs/tritium.jpg b/docs/llbuild3.jpg similarity index 100% rename from docs/tritium.jpg rename to docs/llbuild3.jpg diff --git a/llbuild.xcodeproj/project.pbxproj b/llbuild.xcodeproj/project.pbxproj index f98d01961..27f918185 100644 --- a/llbuild.xcodeproj/project.pbxproj +++ b/llbuild.xcodeproj/project.pbxproj @@ -83,12 +83,14 @@ 403552E52C52069300D415BA /* Label.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4072B4CB2C51995100B68221 /* Label.pb.swift */; }; 403552EF2C522BAF00D415BA /* Visibility.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 403552EE2C522BA700D415BA /* Visibility.hpp */; settings = {ATTRIBUTES = (Public, ); }; }; 403552F12C522F9E00D415BA /* SwiftProtobuf in Frameworks */ = {isa = PBXBuildFile; productRef = 403552F02C522F9E00D415BA /* SwiftProtobuf */; }; + 4035F55A2CDEABA100337926 /* EngineInternal.proto in Sources */ = {isa = PBXBuildFile; fileRef = 4035F5592CDEAB8100337926 /* EngineInternal.proto */; }; + 4035F55D2CDEB2F500337926 /* EngineInternal.pb.cc in Sources */ = {isa = PBXBuildFile; fileRef = 4035F55C2CDEB2F500337926 /* EngineInternal.pb.cc */; }; + 4035F55E2CDEB2F500337926 /* EngineInternal.pb.h in Headers */ = {isa = PBXBuildFile; fileRef = 4035F55B2CDEB2F500337926 /* EngineInternal.pb.h */; }; 403B81602C79047D00CD4F1E /* EngineTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 403B815E2C79047D00CD4F1E /* EngineTests.swift */; }; - 403DC5882C52031D00A9AE24 /* libTritiumThirdParty.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4072B4E02C51B3A000B68221 /* libTritiumThirdParty.a */; }; - 4072B5DF2C51BE5100B68221 /* Tritium.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4072B5D72C51BE5100B68221 /* Tritium.framework */; }; - 4072B5E52C51BE5100B68221 /* Tritium.h in Headers */ = {isa = PBXBuildFile; fileRef = 4072B5D92C51BE5100B68221 /* Tritium.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 403DC5882C52031D00A9AE24 /* libllbuild3ThirdParty.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4072B4E02C51B3A000B68221 /* libllbuild3ThirdParty.a */; }; + 4072B5DF2C51BE5100B68221 /* llbuild3.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4072B5D72C51BE5100B68221 /* llbuild3.framework */; }; + 4072B5E52C51BE5100B68221 /* llbuild3.h in Headers */ = {isa = PBXBuildFile; fileRef = 4072B5D92C51BE5100B68221 /* llbuild3.h */; settings = {ATTRIBUTES = (Public, ); }; }; 4072B5ED2C51BF1700B68221 /* Engine.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4072B4C52C51995100B68221 /* Engine.cpp */; }; - 4072B5EE2C51BF1700B68221 /* CASObjectID.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4072B4C32C51995100B68221 /* CASObjectID.pb.swift */; }; 4072B5EF2C51BF1700B68221 /* Label.pb.cc in Sources */ = {isa = PBXBuildFile; fileRef = 4072B4CA2C51995100B68221 /* Label.pb.cc */; }; 4072B5F02C51BF1700B68221 /* Artifact.pb.cc in Sources */ = {isa = PBXBuildFile; fileRef = 4072B4BE2C51995100B68221 /* Artifact.pb.cc */; }; 4072B5F12C51BF1700B68221 /* Error.pb.cc in Sources */ = {isa = PBXBuildFile; fileRef = 4072B4D72C51995100B68221 /* Error.pb.cc */; }; @@ -100,7 +102,6 @@ 4072B5F72C51BF1700B68221 /* ActionCache.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4072B4BB2C51995100B68221 /* ActionCache.pb.swift */; }; 4072B5F82C51BF1700B68221 /* Label.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4072B4C72C51995100B68221 /* Label.cpp */; }; 4072B5F92C51BF1700B68221 /* Rule.pb.cc in Sources */ = {isa = PBXBuildFile; fileRef = 4072B4CE2C51995100B68221 /* Rule.pb.cc */; }; - 4072B5FA2C51BF1700B68221 /* CASObjectID.pb.cc in Sources */ = {isa = PBXBuildFile; fileRef = 4072B4C22C51995100B68221 /* CASObjectID.pb.cc */; }; 4072B5FB2C51BF1700B68221 /* Rule.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4072B4CF2C51995100B68221 /* Rule.pb.swift */; }; 4072B5FC2C51BF1700B68221 /* SwiftAdaptors.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4072B4D02C51995100B68221 /* SwiftAdaptors.cpp */; }; 407F9F0F2C51D06800FED36C /* Errors.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 4072B4AE2C51993F00B68221 /* Errors.hpp */; settings = {ATTRIBUTES = (Public, ); }; }; @@ -353,6 +354,16 @@ 40E7C53A2C61CB0800FC0383 /* CoreTypes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40E7C51B2C61CAEF00FC0383 /* CoreTypes.swift */; }; 40E7C53C2C61CD8100FC0383 /* Types.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40E7C53B2C61CD7D00FC0383 /* Types.swift */; }; 40E7C53E2C61CF6800FC0383 /* Engine.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40E7C53D2C61CF6300FC0383 /* Engine.swift */; }; + 40E836B12CBDC6FA0022B026 /* ActionCache.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40E836B02CBDC6F00022B026 /* ActionCache.swift */; }; + 40E837E02CCC562B0022B026 /* Label.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40E837DF2CCC56270022B026 /* Label.swift */; }; + 40E837E22CCC5D4F0022B026 /* CAS.h in Headers */ = {isa = PBXBuildFile; fileRef = 40E837E12CCC5D440022B026 /* CAS.h */; }; + 40E837E62CCC5FFB0022B026 /* CAS.pb.cc in Sources */ = {isa = PBXBuildFile; fileRef = 40E837E42CCC5FFB0022B026 /* CAS.pb.cc */; }; + 40E837E72CCC5FFB0022B026 /* CAS.pb.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40E837E52CCC5FFB0022B026 /* CAS.pb.swift */; }; + 40E837E82CCC5FFB0022B026 /* CAS.pb.h in Headers */ = {isa = PBXBuildFile; fileRef = 40E837E32CCC5FFB0022B026 /* CAS.pb.h */; }; + 40E837EA2CCC64430022B026 /* CAS.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 40E837E92CCC643D0022B026 /* CAS.cpp */; }; + 40E8384C2CCC692B0022B026 /* blake3.c in Sources */ = {isa = PBXBuildFile; fileRef = 40E838072CCC66ED0022B026 /* blake3.c */; }; + 40E8384D2CCC692B0022B026 /* blake3_dispatch.c in Sources */ = {isa = PBXBuildFile; fileRef = 40E838102CCC66ED0022B026 /* blake3_dispatch.c */; }; + 40E8384E2CCC692B0022B026 /* blake3_portable.c in Sources */ = {isa = PBXBuildFile; fileRef = 40E838132CCC66ED0022B026 /* blake3_portable.c */; }; 40EA264821651D2C00068954 /* ExecutionQueue.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 40EA264721651D2C00068954 /* ExecutionQueue.cpp */; }; 40EA264A21651D3F00068954 /* Subprocess.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 40EA264921651D3F00068954 /* Subprocess.cpp */; }; 40EA264C2165221C00068954 /* LaneBasedExecutionQueue.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 40EA264B2165221C00068954 /* LaneBasedExecutionQueue.cpp */; }; @@ -1596,13 +1607,17 @@ 2D86C6DF238D932B006E61FB /* Tool.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Tool.h; sourceTree = ""; }; 2DB7144223A2AF2F00514E98 /* BuildSystemEngineTests.swift */ = {isa = PBXFileReference; indentWidth = 4; lastKnownFileType = sourcecode.swift; path = BuildSystemEngineTests.swift; sourceTree = ""; tabWidth = 4; }; 402614262087B10B005BD956 /* Tracing.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Tracing.cpp; sourceTree = ""; }; - 403332B52CADC83700440C8C /* TritiumCommon.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = TritiumCommon.xcconfig; sourceTree = ""; }; - 403332B62CADC86300440C8C /* TritiumDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = TritiumDebug.xcconfig; sourceTree = ""; }; - 403332B72CADC87100440C8C /* TritiumRelease.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = TritiumRelease.xcconfig; sourceTree = ""; }; + 403332B52CADC83700440C8C /* llbuild3Common.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = llbuild3Common.xcconfig; sourceTree = ""; }; + 403332B62CADC86300440C8C /* llbuild3Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = llbuild3Debug.xcconfig; sourceTree = ""; }; + 403332B72CADC87100440C8C /* llbuild3Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = llbuild3Release.xcconfig; sourceTree = ""; }; 403541D52C5205EF00D415BA /* ProtocolBuffers_iOS.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = ProtocolBuffers_iOS.xcodeproj; sourceTree = ""; }; 403541D62C5205EF00D415BA /* ProtocolBuffers_OSX.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = ProtocolBuffers_OSX.xcodeproj; sourceTree = ""; }; 403541D72C5205EF00D415BA /* ProtocolBuffers_tvOS.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = ProtocolBuffers_tvOS.xcodeproj; sourceTree = ""; }; 403552EE2C522BA700D415BA /* Visibility.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Visibility.hpp; sourceTree = ""; }; + 4035F5592CDEAB8100337926 /* EngineInternal.proto */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.protobuf; path = EngineInternal.proto; sourceTree = ""; }; + 4035F55B2CDEB2F500337926 /* EngineInternal.pb.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EngineInternal.pb.h; sourceTree = ""; }; + 4035F55C2CDEB2F500337926 /* EngineInternal.pb.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = EngineInternal.pb.cc; sourceTree = ""; }; + 4035F5CB2CE72F2A00337926 /* README.llbuild3.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.llbuild3.md; sourceTree = ""; }; 40377C7C2061D24200C0FD4D /* Package.swift */ = {isa = PBXFileReference; indentWidth = 4; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = ""; tabWidth = 4; }; 403B815E2C79047D00CD4F1E /* EngineTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EngineTests.swift; sourceTree = ""; }; 403DB4402C51D07C00A9AE24 /* ProtocolBuffers_iOS.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = ProtocolBuffers_iOS.xcodeproj; sourceTree = ""; }; @@ -1615,7 +1630,7 @@ 406372D12C6D0BD400017979 /* ProtocolBuffers_OSX.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = ProtocolBuffers_OSX.xcodeproj; sourceTree = ""; }; 406372D22C6D0BD400017979 /* ProtocolBuffers_tvOS.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = ProtocolBuffers_tvOS.xcodeproj; sourceTree = ""; }; 406383D42C76FB5100017979 /* Makefile */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.make; path = Makefile; sourceTree = ""; }; - 406383F32C76FD5300017979 /* Tritium.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = Tritium.xctestplan; sourceTree = ""; }; + 406383F32C76FD5300017979 /* llbuild3.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = llbuild3.xctestplan; sourceTree = ""; }; 406A04FD21627FD900EBA895 /* requirements.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = requirements.txt; sourceTree = ""; }; 406A04FE21627FD900EBA895 /* Dockerfile-16.04 */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "Dockerfile-16.04"; sourceTree = ""; }; 406A04FF21627FD900EBA895 /* docker-utils */ = {isa = PBXFileReference; explicitFileType = text.script.python; fileEncoding = 4; path = "docker-utils"; sourceTree = ""; }; @@ -1623,7 +1638,6 @@ 406A05012162815000EBA895 /* Dockerfile-18.04 */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "Dockerfile-18.04"; sourceTree = ""; }; 406A05022162A20800EBA895 /* check-all */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = "check-all"; sourceTree = ""; }; 406A05032162A5A200EBA895 /* build-and-test */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = "build-and-test"; sourceTree = ""; }; - 406CE2742C8FA9B30008A97B /* README.tritium.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.tritium.md; sourceTree = ""; }; 4072A3172C51977000B68221 /* ProtocolBuffers_iOS.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = ProtocolBuffers_iOS.xcodeproj; sourceTree = ""; }; 4072A3182C51977000B68221 /* ProtocolBuffers_OSX.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = ProtocolBuffers_OSX.xcodeproj; sourceTree = ""; }; 4072A3192C51977000B68221 /* ProtocolBuffers_tvOS.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = ProtocolBuffers_tvOS.xcodeproj; sourceTree = ""; }; @@ -1794,10 +1808,7 @@ 4072B4BD2C51995100B68221 /* Artifact.pb.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Artifact.pb.h; sourceTree = ""; }; 4072B4BE2C51995100B68221 /* Artifact.pb.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Artifact.pb.cc; sourceTree = ""; }; 4072B4BF2C51995100B68221 /* Artifact.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Artifact.pb.swift; sourceTree = ""; }; - 4072B4C02C51995100B68221 /* CASObjectID.proto */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.protobuf; path = CASObjectID.proto; sourceTree = ""; }; - 4072B4C12C51995100B68221 /* CASObjectID.pb.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CASObjectID.pb.h; sourceTree = ""; }; - 4072B4C22C51995100B68221 /* CASObjectID.pb.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = CASObjectID.pb.cc; sourceTree = ""; }; - 4072B4C32C51995100B68221 /* CASObjectID.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CASObjectID.pb.swift; sourceTree = ""; }; + 4072B4C02C51995100B68221 /* CAS.proto */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.protobuf; path = CAS.proto; sourceTree = ""; }; 4072B4C42C51995100B68221 /* Engine.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Engine.h; sourceTree = ""; }; 4072B4C52C51995100B68221 /* Engine.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Engine.cpp; sourceTree = ""; }; 4072B4C62C51995100B68221 /* Label.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Label.h; sourceTree = ""; }; @@ -1811,17 +1822,16 @@ 4072B4CE2C51995100B68221 /* Rule.pb.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Rule.pb.cc; sourceTree = ""; }; 4072B4CF2C51995100B68221 /* Rule.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Rule.pb.swift; sourceTree = ""; }; 4072B4D02C51995100B68221 /* SwiftAdaptors.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = SwiftAdaptors.cpp; sourceTree = ""; }; - 4072B4D22C51995100B68221 /* Defer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Defer.h; sourceTree = ""; }; 4072B4D32C51995100B68221 /* Support.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Support.cpp; sourceTree = ""; }; 4072B4D52C51995100B68221 /* Error.proto */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.protobuf; path = Error.proto; sourceTree = ""; }; 4072B4D62C51995100B68221 /* Error.pb.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Error.pb.h; sourceTree = ""; }; 4072B4D72C51995100B68221 /* Error.pb.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Error.pb.cc; sourceTree = ""; }; 4072B4D82C51995100B68221 /* Error.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Error.pb.swift; sourceTree = ""; }; 4072B4DA2C51995100B68221 /* module_map.asciipb */ = {isa = PBXFileReference; lastKnownFileType = text; path = module_map.asciipb; sourceTree = ""; }; - 4072B4E02C51B3A000B68221 /* libTritiumThirdParty.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libTritiumThirdParty.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 4072B5D72C51BE5100B68221 /* Tritium.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Tritium.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 4072B5D92C51BE5100B68221 /* Tritium.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Tritium.h; sourceTree = ""; }; - 4072B5DE2C51BE5100B68221 /* TritiumTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TritiumTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 4072B4E02C51B3A000B68221 /* libllbuild3ThirdParty.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libllbuild3ThirdParty.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 4072B5D72C51BE5100B68221 /* llbuild3.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = llbuild3.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 4072B5D92C51BE5100B68221 /* llbuild3.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = llbuild3.h; sourceTree = ""; }; + 4072B5DE2C51BE5100B68221 /* llbuild3Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = llbuild3Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 407F8E062C51C85A00FED36C /* ProtocolBuffers_iOS.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = ProtocolBuffers_iOS.xcodeproj; sourceTree = ""; }; 407F8E072C51C85A00FED36C /* ProtocolBuffers_OSX.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = ProtocolBuffers_OSX.xcodeproj; sourceTree = ""; }; 407F8E082C51C85A00FED36C /* ProtocolBuffers_tvOS.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = ProtocolBuffers_tvOS.xcodeproj; sourceTree = ""; }; @@ -1833,341 +1843,6 @@ 40C100562C79076200757481 /* swift-protobuf */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = "swift-protobuf"; sourceTree = ""; }; 40C1F35E2C79076200757481 /* BUILD.bazel */ = {isa = PBXFileReference; lastKnownFileType = text; path = BUILD.bazel; sourceTree = ""; }; 40C1F35F2C79076200757481 /* message_set.proto */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.protobuf; path = message_set.proto; sourceTree = ""; }; - 40C1F3612C79076200757481 /* cord_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = cord_field.cc; sourceTree = ""; }; - 40C1F3622C79076200757481 /* enum_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = enum_field.cc; sourceTree = ""; }; - 40C1F3632C79076200757481 /* generators.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = generators.h; sourceTree = ""; }; - 40C1F3642C79076200757481 /* map_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = map_field.cc; sourceTree = ""; }; - 40C1F3652C79076200757481 /* message_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = message_field.cc; sourceTree = ""; }; - 40C1F3662C79076200757481 /* primitive_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = primitive_field.cc; sourceTree = ""; }; - 40C1F3672C79076200757481 /* string_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = string_field.cc; sourceTree = ""; }; - 40C1F3682C79076200757481 /* string_view_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = string_view_field.cc; sourceTree = ""; }; - 40C1F36A2C79076200757481 /* analyze_profile_proto.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = analyze_profile_proto.h; sourceTree = ""; }; - 40C1F36B2C79076200757481 /* analyze_profile_proto.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = analyze_profile_proto.cc; sourceTree = ""; }; - 40C1F36C2C79076200757481 /* analyze_profile_proto_main.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = analyze_profile_proto_main.cc; sourceTree = ""; }; - 40C1F36D2C79076200757481 /* analyze_profile_proto_test.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = analyze_profile_proto_test.cc; sourceTree = ""; }; - 40C1F36E2C79076200757481 /* analyze_profile_proto_test.proto */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.protobuf; path = analyze_profile_proto_test.proto; sourceTree = ""; }; - 40C1F3702C79076200757481 /* arena_ctor_visibility_test.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = arena_ctor_visibility_test.cc; sourceTree = ""; }; - 40C1F3712C79076200757481 /* bootstrap_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = bootstrap_unittest.cc; sourceTree = ""; }; - 40C1F3722C79076200757481 /* BUILD.bazel */ = {isa = PBXFileReference; lastKnownFileType = text; path = BUILD.bazel; sourceTree = ""; }; - 40C1F3732C79076200757481 /* copy_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = copy_unittest.cc; sourceTree = ""; }; - 40C1F3742C79076200757481 /* cpp_generator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = cpp_generator.h; sourceTree = ""; }; - 40C1F3752C79076200757481 /* enum.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = enum.h; sourceTree = ""; }; - 40C1F3762C79076200757481 /* enum.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = enum.cc; sourceTree = ""; }; - 40C1F3772C79076200757481 /* extension.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = extension.h; sourceTree = ""; }; - 40C1F3782C79076200757481 /* extension.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = extension.cc; sourceTree = ""; }; - 40C1F3792C79076200757481 /* field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = field.h; sourceTree = ""; }; - 40C1F37A2C79076200757481 /* field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = field.cc; sourceTree = ""; }; - 40C1F37B2C79076200757481 /* file.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = file.h; sourceTree = ""; }; - 40C1F37C2C79076200757481 /* file.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = file.cc; sourceTree = ""; }; - 40C1F37D2C79076200757481 /* file_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = file_unittest.cc; sourceTree = ""; }; - 40C1F37E2C79076200757481 /* generator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = generator.h; sourceTree = ""; }; - 40C1F37F2C79076200757481 /* generator.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = generator.cc; sourceTree = ""; }; - 40C1F3802C79076200757481 /* generator_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = generator_unittest.cc; sourceTree = ""; }; - 40C1F3812C79076200757481 /* helpers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = helpers.h; sourceTree = ""; }; - 40C1F3822C79076200757481 /* helpers.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = helpers.cc; sourceTree = ""; }; - 40C1F3832C79076200757481 /* ifndef_guard.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ifndef_guard.h; sourceTree = ""; }; - 40C1F3842C79076200757481 /* ifndef_guard.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = ifndef_guard.cc; sourceTree = ""; }; - 40C1F3852C79076200757481 /* ifndef_guard_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = ifndef_guard_unittest.cc; sourceTree = ""; }; - 40C1F3862C79076200757481 /* main.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = main.cc; sourceTree = ""; }; - 40C1F3872C79076200757481 /* message.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = message.h; sourceTree = ""; }; - 40C1F3882C79076200757481 /* message.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = message.cc; sourceTree = ""; }; - 40C1F3892C79076200757481 /* message_layout_helper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = message_layout_helper.h; sourceTree = ""; }; - 40C1F38A2C79076200757481 /* message_size_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = message_size_unittest.cc; sourceTree = ""; }; - 40C1F38B2C79076200757481 /* metadata_test.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = metadata_test.cc; sourceTree = ""; }; - 40C1F38C2C79076200757481 /* move_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = move_unittest.cc; sourceTree = ""; }; - 40C1F38D2C79076200757481 /* names.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = names.h; sourceTree = ""; }; - 40C1F38E2C79076200757481 /* namespace_printer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = namespace_printer.h; sourceTree = ""; }; - 40C1F38F2C79076200757481 /* namespace_printer.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = namespace_printer.cc; sourceTree = ""; }; - 40C1F3902C79076200757481 /* namespace_printer_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = namespace_printer_unittest.cc; sourceTree = ""; }; - 40C1F3912C79076200757481 /* options.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = options.h; sourceTree = ""; }; - 40C1F3922C79076200757481 /* padding_optimizer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = padding_optimizer.h; sourceTree = ""; }; - 40C1F3932C79076200757481 /* padding_optimizer.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = padding_optimizer.cc; sourceTree = ""; }; - 40C1F3942C79076200757481 /* parse_function_generator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = parse_function_generator.h; sourceTree = ""; }; - 40C1F3952C79076200757481 /* parse_function_generator.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = parse_function_generator.cc; sourceTree = ""; }; - 40C1F3962C79076200757481 /* plugin_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = plugin_unittest.cc; sourceTree = ""; }; - 40C1F3972C79076200757481 /* service.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = service.h; sourceTree = ""; }; - 40C1F3982C79076200757481 /* service.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = service.cc; sourceTree = ""; }; - 40C1F3992C79076200757481 /* test_bad_identifiers.proto */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.protobuf; path = test_bad_identifiers.proto; sourceTree = ""; }; - 40C1F39A2C79076200757481 /* test_large_enum_value.proto */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.protobuf; path = test_large_enum_value.proto; sourceTree = ""; }; - 40C1F39B2C79076200757481 /* tracker.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = tracker.h; sourceTree = ""; }; - 40C1F39C2C79076200757481 /* tracker.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = tracker.cc; sourceTree = ""; }; - 40C1F39D2C79076200757481 /* unittest.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = unittest.h; sourceTree = ""; }; - 40C1F39E2C79076200757481 /* unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = unittest.cc; sourceTree = ""; }; - 40C1F39F2C79076200757481 /* unittest.inc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.pascal; path = unittest.inc; sourceTree = ""; }; - 40C1F3A12C79076200757481 /* BUILD.bazel */ = {isa = PBXFileReference; lastKnownFileType = text; path = BUILD.bazel; sourceTree = ""; }; - 40C1F3A22C79076200757481 /* csharp_bootstrap_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = csharp_bootstrap_unittest.cc; sourceTree = ""; }; - 40C1F3A32C79076200757481 /* csharp_doc_comment.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = csharp_doc_comment.h; sourceTree = ""; }; - 40C1F3A42C79076200757481 /* csharp_doc_comment.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = csharp_doc_comment.cc; sourceTree = ""; }; - 40C1F3A52C79076200757481 /* csharp_enum.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = csharp_enum.h; sourceTree = ""; }; - 40C1F3A62C79076200757481 /* csharp_enum.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = csharp_enum.cc; sourceTree = ""; }; - 40C1F3A72C79076200757481 /* csharp_enum_field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = csharp_enum_field.h; sourceTree = ""; }; - 40C1F3A82C79076200757481 /* csharp_enum_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = csharp_enum_field.cc; sourceTree = ""; }; - 40C1F3A92C79076200757481 /* csharp_field_base.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = csharp_field_base.h; sourceTree = ""; }; - 40C1F3AA2C79076200757481 /* csharp_field_base.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = csharp_field_base.cc; sourceTree = ""; }; - 40C1F3AB2C79076200757481 /* csharp_generator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = csharp_generator.h; sourceTree = ""; }; - 40C1F3AC2C79076200757481 /* csharp_generator.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = csharp_generator.cc; sourceTree = ""; }; - 40C1F3AD2C79076200757481 /* csharp_generator_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = csharp_generator_unittest.cc; sourceTree = ""; }; - 40C1F3AE2C79076200757481 /* csharp_helpers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = csharp_helpers.h; sourceTree = ""; }; - 40C1F3AF2C79076200757481 /* csharp_helpers.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = csharp_helpers.cc; sourceTree = ""; }; - 40C1F3B02C79076200757481 /* csharp_map_field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = csharp_map_field.h; sourceTree = ""; }; - 40C1F3B12C79076200757481 /* csharp_map_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = csharp_map_field.cc; sourceTree = ""; }; - 40C1F3B22C79076200757481 /* csharp_message.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = csharp_message.h; sourceTree = ""; }; - 40C1F3B32C79076200757481 /* csharp_message.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = csharp_message.cc; sourceTree = ""; }; - 40C1F3B42C79076200757481 /* csharp_message_field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = csharp_message_field.h; sourceTree = ""; }; - 40C1F3B52C79076200757481 /* csharp_message_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = csharp_message_field.cc; sourceTree = ""; }; - 40C1F3B62C79076200757481 /* csharp_options.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = csharp_options.h; sourceTree = ""; }; - 40C1F3B72C79076200757481 /* csharp_primitive_field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = csharp_primitive_field.h; sourceTree = ""; }; - 40C1F3B82C79076200757481 /* csharp_primitive_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = csharp_primitive_field.cc; sourceTree = ""; }; - 40C1F3B92C79076200757481 /* csharp_reflection_class.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = csharp_reflection_class.h; sourceTree = ""; }; - 40C1F3BA2C79076200757481 /* csharp_reflection_class.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = csharp_reflection_class.cc; sourceTree = ""; }; - 40C1F3BB2C79076200757481 /* csharp_repeated_enum_field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = csharp_repeated_enum_field.h; sourceTree = ""; }; - 40C1F3BC2C79076200757481 /* csharp_repeated_enum_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = csharp_repeated_enum_field.cc; sourceTree = ""; }; - 40C1F3BD2C79076200757481 /* csharp_repeated_message_field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = csharp_repeated_message_field.h; sourceTree = ""; }; - 40C1F3BE2C79076200757481 /* csharp_repeated_message_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = csharp_repeated_message_field.cc; sourceTree = ""; }; - 40C1F3BF2C79076200757481 /* csharp_repeated_primitive_field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = csharp_repeated_primitive_field.h; sourceTree = ""; }; - 40C1F3C02C79076200757481 /* csharp_repeated_primitive_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = csharp_repeated_primitive_field.cc; sourceTree = ""; }; - 40C1F3C12C79076200757481 /* csharp_source_generator_base.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = csharp_source_generator_base.h; sourceTree = ""; }; - 40C1F3C22C79076200757481 /* csharp_source_generator_base.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = csharp_source_generator_base.cc; sourceTree = ""; }; - 40C1F3C32C79076200757481 /* csharp_wrapper_field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = csharp_wrapper_field.h; sourceTree = ""; }; - 40C1F3C42C79076200757481 /* csharp_wrapper_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = csharp_wrapper_field.cc; sourceTree = ""; }; - 40C1F3C52C79076200757481 /* names.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = names.h; sourceTree = ""; }; - 40C1F3C62C79076200757481 /* names.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = names.cc; sourceTree = ""; }; - 40C1F3C82C79076200757481 /* BUILD.bazel */ = {isa = PBXFileReference; lastKnownFileType = text; path = BUILD.bazel; sourceTree = ""; }; - 40C1F3C92C79076200757481 /* enum.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = enum.h; sourceTree = ""; }; - 40C1F3CA2C79076200757481 /* enum.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = enum.cc; sourceTree = ""; }; - 40C1F3CB2C79076200757481 /* enum_field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = enum_field.h; sourceTree = ""; }; - 40C1F3CC2C79076200757481 /* enum_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = enum_field.cc; sourceTree = ""; }; - 40C1F3CD2C79076200757481 /* extension.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = extension.h; sourceTree = ""; }; - 40C1F3CE2C79076200757481 /* extension.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = extension.cc; sourceTree = ""; }; - 40C1F3CF2C79076200757481 /* field_generator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = field_generator.h; sourceTree = ""; }; - 40C1F3D02C79076200757481 /* generator_factory.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = generator_factory.h; sourceTree = ""; }; - 40C1F3D12C79076200757481 /* generator_factory.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = generator_factory.cc; sourceTree = ""; }; - 40C1F3D22C79076200757481 /* make_field_gens.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = make_field_gens.h; sourceTree = ""; }; - 40C1F3D32C79076200757481 /* make_field_gens.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = make_field_gens.cc; sourceTree = ""; }; - 40C1F3D42C79076200757481 /* map_field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = map_field.h; sourceTree = ""; }; - 40C1F3D52C79076200757481 /* map_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = map_field.cc; sourceTree = ""; }; - 40C1F3D62C79076200757481 /* message.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = message.h; sourceTree = ""; }; - 40C1F3D72C79076200757481 /* message.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = message.cc; sourceTree = ""; }; - 40C1F3D82C79076200757481 /* message_builder.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = message_builder.h; sourceTree = ""; }; - 40C1F3D92C79076200757481 /* message_builder.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = message_builder.cc; sourceTree = ""; }; - 40C1F3DA2C79076200757481 /* message_field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = message_field.h; sourceTree = ""; }; - 40C1F3DB2C79076200757481 /* message_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = message_field.cc; sourceTree = ""; }; - 40C1F3DC2C79076200757481 /* primitive_field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = primitive_field.h; sourceTree = ""; }; - 40C1F3DD2C79076200757481 /* primitive_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = primitive_field.cc; sourceTree = ""; }; - 40C1F3DE2C79076200757481 /* service.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = service.h; sourceTree = ""; }; - 40C1F3DF2C79076200757481 /* service.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = service.cc; sourceTree = ""; }; - 40C1F3E02C79076200757481 /* string_field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = string_field.h; sourceTree = ""; }; - 40C1F3E12C79076200757481 /* string_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = string_field.cc; sourceTree = ""; }; - 40C1F3E32C79076200757481 /* BUILD.bazel */ = {isa = PBXFileReference; lastKnownFileType = text; path = BUILD.bazel; sourceTree = ""; }; - 40C1F3E42C79076200757481 /* enum.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = enum.h; sourceTree = ""; }; - 40C1F3E52C79076200757481 /* enum.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = enum.cc; sourceTree = ""; }; - 40C1F3E62C79076200757481 /* enum_field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = enum_field.h; sourceTree = ""; }; - 40C1F3E72C79076200757481 /* enum_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = enum_field.cc; sourceTree = ""; }; - 40C1F3E82C79076200757481 /* extension.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = extension.h; sourceTree = ""; }; - 40C1F3E92C79076200757481 /* extension.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = extension.cc; sourceTree = ""; }; - 40C1F3EA2C79076200757481 /* field_generator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = field_generator.h; sourceTree = ""; }; - 40C1F3EB2C79076200757481 /* generator_factory.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = generator_factory.h; sourceTree = ""; }; - 40C1F3EC2C79076200757481 /* generator_factory.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = generator_factory.cc; sourceTree = ""; }; - 40C1F3ED2C79076200757481 /* make_field_gens.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = make_field_gens.h; sourceTree = ""; }; - 40C1F3EE2C79076200757481 /* make_field_gens.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = make_field_gens.cc; sourceTree = ""; }; - 40C1F3EF2C79076200757481 /* map_field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = map_field.h; sourceTree = ""; }; - 40C1F3F02C79076200757481 /* map_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = map_field.cc; sourceTree = ""; }; - 40C1F3F12C79076200757481 /* message.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = message.h; sourceTree = ""; }; - 40C1F3F22C79076200757481 /* message.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = message.cc; sourceTree = ""; }; - 40C1F3F32C79076200757481 /* message_builder.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = message_builder.h; sourceTree = ""; }; - 40C1F3F42C79076200757481 /* message_builder.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = message_builder.cc; sourceTree = ""; }; - 40C1F3F52C79076200757481 /* message_field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = message_field.h; sourceTree = ""; }; - 40C1F3F62C79076200757481 /* message_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = message_field.cc; sourceTree = ""; }; - 40C1F3F72C79076200757481 /* primitive_field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = primitive_field.h; sourceTree = ""; }; - 40C1F3F82C79076200757481 /* primitive_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = primitive_field.cc; sourceTree = ""; }; - 40C1F3F92C79076200757481 /* string_field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = string_field.h; sourceTree = ""; }; - 40C1F3FA2C79076200757481 /* string_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = string_field.cc; sourceTree = ""; }; - 40C1F3FC2C79076200757481 /* BUILD.bazel */ = {isa = PBXFileReference; lastKnownFileType = text; path = BUILD.bazel; sourceTree = ""; }; - 40C1F3FD2C79076200757481 /* context.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = context.h; sourceTree = ""; }; - 40C1F3FE2C79076200757481 /* context.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = context.cc; sourceTree = ""; }; - 40C1F3FF2C79076200757481 /* doc_comment.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = doc_comment.h; sourceTree = ""; }; - 40C1F4002C79076200757481 /* doc_comment.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = doc_comment.cc; sourceTree = ""; }; - 40C1F4012C79076200757481 /* doc_comment_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = doc_comment_unittest.cc; sourceTree = ""; }; - 40C1F4022C79076200757481 /* field_common.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = field_common.h; sourceTree = ""; }; - 40C1F4032C79076200757481 /* field_common.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = field_common.cc; sourceTree = ""; }; - 40C1F4042C79076200757481 /* file.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = file.h; sourceTree = ""; }; - 40C1F4052C79076200757481 /* file.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = file.cc; sourceTree = ""; }; - 40C1F4062C79076200757481 /* generator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = generator.h; sourceTree = ""; }; - 40C1F4072C79076200757481 /* generator.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = generator.cc; sourceTree = ""; }; - 40C1F4082C79076200757481 /* generator_common.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = generator_common.h; sourceTree = ""; }; - 40C1F4092C79076200757481 /* generator_factory.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = generator_factory.h; sourceTree = ""; }; - 40C1F40A2C79076200757481 /* helpers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = helpers.h; sourceTree = ""; }; - 40C1F40B2C79076200757481 /* helpers.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = helpers.cc; sourceTree = ""; }; - 40C1F40C2C79076200757481 /* internal_helpers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = internal_helpers.h; sourceTree = ""; }; - 40C1F40D2C79076200757481 /* internal_helpers.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = internal_helpers.cc; sourceTree = ""; }; - 40C1F40E2C79076200757481 /* java_features.pb.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = java_features.pb.h; sourceTree = ""; }; - 40C1F40F2C79076200757481 /* java_features.pb.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = java_features.pb.cc; sourceTree = ""; }; - 40C1F4102C79076200757481 /* java_generator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = java_generator.h; sourceTree = ""; }; - 40C1F4112C79076200757481 /* kotlin_generator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = kotlin_generator.h; sourceTree = ""; }; - 40C1F4122C79076200757481 /* kotlin_generator.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = kotlin_generator.cc; sourceTree = ""; }; - 40C1F4132C79076200757481 /* message_serialization.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = message_serialization.h; sourceTree = ""; }; - 40C1F4142C79076200757481 /* message_serialization.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = message_serialization.cc; sourceTree = ""; }; - 40C1F4152C79076200757481 /* message_serialization_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = message_serialization_unittest.cc; sourceTree = ""; }; - 40C1F4162C79076200757481 /* message_serialization_unittest.proto */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.protobuf; path = message_serialization_unittest.proto; sourceTree = ""; }; - 40C1F4172C79076200757481 /* name_resolver.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = name_resolver.h; sourceTree = ""; }; - 40C1F4182C79076200757481 /* name_resolver.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = name_resolver.cc; sourceTree = ""; }; - 40C1F4192C79076200757481 /* names.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = names.h; sourceTree = ""; }; - 40C1F41A2C79076200757481 /* names.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = names.cc; sourceTree = ""; }; - 40C1F41B2C79076200757481 /* options.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = options.h; sourceTree = ""; }; - 40C1F41C2C79076200757481 /* plugin_main.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = plugin_main.cc; sourceTree = ""; }; - 40C1F41D2C79076200757481 /* plugin_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = plugin_unittest.cc; sourceTree = ""; }; - 40C1F41E2C79076200757481 /* shared_code_generator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = shared_code_generator.h; sourceTree = ""; }; - 40C1F41F2C79076200757481 /* shared_code_generator.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = shared_code_generator.cc; sourceTree = ""; }; - 40C1F4212C79076200757481 /* BUILD.bazel */ = {isa = PBXFileReference; lastKnownFileType = text; path = BUILD.bazel; sourceTree = ""; }; - 40C1F4222C79076200757481 /* enum.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = enum.h; sourceTree = ""; }; - 40C1F4232C79076200757481 /* enum.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = enum.cc; sourceTree = ""; }; - 40C1F4242C79076200757481 /* enum_field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = enum_field.h; sourceTree = ""; }; - 40C1F4252C79076200757481 /* enum_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = enum_field.cc; sourceTree = ""; }; - 40C1F4262C79076200757481 /* extension.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = extension.h; sourceTree = ""; }; - 40C1F4272C79076200757481 /* extension.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = extension.cc; sourceTree = ""; }; - 40C1F4282C79076200757481 /* field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = field.h; sourceTree = ""; }; - 40C1F4292C79076200757481 /* field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = field.cc; sourceTree = ""; }; - 40C1F42A2C79076200757481 /* file.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = file.h; sourceTree = ""; }; - 40C1F42B2C79076200757481 /* file.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = file.cc; sourceTree = ""; }; - 40C1F42C2C79076200757481 /* generator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = generator.h; sourceTree = ""; }; - 40C1F42D2C79076200757481 /* generator.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = generator.cc; sourceTree = ""; }; - 40C1F42E2C79076200757481 /* helpers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = helpers.h; sourceTree = ""; }; - 40C1F42F2C79076200757481 /* helpers.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = helpers.cc; sourceTree = ""; }; - 40C1F4302C79076200757481 /* import_writer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = import_writer.h; sourceTree = ""; }; - 40C1F4312C79076200757481 /* import_writer.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = import_writer.cc; sourceTree = ""; }; - 40C1F4322C79076200757481 /* line_consumer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = line_consumer.h; sourceTree = ""; }; - 40C1F4332C79076200757481 /* line_consumer.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = line_consumer.cc; sourceTree = ""; }; - 40C1F4342C79076200757481 /* line_consumer_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = line_consumer_unittest.cc; sourceTree = ""; }; - 40C1F4352C79076200757481 /* map_field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = map_field.h; sourceTree = ""; }; - 40C1F4362C79076200757481 /* map_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = map_field.cc; sourceTree = ""; }; - 40C1F4372C79076200757481 /* message.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = message.h; sourceTree = ""; }; - 40C1F4382C79076200757481 /* message.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = message.cc; sourceTree = ""; }; - 40C1F4392C79076200757481 /* message_field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = message_field.h; sourceTree = ""; }; - 40C1F43A2C79076200757481 /* message_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = message_field.cc; sourceTree = ""; }; - 40C1F43B2C79076200757481 /* method_dump.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = method_dump.sh; sourceTree = ""; }; - 40C1F43C2C79076200757481 /* names.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = names.h; sourceTree = ""; }; - 40C1F43D2C79076200757481 /* names.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = names.cc; sourceTree = ""; }; - 40C1F43E2C79076200757481 /* names_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = names_unittest.cc; sourceTree = ""; }; - 40C1F43F2C79076200757481 /* nsobject_methods.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = nsobject_methods.h; sourceTree = ""; }; - 40C1F4402C79076200757481 /* oneof.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = oneof.h; sourceTree = ""; }; - 40C1F4412C79076200757481 /* oneof.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = oneof.cc; sourceTree = ""; }; - 40C1F4422C79076200757481 /* options.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = options.h; sourceTree = ""; }; - 40C1F4432C79076200757481 /* primitive_field.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = primitive_field.h; sourceTree = ""; }; - 40C1F4442C79076200757481 /* primitive_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = primitive_field.cc; sourceTree = ""; }; - 40C1F4452C79076200757481 /* text_format_decode_data_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = text_format_decode_data_unittest.cc; sourceTree = ""; }; - 40C1F4462C79076200757481 /* tf_decode_data.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = tf_decode_data.h; sourceTree = ""; }; - 40C1F4472C79076200757481 /* tf_decode_data.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = tf_decode_data.cc; sourceTree = ""; }; - 40C1F4492C79076200757481 /* BUILD.bazel */ = {isa = PBXFileReference; lastKnownFileType = text; path = BUILD.bazel; sourceTree = ""; }; - 40C1F44A2C79076200757481 /* generator_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = generator_unittest.cc; sourceTree = ""; }; - 40C1F44B2C79076200757481 /* names.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = names.h; sourceTree = ""; }; - 40C1F44C2C79076200757481 /* names.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = names.cc; sourceTree = ""; }; - 40C1F44D2C79076200757481 /* php_generator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = php_generator.h; sourceTree = ""; }; - 40C1F44E2C79076200757481 /* php_generator.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = php_generator.cc; sourceTree = ""; }; - 40C1F4502C79076200757481 /* BUILD.bazel */ = {isa = PBXFileReference; lastKnownFileType = text; path = BUILD.bazel; sourceTree = ""; }; - 40C1F4512C79076200757481 /* generator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = generator.h; sourceTree = ""; }; - 40C1F4522C79076200757481 /* generator.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = generator.cc; sourceTree = ""; }; - 40C1F4532C79076200757481 /* helpers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = helpers.h; sourceTree = ""; }; - 40C1F4542C79076200757481 /* helpers.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = helpers.cc; sourceTree = ""; }; - 40C1F4552C79076200757481 /* plugin_main.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = plugin_main.cc; sourceTree = ""; }; - 40C1F4562C79076200757481 /* plugin_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = plugin_unittest.cc; sourceTree = ""; }; - 40C1F4572C79076200757481 /* pyi_generator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = pyi_generator.h; sourceTree = ""; }; - 40C1F4582C79076200757481 /* pyi_generator.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = pyi_generator.cc; sourceTree = ""; }; - 40C1F4592C79076200757481 /* python_generator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = python_generator.h; sourceTree = ""; }; - 40C1F45B2C79076200757481 /* BUILD.bazel */ = {isa = PBXFileReference; lastKnownFileType = text; path = BUILD.bazel; sourceTree = ""; }; - 40C1F45C2C79076200757481 /* ruby_generated_code.proto */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.protobuf; path = ruby_generated_code.proto; sourceTree = ""; }; - 40C1F45D2C79076200757481 /* ruby_generated_code_pb.rb */ = {isa = PBXFileReference; lastKnownFileType = text.script.ruby; path = ruby_generated_code_pb.rb; sourceTree = ""; }; - 40C1F45E2C79076200757481 /* ruby_generated_code_proto2.proto */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.protobuf; path = ruby_generated_code_proto2.proto; sourceTree = ""; }; - 40C1F45F2C79076200757481 /* ruby_generated_code_proto2_import.proto */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.protobuf; path = ruby_generated_code_proto2_import.proto; sourceTree = ""; }; - 40C1F4602C79076200757481 /* ruby_generated_code_proto2_pb.rb */ = {isa = PBXFileReference; lastKnownFileType = text.script.ruby; path = ruby_generated_code_proto2_pb.rb; sourceTree = ""; }; - 40C1F4612C79076200757481 /* ruby_generated_pkg_explicit.proto */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.protobuf; path = ruby_generated_pkg_explicit.proto; sourceTree = ""; }; - 40C1F4622C79076200757481 /* ruby_generated_pkg_explicit_legacy.proto */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.protobuf; path = ruby_generated_pkg_explicit_legacy.proto; sourceTree = ""; }; - 40C1F4632C79076200757481 /* ruby_generated_pkg_explicit_legacy_pb.rb */ = {isa = PBXFileReference; lastKnownFileType = text.script.ruby; path = ruby_generated_pkg_explicit_legacy_pb.rb; sourceTree = ""; }; - 40C1F4642C79076200757481 /* ruby_generated_pkg_explicit_pb.rb */ = {isa = PBXFileReference; lastKnownFileType = text.script.ruby; path = ruby_generated_pkg_explicit_pb.rb; sourceTree = ""; }; - 40C1F4652C79076200757481 /* ruby_generated_pkg_implicit.proto */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.protobuf; path = ruby_generated_pkg_implicit.proto; sourceTree = ""; }; - 40C1F4662C79076200757481 /* ruby_generated_pkg_implicit_pb.rb */ = {isa = PBXFileReference; lastKnownFileType = text.script.ruby; path = ruby_generated_pkg_implicit_pb.rb; sourceTree = ""; }; - 40C1F4672C79076200757481 /* ruby_generator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ruby_generator.h; sourceTree = ""; }; - 40C1F4682C79076200757481 /* ruby_generator.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = ruby_generator.cc; sourceTree = ""; }; - 40C1F4692C79076200757481 /* ruby_generator_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = ruby_generator_unittest.cc; sourceTree = ""; }; - 40C1F46B2C79076200757481 /* accessor_case.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = accessor_case.h; sourceTree = ""; }; - 40C1F46C2C79076200757481 /* accessor_case.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = accessor_case.cc; sourceTree = ""; }; - 40C1F46D2C79076200757481 /* accessors.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = accessors.h; sourceTree = ""; }; - 40C1F46E2C79076200757481 /* accessors.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = accessors.cc; sourceTree = ""; }; - 40C1F46F2C79076200757481 /* generator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = generator.h; sourceTree = ""; }; - 40C1F4702C79076200757481 /* helpers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = helpers.h; sourceTree = ""; }; - 40C1F4712C79076200757481 /* helpers.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = helpers.cc; sourceTree = ""; }; - 40C1F4722C79076200757481 /* map.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = map.cc; sourceTree = ""; }; - 40C1F4732C79076200757481 /* repeated_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = repeated_field.cc; sourceTree = ""; }; - 40C1F4742C79076200757481 /* singular_message.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = singular_message.cc; sourceTree = ""; }; - 40C1F4752C79076200757481 /* singular_scalar.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = singular_scalar.cc; sourceTree = ""; }; - 40C1F4762C79076200757481 /* singular_string.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = singular_string.cc; sourceTree = ""; }; - 40C1F4772C79076200757481 /* unsupported_field.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = unsupported_field.cc; sourceTree = ""; }; - 40C1F4792C79076200757481 /* BUILD.bazel */ = {isa = PBXFileReference; lastKnownFileType = text; path = BUILD.bazel; sourceTree = ""; }; - 40C1F47A2C79076200757481 /* context.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = context.h; sourceTree = ""; }; - 40C1F47B2C79076200757481 /* context.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = context.cc; sourceTree = ""; }; - 40C1F47C2C79076200757481 /* crate_mapping.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = crate_mapping.h; sourceTree = ""; }; - 40C1F47D2C79076200757481 /* crate_mapping.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = crate_mapping.cc; sourceTree = ""; }; - 40C1F47E2C79076200757481 /* crate_mapping_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = crate_mapping_unittest.cc; sourceTree = ""; }; - 40C1F47F2C79076200757481 /* enum.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = enum.h; sourceTree = ""; }; - 40C1F4802C79076200757481 /* enum.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = enum.cc; sourceTree = ""; }; - 40C1F4812C79076200757481 /* enum_test.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = enum_test.cc; sourceTree = ""; }; - 40C1F4822C79076200757481 /* generator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = generator.h; sourceTree = ""; }; - 40C1F4832C79076200757481 /* generator.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = generator.cc; sourceTree = ""; }; - 40C1F4842C79076200757481 /* message.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = message.h; sourceTree = ""; }; - 40C1F4852C79076200757481 /* message.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = message.cc; sourceTree = ""; }; - 40C1F4862C79076200757481 /* naming.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = naming.h; sourceTree = ""; }; - 40C1F4872C79076200757481 /* naming.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = naming.cc; sourceTree = ""; }; - 40C1F4882C79076200757481 /* naming_test.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = naming_test.cc; sourceTree = ""; }; - 40C1F4892C79076200757481 /* oneof.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = oneof.h; sourceTree = ""; }; - 40C1F48A2C79076200757481 /* oneof.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = oneof.cc; sourceTree = ""; }; - 40C1F48B2C79076200757481 /* relative_path.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = relative_path.h; sourceTree = ""; }; - 40C1F48C2C79076200757481 /* relative_path.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = relative_path.cc; sourceTree = ""; }; - 40C1F48D2C79076200757481 /* relative_path_test.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = relative_path_test.cc; sourceTree = ""; }; - 40C1F48E2C79076200757481 /* rust_field_type.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = rust_field_type.h; sourceTree = ""; }; - 40C1F48F2C79076200757481 /* rust_field_type.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = rust_field_type.cc; sourceTree = ""; }; - 40C1F4902C79076200757481 /* rust_keywords.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = rust_keywords.h; sourceTree = ""; }; - 40C1F4912C79076200757481 /* rust_keywords.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = rust_keywords.cc; sourceTree = ""; }; - 40C1F4932C79076200757481 /* annotation_test_util.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = annotation_test_util.h; sourceTree = ""; }; - 40C1F4942C79076200757481 /* annotation_test_util.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = annotation_test_util.cc; sourceTree = ""; }; - 40C1F4952C79076200757481 /* BUILD.bazel */ = {isa = PBXFileReference; lastKnownFileType = text; path = BUILD.bazel; sourceTree = ""; }; - 40C1F4962C79076200757481 /* code_generator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = code_generator.h; sourceTree = ""; }; - 40C1F4972C79076200757481 /* code_generator.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = code_generator.cc; sourceTree = ""; }; - 40C1F4982C79076200757481 /* code_generator_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = code_generator_unittest.cc; sourceTree = ""; }; - 40C1F4992C79076200757481 /* command_line_interface.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = command_line_interface.h; sourceTree = ""; }; - 40C1F49A2C79076200757481 /* command_line_interface.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = command_line_interface.cc; sourceTree = ""; }; - 40C1F49B2C79076200757481 /* command_line_interface_tester.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = command_line_interface_tester.h; sourceTree = ""; }; - 40C1F49C2C79076200757481 /* command_line_interface_tester.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = command_line_interface_tester.cc; sourceTree = ""; }; - 40C1F49D2C79076200757481 /* command_line_interface_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = command_line_interface_unittest.cc; sourceTree = ""; }; - 40C1F49E2C79076200757481 /* fake_plugin.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = fake_plugin.cc; sourceTree = ""; }; - 40C1F49F2C79076200757481 /* importer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = importer.h; sourceTree = ""; }; - 40C1F4A02C79076200757481 /* importer.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = importer.cc; sourceTree = ""; }; - 40C1F4A12C79076200757481 /* importer_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = importer_unittest.cc; sourceTree = ""; }; - 40C1F4A22C79076200757481 /* main.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = main.cc; sourceTree = ""; }; - 40C1F4A32C79076200757481 /* main_no_generators.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = main_no_generators.cc; sourceTree = ""; }; - 40C1F4A42C79076200757481 /* mock_code_generator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = mock_code_generator.h; sourceTree = ""; }; - 40C1F4A52C79076200757481 /* mock_code_generator.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = mock_code_generator.cc; sourceTree = ""; }; - 40C1F4A62C79076200757481 /* package_info.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = package_info.h; sourceTree = ""; }; - 40C1F4A72C79076200757481 /* parser.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = parser.h; sourceTree = ""; }; - 40C1F4A82C79076200757481 /* parser.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = parser.cc; sourceTree = ""; }; - 40C1F4A92C79076200757481 /* parser_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = parser_unittest.cc; sourceTree = ""; }; - 40C1F4AA2C79076200757481 /* plugin.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = plugin.h; sourceTree = ""; }; - 40C1F4AB2C79076200757481 /* plugin.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = plugin.cc; sourceTree = ""; }; - 40C1F4AC2C79076200757481 /* plugin.proto */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.protobuf; path = plugin.proto; sourceTree = ""; }; - 40C1F4AD2C79076200757481 /* plugin.pb.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = plugin.pb.h; sourceTree = ""; }; - 40C1F4AE2C79076200757481 /* plugin.pb.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = plugin.pb.cc; sourceTree = ""; }; - 40C1F4AF2C79076200757481 /* retention.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = retention.h; sourceTree = ""; }; - 40C1F4B02C79076200757481 /* retention.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = retention.cc; sourceTree = ""; }; - 40C1F4B12C79076200757481 /* retention_unittest.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = retention_unittest.cc; sourceTree = ""; }; - 40C1F4B22C79076200757481 /* scc.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = scc.h; sourceTree = ""; }; - 40C1F4B32C79076200757481 /* subprocess.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = subprocess.h; sourceTree = ""; }; - 40C1F4B42C79076200757481 /* subprocess.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = subprocess.cc; sourceTree = ""; }; - 40C1F4B52C79076200757481 /* test_plugin.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = test_plugin.cc; sourceTree = ""; }; - 40C1F4B62C79076200757481 /* test_plugin_injection.bzl */ = {isa = PBXFileReference; lastKnownFileType = text; path = test_plugin_injection.bzl; sourceTree = ""; }; - 40C1F4B72C79076200757481 /* versions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = versions.h; sourceTree = ""; }; - 40C1F4B82C79076200757481 /* versions.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = versions.cc; sourceTree = ""; }; - 40C1F4B92C79076200757481 /* versions_test.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = versions_test.cc; sourceTree = ""; }; - 40C1F4BA2C79076200757481 /* zip_output_unittest.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = zip_output_unittest.sh; sourceTree = ""; }; - 40C1F4BB2C79076200757481 /* zip_writer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = zip_writer.h; sourceTree = ""; }; - 40C1F4BC2C79076200757481 /* zip_writer.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = zip_writer.cc; sourceTree = ""; }; 40C1F4BE2C79076200757481 /* BUILD.bazel */ = {isa = PBXFileReference; lastKnownFileType = text; path = BUILD.bazel; sourceTree = ""; }; 40C1F4BF2C79076200757481 /* coded_stream.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = coded_stream.h; sourceTree = ""; }; 40C1F4C02C79076200757481 /* coded_stream.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = coded_stream.cc; sourceTree = ""; }; @@ -2305,7 +1980,6 @@ 40C1F54E2C79076200757481 /* arenaz_sampler.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = arenaz_sampler.h; sourceTree = ""; }; 40C1F54F2C79076200757481 /* arenaz_sampler.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = arenaz_sampler.cc; sourceTree = ""; }; 40C1F5502C79076200757481 /* arenaz_sampler_test.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = arenaz_sampler_test.cc; sourceTree = ""; }; - 40C1F5512C79076200757481 /* BUILD.bazel */ = {isa = PBXFileReference; lastKnownFileType = text; path = BUILD.bazel; sourceTree = ""; }; 40C1F5522C79076200757481 /* cpp_edition_defaults.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = cpp_edition_defaults.h; sourceTree = ""; }; 40C1F5532C79076200757481 /* cpp_features.proto */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.protobuf; path = cpp_features.proto; sourceTree = ""; }; 40C1F5542C79076200757481 /* cpp_features.pb.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = cpp_features.pb.h; sourceTree = ""; }; @@ -2541,11 +2215,6 @@ 40C1F63A2C79076200757481 /* wrappers.proto */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.protobuf; path = wrappers.proto; sourceTree = ""; }; 40C1F63B2C79076200757481 /* wrappers.pb.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = wrappers.pb.h; sourceTree = ""; }; 40C1F63C2C79076200757481 /* wrappers.pb.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = wrappers.pb.cc; sourceTree = ""; }; - 40C1F6412C79076200757481 /* BUILD.bazel */ = {isa = PBXFileReference; lastKnownFileType = text; path = BUILD.bazel; sourceTree = ""; }; - 40C1F6422C79076200757481 /* file_lists.cmake */ = {isa = PBXFileReference; lastKnownFileType = text; path = file_lists.cmake; sourceTree = ""; }; - 40C1F6432C79076200757481 /* libprotobuf.map */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = libprotobuf.map; sourceTree = ""; }; - 40C1F6442C79076200757481 /* libprotobuf-lite.map */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = "libprotobuf-lite.map"; sourceTree = ""; }; - 40C1F6452C79076200757481 /* libprotoc.map */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = libprotoc.map; sourceTree = ""; }; 40C1F6462C79076200757481 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 40C1F64D2C79076200757481 /* algorithm.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = algorithm.h; sourceTree = ""; }; 40C1F64E2C79076200757481 /* algorithm_test.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = algorithm_test.cc; sourceTree = ""; }; @@ -4112,6 +3781,18 @@ 40E7C51B2C61CAEF00FC0383 /* CoreTypes.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CoreTypes.swift; sourceTree = ""; }; 40E7C53B2C61CD7D00FC0383 /* Types.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Types.swift; sourceTree = ""; }; 40E7C53D2C61CF6300FC0383 /* Engine.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Engine.swift; sourceTree = ""; }; + 40E836B02CBDC6F00022B026 /* ActionCache.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ActionCache.swift; sourceTree = ""; }; + 40E837DF2CCC56270022B026 /* Label.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Label.swift; sourceTree = ""; }; + 40E837E12CCC5D440022B026 /* CAS.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CAS.h; sourceTree = ""; }; + 40E837E32CCC5FFB0022B026 /* CAS.pb.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CAS.pb.h; sourceTree = ""; }; + 40E837E42CCC5FFB0022B026 /* CAS.pb.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = CAS.pb.cc; sourceTree = ""; }; + 40E837E52CCC5FFB0022B026 /* CAS.pb.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CAS.pb.swift; sourceTree = ""; }; + 40E837E92CCC643D0022B026 /* CAS.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = CAS.cpp; sourceTree = ""; }; + 40E838062CCC66ED0022B026 /* blake3.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = blake3.h; sourceTree = ""; }; + 40E838072CCC66ED0022B026 /* blake3.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = blake3.c; sourceTree = ""; }; + 40E838102CCC66ED0022B026 /* blake3_dispatch.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = blake3_dispatch.c; sourceTree = ""; }; + 40E838112CCC66ED0022B026 /* blake3_impl.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = blake3_impl.h; sourceTree = ""; }; + 40E838132CCC66ED0022B026 /* blake3_portable.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = blake3_portable.c; sourceTree = ""; }; 40EA26452164253500068954 /* Subprocess.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Subprocess.h; sourceTree = ""; }; 40EA26462164289500068954 /* ExecutionQueue.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ExecutionQueue.h; sourceTree = ""; }; 40EA264721651D2C00068954 /* ExecutionQueue.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ExecutionQueue.cpp; sourceTree = ""; }; @@ -4541,7 +4222,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 403DC5882C52031D00A9AE24 /* libTritiumThirdParty.a in Frameworks */, + 403DC5882C52031D00A9AE24 /* libllbuild3ThirdParty.a in Frameworks */, 403552C62C52062C00D415BA /* SwiftProtobuf in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -4550,7 +4231,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 4072B5DF2C51BE5100B68221 /* Tritium.framework in Frameworks */, + 4072B5DF2C51BE5100B68221 /* llbuild3.framework in Frameworks */, 403552F12C522F9E00D415BA /* SwiftProtobuf in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -4925,12 +4606,12 @@ name = Products; sourceTree = ""; }; - 403B815F2C79047D00CD4F1E /* TritiumCoreTests */ = { + 403B815F2C79047D00CD4F1E /* llbuild3CoreTests */ = { isa = PBXGroup; children = ( 403B815E2C79047D00CD4F1E /* EngineTests.swift */, ); - path = TritiumCoreTests; + path = llbuild3CoreTests; sourceTree = ""; }; 403DC43A2C51D07C00A9AE24 /* Products */ = { @@ -5281,16 +4962,16 @@ path = "llvm-c"; sourceTree = ""; }; - 4072B4B32C51993F00B68221 /* Tritium */ = { + 4072B4B32C51993F00B68221 /* llbuild3 */ = { isa = PBXGroup; children = ( 403552EE2C522BA700D415BA /* Visibility.hpp */, 4072B4AE2C51993F00B68221 /* Errors.hpp */, 4072B4B22C51993F00B68221 /* Result.hpp */, 4072B4AF2C51993F00B68221 /* SwiftAdaptors.hpp */, - 4072B5D92C51BE5100B68221 /* Tritium.h */, + 4072B5D92C51BE5100B68221 /* llbuild3.h */, ); - path = Tritium; + path = llbuild3; sourceTree = ""; }; 4072B4B52C51993F00B68221 /* include */ = { @@ -5313,24 +4994,31 @@ 4072B4B92C51995100B68221 /* ActionCache.pb.h */, 4072B4BA2C51995100B68221 /* ActionCache.pb.cc */, 4072B4BB2C51995100B68221 /* ActionCache.pb.swift */, + 40E836B02CBDC6F00022B026 /* ActionCache.swift */, 4072B4BC2C51995100B68221 /* Artifact.proto */, 4072B4BD2C51995100B68221 /* Artifact.pb.h */, 4072B4BE2C51995100B68221 /* Artifact.pb.cc */, 4072B4BF2C51995100B68221 /* Artifact.pb.swift */, - 4072B4C02C51995100B68221 /* CASObjectID.proto */, - 4072B4C12C51995100B68221 /* CASObjectID.pb.h */, - 4072B4C22C51995100B68221 /* CASObjectID.pb.cc */, - 4072B4C32C51995100B68221 /* CASObjectID.pb.swift */, + 40E837E12CCC5D440022B026 /* CAS.h */, + 40E837E92CCC643D0022B026 /* CAS.cpp */, + 4072B4C02C51995100B68221 /* CAS.proto */, + 40E837E32CCC5FFB0022B026 /* CAS.pb.h */, + 40E837E42CCC5FFB0022B026 /* CAS.pb.cc */, + 40E837E52CCC5FFB0022B026 /* CAS.pb.swift */, 40E7C51B2C61CAEF00FC0383 /* CoreTypes.swift */, 4072B4C42C51995100B68221 /* Engine.h */, 4072B4C52C51995100B68221 /* Engine.cpp */, 40E7C53D2C61CF6300FC0383 /* Engine.swift */, + 4035F55B2CDEB2F500337926 /* EngineInternal.pb.h */, + 4035F55C2CDEB2F500337926 /* EngineInternal.pb.cc */, + 4035F5592CDEAB8100337926 /* EngineInternal.proto */, 4072B4C62C51995100B68221 /* Label.h */, 4072B4C72C51995100B68221 /* Label.cpp */, 4072B4C82C51995100B68221 /* Label.proto */, 4072B4C92C51995100B68221 /* Label.pb.h */, 4072B4CA2C51995100B68221 /* Label.pb.cc */, 4072B4CB2C51995100B68221 /* Label.pb.swift */, + 40E837DF2CCC56270022B026 /* Label.swift */, 4072B4CC2C51995100B68221 /* Rule.proto */, 4072B4CD2C51995100B68221 /* Rule.pb.h */, 4072B4CE2C51995100B68221 /* Rule.pb.cc */, @@ -5343,13 +5031,12 @@ 4072B4D42C51995100B68221 /* support */ = { isa = PBXGroup; children = ( - 4072B4D22C51995100B68221 /* Defer.h */, 4072B4D32C51995100B68221 /* Support.cpp */, ); path = support; sourceTree = ""; }; - 4072B4D92C51995100B68221 /* tritium */ = { + 4072B4D92C51995100B68221 /* llbuild3 */ = { isa = PBXGroup; children = ( 4072B4D12C51995100B68221 /* core */, @@ -5360,13 +5047,13 @@ 4072B4D82C51995100B68221 /* Error.pb.swift */, 40E7C53B2C61CD7D00FC0383 /* Types.swift */, ); - path = tritium; + path = llbuild3; sourceTree = ""; }; 4072B4DB2C51995100B68221 /* src */ = { isa = PBXGroup; children = ( - 4072B4D92C51995100B68221 /* tritium */, + 4072B4D92C51995100B68221 /* llbuild3 */, 4072B4DA2C51995100B68221 /* module_map.asciipb */, ); path = src; @@ -5424,6 +5111,7 @@ 40C100572C79076200757481 /* thirdparty */ = { isa = PBXGroup; children = ( + 40E8384B2CCC66ED0022B026 /* BLAKE3 */, 40C100552C79076200757481 /* protobuf */, 40C100562C79076200757481 /* swift-protobuf */, ); @@ -5439,452 +5127,6 @@ path = bridge; sourceTree = ""; }; - 40C1F3692C79076200757481 /* field_generators */ = { - isa = PBXGroup; - children = ( - 40C1F3612C79076200757481 /* cord_field.cc */, - 40C1F3622C79076200757481 /* enum_field.cc */, - 40C1F3632C79076200757481 /* generators.h */, - 40C1F3642C79076200757481 /* map_field.cc */, - 40C1F3652C79076200757481 /* message_field.cc */, - 40C1F3662C79076200757481 /* primitive_field.cc */, - 40C1F3672C79076200757481 /* string_field.cc */, - 40C1F3682C79076200757481 /* string_view_field.cc */, - ); - path = field_generators; - sourceTree = ""; - }; - 40C1F36F2C79076200757481 /* tools */ = { - isa = PBXGroup; - children = ( - 40C1F36A2C79076200757481 /* analyze_profile_proto.h */, - 40C1F36B2C79076200757481 /* analyze_profile_proto.cc */, - 40C1F36C2C79076200757481 /* analyze_profile_proto_main.cc */, - 40C1F36D2C79076200757481 /* analyze_profile_proto_test.cc */, - 40C1F36E2C79076200757481 /* analyze_profile_proto_test.proto */, - ); - path = tools; - sourceTree = ""; - }; - 40C1F3A02C79076200757481 /* cpp */ = { - isa = PBXGroup; - children = ( - 40C1F3692C79076200757481 /* field_generators */, - 40C1F36F2C79076200757481 /* tools */, - 40C1F3702C79076200757481 /* arena_ctor_visibility_test.cc */, - 40C1F3712C79076200757481 /* bootstrap_unittest.cc */, - 40C1F3722C79076200757481 /* BUILD.bazel */, - 40C1F3732C79076200757481 /* copy_unittest.cc */, - 40C1F3742C79076200757481 /* cpp_generator.h */, - 40C1F3752C79076200757481 /* enum.h */, - 40C1F3762C79076200757481 /* enum.cc */, - 40C1F3772C79076200757481 /* extension.h */, - 40C1F3782C79076200757481 /* extension.cc */, - 40C1F3792C79076200757481 /* field.h */, - 40C1F37A2C79076200757481 /* field.cc */, - 40C1F37B2C79076200757481 /* file.h */, - 40C1F37C2C79076200757481 /* file.cc */, - 40C1F37D2C79076200757481 /* file_unittest.cc */, - 40C1F37E2C79076200757481 /* generator.h */, - 40C1F37F2C79076200757481 /* generator.cc */, - 40C1F3802C79076200757481 /* generator_unittest.cc */, - 40C1F3812C79076200757481 /* helpers.h */, - 40C1F3822C79076200757481 /* helpers.cc */, - 40C1F3832C79076200757481 /* ifndef_guard.h */, - 40C1F3842C79076200757481 /* ifndef_guard.cc */, - 40C1F3852C79076200757481 /* ifndef_guard_unittest.cc */, - 40C1F3862C79076200757481 /* main.cc */, - 40C1F3872C79076200757481 /* message.h */, - 40C1F3882C79076200757481 /* message.cc */, - 40C1F3892C79076200757481 /* message_layout_helper.h */, - 40C1F38A2C79076200757481 /* message_size_unittest.cc */, - 40C1F38B2C79076200757481 /* metadata_test.cc */, - 40C1F38C2C79076200757481 /* move_unittest.cc */, - 40C1F38D2C79076200757481 /* names.h */, - 40C1F38E2C79076200757481 /* namespace_printer.h */, - 40C1F38F2C79076200757481 /* namespace_printer.cc */, - 40C1F3902C79076200757481 /* namespace_printer_unittest.cc */, - 40C1F3912C79076200757481 /* options.h */, - 40C1F3922C79076200757481 /* padding_optimizer.h */, - 40C1F3932C79076200757481 /* padding_optimizer.cc */, - 40C1F3942C79076200757481 /* parse_function_generator.h */, - 40C1F3952C79076200757481 /* parse_function_generator.cc */, - 40C1F3962C79076200757481 /* plugin_unittest.cc */, - 40C1F3972C79076200757481 /* service.h */, - 40C1F3982C79076200757481 /* service.cc */, - 40C1F3992C79076200757481 /* test_bad_identifiers.proto */, - 40C1F39A2C79076200757481 /* test_large_enum_value.proto */, - 40C1F39B2C79076200757481 /* tracker.h */, - 40C1F39C2C79076200757481 /* tracker.cc */, - 40C1F39D2C79076200757481 /* unittest.h */, - 40C1F39E2C79076200757481 /* unittest.cc */, - 40C1F39F2C79076200757481 /* unittest.inc */, - ); - path = cpp; - sourceTree = ""; - }; - 40C1F3C72C79076200757481 /* csharp */ = { - isa = PBXGroup; - children = ( - 40C1F3A12C79076200757481 /* BUILD.bazel */, - 40C1F3A22C79076200757481 /* csharp_bootstrap_unittest.cc */, - 40C1F3A32C79076200757481 /* csharp_doc_comment.h */, - 40C1F3A42C79076200757481 /* csharp_doc_comment.cc */, - 40C1F3A52C79076200757481 /* csharp_enum.h */, - 40C1F3A62C79076200757481 /* csharp_enum.cc */, - 40C1F3A72C79076200757481 /* csharp_enum_field.h */, - 40C1F3A82C79076200757481 /* csharp_enum_field.cc */, - 40C1F3A92C79076200757481 /* csharp_field_base.h */, - 40C1F3AA2C79076200757481 /* csharp_field_base.cc */, - 40C1F3AB2C79076200757481 /* csharp_generator.h */, - 40C1F3AC2C79076200757481 /* csharp_generator.cc */, - 40C1F3AD2C79076200757481 /* csharp_generator_unittest.cc */, - 40C1F3AE2C79076200757481 /* csharp_helpers.h */, - 40C1F3AF2C79076200757481 /* csharp_helpers.cc */, - 40C1F3B02C79076200757481 /* csharp_map_field.h */, - 40C1F3B12C79076200757481 /* csharp_map_field.cc */, - 40C1F3B22C79076200757481 /* csharp_message.h */, - 40C1F3B32C79076200757481 /* csharp_message.cc */, - 40C1F3B42C79076200757481 /* csharp_message_field.h */, - 40C1F3B52C79076200757481 /* csharp_message_field.cc */, - 40C1F3B62C79076200757481 /* csharp_options.h */, - 40C1F3B72C79076200757481 /* csharp_primitive_field.h */, - 40C1F3B82C79076200757481 /* csharp_primitive_field.cc */, - 40C1F3B92C79076200757481 /* csharp_reflection_class.h */, - 40C1F3BA2C79076200757481 /* csharp_reflection_class.cc */, - 40C1F3BB2C79076200757481 /* csharp_repeated_enum_field.h */, - 40C1F3BC2C79076200757481 /* csharp_repeated_enum_field.cc */, - 40C1F3BD2C79076200757481 /* csharp_repeated_message_field.h */, - 40C1F3BE2C79076200757481 /* csharp_repeated_message_field.cc */, - 40C1F3BF2C79076200757481 /* csharp_repeated_primitive_field.h */, - 40C1F3C02C79076200757481 /* csharp_repeated_primitive_field.cc */, - 40C1F3C12C79076200757481 /* csharp_source_generator_base.h */, - 40C1F3C22C79076200757481 /* csharp_source_generator_base.cc */, - 40C1F3C32C79076200757481 /* csharp_wrapper_field.h */, - 40C1F3C42C79076200757481 /* csharp_wrapper_field.cc */, - 40C1F3C52C79076200757481 /* names.h */, - 40C1F3C62C79076200757481 /* names.cc */, - ); - path = csharp; - sourceTree = ""; - }; - 40C1F3E22C79076200757481 /* full */ = { - isa = PBXGroup; - children = ( - 40C1F3C82C79076200757481 /* BUILD.bazel */, - 40C1F3C92C79076200757481 /* enum.h */, - 40C1F3CA2C79076200757481 /* enum.cc */, - 40C1F3CB2C79076200757481 /* enum_field.h */, - 40C1F3CC2C79076200757481 /* enum_field.cc */, - 40C1F3CD2C79076200757481 /* extension.h */, - 40C1F3CE2C79076200757481 /* extension.cc */, - 40C1F3CF2C79076200757481 /* field_generator.h */, - 40C1F3D02C79076200757481 /* generator_factory.h */, - 40C1F3D12C79076200757481 /* generator_factory.cc */, - 40C1F3D22C79076200757481 /* make_field_gens.h */, - 40C1F3D32C79076200757481 /* make_field_gens.cc */, - 40C1F3D42C79076200757481 /* map_field.h */, - 40C1F3D52C79076200757481 /* map_field.cc */, - 40C1F3D62C79076200757481 /* message.h */, - 40C1F3D72C79076200757481 /* message.cc */, - 40C1F3D82C79076200757481 /* message_builder.h */, - 40C1F3D92C79076200757481 /* message_builder.cc */, - 40C1F3DA2C79076200757481 /* message_field.h */, - 40C1F3DB2C79076200757481 /* message_field.cc */, - 40C1F3DC2C79076200757481 /* primitive_field.h */, - 40C1F3DD2C79076200757481 /* primitive_field.cc */, - 40C1F3DE2C79076200757481 /* service.h */, - 40C1F3DF2C79076200757481 /* service.cc */, - 40C1F3E02C79076200757481 /* string_field.h */, - 40C1F3E12C79076200757481 /* string_field.cc */, - ); - path = full; - sourceTree = ""; - }; - 40C1F3FB2C79076200757481 /* lite */ = { - isa = PBXGroup; - children = ( - 40C1F3E32C79076200757481 /* BUILD.bazel */, - 40C1F3E42C79076200757481 /* enum.h */, - 40C1F3E52C79076200757481 /* enum.cc */, - 40C1F3E62C79076200757481 /* enum_field.h */, - 40C1F3E72C79076200757481 /* enum_field.cc */, - 40C1F3E82C79076200757481 /* extension.h */, - 40C1F3E92C79076200757481 /* extension.cc */, - 40C1F3EA2C79076200757481 /* field_generator.h */, - 40C1F3EB2C79076200757481 /* generator_factory.h */, - 40C1F3EC2C79076200757481 /* generator_factory.cc */, - 40C1F3ED2C79076200757481 /* make_field_gens.h */, - 40C1F3EE2C79076200757481 /* make_field_gens.cc */, - 40C1F3EF2C79076200757481 /* map_field.h */, - 40C1F3F02C79076200757481 /* map_field.cc */, - 40C1F3F12C79076200757481 /* message.h */, - 40C1F3F22C79076200757481 /* message.cc */, - 40C1F3F32C79076200757481 /* message_builder.h */, - 40C1F3F42C79076200757481 /* message_builder.cc */, - 40C1F3F52C79076200757481 /* message_field.h */, - 40C1F3F62C79076200757481 /* message_field.cc */, - 40C1F3F72C79076200757481 /* primitive_field.h */, - 40C1F3F82C79076200757481 /* primitive_field.cc */, - 40C1F3F92C79076200757481 /* string_field.h */, - 40C1F3FA2C79076200757481 /* string_field.cc */, - ); - path = lite; - sourceTree = ""; - }; - 40C1F4202C79076200757481 /* java */ = { - isa = PBXGroup; - children = ( - 40C1F3E22C79076200757481 /* full */, - 40C1F3FB2C79076200757481 /* lite */, - 40C1F3FC2C79076200757481 /* BUILD.bazel */, - 40C1F3FD2C79076200757481 /* context.h */, - 40C1F3FE2C79076200757481 /* context.cc */, - 40C1F3FF2C79076200757481 /* doc_comment.h */, - 40C1F4002C79076200757481 /* doc_comment.cc */, - 40C1F4012C79076200757481 /* doc_comment_unittest.cc */, - 40C1F4022C79076200757481 /* field_common.h */, - 40C1F4032C79076200757481 /* field_common.cc */, - 40C1F4042C79076200757481 /* file.h */, - 40C1F4052C79076200757481 /* file.cc */, - 40C1F4062C79076200757481 /* generator.h */, - 40C1F4072C79076200757481 /* generator.cc */, - 40C1F4082C79076200757481 /* generator_common.h */, - 40C1F4092C79076200757481 /* generator_factory.h */, - 40C1F40A2C79076200757481 /* helpers.h */, - 40C1F40B2C79076200757481 /* helpers.cc */, - 40C1F40C2C79076200757481 /* internal_helpers.h */, - 40C1F40D2C79076200757481 /* internal_helpers.cc */, - 40C1F40E2C79076200757481 /* java_features.pb.h */, - 40C1F40F2C79076200757481 /* java_features.pb.cc */, - 40C1F4102C79076200757481 /* java_generator.h */, - 40C1F4112C79076200757481 /* kotlin_generator.h */, - 40C1F4122C79076200757481 /* kotlin_generator.cc */, - 40C1F4132C79076200757481 /* message_serialization.h */, - 40C1F4142C79076200757481 /* message_serialization.cc */, - 40C1F4152C79076200757481 /* message_serialization_unittest.cc */, - 40C1F4162C79076200757481 /* message_serialization_unittest.proto */, - 40C1F4172C79076200757481 /* name_resolver.h */, - 40C1F4182C79076200757481 /* name_resolver.cc */, - 40C1F4192C79076200757481 /* names.h */, - 40C1F41A2C79076200757481 /* names.cc */, - 40C1F41B2C79076200757481 /* options.h */, - 40C1F41C2C79076200757481 /* plugin_main.cc */, - 40C1F41D2C79076200757481 /* plugin_unittest.cc */, - 40C1F41E2C79076200757481 /* shared_code_generator.h */, - 40C1F41F2C79076200757481 /* shared_code_generator.cc */, - ); - path = java; - sourceTree = ""; - }; - 40C1F4482C79076200757481 /* objectivec */ = { - isa = PBXGroup; - children = ( - 40C1F4212C79076200757481 /* BUILD.bazel */, - 40C1F4222C79076200757481 /* enum.h */, - 40C1F4232C79076200757481 /* enum.cc */, - 40C1F4242C79076200757481 /* enum_field.h */, - 40C1F4252C79076200757481 /* enum_field.cc */, - 40C1F4262C79076200757481 /* extension.h */, - 40C1F4272C79076200757481 /* extension.cc */, - 40C1F4282C79076200757481 /* field.h */, - 40C1F4292C79076200757481 /* field.cc */, - 40C1F42A2C79076200757481 /* file.h */, - 40C1F42B2C79076200757481 /* file.cc */, - 40C1F42C2C79076200757481 /* generator.h */, - 40C1F42D2C79076200757481 /* generator.cc */, - 40C1F42E2C79076200757481 /* helpers.h */, - 40C1F42F2C79076200757481 /* helpers.cc */, - 40C1F4302C79076200757481 /* import_writer.h */, - 40C1F4312C79076200757481 /* import_writer.cc */, - 40C1F4322C79076200757481 /* line_consumer.h */, - 40C1F4332C79076200757481 /* line_consumer.cc */, - 40C1F4342C79076200757481 /* line_consumer_unittest.cc */, - 40C1F4352C79076200757481 /* map_field.h */, - 40C1F4362C79076200757481 /* map_field.cc */, - 40C1F4372C79076200757481 /* message.h */, - 40C1F4382C79076200757481 /* message.cc */, - 40C1F4392C79076200757481 /* message_field.h */, - 40C1F43A2C79076200757481 /* message_field.cc */, - 40C1F43B2C79076200757481 /* method_dump.sh */, - 40C1F43C2C79076200757481 /* names.h */, - 40C1F43D2C79076200757481 /* names.cc */, - 40C1F43E2C79076200757481 /* names_unittest.cc */, - 40C1F43F2C79076200757481 /* nsobject_methods.h */, - 40C1F4402C79076200757481 /* oneof.h */, - 40C1F4412C79076200757481 /* oneof.cc */, - 40C1F4422C79076200757481 /* options.h */, - 40C1F4432C79076200757481 /* primitive_field.h */, - 40C1F4442C79076200757481 /* primitive_field.cc */, - 40C1F4452C79076200757481 /* text_format_decode_data_unittest.cc */, - 40C1F4462C79076200757481 /* tf_decode_data.h */, - 40C1F4472C79076200757481 /* tf_decode_data.cc */, - ); - path = objectivec; - sourceTree = ""; - }; - 40C1F44F2C79076200757481 /* php */ = { - isa = PBXGroup; - children = ( - 40C1F4492C79076200757481 /* BUILD.bazel */, - 40C1F44A2C79076200757481 /* generator_unittest.cc */, - 40C1F44B2C79076200757481 /* names.h */, - 40C1F44C2C79076200757481 /* names.cc */, - 40C1F44D2C79076200757481 /* php_generator.h */, - 40C1F44E2C79076200757481 /* php_generator.cc */, - ); - path = php; - sourceTree = ""; - }; - 40C1F45A2C79076200757481 /* python */ = { - isa = PBXGroup; - children = ( - 40C1F4502C79076200757481 /* BUILD.bazel */, - 40C1F4512C79076200757481 /* generator.h */, - 40C1F4522C79076200757481 /* generator.cc */, - 40C1F4532C79076200757481 /* helpers.h */, - 40C1F4542C79076200757481 /* helpers.cc */, - 40C1F4552C79076200757481 /* plugin_main.cc */, - 40C1F4562C79076200757481 /* plugin_unittest.cc */, - 40C1F4572C79076200757481 /* pyi_generator.h */, - 40C1F4582C79076200757481 /* pyi_generator.cc */, - 40C1F4592C79076200757481 /* python_generator.h */, - ); - path = python; - sourceTree = ""; - }; - 40C1F46A2C79076200757481 /* ruby */ = { - isa = PBXGroup; - children = ( - 40C1F45B2C79076200757481 /* BUILD.bazel */, - 40C1F45C2C79076200757481 /* ruby_generated_code.proto */, - 40C1F45D2C79076200757481 /* ruby_generated_code_pb.rb */, - 40C1F45E2C79076200757481 /* ruby_generated_code_proto2.proto */, - 40C1F45F2C79076200757481 /* ruby_generated_code_proto2_import.proto */, - 40C1F4602C79076200757481 /* ruby_generated_code_proto2_pb.rb */, - 40C1F4612C79076200757481 /* ruby_generated_pkg_explicit.proto */, - 40C1F4622C79076200757481 /* ruby_generated_pkg_explicit_legacy.proto */, - 40C1F4632C79076200757481 /* ruby_generated_pkg_explicit_legacy_pb.rb */, - 40C1F4642C79076200757481 /* ruby_generated_pkg_explicit_pb.rb */, - 40C1F4652C79076200757481 /* ruby_generated_pkg_implicit.proto */, - 40C1F4662C79076200757481 /* ruby_generated_pkg_implicit_pb.rb */, - 40C1F4672C79076200757481 /* ruby_generator.h */, - 40C1F4682C79076200757481 /* ruby_generator.cc */, - 40C1F4692C79076200757481 /* ruby_generator_unittest.cc */, - ); - path = ruby; - sourceTree = ""; - }; - 40C1F4782C79076200757481 /* accessors */ = { - isa = PBXGroup; - children = ( - 40C1F46B2C79076200757481 /* accessor_case.h */, - 40C1F46C2C79076200757481 /* accessor_case.cc */, - 40C1F46D2C79076200757481 /* accessors.h */, - 40C1F46E2C79076200757481 /* accessors.cc */, - 40C1F46F2C79076200757481 /* generator.h */, - 40C1F4702C79076200757481 /* helpers.h */, - 40C1F4712C79076200757481 /* helpers.cc */, - 40C1F4722C79076200757481 /* map.cc */, - 40C1F4732C79076200757481 /* repeated_field.cc */, - 40C1F4742C79076200757481 /* singular_message.cc */, - 40C1F4752C79076200757481 /* singular_scalar.cc */, - 40C1F4762C79076200757481 /* singular_string.cc */, - 40C1F4772C79076200757481 /* unsupported_field.cc */, - ); - path = accessors; - sourceTree = ""; - }; - 40C1F4922C79076200757481 /* rust */ = { - isa = PBXGroup; - children = ( - 40C1F4782C79076200757481 /* accessors */, - 40C1F4792C79076200757481 /* BUILD.bazel */, - 40C1F47A2C79076200757481 /* context.h */, - 40C1F47B2C79076200757481 /* context.cc */, - 40C1F47C2C79076200757481 /* crate_mapping.h */, - 40C1F47D2C79076200757481 /* crate_mapping.cc */, - 40C1F47E2C79076200757481 /* crate_mapping_unittest.cc */, - 40C1F47F2C79076200757481 /* enum.h */, - 40C1F4802C79076200757481 /* enum.cc */, - 40C1F4812C79076200757481 /* enum_test.cc */, - 40C1F4822C79076200757481 /* generator.h */, - 40C1F4832C79076200757481 /* generator.cc */, - 40C1F4842C79076200757481 /* message.h */, - 40C1F4852C79076200757481 /* message.cc */, - 40C1F4862C79076200757481 /* naming.h */, - 40C1F4872C79076200757481 /* naming.cc */, - 40C1F4882C79076200757481 /* naming_test.cc */, - 40C1F4892C79076200757481 /* oneof.h */, - 40C1F48A2C79076200757481 /* oneof.cc */, - 40C1F48B2C79076200757481 /* relative_path.h */, - 40C1F48C2C79076200757481 /* relative_path.cc */, - 40C1F48D2C79076200757481 /* relative_path_test.cc */, - 40C1F48E2C79076200757481 /* rust_field_type.h */, - 40C1F48F2C79076200757481 /* rust_field_type.cc */, - 40C1F4902C79076200757481 /* rust_keywords.h */, - 40C1F4912C79076200757481 /* rust_keywords.cc */, - ); - path = rust; - sourceTree = ""; - }; - 40C1F4BD2C79076200757481 /* compiler */ = { - isa = PBXGroup; - children = ( - 40C1F3A02C79076200757481 /* cpp */, - 40C1F3C72C79076200757481 /* csharp */, - 40C1F4202C79076200757481 /* java */, - 40C1F4482C79076200757481 /* objectivec */, - 40C1F44F2C79076200757481 /* php */, - 40C1F45A2C79076200757481 /* python */, - 40C1F46A2C79076200757481 /* ruby */, - 40C1F4922C79076200757481 /* rust */, - 40C1F4932C79076200757481 /* annotation_test_util.h */, - 40C1F4942C79076200757481 /* annotation_test_util.cc */, - 40C1F4952C79076200757481 /* BUILD.bazel */, - 40C1F4962C79076200757481 /* code_generator.h */, - 40C1F4972C79076200757481 /* code_generator.cc */, - 40C1F4982C79076200757481 /* code_generator_unittest.cc */, - 40C1F4992C79076200757481 /* command_line_interface.h */, - 40C1F49A2C79076200757481 /* command_line_interface.cc */, - 40C1F49B2C79076200757481 /* command_line_interface_tester.h */, - 40C1F49C2C79076200757481 /* command_line_interface_tester.cc */, - 40C1F49D2C79076200757481 /* command_line_interface_unittest.cc */, - 40C1F49E2C79076200757481 /* fake_plugin.cc */, - 40C1F49F2C79076200757481 /* importer.h */, - 40C1F4A02C79076200757481 /* importer.cc */, - 40C1F4A12C79076200757481 /* importer_unittest.cc */, - 40C1F4A22C79076200757481 /* main.cc */, - 40C1F4A32C79076200757481 /* main_no_generators.cc */, - 40C1F4A42C79076200757481 /* mock_code_generator.h */, - 40C1F4A52C79076200757481 /* mock_code_generator.cc */, - 40C1F4A62C79076200757481 /* package_info.h */, - 40C1F4A72C79076200757481 /* parser.h */, - 40C1F4A82C79076200757481 /* parser.cc */, - 40C1F4A92C79076200757481 /* parser_unittest.cc */, - 40C1F4AA2C79076200757481 /* plugin.h */, - 40C1F4AB2C79076200757481 /* plugin.cc */, - 40C1F4AC2C79076200757481 /* plugin.proto */, - 40C1F4AD2C79076200757481 /* plugin.pb.h */, - 40C1F4AE2C79076200757481 /* plugin.pb.cc */, - 40C1F4AF2C79076200757481 /* retention.h */, - 40C1F4B02C79076200757481 /* retention.cc */, - 40C1F4B12C79076200757481 /* retention_unittest.cc */, - 40C1F4B22C79076200757481 /* scc.h */, - 40C1F4B32C79076200757481 /* subprocess.h */, - 40C1F4B42C79076200757481 /* subprocess.cc */, - 40C1F4B52C79076200757481 /* test_plugin.cc */, - 40C1F4B62C79076200757481 /* test_plugin_injection.bzl */, - 40C1F4B72C79076200757481 /* versions.h */, - 40C1F4B82C79076200757481 /* versions.cc */, - 40C1F4B92C79076200757481 /* versions_test.cc */, - 40C1F4BA2C79076200757481 /* zip_output_unittest.sh */, - 40C1F4BB2C79076200757481 /* zip_writer.h */, - 40C1F4BC2C79076200757481 /* zip_writer.cc */, - ); - path = compiler; - sourceTree = ""; - }; 40C1F4DD2C79076200757481 /* io */ = { isa = PBXGroup; children = ( @@ -6073,7 +5315,6 @@ isa = PBXGroup; children = ( 40C1F3602C79076200757481 /* bridge */, - 40C1F4BD2C79076200757481 /* compiler */, 40C1F4DD2C79076200757481 /* io */, 40C1F4F62C79076200757481 /* json */, 40C1F4FF2C79076200757481 /* stubs */, @@ -6107,7 +5348,6 @@ 40C1F54E2C79076200757481 /* arenaz_sampler.h */, 40C1F54F2C79076200757481 /* arenaz_sampler.cc */, 40C1F5502C79076200757481 /* arenaz_sampler_test.cc */, - 40C1F5512C79076200757481 /* BUILD.bazel */, 40C1F5522C79076200757481 /* cpp_edition_defaults.h */, 40C1F5532C79076200757481 /* cpp_features.proto */, 40C1F5542C79076200757481 /* cpp_features.pb.h */, @@ -6359,11 +5599,6 @@ isa = PBXGroup; children = ( 40C1F63E2C79076200757481 /* google */, - 40C1F6412C79076200757481 /* BUILD.bazel */, - 40C1F6422C79076200757481 /* file_lists.cmake */, - 40C1F6432C79076200757481 /* libprotobuf.map */, - 40C1F6442C79076200757481 /* libprotobuf-lite.map */, - 40C1F6452C79076200757481 /* libprotoc.map */, 40C1F6462C79076200757481 /* README.md */, ); path = src; @@ -8656,6 +7891,26 @@ name = Products; sourceTree = ""; }; + 40E8381C2CCC66ED0022B026 /* c */ = { + isa = PBXGroup; + children = ( + 40E838062CCC66ED0022B026 /* blake3.h */, + 40E838072CCC66ED0022B026 /* blake3.c */, + 40E838102CCC66ED0022B026 /* blake3_dispatch.c */, + 40E838112CCC66ED0022B026 /* blake3_impl.h */, + 40E838132CCC66ED0022B026 /* blake3_portable.c */, + ); + path = c; + sourceTree = ""; + }; + 40E8384B2CCC66ED0022B026 /* BLAKE3 */ = { + isa = PBXGroup; + children = ( + 40E8381C2CCC66ED0022B026 /* c */, + ); + path = BLAKE3; + sourceTree = ""; + }; 40F638CC2051EDC800A1CFBE /* examples */ = { isa = PBXGroup; children = ( @@ -8893,7 +8148,7 @@ E14144901EBDA4A10046F282 /* Xcode */ = { isa = PBXGroup; children = ( - 406383F32C76FD5300017979 /* Tritium.xctestplan */, + 406383F32C76FD5300017979 /* llbuild3.xctestplan */, 144AE2D727B9C5CE003BA576 /* llbuild.xctestplan */, E14144911EBDA4A10046F282 /* Configs */, ); @@ -8908,9 +8163,9 @@ E14144921EBDA4A10046F282 /* Common.xcconfig */, E14144931EBDA4A10046F282 /* Debug.xcconfig */, E14144941EBDA4A10046F282 /* Release.xcconfig */, - 403332B52CADC83700440C8C /* TritiumCommon.xcconfig */, - 403332B62CADC86300440C8C /* TritiumDebug.xcconfig */, - 403332B72CADC87100440C8C /* TritiumRelease.xcconfig */, + 403332B52CADC83700440C8C /* llbuild3Common.xcconfig */, + 403332B62CADC86300440C8C /* llbuild3Debug.xcconfig */, + 403332B72CADC87100440C8C /* llbuild3Release.xcconfig */, 40F638EC2053043D00A1CFBE /* Version.xcconfig */, ); path = Configs; @@ -8964,7 +8219,7 @@ 1484D1DA2094509E00D3830F /* LICENSE.txt */, 406383D42C76FB5100017979 /* Makefile */, E1A223FC19F990E60059043E /* README.md */, - 406CE2742C8FA9B30008A97B /* README.tritium.md */, + 4035F5CB2CE72F2A00337926 /* README.llbuild3.md */, 1484D1DB209450A600D3830F /* Vagrantfile */, E1A223F219F98F1C0059043E /* Products */, ); @@ -9000,9 +8255,9 @@ B52912C6232BF0AE00FD3389 /* llbuildAnalysisTests.xctest */, E111C158241B269D0086A92D /* llbuildTestSupport.framework */, 40D86702284FF2C30043271A /* libgmock.a */, - 4072B4E02C51B3A000B68221 /* libTritiumThirdParty.a */, - 4072B5D72C51BE5100B68221 /* Tritium.framework */, - 4072B5DE2C51BE5100B68221 /* TritiumTests.xctest */, + 4072B4E02C51B3A000B68221 /* libllbuild3ThirdParty.a */, + 4072B5D72C51BE5100B68221 /* llbuild3.framework */, + 4072B5DE2C51BE5100B68221 /* llbuild3Tests.xctest */, ); name = Products; sourceTree = ""; @@ -9015,7 +8270,7 @@ E1D191B71B472305000C4E95 /* llbuild-framework */, BC8DEF0420300AAF00E9EF0C /* llbuildSwift */, E1604CB21BB9E032001153A1 /* swift-build-tool */, - 4072B4B32C51993F00B68221 /* Tritium */, + 4072B4B32C51993F00B68221 /* llbuild3 */, 147018862097909B0079261E /* ui */, E1A2240019F991350059043E /* CMakeLists.txt */, ); @@ -9302,7 +8557,7 @@ E1A224B819F998D40059043E /* Ninja */, B546B39F22C65D2E007046C0 /* Swift */, E111C15A241B26D30086A92D /* TestSupport */, - 403B815F2C79047D00CD4F1E /* TritiumCoreTests */, + 403B815F2C79047D00CD4F1E /* llbuild3CoreTests */, E1A224B319F998D40059043E /* CMakeLists.txt */, ); path = unittests; @@ -9718,11 +8973,14 @@ isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( - 4072B5E52C51BE5100B68221 /* Tritium.h in Headers */, + 4072B5E52C51BE5100B68221 /* llbuild3.h in Headers */, 407F9F0F2C51D06800FED36C /* Errors.hpp in Headers */, 403552EF2C522BAF00D415BA /* Visibility.hpp in Headers */, 407F9F102C51D06800FED36C /* Result.hpp in Headers */, + 4035F55E2CDEB2F500337926 /* EngineInternal.pb.h in Headers */, 407F9F112C51D06800FED36C /* SwiftAdaptors.hpp in Headers */, + 40E837E22CCC5D4F0022B026 /* CAS.h in Headers */, + 40E837E82CCC5FFB0022B026 /* CAS.pb.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -9841,9 +9099,9 @@ /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ - 4072B4DF2C51B3A000B68221 /* TritiumThirdParty */ = { + 4072B4DF2C51B3A000B68221 /* llbuild3ThirdParty */ = { isa = PBXNativeTarget; - buildConfigurationList = 4072B4E12C51B3A100B68221 /* Build configuration list for PBXNativeTarget "TritiumThirdParty" */; + buildConfigurationList = 4072B4E12C51B3A100B68221 /* Build configuration list for PBXNativeTarget "llbuild3ThirdParty" */; buildPhases = ( 4072B4DC2C51B3A000B68221 /* Headers */, 4072B4DD2C51B3A000B68221 /* Sources */, @@ -9853,16 +9111,16 @@ ); dependencies = ( ); - name = TritiumThirdParty; + name = llbuild3ThirdParty; packageProductDependencies = ( ); productName = TritiumThirdParty; - productReference = 4072B4E02C51B3A000B68221 /* libTritiumThirdParty.a */; + productReference = 4072B4E02C51B3A000B68221 /* libllbuild3ThirdParty.a */; productType = "com.apple.product-type.library.static"; }; - 4072B5D62C51BE5100B68221 /* Tritium */ = { + 4072B5D62C51BE5100B68221 /* llbuild3 */ = { isa = PBXNativeTarget; - buildConfigurationList = 4072B5E72C51BE5100B68221 /* Build configuration list for PBXNativeTarget "Tritium" */; + buildConfigurationList = 4072B5E72C51BE5100B68221 /* Build configuration list for PBXNativeTarget "llbuild3" */; buildPhases = ( 4072B5D22C51BE5100B68221 /* Headers */, 4072B5D32C51BE5100B68221 /* Sources */, @@ -9873,17 +9131,17 @@ ); dependencies = ( ); - name = Tritium; + name = llbuild3; packageProductDependencies = ( 403552C52C52062C00D415BA /* SwiftProtobuf */, ); productName = Tritium; - productReference = 4072B5D72C51BE5100B68221 /* Tritium.framework */; + productReference = 4072B5D72C51BE5100B68221 /* llbuild3.framework */; productType = "com.apple.product-type.framework"; }; - 4072B5DD2C51BE5100B68221 /* TritiumTests */ = { + 4072B5DD2C51BE5100B68221 /* llbuild3Tests */ = { isa = PBXNativeTarget; - buildConfigurationList = 4072B5EA2C51BE5100B68221 /* Build configuration list for PBXNativeTarget "TritiumTests" */; + buildConfigurationList = 4072B5EA2C51BE5100B68221 /* Build configuration list for PBXNativeTarget "llbuild3Tests" */; buildPhases = ( 4072B5DA2C51BE5100B68221 /* Sources */, 4072B5DB2C51BE5100B68221 /* Frameworks */, @@ -9894,12 +9152,12 @@ dependencies = ( 4072B5E12C51BE5100B68221 /* PBXTargetDependency */, ); - name = TritiumTests; + name = llbuild3Tests; packageProductDependencies = ( 403552F02C522F9E00D415BA /* SwiftProtobuf */, ); productName = TritiumTests; - productReference = 4072B5DE2C51BE5100B68221 /* TritiumTests.xctest */; + productReference = 4072B5DE2C51BE5100B68221 /* llbuild3Tests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; 40B3C90020D3AEC9007C5847 /* CAPITests */ = { @@ -10632,9 +9890,9 @@ B52912BD232BF0AD00FD3389 /* Analysis */, B52912C5232BF0AE00FD3389 /* AnalysisTests */, 40D866FA284FF2C30043271A /* gmock */, - 4072B4DF2C51B3A000B68221 /* TritiumThirdParty */, - 4072B5D62C51BE5100B68221 /* Tritium */, - 4072B5DD2C51BE5100B68221 /* TritiumTests */, + 4072B4DF2C51B3A000B68221 /* llbuild3ThirdParty */, + 4072B5D62C51BE5100B68221 /* llbuild3 */, + 4072B5DD2C51BE5100B68221 /* llbuild3Tests */, ); }; /* End PBXProject section */ @@ -11381,6 +10639,9 @@ 40C10C082C790CC400757481 /* proto.cc in Sources */, 40C10C092C790CC400757481 /* vlog_config.cc in Sources */, 40C10C0A2C790CC400757481 /* die_if_null.cc in Sources */, + 40E8384C2CCC692B0022B026 /* blake3.c in Sources */, + 40E8384D2CCC692B0022B026 /* blake3_dispatch.c in Sources */, + 40E8384E2CCC692B0022B026 /* blake3_portable.c in Sources */, 40C10C0B2C790CC400757481 /* flags.cc in Sources */, 40C10C0C2C790CC400757481 /* globals.cc in Sources */, 40C10C0D2C790CC400757481 /* initialize.cc in Sources */, @@ -11495,22 +10756,27 @@ files = ( 403552E52C52069300D415BA /* Label.pb.swift in Sources */, 4072B5ED2C51BF1700B68221 /* Engine.cpp in Sources */, - 4072B5EE2C51BF1700B68221 /* CASObjectID.pb.swift in Sources */, 4072B5EF2C51BF1700B68221 /* Label.pb.cc in Sources */, + 40E837E02CCC562B0022B026 /* Label.swift in Sources */, 40E7C53C2C61CD8100FC0383 /* Types.swift in Sources */, + 4035F55D2CDEB2F500337926 /* EngineInternal.pb.cc in Sources */, 4072B5F02C51BF1700B68221 /* Artifact.pb.cc in Sources */, 4072B5F12C51BF1700B68221 /* Error.pb.cc in Sources */, 40E7C53A2C61CB0800FC0383 /* CoreTypes.swift in Sources */, 4072B5F22C51BF1700B68221 /* Artifact.pb.swift in Sources */, + 4035F55A2CDEABA100337926 /* EngineInternal.proto in Sources */, + 40E836B12CBDC6FA0022B026 /* ActionCache.swift in Sources */, 40E7C53E2C61CF6800FC0383 /* Engine.swift in Sources */, 4072B5F32C51BF1700B68221 /* ActionCache.pb.cc in Sources */, 4072B5F42C51BF1700B68221 /* Support.cpp in Sources */, + 40E837E62CCC5FFB0022B026 /* CAS.pb.cc in Sources */, + 40E837E72CCC5FFB0022B026 /* CAS.pb.swift in Sources */, 4072B5F52C51BF1700B68221 /* ActionCache.cpp in Sources */, + 40E837EA2CCC64430022B026 /* CAS.cpp in Sources */, 4072B5F62C51BF1700B68221 /* Error.pb.swift in Sources */, 4072B5F72C51BF1700B68221 /* ActionCache.pb.swift in Sources */, 4072B5F82C51BF1700B68221 /* Label.cpp in Sources */, 4072B5F92C51BF1700B68221 /* Rule.pb.cc in Sources */, - 4072B5FA2C51BF1700B68221 /* CASObjectID.pb.cc in Sources */, 4072B5FB2C51BF1700B68221 /* Rule.pb.swift in Sources */, 4072B5FC2C51BF1700B68221 /* SwiftAdaptors.cpp in Sources */, ); @@ -11862,7 +11128,7 @@ }; 4072B5E12C51BE5100B68221 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - target = 4072B5D62C51BE5100B68221 /* Tritium */; + target = 4072B5D62C51BE5100B68221 /* llbuild3 */; targetProxy = 4072B5E02C51BE5100B68221 /* PBXContainerItemProxy */; }; 40B3C90120D3AEC9007C5847 /* PBXTargetDependency */ = { @@ -12220,7 +11486,7 @@ /* Begin XCBuildConfiguration section */ 4072B4E22C51B3A100B68221 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 403332B62CADC86300440C8C /* TritiumDebug.xcconfig */; + baseConfigurationReference = 403332B62CADC86300440C8C /* llbuild3Debug.xcconfig */; buildSettings = { CLANG_ANALYZER_NONNULL = YES; CLANG_WARN_COMMA = NO; @@ -12233,6 +11499,9 @@ "$(OTHER_CFLAGS)", "-Wimplicit-fallthrough", "-Wno-deprecated-this-capture", + "-DBLAKE3_NO_AVX2", + "-DBLAKE3_NO_AVX512", + "-DBLAKE3_NO_SSE41", ); USER_HEADER_SEARCH_PATHS = ( "$(PROJECT_DIR)/include", @@ -12245,7 +11514,7 @@ }; 4072B4E32C51B3A100B68221 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 403332B72CADC87100440C8C /* TritiumRelease.xcconfig */; + baseConfigurationReference = 403332B72CADC87100440C8C /* llbuild3Release.xcconfig */; buildSettings = { CLANG_ANALYZER_NONNULL = YES; CLANG_WARN_COMMA = NO; @@ -12258,6 +11527,9 @@ "$(OTHER_CFLAGS)", "-Wimplicit-fallthrough", "-Wno-deprecated-this-capture", + "-DBLAKE3_NO_AVX2", + "-DBLAKE3_NO_AVX512", + "-DBLAKE3_NO_SSE41", ); USER_HEADER_SEARCH_PATHS = ( "$(PROJECT_DIR)/include", @@ -12270,7 +11542,7 @@ }; 4072B5E82C51BE5100B68221 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 403332B62CADC86300440C8C /* TritiumDebug.xcconfig */; + baseConfigurationReference = 403332B62CADC86300440C8C /* llbuild3Debug.xcconfig */; buildSettings = { CLANG_ANALYZER_NONNULL = YES; CODE_SIGN_IDENTITY = "$(LLBUILD_CODE_SIGN_IDENTITY)"; @@ -12296,13 +11568,14 @@ "$(PROJECT_DIR)/src", "$(PROJECT_DIR)/thirdparty/protobuf/src", "$(PROJECT_DIR)/thirdparty/protobuf/third_party/abseil-cpp/", + "$(PROJECT_DIR)/thirdparty/BLAKE3/c", ); }; name = Debug; }; 4072B5E92C51BE5100B68221 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 403332B72CADC87100440C8C /* TritiumRelease.xcconfig */; + baseConfigurationReference = 403332B72CADC87100440C8C /* llbuild3Release.xcconfig */; buildSettings = { CLANG_ANALYZER_NONNULL = YES; CODE_SIGN_IDENTITY = "$(LLBUILD_CODE_SIGN_IDENTITY)"; @@ -12328,13 +11601,14 @@ "$(PROJECT_DIR)/src", "$(PROJECT_DIR)/thirdparty/protobuf/src", "$(PROJECT_DIR)/thirdparty/protobuf/third_party/abseil-cpp/", + "$(PROJECT_DIR)/thirdparty/BLAKE3/c", ); }; name = Release; }; 4072B5EB2C51BE5100B68221 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 403332B62CADC86300440C8C /* TritiumDebug.xcconfig */; + baseConfigurationReference = 403332B62CADC86300440C8C /* llbuild3Debug.xcconfig */; buildSettings = { GENERATE_INFOPLIST_FILE = YES; PRODUCT_BUNDLE_IDENTIFIER = com.apple.sdp.llbuild.TritiumTests; @@ -12345,7 +11619,7 @@ }; 4072B5EC2C51BE5100B68221 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 403332B72CADC87100440C8C /* TritiumRelease.xcconfig */; + baseConfigurationReference = 403332B72CADC87100440C8C /* llbuild3Release.xcconfig */; buildSettings = { GENERATE_INFOPLIST_FILE = YES; PRODUCT_BUNDLE_IDENTIFIER = com.apple.sdp.llbuild.TritiumTests; @@ -13161,7 +12435,7 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 4072B4E12C51B3A100B68221 /* Build configuration list for PBXNativeTarget "TritiumThirdParty" */ = { + 4072B4E12C51B3A100B68221 /* Build configuration list for PBXNativeTarget "llbuild3ThirdParty" */ = { isa = XCConfigurationList; buildConfigurations = ( 4072B4E22C51B3A100B68221 /* Debug */, @@ -13170,7 +12444,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 4072B5E72C51BE5100B68221 /* Build configuration list for PBXNativeTarget "Tritium" */ = { + 4072B5E72C51BE5100B68221 /* Build configuration list for PBXNativeTarget "llbuild3" */ = { isa = XCConfigurationList; buildConfigurations = ( 4072B5E82C51BE5100B68221 /* Debug */, @@ -13179,7 +12453,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 4072B5EA2C51BE5100B68221 /* Build configuration list for PBXNativeTarget "TritiumTests" */ = { + 4072B5EA2C51BE5100B68221 /* Build configuration list for PBXNativeTarget "llbuild3Tests" */ = { isa = XCConfigurationList; buildConfigurations = ( 4072B5EB2C51BE5100B68221 /* Debug */, diff --git a/llbuild.xcodeproj/xcshareddata/xcschemes/Tritium.xcscheme b/llbuild.xcodeproj/xcshareddata/xcschemes/llbuild3.xcscheme similarity index 89% rename from llbuild.xcodeproj/xcshareddata/xcschemes/Tritium.xcscheme rename to llbuild.xcodeproj/xcshareddata/xcschemes/llbuild3.xcscheme index 26995d744..bb231264c 100644 --- a/llbuild.xcodeproj/xcshareddata/xcschemes/Tritium.xcscheme +++ b/llbuild.xcodeproj/xcshareddata/xcschemes/llbuild3.xcscheme @@ -16,8 +16,8 @@ @@ -30,8 +30,8 @@ @@ -44,7 +44,7 @@ shouldUseLaunchSchemeArgsEnv = "YES"> @@ -71,8 +71,8 @@ diff --git a/llbuild.xcodeproj/xcshareddata/xcschemes/TritiumTests.xcscheme b/llbuild.xcodeproj/xcshareddata/xcschemes/llbuild3Tests.xcscheme similarity index 95% rename from llbuild.xcodeproj/xcshareddata/xcschemes/TritiumTests.xcscheme rename to llbuild.xcodeproj/xcshareddata/xcschemes/llbuild3Tests.xcscheme index 0fdb797f5..7fbe50d7b 100644 --- a/llbuild.xcodeproj/xcshareddata/xcschemes/TritiumTests.xcscheme +++ b/llbuild.xcodeproj/xcshareddata/xcschemes/llbuild3Tests.xcscheme @@ -20,8 +20,8 @@ diff --git a/llbuild.xcodeproj/xcshareddata/xcschemes/TritiumThirdParty.xcscheme b/llbuild.xcodeproj/xcshareddata/xcschemes/llbuild3ThirdParty.xcscheme similarity index 91% rename from llbuild.xcodeproj/xcshareddata/xcschemes/TritiumThirdParty.xcscheme rename to llbuild.xcodeproj/xcshareddata/xcschemes/llbuild3ThirdParty.xcscheme index 9eb2c99a2..c60b2decd 100644 --- a/llbuild.xcodeproj/xcshareddata/xcschemes/TritiumThirdParty.xcscheme +++ b/llbuild.xcodeproj/xcshareddata/xcschemes/llbuild3ThirdParty.xcscheme @@ -16,8 +16,8 @@ @@ -52,8 +52,8 @@ diff --git a/products/Tritium/Tritium.h b/products/Tritium/Tritium.h deleted file mode 100644 index f7e909c71..000000000 --- a/products/Tritium/Tritium.h +++ /dev/null @@ -1,24 +0,0 @@ -//===- Tritium.h ------------------------------------------------*- C++ -*-===// -// -// This source file is part of the Swift.org open source project -// -// Copyright (c) 2024 Apple Inc. and the Swift project authors -// Licensed under Apache License v2.0 with Runtime Library Exception -// -// See http://swift.org/LICENSE.txt for license information -// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors -// -//===----------------------------------------------------------------------===// - -////! Project version number for Tritium. -//double TritiumVersionNumber; -// -////! Project version string for Tritium. -//const unsigned char TritiumVersionString[]; - -// In this header, you should import all the public headers of your framework using statements like #import - - -#import -#import -#import diff --git a/products/Tritium/Errors.hpp b/products/llbuild3/Errors.hpp similarity index 93% rename from products/Tritium/Errors.hpp rename to products/llbuild3/Errors.hpp index d090c3529..9d06eeace 100644 --- a/products/Tritium/Errors.hpp +++ b/products/llbuild3/Errors.hpp @@ -10,12 +10,12 @@ // //===----------------------------------------------------------------------===// -#ifndef TRITIUM_CORE_ERRORS_H -#define TRITIUM_CORE_ERRORS_H +#ifndef LLBUILD3_CORE_ERRORS_H +#define LLBUILD3_CORE_ERRORS_H #include -namespace tritium { +namespace llbuild3 { namespace core { enum EngineError: uint64_t { diff --git a/products/Tritium/Result.hpp b/products/llbuild3/Result.hpp similarity index 99% rename from products/Tritium/Result.hpp rename to products/llbuild3/Result.hpp index 3176ecf73..6f0a5e7a2 100644 --- a/products/Tritium/Result.hpp +++ b/products/llbuild3/Result.hpp @@ -32,12 +32,12 @@ #ifndef RESULT_RESULT_HPP #define RESULT_RESULT_HPP -// BEGIN: Tritium additions -#include -#define RESULT_NAMESPACE tritium +// BEGIN: llbuild3 additions +#include +#define RESULT_NAMESPACE llbuild3 #define RESULT_EXCEPTIONS_DISABLED #define RESULT_DISABLE_EXCEPTIONS -// END: Tritium additions +// END: llbuild3 additions #include // std::size_t #include // std::enable_if, std::is_constructible, etc @@ -303,7 +303,7 @@ inline namespace bitwizeshift { explicit in_place_error_t() = default; }; - TRITIUM_EXPORT constexpr auto in_place_error = in_place_error_t{}; + LLBUILD3_EXPORT constexpr auto in_place_error = in_place_error_t{}; //=========================================================================== // forward-declarations @@ -5998,8 +5998,8 @@ auto RESULT_NS_IMPL::swap(result& lhs, result& rhs) #undef RESULT_NODISCARD #undef RESULT_WARN_UNUSED -// BEGIN: Tritium additions +// BEGIN: llbuild3 additions #undef RESULT_NAMESPACE -// END: Tritium additions +// END: llbuild3 additions #endif /* RESULT_RESULT_HPP */ diff --git a/products/Tritium/SwiftAdaptors.hpp b/products/llbuild3/SwiftAdaptors.hpp similarity index 61% rename from products/Tritium/SwiftAdaptors.hpp rename to products/llbuild3/SwiftAdaptors.hpp index 997726e40..5d84e7161 100644 --- a/products/Tritium/SwiftAdaptors.hpp +++ b/products/llbuild3/SwiftAdaptors.hpp @@ -10,19 +10,19 @@ // //===----------------------------------------------------------------------===// -#ifndef TRITIUM_CORE_SWIFTADAPTORS_H -#define TRITIUM_CORE_SWIFTADAPTORS_H +#ifndef LLBUILD3_CORE_SWIFTADAPTORS_H +#define LLBUILD3_CORE_SWIFTADAPTORS_H #include #include #include #include -#include -#include +#include +#include -namespace tritium { +namespace llbuild3 { namespace core { class Build; @@ -31,6 +31,8 @@ struct EngineConfig; // Serialized Protobuf Objects typedef std::string ArtifactPB; +typedef std::string CacheKeyPB; +typedef std::string CacheValuePB; typedef std::string ErrorPB; typedef std::string LabelPB; typedef std::string SignaturePB; @@ -66,17 +68,18 @@ class ExtTaskInterface { public: ExtTaskInterface(void* impl, uint64_t ctx) : impl(impl), ctx(ctx) { } - TRITIUM_EXPORT ErrorPB registerRuleProvider(const ExtRuleProvider provider); + LLBUILD3_EXPORT ErrorPB registerRuleProvider(const ExtRuleProvider provider); - TRITIUM_EXPORT result requestArtifact(const LabelPB label); - TRITIUM_EXPORT result requestRule(const LabelPB label); - TRITIUM_EXPORT result requestAction(); + LLBUILD3_EXPORT result requestArtifact(const LabelPB label); + LLBUILD3_EXPORT result requestRule(const LabelPB label); + LLBUILD3_EXPORT result requestAction(); }; struct ExtTask { void* ctx; LabelPB name; + SignaturePB signature; bool isInit = false; @@ -106,14 +109,33 @@ class BuildRef { public: BuildRef(std::shared_ptr build) : build(build) { } - TRITIUM_EXPORT void cancel(); - TRITIUM_EXPORT void addCompletionHandler(void* ctx, void (*handler)(void*, result*)); + LLBUILD3_EXPORT void cancel(); + LLBUILD3_EXPORT void addCompletionHandler(void* ctx, void (*handler)(void*, result*)); }; +class CASDatabase; +typedef std::shared_ptr CASDatabaseRef; +LLBUILD3_EXPORT CASDatabaseRef makeInMemoryCASDatabase(); + +struct ExtActionCache { + void* ctx; + + // FIXME: cleanup context + + void (*getFn)(void* ctx, CacheKeyPB key, std::function); + void (*updateFn)(void*, CacheKeyPB key, CacheValuePB value); +}; + +class ActionCache; +typedef std::shared_ptr ActionCacheRef; +LLBUILD3_EXPORT ActionCacheRef makeExtActionCache(ExtActionCache extCache); +LLBUILD3_EXPORT ActionCacheRef makeInMemoryActionCache(); + + struct ExtEngineConfig { std::optional initRule; - TRITIUM_EXPORT inline void setInitRule(LabelPB ir) { initRule = ir; } + LLBUILD3_EXPORT inline void setInitRule(LabelPB ir) { initRule = ir; } }; class EngineRef { @@ -121,10 +143,10 @@ class EngineRef { public: EngineRef(std::shared_ptr engine) : engine(engine) { } - TRITIUM_EXPORT BuildRef build(const LabelPB artifact); + LLBUILD3_EXPORT BuildRef build(const LabelPB artifact); }; -TRITIUM_EXPORT EngineRef makeEngine(ExtEngineConfig config, /* action cache, ... */ const ExtRuleProvider provider); +LLBUILD3_EXPORT EngineRef makeEngine(ExtEngineConfig config, CASDatabaseRef casdb, ActionCacheRef cache, const ExtRuleProvider provider); } } diff --git a/products/Tritium/Visibility.hpp b/products/llbuild3/Visibility.hpp similarity index 76% rename from products/Tritium/Visibility.hpp rename to products/llbuild3/Visibility.hpp index 250371c34..5bab93b06 100644 --- a/products/Tritium/Visibility.hpp +++ b/products/llbuild3/Visibility.hpp @@ -10,17 +10,17 @@ // //===----------------------------------------------------------------------===// -#ifndef TRITIUM_VISIBILITY_H -#define TRITIUM_VISIBILITY_H +#ifndef LLBUILD3_VISIBILITY_H +#define LLBUILD3_VISIBILITY_H #if defined(__ELF__) || (defined(__APPLE__) && defined(__MACH__)) -#define TRITIUM_EXPORT __attribute__((__visibility__("default"))) +#define LLBUILD3_EXPORT __attribute__((__visibility__("default"))) #else // asume PE/COFF #if defined(_WINDLL) -#define TRITIUM_EXPORT __declspec(dllexport) +#define LLBUILD3_EXPORT __declspec(dllexport) #else -#define TRITIUM_EXPORT +#define LLBUILD3_EXPORT #endif #endif diff --git a/src/tritium/core/ActionCache.cpp b/products/llbuild3/llbuild3.h similarity index 58% rename from src/tritium/core/ActionCache.cpp rename to products/llbuild3/llbuild3.h index efc466a28..b40f056bf 100644 --- a/src/tritium/core/ActionCache.cpp +++ b/products/llbuild3/llbuild3.h @@ -1,4 +1,4 @@ -//===-- ActionCache.cpp ---------------------------------------------------===// +//===- llbuild3.h -----------------------------------------------*- C++ -*-===// // // This source file is part of the Swift.org open source project // @@ -10,9 +10,9 @@ // //===----------------------------------------------------------------------===// -#include "tritium/core/ActionCache.h" +// In this header, you should import all the public headers of your framework using statements like #import -using namespace tritium::core; -ActionCache::~ActionCache() { } -Hasher::~Hasher() { } +#import +#import +#import diff --git a/src/tritium/Error.pb.cc b/src/llbuild3/Error.pb.cc similarity index 79% rename from src/tritium/Error.pb.cc rename to src/llbuild3/Error.pb.cc index db1d48c16..750150d97 100644 --- a/src/tritium/Error.pb.cc +++ b/src/llbuild3/Error.pb.cc @@ -1,9 +1,9 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: tritium/Error.proto +// source: llbuild3/Error.proto // Protobuf C++ Version: 5.27.2 -#include "tritium/Error.pb.h" +#include "llbuild3/Error.pb.h" #include #include @@ -23,7 +23,7 @@ PROTOBUF_PRAGMA_INIT_SEG namespace _pb = ::google::protobuf; namespace _pbi = ::google::protobuf::internal; namespace _fl = ::google::protobuf::internal::field_layout; -namespace tritium { +namespace llbuild3 { inline constexpr Error::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept @@ -33,7 +33,7 @@ inline constexpr Error::Impl_::Impl_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), code_{::uint64_t{0u}}, - type_{static_cast< ::tritium::ErrorType >(0)} {} + type_{static_cast< ::llbuild3::ErrorType >(0)} {} template PROTOBUF_CONSTEXPR Error::Error(::_pbi::ConstantInitialized) @@ -48,25 +48,25 @@ struct ErrorDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ErrorDefaultTypeInternal _Error_default_instance_; -} // namespace tritium -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_tritium_2fError_2eproto[1]; +} // namespace llbuild3 +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_llbuild3_2fError_2eproto[1]; static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_tritium_2fError_2eproto = nullptr; + file_level_service_descriptors_llbuild3_2fError_2eproto = nullptr; const ::uint32_t - TableStruct_tritium_2fError_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + TableStruct_llbuild3_2fError_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::tritium::Error, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tritium::Error, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::llbuild3::Error, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::llbuild3::Error, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ ~0u, // no _split_ ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tritium::Error, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::tritium::Error, _impl_.code_), - PROTOBUF_FIELD_OFFSET(::tritium::Error, _impl_.description_), - PROTOBUF_FIELD_OFFSET(::tritium::Error, _impl_.context_), + PROTOBUF_FIELD_OFFSET(::llbuild3::Error, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::llbuild3::Error, _impl_.code_), + PROTOBUF_FIELD_OFFSET(::llbuild3::Error, _impl_.description_), + PROTOBUF_FIELD_OFFSET(::llbuild3::Error, _impl_.context_), ~0u, 1, 0, @@ -75,46 +75,47 @@ const ::uint32_t static const ::_pbi::MigrationSchema schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, 12, -1, sizeof(::tritium::Error)}, + {0, 12, -1, sizeof(::llbuild3::Error)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::tritium::_Error_default_instance_._instance, + &::llbuild3::_Error_default_instance_._instance, }; -const char descriptor_table_protodef_tritium_2fError_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( +const char descriptor_table_protodef_llbuild3_2fError_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( protodesc_cold) = { - "\n\023tritium/Error.proto\022\007tritium\032\031google/p" - "rotobuf/any.proto\"\226\001\n\005Error\022 \n\004type\030\001 \001(" - "\0162\022.tritium.ErrorType\022\021\n\004code\030\002 \001(\004H\000\210\001\001" - "\022\030\n\013description\030\003 \001(\tH\001\210\001\001\022%\n\007context\030\004 " - "\003(\0132\024.google.protobuf.AnyB\007\n\005_codeB\016\n\014_d" - "escription*<\n\tErrorType\022\n\n\006ENGINE\020\000\022\t\n\005C" - "ACHE\020\001\022\014\n\010EXECUTOR\020\002\022\n\n\006CLIENT\020\003b\006proto3" + "\n\024llbuild3/Error.proto\022\010llbuild3\032\031google" + "/protobuf/any.proto\"\227\001\n\005Error\022!\n\004type\030\001 " + "\001(\0162\023.llbuild3.ErrorType\022\021\n\004code\030\002 \001(\004H\000" + "\210\001\001\022\030\n\013description\030\003 \001(\tH\001\210\001\001\022%\n\007context" + "\030\004 \003(\0132\024.google.protobuf.AnyB\007\n\005_codeB\016\n" + "\014_description*<\n\tErrorType\022\n\n\006ENGINE\020\000\022\t" + "\n\005CACHE\020\001\022\014\n\010EXECUTOR\020\002\022\n\n\006CLIENT\020\003b\006pro" + "to3" }; -static const ::_pbi::DescriptorTable* const descriptor_table_tritium_2fError_2eproto_deps[1] = +static const ::_pbi::DescriptorTable* const descriptor_table_llbuild3_2fError_2eproto_deps[1] = { &::descriptor_table_google_2fprotobuf_2fany_2eproto, }; -static ::absl::once_flag descriptor_table_tritium_2fError_2eproto_once; -PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_tritium_2fError_2eproto = { +static ::absl::once_flag descriptor_table_llbuild3_2fError_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_llbuild3_2fError_2eproto = { false, false, - 280, - descriptor_table_protodef_tritium_2fError_2eproto, - "tritium/Error.proto", - &descriptor_table_tritium_2fError_2eproto_once, - descriptor_table_tritium_2fError_2eproto_deps, + 283, + descriptor_table_protodef_llbuild3_2fError_2eproto, + "llbuild3/Error.proto", + &descriptor_table_llbuild3_2fError_2eproto_once, + descriptor_table_llbuild3_2fError_2eproto_deps, 1, 1, schemas, file_default_instances, - TableStruct_tritium_2fError_2eproto::offsets, - file_level_enum_descriptors_tritium_2fError_2eproto, - file_level_service_descriptors_tritium_2fError_2eproto, + TableStruct_llbuild3_2fError_2eproto::offsets, + file_level_enum_descriptors_llbuild3_2fError_2eproto, + file_level_service_descriptors_llbuild3_2fError_2eproto, }; -namespace tritium { +namespace llbuild3 { const ::google::protobuf::EnumDescriptor* ErrorType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_tritium_2fError_2eproto); - return file_level_enum_descriptors_tritium_2fError_2eproto[0]; + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_llbuild3_2fError_2eproto); + return file_level_enum_descriptors_llbuild3_2fError_2eproto[0]; } PROTOBUF_CONSTINIT const uint32_t ErrorType_internal_data_[] = { 262144u, 0u, }; @@ -138,11 +139,11 @@ void Error::clear_context() { Error::Error(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tritium.Error) + // @@protoc_insertion_point(arena_constructor:llbuild3.Error) } inline PROTOBUF_NDEBUG_INLINE Error::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::tritium::Error& from_msg) + const Impl_& from, const ::llbuild3::Error& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, context_{visibility, arena, from.context_}, @@ -165,7 +166,7 @@ Error::Error( offsetof(Impl_, code_) + sizeof(Impl_::type_)); - // @@protoc_insertion_point(copy_constructor:tritium.Error) + // @@protoc_insertion_point(copy_constructor:llbuild3.Error) } inline PROTOBUF_NDEBUG_INLINE Error::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, @@ -184,7 +185,7 @@ inline void Error::SharedCtor(::_pb::Arena* arena) { sizeof(Impl_::type_)); } Error::~Error() { - // @@protoc_insertion_point(destructor:tritium.Error) + // @@protoc_insertion_point(destructor:llbuild3.Error) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } @@ -207,7 +208,7 @@ Error::GetClassData() const { }, &Error::MergeImpl, &Error::kDescriptorMethods, - &descriptor_table_tritium_2fError_2eproto, + &descriptor_table_llbuild3_2fError_2eproto, nullptr, // tracker }; ::google::protobuf::internal::PrefetchToLocalCache(&_data_); @@ -215,7 +216,7 @@ Error::GetClassData() const { return _data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 33, 2> Error::_table_ = { +const ::_pbi::TcParseTable<2, 4, 1, 34, 2> Error::_table_ = { { PROTOBUF_FIELD_OFFSET(Error, _impl_._has_bits_), 0, // no _extensions_ @@ -230,13 +231,13 @@ const ::_pbi::TcParseTable<2, 4, 1, 33, 2> Error::_table_ = { nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tritium::Error>(), // to_prefetch + ::_pbi::TcParser::GetTable<::llbuild3::Error>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // repeated .google.protobuf.Any context = 4; {::_pbi::TcParser::FastMtR1, {34, 63, 0, PROTOBUF_FIELD_OFFSET(Error, _impl_.context_)}}, - // .tritium.ErrorType type = 1; + // .llbuild3.ErrorType type = 1; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Error, _impl_.type_), 63>(), {8, 63, 0, PROTOBUF_FIELD_OFFSET(Error, _impl_.type_)}}, // optional uint64 code = 2; @@ -248,7 +249,7 @@ const ::_pbi::TcParseTable<2, 4, 1, 33, 2> Error::_table_ = { }}, {{ 65535, 65535 }}, {{ - // .tritium.ErrorType type = 1; + // .llbuild3.ErrorType type = 1; {PROTOBUF_FIELD_OFFSET(Error, _impl_.type_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, // optional uint64 code = 2; @@ -263,14 +264,14 @@ const ::_pbi::TcParseTable<2, 4, 1, 33, 2> Error::_table_ = { }}, {{ {::_pbi::TcParser::GetTable<::google::protobuf::Any>()}, }}, {{ - "\15\0\0\13\0\0\0\0" - "tritium.Error" + "\16\0\0\13\0\0\0\0" + "llbuild3.Error" "description" }}, }; PROTOBUF_NOINLINE void Error::Clear() { -// @@protoc_insertion_point(message_clear_start:tritium.Error) +// @@protoc_insertion_point(message_clear_start:llbuild3.Error) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused @@ -290,11 +291,11 @@ PROTOBUF_NOINLINE void Error::Clear() { ::uint8_t* Error::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tritium.Error) + // @@protoc_insertion_point(serialize_to_array_start:llbuild3.Error) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - // .tritium.ErrorType type = 1; + // .llbuild3.ErrorType type = 1; if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( @@ -313,7 +314,7 @@ ::uint8_t* Error::_InternalSerialize( if (cached_has_bits & 0x00000001u) { const std::string& _s = this->_internal_description(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tritium.Error.description"); + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "llbuild3.Error.description"); target = stream->WriteStringMaybeAliased(3, _s, target); } @@ -333,12 +334,12 @@ ::uint8_t* Error::_InternalSerialize( ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:tritium.Error) + // @@protoc_insertion_point(serialize_to_array_end:llbuild3.Error) return target; } ::size_t Error::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tritium.Error) +// @@protoc_insertion_point(message_byte_size_start:llbuild3.Error) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; @@ -366,7 +367,7 @@ ::size_t Error::ByteSizeLong() const { } } - // .tritium.ErrorType type = 1; + // .llbuild3.ErrorType type = 1; if (this->_internal_type() != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); @@ -379,7 +380,7 @@ ::size_t Error::ByteSizeLong() const { void Error::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); - // @@protoc_insertion_point(class_specific_merge_from_start:tritium.Error) + // @@protoc_insertion_point(class_specific_merge_from_start:llbuild3.Error) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -403,7 +404,7 @@ void Error::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::p } void Error::CopyFrom(const Error& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tritium.Error) +// @@protoc_insertion_point(class_specific_copy_from_start:llbuild3.Error) if (&from == this) return; Clear(); MergeFrom(from); @@ -430,7 +431,7 @@ ::google::protobuf::Metadata Error::GetMetadata() const { return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // @@protoc_insertion_point(namespace_scope) -} // namespace tritium +} // namespace llbuild3 namespace google { namespace protobuf { } // namespace protobuf @@ -438,6 +439,6 @@ namespace protobuf { // @@protoc_insertion_point(global_scope) PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type _static_init2_ PROTOBUF_UNUSED = - (::_pbi::AddDescriptors(&descriptor_table_tritium_2fError_2eproto), + (::_pbi::AddDescriptors(&descriptor_table_llbuild3_2fError_2eproto), ::std::false_type{}); #include "google/protobuf/port_undef.inc" diff --git a/src/tritium/Error.pb.h b/src/llbuild3/Error.pb.h similarity index 86% rename from src/tritium/Error.pb.h rename to src/llbuild3/Error.pb.h index e9df268ef..29d9dcde5 100644 --- a/src/tritium/Error.pb.h +++ b/src/llbuild3/Error.pb.h @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: tritium/Error.proto +// source: llbuild3/Error.proto // Protobuf C++ Version: 5.27.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_tritium_2fError_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_tritium_2fError_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_llbuild3_2fError_2eproto_2epb_2eh +#define GOOGLE_PROTOBUF_INCLUDED_llbuild3_2fError_2eproto_2epb_2eh #include #include @@ -35,7 +35,7 @@ // Must be included last. #include "google/protobuf/port_def.inc" -#define PROTOBUF_INTERNAL_EXPORT_tritium_2fError_2eproto +#define PROTOBUF_INTERNAL_EXPORT_llbuild3_2fError_2eproto namespace google { namespace protobuf { @@ -46,22 +46,22 @@ class AnyMetadata; } // namespace google // Internal implementation detail -- do not use these members. -struct TableStruct_tritium_2fError_2eproto { +struct TableStruct_llbuild3_2fError_2eproto { static const ::uint32_t offsets[]; }; extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_tritium_2fError_2eproto; -namespace tritium { + descriptor_table_llbuild3_2fError_2eproto; +namespace llbuild3 { class Error; struct ErrorDefaultTypeInternal; extern ErrorDefaultTypeInternal _Error_default_instance_; -} // namespace tritium +} // namespace llbuild3 namespace google { namespace protobuf { } // namespace protobuf } // namespace google -namespace tritium { +namespace llbuild3 { enum ErrorType : int { ENGINE = 0, CACHE = 1, @@ -104,7 +104,7 @@ inline bool ErrorType_Parse(absl::string_view name, ErrorType* value) { // ------------------------------------------------------------------- class Error final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tritium.Error) */ { +/* @@protoc_insertion_point(class_definition:llbuild3.Error) */ { public: inline Error() : Error(nullptr) {} ~Error() override; @@ -210,7 +210,7 @@ class Error final : public ::google::protobuf::Message void InternalSwap(Error* other); private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tritium.Error"; } + static ::absl::string_view FullMessageName() { return "llbuild3.Error"; } protected: explicit Error(::google::protobuf::Arena* arena); @@ -277,23 +277,23 @@ class Error final : public ::google::protobuf::Message void _internal_set_code(::uint64_t value); public: - // .tritium.ErrorType type = 1; + // .llbuild3.ErrorType type = 1; void clear_type() ; - ::tritium::ErrorType type() const; - void set_type(::tritium::ErrorType value); + ::llbuild3::ErrorType type() const; + void set_type(::llbuild3::ErrorType value); private: - ::tritium::ErrorType _internal_type() const; - void _internal_set_type(::tritium::ErrorType value); + ::llbuild3::ErrorType _internal_type() const; + void _internal_set_type(::llbuild3::ErrorType value); public: - // @@protoc_insertion_point(class_scope:tritium.Error) + // @@protoc_insertion_point(class_scope:llbuild3.Error) private: class _Internal; friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 4, 1, - 33, 2> + 34, 2> _table_; static constexpr const void* _raw_default_instance_ = @@ -322,7 +322,7 @@ class Error final : public ::google::protobuf::Message PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; - friend struct ::TableStruct_tritium_2fError_2eproto; + friend struct ::TableStruct_llbuild3_2fError_2eproto; }; // =================================================================== @@ -341,24 +341,24 @@ class Error final : public ::google::protobuf::Message // Error -// .tritium.ErrorType type = 1; +// .llbuild3.ErrorType type = 1; inline void Error::clear_type() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_ = 0; } -inline ::tritium::ErrorType Error::type() const { - // @@protoc_insertion_point(field_get:tritium.Error.type) +inline ::llbuild3::ErrorType Error::type() const { + // @@protoc_insertion_point(field_get:llbuild3.Error.type) return _internal_type(); } -inline void Error::set_type(::tritium::ErrorType value) { +inline void Error::set_type(::llbuild3::ErrorType value) { _internal_set_type(value); - // @@protoc_insertion_point(field_set:tritium.Error.type) + // @@protoc_insertion_point(field_set:llbuild3.Error.type) } -inline ::tritium::ErrorType Error::_internal_type() const { +inline ::llbuild3::ErrorType Error::_internal_type() const { ::google::protobuf::internal::TSanRead(&_impl_); - return static_cast<::tritium::ErrorType>(_impl_.type_); + return static_cast<::llbuild3::ErrorType>(_impl_.type_); } -inline void Error::_internal_set_type(::tritium::ErrorType value) { +inline void Error::_internal_set_type(::llbuild3::ErrorType value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_ = value; } @@ -374,13 +374,13 @@ inline void Error::clear_code() { _impl_._has_bits_[0] &= ~0x00000002u; } inline ::uint64_t Error::code() const { - // @@protoc_insertion_point(field_get:tritium.Error.code) + // @@protoc_insertion_point(field_get:llbuild3.Error.code) return _internal_code(); } inline void Error::set_code(::uint64_t value) { _internal_set_code(value); _impl_._has_bits_[0] |= 0x00000002u; - // @@protoc_insertion_point(field_set:tritium.Error.code) + // @@protoc_insertion_point(field_set:llbuild3.Error.code) } inline ::uint64_t Error::_internal_code() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -403,7 +403,7 @@ inline void Error::clear_description() { } inline const std::string& Error::description() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tritium.Error.description) + // @@protoc_insertion_point(field_get:llbuild3.Error.description) return _internal_description(); } template @@ -412,11 +412,11 @@ inline PROTOBUF_ALWAYS_INLINE void Error::set_description(Arg_&& arg, ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; _impl_.description_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tritium.Error.description) + // @@protoc_insertion_point(field_set:llbuild3.Error.description) } inline std::string* Error::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_description(); - // @@protoc_insertion_point(field_mutable:tritium.Error.description) + // @@protoc_insertion_point(field_mutable:llbuild3.Error.description) return _s; } inline const std::string& Error::_internal_description() const { @@ -435,7 +435,7 @@ inline std::string* Error::_internal_mutable_description() { } inline std::string* Error::release_description() { ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:tritium.Error.description) + // @@protoc_insertion_point(field_release:llbuild3.Error.description) if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } @@ -459,7 +459,7 @@ inline void Error::set_allocated_description(std::string* value) { _impl_.description_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tritium.Error.description) + // @@protoc_insertion_point(field_set_allocated:llbuild3.Error.description) } // repeated .google.protobuf.Any context = 4; @@ -471,29 +471,29 @@ inline int Error::context_size() const { } inline ::google::protobuf::Any* Error::mutable_context(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:tritium.Error.context) + // @@protoc_insertion_point(field_mutable:llbuild3.Error.context) return _internal_mutable_context()->Mutable(index); } inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>* Error::mutable_context() ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:tritium.Error.context) + // @@protoc_insertion_point(field_mutable_list:llbuild3.Error.context) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_context(); } inline const ::google::protobuf::Any& Error::context(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tritium.Error.context) + // @@protoc_insertion_point(field_get:llbuild3.Error.context) return _internal_context().Get(index); } inline ::google::protobuf::Any* Error::add_context() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); ::google::protobuf::Any* _add = _internal_mutable_context()->Add(); - // @@protoc_insertion_point(field_add:tritium.Error.context) + // @@protoc_insertion_point(field_add:llbuild3.Error.context) return _add; } inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>& Error::context() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:tritium.Error.context) + // @@protoc_insertion_point(field_list:llbuild3.Error.context) return _internal_context(); } inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>& @@ -512,17 +512,17 @@ Error::_internal_mutable_context() { #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) -} // namespace tritium +} // namespace llbuild3 namespace google { namespace protobuf { template <> -struct is_proto_enum<::tritium::ErrorType> : std::true_type {}; +struct is_proto_enum<::llbuild3::ErrorType> : std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor<::tritium::ErrorType>() { - return ::tritium::ErrorType_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor<::llbuild3::ErrorType>() { + return ::llbuild3::ErrorType_descriptor(); } } // namespace protobuf @@ -532,4 +532,4 @@ inline const EnumDescriptor* GetEnumDescriptor<::tritium::ErrorType>() { #include "google/protobuf/port_undef.inc" -#endif // GOOGLE_PROTOBUF_INCLUDED_tritium_2fError_2eproto_2epb_2eh +#endif // GOOGLE_PROTOBUF_INCLUDED_llbuild3_2fError_2eproto_2epb_2eh diff --git a/src/tritium/Error.pb.swift b/src/llbuild3/Error.pb.swift similarity index 90% rename from src/tritium/Error.pb.swift rename to src/llbuild3/Error.pb.swift index 110e7d0b1..849eedae1 100644 --- a/src/tritium/Error.pb.swift +++ b/src/llbuild3/Error.pb.swift @@ -2,7 +2,7 @@ // swift-format-ignore-file // // Generated by the Swift generator plugin for the protocol buffer compiler. -// Source: tritium/Error.proto +// Source: llbuild3/Error.proto // // For information on using the generated types, please see the documentation: // https://github.com/apple/swift-protobuf/ @@ -20,7 +20,7 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP typealias Version = _2 } -public enum Tritium_ErrorType: SwiftProtobuf.Enum, Swift.CaseIterable { +public enum Llbuild3_ErrorType: SwiftProtobuf.Enum, Swift.CaseIterable { public typealias RawValue = Int case engine // = 0 case cache // = 1 @@ -53,7 +53,7 @@ public enum Tritium_ErrorType: SwiftProtobuf.Enum, Swift.CaseIterable { } // The compiler won't synthesize support with the UNRECOGNIZED case. - public static let allCases: [Tritium_ErrorType] = [ + public static let allCases: [Llbuild3_ErrorType] = [ .engine, .cache, .executor, @@ -62,12 +62,12 @@ public enum Tritium_ErrorType: SwiftProtobuf.Enum, Swift.CaseIterable { } -public struct Tritium_Error: Sendable { +public struct Llbuild3_Error: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var type: Tritium_ErrorType = .engine + public var type: Llbuild3_ErrorType = .engine public var code: UInt64 { get {return _code ?? 0} @@ -99,9 +99,9 @@ public struct Tritium_Error: Sendable { // MARK: - Code below here is support for the SwiftProtobuf runtime. -fileprivate let _protobuf_package = "tritium" +fileprivate let _protobuf_package = "llbuild3" -extension Tritium_ErrorType: SwiftProtobuf._ProtoNameProviding { +extension Llbuild3_ErrorType: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 0: .same(proto: "ENGINE"), 1: .same(proto: "CACHE"), @@ -110,7 +110,7 @@ extension Tritium_ErrorType: SwiftProtobuf._ProtoNameProviding { ] } -extension Tritium_Error: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { +extension Llbuild3_Error: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".Error" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "type"), @@ -154,7 +154,7 @@ extension Tritium_Error: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementa try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Tritium_Error, rhs: Tritium_Error) -> Bool { + public static func ==(lhs: Llbuild3_Error, rhs: Llbuild3_Error) -> Bool { if lhs.type != rhs.type {return false} if lhs._code != rhs._code {return false} if lhs._description_p != rhs._description_p {return false} diff --git a/src/tritium/Error.proto b/src/llbuild3/Error.proto similarity index 94% rename from src/tritium/Error.proto rename to src/llbuild3/Error.proto index d6312e19a..e24dade5e 100644 --- a/src/tritium/Error.proto +++ b/src/llbuild3/Error.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package tritium; +package llbuild3; import "google/protobuf/any.proto"; diff --git a/src/tritium/Types.swift b/src/llbuild3/Types.swift similarity index 86% rename from src/tritium/Types.swift rename to src/llbuild3/Types.swift index a96de2248..43df0242b 100644 --- a/src/tritium/Types.swift +++ b/src/llbuild3/Types.swift @@ -12,8 +12,8 @@ // Error.proto -public typealias TErrorType = Tritium_ErrorType -public typealias TError = Tritium_Error +public typealias TErrorType = Llbuild3_ErrorType +public typealias TError = Llbuild3_Error extension TError: Swift.Error { diff --git a/src/llbuild3/core/ActionCache.cpp b/src/llbuild3/core/ActionCache.cpp new file mode 100644 index 000000000..c48fd6bbc --- /dev/null +++ b/src/llbuild3/core/ActionCache.cpp @@ -0,0 +1,38 @@ +//===-- ActionCache.cpp ---------------------------------------------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2024 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See http://swift.org/LICENSE.txt for license information +// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// + +#include "llbuild3/core/ActionCache.h" + +using namespace llbuild3::core; + +ActionCache::~ActionCache() { } + +InMemoryActionCache::~InMemoryActionCache() { } + +void InMemoryActionCache::get(const CacheKey& key, std::function)> resultHandler) { + CacheValue value; + + { + std::lock_guard lock(cacheMutex); + if (auto entry = cache.find(key.content().bytes()); entry != cache.end()) { + value = entry->second; + } + } + + resultHandler(value); +} + +void InMemoryActionCache::update(const CacheKey& key, const CacheValue& value) { + std::lock_guard lock(cacheMutex); + cache.insert_or_assign(key.content().bytes(), value); +} + diff --git a/src/llbuild3/core/ActionCache.h b/src/llbuild3/core/ActionCache.h new file mode 100644 index 000000000..77bf84508 --- /dev/null +++ b/src/llbuild3/core/ActionCache.h @@ -0,0 +1,58 @@ +//===- ActionCache.h --------------------------------------------*- C++ -*-===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2024 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See http://swift.org/LICENSE.txt for license information +// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// + +#ifndef LLBUILD3_CORE_ACTIONCACHE_H +#define LLBUILD3_CORE_ACTIONCACHE_H + +#include + +#include "llbuild3/Error.pb.h" +#include "llbuild3/core/ActionCache.pb.h" +#include "llbuild3/core/CAS.pb.h" + +#include +#include +#include +#include +#include +#include + +namespace llbuild3 { +namespace core { + +class ActionCache { +public: + virtual ~ActionCache(); + + virtual void get(const CacheKey& key, std::function)> resultHandler) = 0; + + virtual void update(const CacheKey& key, const CacheValue& value) = 0; +}; + +class InMemoryActionCache: public ActionCache { +private: + std::unordered_map cache; + std::mutex cacheMutex; + +public: + InMemoryActionCache() { } + ~InMemoryActionCache(); + + void get(const CacheKey& key, std::function)> resultHandler); + + void update(const CacheKey& key, const CacheValue& value); +}; + +} +} + +#endif diff --git a/src/llbuild3/core/ActionCache.pb.cc b/src/llbuild3/core/ActionCache.pb.cc new file mode 100644 index 000000000..ec29772ec --- /dev/null +++ b/src/llbuild3/core/ActionCache.pb.cc @@ -0,0 +1,1169 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: llbuild3/core/ActionCache.proto +// Protobuf C++ Version: 5.27.2 + +#include "llbuild3/core/ActionCache.pb.h" + +#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/wire_format_lite.h" +#include "google/protobuf/descriptor.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/reflection_ops.h" +#include "google/protobuf/wire_format.h" +// @@protoc_insertion_point(includes) + +// 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 llbuild3 { +namespace core { + +inline constexpr CacheKey::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + label_{nullptr}, + content_{nullptr}, + type_{static_cast< ::llbuild3::core::CacheKeyType >(0)} {} + +template +PROTOBUF_CONSTEXPR CacheKey::CacheKey(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct CacheKeyDefaultTypeInternal { + PROTOBUF_CONSTEXPR CacheKeyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CacheKeyDefaultTypeInternal() {} + union { + CacheKey _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CacheKeyDefaultTypeInternal _CacheKey_default_instance_; + +inline constexpr ActionStat::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + value_{}, + _cached_size_{0}, + _oneof_case_{} {} + +template +PROTOBUF_CONSTEXPR ActionStat::ActionStat(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct ActionStatDefaultTypeInternal { + PROTOBUF_CONSTEXPR ActionStatDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ActionStatDefaultTypeInternal() {} + union { + ActionStat _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ActionStatDefaultTypeInternal _ActionStat_default_instance_; + +inline constexpr CacheValue::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + stats_{}, + data_{nullptr} {} + +template +PROTOBUF_CONSTEXPR CacheValue::CacheValue(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct CacheValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR CacheValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CacheValueDefaultTypeInternal() {} + union { + CacheValue _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CacheValueDefaultTypeInternal _CacheValue_default_instance_; +} // namespace core +} // namespace llbuild3 +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_llbuild3_2fcore_2fActionCache_2eproto[1]; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_llbuild3_2fcore_2fActionCache_2eproto = nullptr; +const ::uint32_t + TableStruct_llbuild3_2fcore_2fActionCache_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::llbuild3::core::CacheKey, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::llbuild3::core::CacheKey, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::llbuild3::core::CacheKey, _impl_.label_), + PROTOBUF_FIELD_OFFSET(::llbuild3::core::CacheKey, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::llbuild3::core::CacheKey, _impl_.content_), + 0, + ~0u, + 1, + PROTOBUF_FIELD_OFFSET(::llbuild3::core::CacheValue, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::llbuild3::core::CacheValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::llbuild3::core::CacheValue, _impl_.data_), + PROTOBUF_FIELD_OFFSET(::llbuild3::core::CacheValue, _impl_.stats_), + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::llbuild3::core::ActionStat, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::llbuild3::core::ActionStat, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::llbuild3::core::ActionStat, _impl_.name_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::llbuild3::core::ActionStat, _impl_.value_), +}; + +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 11, -1, sizeof(::llbuild3::core::CacheKey)}, + {14, 24, -1, sizeof(::llbuild3::core::CacheValue)}, + {26, -1, -1, sizeof(::llbuild3::core::ActionStat)}, +}; +static const ::_pb::Message* const file_default_instances[] = { + &::llbuild3::core::_CacheKey_default_instance_._instance, + &::llbuild3::core::_CacheValue_default_instance_._instance, + &::llbuild3::core::_ActionStat_default_instance_._instance, +}; +const char descriptor_table_protodef_llbuild3_2fcore_2fActionCache_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\037llbuild3/core/ActionCache.proto\022\rllbui" + "ld3.core\032\027llbuild3/core/CAS.proto\032\031llbui" + "ld3/core/Label.proto\"\207\001\n\010CacheKey\022#\n\005lab" + "el\030\001 \001(\0132\024.llbuild3.core.Label\022)\n\004type\030\002" + " \001(\0162\033.llbuild3.core.CacheKeyType\022+\n\007con" + "tent\030\003 \001(\0132\032.llbuild3.core.CASObjectID\"`" + "\n\nCacheValue\022(\n\004data\030\001 \001(\0132\032.llbuild3.co" + "re.CASObjectID\022(\n\005stats\030\002 \003(\0132\031.llbuild3" + ".core.ActionStat\"\253\001\n\nActionStat\022\014\n\004name\030" + "\001 \001(\t\022\022\n\010intValue\030\002 \001(\003H\000\022\025\n\013stringValue" + "\030\003 \001(\tH\000\022\023\n\tboolValue\030\004 \001(\010H\000\022\025\n\013doubleV" + "alue\030\005 \001(\001H\000\022/\n\tcasObject\030\006 \001(\0132\032.llbuil" + "d3.core.CASObjectIDH\000B\007\n\005value*$\n\014CacheK" + "eyType\022\010\n\004TASK\020\000\022\n\n\006ACTION\020\001b\006proto3" +}; +static const ::_pbi::DescriptorTable* const descriptor_table_llbuild3_2fcore_2fActionCache_2eproto_deps[2] = + { + &::descriptor_table_llbuild3_2fcore_2fCAS_2eproto, + &::descriptor_table_llbuild3_2fcore_2fLabel_2eproto, +}; +static ::absl::once_flag descriptor_table_llbuild3_2fcore_2fActionCache_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_llbuild3_2fcore_2fActionCache_2eproto = { + false, + false, + 556, + descriptor_table_protodef_llbuild3_2fcore_2fActionCache_2eproto, + "llbuild3/core/ActionCache.proto", + &descriptor_table_llbuild3_2fcore_2fActionCache_2eproto_once, + descriptor_table_llbuild3_2fcore_2fActionCache_2eproto_deps, + 2, + 3, + schemas, + file_default_instances, + TableStruct_llbuild3_2fcore_2fActionCache_2eproto::offsets, + file_level_enum_descriptors_llbuild3_2fcore_2fActionCache_2eproto, + file_level_service_descriptors_llbuild3_2fcore_2fActionCache_2eproto, +}; +namespace llbuild3 { +namespace core { +const ::google::protobuf::EnumDescriptor* CacheKeyType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_llbuild3_2fcore_2fActionCache_2eproto); + return file_level_enum_descriptors_llbuild3_2fcore_2fActionCache_2eproto[0]; +} +PROTOBUF_CONSTINIT const uint32_t CacheKeyType_internal_data_[] = { + 131072u, 0u, }; +bool CacheKeyType_IsValid(int value) { + return 0 <= value && value <= 1; +} +// =================================================================== + +class CacheKey::_Internal { + public: + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CacheKey, _impl_._has_bits_); +}; + +void CacheKey::clear_label() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.label_ != nullptr) _impl_.label_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +void CacheKey::clear_content() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.content_ != nullptr) _impl_.content_->Clear(); + _impl_._has_bits_[0] &= ~0x00000002u; +} +CacheKey::CacheKey(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:llbuild3.core.CacheKey) +} +inline PROTOBUF_NDEBUG_INLINE CacheKey::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::llbuild3::core::CacheKey& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +CacheKey::CacheKey( + ::google::protobuf::Arena* arena, + const CacheKey& from) + : ::google::protobuf::Message(arena) { + CacheKey* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.label_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::llbuild3::core::Label>( + arena, *from._impl_.label_) + : nullptr; + _impl_.content_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::llbuild3::core::CASObjectID>( + arena, *from._impl_.content_) + : nullptr; + _impl_.type_ = from._impl_.type_; + + // @@protoc_insertion_point(copy_constructor:llbuild3.core.CacheKey) +} +inline PROTOBUF_NDEBUG_INLINE CacheKey::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} + +inline void CacheKey::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, label_), + 0, + offsetof(Impl_, type_) - + offsetof(Impl_, label_) + + sizeof(Impl_::type_)); +} +CacheKey::~CacheKey() { + // @@protoc_insertion_point(destructor:llbuild3.core.CacheKey) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void CacheKey::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.label_; + delete _impl_.content_; + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +CacheKey::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + PROTOBUF_FIELD_OFFSET(CacheKey, _impl_._cached_size_), + false, + }, + &CacheKey::MergeImpl, + &CacheKey::kDescriptorMethods, + &descriptor_table_llbuild3_2fcore_2fActionCache_2eproto, + nullptr, // tracker + }; + ::google::protobuf::internal::PrefetchToLocalCache(&_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_data_.tc_table); + return _data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 2, 0, 2> CacheKey::_table_ = { + { + PROTOBUF_FIELD_OFFSET(CacheKey, _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 + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_CacheKey_default_instance_._instance, + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::llbuild3::core::CacheKey>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // .llbuild3.core.Label label = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(CacheKey, _impl_.label_)}}, + // .llbuild3.core.CacheKeyType type = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CacheKey, _impl_.type_), 63>(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(CacheKey, _impl_.type_)}}, + // .llbuild3.core.CASObjectID content = 3; + {::_pbi::TcParser::FastMtS1, + {26, 1, 1, PROTOBUF_FIELD_OFFSET(CacheKey, _impl_.content_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .llbuild3.core.Label label = 1; + {PROTOBUF_FIELD_OFFSET(CacheKey, _impl_.label_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .llbuild3.core.CacheKeyType type = 2; + {PROTOBUF_FIELD_OFFSET(CacheKey, _impl_.type_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + // .llbuild3.core.CASObjectID content = 3; + {PROTOBUF_FIELD_OFFSET(CacheKey, _impl_.content_), _Internal::kHasBitsOffset + 1, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::llbuild3::core::Label>()}, + {::_pbi::TcParser::GetTable<::llbuild3::core::CASObjectID>()}, + }}, {{ + }}, +}; + +PROTOBUF_NOINLINE void CacheKey::Clear() { +// @@protoc_insertion_point(message_clear_start:llbuild3.core.CacheKey) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.label_ != nullptr); + _impl_.label_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.content_ != nullptr); + _impl_.content_->Clear(); + } + } + _impl_.type_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +::uint8_t* CacheKey::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:llbuild3.core.CacheKey) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + // .llbuild3.core.Label label = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *_impl_.label_, _impl_.label_->GetCachedSize(), target, stream); + } + + // .llbuild3.core.CacheKeyType type = 2; + if (this->_internal_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_type(), target); + } + + // .llbuild3.core.CASObjectID content = 3; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *_impl_.content_, _impl_.content_->GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:llbuild3.core.CacheKey) + return target; +} + +::size_t CacheKey::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:llbuild3.core.CacheKey) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(reinterpret_cast(this)); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .llbuild3.core.Label label = 1; + if (cached_has_bits & 0x00000001u) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.label_); + } + + // .llbuild3.core.CASObjectID content = 3; + if (cached_has_bits & 0x00000002u) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.content_); + } + + } + // .llbuild3.core.CacheKeyType type = 2; + if (this->_internal_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + + +void CacheKey::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); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:llbuild3.core.CacheKey) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.label_ != nullptr); + if (_this->_impl_.label_ == nullptr) { + _this->_impl_.label_ = + ::google::protobuf::Message::CopyConstruct<::llbuild3::core::Label>(arena, *from._impl_.label_); + } else { + _this->_impl_.label_->MergeFrom(*from._impl_.label_); + } + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(from._impl_.content_ != nullptr); + if (_this->_impl_.content_ == nullptr) { + _this->_impl_.content_ = + ::google::protobuf::Message::CopyConstruct<::llbuild3::core::CASObjectID>(arena, *from._impl_.content_); + } else { + _this->_impl_.content_->MergeFrom(*from._impl_.content_); + } + } + } + if (from._internal_type() != 0) { + _this->_impl_.type_ = from._impl_.type_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void CacheKey::CopyFrom(const CacheKey& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:llbuild3.core.CacheKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void CacheKey::InternalSwap(CacheKey* PROTOBUF_RESTRICT other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(CacheKey, _impl_.type_) + + sizeof(CacheKey::_impl_.type_) + - PROTOBUF_FIELD_OFFSET(CacheKey, _impl_.label_)>( + reinterpret_cast(&_impl_.label_), + reinterpret_cast(&other->_impl_.label_)); +} + +::google::protobuf::Metadata CacheKey::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class CacheValue::_Internal { + public: + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CacheValue, _impl_._has_bits_); +}; + +void CacheValue::clear_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.data_ != nullptr) _impl_.data_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +CacheValue::CacheValue(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:llbuild3.core.CacheValue) +} +inline PROTOBUF_NDEBUG_INLINE CacheValue::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::llbuild3::core::CacheValue& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + stats_{visibility, arena, from.stats_} {} + +CacheValue::CacheValue( + ::google::protobuf::Arena* arena, + const CacheValue& from) + : ::google::protobuf::Message(arena) { + CacheValue* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.data_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::llbuild3::core::CASObjectID>( + arena, *from._impl_.data_) + : nullptr; + + // @@protoc_insertion_point(copy_constructor:llbuild3.core.CacheValue) +} +inline PROTOBUF_NDEBUG_INLINE CacheValue::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + stats_{visibility, arena} {} + +inline void CacheValue::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.data_ = {}; +} +CacheValue::~CacheValue() { + // @@protoc_insertion_point(destructor:llbuild3.core.CacheValue) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void CacheValue::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.data_; + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +CacheValue::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + PROTOBUF_FIELD_OFFSET(CacheValue, _impl_._cached_size_), + false, + }, + &CacheValue::MergeImpl, + &CacheValue::kDescriptorMethods, + &descriptor_table_llbuild3_2fcore_2fActionCache_2eproto, + nullptr, // tracker + }; + ::google::protobuf::internal::PrefetchToLocalCache(&_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_data_.tc_table); + return _data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> CacheValue::_table_ = { + { + PROTOBUF_FIELD_OFFSET(CacheValue, _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 + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_CacheValue_default_instance_._instance, + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::llbuild3::core::CacheValue>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated .llbuild3.core.ActionStat stats = 2; + {::_pbi::TcParser::FastMtR1, + {18, 63, 1, PROTOBUF_FIELD_OFFSET(CacheValue, _impl_.stats_)}}, + // .llbuild3.core.CASObjectID data = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(CacheValue, _impl_.data_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .llbuild3.core.CASObjectID data = 1; + {PROTOBUF_FIELD_OFFSET(CacheValue, _impl_.data_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .llbuild3.core.ActionStat stats = 2; + {PROTOBUF_FIELD_OFFSET(CacheValue, _impl_.stats_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::llbuild3::core::CASObjectID>()}, + {::_pbi::TcParser::GetTable<::llbuild3::core::ActionStat>()}, + }}, {{ + }}, +}; + +PROTOBUF_NOINLINE void CacheValue::Clear() { +// @@protoc_insertion_point(message_clear_start:llbuild3.core.CacheValue) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.stats_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.data_ != nullptr); + _impl_.data_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +::uint8_t* CacheValue::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:llbuild3.core.CacheValue) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + // .llbuild3.core.CASObjectID data = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *_impl_.data_, _impl_.data_->GetCachedSize(), target, stream); + } + + // repeated .llbuild3.core.ActionStat stats = 2; + for (unsigned i = 0, n = static_cast( + this->_internal_stats_size()); + i < n; i++) { + const auto& repfield = this->_internal_stats().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, repfield, repfield.GetCachedSize(), + target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:llbuild3.core.CacheValue) + return target; +} + +::size_t CacheValue::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:llbuild3.core.CacheValue) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(reinterpret_cast(this)); + // repeated .llbuild3.core.ActionStat stats = 2; + total_size += 1UL * this->_internal_stats_size(); + for (const auto& msg : this->_internal_stats()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + // .llbuild3.core.CASObjectID data = 1; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.data_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + + +void CacheValue::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); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:llbuild3.core.CacheValue) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_internal_mutable_stats()->MergeFrom( + from._internal_stats()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.data_ != nullptr); + if (_this->_impl_.data_ == nullptr) { + _this->_impl_.data_ = + ::google::protobuf::Message::CopyConstruct<::llbuild3::core::CASObjectID>(arena, *from._impl_.data_); + } else { + _this->_impl_.data_->MergeFrom(*from._impl_.data_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void CacheValue::CopyFrom(const CacheValue& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:llbuild3.core.CacheValue) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void CacheValue::InternalSwap(CacheValue* PROTOBUF_RESTRICT other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.stats_.InternalSwap(&other->_impl_.stats_); + swap(_impl_.data_, other->_impl_.data_); +} + +::google::protobuf::Metadata CacheValue::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class ActionStat::_Internal { + public: + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::llbuild3::core::ActionStat, _impl_._oneof_case_); +}; + +void ActionStat::set_allocated_casobject(::llbuild3::core::CASObjectID* casobject) { + ::google::protobuf::Arena* message_arena = GetArena(); + clear_value(); + if (casobject) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(casobject)->GetArena(); + if (message_arena != submessage_arena) { + casobject = ::google::protobuf::internal::GetOwnedMessage(message_arena, casobject, submessage_arena); + } + set_has_casobject(); + _impl_.value_.casobject_ = casobject; + } + // @@protoc_insertion_point(field_set_allocated:llbuild3.core.ActionStat.casObject) +} +void ActionStat::clear_casobject() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value_case() == kCasObject) { + if (GetArena() == nullptr) { + delete _impl_.value_.casobject_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.value_.casobject_); + } + clear_has_value(); + } +} +ActionStat::ActionStat(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:llbuild3.core.ActionStat) +} +inline PROTOBUF_NDEBUG_INLINE ActionStat::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::llbuild3::core::ActionStat& from_msg) + : name_(arena, from.name_), + value_{}, + _cached_size_{0}, + _oneof_case_{from._oneof_case_[0]} {} + +ActionStat::ActionStat( + ::google::protobuf::Arena* arena, + const ActionStat& from) + : ::google::protobuf::Message(arena) { + ActionStat* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + switch (value_case()) { + case VALUE_NOT_SET: + break; + case kIntValue: + _impl_.value_.intvalue_ = from._impl_.value_.intvalue_; + break; + case kStringValue: + new (&_impl_.value_.stringvalue_) decltype(_impl_.value_.stringvalue_){arena, from._impl_.value_.stringvalue_}; + break; + case kBoolValue: + _impl_.value_.boolvalue_ = from._impl_.value_.boolvalue_; + break; + case kDoubleValue: + _impl_.value_.doublevalue_ = from._impl_.value_.doublevalue_; + break; + case kCasObject: + _impl_.value_.casobject_ = ::google::protobuf::Message::CopyConstruct<::llbuild3::core::CASObjectID>(arena, *from._impl_.value_.casobject_); + break; + } + + // @@protoc_insertion_point(copy_constructor:llbuild3.core.ActionStat) +} +inline PROTOBUF_NDEBUG_INLINE ActionStat::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : name_(arena), + value_{}, + _cached_size_{0}, + _oneof_case_{} {} + +inline void ActionStat::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +ActionStat::~ActionStat() { + // @@protoc_insertion_point(destructor:llbuild3.core.ActionStat) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void ActionStat::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.name_.Destroy(); + if (has_value()) { + clear_value(); + } + _impl_.~Impl_(); +} + +void ActionStat::clear_value() { +// @@protoc_insertion_point(one_of_clear_start:llbuild3.core.ActionStat) + ::google::protobuf::internal::TSanWrite(&_impl_); + switch (value_case()) { + case kIntValue: { + // No need to clear + break; + } + case kStringValue: { + _impl_.value_.stringvalue_.Destroy(); + break; + } + case kBoolValue: { + // No need to clear + break; + } + case kDoubleValue: { + // No need to clear + break; + } + case kCasObject: { + if (GetArena() == nullptr) { + delete _impl_.value_.casobject_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.value_.casobject_); + } + break; + } + case VALUE_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = VALUE_NOT_SET; +} + + +const ::google::protobuf::MessageLite::ClassData* +ActionStat::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + PROTOBUF_FIELD_OFFSET(ActionStat, _impl_._cached_size_), + false, + }, + &ActionStat::MergeImpl, + &ActionStat::kDescriptorMethods, + &descriptor_table_llbuild3_2fcore_2fActionCache_2eproto, + nullptr, // tracker + }; + ::google::protobuf::internal::PrefetchToLocalCache(&_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_data_.tc_table); + return _data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 6, 1, 48, 2> ActionStat::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 6, 0, // 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), + &_ActionStat_default_instance_._instance, + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::llbuild3::core::ActionStat>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(ActionStat, _impl_.name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string name = 1; + {PROTOBUF_FIELD_OFFSET(ActionStat, _impl_.name_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // int64 intValue = 2; + {PROTOBUF_FIELD_OFFSET(ActionStat, _impl_.value_.intvalue_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kInt64)}, + // string stringValue = 3; + {PROTOBUF_FIELD_OFFSET(ActionStat, _impl_.value_.stringvalue_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // bool boolValue = 4; + {PROTOBUF_FIELD_OFFSET(ActionStat, _impl_.value_.boolvalue_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kBool)}, + // double doubleValue = 5; + {PROTOBUF_FIELD_OFFSET(ActionStat, _impl_.value_.doublevalue_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kDouble)}, + // .llbuild3.core.CASObjectID casObject = 6; + {PROTOBUF_FIELD_OFFSET(ActionStat, _impl_.value_.casobject_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::llbuild3::core::CASObjectID>()}, + }}, {{ + "\30\4\0\13\0\0\0\0" + "llbuild3.core.ActionStat" + "name" + "stringValue" + }}, +}; + +PROTOBUF_NOINLINE void ActionStat::Clear() { +// @@protoc_insertion_point(message_clear_start:llbuild3.core.ActionStat) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + clear_value(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +::uint8_t* ActionStat::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:llbuild3.core.ActionStat) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string name = 1; + if (!this->_internal_name().empty()) { + const std::string& _s = this->_internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "llbuild3.core.ActionStat.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + switch (value_case()) { + case kIntValue: { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt64ToArrayWithField<2>( + stream, this->_internal_intvalue(), target); + break; + } + case kStringValue: { + const std::string& _s = this->_internal_stringvalue(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "llbuild3.core.ActionStat.stringValue"); + target = stream->WriteStringMaybeAliased(3, _s, target); + break; + } + case kBoolValue: { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this->_internal_boolvalue(), target); + break; + } + case kDoubleValue: { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 5, this->_internal_doublevalue(), target); + break; + } + case kCasObject: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *_impl_.value_.casobject_, _impl_.value_.casobject_->GetCachedSize(), target, stream); + break; + } + default: + break; + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:llbuild3.core.ActionStat) + return target; +} + +::size_t ActionStat::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:llbuild3.core.ActionStat) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1; + if (!this->_internal_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + switch (value_case()) { + // int64 intValue = 2; + case kIntValue: { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this->_internal_intvalue()); + break; + } + // string stringValue = 3; + case kStringValue: { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_stringvalue()); + break; + } + // bool boolValue = 4; + case kBoolValue: { + total_size += 2; + break; + } + // double doubleValue = 5; + case kDoubleValue: { + total_size += 9; + break; + } + // .llbuild3.core.CASObjectID casObject = 6; + case kCasObject: { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_.casobject_); + break; + } + case VALUE_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + + +void ActionStat::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); + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:llbuild3.core.ActionStat) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; + const bool oneof_needs_init = oneof_to_case != oneof_from_case; + if (oneof_needs_init) { + if (oneof_to_case != 0) { + _this->clear_value(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; + } + + switch (oneof_from_case) { + case kIntValue: { + _this->_impl_.value_.intvalue_ = from._impl_.value_.intvalue_; + break; + } + case kStringValue: { + if (oneof_needs_init) { + _this->_impl_.value_.stringvalue_.InitDefault(); + } + _this->_impl_.value_.stringvalue_.Set(from._internal_stringvalue(), arena); + break; + } + case kBoolValue: { + _this->_impl_.value_.boolvalue_ = from._impl_.value_.boolvalue_; + break; + } + case kDoubleValue: { + _this->_impl_.value_.doublevalue_ = from._impl_.value_.doublevalue_; + break; + } + case kCasObject: { + if (oneof_needs_init) { + _this->_impl_.value_.casobject_ = + ::google::protobuf::Message::CopyConstruct<::llbuild3::core::CASObjectID>(arena, *from._impl_.value_.casobject_); + } else { + _this->_impl_.value_.casobject_->MergeFrom(from._internal_casobject()); + } + break; + } + case VALUE_NOT_SET: + break; + } + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void ActionStat::CopyFrom(const ActionStat& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:llbuild3.core.ActionStat) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void ActionStat::InternalSwap(ActionStat* PROTOBUF_RESTRICT other) { + using std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + swap(_impl_.value_, other->_impl_.value_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::google::protobuf::Metadata ActionStat::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace llbuild3 +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google +// @@protoc_insertion_point(global_scope) +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_llbuild3_2fcore_2fActionCache_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/src/llbuild3/core/ActionCache.pb.h b/src/llbuild3/core/ActionCache.pb.h new file mode 100644 index 000000000..cfc96dc6a --- /dev/null +++ b/src/llbuild3/core/ActionCache.pb.h @@ -0,0 +1,1498 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: llbuild3/core/ActionCache.proto +// Protobuf C++ Version: 5.27.2 + +#ifndef GOOGLE_PROTOBUF_INCLUDED_llbuild3_2fcore_2fActionCache_2eproto_2epb_2eh +#define GOOGLE_PROTOBUF_INCLUDED_llbuild3_2fcore_2fActionCache_2eproto_2epb_2eh + +#include +#include +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5027002 +#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 "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/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_reflection.h" +#include "google/protobuf/unknown_field_set.h" +#include "llbuild3/core/CAS.pb.h" +#include "llbuild3/core/Label.pb.h" +// @@protoc_insertion_point(includes) + +// Must be included last. +#include "google/protobuf/port_def.inc" + +#define PROTOBUF_INTERNAL_EXPORT_llbuild3_2fcore_2fActionCache_2eproto + +namespace google { +namespace protobuf { +namespace internal { +class AnyMetadata; +} // namespace internal +} // namespace protobuf +} // namespace google + +// Internal implementation detail -- do not use these members. +struct TableStruct_llbuild3_2fcore_2fActionCache_2eproto { + static const ::uint32_t offsets[]; +}; +extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_llbuild3_2fcore_2fActionCache_2eproto; +namespace llbuild3 { +namespace core { +class ActionStat; +struct ActionStatDefaultTypeInternal; +extern ActionStatDefaultTypeInternal _ActionStat_default_instance_; +class CacheKey; +struct CacheKeyDefaultTypeInternal; +extern CacheKeyDefaultTypeInternal _CacheKey_default_instance_; +class CacheValue; +struct CacheValueDefaultTypeInternal; +extern CacheValueDefaultTypeInternal _CacheValue_default_instance_; +} // namespace core +} // namespace llbuild3 +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + +namespace llbuild3 { +namespace core { +enum CacheKeyType : int { + TASK = 0, + ACTION = 1, + CacheKeyType_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + CacheKeyType_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), +}; + +bool CacheKeyType_IsValid(int value); +extern const uint32_t CacheKeyType_internal_data_[]; +constexpr CacheKeyType CacheKeyType_MIN = static_cast(0); +constexpr CacheKeyType CacheKeyType_MAX = static_cast(1); +constexpr int CacheKeyType_ARRAYSIZE = 1 + 1; +const ::google::protobuf::EnumDescriptor* +CacheKeyType_descriptor(); +template +const std::string& CacheKeyType_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to CacheKeyType_Name()."); + return CacheKeyType_Name(static_cast(value)); +} +template <> +inline const std::string& CacheKeyType_Name(CacheKeyType value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool CacheKeyType_Parse(absl::string_view name, CacheKeyType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + CacheKeyType_descriptor(), name, value); +} + +// =================================================================== + + +// ------------------------------------------------------------------- + +class CacheKey final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:llbuild3.core.CacheKey) */ { + public: + inline CacheKey() : CacheKey(nullptr) {} + ~CacheKey() override; + template + explicit PROTOBUF_CONSTEXPR CacheKey( + ::google::protobuf::internal::ConstantInitialized); + + inline CacheKey(const CacheKey& from) : CacheKey(nullptr, from) {} + inline CacheKey(CacheKey&& from) noexcept + : CacheKey(nullptr, std::move(from)) {} + inline CacheKey& operator=(const CacheKey& from) { + CopyFrom(from); + return *this; + } + inline CacheKey& operator=(CacheKey&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CacheKey& default_instance() { + return *internal_default_instance(); + } + static inline const CacheKey* internal_default_instance() { + return reinterpret_cast( + &_CacheKey_default_instance_); + } + static constexpr int kIndexInFileMessages = 0; + friend void swap(CacheKey& a, CacheKey& b) { a.Swap(&b); } + inline void Swap(CacheKey* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CacheKey* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CacheKey* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const CacheKey& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const CacheKey& from) { CacheKey::MergeImpl(*this, from); } + + private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(CacheKey* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "llbuild3.core.CacheKey"; } + + protected: + explicit CacheKey(::google::protobuf::Arena* arena); + CacheKey(::google::protobuf::Arena* arena, const CacheKey& from); + CacheKey(::google::protobuf::Arena* arena, CacheKey&& from) noexcept + : CacheKey(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::Message::ClassData* GetClassData() const final; + + public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kLabelFieldNumber = 1, + kContentFieldNumber = 3, + kTypeFieldNumber = 2, + }; + // .llbuild3.core.Label label = 1; + bool has_label() const; + void clear_label() ; + const ::llbuild3::core::Label& label() const; + PROTOBUF_NODISCARD ::llbuild3::core::Label* release_label(); + ::llbuild3::core::Label* mutable_label(); + void set_allocated_label(::llbuild3::core::Label* value); + void unsafe_arena_set_allocated_label(::llbuild3::core::Label* value); + ::llbuild3::core::Label* unsafe_arena_release_label(); + + private: + const ::llbuild3::core::Label& _internal_label() const; + ::llbuild3::core::Label* _internal_mutable_label(); + + public: + // .llbuild3.core.CASObjectID content = 3; + bool has_content() const; + void clear_content() ; + const ::llbuild3::core::CASObjectID& content() const; + PROTOBUF_NODISCARD ::llbuild3::core::CASObjectID* release_content(); + ::llbuild3::core::CASObjectID* mutable_content(); + void set_allocated_content(::llbuild3::core::CASObjectID* value); + void unsafe_arena_set_allocated_content(::llbuild3::core::CASObjectID* value); + ::llbuild3::core::CASObjectID* unsafe_arena_release_content(); + + private: + const ::llbuild3::core::CASObjectID& _internal_content() const; + ::llbuild3::core::CASObjectID* _internal_mutable_content(); + + public: + // .llbuild3.core.CacheKeyType type = 2; + void clear_type() ; + ::llbuild3::core::CacheKeyType type() const; + void set_type(::llbuild3::core::CacheKeyType value); + + private: + ::llbuild3::core::CacheKeyType _internal_type() const; + void _internal_set_type(::llbuild3::core::CacheKeyType value); + + public: + // @@protoc_insertion_point(class_scope:llbuild3.core.CacheKey) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 2, 3, 2, + 0, 2> + _table_; + + static constexpr const void* _raw_default_instance_ = + &_CacheKey_default_instance_; + + 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* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const CacheKey& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::llbuild3::core::Label* label_; + ::llbuild3::core::CASObjectID* content_; + int type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_llbuild3_2fcore_2fActionCache_2eproto; +}; +// ------------------------------------------------------------------- + +class ActionStat final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:llbuild3.core.ActionStat) */ { + public: + inline ActionStat() : ActionStat(nullptr) {} + ~ActionStat() override; + template + explicit PROTOBUF_CONSTEXPR ActionStat( + ::google::protobuf::internal::ConstantInitialized); + + inline ActionStat(const ActionStat& from) : ActionStat(nullptr, from) {} + inline ActionStat(ActionStat&& from) noexcept + : ActionStat(nullptr, std::move(from)) {} + inline ActionStat& operator=(const ActionStat& from) { + CopyFrom(from); + return *this; + } + inline ActionStat& operator=(ActionStat&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ActionStat& default_instance() { + return *internal_default_instance(); + } + enum ValueCase { + kIntValue = 2, + kStringValue = 3, + kBoolValue = 4, + kDoubleValue = 5, + kCasObject = 6, + VALUE_NOT_SET = 0, + }; + static inline const ActionStat* internal_default_instance() { + return reinterpret_cast( + &_ActionStat_default_instance_); + } + static constexpr int kIndexInFileMessages = 2; + friend void swap(ActionStat& a, ActionStat& b) { a.Swap(&b); } + inline void Swap(ActionStat* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ActionStat* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ActionStat* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ActionStat& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ActionStat& from) { ActionStat::MergeImpl(*this, from); } + + private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(ActionStat* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "llbuild3.core.ActionStat"; } + + protected: + explicit ActionStat(::google::protobuf::Arena* arena); + ActionStat(::google::protobuf::Arena* arena, const ActionStat& from); + ActionStat(::google::protobuf::Arena* arena, ActionStat&& from) noexcept + : ActionStat(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::Message::ClassData* GetClassData() const final; + + public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kNameFieldNumber = 1, + kIntValueFieldNumber = 2, + kStringValueFieldNumber = 3, + kBoolValueFieldNumber = 4, + kDoubleValueFieldNumber = 5, + kCasObjectFieldNumber = 6, + }; + // string name = 1; + void clear_name() ; + const std::string& name() const; + template + void set_name(Arg_&& arg, Args_... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* value); + + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); + std::string* _internal_mutable_name(); + + public: + // int64 intValue = 2; + bool has_intvalue() const; + void clear_intvalue() ; + ::int64_t intvalue() const; + void set_intvalue(::int64_t value); + + private: + ::int64_t _internal_intvalue() const; + void _internal_set_intvalue(::int64_t value); + + public: + // string stringValue = 3; + bool has_stringvalue() const; + void clear_stringvalue() ; + const std::string& stringvalue() const; + template + void set_stringvalue(Arg_&& arg, Args_... args); + std::string* mutable_stringvalue(); + PROTOBUF_NODISCARD std::string* release_stringvalue(); + void set_allocated_stringvalue(std::string* value); + + private: + const std::string& _internal_stringvalue() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_stringvalue( + const std::string& value); + std::string* _internal_mutable_stringvalue(); + + public: + // bool boolValue = 4; + bool has_boolvalue() const; + void clear_boolvalue() ; + bool boolvalue() const; + void set_boolvalue(bool value); + + private: + bool _internal_boolvalue() const; + void _internal_set_boolvalue(bool value); + + public: + // double doubleValue = 5; + bool has_doublevalue() const; + void clear_doublevalue() ; + double doublevalue() const; + void set_doublevalue(double value); + + private: + double _internal_doublevalue() const; + void _internal_set_doublevalue(double value); + + public: + // .llbuild3.core.CASObjectID casObject = 6; + bool has_casobject() const; + private: + bool _internal_has_casobject() const; + + public: + void clear_casobject() ; + const ::llbuild3::core::CASObjectID& casobject() const; + PROTOBUF_NODISCARD ::llbuild3::core::CASObjectID* release_casobject(); + ::llbuild3::core::CASObjectID* mutable_casobject(); + void set_allocated_casobject(::llbuild3::core::CASObjectID* value); + void unsafe_arena_set_allocated_casobject(::llbuild3::core::CASObjectID* value); + ::llbuild3::core::CASObjectID* unsafe_arena_release_casobject(); + + private: + const ::llbuild3::core::CASObjectID& _internal_casobject() const; + ::llbuild3::core::CASObjectID* _internal_mutable_casobject(); + + public: + void clear_value(); + ValueCase value_case() const; + // @@protoc_insertion_point(class_scope:llbuild3.core.ActionStat) + private: + class _Internal; + void set_has_intvalue(); + void set_has_stringvalue(); + void set_has_boolvalue(); + void set_has_doublevalue(); + void set_has_casobject(); + inline bool has_value() const; + inline void clear_has_value(); + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 6, 1, + 48, 2> + _table_; + + static constexpr const void* _raw_default_instance_ = + &_ActionStat_default_instance_; + + 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* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ActionStat& from_msg); + ::google::protobuf::internal::ArenaStringPtr name_; + union ValueUnion { + constexpr ValueUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + ::int64_t intvalue_; + ::google::protobuf::internal::ArenaStringPtr stringvalue_; + bool boolvalue_; + double doublevalue_; + ::llbuild3::core::CASObjectID* casobject_; + } value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_llbuild3_2fcore_2fActionCache_2eproto; +}; +// ------------------------------------------------------------------- + +class CacheValue final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:llbuild3.core.CacheValue) */ { + public: + inline CacheValue() : CacheValue(nullptr) {} + ~CacheValue() override; + template + explicit PROTOBUF_CONSTEXPR CacheValue( + ::google::protobuf::internal::ConstantInitialized); + + inline CacheValue(const CacheValue& from) : CacheValue(nullptr, from) {} + inline CacheValue(CacheValue&& from) noexcept + : CacheValue(nullptr, std::move(from)) {} + inline CacheValue& operator=(const CacheValue& from) { + CopyFrom(from); + return *this; + } + inline CacheValue& operator=(CacheValue&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CacheValue& default_instance() { + return *internal_default_instance(); + } + static inline const CacheValue* internal_default_instance() { + return reinterpret_cast( + &_CacheValue_default_instance_); + } + static constexpr int kIndexInFileMessages = 1; + friend void swap(CacheValue& a, CacheValue& b) { a.Swap(&b); } + inline void Swap(CacheValue* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CacheValue* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CacheValue* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const CacheValue& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const CacheValue& from) { CacheValue::MergeImpl(*this, from); } + + private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(CacheValue* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "llbuild3.core.CacheValue"; } + + protected: + explicit CacheValue(::google::protobuf::Arena* arena); + CacheValue(::google::protobuf::Arena* arena, const CacheValue& from); + CacheValue(::google::protobuf::Arena* arena, CacheValue&& from) noexcept + : CacheValue(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::Message::ClassData* GetClassData() const final; + + public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kStatsFieldNumber = 2, + kDataFieldNumber = 1, + }; + // repeated .llbuild3.core.ActionStat stats = 2; + int stats_size() const; + private: + int _internal_stats_size() const; + + public: + void clear_stats() ; + ::llbuild3::core::ActionStat* mutable_stats(int index); + ::google::protobuf::RepeatedPtrField<::llbuild3::core::ActionStat>* mutable_stats(); + + private: + const ::google::protobuf::RepeatedPtrField<::llbuild3::core::ActionStat>& _internal_stats() const; + ::google::protobuf::RepeatedPtrField<::llbuild3::core::ActionStat>* _internal_mutable_stats(); + public: + const ::llbuild3::core::ActionStat& stats(int index) const; + ::llbuild3::core::ActionStat* add_stats(); + const ::google::protobuf::RepeatedPtrField<::llbuild3::core::ActionStat>& stats() const; + // .llbuild3.core.CASObjectID data = 1; + bool has_data() const; + void clear_data() ; + const ::llbuild3::core::CASObjectID& data() const; + PROTOBUF_NODISCARD ::llbuild3::core::CASObjectID* release_data(); + ::llbuild3::core::CASObjectID* mutable_data(); + void set_allocated_data(::llbuild3::core::CASObjectID* value); + void unsafe_arena_set_allocated_data(::llbuild3::core::CASObjectID* value); + ::llbuild3::core::CASObjectID* unsafe_arena_release_data(); + + private: + const ::llbuild3::core::CASObjectID& _internal_data() const; + ::llbuild3::core::CASObjectID* _internal_mutable_data(); + + public: + // @@protoc_insertion_point(class_scope:llbuild3.core.CacheValue) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 2, + 0, 2> + _table_; + + static constexpr const void* _raw_default_instance_ = + &_CacheValue_default_instance_; + + 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* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const CacheValue& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::llbuild3::core::ActionStat > stats_; + ::llbuild3::core::CASObjectID* data_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_llbuild3_2fcore_2fActionCache_2eproto; +}; + +// =================================================================== + + + + +// =================================================================== + + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// CacheKey + +// .llbuild3.core.Label label = 1; +inline bool CacheKey::has_label() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.label_ != nullptr); + return value; +} +inline const ::llbuild3::core::Label& CacheKey::_internal_label() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::llbuild3::core::Label* p = _impl_.label_; + return p != nullptr ? *p : reinterpret_cast(::llbuild3::core::_Label_default_instance_); +} +inline const ::llbuild3::core::Label& CacheKey::label() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:llbuild3.core.CacheKey.label) + return _internal_label(); +} +inline void CacheKey::unsafe_arena_set_allocated_label(::llbuild3::core::Label* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.label_); + } + _impl_.label_ = reinterpret_cast<::llbuild3::core::Label*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:llbuild3.core.CacheKey.label) +} +inline ::llbuild3::core::Label* CacheKey::release_label() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::llbuild3::core::Label* released = _impl_.label_; + _impl_.label_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::llbuild3::core::Label* CacheKey::unsafe_arena_release_label() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:llbuild3.core.CacheKey.label) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::llbuild3::core::Label* temp = _impl_.label_; + _impl_.label_ = nullptr; + return temp; +} +inline ::llbuild3::core::Label* CacheKey::_internal_mutable_label() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.label_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct<::llbuild3::core::Label>(GetArena()); + _impl_.label_ = reinterpret_cast<::llbuild3::core::Label*>(p); + } + return _impl_.label_; +} +inline ::llbuild3::core::Label* CacheKey::mutable_label() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; + ::llbuild3::core::Label* _msg = _internal_mutable_label(); + // @@protoc_insertion_point(field_mutable:llbuild3.core.CacheKey.label) + return _msg; +} +inline void CacheKey::set_allocated_label(::llbuild3::core::Label* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.label_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.label_ = reinterpret_cast<::llbuild3::core::Label*>(value); + // @@protoc_insertion_point(field_set_allocated:llbuild3.core.CacheKey.label) +} + +// .llbuild3.core.CacheKeyType type = 2; +inline void CacheKey::clear_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = 0; +} +inline ::llbuild3::core::CacheKeyType CacheKey::type() const { + // @@protoc_insertion_point(field_get:llbuild3.core.CacheKey.type) + return _internal_type(); +} +inline void CacheKey::set_type(::llbuild3::core::CacheKeyType value) { + _internal_set_type(value); + // @@protoc_insertion_point(field_set:llbuild3.core.CacheKey.type) +} +inline ::llbuild3::core::CacheKeyType CacheKey::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::llbuild3::core::CacheKeyType>(_impl_.type_); +} +inline void CacheKey::_internal_set_type(::llbuild3::core::CacheKeyType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = value; +} + +// .llbuild3.core.CASObjectID content = 3; +inline bool CacheKey::has_content() const { + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.content_ != nullptr); + return value; +} +inline const ::llbuild3::core::CASObjectID& CacheKey::_internal_content() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::llbuild3::core::CASObjectID* p = _impl_.content_; + return p != nullptr ? *p : reinterpret_cast(::llbuild3::core::_CASObjectID_default_instance_); +} +inline const ::llbuild3::core::CASObjectID& CacheKey::content() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:llbuild3.core.CacheKey.content) + return _internal_content(); +} +inline void CacheKey::unsafe_arena_set_allocated_content(::llbuild3::core::CASObjectID* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.content_); + } + _impl_.content_ = reinterpret_cast<::llbuild3::core::CASObjectID*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:llbuild3.core.CacheKey.content) +} +inline ::llbuild3::core::CASObjectID* CacheKey::release_content() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000002u; + ::llbuild3::core::CASObjectID* released = _impl_.content_; + _impl_.content_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::llbuild3::core::CASObjectID* CacheKey::unsafe_arena_release_content() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:llbuild3.core.CacheKey.content) + + _impl_._has_bits_[0] &= ~0x00000002u; + ::llbuild3::core::CASObjectID* temp = _impl_.content_; + _impl_.content_ = nullptr; + return temp; +} +inline ::llbuild3::core::CASObjectID* CacheKey::_internal_mutable_content() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.content_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct<::llbuild3::core::CASObjectID>(GetArena()); + _impl_.content_ = reinterpret_cast<::llbuild3::core::CASObjectID*>(p); + } + return _impl_.content_; +} +inline ::llbuild3::core::CASObjectID* CacheKey::mutable_content() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; + ::llbuild3::core::CASObjectID* _msg = _internal_mutable_content(); + // @@protoc_insertion_point(field_mutable:llbuild3.core.CacheKey.content) + return _msg; +} +inline void CacheKey::set_allocated_content(::llbuild3::core::CASObjectID* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.content_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000002u; + } else { + _impl_._has_bits_[0] &= ~0x00000002u; + } + + _impl_.content_ = reinterpret_cast<::llbuild3::core::CASObjectID*>(value); + // @@protoc_insertion_point(field_set_allocated:llbuild3.core.CacheKey.content) +} + +// ------------------------------------------------------------------- + +// CacheValue + +// .llbuild3.core.CASObjectID data = 1; +inline bool CacheValue::has_data() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.data_ != nullptr); + return value; +} +inline const ::llbuild3::core::CASObjectID& CacheValue::_internal_data() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::llbuild3::core::CASObjectID* p = _impl_.data_; + return p != nullptr ? *p : reinterpret_cast(::llbuild3::core::_CASObjectID_default_instance_); +} +inline const ::llbuild3::core::CASObjectID& CacheValue::data() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:llbuild3.core.CacheValue.data) + return _internal_data(); +} +inline void CacheValue::unsafe_arena_set_allocated_data(::llbuild3::core::CASObjectID* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.data_); + } + _impl_.data_ = reinterpret_cast<::llbuild3::core::CASObjectID*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:llbuild3.core.CacheValue.data) +} +inline ::llbuild3::core::CASObjectID* CacheValue::release_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::llbuild3::core::CASObjectID* released = _impl_.data_; + _impl_.data_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::llbuild3::core::CASObjectID* CacheValue::unsafe_arena_release_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:llbuild3.core.CacheValue.data) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::llbuild3::core::CASObjectID* temp = _impl_.data_; + _impl_.data_ = nullptr; + return temp; +} +inline ::llbuild3::core::CASObjectID* CacheValue::_internal_mutable_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (_impl_.data_ == nullptr) { + auto* p = ::google::protobuf::Message::DefaultConstruct<::llbuild3::core::CASObjectID>(GetArena()); + _impl_.data_ = reinterpret_cast<::llbuild3::core::CASObjectID*>(p); + } + return _impl_.data_; +} +inline ::llbuild3::core::CASObjectID* CacheValue::mutable_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; + ::llbuild3::core::CASObjectID* _msg = _internal_mutable_data(); + // @@protoc_insertion_point(field_mutable:llbuild3.core.CacheValue.data) + return _msg; +} +inline void CacheValue::set_allocated_data(::llbuild3::core::CASObjectID* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (message_arena == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.data_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.data_ = reinterpret_cast<::llbuild3::core::CASObjectID*>(value); + // @@protoc_insertion_point(field_set_allocated:llbuild3.core.CacheValue.data) +} + +// repeated .llbuild3.core.ActionStat stats = 2; +inline int CacheValue::_internal_stats_size() const { + return _internal_stats().size(); +} +inline int CacheValue::stats_size() const { + return _internal_stats_size(); +} +inline void CacheValue::clear_stats() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.stats_.Clear(); +} +inline ::llbuild3::core::ActionStat* CacheValue::mutable_stats(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable:llbuild3.core.CacheValue.stats) + return _internal_mutable_stats()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField<::llbuild3::core::ActionStat>* CacheValue::mutable_stats() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:llbuild3.core.CacheValue.stats) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_stats(); +} +inline const ::llbuild3::core::ActionStat& CacheValue::stats(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:llbuild3.core.CacheValue.stats) + return _internal_stats().Get(index); +} +inline ::llbuild3::core::ActionStat* CacheValue::add_stats() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::llbuild3::core::ActionStat* _add = _internal_mutable_stats()->Add(); + // @@protoc_insertion_point(field_add:llbuild3.core.CacheValue.stats) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField<::llbuild3::core::ActionStat>& CacheValue::stats() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:llbuild3.core.CacheValue.stats) + return _internal_stats(); +} +inline const ::google::protobuf::RepeatedPtrField<::llbuild3::core::ActionStat>& +CacheValue::_internal_stats() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.stats_; +} +inline ::google::protobuf::RepeatedPtrField<::llbuild3::core::ActionStat>* +CacheValue::_internal_mutable_stats() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.stats_; +} + +// ------------------------------------------------------------------- + +// ActionStat + +// string name = 1; +inline void ActionStat::clear_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.name_.ClearToEmpty(); +} +inline const std::string& ActionStat::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:llbuild3.core.ActionStat.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ActionStat::set_name(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.name_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:llbuild3.core.ActionStat.name) +} +inline std::string* ActionStat::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:llbuild3.core.ActionStat.name) + return _s; +} +inline const std::string& ActionStat::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.name_.Get(); +} +inline void ActionStat::_internal_set_name(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.name_.Set(value, GetArena()); +} +inline std::string* ActionStat::_internal_mutable_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.name_.Mutable( GetArena()); +} +inline std::string* ActionStat::release_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:llbuild3.core.ActionStat.name) + return _impl_.name_.Release(); +} +inline void ActionStat::set_allocated_name(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.name_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:llbuild3.core.ActionStat.name) +} + +// int64 intValue = 2; +inline bool ActionStat::has_intvalue() const { + return value_case() == kIntValue; +} +inline void ActionStat::set_has_intvalue() { + _impl_._oneof_case_[0] = kIntValue; +} +inline void ActionStat::clear_intvalue() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value_case() == kIntValue) { + _impl_.value_.intvalue_ = ::int64_t{0}; + clear_has_value(); + } +} +inline ::int64_t ActionStat::intvalue() const { + // @@protoc_insertion_point(field_get:llbuild3.core.ActionStat.intValue) + return _internal_intvalue(); +} +inline void ActionStat::set_intvalue(::int64_t value) { + if (value_case() != kIntValue) { + clear_value(); + set_has_intvalue(); + } + _impl_.value_.intvalue_ = value; + // @@protoc_insertion_point(field_set:llbuild3.core.ActionStat.intValue) +} +inline ::int64_t ActionStat::_internal_intvalue() const { + if (value_case() == kIntValue) { + return _impl_.value_.intvalue_; + } + return ::int64_t{0}; +} + +// string stringValue = 3; +inline bool ActionStat::has_stringvalue() const { + return value_case() == kStringValue; +} +inline void ActionStat::set_has_stringvalue() { + _impl_._oneof_case_[0] = kStringValue; +} +inline void ActionStat::clear_stringvalue() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value_case() == kStringValue) { + _impl_.value_.stringvalue_.Destroy(); + clear_has_value(); + } +} +inline const std::string& ActionStat::stringvalue() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:llbuild3.core.ActionStat.stringValue) + return _internal_stringvalue(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ActionStat::set_stringvalue(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value_case() != kStringValue) { + clear_value(); + + set_has_stringvalue(); + _impl_.value_.stringvalue_.InitDefault(); + } + _impl_.value_.stringvalue_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:llbuild3.core.ActionStat.stringValue) +} +inline std::string* ActionStat::mutable_stringvalue() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_stringvalue(); + // @@protoc_insertion_point(field_mutable:llbuild3.core.ActionStat.stringValue) + return _s; +} +inline const std::string& ActionStat::_internal_stringvalue() const { + ::google::protobuf::internal::TSanRead(&_impl_); + if (value_case() != kStringValue) { + return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); + } + return _impl_.value_.stringvalue_.Get(); +} +inline void ActionStat::_internal_set_stringvalue(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value_case() != kStringValue) { + clear_value(); + + set_has_stringvalue(); + _impl_.value_.stringvalue_.InitDefault(); + } + _impl_.value_.stringvalue_.Set(value, GetArena()); +} +inline std::string* ActionStat::_internal_mutable_stringvalue() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value_case() != kStringValue) { + clear_value(); + + set_has_stringvalue(); + _impl_.value_.stringvalue_.InitDefault(); + } + return _impl_.value_.stringvalue_.Mutable( GetArena()); +} +inline std::string* ActionStat::release_stringvalue() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:llbuild3.core.ActionStat.stringValue) + if (value_case() != kStringValue) { + return nullptr; + } + clear_has_value(); + return _impl_.value_.stringvalue_.Release(); +} +inline void ActionStat::set_allocated_stringvalue(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (has_value()) { + clear_value(); + } + if (value != nullptr) { + set_has_stringvalue(); + _impl_.value_.stringvalue_.InitAllocated(value, GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:llbuild3.core.ActionStat.stringValue) +} + +// bool boolValue = 4; +inline bool ActionStat::has_boolvalue() const { + return value_case() == kBoolValue; +} +inline void ActionStat::set_has_boolvalue() { + _impl_._oneof_case_[0] = kBoolValue; +} +inline void ActionStat::clear_boolvalue() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value_case() == kBoolValue) { + _impl_.value_.boolvalue_ = false; + clear_has_value(); + } +} +inline bool ActionStat::boolvalue() const { + // @@protoc_insertion_point(field_get:llbuild3.core.ActionStat.boolValue) + return _internal_boolvalue(); +} +inline void ActionStat::set_boolvalue(bool value) { + if (value_case() != kBoolValue) { + clear_value(); + set_has_boolvalue(); + } + _impl_.value_.boolvalue_ = value; + // @@protoc_insertion_point(field_set:llbuild3.core.ActionStat.boolValue) +} +inline bool ActionStat::_internal_boolvalue() const { + if (value_case() == kBoolValue) { + return _impl_.value_.boolvalue_; + } + return false; +} + +// double doubleValue = 5; +inline bool ActionStat::has_doublevalue() const { + return value_case() == kDoubleValue; +} +inline void ActionStat::set_has_doublevalue() { + _impl_._oneof_case_[0] = kDoubleValue; +} +inline void ActionStat::clear_doublevalue() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value_case() == kDoubleValue) { + _impl_.value_.doublevalue_ = 0; + clear_has_value(); + } +} +inline double ActionStat::doublevalue() const { + // @@protoc_insertion_point(field_get:llbuild3.core.ActionStat.doubleValue) + return _internal_doublevalue(); +} +inline void ActionStat::set_doublevalue(double value) { + if (value_case() != kDoubleValue) { + clear_value(); + set_has_doublevalue(); + } + _impl_.value_.doublevalue_ = value; + // @@protoc_insertion_point(field_set:llbuild3.core.ActionStat.doubleValue) +} +inline double ActionStat::_internal_doublevalue() const { + if (value_case() == kDoubleValue) { + return _impl_.value_.doublevalue_; + } + return 0; +} + +// .llbuild3.core.CASObjectID casObject = 6; +inline bool ActionStat::has_casobject() const { + return value_case() == kCasObject; +} +inline bool ActionStat::_internal_has_casobject() const { + return value_case() == kCasObject; +} +inline void ActionStat::set_has_casobject() { + _impl_._oneof_case_[0] = kCasObject; +} +inline ::llbuild3::core::CASObjectID* ActionStat::release_casobject() { + // @@protoc_insertion_point(field_release:llbuild3.core.ActionStat.casObject) + if (value_case() == kCasObject) { + clear_has_value(); + auto* temp = _impl_.value_.casobject_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.value_.casobject_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::llbuild3::core::CASObjectID& ActionStat::_internal_casobject() const { + return value_case() == kCasObject ? *_impl_.value_.casobject_ : reinterpret_cast<::llbuild3::core::CASObjectID&>(::llbuild3::core::_CASObjectID_default_instance_); +} +inline const ::llbuild3::core::CASObjectID& ActionStat::casobject() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:llbuild3.core.ActionStat.casObject) + return _internal_casobject(); +} +inline ::llbuild3::core::CASObjectID* ActionStat::unsafe_arena_release_casobject() { + // @@protoc_insertion_point(field_unsafe_arena_release:llbuild3.core.ActionStat.casObject) + if (value_case() == kCasObject) { + clear_has_value(); + auto* temp = _impl_.value_.casobject_; + _impl_.value_.casobject_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ActionStat::unsafe_arena_set_allocated_casobject(::llbuild3::core::CASObjectID* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_value(); + if (value) { + set_has_casobject(); + _impl_.value_.casobject_ = value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:llbuild3.core.ActionStat.casObject) +} +inline ::llbuild3::core::CASObjectID* ActionStat::_internal_mutable_casobject() { + if (value_case() != kCasObject) { + clear_value(); + set_has_casobject(); + _impl_.value_.casobject_ = + ::google::protobuf::Message::DefaultConstruct<::llbuild3::core::CASObjectID>(GetArena()); + } + return _impl_.value_.casobject_; +} +inline ::llbuild3::core::CASObjectID* ActionStat::mutable_casobject() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::llbuild3::core::CASObjectID* _msg = _internal_mutable_casobject(); + // @@protoc_insertion_point(field_mutable:llbuild3.core.ActionStat.casObject) + return _msg; +} + +inline bool ActionStat::has_value() const { + return value_case() != VALUE_NOT_SET; +} +inline void ActionStat::clear_has_value() { + _impl_._oneof_case_[0] = VALUE_NOT_SET; +} +inline ActionStat::ValueCase ActionStat::value_case() const { + return ActionStat::ValueCase(_impl_._oneof_case_[0]); +} +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace llbuild3 + + +namespace google { +namespace protobuf { + +template <> +struct is_proto_enum<::llbuild3::core::CacheKeyType> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::llbuild3::core::CacheKeyType>() { + return ::llbuild3::core::CacheKeyType_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include "google/protobuf/port_undef.inc" + +#endif // GOOGLE_PROTOBUF_INCLUDED_llbuild3_2fcore_2fActionCache_2eproto_2epb_2eh diff --git a/src/llbuild3/core/ActionCache.pb.swift b/src/llbuild3/core/ActionCache.pb.swift new file mode 100644 index 000000000..c9afe9a57 --- /dev/null +++ b/src/llbuild3/core/ActionCache.pb.swift @@ -0,0 +1,386 @@ +// DO NOT EDIT. +// swift-format-ignore-file +// +// Generated by the Swift generator plugin for the protocol buffer compiler. +// Source: llbuild3/core/ActionCache.proto +// +// For information on using the generated types, please see the documentation: +// https://github.com/apple/swift-protobuf/ + +import Foundation +import SwiftProtobuf + +// If the compiler emits an error on this type, it is because this file +// was generated by a version of the `protoc` Swift plug-in that is +// incompatible with the version of SwiftProtobuf to which you are linking. +// Please ensure that you are building against the same version of the API +// that was used to generate this file. +fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck { + struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {} + typealias Version = _2 +} + +/// Enum representing the supported action cache key types +public enum Llbuild3_Core_CacheKeyType: SwiftProtobuf.Enum, Swift.CaseIterable { + public typealias RawValue = Int + case task // = 0 + case action // = 1 + case UNRECOGNIZED(Int) + + public init() { + self = .task + } + + public init?(rawValue: Int) { + switch rawValue { + case 0: self = .task + case 1: self = .action + default: self = .UNRECOGNIZED(rawValue) + } + } + + public var rawValue: Int { + switch self { + case .task: return 0 + case .action: return 1 + case .UNRECOGNIZED(let i): return i + } + } + + // The compiler won't synthesize support with the UNRECOGNIZED case. + public static let allCases: [Llbuild3_Core_CacheKeyType] = [ + .task, + .action, + ] + +} + +public struct Llbuild3_Core_CacheKey: Sendable { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + public var label: Llbuild3_Core_Label { + get {return _label ?? Llbuild3_Core_Label()} + set {_label = newValue} + } + /// Returns true if `label` has been explicitly set. + public var hasLabel: Bool {return self._label != nil} + /// Clears the value of `label`. Subsequent reads from it will return its default value. + public mutating func clearLabel() {self._label = nil} + + public var type: Llbuild3_Core_CacheKeyType = .task + + public var content: Llbuild3_Core_CASObjectID { + get {return _content ?? Llbuild3_Core_CASObjectID()} + set {_content = newValue} + } + /// Returns true if `content` has been explicitly set. + public var hasContent: Bool {return self._content != nil} + /// Clears the value of `content`. Subsequent reads from it will return its default value. + public mutating func clearContent() {self._content = nil} + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + + fileprivate var _label: Llbuild3_Core_Label? = nil + fileprivate var _content: Llbuild3_Core_CASObjectID? = nil +} + +public struct Llbuild3_Core_CacheValue: Sendable { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + public var data: Llbuild3_Core_CASObjectID { + get {return _data ?? Llbuild3_Core_CASObjectID()} + set {_data = newValue} + } + /// Returns true if `data` has been explicitly set. + public var hasData: Bool {return self._data != nil} + /// Clears the value of `data`. Subsequent reads from it will return its default value. + public mutating func clearData() {self._data = nil} + + public var stats: [Llbuild3_Core_ActionStat] = [] + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + + fileprivate var _data: Llbuild3_Core_CASObjectID? = nil +} + +public struct Llbuild3_Core_ActionStat: Sendable { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + public var name: String = String() + + public var value: Llbuild3_Core_ActionStat.OneOf_Value? = nil + + public var intValue: Int64 { + get { + if case .intValue(let v)? = value {return v} + return 0 + } + set {value = .intValue(newValue)} + } + + public var stringValue: String { + get { + if case .stringValue(let v)? = value {return v} + return String() + } + set {value = .stringValue(newValue)} + } + + public var boolValue: Bool { + get { + if case .boolValue(let v)? = value {return v} + return false + } + set {value = .boolValue(newValue)} + } + + public var doubleValue: Double { + get { + if case .doubleValue(let v)? = value {return v} + return 0 + } + set {value = .doubleValue(newValue)} + } + + public var casObject: Llbuild3_Core_CASObjectID { + get { + if case .casObject(let v)? = value {return v} + return Llbuild3_Core_CASObjectID() + } + set {value = .casObject(newValue)} + } + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public enum OneOf_Value: Equatable, Sendable { + case intValue(Int64) + case stringValue(String) + case boolValue(Bool) + case doubleValue(Double) + case casObject(Llbuild3_Core_CASObjectID) + + } + + public init() {} +} + +// MARK: - Code below here is support for the SwiftProtobuf runtime. + +fileprivate let _protobuf_package = "llbuild3.core" + +extension Llbuild3_Core_CacheKeyType: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "TASK"), + 1: .same(proto: "ACTION"), + ] +} + +extension Llbuild3_Core_CacheKey: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CacheKey" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "label"), + 2: .same(proto: "type"), + 3: .same(proto: "content"), + ] + + public mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularMessageField(value: &self._label) }() + case 2: try { try decoder.decodeSingularEnumField(value: &self.type) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._content) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + try { if let v = self._label { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + if self.type != .task { + try visitor.visitSingularEnumField(value: self.type, fieldNumber: 2) + } + try { if let v = self._content { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Llbuild3_Core_CacheKey, rhs: Llbuild3_Core_CacheKey) -> Bool { + if lhs._label != rhs._label {return false} + if lhs.type != rhs.type {return false} + if lhs._content != rhs._content {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Llbuild3_Core_CacheValue: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CacheValue" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "data"), + 2: .same(proto: "stats"), + ] + + public mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularMessageField(value: &self._data) }() + case 2: try { try decoder.decodeRepeatedMessageField(value: &self.stats) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + try { if let v = self._data { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + if !self.stats.isEmpty { + try visitor.visitRepeatedMessageField(value: self.stats, fieldNumber: 2) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Llbuild3_Core_CacheValue, rhs: Llbuild3_Core_CacheValue) -> Bool { + if lhs._data != rhs._data {return false} + if lhs.stats != rhs.stats {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Llbuild3_Core_ActionStat: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ActionStat" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "name"), + 2: .same(proto: "intValue"), + 3: .same(proto: "stringValue"), + 4: .same(proto: "boolValue"), + 5: .same(proto: "doubleValue"), + 6: .same(proto: "casObject"), + ] + + public mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.name) }() + case 2: try { + var v: Int64? + try decoder.decodeSingularInt64Field(value: &v) + if let v = v { + if self.value != nil {try decoder.handleConflictingOneOf()} + self.value = .intValue(v) + } + }() + case 3: try { + var v: String? + try decoder.decodeSingularStringField(value: &v) + if let v = v { + if self.value != nil {try decoder.handleConflictingOneOf()} + self.value = .stringValue(v) + } + }() + case 4: try { + var v: Bool? + try decoder.decodeSingularBoolField(value: &v) + if let v = v { + if self.value != nil {try decoder.handleConflictingOneOf()} + self.value = .boolValue(v) + } + }() + case 5: try { + var v: Double? + try decoder.decodeSingularDoubleField(value: &v) + if let v = v { + if self.value != nil {try decoder.handleConflictingOneOf()} + self.value = .doubleValue(v) + } + }() + case 6: try { + var v: Llbuild3_Core_CASObjectID? + var hadOneofValue = false + if let current = self.value { + hadOneofValue = true + if case .casObject(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.value = .casObject(v) + } + }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 1) + } + switch self.value { + case .intValue?: try { + guard case .intValue(let v)? = self.value else { preconditionFailure() } + try visitor.visitSingularInt64Field(value: v, fieldNumber: 2) + }() + case .stringValue?: try { + guard case .stringValue(let v)? = self.value else { preconditionFailure() } + try visitor.visitSingularStringField(value: v, fieldNumber: 3) + }() + case .boolValue?: try { + guard case .boolValue(let v)? = self.value else { preconditionFailure() } + try visitor.visitSingularBoolField(value: v, fieldNumber: 4) + }() + case .doubleValue?: try { + guard case .doubleValue(let v)? = self.value else { preconditionFailure() } + try visitor.visitSingularDoubleField(value: v, fieldNumber: 5) + }() + case .casObject?: try { + guard case .casObject(let v)? = self.value else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + }() + case nil: break + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Llbuild3_Core_ActionStat, rhs: Llbuild3_Core_ActionStat) -> Bool { + if lhs.name != rhs.name {return false} + if lhs.value != rhs.value {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} diff --git a/src/llbuild3/core/ActionCache.proto b/src/llbuild3/core/ActionCache.proto new file mode 100644 index 000000000..0e96e6cf9 --- /dev/null +++ b/src/llbuild3/core/ActionCache.proto @@ -0,0 +1,37 @@ +syntax = "proto3"; + +package llbuild3.core; + +import "llbuild3/core/CAS.proto"; +import "llbuild3/core/Label.proto"; + +// Enum representing the supported action cache key types +enum CacheKeyType { + TASK = 0; + ACTION = 1; +} + +message CacheKey { + Label label = 1; + + CacheKeyType type = 2; + + CASObjectID content = 3; +} + +message CacheValue { + CASObjectID data = 1; + + repeated ActionStat stats = 2; +} + +message ActionStat { + string name = 1; + oneof value { + int64 intValue = 2; + string stringValue = 3; + bool boolValue = 4; + double doubleValue = 5; + CASObjectID casObject = 6; + } +} diff --git a/src/llbuild3/core/ActionCache.swift b/src/llbuild3/core/ActionCache.swift new file mode 100644 index 000000000..a51d057a0 --- /dev/null +++ b/src/llbuild3/core/ActionCache.swift @@ -0,0 +1,87 @@ +//===- ActionCache.swift --------------------------------------*- Swift -*-===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2024 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See http://swift.org/LICENSE.txt for license information +// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// + +public protocol TActionCache { + func get(key: TCacheKey) async throws -> TCacheValue? + func update(key: TCacheKey, value: TCacheValue) async +} + +extension TActionCache { + func extActionCache() -> llbuild3.core.ExtActionCache { + var extcache = llbuild3.core.ExtActionCache() + extcache.ctx = Unmanaged.passRetained(self as AnyObject).toOpaque() + + extcache.getFn = { ctx, kpb, handler in + let key: TCacheKey + do { + key = try TCacheKey(serializedBytes: kpb) + } catch { + let err = TError.with { + $0.type = .engine + $0.code = llbuild3.core.InternalProtobufSerialization.rawValue + $0.description_p = "cache key get" + } + guard let bytes = try? err.serializedData() else { + return + } + handler(std.string(), std.string(fromData: bytes)) + return + } + + let sp = Unmanaged.fromOpaque(ctx!).takeUnretainedValue() as! TActionCache + Task { + do { + if let value = try await sp.get(key: key) { + let bytes = try value.serializedData() + handler(std.string(fromData: bytes), std.string()) + return + } + } catch { + let err: TError + if let terr = error as? TError { + err = terr + } else { + err = TError.with { + $0.type = .client + $0.code = llbuild3.core.Unknown.rawValue + $0.description_p = "\(error)" + } + } + guard let bytes = try? err.serializedData() else { + handler(std.string(), std.string("failed error serialization")) + return + } + + handler(std.string(), std.string(fromData: bytes)) + } + } + } + + extcache.updateFn = { ctx, kpb, vpb in + let key: TCacheKey + let value: TCacheValue + do { + key = try TCacheKey(serializedBytes: kpb) + value = try TCacheValue(serializedBytes: vpb) + } catch { + return + } + + let sp = Unmanaged.fromOpaque(ctx!).takeUnretainedValue() as! TActionCache + Task { + await sp.update(key: key, value: value) + } + } + + return extcache; + } +} diff --git a/src/tritium/core/Artifact.pb.cc b/src/llbuild3/core/Artifact.pb.cc similarity index 77% rename from src/tritium/core/Artifact.pb.cc rename to src/llbuild3/core/Artifact.pb.cc index a35eac296..06814f9a6 100644 --- a/src/tritium/core/Artifact.pb.cc +++ b/src/llbuild3/core/Artifact.pb.cc @@ -1,9 +1,9 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: tritium/core/Artifact.proto +// source: llbuild3/core/Artifact.proto // Protobuf C++ Version: 5.27.2 -#include "tritium/core/Artifact.pb.h" +#include "llbuild3/core/Artifact.pb.h" #include #include @@ -23,7 +23,7 @@ PROTOBUF_PRAGMA_INIT_SEG namespace _pb = ::google::protobuf; namespace _pbi = ::google::protobuf::internal; namespace _fl = ::google::protobuf::internal::field_layout; -namespace tritium { +namespace llbuild3 { namespace core { inline constexpr ListObject::Impl_::Impl_( @@ -80,7 +80,7 @@ inline constexpr Artifact::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, label_{nullptr}, - type_{static_cast< ::tritium::core::ArtifactType >(0)}, + type_{static_cast< ::llbuild3::core::ArtifactType >(0)}, value_{}, _oneof_case_{} {} @@ -98,58 +98,58 @@ struct ArtifactDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArtifactDefaultTypeInternal _Artifact_default_instance_; } // namespace core -} // namespace tritium -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_tritium_2fcore_2fArtifact_2eproto[1]; +} // namespace llbuild3 +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_llbuild3_2fcore_2fArtifact_2eproto[1]; static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_tritium_2fcore_2fArtifact_2eproto = nullptr; + file_level_service_descriptors_llbuild3_2fcore_2fArtifact_2eproto = nullptr; const ::uint32_t - TableStruct_tritium_2fcore_2fArtifact_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + TableStruct_llbuild3_2fcore_2fArtifact_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::tritium::core::DictObject_ContentsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::tritium::core::DictObject_ContentsEntry_DoNotUse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::llbuild3::core::DictObject_ContentsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::llbuild3::core::DictObject_ContentsEntry_DoNotUse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ ~0u, // no _split_ ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tritium::core::DictObject_ContentsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::tritium::core::DictObject_ContentsEntry_DoNotUse, value_), + PROTOBUF_FIELD_OFFSET(::llbuild3::core::DictObject_ContentsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::llbuild3::core::DictObject_ContentsEntry_DoNotUse, value_), 0, 1, ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tritium::core::DictObject, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::llbuild3::core::DictObject, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ ~0u, // no _split_ ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tritium::core::DictObject, _impl_.contents_), + PROTOBUF_FIELD_OFFSET(::llbuild3::core::DictObject, _impl_.contents_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tritium::core::ListObject, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::llbuild3::core::ListObject, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ ~0u, // no _split_ ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tritium::core::ListObject, _impl_.entry_), - PROTOBUF_FIELD_OFFSET(::tritium::core::Artifact, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tritium::core::Artifact, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::llbuild3::core::ListObject, _impl_.entry_), + PROTOBUF_FIELD_OFFSET(::llbuild3::core::Artifact, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::llbuild3::core::Artifact, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::tritium::core::Artifact, _impl_._oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::llbuild3::core::Artifact, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ ~0u, // no _split_ ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::tritium::core::Artifact, _impl_.label_), - PROTOBUF_FIELD_OFFSET(::tritium::core::Artifact, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::llbuild3::core::Artifact, _impl_.label_), + PROTOBUF_FIELD_OFFSET(::llbuild3::core::Artifact, _impl_.type_), ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::tritium::core::Artifact, _impl_.value_), + PROTOBUF_FIELD_OFFSET(::llbuild3::core::Artifact, _impl_.value_), 0, ~0u, ~0u, @@ -160,62 +160,62 @@ const ::uint32_t static const ::_pbi::MigrationSchema schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, 10, -1, sizeof(::tritium::core::DictObject_ContentsEntry_DoNotUse)}, - {12, -1, -1, sizeof(::tritium::core::DictObject)}, - {21, -1, -1, sizeof(::tritium::core::ListObject)}, - {30, 45, -1, sizeof(::tritium::core::Artifact)}, + {0, 10, -1, sizeof(::llbuild3::core::DictObject_ContentsEntry_DoNotUse)}, + {12, -1, -1, sizeof(::llbuild3::core::DictObject)}, + {21, -1, -1, sizeof(::llbuild3::core::ListObject)}, + {30, 45, -1, sizeof(::llbuild3::core::Artifact)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::tritium::core::_DictObject_ContentsEntry_DoNotUse_default_instance_._instance, - &::tritium::core::_DictObject_default_instance_._instance, - &::tritium::core::_ListObject_default_instance_._instance, - &::tritium::core::_Artifact_default_instance_._instance, + &::llbuild3::core::_DictObject_ContentsEntry_DoNotUse_default_instance_._instance, + &::llbuild3::core::_DictObject_default_instance_._instance, + &::llbuild3::core::_ListObject_default_instance_._instance, + &::llbuild3::core::_Artifact_default_instance_._instance, }; -const char descriptor_table_protodef_tritium_2fcore_2fArtifact_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( +const char descriptor_table_protodef_llbuild3_2fcore_2fArtifact_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( protodesc_cold) = { - "\n\033tritium/core/Artifact.proto\022\014tritium.c" - "ore\032\036tritium/core/CASObjectID.proto\032\030tri" - "tium/core/Label.proto\"w\n\nDictObject\0228\n\010c" - "ontents\030\003 \003(\0132&.tritium.core.DictObject." - "ContentsEntry\032/\n\rContentsEntry\022\013\n\003key\030\001 " - "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\033\n\nListObject\022\r\n\005" - "entry\030\003 \003(\t\"\365\001\n\010Artifact\022\"\n\005label\030\001 \001(\0132" - "\023.tritium.core.Label\022(\n\004type\030\002 \001(\0162\032.tri" - "tium.core.ArtifactType\022.\n\tcasObject\030\003 \001(" - "\0132\031.tritium.core.CASObjectIDH\000\022\016\n\004blob\030\004" - " \001(\014H\000\022(\n\004dict\030\005 \001(\0132\030.tritium.core.Dict" - "ObjectH\000\022(\n\004list\030\006 \001(\0132\030.tritium.core.Li" - "stObjectH\000B\007\n\005value*V\n\014ArtifactType\022\010\n\004F" - "ILE\020\000\022\r\n\tDIRECTORY\020\001\022\010\n\004BLOB\020\002\022\010\n\004DICT\020\003" - "\022\010\n\004LIST\020\004\022\017\n\013BUILD_GRAPH\020\005b\006proto3" + "\n\034llbuild3/core/Artifact.proto\022\rllbuild3" + ".core\032\027llbuild3/core/CAS.proto\032\031llbuild3" + "/core/Label.proto\"x\n\nDictObject\0229\n\010conte" + "nts\030\003 \003(\0132\'.llbuild3.core.DictObject.Con" + "tentsEntry\032/\n\rContentsEntry\022\013\n\003key\030\001 \001(\t" + "\022\r\n\005value\030\002 \001(\t:\0028\001\"\033\n\nListObject\022\r\n\005ent" + "ry\030\003 \003(\t\"\372\001\n\010Artifact\022#\n\005label\030\001 \001(\0132\024.l" + "lbuild3.core.Label\022)\n\004type\030\002 \001(\0162\033.llbui" + "ld3.core.ArtifactType\022/\n\tcasObject\030\003 \001(\013" + "2\032.llbuild3.core.CASObjectIDH\000\022\016\n\004blob\030\004" + " \001(\014H\000\022)\n\004dict\030\005 \001(\0132\031.llbuild3.core.Dic" + "tObjectH\000\022)\n\004list\030\006 \001(\0132\031.llbuild3.core." + "ListObjectH\000B\007\n\005value*V\n\014ArtifactType\022\010\n" + "\004FILE\020\000\022\r\n\tDIRECTORY\020\001\022\010\n\004BLOB\020\002\022\010\n\004DICT" + "\020\003\022\010\n\004LIST\020\004\022\017\n\013BUILD_GRAPH\020\005b\006proto3" }; -static const ::_pbi::DescriptorTable* const descriptor_table_tritium_2fcore_2fArtifact_2eproto_deps[2] = +static const ::_pbi::DescriptorTable* const descriptor_table_llbuild3_2fcore_2fArtifact_2eproto_deps[2] = { - &::descriptor_table_tritium_2fcore_2fCASObjectID_2eproto, - &::descriptor_table_tritium_2fcore_2fLabel_2eproto, + &::descriptor_table_llbuild3_2fcore_2fCAS_2eproto, + &::descriptor_table_llbuild3_2fcore_2fLabel_2eproto, }; -static ::absl::once_flag descriptor_table_tritium_2fcore_2fArtifact_2eproto_once; -PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_tritium_2fcore_2fArtifact_2eproto = { +static ::absl::once_flag descriptor_table_llbuild3_2fcore_2fArtifact_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_llbuild3_2fcore_2fArtifact_2eproto = { false, false, - 595, - descriptor_table_protodef_tritium_2fcore_2fArtifact_2eproto, - "tritium/core/Artifact.proto", - &descriptor_table_tritium_2fcore_2fArtifact_2eproto_once, - descriptor_table_tritium_2fcore_2fArtifact_2eproto_deps, + 597, + descriptor_table_protodef_llbuild3_2fcore_2fArtifact_2eproto, + "llbuild3/core/Artifact.proto", + &descriptor_table_llbuild3_2fcore_2fArtifact_2eproto_once, + descriptor_table_llbuild3_2fcore_2fArtifact_2eproto_deps, 2, 4, schemas, file_default_instances, - TableStruct_tritium_2fcore_2fArtifact_2eproto::offsets, - file_level_enum_descriptors_tritium_2fcore_2fArtifact_2eproto, - file_level_service_descriptors_tritium_2fcore_2fArtifact_2eproto, + TableStruct_llbuild3_2fcore_2fArtifact_2eproto::offsets, + file_level_enum_descriptors_llbuild3_2fcore_2fArtifact_2eproto, + file_level_service_descriptors_llbuild3_2fcore_2fArtifact_2eproto, }; -namespace tritium { +namespace llbuild3 { namespace core { const ::google::protobuf::EnumDescriptor* ArtifactType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_tritium_2fcore_2fArtifact_2eproto); - return file_level_enum_descriptors_tritium_2fcore_2fArtifact_2eproto[0]; + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_llbuild3_2fcore_2fArtifact_2eproto); + return file_level_enum_descriptors_llbuild3_2fcore_2fArtifact_2eproto[0]; } PROTOBUF_CONSTINIT const uint32_t ArtifactType_internal_data_[] = { 393216u, 0u, }; @@ -239,7 +239,7 @@ DictObject_ContentsEntry_DoNotUse::GetClassData() const { }, &DictObject_ContentsEntry_DoNotUse::MergeImpl, &DictObject_ContentsEntry_DoNotUse::kDescriptorMethods, - &descriptor_table_tritium_2fcore_2fArtifact_2eproto, + &descriptor_table_llbuild3_2fcore_2fArtifact_2eproto, nullptr, // tracker }; ::google::protobuf::internal::PrefetchToLocalCache(&_data_); @@ -255,11 +255,11 @@ class DictObject::_Internal { DictObject::DictObject(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tritium.core.DictObject) + // @@protoc_insertion_point(arena_constructor:llbuild3.core.DictObject) } inline PROTOBUF_NDEBUG_INLINE DictObject::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::tritium::core::DictObject& from_msg) + const Impl_& from, const ::llbuild3::core::DictObject& from_msg) : contents_{visibility, arena, from.contents_}, _cached_size_{0} {} @@ -273,7 +273,7 @@ DictObject::DictObject( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - // @@protoc_insertion_point(copy_constructor:tritium.core.DictObject) + // @@protoc_insertion_point(copy_constructor:llbuild3.core.DictObject) } inline PROTOBUF_NDEBUG_INLINE DictObject::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, @@ -285,7 +285,7 @@ inline void DictObject::SharedCtor(::_pb::Arena* arena) { new (&_impl_) Impl_(internal_visibility(), arena); } DictObject::~DictObject() { - // @@protoc_insertion_point(destructor:tritium.core.DictObject) + // @@protoc_insertion_point(destructor:llbuild3.core.DictObject) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } @@ -307,7 +307,7 @@ DictObject::GetClassData() const { }, &DictObject::MergeImpl, &DictObject::kDescriptorMethods, - &descriptor_table_tritium_2fcore_2fArtifact_2eproto, + &descriptor_table_llbuild3_2fcore_2fArtifact_2eproto, nullptr, // tracker }; ::google::protobuf::internal::PrefetchToLocalCache(&_data_); @@ -315,7 +315,7 @@ DictObject::GetClassData() const { return _data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 40, 2> DictObject::_table_ = { +const ::_pbi::TcParseTable<0, 1, 1, 41, 2> DictObject::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ @@ -330,7 +330,7 @@ const ::_pbi::TcParseTable<0, 1, 1, 40, 2> DictObject::_table_ = { nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tritium::core::DictObject>(), // to_prefetch + ::_pbi::TcParser::GetTable<::llbuild3::core::DictObject>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, @@ -346,14 +346,14 @@ const ::_pbi::TcParseTable<0, 1, 1, 40, 2> DictObject::_table_ = { 1, 0, 0, 9, 9)}, }}, {{ - "\27\10\0\0\0\0\0\0" - "tritium.core.DictObject" + "\30\10\0\0\0\0\0\0" + "llbuild3.core.DictObject" "contents" }}, }; PROTOBUF_NOINLINE void DictObject::Clear() { -// @@protoc_insertion_point(message_clear_start:tritium.core.DictObject) +// @@protoc_insertion_point(message_clear_start:llbuild3.core.DictObject) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused @@ -366,7 +366,7 @@ PROTOBUF_NOINLINE void DictObject::Clear() { ::uint8_t* DictObject::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tritium.core.DictObject) + // @@protoc_insertion_point(serialize_to_array_start:llbuild3.core.DictObject) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; @@ -384,10 +384,10 @@ ::uint8_t* DictObject::_InternalSerialize( 3, entry.first, entry.second, target, stream); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tritium.core.DictObject.contents"); + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "llbuild3.core.DictObject.contents"); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tritium.core.DictObject.contents"); + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "llbuild3.core.DictObject.contents"); } } else { for (const auto& entry : field) { @@ -395,10 +395,10 @@ ::uint8_t* DictObject::_InternalSerialize( 3, entry.first, entry.second, target, stream); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( entry.first.data(), static_cast(entry.first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tritium.core.DictObject.contents"); + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "llbuild3.core.DictObject.contents"); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( entry.second.data(), static_cast(entry.second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tritium.core.DictObject.contents"); + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "llbuild3.core.DictObject.contents"); } } } @@ -408,12 +408,12 @@ ::uint8_t* DictObject::_InternalSerialize( ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:tritium.core.DictObject) + // @@protoc_insertion_point(serialize_to_array_end:llbuild3.core.DictObject) return target; } ::size_t DictObject::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tritium.core.DictObject) +// @@protoc_insertion_point(message_byte_size_start:llbuild3.core.DictObject) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; @@ -435,7 +435,7 @@ ::size_t DictObject::ByteSizeLong() const { void DictObject::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); - // @@protoc_insertion_point(class_specific_merge_from_start:tritium.core.DictObject) + // @@protoc_insertion_point(class_specific_merge_from_start:llbuild3.core.DictObject) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -445,7 +445,7 @@ void DictObject::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goog } void DictObject::CopyFrom(const DictObject& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tritium.core.DictObject) +// @@protoc_insertion_point(class_specific_copy_from_start:llbuild3.core.DictObject) if (&from == this) return; Clear(); MergeFrom(from); @@ -470,11 +470,11 @@ class ListObject::_Internal { ListObject::ListObject(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tritium.core.ListObject) + // @@protoc_insertion_point(arena_constructor:llbuild3.core.ListObject) } inline PROTOBUF_NDEBUG_INLINE ListObject::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::tritium::core::ListObject& from_msg) + const Impl_& from, const ::llbuild3::core::ListObject& from_msg) : entry_{visibility, arena, from.entry_}, _cached_size_{0} {} @@ -488,7 +488,7 @@ ListObject::ListObject( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - // @@protoc_insertion_point(copy_constructor:tritium.core.ListObject) + // @@protoc_insertion_point(copy_constructor:llbuild3.core.ListObject) } inline PROTOBUF_NDEBUG_INLINE ListObject::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, @@ -500,7 +500,7 @@ inline void ListObject::SharedCtor(::_pb::Arena* arena) { new (&_impl_) Impl_(internal_visibility(), arena); } ListObject::~ListObject() { - // @@protoc_insertion_point(destructor:tritium.core.ListObject) + // @@protoc_insertion_point(destructor:llbuild3.core.ListObject) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } @@ -522,7 +522,7 @@ ListObject::GetClassData() const { }, &ListObject::MergeImpl, &ListObject::kDescriptorMethods, - &descriptor_table_tritium_2fcore_2fArtifact_2eproto, + &descriptor_table_llbuild3_2fcore_2fArtifact_2eproto, nullptr, // tracker }; ::google::protobuf::internal::PrefetchToLocalCache(&_data_); @@ -530,7 +530,7 @@ ListObject::GetClassData() const { return _data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 37, 2> ListObject::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 38, 2> ListObject::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ @@ -545,7 +545,7 @@ const ::_pbi::TcParseTable<0, 1, 0, 37, 2> ListObject::_table_ = { nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tritium::core::ListObject>(), // to_prefetch + ::_pbi::TcParser::GetTable<::llbuild3::core::ListObject>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // repeated string entry = 3; @@ -560,14 +560,14 @@ const ::_pbi::TcParseTable<0, 1, 0, 37, 2> ListObject::_table_ = { }}, // no aux_entries {{ - "\27\5\0\0\0\0\0\0" - "tritium.core.ListObject" + "\30\5\0\0\0\0\0\0" + "llbuild3.core.ListObject" "entry" }}, }; PROTOBUF_NOINLINE void ListObject::Clear() { -// @@protoc_insertion_point(message_clear_start:tritium.core.ListObject) +// @@protoc_insertion_point(message_clear_start:llbuild3.core.ListObject) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused @@ -580,7 +580,7 @@ PROTOBUF_NOINLINE void ListObject::Clear() { ::uint8_t* ListObject::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tritium.core.ListObject) + // @@protoc_insertion_point(serialize_to_array_start:llbuild3.core.ListObject) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; @@ -588,7 +588,7 @@ ::uint8_t* ListObject::_InternalSerialize( for (int i = 0, n = this->_internal_entry_size(); i < n; ++i) { const auto& s = this->_internal_entry().Get(i); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tritium.core.ListObject.entry"); + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "llbuild3.core.ListObject.entry"); target = stream->WriteString(3, s, target); } @@ -597,12 +597,12 @@ ::uint8_t* ListObject::_InternalSerialize( ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:tritium.core.ListObject) + // @@protoc_insertion_point(serialize_to_array_end:llbuild3.core.ListObject) return target; } ::size_t ListObject::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tritium.core.ListObject) +// @@protoc_insertion_point(message_byte_size_start:llbuild3.core.ListObject) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; @@ -623,7 +623,7 @@ ::size_t ListObject::ByteSizeLong() const { void ListObject::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); - // @@protoc_insertion_point(class_specific_merge_from_start:tritium.core.ListObject) + // @@protoc_insertion_point(class_specific_merge_from_start:llbuild3.core.ListObject) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -633,7 +633,7 @@ void ListObject::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goog } void ListObject::CopyFrom(const ListObject& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tritium.core.ListObject) +// @@protoc_insertion_point(class_specific_copy_from_start:llbuild3.core.ListObject) if (&from == this) return; Clear(); MergeFrom(from); @@ -658,7 +658,7 @@ class Artifact::_Internal { static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(Artifact, _impl_._has_bits_); static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::tritium::core::Artifact, _impl_._oneof_case_); + PROTOBUF_FIELD_OFFSET(::llbuild3::core::Artifact, _impl_._oneof_case_); }; void Artifact::clear_label() { @@ -666,7 +666,7 @@ void Artifact::clear_label() { if (_impl_.label_ != nullptr) _impl_.label_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } -void Artifact::set_allocated_casobject(::tritium::core::CASObjectID* casobject) { +void Artifact::set_allocated_casobject(::llbuild3::core::CASObjectID* casobject) { ::google::protobuf::Arena* message_arena = GetArena(); clear_value(); if (casobject) { @@ -677,7 +677,7 @@ void Artifact::set_allocated_casobject(::tritium::core::CASObjectID* casobject) set_has_casobject(); _impl_.value_.casobject_ = casobject; } - // @@protoc_insertion_point(field_set_allocated:tritium.core.Artifact.casObject) + // @@protoc_insertion_point(field_set_allocated:llbuild3.core.Artifact.casObject) } void Artifact::clear_casobject() { ::google::protobuf::internal::TSanWrite(&_impl_); @@ -690,7 +690,7 @@ void Artifact::clear_casobject() { clear_has_value(); } } -void Artifact::set_allocated_dict(::tritium::core::DictObject* dict) { +void Artifact::set_allocated_dict(::llbuild3::core::DictObject* dict) { ::google::protobuf::Arena* message_arena = GetArena(); clear_value(); if (dict) { @@ -701,9 +701,9 @@ void Artifact::set_allocated_dict(::tritium::core::DictObject* dict) { set_has_dict(); _impl_.value_.dict_ = dict; } - // @@protoc_insertion_point(field_set_allocated:tritium.core.Artifact.dict) + // @@protoc_insertion_point(field_set_allocated:llbuild3.core.Artifact.dict) } -void Artifact::set_allocated_list(::tritium::core::ListObject* list) { +void Artifact::set_allocated_list(::llbuild3::core::ListObject* list) { ::google::protobuf::Arena* message_arena = GetArena(); clear_value(); if (list) { @@ -714,16 +714,16 @@ void Artifact::set_allocated_list(::tritium::core::ListObject* list) { set_has_list(); _impl_.value_.list_ = list; } - // @@protoc_insertion_point(field_set_allocated:tritium.core.Artifact.list) + // @@protoc_insertion_point(field_set_allocated:llbuild3.core.Artifact.list) } Artifact::Artifact(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tritium.core.Artifact) + // @@protoc_insertion_point(arena_constructor:llbuild3.core.Artifact) } inline PROTOBUF_NDEBUG_INLINE Artifact::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::tritium::core::Artifact& from_msg) + const Impl_& from, const ::llbuild3::core::Artifact& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, value_{}, @@ -739,7 +739,7 @@ Artifact::Artifact( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.label_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tritium::core::Label>( + _impl_.label_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::llbuild3::core::Label>( arena, *from._impl_.label_) : nullptr; _impl_.type_ = from._impl_.type_; @@ -747,20 +747,20 @@ Artifact::Artifact( case VALUE_NOT_SET: break; case kCasObject: - _impl_.value_.casobject_ = ::google::protobuf::Message::CopyConstruct<::tritium::core::CASObjectID>(arena, *from._impl_.value_.casobject_); + _impl_.value_.casobject_ = ::google::protobuf::Message::CopyConstruct<::llbuild3::core::CASObjectID>(arena, *from._impl_.value_.casobject_); break; case kBlob: new (&_impl_.value_.blob_) decltype(_impl_.value_.blob_){arena, from._impl_.value_.blob_}; break; case kDict: - _impl_.value_.dict_ = ::google::protobuf::Message::CopyConstruct<::tritium::core::DictObject>(arena, *from._impl_.value_.dict_); + _impl_.value_.dict_ = ::google::protobuf::Message::CopyConstruct<::llbuild3::core::DictObject>(arena, *from._impl_.value_.dict_); break; case kList: - _impl_.value_.list_ = ::google::protobuf::Message::CopyConstruct<::tritium::core::ListObject>(arena, *from._impl_.value_.list_); + _impl_.value_.list_ = ::google::protobuf::Message::CopyConstruct<::llbuild3::core::ListObject>(arena, *from._impl_.value_.list_); break; } - // @@protoc_insertion_point(copy_constructor:tritium.core.Artifact) + // @@protoc_insertion_point(copy_constructor:llbuild3.core.Artifact) } inline PROTOBUF_NDEBUG_INLINE Artifact::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, @@ -779,7 +779,7 @@ inline void Artifact::SharedCtor(::_pb::Arena* arena) { sizeof(Impl_::type_)); } Artifact::~Artifact() { - // @@protoc_insertion_point(destructor:tritium.core.Artifact) + // @@protoc_insertion_point(destructor:llbuild3.core.Artifact) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } @@ -793,7 +793,7 @@ inline void Artifact::SharedDtor() { } void Artifact::clear_value() { -// @@protoc_insertion_point(one_of_clear_start:tritium.core.Artifact) +// @@protoc_insertion_point(one_of_clear_start:llbuild3.core.Artifact) ::google::protobuf::internal::TSanWrite(&_impl_); switch (value_case()) { case kCasObject: { @@ -845,7 +845,7 @@ Artifact::GetClassData() const { }, &Artifact::MergeImpl, &Artifact::kDescriptorMethods, - &descriptor_table_tritium_2fcore_2fArtifact_2eproto, + &descriptor_table_llbuild3_2fcore_2fArtifact_2eproto, nullptr, // tracker }; ::google::protobuf::internal::PrefetchToLocalCache(&_data_); @@ -868,47 +868,47 @@ const ::_pbi::TcParseTable<1, 6, 4, 0, 2> Artifact::_table_ = { nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tritium::core::Artifact>(), // to_prefetch + ::_pbi::TcParser::GetTable<::llbuild3::core::Artifact>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ - // .tritium.core.ArtifactType type = 2; + // .llbuild3.core.ArtifactType type = 2; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Artifact, _impl_.type_), 63>(), {16, 63, 0, PROTOBUF_FIELD_OFFSET(Artifact, _impl_.type_)}}, - // .tritium.core.Label label = 1; + // .llbuild3.core.Label label = 1; {::_pbi::TcParser::FastMtS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(Artifact, _impl_.label_)}}, }}, {{ 65535, 65535 }}, {{ - // .tritium.core.Label label = 1; + // .llbuild3.core.Label label = 1; {PROTOBUF_FIELD_OFFSET(Artifact, _impl_.label_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .tritium.core.ArtifactType type = 2; + // .llbuild3.core.ArtifactType type = 2; {PROTOBUF_FIELD_OFFSET(Artifact, _impl_.type_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // .tritium.core.CASObjectID casObject = 3; + // .llbuild3.core.CASObjectID casObject = 3; {PROTOBUF_FIELD_OFFSET(Artifact, _impl_.value_.casobject_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, // bytes blob = 4; {PROTOBUF_FIELD_OFFSET(Artifact, _impl_.value_.blob_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)}, - // .tritium.core.DictObject dict = 5; + // .llbuild3.core.DictObject dict = 5; {PROTOBUF_FIELD_OFFSET(Artifact, _impl_.value_.dict_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .tritium.core.ListObject list = 6; + // .llbuild3.core.ListObject list = 6; {PROTOBUF_FIELD_OFFSET(Artifact, _impl_.value_.list_), _Internal::kOneofCaseOffset + 0, 3, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ - {::_pbi::TcParser::GetTable<::tritium::core::Label>()}, - {::_pbi::TcParser::GetTable<::tritium::core::CASObjectID>()}, - {::_pbi::TcParser::GetTable<::tritium::core::DictObject>()}, - {::_pbi::TcParser::GetTable<::tritium::core::ListObject>()}, + {::_pbi::TcParser::GetTable<::llbuild3::core::Label>()}, + {::_pbi::TcParser::GetTable<::llbuild3::core::CASObjectID>()}, + {::_pbi::TcParser::GetTable<::llbuild3::core::DictObject>()}, + {::_pbi::TcParser::GetTable<::llbuild3::core::ListObject>()}, }}, {{ }}, }; PROTOBUF_NOINLINE void Artifact::Clear() { -// @@protoc_insertion_point(message_clear_start:tritium.core.Artifact) +// @@protoc_insertion_point(message_clear_start:llbuild3.core.Artifact) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused @@ -928,18 +928,18 @@ PROTOBUF_NOINLINE void Artifact::Clear() { ::uint8_t* Artifact::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tritium.core.Artifact) + // @@protoc_insertion_point(serialize_to_array_start:llbuild3.core.Artifact) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - // .tritium.core.Label label = 1; + // .llbuild3.core.Label label = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 1, *_impl_.label_, _impl_.label_->GetCachedSize(), target, stream); } - // .tritium.core.ArtifactType type = 2; + // .llbuild3.core.ArtifactType type = 2; if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( @@ -975,12 +975,12 @@ ::uint8_t* Artifact::_InternalSerialize( ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:tritium.core.Artifact) + // @@protoc_insertion_point(serialize_to_array_end:llbuild3.core.Artifact) return target; } ::size_t Artifact::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tritium.core.Artifact) +// @@protoc_insertion_point(message_byte_size_start:llbuild3.core.Artifact) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; @@ -988,21 +988,21 @@ ::size_t Artifact::ByteSizeLong() const { (void) cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(reinterpret_cast(this)); - // .tritium.core.Label label = 1; + // .llbuild3.core.Label label = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.label_); } - // .tritium.core.ArtifactType type = 2; + // .llbuild3.core.ArtifactType type = 2; if (this->_internal_type() != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); } switch (value_case()) { - // .tritium.core.CASObjectID casObject = 3; + // .llbuild3.core.CASObjectID casObject = 3; case kCasObject: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_.casobject_); @@ -1014,13 +1014,13 @@ ::size_t Artifact::ByteSizeLong() const { this->_internal_blob()); break; } - // .tritium.core.DictObject dict = 5; + // .llbuild3.core.DictObject dict = 5; case kDict: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_.dict_); break; } - // .tritium.core.ListObject list = 6; + // .llbuild3.core.ListObject list = 6; case kList: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_.list_); @@ -1038,7 +1038,7 @@ void Artifact::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:tritium.core.Artifact) + // @@protoc_insertion_point(class_specific_merge_from_start:llbuild3.core.Artifact) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -1048,7 +1048,7 @@ void Artifact::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google ABSL_DCHECK(from._impl_.label_ != nullptr); if (_this->_impl_.label_ == nullptr) { _this->_impl_.label_ = - ::google::protobuf::Message::CopyConstruct<::tritium::core::Label>(arena, *from._impl_.label_); + ::google::protobuf::Message::CopyConstruct<::llbuild3::core::Label>(arena, *from._impl_.label_); } else { _this->_impl_.label_->MergeFrom(*from._impl_.label_); } @@ -1071,7 +1071,7 @@ void Artifact::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google case kCasObject: { if (oneof_needs_init) { _this->_impl_.value_.casobject_ = - ::google::protobuf::Message::CopyConstruct<::tritium::core::CASObjectID>(arena, *from._impl_.value_.casobject_); + ::google::protobuf::Message::CopyConstruct<::llbuild3::core::CASObjectID>(arena, *from._impl_.value_.casobject_); } else { _this->_impl_.value_.casobject_->MergeFrom(from._internal_casobject()); } @@ -1087,7 +1087,7 @@ void Artifact::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google case kDict: { if (oneof_needs_init) { _this->_impl_.value_.dict_ = - ::google::protobuf::Message::CopyConstruct<::tritium::core::DictObject>(arena, *from._impl_.value_.dict_); + ::google::protobuf::Message::CopyConstruct<::llbuild3::core::DictObject>(arena, *from._impl_.value_.dict_); } else { _this->_impl_.value_.dict_->MergeFrom(from._internal_dict()); } @@ -1096,7 +1096,7 @@ void Artifact::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google case kList: { if (oneof_needs_init) { _this->_impl_.value_.list_ = - ::google::protobuf::Message::CopyConstruct<::tritium::core::ListObject>(arena, *from._impl_.value_.list_); + ::google::protobuf::Message::CopyConstruct<::llbuild3::core::ListObject>(arena, *from._impl_.value_.list_); } else { _this->_impl_.value_.list_->MergeFrom(from._internal_list()); } @@ -1110,7 +1110,7 @@ void Artifact::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google } void Artifact::CopyFrom(const Artifact& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tritium.core.Artifact) +// @@protoc_insertion_point(class_specific_copy_from_start:llbuild3.core.Artifact) if (&from == this) return; Clear(); MergeFrom(from); @@ -1136,7 +1136,7 @@ ::google::protobuf::Metadata Artifact::GetMetadata() const { } // @@protoc_insertion_point(namespace_scope) } // namespace core -} // namespace tritium +} // namespace llbuild3 namespace google { namespace protobuf { } // namespace protobuf @@ -1144,6 +1144,6 @@ namespace protobuf { // @@protoc_insertion_point(global_scope) PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type _static_init2_ PROTOBUF_UNUSED = - (::_pbi::AddDescriptors(&descriptor_table_tritium_2fcore_2fArtifact_2eproto), + (::_pbi::AddDescriptors(&descriptor_table_llbuild3_2fcore_2fArtifact_2eproto), ::std::false_type{}); #include "google/protobuf/port_undef.inc" diff --git a/src/tritium/core/Artifact.pb.h b/src/llbuild3/core/Artifact.pb.h similarity index 76% rename from src/tritium/core/Artifact.pb.h rename to src/llbuild3/core/Artifact.pb.h index e30298d6c..709febe28 100644 --- a/src/tritium/core/Artifact.pb.h +++ b/src/llbuild3/core/Artifact.pb.h @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: tritium/core/Artifact.proto +// source: llbuild3/core/Artifact.proto // Protobuf C++ Version: 5.27.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_tritium_2fcore_2fArtifact_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_tritium_2fcore_2fArtifact_2eproto_2epb_2eh +#ifndef GOOGLE_PROTOBUF_INCLUDED_llbuild3_2fcore_2fArtifact_2eproto_2epb_2eh +#define GOOGLE_PROTOBUF_INCLUDED_llbuild3_2fcore_2fArtifact_2eproto_2epb_2eh #include #include @@ -32,14 +32,14 @@ #include "google/protobuf/map_field_inl.h" #include "google/protobuf/generated_enum_reflection.h" #include "google/protobuf/unknown_field_set.h" -#include "tritium/core/CASObjectID.pb.h" -#include "tritium/core/Label.pb.h" +#include "llbuild3/core/CAS.pb.h" +#include "llbuild3/core/Label.pb.h" // @@protoc_insertion_point(includes) // Must be included last. #include "google/protobuf/port_def.inc" -#define PROTOBUF_INTERNAL_EXPORT_tritium_2fcore_2fArtifact_2eproto +#define PROTOBUF_INTERNAL_EXPORT_llbuild3_2fcore_2fArtifact_2eproto namespace google { namespace protobuf { @@ -50,12 +50,12 @@ class AnyMetadata; } // namespace google // Internal implementation detail -- do not use these members. -struct TableStruct_tritium_2fcore_2fArtifact_2eproto { +struct TableStruct_llbuild3_2fcore_2fArtifact_2eproto { static const ::uint32_t offsets[]; }; extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_tritium_2fcore_2fArtifact_2eproto; -namespace tritium { + descriptor_table_llbuild3_2fcore_2fArtifact_2eproto; +namespace llbuild3 { namespace core { class Artifact; struct ArtifactDefaultTypeInternal; @@ -70,13 +70,13 @@ class ListObject; struct ListObjectDefaultTypeInternal; extern ListObjectDefaultTypeInternal _ListObject_default_instance_; } // namespace core -} // namespace tritium +} // namespace llbuild3 namespace google { namespace protobuf { } // namespace protobuf } // namespace google -namespace tritium { +namespace llbuild3 { namespace core { enum ArtifactType : int { FILE = 0, @@ -122,7 +122,7 @@ inline bool ArtifactType_Parse(absl::string_view name, ArtifactType* value) { // ------------------------------------------------------------------- class ListObject final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tritium.core.ListObject) */ { +/* @@protoc_insertion_point(class_definition:llbuild3.core.ListObject) */ { public: inline ListObject() : ListObject(nullptr) {} ~ListObject() override; @@ -228,7 +228,7 @@ class ListObject final : public ::google::protobuf::Message void InternalSwap(ListObject* other); private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tritium.core.ListObject"; } + static ::absl::string_view FullMessageName() { return "llbuild3.core.ListObject"; } protected: explicit ListObject(::google::protobuf::Arena* arena); @@ -275,13 +275,13 @@ class ListObject final : public ::google::protobuf::Message ::google::protobuf::RepeatedPtrField* _internal_mutable_entry(); public: - // @@protoc_insertion_point(class_scope:tritium.core.ListObject) + // @@protoc_insertion_point(class_scope:llbuild3.core.ListObject) private: class _Internal; friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, - 37, 2> + 38, 2> _table_; static constexpr const void* _raw_default_instance_ = @@ -306,7 +306,7 @@ class ListObject final : public ::google::protobuf::Message PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; - friend struct ::TableStruct_tritium_2fcore_2fArtifact_2eproto; + friend struct ::TableStruct_llbuild3_2fcore_2fArtifact_2eproto; }; // ------------------------------------------------------------------- @@ -330,12 +330,12 @@ class DictObject_ContentsEntry_DoNotUse final &_DictObject_ContentsEntry_DoNotUse_default_instance_); } const ::google::protobuf::Message::ClassData* GetClassData() const final; - friend struct ::TableStruct_tritium_2fcore_2fArtifact_2eproto; + friend struct ::TableStruct_llbuild3_2fcore_2fArtifact_2eproto; }; // ------------------------------------------------------------------- class DictObject final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tritium.core.DictObject) */ { +/* @@protoc_insertion_point(class_definition:llbuild3.core.DictObject) */ { public: inline DictObject() : DictObject(nullptr) {} ~DictObject() override; @@ -441,7 +441,7 @@ class DictObject final : public ::google::protobuf::Message void InternalSwap(DictObject* other); private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tritium.core.DictObject"; } + static ::absl::string_view FullMessageName() { return "llbuild3.core.DictObject"; } protected: explicit DictObject(::google::protobuf::Arena* arena); @@ -475,13 +475,13 @@ class DictObject final : public ::google::protobuf::Message ::google::protobuf::Map* _internal_mutable_contents(); public: - // @@protoc_insertion_point(class_scope:tritium.core.DictObject) + // @@protoc_insertion_point(class_scope:llbuild3.core.DictObject) private: class _Internal; friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, - 40, 2> + 41, 2> _table_; static constexpr const void* _raw_default_instance_ = @@ -509,12 +509,12 @@ class DictObject final : public ::google::protobuf::Message PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; - friend struct ::TableStruct_tritium_2fcore_2fArtifact_2eproto; + friend struct ::TableStruct_llbuild3_2fcore_2fArtifact_2eproto; }; // ------------------------------------------------------------------- class Artifact final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tritium.core.Artifact) */ { +/* @@protoc_insertion_point(class_definition:llbuild3.core.Artifact) */ { public: inline Artifact() : Artifact(nullptr) {} ~Artifact() override; @@ -627,7 +627,7 @@ class Artifact final : public ::google::protobuf::Message void InternalSwap(Artifact* other); private: friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tritium.core.Artifact"; } + static ::absl::string_view FullMessageName() { return "llbuild3.core.Artifact"; } protected: explicit Artifact(::google::protobuf::Arena* arena); @@ -651,48 +651,48 @@ class Artifact final : public ::google::protobuf::Message kDictFieldNumber = 5, kListFieldNumber = 6, }; - // .tritium.core.Label label = 1; + // .llbuild3.core.Label label = 1; bool has_label() const; void clear_label() ; - const ::tritium::core::Label& label() const; - PROTOBUF_NODISCARD ::tritium::core::Label* release_label(); - ::tritium::core::Label* mutable_label(); - void set_allocated_label(::tritium::core::Label* value); - void unsafe_arena_set_allocated_label(::tritium::core::Label* value); - ::tritium::core::Label* unsafe_arena_release_label(); + const ::llbuild3::core::Label& label() const; + PROTOBUF_NODISCARD ::llbuild3::core::Label* release_label(); + ::llbuild3::core::Label* mutable_label(); + void set_allocated_label(::llbuild3::core::Label* value); + void unsafe_arena_set_allocated_label(::llbuild3::core::Label* value); + ::llbuild3::core::Label* unsafe_arena_release_label(); private: - const ::tritium::core::Label& _internal_label() const; - ::tritium::core::Label* _internal_mutable_label(); + const ::llbuild3::core::Label& _internal_label() const; + ::llbuild3::core::Label* _internal_mutable_label(); public: - // .tritium.core.ArtifactType type = 2; + // .llbuild3.core.ArtifactType type = 2; void clear_type() ; - ::tritium::core::ArtifactType type() const; - void set_type(::tritium::core::ArtifactType value); + ::llbuild3::core::ArtifactType type() const; + void set_type(::llbuild3::core::ArtifactType value); private: - ::tritium::core::ArtifactType _internal_type() const; - void _internal_set_type(::tritium::core::ArtifactType value); + ::llbuild3::core::ArtifactType _internal_type() const; + void _internal_set_type(::llbuild3::core::ArtifactType value); public: - // .tritium.core.CASObjectID casObject = 3; + // .llbuild3.core.CASObjectID casObject = 3; bool has_casobject() const; private: bool _internal_has_casobject() const; public: void clear_casobject() ; - const ::tritium::core::CASObjectID& casobject() const; - PROTOBUF_NODISCARD ::tritium::core::CASObjectID* release_casobject(); - ::tritium::core::CASObjectID* mutable_casobject(); - void set_allocated_casobject(::tritium::core::CASObjectID* value); - void unsafe_arena_set_allocated_casobject(::tritium::core::CASObjectID* value); - ::tritium::core::CASObjectID* unsafe_arena_release_casobject(); + const ::llbuild3::core::CASObjectID& casobject() const; + PROTOBUF_NODISCARD ::llbuild3::core::CASObjectID* release_casobject(); + ::llbuild3::core::CASObjectID* mutable_casobject(); + void set_allocated_casobject(::llbuild3::core::CASObjectID* value); + void unsafe_arena_set_allocated_casobject(::llbuild3::core::CASObjectID* value); + ::llbuild3::core::CASObjectID* unsafe_arena_release_casobject(); private: - const ::tritium::core::CASObjectID& _internal_casobject() const; - ::tritium::core::CASObjectID* _internal_mutable_casobject(); + const ::llbuild3::core::CASObjectID& _internal_casobject() const; + ::llbuild3::core::CASObjectID* _internal_mutable_casobject(); public: // bytes blob = 4; @@ -712,47 +712,47 @@ class Artifact final : public ::google::protobuf::Message std::string* _internal_mutable_blob(); public: - // .tritium.core.DictObject dict = 5; + // .llbuild3.core.DictObject dict = 5; bool has_dict() const; private: bool _internal_has_dict() const; public: void clear_dict() ; - const ::tritium::core::DictObject& dict() const; - PROTOBUF_NODISCARD ::tritium::core::DictObject* release_dict(); - ::tritium::core::DictObject* mutable_dict(); - void set_allocated_dict(::tritium::core::DictObject* value); - void unsafe_arena_set_allocated_dict(::tritium::core::DictObject* value); - ::tritium::core::DictObject* unsafe_arena_release_dict(); + const ::llbuild3::core::DictObject& dict() const; + PROTOBUF_NODISCARD ::llbuild3::core::DictObject* release_dict(); + ::llbuild3::core::DictObject* mutable_dict(); + void set_allocated_dict(::llbuild3::core::DictObject* value); + void unsafe_arena_set_allocated_dict(::llbuild3::core::DictObject* value); + ::llbuild3::core::DictObject* unsafe_arena_release_dict(); private: - const ::tritium::core::DictObject& _internal_dict() const; - ::tritium::core::DictObject* _internal_mutable_dict(); + const ::llbuild3::core::DictObject& _internal_dict() const; + ::llbuild3::core::DictObject* _internal_mutable_dict(); public: - // .tritium.core.ListObject list = 6; + // .llbuild3.core.ListObject list = 6; bool has_list() const; private: bool _internal_has_list() const; public: void clear_list() ; - const ::tritium::core::ListObject& list() const; - PROTOBUF_NODISCARD ::tritium::core::ListObject* release_list(); - ::tritium::core::ListObject* mutable_list(); - void set_allocated_list(::tritium::core::ListObject* value); - void unsafe_arena_set_allocated_list(::tritium::core::ListObject* value); - ::tritium::core::ListObject* unsafe_arena_release_list(); + const ::llbuild3::core::ListObject& list() const; + PROTOBUF_NODISCARD ::llbuild3::core::ListObject* release_list(); + ::llbuild3::core::ListObject* mutable_list(); + void set_allocated_list(::llbuild3::core::ListObject* value); + void unsafe_arena_set_allocated_list(::llbuild3::core::ListObject* value); + ::llbuild3::core::ListObject* unsafe_arena_release_list(); private: - const ::tritium::core::ListObject& _internal_list() const; - ::tritium::core::ListObject* _internal_mutable_list(); + const ::llbuild3::core::ListObject& _internal_list() const; + ::llbuild3::core::ListObject* _internal_mutable_list(); public: void clear_value(); ValueCase value_case() const; - // @@protoc_insertion_point(class_scope:tritium.core.Artifact) + // @@protoc_insertion_point(class_scope:llbuild3.core.Artifact) private: class _Internal; void set_has_casobject(); @@ -786,21 +786,21 @@ class Artifact final : public ::google::protobuf::Message const Artifact& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tritium::core::Label* label_; + ::llbuild3::core::Label* label_; int type_; union ValueUnion { constexpr ValueUnion() : _constinit_{} {} ::google::protobuf::internal::ConstantInitialized _constinit_; - ::tritium::core::CASObjectID* casobject_; + ::llbuild3::core::CASObjectID* casobject_; ::google::protobuf::internal::ArenaStringPtr blob_; - ::tritium::core::DictObject* dict_; - ::tritium::core::ListObject* list_; + ::llbuild3::core::DictObject* dict_; + ::llbuild3::core::ListObject* list_; } value_; ::uint32_t _oneof_case_[1]; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; - friend struct ::TableStruct_tritium_2fcore_2fArtifact_2eproto; + friend struct ::TableStruct_llbuild3_2fcore_2fArtifact_2eproto; }; // =================================================================== @@ -837,7 +837,7 @@ inline const ::google::protobuf::Map& DictObject::_int return _impl_.contents_.GetMap(); } inline const ::google::protobuf::Map& DictObject::contents() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_map:tritium.core.DictObject.contents) + // @@protoc_insertion_point(field_map:llbuild3.core.DictObject.contents) return _internal_contents(); } inline ::google::protobuf::Map* DictObject::_internal_mutable_contents() { @@ -845,7 +845,7 @@ inline ::google::protobuf::Map* DictObject::_internal_ return _impl_.contents_.MutableMap(); } inline ::google::protobuf::Map* DictObject::mutable_contents() ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_map:tritium.core.DictObject.contents) + // @@protoc_insertion_point(field_mutable_map:llbuild3.core.DictObject.contents) return _internal_mutable_contents(); } @@ -868,79 +868,79 @@ inline std::string* ListObject::add_entry() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); std::string* _s = _internal_mutable_entry()->Add(); - // @@protoc_insertion_point(field_add_mutable:tritium.core.ListObject.entry) + // @@protoc_insertion_point(field_add_mutable:llbuild3.core.ListObject.entry) return _s; } inline const std::string& ListObject::entry(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tritium.core.ListObject.entry) + // @@protoc_insertion_point(field_get:llbuild3.core.ListObject.entry) return _internal_entry().Get(index); } inline std::string* ListObject::mutable_entry(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:tritium.core.ListObject.entry) + // @@protoc_insertion_point(field_mutable:llbuild3.core.ListObject.entry) return _internal_mutable_entry()->Mutable(index); } inline void ListObject::set_entry(int index, const std::string& value) { _internal_mutable_entry()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:tritium.core.ListObject.entry) + // @@protoc_insertion_point(field_set:llbuild3.core.ListObject.entry) } inline void ListObject::set_entry(int index, std::string&& value) { _internal_mutable_entry()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:tritium.core.ListObject.entry) + // @@protoc_insertion_point(field_set:llbuild3.core.ListObject.entry) } inline void ListObject::set_entry(int index, const char* value) { ABSL_DCHECK(value != nullptr); _internal_mutable_entry()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tritium.core.ListObject.entry) + // @@protoc_insertion_point(field_set_char:llbuild3.core.ListObject.entry) } inline void ListObject::set_entry(int index, const char* value, std::size_t size) { _internal_mutable_entry()->Mutable(index)->assign( reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tritium.core.ListObject.entry) + // @@protoc_insertion_point(field_set_pointer:llbuild3.core.ListObject.entry) } inline void ListObject::set_entry(int index, absl::string_view value) { _internal_mutable_entry()->Mutable(index)->assign( value.data(), value.size()); - // @@protoc_insertion_point(field_set_string_piece:tritium.core.ListObject.entry) + // @@protoc_insertion_point(field_set_string_piece:llbuild3.core.ListObject.entry) } inline void ListObject::add_entry(const std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _internal_mutable_entry()->Add()->assign(value); - // @@protoc_insertion_point(field_add:tritium.core.ListObject.entry) + // @@protoc_insertion_point(field_add:llbuild3.core.ListObject.entry) } inline void ListObject::add_entry(std::string&& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _internal_mutable_entry()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:tritium.core.ListObject.entry) + // @@protoc_insertion_point(field_add:llbuild3.core.ListObject.entry) } inline void ListObject::add_entry(const char* value) { ABSL_DCHECK(value != nullptr); ::google::protobuf::internal::TSanWrite(&_impl_); _internal_mutable_entry()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tritium.core.ListObject.entry) + // @@protoc_insertion_point(field_add_char:llbuild3.core.ListObject.entry) } inline void ListObject::add_entry(const char* value, std::size_t size) { ::google::protobuf::internal::TSanWrite(&_impl_); _internal_mutable_entry()->Add()->assign( reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tritium.core.ListObject.entry) + // @@protoc_insertion_point(field_add_pointer:llbuild3.core.ListObject.entry) } inline void ListObject::add_entry(absl::string_view value) { ::google::protobuf::internal::TSanWrite(&_impl_); _internal_mutable_entry()->Add()->assign(value.data(), value.size()); - // @@protoc_insertion_point(field_add_string_piece:tritium.core.ListObject.entry) + // @@protoc_insertion_point(field_add_string_piece:llbuild3.core.ListObject.entry) } inline const ::google::protobuf::RepeatedPtrField& ListObject::entry() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:tritium.core.ListObject.entry) + // @@protoc_insertion_point(field_list:llbuild3.core.ListObject.entry) return _internal_entry(); } inline ::google::protobuf::RepeatedPtrField* ListObject::mutable_entry() ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:tritium.core.ListObject.entry) + // @@protoc_insertion_point(field_mutable_list:llbuild3.core.ListObject.entry) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_entry(); } @@ -959,39 +959,39 @@ ListObject::_internal_mutable_entry() { // Artifact -// .tritium.core.Label label = 1; +// .llbuild3.core.Label label = 1; inline bool Artifact::has_label() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; PROTOBUF_ASSUME(!value || _impl_.label_ != nullptr); return value; } -inline const ::tritium::core::Label& Artifact::_internal_label() const { +inline const ::llbuild3::core::Label& Artifact::_internal_label() const { ::google::protobuf::internal::TSanRead(&_impl_); - const ::tritium::core::Label* p = _impl_.label_; - return p != nullptr ? *p : reinterpret_cast(::tritium::core::_Label_default_instance_); + const ::llbuild3::core::Label* p = _impl_.label_; + return p != nullptr ? *p : reinterpret_cast(::llbuild3::core::_Label_default_instance_); } -inline const ::tritium::core::Label& Artifact::label() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tritium.core.Artifact.label) +inline const ::llbuild3::core::Label& Artifact::label() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:llbuild3.core.Artifact.label) return _internal_label(); } -inline void Artifact::unsafe_arena_set_allocated_label(::tritium::core::Label* value) { +inline void Artifact::unsafe_arena_set_allocated_label(::llbuild3::core::Label* value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.label_); } - _impl_.label_ = reinterpret_cast<::tritium::core::Label*>(value); + _impl_.label_ = reinterpret_cast<::llbuild3::core::Label*>(value); if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tritium.core.Artifact.label) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:llbuild3.core.Artifact.label) } -inline ::tritium::core::Label* Artifact::release_label() { +inline ::llbuild3::core::Label* Artifact::release_label() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; - ::tritium::core::Label* released = _impl_.label_; + ::llbuild3::core::Label* released = _impl_.label_; _impl_.label_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); @@ -1006,30 +1006,30 @@ inline ::tritium::core::Label* Artifact::release_label() { #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } -inline ::tritium::core::Label* Artifact::unsafe_arena_release_label() { +inline ::llbuild3::core::Label* Artifact::unsafe_arena_release_label() { ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:tritium.core.Artifact.label) + // @@protoc_insertion_point(field_release:llbuild3.core.Artifact.label) _impl_._has_bits_[0] &= ~0x00000001u; - ::tritium::core::Label* temp = _impl_.label_; + ::llbuild3::core::Label* temp = _impl_.label_; _impl_.label_ = nullptr; return temp; } -inline ::tritium::core::Label* Artifact::_internal_mutable_label() { +inline ::llbuild3::core::Label* Artifact::_internal_mutable_label() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.label_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tritium::core::Label>(GetArena()); - _impl_.label_ = reinterpret_cast<::tritium::core::Label*>(p); + auto* p = ::google::protobuf::Message::DefaultConstruct<::llbuild3::core::Label>(GetArena()); + _impl_.label_ = reinterpret_cast<::llbuild3::core::Label*>(p); } return _impl_.label_; } -inline ::tritium::core::Label* Artifact::mutable_label() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::llbuild3::core::Label* Artifact::mutable_label() ABSL_ATTRIBUTE_LIFETIME_BOUND { _impl_._has_bits_[0] |= 0x00000001u; - ::tritium::core::Label* _msg = _internal_mutable_label(); - // @@protoc_insertion_point(field_mutable:tritium.core.Artifact.label) + ::llbuild3::core::Label* _msg = _internal_mutable_label(); + // @@protoc_insertion_point(field_mutable:llbuild3.core.Artifact.label) return _msg; } -inline void Artifact::set_allocated_label(::tritium::core::Label* value) { +inline void Artifact::set_allocated_label(::llbuild3::core::Label* value) { ::google::protobuf::Arena* message_arena = GetArena(); ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { @@ -1046,33 +1046,33 @@ inline void Artifact::set_allocated_label(::tritium::core::Label* value) { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.label_ = reinterpret_cast<::tritium::core::Label*>(value); - // @@protoc_insertion_point(field_set_allocated:tritium.core.Artifact.label) + _impl_.label_ = reinterpret_cast<::llbuild3::core::Label*>(value); + // @@protoc_insertion_point(field_set_allocated:llbuild3.core.Artifact.label) } -// .tritium.core.ArtifactType type = 2; +// .llbuild3.core.ArtifactType type = 2; inline void Artifact::clear_type() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_ = 0; } -inline ::tritium::core::ArtifactType Artifact::type() const { - // @@protoc_insertion_point(field_get:tritium.core.Artifact.type) +inline ::llbuild3::core::ArtifactType Artifact::type() const { + // @@protoc_insertion_point(field_get:llbuild3.core.Artifact.type) return _internal_type(); } -inline void Artifact::set_type(::tritium::core::ArtifactType value) { +inline void Artifact::set_type(::llbuild3::core::ArtifactType value) { _internal_set_type(value); - // @@protoc_insertion_point(field_set:tritium.core.Artifact.type) + // @@protoc_insertion_point(field_set:llbuild3.core.Artifact.type) } -inline ::tritium::core::ArtifactType Artifact::_internal_type() const { +inline ::llbuild3::core::ArtifactType Artifact::_internal_type() const { ::google::protobuf::internal::TSanRead(&_impl_); - return static_cast<::tritium::core::ArtifactType>(_impl_.type_); + return static_cast<::llbuild3::core::ArtifactType>(_impl_.type_); } -inline void Artifact::_internal_set_type(::tritium::core::ArtifactType value) { +inline void Artifact::_internal_set_type(::llbuild3::core::ArtifactType value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_ = value; } -// .tritium.core.CASObjectID casObject = 3; +// .llbuild3.core.CASObjectID casObject = 3; inline bool Artifact::has_casobject() const { return value_case() == kCasObject; } @@ -1082,8 +1082,8 @@ inline bool Artifact::_internal_has_casobject() const { inline void Artifact::set_has_casobject() { _impl_._oneof_case_[0] = kCasObject; } -inline ::tritium::core::CASObjectID* Artifact::release_casobject() { - // @@protoc_insertion_point(field_release:tritium.core.Artifact.casObject) +inline ::llbuild3::core::CASObjectID* Artifact::release_casobject() { + // @@protoc_insertion_point(field_release:llbuild3.core.Artifact.casObject) if (value_case() == kCasObject) { clear_has_value(); auto* temp = _impl_.value_.casobject_; @@ -1096,15 +1096,15 @@ inline ::tritium::core::CASObjectID* Artifact::release_casobject() { return nullptr; } } -inline const ::tritium::core::CASObjectID& Artifact::_internal_casobject() const { - return value_case() == kCasObject ? *_impl_.value_.casobject_ : reinterpret_cast<::tritium::core::CASObjectID&>(::tritium::core::_CASObjectID_default_instance_); +inline const ::llbuild3::core::CASObjectID& Artifact::_internal_casobject() const { + return value_case() == kCasObject ? *_impl_.value_.casobject_ : reinterpret_cast<::llbuild3::core::CASObjectID&>(::llbuild3::core::_CASObjectID_default_instance_); } -inline const ::tritium::core::CASObjectID& Artifact::casobject() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tritium.core.Artifact.casObject) +inline const ::llbuild3::core::CASObjectID& Artifact::casobject() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:llbuild3.core.Artifact.casObject) return _internal_casobject(); } -inline ::tritium::core::CASObjectID* Artifact::unsafe_arena_release_casobject() { - // @@protoc_insertion_point(field_unsafe_arena_release:tritium.core.Artifact.casObject) +inline ::llbuild3::core::CASObjectID* Artifact::unsafe_arena_release_casobject() { + // @@protoc_insertion_point(field_unsafe_arena_release:llbuild3.core.Artifact.casObject) if (value_case() == kCasObject) { clear_has_value(); auto* temp = _impl_.value_.casobject_; @@ -1114,7 +1114,7 @@ inline ::tritium::core::CASObjectID* Artifact::unsafe_arena_release_casobject() return nullptr; } } -inline void Artifact::unsafe_arena_set_allocated_casobject(::tritium::core::CASObjectID* value) { +inline void Artifact::unsafe_arena_set_allocated_casobject(::llbuild3::core::CASObjectID* value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. @@ -1123,20 +1123,20 @@ inline void Artifact::unsafe_arena_set_allocated_casobject(::tritium::core::CASO set_has_casobject(); _impl_.value_.casobject_ = value; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tritium.core.Artifact.casObject) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:llbuild3.core.Artifact.casObject) } -inline ::tritium::core::CASObjectID* Artifact::_internal_mutable_casobject() { +inline ::llbuild3::core::CASObjectID* Artifact::_internal_mutable_casobject() { if (value_case() != kCasObject) { clear_value(); set_has_casobject(); _impl_.value_.casobject_ = - ::google::protobuf::Message::DefaultConstruct<::tritium::core::CASObjectID>(GetArena()); + ::google::protobuf::Message::DefaultConstruct<::llbuild3::core::CASObjectID>(GetArena()); } return _impl_.value_.casobject_; } -inline ::tritium::core::CASObjectID* Artifact::mutable_casobject() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::tritium::core::CASObjectID* _msg = _internal_mutable_casobject(); - // @@protoc_insertion_point(field_mutable:tritium.core.Artifact.casObject) +inline ::llbuild3::core::CASObjectID* Artifact::mutable_casobject() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::llbuild3::core::CASObjectID* _msg = _internal_mutable_casobject(); + // @@protoc_insertion_point(field_mutable:llbuild3.core.Artifact.casObject) return _msg; } @@ -1156,7 +1156,7 @@ inline void Artifact::clear_blob() { } inline const std::string& Artifact::blob() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tritium.core.Artifact.blob) + // @@protoc_insertion_point(field_get:llbuild3.core.Artifact.blob) return _internal_blob(); } template @@ -1170,11 +1170,11 @@ inline PROTOBUF_ALWAYS_INLINE void Artifact::set_blob(Arg_&& arg, _impl_.value_.blob_.InitDefault(); } _impl_.value_.blob_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tritium.core.Artifact.blob) + // @@protoc_insertion_point(field_set:llbuild3.core.Artifact.blob) } inline std::string* Artifact::mutable_blob() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_blob(); - // @@protoc_insertion_point(field_mutable:tritium.core.Artifact.blob) + // @@protoc_insertion_point(field_mutable:llbuild3.core.Artifact.blob) return _s; } inline const std::string& Artifact::_internal_blob() const { @@ -1206,7 +1206,7 @@ inline std::string* Artifact::_internal_mutable_blob() { } inline std::string* Artifact::release_blob() { ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:tritium.core.Artifact.blob) + // @@protoc_insertion_point(field_release:llbuild3.core.Artifact.blob) if (value_case() != kBlob) { return nullptr; } @@ -1222,10 +1222,10 @@ inline void Artifact::set_allocated_blob(std::string* value) { set_has_blob(); _impl_.value_.blob_.InitAllocated(value, GetArena()); } - // @@protoc_insertion_point(field_set_allocated:tritium.core.Artifact.blob) + // @@protoc_insertion_point(field_set_allocated:llbuild3.core.Artifact.blob) } -// .tritium.core.DictObject dict = 5; +// .llbuild3.core.DictObject dict = 5; inline bool Artifact::has_dict() const { return value_case() == kDict; } @@ -1246,8 +1246,8 @@ inline void Artifact::clear_dict() { clear_has_value(); } } -inline ::tritium::core::DictObject* Artifact::release_dict() { - // @@protoc_insertion_point(field_release:tritium.core.Artifact.dict) +inline ::llbuild3::core::DictObject* Artifact::release_dict() { + // @@protoc_insertion_point(field_release:llbuild3.core.Artifact.dict) if (value_case() == kDict) { clear_has_value(); auto* temp = _impl_.value_.dict_; @@ -1260,15 +1260,15 @@ inline ::tritium::core::DictObject* Artifact::release_dict() { return nullptr; } } -inline const ::tritium::core::DictObject& Artifact::_internal_dict() const { - return value_case() == kDict ? *_impl_.value_.dict_ : reinterpret_cast<::tritium::core::DictObject&>(::tritium::core::_DictObject_default_instance_); +inline const ::llbuild3::core::DictObject& Artifact::_internal_dict() const { + return value_case() == kDict ? *_impl_.value_.dict_ : reinterpret_cast<::llbuild3::core::DictObject&>(::llbuild3::core::_DictObject_default_instance_); } -inline const ::tritium::core::DictObject& Artifact::dict() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tritium.core.Artifact.dict) +inline const ::llbuild3::core::DictObject& Artifact::dict() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:llbuild3.core.Artifact.dict) return _internal_dict(); } -inline ::tritium::core::DictObject* Artifact::unsafe_arena_release_dict() { - // @@protoc_insertion_point(field_unsafe_arena_release:tritium.core.Artifact.dict) +inline ::llbuild3::core::DictObject* Artifact::unsafe_arena_release_dict() { + // @@protoc_insertion_point(field_unsafe_arena_release:llbuild3.core.Artifact.dict) if (value_case() == kDict) { clear_has_value(); auto* temp = _impl_.value_.dict_; @@ -1278,7 +1278,7 @@ inline ::tritium::core::DictObject* Artifact::unsafe_arena_release_dict() { return nullptr; } } -inline void Artifact::unsafe_arena_set_allocated_dict(::tritium::core::DictObject* value) { +inline void Artifact::unsafe_arena_set_allocated_dict(::llbuild3::core::DictObject* value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. @@ -1287,24 +1287,24 @@ inline void Artifact::unsafe_arena_set_allocated_dict(::tritium::core::DictObjec set_has_dict(); _impl_.value_.dict_ = value; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tritium.core.Artifact.dict) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:llbuild3.core.Artifact.dict) } -inline ::tritium::core::DictObject* Artifact::_internal_mutable_dict() { +inline ::llbuild3::core::DictObject* Artifact::_internal_mutable_dict() { if (value_case() != kDict) { clear_value(); set_has_dict(); _impl_.value_.dict_ = - ::google::protobuf::Message::DefaultConstruct<::tritium::core::DictObject>(GetArena()); + ::google::protobuf::Message::DefaultConstruct<::llbuild3::core::DictObject>(GetArena()); } return _impl_.value_.dict_; } -inline ::tritium::core::DictObject* Artifact::mutable_dict() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::tritium::core::DictObject* _msg = _internal_mutable_dict(); - // @@protoc_insertion_point(field_mutable:tritium.core.Artifact.dict) +inline ::llbuild3::core::DictObject* Artifact::mutable_dict() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::llbuild3::core::DictObject* _msg = _internal_mutable_dict(); + // @@protoc_insertion_point(field_mutable:llbuild3.core.Artifact.dict) return _msg; } -// .tritium.core.ListObject list = 6; +// .llbuild3.core.ListObject list = 6; inline bool Artifact::has_list() const { return value_case() == kList; } @@ -1325,8 +1325,8 @@ inline void Artifact::clear_list() { clear_has_value(); } } -inline ::tritium::core::ListObject* Artifact::release_list() { - // @@protoc_insertion_point(field_release:tritium.core.Artifact.list) +inline ::llbuild3::core::ListObject* Artifact::release_list() { + // @@protoc_insertion_point(field_release:llbuild3.core.Artifact.list) if (value_case() == kList) { clear_has_value(); auto* temp = _impl_.value_.list_; @@ -1339,15 +1339,15 @@ inline ::tritium::core::ListObject* Artifact::release_list() { return nullptr; } } -inline const ::tritium::core::ListObject& Artifact::_internal_list() const { - return value_case() == kList ? *_impl_.value_.list_ : reinterpret_cast<::tritium::core::ListObject&>(::tritium::core::_ListObject_default_instance_); +inline const ::llbuild3::core::ListObject& Artifact::_internal_list() const { + return value_case() == kList ? *_impl_.value_.list_ : reinterpret_cast<::llbuild3::core::ListObject&>(::llbuild3::core::_ListObject_default_instance_); } -inline const ::tritium::core::ListObject& Artifact::list() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tritium.core.Artifact.list) +inline const ::llbuild3::core::ListObject& Artifact::list() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:llbuild3.core.Artifact.list) return _internal_list(); } -inline ::tritium::core::ListObject* Artifact::unsafe_arena_release_list() { - // @@protoc_insertion_point(field_unsafe_arena_release:tritium.core.Artifact.list) +inline ::llbuild3::core::ListObject* Artifact::unsafe_arena_release_list() { + // @@protoc_insertion_point(field_unsafe_arena_release:llbuild3.core.Artifact.list) if (value_case() == kList) { clear_has_value(); auto* temp = _impl_.value_.list_; @@ -1357,7 +1357,7 @@ inline ::tritium::core::ListObject* Artifact::unsafe_arena_release_list() { return nullptr; } } -inline void Artifact::unsafe_arena_set_allocated_list(::tritium::core::ListObject* value) { +inline void Artifact::unsafe_arena_set_allocated_list(::llbuild3::core::ListObject* value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. @@ -1366,20 +1366,20 @@ inline void Artifact::unsafe_arena_set_allocated_list(::tritium::core::ListObjec set_has_list(); _impl_.value_.list_ = value; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tritium.core.Artifact.list) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:llbuild3.core.Artifact.list) } -inline ::tritium::core::ListObject* Artifact::_internal_mutable_list() { +inline ::llbuild3::core::ListObject* Artifact::_internal_mutable_list() { if (value_case() != kList) { clear_value(); set_has_list(); _impl_.value_.list_ = - ::google::protobuf::Message::DefaultConstruct<::tritium::core::ListObject>(GetArena()); + ::google::protobuf::Message::DefaultConstruct<::llbuild3::core::ListObject>(GetArena()); } return _impl_.value_.list_; } -inline ::tritium::core::ListObject* Artifact::mutable_list() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::tritium::core::ListObject* _msg = _internal_mutable_list(); - // @@protoc_insertion_point(field_mutable:tritium.core.Artifact.list) +inline ::llbuild3::core::ListObject* Artifact::mutable_list() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::llbuild3::core::ListObject* _msg = _internal_mutable_list(); + // @@protoc_insertion_point(field_mutable:llbuild3.core.Artifact.list) return _msg; } @@ -1398,17 +1398,17 @@ inline Artifact::ValueCase Artifact::value_case() const { // @@protoc_insertion_point(namespace_scope) } // namespace core -} // namespace tritium +} // namespace llbuild3 namespace google { namespace protobuf { template <> -struct is_proto_enum<::tritium::core::ArtifactType> : std::true_type {}; +struct is_proto_enum<::llbuild3::core::ArtifactType> : std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor<::tritium::core::ArtifactType>() { - return ::tritium::core::ArtifactType_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor<::llbuild3::core::ArtifactType>() { + return ::llbuild3::core::ArtifactType_descriptor(); } } // namespace protobuf @@ -1418,4 +1418,4 @@ inline const EnumDescriptor* GetEnumDescriptor<::tritium::core::ArtifactType>() #include "google/protobuf/port_undef.inc" -#endif // GOOGLE_PROTOBUF_INCLUDED_tritium_2fcore_2fArtifact_2eproto_2epb_2eh +#endif // GOOGLE_PROTOBUF_INCLUDED_llbuild3_2fcore_2fArtifact_2eproto_2epb_2eh diff --git a/src/tritium/core/Artifact.pb.swift b/src/llbuild3/core/Artifact.pb.swift similarity index 84% rename from src/tritium/core/Artifact.pb.swift rename to src/llbuild3/core/Artifact.pb.swift index a82f56881..e70acaa3b 100644 --- a/src/tritium/core/Artifact.pb.swift +++ b/src/llbuild3/core/Artifact.pb.swift @@ -2,7 +2,7 @@ // swift-format-ignore-file // // Generated by the Swift generator plugin for the protocol buffer compiler. -// Source: tritium/core/Artifact.proto +// Source: llbuild3/core/Artifact.proto // // For information on using the generated types, please see the documentation: // https://github.com/apple/swift-protobuf/ @@ -21,7 +21,7 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP } /// Enum representing the supported artifact types -public enum Tritium_Core_ArtifactType: SwiftProtobuf.Enum, Swift.CaseIterable { +public enum Llbuild3_Core_ArtifactType: SwiftProtobuf.Enum, Swift.CaseIterable { public typealias RawValue = Int /// Regular file. @@ -72,7 +72,7 @@ public enum Tritium_Core_ArtifactType: SwiftProtobuf.Enum, Swift.CaseIterable { } // The compiler won't synthesize support with the UNRECOGNIZED case. - public static let allCases: [Tritium_Core_ArtifactType] = [ + public static let allCases: [Llbuild3_Core_ArtifactType] = [ .file, .directory, .blob, @@ -83,7 +83,7 @@ public enum Tritium_Core_ArtifactType: SwiftProtobuf.Enum, Swift.CaseIterable { } -public struct Tritium_Core_DictObject: Sendable { +public struct Llbuild3_Core_DictObject: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -95,7 +95,7 @@ public struct Tritium_Core_DictObject: Sendable { public init() {} } -public struct Tritium_Core_ListObject: Sendable { +public struct Llbuild3_Core_ListObject: Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -107,13 +107,13 @@ public struct Tritium_Core_ListObject: Sendable { public init() {} } -public struct Tritium_Core_Artifact: @unchecked Sendable { +public struct Llbuild3_Core_Artifact: @unchecked Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var label: Tritium_Core_Label { - get {return _label ?? Tritium_Core_Label()} + public var label: Llbuild3_Core_Label { + get {return _label ?? Llbuild3_Core_Label()} set {_label = newValue} } /// Returns true if `label` has been explicitly set. @@ -121,14 +121,14 @@ public struct Tritium_Core_Artifact: @unchecked Sendable { /// Clears the value of `label`. Subsequent reads from it will return its default value. public mutating func clearLabel() {self._label = nil} - public var type: Tritium_Core_ArtifactType = .file + public var type: Llbuild3_Core_ArtifactType = .file - public var value: Tritium_Core_Artifact.OneOf_Value? = nil + public var value: Llbuild3_Core_Artifact.OneOf_Value? = nil - public var casObject: Tritium_Core_CASObjectID { + public var casObject: Llbuild3_Core_CASObjectID { get { if case .casObject(let v)? = value {return v} - return Tritium_Core_CASObjectID() + return Llbuild3_Core_CASObjectID() } set {value = .casObject(newValue)} } @@ -141,18 +141,18 @@ public struct Tritium_Core_Artifact: @unchecked Sendable { set {value = .blob(newValue)} } - public var dict: Tritium_Core_DictObject { + public var dict: Llbuild3_Core_DictObject { get { if case .dict(let v)? = value {return v} - return Tritium_Core_DictObject() + return Llbuild3_Core_DictObject() } set {value = .dict(newValue)} } - public var list: Tritium_Core_ListObject { + public var list: Llbuild3_Core_ListObject { get { if case .list(let v)? = value {return v} - return Tritium_Core_ListObject() + return Llbuild3_Core_ListObject() } set {value = .list(newValue)} } @@ -160,23 +160,23 @@ public struct Tritium_Core_Artifact: @unchecked Sendable { public var unknownFields = SwiftProtobuf.UnknownStorage() public enum OneOf_Value: Equatable, @unchecked Sendable { - case casObject(Tritium_Core_CASObjectID) + case casObject(Llbuild3_Core_CASObjectID) case blob(Data) - case dict(Tritium_Core_DictObject) - case list(Tritium_Core_ListObject) + case dict(Llbuild3_Core_DictObject) + case list(Llbuild3_Core_ListObject) } public init() {} - fileprivate var _label: Tritium_Core_Label? = nil + fileprivate var _label: Llbuild3_Core_Label? = nil } // MARK: - Code below here is support for the SwiftProtobuf runtime. -fileprivate let _protobuf_package = "tritium.core" +fileprivate let _protobuf_package = "llbuild3.core" -extension Tritium_Core_ArtifactType: SwiftProtobuf._ProtoNameProviding { +extension Llbuild3_Core_ArtifactType: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 0: .same(proto: "FILE"), 1: .same(proto: "DIRECTORY"), @@ -187,7 +187,7 @@ extension Tritium_Core_ArtifactType: SwiftProtobuf._ProtoNameProviding { ] } -extension Tritium_Core_DictObject: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { +extension Llbuild3_Core_DictObject: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".DictObject" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 3: .same(proto: "contents"), @@ -212,14 +212,14 @@ extension Tritium_Core_DictObject: SwiftProtobuf.Message, SwiftProtobuf._Message try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Tritium_Core_DictObject, rhs: Tritium_Core_DictObject) -> Bool { + public static func ==(lhs: Llbuild3_Core_DictObject, rhs: Llbuild3_Core_DictObject) -> Bool { if lhs.contents != rhs.contents {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Tritium_Core_ListObject: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { +extension Llbuild3_Core_ListObject: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".ListObject" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 3: .same(proto: "entry"), @@ -244,14 +244,14 @@ extension Tritium_Core_ListObject: SwiftProtobuf.Message, SwiftProtobuf._Message try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Tritium_Core_ListObject, rhs: Tritium_Core_ListObject) -> Bool { + public static func ==(lhs: Llbuild3_Core_ListObject, rhs: Llbuild3_Core_ListObject) -> Bool { if lhs.entry != rhs.entry {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Tritium_Core_Artifact: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { +extension Llbuild3_Core_Artifact: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".Artifact" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "label"), @@ -271,7 +271,7 @@ extension Tritium_Core_Artifact: SwiftProtobuf.Message, SwiftProtobuf._MessageIm case 1: try { try decoder.decodeSingularMessageField(value: &self._label) }() case 2: try { try decoder.decodeSingularEnumField(value: &self.type) }() case 3: try { - var v: Tritium_Core_CASObjectID? + var v: Llbuild3_Core_CASObjectID? var hadOneofValue = false if let current = self.value { hadOneofValue = true @@ -292,7 +292,7 @@ extension Tritium_Core_Artifact: SwiftProtobuf.Message, SwiftProtobuf._MessageIm } }() case 5: try { - var v: Tritium_Core_DictObject? + var v: Llbuild3_Core_DictObject? var hadOneofValue = false if let current = self.value { hadOneofValue = true @@ -305,7 +305,7 @@ extension Tritium_Core_Artifact: SwiftProtobuf.Message, SwiftProtobuf._MessageIm } }() case 6: try { - var v: Tritium_Core_ListObject? + var v: Llbuild3_Core_ListObject? var hadOneofValue = false if let current = self.value { hadOneofValue = true @@ -355,7 +355,7 @@ extension Tritium_Core_Artifact: SwiftProtobuf.Message, SwiftProtobuf._MessageIm try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Tritium_Core_Artifact, rhs: Tritium_Core_Artifact) -> Bool { + public static func ==(lhs: Llbuild3_Core_Artifact, rhs: Llbuild3_Core_Artifact) -> Bool { if lhs._label != rhs._label {return false} if lhs.type != rhs.type {return false} if lhs.value != rhs.value {return false} diff --git a/src/tritium/core/Artifact.proto b/src/llbuild3/core/Artifact.proto similarity index 88% rename from src/tritium/core/Artifact.proto rename to src/llbuild3/core/Artifact.proto index 201ca6771..edb89e310 100644 --- a/src/tritium/core/Artifact.proto +++ b/src/llbuild3/core/Artifact.proto @@ -1,9 +1,9 @@ syntax = "proto3"; -package tritium.core; +package llbuild3.core; -import "tritium/core/CASObjectID.proto"; -import "tritium/core/Label.proto"; +import "llbuild3/core/CAS.proto"; +import "llbuild3/core/Label.proto"; // Enum representing the supported artifact types enum ArtifactType { diff --git a/src/llbuild3/core/CAS.cpp b/src/llbuild3/core/CAS.cpp new file mode 100644 index 000000000..28d165304 --- /dev/null +++ b/src/llbuild3/core/CAS.cpp @@ -0,0 +1,86 @@ +//===- CAS.h ----------------------------------------------------*- C++ -*-===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2024 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See http://swift.org/LICENSE.txt for license information +// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// + +#include "llbuild3/core/CAS.h" + +#include + +#include "blake3.h" + +using namespace llbuild3::core; + +CASDatabase::~CASDatabase() { } + +InMemoryCASDatabase::~InMemoryCASDatabase() { } + +void InMemoryCASDatabase::contains(const CASObjectID& casid, std::function)> resultHandler) { + bool found = false; + + { + std::lock_guard lock(dbMutex); + if (auto entry = db.find(casid.bytes()); entry != db.end()) { + found = true; + } + } + + resultHandler(found); +} + +void InMemoryCASDatabase::get(const CASObjectID& casid, std::function)> resultHandler) { + CASObject value; + + { + std::lock_guard lock(dbMutex); + if (auto entry = db.find(casid.bytes()); entry != db.end()) { + value = entry->second; + } + } + + resultHandler(value); +} + +namespace { + void calcIDForObject(CASObjectID& casid, const CASObject& object) { + blake3_hasher hasher; + + blake3_hasher_init(&hasher); + + for (auto ref : object.refs()) { + blake3_hasher_update(&hasher, ref.bytes().data(), ref.bytes().length()); + } + + blake3_hasher_update(&hasher, object.data().data(), object.data().length()); + + std::array buffer; + blake3_hasher_finalize(&hasher, buffer.data(), buffer.size()); + + casid.mutable_bytes()->assign(std::begin(buffer), std::end(buffer)); + } +} + +void InMemoryCASDatabase::put(const CASObject& object, std::function)> resultHandler) { + CASObjectID casid; + calcIDForObject(casid, object); + + { + std::lock_guard lock(dbMutex); + db.insert_or_assign(casid.bytes(), object); + } + + resultHandler(casid); +} + +CASObjectID InMemoryCASDatabase::identify(const CASObject& object) { + CASObjectID casid; + calcIDForObject(casid, object); + return casid; +} diff --git a/src/llbuild3/core/CAS.h b/src/llbuild3/core/CAS.h new file mode 100644 index 000000000..602f480d8 --- /dev/null +++ b/src/llbuild3/core/CAS.h @@ -0,0 +1,65 @@ +//===- CAS.h ----------------------------------------------------*- C++ -*-===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2024 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See http://swift.org/LICENSE.txt for license information +// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// + +#ifndef LLBUILD3_CORE_CAS_H +#define LLBUILD3_CORE_CAS_H + +#include + +#include "llbuild3/Error.pb.h" +#include "llbuild3/core/CAS.pb.h" + +#include +#include +#include +#include +#include +#include + +namespace llbuild3 { +namespace core { + +class CASDatabase { +public: + virtual ~CASDatabase(); + + virtual void contains(const CASObjectID& casid, std::function)> resultHandler) = 0; + + virtual void get(const CASObjectID& casid, std::function)> resultHandler) = 0; + + virtual void put(const CASObject& object, std::function)> resultHandler) = 0; + + virtual CASObjectID identify(const CASObject& object) = 0; +}; + +class InMemoryCASDatabase: public CASDatabase { +private: + std::unordered_map db; + std::mutex dbMutex; + +public: + InMemoryCASDatabase() { } + ~InMemoryCASDatabase(); + + void contains(const CASObjectID& casid, std::function)> resultHandler); + + void get(const CASObjectID& casid, std::function)> resultHandler); + + void put(const CASObject& object, std::function)> resultHandler); + + CASObjectID identify(const CASObject& object); +}; + +} +} + +#endif diff --git a/src/llbuild3/core/CAS.pb.cc b/src/llbuild3/core/CAS.pb.cc new file mode 100644 index 000000000..d36961cd4 --- /dev/null +++ b/src/llbuild3/core/CAS.pb.cc @@ -0,0 +1,551 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: llbuild3/core/CAS.proto +// Protobuf C++ Version: 5.27.2 + +#include "llbuild3/core/CAS.pb.h" + +#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/wire_format_lite.h" +#include "google/protobuf/descriptor.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/reflection_ops.h" +#include "google/protobuf/wire_format.h" +// @@protoc_insertion_point(includes) + +// 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 llbuild3 { +namespace core { + +inline constexpr CASObjectID::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : bytes_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR CASObjectID::CASObjectID(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct CASObjectIDDefaultTypeInternal { + PROTOBUF_CONSTEXPR CASObjectIDDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CASObjectIDDefaultTypeInternal() {} + union { + CASObjectID _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CASObjectIDDefaultTypeInternal _CASObjectID_default_instance_; + +inline constexpr CASObject::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : refs_{}, + data_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR CASObject::CASObject(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct CASObjectDefaultTypeInternal { + PROTOBUF_CONSTEXPR CASObjectDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CASObjectDefaultTypeInternal() {} + union { + CASObject _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CASObjectDefaultTypeInternal _CASObject_default_instance_; +} // namespace core +} // namespace llbuild3 +static constexpr const ::_pb::EnumDescriptor** + file_level_enum_descriptors_llbuild3_2fcore_2fCAS_2eproto = nullptr; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_llbuild3_2fcore_2fCAS_2eproto = nullptr; +const ::uint32_t + TableStruct_llbuild3_2fcore_2fCAS_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::llbuild3::core::CASObjectID, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::llbuild3::core::CASObjectID, _impl_.bytes_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::llbuild3::core::CASObject, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::llbuild3::core::CASObject, _impl_.refs_), + PROTOBUF_FIELD_OFFSET(::llbuild3::core::CASObject, _impl_.data_), +}; + +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, -1, -1, sizeof(::llbuild3::core::CASObjectID)}, + {9, -1, -1, sizeof(::llbuild3::core::CASObject)}, +}; +static const ::_pb::Message* const file_default_instances[] = { + &::llbuild3::core::_CASObjectID_default_instance_._instance, + &::llbuild3::core::_CASObject_default_instance_._instance, +}; +const char descriptor_table_protodef_llbuild3_2fcore_2fCAS_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\027llbuild3/core/CAS.proto\022\rllbuild3.core" + "\"\034\n\013CASObjectID\022\r\n\005bytes\030\001 \001(\014\"C\n\tCASObj" + "ect\022(\n\004refs\030\001 \003(\0132\032.llbuild3.core.CASObj" + "ectID\022\014\n\004data\030\002 \001(\014b\006proto3" +}; +static ::absl::once_flag descriptor_table_llbuild3_2fcore_2fCAS_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_llbuild3_2fcore_2fCAS_2eproto = { + false, + false, + 147, + descriptor_table_protodef_llbuild3_2fcore_2fCAS_2eproto, + "llbuild3/core/CAS.proto", + &descriptor_table_llbuild3_2fcore_2fCAS_2eproto_once, + nullptr, + 0, + 2, + schemas, + file_default_instances, + TableStruct_llbuild3_2fcore_2fCAS_2eproto::offsets, + file_level_enum_descriptors_llbuild3_2fcore_2fCAS_2eproto, + file_level_service_descriptors_llbuild3_2fcore_2fCAS_2eproto, +}; +namespace llbuild3 { +namespace core { +// =================================================================== + +class CASObjectID::_Internal { + public: +}; + +CASObjectID::CASObjectID(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:llbuild3.core.CASObjectID) +} +inline PROTOBUF_NDEBUG_INLINE CASObjectID::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::llbuild3::core::CASObjectID& from_msg) + : bytes_(arena, from.bytes_), + _cached_size_{0} {} + +CASObjectID::CASObjectID( + ::google::protobuf::Arena* arena, + const CASObjectID& from) + : ::google::protobuf::Message(arena) { + CASObjectID* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + + // @@protoc_insertion_point(copy_constructor:llbuild3.core.CASObjectID) +} +inline PROTOBUF_NDEBUG_INLINE CASObjectID::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : bytes_(arena), + _cached_size_{0} {} + +inline void CASObjectID::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +CASObjectID::~CASObjectID() { + // @@protoc_insertion_point(destructor:llbuild3.core.CASObjectID) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void CASObjectID::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.bytes_.Destroy(); + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +CASObjectID::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + PROTOBUF_FIELD_OFFSET(CASObjectID, _impl_._cached_size_), + false, + }, + &CASObjectID::MergeImpl, + &CASObjectID::kDescriptorMethods, + &descriptor_table_llbuild3_2fcore_2fCAS_2eproto, + nullptr, // tracker + }; + ::google::protobuf::internal::PrefetchToLocalCache(&_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_data_.tc_table); + return _data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> CASObjectID::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_CASObjectID_default_instance_._instance, + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::llbuild3::core::CASObjectID>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // bytes bytes = 1; + {::_pbi::TcParser::FastBS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(CASObjectID, _impl_.bytes_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // bytes bytes = 1; + {PROTOBUF_FIELD_OFFSET(CASObjectID, _impl_.bytes_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; + +PROTOBUF_NOINLINE void CASObjectID::Clear() { +// @@protoc_insertion_point(message_clear_start:llbuild3.core.CASObjectID) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.bytes_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +::uint8_t* CASObjectID::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:llbuild3.core.CASObjectID) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // bytes bytes = 1; + if (!this->_internal_bytes().empty()) { + const std::string& _s = this->_internal_bytes(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:llbuild3.core.CASObjectID) + return target; +} + +::size_t CASObjectID::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:llbuild3.core.CASObjectID) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bytes bytes = 1; + if (!this->_internal_bytes().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->_internal_bytes()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + + +void CASObjectID::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); + // @@protoc_insertion_point(class_specific_merge_from_start:llbuild3.core.CASObjectID) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_bytes().empty()) { + _this->_internal_set_bytes(from._internal_bytes()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void CASObjectID::CopyFrom(const CASObjectID& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:llbuild3.core.CASObjectID) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void CASObjectID::InternalSwap(CASObjectID* PROTOBUF_RESTRICT other) { + using std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.bytes_, &other->_impl_.bytes_, arena); +} + +::google::protobuf::Metadata CASObjectID::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class CASObject::_Internal { + public: +}; + +CASObject::CASObject(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:llbuild3.core.CASObject) +} +inline PROTOBUF_NDEBUG_INLINE CASObject::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::llbuild3::core::CASObject& from_msg) + : refs_{visibility, arena, from.refs_}, + data_(arena, from.data_), + _cached_size_{0} {} + +CASObject::CASObject( + ::google::protobuf::Arena* arena, + const CASObject& from) + : ::google::protobuf::Message(arena) { + CASObject* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + + // @@protoc_insertion_point(copy_constructor:llbuild3.core.CASObject) +} +inline PROTOBUF_NDEBUG_INLINE CASObject::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : refs_{visibility, arena}, + data_(arena), + _cached_size_{0} {} + +inline void CASObject::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +CASObject::~CASObject() { + // @@protoc_insertion_point(destructor:llbuild3.core.CASObject) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void CASObject::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.data_.Destroy(); + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +CASObject::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + PROTOBUF_FIELD_OFFSET(CASObject, _impl_._cached_size_), + false, + }, + &CASObject::MergeImpl, + &CASObject::kDescriptorMethods, + &descriptor_table_llbuild3_2fcore_2fCAS_2eproto, + nullptr, // tracker + }; + ::google::protobuf::internal::PrefetchToLocalCache(&_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_data_.tc_table); + return _data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> CASObject::_table_ = { + { + 0, // no _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 + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_CASObject_default_instance_._instance, + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::llbuild3::core::CASObject>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // bytes data = 2; + {::_pbi::TcParser::FastBS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(CASObject, _impl_.data_)}}, + // repeated .llbuild3.core.CASObjectID refs = 1; + {::_pbi::TcParser::FastMtR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(CASObject, _impl_.refs_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .llbuild3.core.CASObjectID refs = 1; + {PROTOBUF_FIELD_OFFSET(CASObject, _impl_.refs_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // bytes data = 2; + {PROTOBUF_FIELD_OFFSET(CASObject, _impl_.data_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, {{ + {::_pbi::TcParser::GetTable<::llbuild3::core::CASObjectID>()}, + }}, {{ + }}, +}; + +PROTOBUF_NOINLINE void CASObject::Clear() { +// @@protoc_insertion_point(message_clear_start:llbuild3.core.CASObject) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.refs_.Clear(); + _impl_.data_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +::uint8_t* CASObject::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:llbuild3.core.CASObject) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // repeated .llbuild3.core.CASObjectID refs = 1; + for (unsigned i = 0, n = static_cast( + this->_internal_refs_size()); + i < n; i++) { + const auto& repfield = this->_internal_refs().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, repfield, repfield.GetCachedSize(), + target, stream); + } + + // bytes data = 2; + if (!this->_internal_data().empty()) { + const std::string& _s = this->_internal_data(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:llbuild3.core.CASObject) + return target; +} + +::size_t CASObject::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:llbuild3.core.CASObject) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(reinterpret_cast(this)); + // repeated .llbuild3.core.CASObjectID refs = 1; + total_size += 1UL * this->_internal_refs_size(); + for (const auto& msg : this->_internal_refs()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + // bytes data = 2; + if (!this->_internal_data().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->_internal_data()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + + +void CASObject::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); + // @@protoc_insertion_point(class_specific_merge_from_start:llbuild3.core.CASObject) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_internal_mutable_refs()->MergeFrom( + from._internal_refs()); + if (!from._internal_data().empty()) { + _this->_internal_set_data(from._internal_data()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void CASObject::CopyFrom(const CASObject& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:llbuild3.core.CASObject) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void CASObject::InternalSwap(CASObject* PROTOBUF_RESTRICT other) { + using std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.refs_.InternalSwap(&other->_impl_.refs_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena); +} + +::google::protobuf::Metadata CASObject::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace llbuild3 +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google +// @@protoc_insertion_point(global_scope) +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_llbuild3_2fcore_2fCAS_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/src/llbuild3/core/CAS.pb.h b/src/llbuild3/core/CAS.pb.h new file mode 100644 index 000000000..850a16491 --- /dev/null +++ b/src/llbuild3/core/CAS.pb.h @@ -0,0 +1,629 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: llbuild3/core/CAS.proto +// Protobuf C++ Version: 5.27.2 + +#ifndef GOOGLE_PROTOBUF_INCLUDED_llbuild3_2fcore_2fCAS_2eproto_2epb_2eh +#define GOOGLE_PROTOBUF_INCLUDED_llbuild3_2fcore_2fCAS_2eproto_2epb_2eh + +#include +#include +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5027002 +#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 "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/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/unknown_field_set.h" +// @@protoc_insertion_point(includes) + +// Must be included last. +#include "google/protobuf/port_def.inc" + +#define PROTOBUF_INTERNAL_EXPORT_llbuild3_2fcore_2fCAS_2eproto + +namespace google { +namespace protobuf { +namespace internal { +class AnyMetadata; +} // namespace internal +} // namespace protobuf +} // namespace google + +// Internal implementation detail -- do not use these members. +struct TableStruct_llbuild3_2fcore_2fCAS_2eproto { + static const ::uint32_t offsets[]; +}; +extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_llbuild3_2fcore_2fCAS_2eproto; +namespace llbuild3 { +namespace core { +class CASObject; +struct CASObjectDefaultTypeInternal; +extern CASObjectDefaultTypeInternal _CASObject_default_instance_; +class CASObjectID; +struct CASObjectIDDefaultTypeInternal; +extern CASObjectIDDefaultTypeInternal _CASObjectID_default_instance_; +} // namespace core +} // namespace llbuild3 +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + +namespace llbuild3 { +namespace core { + +// =================================================================== + + +// ------------------------------------------------------------------- + +class CASObjectID final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:llbuild3.core.CASObjectID) */ { + public: + inline CASObjectID() : CASObjectID(nullptr) {} + ~CASObjectID() override; + template + explicit PROTOBUF_CONSTEXPR CASObjectID( + ::google::protobuf::internal::ConstantInitialized); + + inline CASObjectID(const CASObjectID& from) : CASObjectID(nullptr, from) {} + inline CASObjectID(CASObjectID&& from) noexcept + : CASObjectID(nullptr, std::move(from)) {} + inline CASObjectID& operator=(const CASObjectID& from) { + CopyFrom(from); + return *this; + } + inline CASObjectID& operator=(CASObjectID&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CASObjectID& default_instance() { + return *internal_default_instance(); + } + static inline const CASObjectID* internal_default_instance() { + return reinterpret_cast( + &_CASObjectID_default_instance_); + } + static constexpr int kIndexInFileMessages = 0; + friend void swap(CASObjectID& a, CASObjectID& b) { a.Swap(&b); } + inline void Swap(CASObjectID* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CASObjectID* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CASObjectID* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const CASObjectID& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const CASObjectID& from) { CASObjectID::MergeImpl(*this, from); } + + private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(CASObjectID* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "llbuild3.core.CASObjectID"; } + + protected: + explicit CASObjectID(::google::protobuf::Arena* arena); + CASObjectID(::google::protobuf::Arena* arena, const CASObjectID& from); + CASObjectID(::google::protobuf::Arena* arena, CASObjectID&& from) noexcept + : CASObjectID(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::Message::ClassData* GetClassData() const final; + + public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kBytesFieldNumber = 1, + }; + // bytes bytes = 1; + void clear_bytes() ; + const std::string& bytes() const; + template + void set_bytes(Arg_&& arg, Args_... args); + std::string* mutable_bytes(); + PROTOBUF_NODISCARD std::string* release_bytes(); + void set_allocated_bytes(std::string* value); + + private: + const std::string& _internal_bytes() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_bytes( + const std::string& value); + std::string* _internal_mutable_bytes(); + + public: + // @@protoc_insertion_point(class_scope:llbuild3.core.CASObjectID) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 1, 0, + 0, 2> + _table_; + + static constexpr const void* _raw_default_instance_ = + &_CASObjectID_default_instance_; + + 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* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const CASObjectID& from_msg); + ::google::protobuf::internal::ArenaStringPtr bytes_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_llbuild3_2fcore_2fCAS_2eproto; +}; +// ------------------------------------------------------------------- + +class CASObject final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:llbuild3.core.CASObject) */ { + public: + inline CASObject() : CASObject(nullptr) {} + ~CASObject() override; + template + explicit PROTOBUF_CONSTEXPR CASObject( + ::google::protobuf::internal::ConstantInitialized); + + inline CASObject(const CASObject& from) : CASObject(nullptr, from) {} + inline CASObject(CASObject&& from) noexcept + : CASObject(nullptr, std::move(from)) {} + inline CASObject& operator=(const CASObject& from) { + CopyFrom(from); + return *this; + } + inline CASObject& operator=(CASObject&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CASObject& default_instance() { + return *internal_default_instance(); + } + static inline const CASObject* internal_default_instance() { + return reinterpret_cast( + &_CASObject_default_instance_); + } + static constexpr int kIndexInFileMessages = 1; + friend void swap(CASObject& a, CASObject& b) { a.Swap(&b); } + inline void Swap(CASObject* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CASObject* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CASObject* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const CASObject& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const CASObject& from) { CASObject::MergeImpl(*this, from); } + + private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(CASObject* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "llbuild3.core.CASObject"; } + + protected: + explicit CASObject(::google::protobuf::Arena* arena); + CASObject(::google::protobuf::Arena* arena, const CASObject& from); + CASObject(::google::protobuf::Arena* arena, CASObject&& from) noexcept + : CASObject(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::Message::ClassData* GetClassData() const final; + + public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kRefsFieldNumber = 1, + kDataFieldNumber = 2, + }; + // repeated .llbuild3.core.CASObjectID refs = 1; + int refs_size() const; + private: + int _internal_refs_size() const; + + public: + void clear_refs() ; + ::llbuild3::core::CASObjectID* mutable_refs(int index); + ::google::protobuf::RepeatedPtrField<::llbuild3::core::CASObjectID>* mutable_refs(); + + private: + const ::google::protobuf::RepeatedPtrField<::llbuild3::core::CASObjectID>& _internal_refs() const; + ::google::protobuf::RepeatedPtrField<::llbuild3::core::CASObjectID>* _internal_mutable_refs(); + public: + const ::llbuild3::core::CASObjectID& refs(int index) const; + ::llbuild3::core::CASObjectID* add_refs(); + const ::google::protobuf::RepeatedPtrField<::llbuild3::core::CASObjectID>& refs() const; + // bytes data = 2; + void clear_data() ; + const std::string& data() const; + template + void set_data(Arg_&& arg, Args_... args); + std::string* mutable_data(); + PROTOBUF_NODISCARD std::string* release_data(); + void set_allocated_data(std::string* value); + + private: + const std::string& _internal_data() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_data( + const std::string& value); + std::string* _internal_mutable_data(); + + public: + // @@protoc_insertion_point(class_scope:llbuild3.core.CASObject) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 1, + 0, 2> + _table_; + + static constexpr const void* _raw_default_instance_ = + &_CASObject_default_instance_; + + 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* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const CASObject& from_msg); + ::google::protobuf::RepeatedPtrField< ::llbuild3::core::CASObjectID > refs_; + ::google::protobuf::internal::ArenaStringPtr data_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_llbuild3_2fcore_2fCAS_2eproto; +}; + +// =================================================================== + + + + +// =================================================================== + + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// CASObjectID + +// bytes bytes = 1; +inline void CASObjectID::clear_bytes() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bytes_.ClearToEmpty(); +} +inline const std::string& CASObjectID::bytes() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:llbuild3.core.CASObjectID.bytes) + return _internal_bytes(); +} +template +inline PROTOBUF_ALWAYS_INLINE void CASObjectID::set_bytes(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bytes_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:llbuild3.core.CASObjectID.bytes) +} +inline std::string* CASObjectID::mutable_bytes() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_bytes(); + // @@protoc_insertion_point(field_mutable:llbuild3.core.CASObjectID.bytes) + return _s; +} +inline const std::string& CASObjectID::_internal_bytes() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.bytes_.Get(); +} +inline void CASObjectID::_internal_set_bytes(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bytes_.Set(value, GetArena()); +} +inline std::string* CASObjectID::_internal_mutable_bytes() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.bytes_.Mutable( GetArena()); +} +inline std::string* CASObjectID::release_bytes() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:llbuild3.core.CASObjectID.bytes) + return _impl_.bytes_.Release(); +} +inline void CASObjectID::set_allocated_bytes(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bytes_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.bytes_.IsDefault()) { + _impl_.bytes_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:llbuild3.core.CASObjectID.bytes) +} + +// ------------------------------------------------------------------- + +// CASObject + +// repeated .llbuild3.core.CASObjectID refs = 1; +inline int CASObject::_internal_refs_size() const { + return _internal_refs().size(); +} +inline int CASObject::refs_size() const { + return _internal_refs_size(); +} +inline void CASObject::clear_refs() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.refs_.Clear(); +} +inline ::llbuild3::core::CASObjectID* CASObject::mutable_refs(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable:llbuild3.core.CASObject.refs) + return _internal_mutable_refs()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField<::llbuild3::core::CASObjectID>* CASObject::mutable_refs() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:llbuild3.core.CASObject.refs) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_refs(); +} +inline const ::llbuild3::core::CASObjectID& CASObject::refs(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:llbuild3.core.CASObject.refs) + return _internal_refs().Get(index); +} +inline ::llbuild3::core::CASObjectID* CASObject::add_refs() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::llbuild3::core::CASObjectID* _add = _internal_mutable_refs()->Add(); + // @@protoc_insertion_point(field_add:llbuild3.core.CASObject.refs) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField<::llbuild3::core::CASObjectID>& CASObject::refs() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:llbuild3.core.CASObject.refs) + return _internal_refs(); +} +inline const ::google::protobuf::RepeatedPtrField<::llbuild3::core::CASObjectID>& +CASObject::_internal_refs() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.refs_; +} +inline ::google::protobuf::RepeatedPtrField<::llbuild3::core::CASObjectID>* +CASObject::_internal_mutable_refs() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.refs_; +} + +// bytes data = 2; +inline void CASObject::clear_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.data_.ClearToEmpty(); +} +inline const std::string& CASObject::data() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:llbuild3.core.CASObject.data) + return _internal_data(); +} +template +inline PROTOBUF_ALWAYS_INLINE void CASObject::set_data(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.data_.SetBytes(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:llbuild3.core.CASObject.data) +} +inline std::string* CASObject::mutable_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_data(); + // @@protoc_insertion_point(field_mutable:llbuild3.core.CASObject.data) + return _s; +} +inline const std::string& CASObject::_internal_data() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.data_.Get(); +} +inline void CASObject::_internal_set_data(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.data_.Set(value, GetArena()); +} +inline std::string* CASObject::_internal_mutable_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.data_.Mutable( GetArena()); +} +inline std::string* CASObject::release_data() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:llbuild3.core.CASObject.data) + return _impl_.data_.Release(); +} +inline void CASObject::set_allocated_data(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.data_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.data_.IsDefault()) { + _impl_.data_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:llbuild3.core.CASObject.data) +} + +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace llbuild3 + + +// @@protoc_insertion_point(global_scope) + +#include "google/protobuf/port_undef.inc" + +#endif // GOOGLE_PROTOBUF_INCLUDED_llbuild3_2fcore_2fCAS_2eproto_2epb_2eh diff --git a/src/tritium/core/CASObjectID.pb.swift b/src/llbuild3/core/CAS.pb.swift similarity index 50% rename from src/tritium/core/CASObjectID.pb.swift rename to src/llbuild3/core/CAS.pb.swift index 546e1ab9f..b048ab845 100644 --- a/src/tritium/core/CASObjectID.pb.swift +++ b/src/llbuild3/core/CAS.pb.swift @@ -2,7 +2,7 @@ // swift-format-ignore-file // // Generated by the Swift generator plugin for the protocol buffer compiler. -// Source: tritium/core/CASObjectID.proto +// Source: llbuild3/core/CAS.proto // // For information on using the generated types, please see the documentation: // https://github.com/apple/swift-protobuf/ @@ -24,7 +24,7 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP //// be a handler for interfacing with CAS systems. CASObjectID does not require //// the encoding of any particular hash function. Instead, it is expected that //// the CAS system itself that provides the digest. -public struct Tritium_Core_CASObjectID: @unchecked Sendable { +public struct Llbuild3_Core_CASObjectID: @unchecked Sendable { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -37,11 +37,28 @@ public struct Tritium_Core_CASObjectID: @unchecked Sendable { public init() {} } +//// CASObject is the envelope around an object that can be stored in a CAS, +//// encoding the combination of the raw data of the object and its dependendent +//// references. +public struct Llbuild3_Core_CASObject: @unchecked Sendable { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + public var refs: [Llbuild3_Core_CASObjectID] = [] + + public var data: Data = Data() + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} +} + // MARK: - Code below here is support for the SwiftProtobuf runtime. -fileprivate let _protobuf_package = "tritium.core" +fileprivate let _protobuf_package = "llbuild3.core" -extension Tritium_Core_CASObjectID: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { +extension Llbuild3_Core_CASObjectID: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".CASObjectID" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "bytes"), @@ -66,9 +83,47 @@ extension Tritium_Core_CASObjectID: SwiftProtobuf.Message, SwiftProtobuf._Messag try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Tritium_Core_CASObjectID, rhs: Tritium_Core_CASObjectID) -> Bool { + public static func ==(lhs: Llbuild3_Core_CASObjectID, rhs: Llbuild3_Core_CASObjectID) -> Bool { if lhs.bytes != rhs.bytes {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } + +extension Llbuild3_Core_CASObject: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CASObject" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "refs"), + 2: .same(proto: "data"), + ] + + public mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.refs) }() + case 2: try { try decoder.decodeSingularBytesField(value: &self.data) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if !self.refs.isEmpty { + try visitor.visitRepeatedMessageField(value: self.refs, fieldNumber: 1) + } + if !self.data.isEmpty { + try visitor.visitSingularBytesField(value: self.data, fieldNumber: 2) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Llbuild3_Core_CASObject, rhs: Llbuild3_Core_CASObject) -> Bool { + if lhs.refs != rhs.refs {return false} + if lhs.data != rhs.data {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} diff --git a/src/tritium/core/CASObjectID.proto b/src/llbuild3/core/CAS.proto similarity index 61% rename from src/tritium/core/CASObjectID.proto rename to src/llbuild3/core/CAS.proto index 04143ceac..fe38826be 100644 --- a/src/tritium/core/CASObjectID.proto +++ b/src/llbuild3/core/CAS.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package tritium.core; +package llbuild3.core; /// CASObjectID represents the digest of arbitrary data, and its purpose is to /// be a handler for interfacing with CAS systems. CASObjectID does not require @@ -10,3 +10,12 @@ message CASObjectID { /// The bytes containing the digest of the contents stored in the CAS. bytes bytes = 1; } + +/// CASObject is the envelope around an object that can be stored in a CAS, +/// encoding the combination of the raw data of the object and its dependendent +/// references. +message CASObject { + repeated CASObjectID refs = 1; + + bytes data = 2; +} diff --git a/src/tritium/core/CoreTypes.swift b/src/llbuild3/core/CoreTypes.swift similarity index 67% rename from src/tritium/core/CoreTypes.swift rename to src/llbuild3/core/CoreTypes.swift index 1fc2f4acf..b38a2647a 100644 --- a/src/tritium/core/CoreTypes.swift +++ b/src/llbuild3/core/CoreTypes.swift @@ -14,30 +14,31 @@ import Foundation import SwiftProtobuf // ActionCache.proto -public typealias TKeyType = Tritium_Core_KeyType +public typealias TCacheKey = Llbuild3_Core_CacheKey +public typealias TCacheValue = Llbuild3_Core_CacheValue // Artifact.proto -public typealias TArtifactType = Tritium_Core_ArtifactType -public typealias TDictObject = Tritium_Core_DictObject -public typealias TListObject = Tritium_Core_ListObject -public typealias TArtifact = Tritium_Core_Artifact +public typealias TArtifactType = Llbuild3_Core_ArtifactType +public typealias TDictObject = Llbuild3_Core_DictObject +public typealias TListObject = Llbuild3_Core_ListObject +public typealias TArtifact = Llbuild3_Core_Artifact // Label.proto -public typealias TLabel = Tritium_Core_Label +public typealias TLabel = Llbuild3_Core_Label // Rule.proto -public typealias TSignature = Tritium_Core_Signature -public typealias TTaskResult = Tritium_Core_TaskResult -public typealias TActionResult = Tritium_Core_ActionResult -public typealias TTaskInput = Tritium_Core_TaskInput -public typealias TTaskInputs = Tritium_Core_TaskInputs -public typealias TTaskContext = Tritium_Core_TaskContext -public typealias TTaskWait = Tritium_Core_TaskWait -public typealias TTaskNextState = Tritium_Core_TaskNextState +public typealias TSignature = Llbuild3_Core_Signature +public typealias TTaskResult = Llbuild3_Core_TaskResult +public typealias TActionResult = Llbuild3_Core_ActionResult +public typealias TTaskInput = Llbuild3_Core_TaskInput +public typealias TTaskInputs = Llbuild3_Core_TaskInputs +public typealias TTaskContext = Llbuild3_Core_TaskContext +public typealias TTaskWait = Llbuild3_Core_TaskWait +public typealias TTaskNextState = Llbuild3_Core_TaskNextState // SwiftProtobuf Extensions public extension SwiftProtobuf.Message { - func tritiumCoreSerialized() throws -> std.string { + func llbuild3Serialized() throws -> std.string { return std.string(fromData: try self.serializedData()) } } diff --git a/src/tritium/core/Engine.cpp b/src/llbuild3/core/Engine.cpp similarity index 81% rename from src/tritium/core/Engine.cpp rename to src/llbuild3/core/Engine.cpp index 71e447d0e..8c045a389 100644 --- a/src/tritium/core/Engine.cpp +++ b/src/llbuild3/core/Engine.cpp @@ -10,13 +10,14 @@ // //===----------------------------------------------------------------------===// -#include "tritium/core/Engine.h" +#include "llbuild3/core/Engine.h" -#include +#include -#include "tritium/core/ActionCache.h" -#include "tritium/core/Label.h" -#include "tritium/support/Defer.h" +#include "llbuild3/core/ActionCache.h" +#include "llbuild3/core/CAS.h" +#include "llbuild3/core/EngineInternal.pb.h" +#include "llbuild3/core/Label.h" #include #include @@ -33,15 +34,15 @@ #include #include -using namespace tritium; -using namespace tritium::core; -using namespace tritium::core::internal; +using namespace llbuild3; +using namespace llbuild3::core; +using namespace llbuild3::core::internal; Task::~Task() {} Rule::~Rule() {} RuleProvider::~RuleProvider() {} -namespace tritium { +namespace llbuild3 { namespace core { namespace internal { @@ -63,12 +64,14 @@ class IntTaskInterface { } // namespace internal } // namespace core -} // namespace tritium +} // namespace llbuild3 namespace { template class LabelTrie { private: + bool prefixOnly; + struct node; typedef std::unordered_map node_map; struct node { @@ -78,7 +81,7 @@ template class LabelTrie { node_map root; public: - LabelTrie() {} + LabelTrie(bool prefixOnly = false) : prefixOnly(prefixOnly) {} ~LabelTrie() {} bool insert(std::pair entry); @@ -111,8 +114,11 @@ class EngineImpl { const EngineConfig cfg; + /// The CAS database + std::shared_ptr casDB; + /// The action cache. - std::unique_ptr actionCache; + std::shared_ptr actionCache; /// The execution queue reference; this is only valid while a build is /// actually in progress. @@ -121,8 +127,8 @@ class EngineImpl { std::mutex ruleProvidersMutex; std::vector> ruleProviders; typedef std::vector>::size_type ProviderID; - LabelTrie ruleProviderMap; - LabelTrie artifactProviderMap; + LabelTrie ruleProviderMap{true}; + LabelTrie artifactProviderMap{true}; std::mutex rulesMutex; std::vector> rules; @@ -203,8 +209,9 @@ class EngineImpl { bool shutdown{false}; public: - EngineImpl(EngineConfig config, std::unique_ptr&& cache) - : cfg(config), actionCache(std::move(cache)) { + EngineImpl(EngineConfig config, std::shared_ptr casDB, + std::shared_ptr cache) + : cfg(config), casDB(casDB), actionCache(cache) { for (unsigned i = 0; i != numLanes; ++i) { lanes.push_back(std::unique_ptr( @@ -318,12 +325,14 @@ class EngineImpl { uint64_t buildID = 0; // check if an active task is producing the artifact - // FIXME: check action cache { std::lock_guard lock(taskInfosMutex); auto entry = taskArtifactMap[label]; if (entry.has_value()) { // task is already in flight, just return the id + assert(taskInfos.contains(taskID)); + taskInfos.at(taskID).requestedTaskInputs.insert( + {*entry, TaskInputRequest{false, label}}); return *entry; } @@ -408,7 +417,6 @@ class EngineImpl { uint64_t buildID = 0; // check if an active task exists for the rule - // FIXME: check action cache { std::lock_guard lock(taskInfosMutex); auto entry = taskNameMap[label]; @@ -596,12 +604,135 @@ class EngineImpl { TaskInterface ti{this, taskInfo.id}; auto next = taskInfo.task->compute(ti, ctx, inputs); - // FIXME: update function cache - + updateTaskCache(taskInfo, ctx, inputs, next); processTaskNextState(taskInfo, next); }; addJob(Job({taskInfo.minBuild, taskInfo.id}, work)); } + + void checkTaskCacheForReadyTask(TaskInfo& taskInfo, const TaskContext& ctx, + const TaskInputs& inputs) { + if (!actionCache) { + enqueueReadyTask(taskInfo, ctx, inputs); + return; + } + + auto work = [this, ctx, inputs, &taskInfo](const JobContext&) { + // Set up transition key + TaskTransitionKey key; + *key.mutable_ctx() = ctx; + *key.mutable_signature() = taskInfo.task->signature(); + *key.mutable_inputs() = inputs; + + CASObject keyObj; + key.SerializeToString(keyObj.mutable_data()); + + auto keyID = casDB->identify(keyObj); + + // calc cache key + CacheKey cacheKey; + *cacheKey.mutable_label() = taskInfo.task->name(); + cacheKey.set_type(TASK); + *cacheKey.mutable_content() = keyID; + + std::string foo = labelAsCanonicalString(cacheKey.label()); + + actionCache->get(cacheKey, [this, ctx, inputs, &taskInfo, foo](result res) { + if (res.has_error()) { + // FIXME: log error + enqueueReadyTask(taskInfo, ctx, inputs); + return; + } + + if (!res->has_data()) { + // not found + enqueueReadyTask(taskInfo, ctx, inputs); + return; + } + + // load entry + casDB->get(res->data(), [this, ctx, inputs, &taskInfo](result res) { + if (res.has_error()) { + // FIXME: log error + enqueueReadyTask(taskInfo, ctx, inputs); + return; + } + + TaskTransitionValue value; + if (!value.ParseFromString(res->data())) { + // FIXME: log error + enqueueReadyTask(taskInfo, ctx, inputs); + return; + } + + // FIXME: handle initiated async requests + + processTaskNextState(taskInfo, value.state()); + }); + }); + + }; + addJob(Job({taskInfo.minBuild, taskInfo.id}, work)); + } + + void updateTaskCache(TaskInfo& taskInfo, const TaskContext& ctx, const TaskInputs& inputs, const TaskNextState& next) { + // Skip if we don't have a cache + if (!actionCache) + return; + + // Skip if this task is not cacheable + if (!taskInfo.task->props.cacheable) + return; + + auto work = [this, ctx, inputs, &taskInfo, next](const JobContext&) { + // Set up transition key + TaskTransitionKey key; + *key.mutable_ctx() = ctx; + *key.mutable_signature() = taskInfo.task->signature(); + *key.mutable_inputs() = inputs; + + CASObject keyObj; + key.SerializeToString(keyObj.mutable_data()); + + // Set up transition value + TaskTransitionValue value; + *value.mutable_state() = next; + // FIXME: handle newly initiated requests + + CASObject valueObj; + value.SerializeToString(valueObj.mutable_data()); + + // Store both in CAS + casDB->put(keyObj, [this, &taskInfo, valueObj](result res) { + if (res.has_error()) { + // caching is best effort, on failure just continue + // FIXME: report error + return; + } + + auto keyID = *res; + casDB->put(valueObj, [this, &taskInfo, keyID](result res) { + if (res.has_error()) { + // caching is best effort, on failure just continue + // FIXME: report error + return; + } + CacheKey cacheKey; + *cacheKey.mutable_label() = taskInfo.task->name(); + cacheKey.set_type(TASK); + *cacheKey.mutable_content() = keyID; + + CacheValue cacheValue; + *cacheValue.mutable_data() = *res; + + // FIXME: record action stats + + actionCache->update(cacheKey, cacheValue); + }); + }); + }; + addJob(Job({taskInfo.minBuild, taskInfo.id}, work)); + } void processTaskNextState(TaskInfo& taskInfo, const TaskNextState& next) { std::lock_guard lock(taskInfosMutex); @@ -653,9 +784,7 @@ class EngineImpl { prepareInput(input, inputTask, req); } - // FIXME: check action cache - - enqueueReadyTask(taskInfo, batchState.context(), inputs); + checkTaskCacheForReadyTask(taskInfo, batchState.context(), inputs); } break; } @@ -703,9 +832,7 @@ class EngineImpl { prepareInput(input, inputTask, req); } - // FIXME: check action cache - - enqueueReadyTask(rtask, batchState.context(), inputs); + checkTaskCacheForReadyTask(rtask, batchState.context(), inputs); } else { auto err = rtask.nextState.mutable_error(); err->set_type(ErrorType::ENGINE); @@ -737,6 +864,8 @@ class EngineImpl { return; } } + *input->mutable_error() = makeEngineError(EngineError::InternalInconsistency, + "requested input not found"); } } else { *input->mutable_error() = taskInfo.nextState.error(); @@ -749,14 +878,16 @@ class EngineImpl { class InitTask : public Task { EngineImpl& engine; Label requestName; + Signature taskSignature; public: InitTask(EngineImpl& engine) - : Task(Task::Properties(true)), engine(engine) { + : Task(Task::Properties(true, false)), engine(engine) { requestName.add_components("__init__"); } const Label& name() const { return requestName; } + const Signature& signature() const { return taskSignature; } std::vector