blob: 0daf84fb960083227e230c2f98402dd1a678431c [file] [log] [blame]
leba07924e82019-10-10 05:16:01 -07001// Copyright 2019 The Bazel Authors. All rights reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14package com.google.devtools.build.lib.skyframe;
15
leba07924e82019-10-10 05:16:01 -070016import com.google.devtools.build.lib.concurrent.ThreadSafety.Immutable;
17import com.google.devtools.build.lib.concurrent.ThreadSafety.ThreadSafe;
Googler6b965da2023-07-12 17:36:36 -070018import com.google.devtools.build.skyframe.NotComparableSkyValue;
leba07924e82019-10-10 05:16:01 -070019
20/**
Googler1195e5b2024-05-10 04:44:34 -070021 * Represent a "promise" that the Artifacts under a NestedSet are evaluated by Skyframe.
Googler6b965da2023-07-12 17:36:36 -070022 *
23 * <p>Implements {@link NotComparableSkyValue} to prohibit value-based change pruning.
leba07924e82019-10-10 05:16:01 -070024 */
25@Immutable
26@ThreadSafe
Googler41568dc2023-09-25 08:43:09 -070027public enum ArtifactNestedSetValue implements NotComparableSkyValue {
28 /** All artifacts in this nested set are present. */
29 ALL_PRESENT,
Googler6b965da2023-07-12 17:36:36 -070030
Googler41568dc2023-09-25 08:43:09 -070031 /** Some artifacts in this nested set are missing. */
32 SOME_MISSING,
Googler6b965da2023-07-12 17:36:36 -070033}