Table of Contents

Class GetCachedContentConfig

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

Optional parameters for caches.get method.

public record GetCachedContentConfig : IEquatable<GetCachedContentConfig>
Inheritance
GetCachedContentConfig
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

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a GetCachedContentConfig object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

GetCachedContentConfig

The deserialized GetCachedContentConfig object, or null if deserialization fails.