Class GcsSource
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
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a GcsSource object.
public static GcsSource? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- GcsSource
The deserialized GcsSource object, or null if deserialization fails.