Table of Contents

Struct FileSource

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

Source of the File.

[JsonConverter(typeof(FileSourceConverter))]
public readonly record struct FileSource : IEquatable<FileSource>
Implements
Inherited Members

Properties

AllValues

public static IReadOnlyList<FileSource> AllValues { get; }

Property Value

IReadOnlyList<FileSource>

Generated

public static FileSource Generated { get; }

Property Value

FileSource

Registered

public static FileSource Registered { get; }

Property Value

FileSource

SourceUnspecified

public static FileSource SourceUnspecified { get; }

Property Value

FileSource

Uploaded

public static FileSource Uploaded { get; }

Property Value

FileSource

Value

public string Value { get; }

Property Value

string

Methods

Equals(FileSource)

public bool Equals(FileSource other)

Parameters

other FileSource

Returns

bool

FromString(string)

public static FileSource FromString(string value)

Parameters

value string

Returns

FileSource

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator FileSource(string)

public static implicit operator FileSource(string value)

Parameters

value string

Returns

FileSource