Table of Contents

Class ListFilesResponse

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

Response for the list files method.

public record ListFilesResponse : IEquatable<ListFilesResponse>
Inheritance
ListFilesResponse
Implements
Inherited Members

Properties

Files

The list of Files.

[JsonPropertyName("files")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<File>? Files { get; set; }

Property Value

List<File>

NextPageToken

A token that can be sent as a page_token into a subsequent ListFiles call.

[JsonPropertyName("nextPageToken")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? NextPageToken { get; set; }

Property Value

string

SdkHttpResponse

Used to retain the full HTTP response.

[JsonPropertyName("sdkHttpResponse")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public HttpResponse? SdkHttpResponse { get; set; }

Property Value

HttpResponse

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a ListFilesResponse object.

public static ListFilesResponse? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

ListFilesResponse

The deserialized ListFilesResponse object, or null if deserialization fails.