Package com.google.genai.types
Class TestTableItem
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.TestTableItem
None
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TestTableItem.Builder
builder()
Instantiates a builder for TestTableItem.Expects an exception for MLDev matching the string.Expects an exception for Vertex matching the string.static TestTableItem
Deserializes a JSON string to a TestTableItem object.hasUnion()
True if the parameters contain an unsupported union type.Keys to ignore when comparing the request and response.name()
The name of the test.Use if you don't want to use the default replay id which is derived from the test name.The parameters to the test.When set to a reason string, this test will be skipped in the API mode.abstract TestTableItem.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
TestTableItem
public TestTableItem()
-
-
Method Details
-
name
The name of the test. This is used to derive the replay id. -
parameters
The parameters to the test. Use pydantic models. -
exceptionIfMldev
Expects an exception for MLDev matching the string. -
exceptionIfVertex
Expects an exception for Vertex matching the string. -
overrideReplayId
Use if you don't want to use the default replay id which is derived from the test name. -
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
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
Keys to ignore when comparing the request and response. This is useful for tests that are not deterministic. -
builder
Instantiates a builder for TestTableItem. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a TestTableItem object.
-