Table of Contents

Struct Environment

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

The environment being operated.

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

Properties

AllValues

public static IReadOnlyList<Environment> AllValues { get; }

Property Value

IReadOnlyList<Environment>

EnvironmentBrowser

Operates in a web browser.

public static Environment EnvironmentBrowser { get; }

Property Value

Environment

EnvironmentDesktop

Operates in a desktop environment.

public static Environment EnvironmentDesktop { get; }

Property Value

Environment

EnvironmentMobile

Operates in a mobile environment.

public static Environment EnvironmentMobile { get; }

Property Value

Environment

EnvironmentUnspecified

Defaults to browser.

public static Environment EnvironmentUnspecified { get; }

Property Value

Environment

Value

public string Value { get; }

Property Value

string

Methods

Equals(Environment)

public bool Equals(Environment other)

Parameters

other Environment

Returns

bool

FromString(string)

public static Environment FromString(string value)

Parameters

value string

Returns

Environment

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator Environment(string)

public static implicit operator Environment(string value)

Parameters

value string

Returns

Environment