Table of Contents

Class ListCachedContentsConfig

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

Config for caches.list method.

public record ListCachedContentsConfig : IEquatable<ListCachedContentsConfig>
Inheritance
ListCachedContentsConfig
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 ListCachedContentsConfig object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

ListCachedContentsConfig

The deserialized ListCachedContentsConfig object, or null if deserialization fails.