Package com.google.genai.types
Class ListFilesResponse
-
- All Implemented Interfaces:
public abstract class ListFilesResponse extends JsonSerializable
Response for the list files method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classListFilesResponse.BuilderBuilder for ListFilesResponse.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description ListFilesResponse()
-
Method Summary
Modifier and Type Method Description abstract Optional<HttpResponse>sdkHttpResponse()Used to retain the full HTTP response. abstract Optional<String>nextPageToken()A token that can be sent as a `page_token` into a subsequent `ListFiles` call. abstract Optional<List<File>>files()The list of `File`s. static ListFilesResponse.Builderbuilder()Instantiates a builder for ListFilesResponse. abstract ListFilesResponse.BuildertoBuilder()Creates a builder with the same values as this instance. static ListFilesResponsefromJson(String jsonString)Deserializes a JSON string to a ListFilesResponse 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
-
sdkHttpResponse
abstract Optional<HttpResponse> sdkHttpResponse()
Used to retain the full HTTP response.
-
nextPageToken
abstract Optional<String> nextPageToken()
A token that can be sent as a `page_token` into a subsequent `ListFiles` call.
-
builder
static ListFilesResponse.Builder builder()
Instantiates a builder for ListFilesResponse.
-
toBuilder
abstract ListFilesResponse.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static ListFilesResponse fromJson(String jsonString)
Deserializes a JSON string to a ListFilesResponse object.
-
-
-
-