package clarifai2.dto.model.output_info;

import clarifai2.internal.grpc.api.ModelOuterClass;
import clarifai2.exception.ClarifaiException;
import com.google.auto.value.AutoValue;
import org.jetbrains.annotations.NotNull;

@SuppressWarnings("NullableProblems")
@AutoValue
public abstract class FaceEmbeddingOutputInfo extends OutputInfo {

  FaceEmbeddingOutputInfo() {} // AutoValue instances only

  @NotNull public abstract String type();

  @NotNull public abstract String typeExt();

  @Override @NotNull public ModelOuterClass.OutputInfo serialize() {
    throw new ClarifaiException(this.getClass().getSimpleName() + " is not serializable");
  }

  @NotNull public static FaceDetectionOutputInfo deserializeInner(ModelOuterClass.OutputInfo outputInfo) {
    return new AutoValue_FaceDetectionOutputInfo(outputInfo.getType(), outputInfo.getTypeExt());
  }
}

@@ -672,33 +672,33 @@
  static Face
-Detection
+Embedding
 OutputInfo d
@@ -787,17 +787,17 @@
 Face
-Detection
+Embedding
 Outp

Fix deserializing FaceEmbeddingOutputInfo