Table of Contents

Class ImportFileResponse

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

Response for ImportFile to import a File API file with a file search store.

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

Properties

DocumentName

The identifier for the Document imported.

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

Property Value

string

Parent

The name of the FileSearchStore containing Documents.

[JsonPropertyName("parent")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Parent { 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 ImportFileResponse object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

ImportFileResponse

The deserialized ImportFileResponse object, or null if deserialization fails.