Package com.google.genai.types
Class ReplayResponse
-
- All Implemented Interfaces:
public abstract class ReplayResponse extends JsonSerializable
Represents a single response in a replay.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classReplayResponse.BuilderBuilder for ReplayResponse.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description ReplayResponse()
-
Method Summary
Modifier and Type Method Description abstract Optional<Integer>statusCode()abstract Optional<Map<String, String>>headers()abstract Optional<List<Map<String, Object>>>bodySegments()abstract Optional<List<Map<String, Object>>>sdkResponseSegments()static ReplayResponse.Builderbuilder()Instantiates a builder for ReplayResponse. abstract ReplayResponse.BuildertoBuilder()Creates a builder with the same values as this instance. static ReplayResponsefromJson(String jsonString)Deserializes a JSON string to a ReplayResponse object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
statusCode
abstract Optional<Integer> statusCode()
-
builder
static ReplayResponse.Builder builder()
Instantiates a builder for ReplayResponse.
-
toBuilder
abstract ReplayResponse.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static ReplayResponse fromJson(String jsonString)
Deserializes a JSON string to a ReplayResponse object.
-
-
-
-