Package com.google.genai.types
Class FileStatus
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.FileStatus
Status of a File that uses a common error model.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileStatus.Builder
builder()
Instantiates a builder for FileStatus.code()
The status code.details()
A list of messages that carry the error details.static FileStatus
Deserializes a JSON string to a FileStatus object.message()
A list of messages that carry the error details.abstract FileStatus.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
toJson
-
Constructor Details
-
FileStatus
public FileStatus()
-
-
Method Details
-
details
A list of messages that carry the error details. There is a common set of message types for APIs to use. -
message
A list of messages that carry the error details. There is a common set of message types for APIs to use. -
code
The status code. 0 for OK, 1 for CANCELLED -
builder
Instantiates a builder for FileStatus. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a FileStatus object.
-