Add serializer for LabelValue

This commit adds a serializer for the LabelValue entitiy.
The eventual goal is that we serialize CachedProjectConfig. The
entity is too large to be serialized directly, though, so we
divide and conquer.

This commit moves the AutoValue representation to the entities
package to allow the serializer packages to keep its dependencies
minimal.

Change-Id: If04e7efb06cb8c53b995296e39194556a3d97dab
This commit is contained in:
Patrick Hiesel
2020-07-14 16:27:17 +02:00
parent 9b15b9ce00
commit 58d03c92fe
27 changed files with 99 additions and 21 deletions

View File

@@ -19,7 +19,7 @@ import static com.google.gerrit.server.permissions.LabelPermission.ForUser.SELF;
import static java.util.Objects.requireNonNull;
import com.google.gerrit.common.data.LabelType;
import com.google.gerrit.common.data.LabelValue;
import com.google.gerrit.entities.LabelValue;
import com.google.gerrit.server.util.LabelVote;
/** Permission representing a label. */