Class TestTableItem

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.TestTableItem

public abstract class TestTableItem extends JsonSerializable
None
  • Constructor Details

    • TestTableItem

      public TestTableItem()
  • Method Details

    • name

      public abstract Optional<String> name()
      The name of the test. This is used to derive the replay id.
    • parameters

      public abstract Optional<Map<String,Object>> parameters()
      The parameters to the test. Use pydantic models.
    • exceptionIfMldev

      public abstract Optional<String> exceptionIfMldev()
      Expects an exception for MLDev matching the string.
    • exceptionIfVertex

      public abstract Optional<String> exceptionIfVertex()
      Expects an exception for Vertex matching the string.
    • overrideReplayId

      public abstract Optional<String> overrideReplayId()
      Use if you don't want to use the default replay id which is derived from the test name.
    • hasUnion

      public abstract Optional<Boolean> hasUnion()
      True if the parameters contain an unsupported union type. This test will be skipped for languages that do not support the union type.
    • skipInApiMode

      public abstract Optional<String> skipInApiMode()
      When set to a reason string, this test will be skipped in the API mode. Use this flag for tests that can not be reproduced with the real API. E.g. a test that deletes a resource.
    • ignoreKeys

      public abstract Optional<List<String>> ignoreKeys()
      Keys to ignore when comparing the request and response. This is useful for tests that are not deterministic.
    • builder

      public static TestTableItem.Builder builder()
      Instantiates a builder for TestTableItem.
    • toBuilder

      public abstract TestTableItem.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static TestTableItem fromJson(String jsonString)
      Deserializes a JSON string to a TestTableItem object.