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.

    • clearName

      @CanIgnoreReturnValue public TestTableItem.Builder clearName()
      Clears the value of name field.
    • parameters

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

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

    • clearParameters

      @CanIgnoreReturnValue public TestTableItem.Builder clearParameters()
      Clears the value of parameters field.
    • exceptionIfMldev

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

      exceptionIfMldev: Expects an exception for MLDev matching the string.

    • clearExceptionIfMldev

      @CanIgnoreReturnValue public TestTableItem.Builder clearExceptionIfMldev()
      Clears the value of exceptionIfMldev field.
    • exceptionIfVertex

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

      exceptionIfVertex: Expects an exception for Vertex matching the string.

    • clearExceptionIfVertex

      @CanIgnoreReturnValue public TestTableItem.Builder clearExceptionIfVertex()
      Clears the value of exceptionIfVertex field.
    • 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.

    • clearOverrideReplayId

      @CanIgnoreReturnValue public TestTableItem.Builder clearOverrideReplayId()
      Clears the value of overrideReplayId field.
    • 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.

    • clearHasUnion

      @CanIgnoreReturnValue public TestTableItem.Builder clearHasUnion()
      Clears the value of hasUnion field.
    • 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.

    • clearSkipInApiMode

      @CanIgnoreReturnValue public TestTableItem.Builder clearSkipInApiMode()
      Clears the value of skipInApiMode field.
    • 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

      @CanIgnoreReturnValue 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.

    • clearIgnoreKeys

      @CanIgnoreReturnValue public TestTableItem.Builder clearIgnoreKeys()
      Clears the value of ignoreKeys field.
    • build

      public abstract TestTableItem build()