Table of Contents

Class UploadToFileSearchStoreResponse

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

The response when long-running operation for uploading a file to a FileSearchStore complete.

public record UploadToFileSearchStoreResponse : IEquatable<UploadToFileSearchStoreResponse>
Inheritance
UploadToFileSearchStoreResponse
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 UploadToFileSearchStoreResponse object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

UploadToFileSearchStoreResponse

The deserialized UploadToFileSearchStoreResponse object, or null if deserialization fails.