Table of Contents

Struct SubjectReferenceType

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

Enum representing the subject type of a subject reference image.

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

Properties

AllValues

public static IReadOnlyList<SubjectReferenceType> AllValues { get; }

Property Value

IReadOnlyList<SubjectReferenceType>

SubjectTypeAnimal

public static SubjectReferenceType SubjectTypeAnimal { get; }

Property Value

SubjectReferenceType

SubjectTypeDefault

public static SubjectReferenceType SubjectTypeDefault { get; }

Property Value

SubjectReferenceType

SubjectTypePerson

public static SubjectReferenceType SubjectTypePerson { get; }

Property Value

SubjectReferenceType

SubjectTypeProduct

public static SubjectReferenceType SubjectTypeProduct { get; }

Property Value

SubjectReferenceType

Value

public string Value { get; }

Property Value

string

Methods

Equals(SubjectReferenceType)

public bool Equals(SubjectReferenceType other)

Parameters

other SubjectReferenceType

Returns

bool

FromString(string)

public static SubjectReferenceType FromString(string value)

Parameters

value string

Returns

SubjectReferenceType

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator SubjectReferenceType(string)

public static implicit operator SubjectReferenceType(string value)

Parameters

value string

Returns

SubjectReferenceType