Table of Contents

Class ListCachedContentsResponse

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll
public record ListCachedContentsResponse : IEquatable<ListCachedContentsResponse>
Inheritance
ListCachedContentsResponse
Implements
Inherited Members

Properties

CachedContents

List of cached contents.

[JsonPropertyName("cachedContents")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<CachedContent>? CachedContents { get; set; }

Property Value

List<CachedContent>

NextPageToken

[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 ListCachedContentsResponse object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

ListCachedContentsResponse

The deserialized ListCachedContentsResponse object, or null if deserialization fails.