modeldb-main/backend/server/src/main/java/ai/verta/modeldb/versioning/autogenerated/_public/modeldb/versioning/model/AutogenCodeDiffGen.java
// THIS FILE IS AUTO-GENERATED. DO NOT EDIT
package ai.verta.modeldb.versioning.autogenerated._public.modeldb.versioning.model;

import ai.verta.modeldb.versioning.*;
import ai.verta.modeldb.versioning.blob.diff.*;
import com.pholser.junit.quickcheck.generator.*;
import com.pholser.junit.quickcheck.generator.java.util.*;
import com.pholser.junit.quickcheck.random.*;
import java.util.*;

public class AutogenCodeDiffGen extends Generator<AutogenCodeDiff> {
  public AutogenCodeDiffGen() {
    super(AutogenCodeDiff.class);
  }

  @Override
  public AutogenCodeDiff generate(SourceOfRandomness r, GenerationStatus status) {
    // if (r.nextBoolean())
    //     return null;

    AutogenCodeDiff obj = new AutogenCodeDiff();
    if (r.nextBoolean()) {
      obj.setGit(Utils.removeEmpty(gen().type(AutogenGitCodeDiff.class).generate(r, status)));
    }
    if (r.nextBoolean()) {
      obj.setNotebook(
          Utils.removeEmpty(gen().type(AutogenNotebookCodeDiff.class).generate(r, status)));
    }
    return obj;
  }
}
