Package com.google.genai.types
Class FileStatus
-
- All Implemented Interfaces:
public abstract class FileStatus extends JsonSerializable
Status of a File that uses a common error model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classFileStatus.BuilderBuilder for FileStatus.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description FileStatus()
-
Method Summary
Modifier and Type Method Description abstract Optional<List<Map<String, Object>>>details()A list of messages that carry the error details. abstract Optional<String>message()A list of messages that carry the error details. abstract Optional<Integer>code()The status code. static FileStatus.Builderbuilder()Instantiates a builder for FileStatus. abstract FileStatus.BuildertoBuilder()Creates a builder with the same values as this instance. static FileStatusfromJson(String jsonString)Deserializes a JSON string to a FileStatus 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
-
details
abstract Optional<List<Map<String, Object>>> details()
A list of messages that carry the error details. There is a common set of message types for APIs to use.
-
message
abstract Optional<String> message()
A list of messages that carry the error details. There is a common set of message types for APIs to use.
-
builder
static FileStatus.Builder builder()
Instantiates a builder for FileStatus.
-
toBuilder
abstract FileStatus.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static FileStatus fromJson(String jsonString)
Deserializes a JSON string to a FileStatus object.
-
-
-
-