Table of Contents

Class FileSearchOperation

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Long-running operation returned when a file is uploaded to (uploadToFileSearchStore) or imported into (importFile) a FileSearchStore.

public class FileSearchOperation
Inheritance
FileSearchOperation
Inherited Members
Extension Methods

Properties

Done

false (or unset) while the operation is still in progress; true once it has completed, in which case either Error or Response is set.

[JsonPropertyName("done")]
public bool? Done { get; set; }

Property Value

bool?

Error

The error result of the operation in case of failure or cancellation.

[JsonPropertyName("error")]
public GoogleRpcStatus? Error { get; set; }

Property Value

GoogleRpcStatus

Metadata

Service-specific metadata associated with the operation.

[JsonPropertyName("metadata")]
public JsonElement? Metadata { get; set; }

Property Value

JsonElement?

Name

The server-assigned operation name, for example fileSearchStores/{store}/operations/{id} or fileSearchStores/{store}/upload/operations/{id}.

[JsonPropertyName("name")]
public string? Name { get; set; }

Property Value

string

Response

The result of the operation, available when it completed successfully.

[JsonPropertyName("response")]
public FileSearchOperationResponse? Response { get; set; }

Property Value

FileSearchOperationResponse