Table of Contents

Class GcsSource

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

The Google Cloud Storage location for the input content. This data type is not supported in Gemini API.

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

Properties

Uris

Google Cloud Storage URI(-s) to the input file(s). May contain wildcards. For more information on wildcards, see https://cloud.google.com/storage/docs/wildcards.

[JsonPropertyName("uris")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<string>? Uris { get; set; }

Property Value

List<string>

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a GcsSource object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

GcsSource

The deserialized GcsSource object, or null if deserialization fails.