Table of Contents

Struct SegmentMode

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

Enum that represents the segmentation mode.

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

Properties

AllValues

public static IReadOnlyList<SegmentMode> AllValues { get; }

Property Value

IReadOnlyList<SegmentMode>

Background

public static SegmentMode Background { get; }

Property Value

SegmentMode

Foreground

public static SegmentMode Foreground { get; }

Property Value

SegmentMode

Interactive

public static SegmentMode Interactive { get; }

Property Value

SegmentMode

Prompt

public static SegmentMode Prompt { get; }

Property Value

SegmentMode

Semantic

public static SegmentMode Semantic { get; }

Property Value

SegmentMode

Value

public string Value { get; }

Property Value

string

Methods

Equals(SegmentMode)

public bool Equals(SegmentMode other)

Parameters

other SegmentMode

Returns

bool

FromString(string)

public static SegmentMode FromString(string value)

Parameters

value string

Returns

SegmentMode

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator SegmentMode(string)

public static implicit operator SegmentMode(string value)

Parameters

value string

Returns

SegmentMode