Table of Contents

Class ListFilesConfig

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

Used to override the default configuration.

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

Properties

HttpOptions

Used to override HTTP request options.

[JsonPropertyName("httpOptions")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public HttpOptions? HttpOptions { get; set; }

Property Value

HttpOptions

PageSize

[JsonPropertyName("pageSize")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? PageSize { get; set; }

Property Value

int?

PageToken

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

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a ListFilesConfig object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

ListFilesConfig

The deserialized ListFilesConfig object, or null if deserialization fails.