Class TestTableItem.Builder

java.lang.Object
com.google.genai.types.TestTableItem.Builder
Enclosing class:
TestTableItem

public abstract static class TestTableItem.Builder extends Object
Builder for TestTableItem.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • name

      public abstract TestTableItem.Builder name(String name)
      Setter for name.

      name: The name of the test. This is used to derive the replay id.

    • parameters

      public abstract TestTableItem.Builder parameters(Map<String,Object> parameters)
      Setter for parameters.

      parameters: The parameters to the test. Use pydantic models.

    • exceptionIfMldev

      public abstract TestTableItem.Builder exceptionIfMldev(String exceptionIfMldev)
      Setter for exceptionIfMldev.

      exceptionIfMldev: Expects an exception for MLDev matching the string.

    • exceptionIfVertex

      public abstract TestTableItem.Builder exceptionIfVertex(String exceptionIfVertex)
      Setter for exceptionIfVertex.

      exceptionIfVertex: Expects an exception for Vertex matching the string.

    • overrideReplayId

      public abstract TestTableItem.Builder overrideReplayId(String overrideReplayId)
      Setter for overrideReplayId.

      overrideReplayId: Use if you don't want to use the default replay id which is derived from the test name.

    • hasUnion

      public abstract TestTableItem.Builder hasUnion(boolean hasUnion)
      Setter for hasUnion.

      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 TestTableItem.Builder skipInApiMode(String skipInApiMode)
      Setter for skipInApiMode.

      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 TestTableItem.Builder ignoreKeys(List<String> ignoreKeys)
      Setter for ignoreKeys.

      ignoreKeys: Keys to ignore when comparing the request and response. This is useful for tests that are not deterministic.

    • ignoreKeys

      public TestTableItem.Builder ignoreKeys(String... ignoreKeys)
      Setter for ignoreKeys.

      ignoreKeys: Keys to ignore when comparing the request and response. This is useful for tests that are not deterministic.

    • build

      public abstract TestTableItem build()