Table of Contents

Struct Type

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

Data type of the schema field.

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

Properties

AllValues

public static IReadOnlyList<Type> AllValues { get; }

Property Value

IReadOnlyList<Type>

Array

OpenAPI array type

public static Type Array { get; }

Property Value

Type

Boolean

OpenAPI boolean type

public static Type Boolean { get; }

Property Value

Type

Integer

OpenAPI integer type

public static Type Integer { get; }

Property Value

Type

Null

Null type

public static Type Null { get; }

Property Value

Type

Number

OpenAPI number type

public static Type Number { get; }

Property Value

Type

Object

OpenAPI object type

public static Type Object { get; }

Property Value

Type

String

OpenAPI string type

public static Type String { get; }

Property Value

Type

TypeUnspecified

Not specified, should not be used.

public static Type TypeUnspecified { get; }

Property Value

Type

Value

public string Value { get; }

Property Value

string

Methods

Equals(Type)

public bool Equals(Type other)

Parameters

other Type

Returns

bool

FromString(string)

public static Type FromString(string value)

Parameters

value string

Returns

Type

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator Type(string)

public static implicit operator Type(string value)

Parameters

value string

Returns

Type