Table of Contents

Class CreateFileConfig

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

Used to override the default configuration.

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

ShouldReturnHttpResponse

If true, the raw HTTP response will be returned in the 'sdk_http_response' field.

[JsonPropertyName("shouldReturnHttpResponse")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? ShouldReturnHttpResponse { get; set; }

Property Value

bool?

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a CreateFileConfig object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

CreateFileConfig

The deserialized CreateFileConfig object, or null if deserialization fails.