modeldb-main/backend/server/src/main/java/ai/verta/modeldb/versioning/autogenerated/_public/modeldb/versioning/model/AutogenPythonRequirementEnvironmentBlobGen.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 AutogenPythonRequirementEnvironmentBlobGen
    extends Generator<AutogenPythonRequirementEnvironmentBlob> {
  public AutogenPythonRequirementEnvironmentBlobGen() {
    super(AutogenPythonRequirementEnvironmentBlob.class);
  }

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

    AutogenPythonRequirementEnvironmentBlob obj = new AutogenPythonRequirementEnvironmentBlob();
    if (r.nextBoolean()) {
      obj.setConstraint(Utils.removeEmpty(new StringGenerator().generate(r, status)));
    }
    if (r.nextBoolean()) {
      obj.setLibrary(Utils.removeEmpty(new StringGenerator().generate(r, status)));
    }
    if (r.nextBoolean()) {
      obj.setVersion(
          Utils.removeEmpty(gen().type(AutogenVersionEnvironmentBlob.class).generate(r, status)));
    }
    return obj;
  }
}
