/*
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.android.gnd.repository.local;

/**
 * Optional new or deleted state shared by Features and Records.
 */
public enum EntityState implements IntEnum {
  UNKNOWN(0),
  DEFAULT(1),
  NEW(2),
  DELETED(3);

  private final int intValue;

  EntityState(int intValue) {
    this.intValue = intValue;
  }

  public int intValue() {
    return intValue;
  }
}

@@ -650,37 +650,40 @@
 %0A * 
-Optional new or deleted
+Mutually exclusive entity
  state
+s
  sha
@@ -762,16 +762,31 @@
 num %7B%0A  
+DELETED(-1),%0A  
 UNKNOWN(
@@ -804,32 +804,8 @@
 LT(1
-),%0A  NEW(2),%0A  DELETED(3
 );%0A%0A

Remove "NEW" state from entities