diff --git a/sims/choose/enumgen.go b/sims/choose/enumgen.go new file mode 100644 index 00000000..daae20c8 --- /dev/null +++ b/sims/choose/enumgen.go @@ -0,0 +1,128 @@ +// Code generated by "core generate -add-types -add-funcs"; DO NOT EDIT. + +package main + +import ( + "cogentcore.org/core/enums" +) + +var _ModesValues = []Modes{0, 1} + +// ModesN is the highest valid value for type Modes, plus one. +const ModesN Modes = 2 + +var _ModesValueMap = map[string]Modes{`Train`: 0, `Test`: 1} + +var _ModesDescMap = map[Modes]string{0: ``, 1: ``} + +var _ModesMap = map[Modes]string{0: `Train`, 1: `Test`} + +// String returns the string representation of this Modes value. +func (i Modes) String() string { return enums.String(i, _ModesMap) } + +// SetString sets the Modes value from its string representation, +// and returns an error if the string is invalid. +func (i *Modes) SetString(s string) error { return enums.SetString(i, s, _ModesValueMap, "Modes") } + +// Int64 returns the Modes value as an int64. +func (i Modes) Int64() int64 { return int64(i) } + +// SetInt64 sets the Modes value from an int64. +func (i *Modes) SetInt64(in int64) { *i = Modes(in) } + +// Desc returns the description of the Modes value. +func (i Modes) Desc() string { return enums.Desc(i, _ModesDescMap) } + +// ModesValues returns all possible values for the type Modes. +func ModesValues() []Modes { return _ModesValues } + +// Values returns all possible values for the type Modes. +func (i Modes) Values() []enums.Enum { return enums.Values(_ModesValues) } + +// MarshalText implements the [encoding.TextMarshaler] interface. +func (i Modes) MarshalText() ([]byte, error) { return []byte(i.String()), nil } + +// UnmarshalText implements the [encoding.TextUnmarshaler] interface. +func (i *Modes) UnmarshalText(text []byte) error { return enums.UnmarshalText(i, text, "Modes") } + +var _LevelsValues = []Levels{0, 1, 2, 3} + +// LevelsN is the highest valid value for type Levels, plus one. +const LevelsN Levels = 4 + +var _LevelsValueMap = map[string]Levels{`Cycle`: 0, `Trial`: 1, `Epoch`: 2, `Run`: 3} + +var _LevelsDescMap = map[Levels]string{0: ``, 1: ``, 2: ``, 3: ``} + +var _LevelsMap = map[Levels]string{0: `Cycle`, 1: `Trial`, 2: `Epoch`, 3: `Run`} + +// String returns the string representation of this Levels value. +func (i Levels) String() string { return enums.String(i, _LevelsMap) } + +// SetString sets the Levels value from its string representation, +// and returns an error if the string is invalid. +func (i *Levels) SetString(s string) error { return enums.SetString(i, s, _LevelsValueMap, "Levels") } + +// Int64 returns the Levels value as an int64. +func (i Levels) Int64() int64 { return int64(i) } + +// SetInt64 sets the Levels value from an int64. +func (i *Levels) SetInt64(in int64) { *i = Levels(in) } + +// Desc returns the description of the Levels value. +func (i Levels) Desc() string { return enums.Desc(i, _LevelsDescMap) } + +// LevelsValues returns all possible values for the type Levels. +func LevelsValues() []Levels { return _LevelsValues } + +// Values returns all possible values for the type Levels. +func (i Levels) Values() []enums.Enum { return enums.Values(_LevelsValues) } + +// MarshalText implements the [encoding.TextMarshaler] interface. +func (i Levels) MarshalText() ([]byte, error) { return []byte(i.String()), nil } + +// UnmarshalText implements the [encoding.TextUnmarshaler] interface. +func (i *Levels) UnmarshalText(text []byte) error { return enums.UnmarshalText(i, text, "Levels") } + +var _StatsPhaseValues = []StatsPhase{0, 1} + +// StatsPhaseN is the highest valid value for type StatsPhase, plus one. +const StatsPhaseN StatsPhase = 2 + +var _StatsPhaseValueMap = map[string]StatsPhase{`Start`: 0, `Step`: 1} + +var _StatsPhaseDescMap = map[StatsPhase]string{0: ``, 1: ``} + +var _StatsPhaseMap = map[StatsPhase]string{0: `Start`, 1: `Step`} + +// String returns the string representation of this StatsPhase value. +func (i StatsPhase) String() string { return enums.String(i, _StatsPhaseMap) } + +// SetString sets the StatsPhase value from its string representation, +// and returns an error if the string is invalid. +func (i *StatsPhase) SetString(s string) error { + return enums.SetString(i, s, _StatsPhaseValueMap, "StatsPhase") +} + +// Int64 returns the StatsPhase value as an int64. +func (i StatsPhase) Int64() int64 { return int64(i) } + +// SetInt64 sets the StatsPhase value from an int64. +func (i *StatsPhase) SetInt64(in int64) { *i = StatsPhase(in) } + +// Desc returns the description of the StatsPhase value. +func (i StatsPhase) Desc() string { return enums.Desc(i, _StatsPhaseDescMap) } + +// StatsPhaseValues returns all possible values for the type StatsPhase. +func StatsPhaseValues() []StatsPhase { return _StatsPhaseValues } + +// Values returns all possible values for the type StatsPhase. +func (i StatsPhase) Values() []enums.Enum { return enums.Values(_StatsPhaseValues) } + +// MarshalText implements the [encoding.TextMarshaler] interface. +func (i StatsPhase) MarshalText() ([]byte, error) { return []byte(i.String()), nil } + +// UnmarshalText implements the [encoding.TextUnmarshaler] interface. +func (i *StatsPhase) UnmarshalText(text []byte) error { + return enums.UnmarshalText(i, text, "StatsPhase") +} diff --git a/sims/objrec/enumgen.go b/sims/objrec/enumgen.go new file mode 100644 index 00000000..baed5194 --- /dev/null +++ b/sims/objrec/enumgen.go @@ -0,0 +1,128 @@ +// Code generated by "core generate -add-types -add-funcs"; DO NOT EDIT. + +package main + +import ( + "cogentcore.org/core/enums" +) + +var _ModesValues = []Modes{0, 1, 2} + +// ModesN is the highest valid value for type Modes, plus one. +const ModesN Modes = 3 + +var _ModesValueMap = map[string]Modes{`Train`: 0, `Test`: 1, `NovelTrain`: 2} + +var _ModesDescMap = map[Modes]string{0: ``, 1: ``, 2: ``} + +var _ModesMap = map[Modes]string{0: `Train`, 1: `Test`, 2: `NovelTrain`} + +// String returns the string representation of this Modes value. +func (i Modes) String() string { return enums.String(i, _ModesMap) } + +// SetString sets the Modes value from its string representation, +// and returns an error if the string is invalid. +func (i *Modes) SetString(s string) error { return enums.SetString(i, s, _ModesValueMap, "Modes") } + +// Int64 returns the Modes value as an int64. +func (i Modes) Int64() int64 { return int64(i) } + +// SetInt64 sets the Modes value from an int64. +func (i *Modes) SetInt64(in int64) { *i = Modes(in) } + +// Desc returns the description of the Modes value. +func (i Modes) Desc() string { return enums.Desc(i, _ModesDescMap) } + +// ModesValues returns all possible values for the type Modes. +func ModesValues() []Modes { return _ModesValues } + +// Values returns all possible values for the type Modes. +func (i Modes) Values() []enums.Enum { return enums.Values(_ModesValues) } + +// MarshalText implements the [encoding.TextMarshaler] interface. +func (i Modes) MarshalText() ([]byte, error) { return []byte(i.String()), nil } + +// UnmarshalText implements the [encoding.TextUnmarshaler] interface. +func (i *Modes) UnmarshalText(text []byte) error { return enums.UnmarshalText(i, text, "Modes") } + +var _LevelsValues = []Levels{0, 1, 2, 3} + +// LevelsN is the highest valid value for type Levels, plus one. +const LevelsN Levels = 4 + +var _LevelsValueMap = map[string]Levels{`Cycle`: 0, `Trial`: 1, `Epoch`: 2, `Run`: 3} + +var _LevelsDescMap = map[Levels]string{0: ``, 1: ``, 2: ``, 3: ``} + +var _LevelsMap = map[Levels]string{0: `Cycle`, 1: `Trial`, 2: `Epoch`, 3: `Run`} + +// String returns the string representation of this Levels value. +func (i Levels) String() string { return enums.String(i, _LevelsMap) } + +// SetString sets the Levels value from its string representation, +// and returns an error if the string is invalid. +func (i *Levels) SetString(s string) error { return enums.SetString(i, s, _LevelsValueMap, "Levels") } + +// Int64 returns the Levels value as an int64. +func (i Levels) Int64() int64 { return int64(i) } + +// SetInt64 sets the Levels value from an int64. +func (i *Levels) SetInt64(in int64) { *i = Levels(in) } + +// Desc returns the description of the Levels value. +func (i Levels) Desc() string { return enums.Desc(i, _LevelsDescMap) } + +// LevelsValues returns all possible values for the type Levels. +func LevelsValues() []Levels { return _LevelsValues } + +// Values returns all possible values for the type Levels. +func (i Levels) Values() []enums.Enum { return enums.Values(_LevelsValues) } + +// MarshalText implements the [encoding.TextMarshaler] interface. +func (i Levels) MarshalText() ([]byte, error) { return []byte(i.String()), nil } + +// UnmarshalText implements the [encoding.TextUnmarshaler] interface. +func (i *Levels) UnmarshalText(text []byte) error { return enums.UnmarshalText(i, text, "Levels") } + +var _StatsPhaseValues = []StatsPhase{0, 1} + +// StatsPhaseN is the highest valid value for type StatsPhase, plus one. +const StatsPhaseN StatsPhase = 2 + +var _StatsPhaseValueMap = map[string]StatsPhase{`Start`: 0, `Step`: 1} + +var _StatsPhaseDescMap = map[StatsPhase]string{0: ``, 1: ``} + +var _StatsPhaseMap = map[StatsPhase]string{0: `Start`, 1: `Step`} + +// String returns the string representation of this StatsPhase value. +func (i StatsPhase) String() string { return enums.String(i, _StatsPhaseMap) } + +// SetString sets the StatsPhase value from its string representation, +// and returns an error if the string is invalid. +func (i *StatsPhase) SetString(s string) error { + return enums.SetString(i, s, _StatsPhaseValueMap, "StatsPhase") +} + +// Int64 returns the StatsPhase value as an int64. +func (i StatsPhase) Int64() int64 { return int64(i) } + +// SetInt64 sets the StatsPhase value from an int64. +func (i *StatsPhase) SetInt64(in int64) { *i = StatsPhase(in) } + +// Desc returns the description of the StatsPhase value. +func (i StatsPhase) Desc() string { return enums.Desc(i, _StatsPhaseDescMap) } + +// StatsPhaseValues returns all possible values for the type StatsPhase. +func StatsPhaseValues() []StatsPhase { return _StatsPhaseValues } + +// Values returns all possible values for the type StatsPhase. +func (i StatsPhase) Values() []enums.Enum { return enums.Values(_StatsPhaseValues) } + +// MarshalText implements the [encoding.TextMarshaler] interface. +func (i StatsPhase) MarshalText() ([]byte, error) { return []byte(i.String()), nil } + +// UnmarshalText implements the [encoding.TextUnmarshaler] interface. +func (i *StatsPhase) UnmarshalText(text []byte) error { + return enums.UnmarshalText(i, text, "StatsPhase") +} diff --git a/sims/objrec/typegen.go b/sims/objrec/typegen.go index eede18c4..014d84bc 100644 --- a/sims/objrec/typegen.go +++ b/sims/objrec/typegen.go @@ -16,7 +16,7 @@ var _ = types.AddType(&types.Type{Name: "main.LogConfig", IDName: "log-config", var _ = types.AddType(&types.Type{Name: "main.Config", IDName: "config", Doc: "Config has the overall Sim configuration options.", Fields: []types.Field{{Name: "Name", Doc: "Name is the short name of the sim."}, {Name: "Title", Doc: "Title is the longer title of the sim."}, {Name: "URL", Doc: "URL is a link to the online README or other documentation for this sim."}, {Name: "Doc", Doc: "Doc is brief documentation of the sim."}, {Name: "Includes", Doc: "Includes has a list of additional config files to include.\nAfter configuration, it contains list of include files added."}, {Name: "GUI", Doc: "GUI means open the GUI. Otherwise it runs automatically and quits,\nsaving results to log files."}, {Name: "Debug", Doc: "Debug reports debugging information."}, {Name: "Env", Doc: "environment configuration options"}, {Name: "Params", Doc: "Params has parameter related configuration options."}, {Name: "Run", Doc: "Run has sim running related configuration options."}, {Name: "Log", Doc: "Log has data logging related configuration options."}}}) -var _ = types.AddType(&types.Type{Name: "main.LEDEnv", IDName: "led-env", Doc: "LEDEnv generates images of old-school \"LED\" style \"letters\" composed of a set of horizontal\nand vertical elements. All possible such combinations of 3 out of 6 line segments are created.\nRenders using SVG.", Fields: []types.Field{{Name: "Name", Doc: "name of this environment"}, {Name: "Draw", Doc: "draws LEDs onto image"}, {Name: "Vis", Doc: "visual processing params"}, {Name: "MinLED", Doc: "minimum LED number to draw (0-19)"}, {Name: "MaxLED", Doc: "maximum LED number to draw (0-19)"}, {Name: "CurLED", Doc: "current LED number that was drawn"}, {Name: "PrvLED", Doc: "previous LED number that was drawn"}, {Name: "XFormRand", Doc: "random transform parameters"}, {Name: "XForm", Doc: "current -- prev transforms"}, {Name: "Trial", Doc: "trial is the step counter for items"}, {Name: "OrigImg", Doc: "original image prior to random transforms"}, {Name: "Output", Doc: "CurLED one-hot output tensor"}}}) +var _ = types.AddType(&types.Type{Name: "main.LEDEnv", IDName: "led-env", Doc: "LEDEnv generates images of old-school \"LED\" style \"letters\" composed of a set of horizontal\nand vertical elements. All possible such combinations of 3 out of 6 line segments are created.\nRenders using SVG.", Fields: []types.Field{{Name: "Name", Doc: "name of this environment"}, {Name: "Draw", Doc: "draws LEDs onto image"}, {Name: "Vis", Doc: "visual processing params"}, {Name: "NOutPer", Doc: "number of output units per LED item -- spiking benefits from replication"}, {Name: "MinLED", Doc: "minimum LED number to draw (0-19)"}, {Name: "MaxLED", Doc: "maximum LED number to draw (0-19)"}, {Name: "CurLED", Doc: "current LED number that was drawn"}, {Name: "PrvLED", Doc: "previous LED number that was drawn"}, {Name: "XFormRand", Doc: "random transform parameters"}, {Name: "XForm", Doc: "current -- prev transforms"}, {Name: "Trial", Doc: "trial is the step counter for items"}, {Name: "OrigImg", Doc: "original image prior to random transforms"}, {Name: "Output", Doc: "CurLED one-hot output tensor"}}}) var _ = types.AddType(&types.Type{Name: "main.LEDraw", IDName: "le-draw", Doc: "LEDraw renders old-school \"LED\" style \"letters\" composed of a set of horizontal\nand vertical elements. All possible such combinations of 3 out of 6 line segments are created.\nRenders using SVG.", Directives: []types.Directive{{Tool: "types", Directive: "add"}}, Fields: []types.Field{{Name: "Width", Doc: "line width of LEDraw as percent of display size"}, {Name: "Size", Doc: "size of overall LED as proportion of overall image size"}, {Name: "LineColor", Doc: "color name for drawing lines"}, {Name: "BgColor", Doc: "color name for background"}, {Name: "ImgSize", Doc: "size of image to render"}, {Name: "Image", Doc: "rendered image"}, {Name: "Paint", Doc: "painting context object"}}}) diff --git a/sims/pcoreventral/enumgen.go b/sims/pcoreventral/enumgen.go new file mode 100644 index 00000000..8a5a0887 --- /dev/null +++ b/sims/pcoreventral/enumgen.go @@ -0,0 +1,128 @@ +// Code generated by "core generate -add-types -add-funcs"; DO NOT EDIT. + +package main + +import ( + "cogentcore.org/core/enums" +) + +var _ModesValues = []Modes{0, 1} + +// ModesN is the highest valid value for type Modes, plus one. +const ModesN Modes = 2 + +var _ModesValueMap = map[string]Modes{`Train`: 0, `Test`: 1} + +var _ModesDescMap = map[Modes]string{0: ``, 1: ``} + +var _ModesMap = map[Modes]string{0: `Train`, 1: `Test`} + +// String returns the string representation of this Modes value. +func (i Modes) String() string { return enums.String(i, _ModesMap) } + +// SetString sets the Modes value from its string representation, +// and returns an error if the string is invalid. +func (i *Modes) SetString(s string) error { return enums.SetString(i, s, _ModesValueMap, "Modes") } + +// Int64 returns the Modes value as an int64. +func (i Modes) Int64() int64 { return int64(i) } + +// SetInt64 sets the Modes value from an int64. +func (i *Modes) SetInt64(in int64) { *i = Modes(in) } + +// Desc returns the description of the Modes value. +func (i Modes) Desc() string { return enums.Desc(i, _ModesDescMap) } + +// ModesValues returns all possible values for the type Modes. +func ModesValues() []Modes { return _ModesValues } + +// Values returns all possible values for the type Modes. +func (i Modes) Values() []enums.Enum { return enums.Values(_ModesValues) } + +// MarshalText implements the [encoding.TextMarshaler] interface. +func (i Modes) MarshalText() ([]byte, error) { return []byte(i.String()), nil } + +// UnmarshalText implements the [encoding.TextUnmarshaler] interface. +func (i *Modes) UnmarshalText(text []byte) error { return enums.UnmarshalText(i, text, "Modes") } + +var _LevelsValues = []Levels{0, 1, 2, 3, 4} + +// LevelsN is the highest valid value for type Levels, plus one. +const LevelsN Levels = 5 + +var _LevelsValueMap = map[string]Levels{`Cycle`: 0, `Theta`: 1, `Trial`: 2, `Epoch`: 3, `Run`: 4} + +var _LevelsDescMap = map[Levels]string{0: ``, 1: ``, 2: ``, 3: ``, 4: ``} + +var _LevelsMap = map[Levels]string{0: `Cycle`, 1: `Theta`, 2: `Trial`, 3: `Epoch`, 4: `Run`} + +// String returns the string representation of this Levels value. +func (i Levels) String() string { return enums.String(i, _LevelsMap) } + +// SetString sets the Levels value from its string representation, +// and returns an error if the string is invalid. +func (i *Levels) SetString(s string) error { return enums.SetString(i, s, _LevelsValueMap, "Levels") } + +// Int64 returns the Levels value as an int64. +func (i Levels) Int64() int64 { return int64(i) } + +// SetInt64 sets the Levels value from an int64. +func (i *Levels) SetInt64(in int64) { *i = Levels(in) } + +// Desc returns the description of the Levels value. +func (i Levels) Desc() string { return enums.Desc(i, _LevelsDescMap) } + +// LevelsValues returns all possible values for the type Levels. +func LevelsValues() []Levels { return _LevelsValues } + +// Values returns all possible values for the type Levels. +func (i Levels) Values() []enums.Enum { return enums.Values(_LevelsValues) } + +// MarshalText implements the [encoding.TextMarshaler] interface. +func (i Levels) MarshalText() ([]byte, error) { return []byte(i.String()), nil } + +// UnmarshalText implements the [encoding.TextUnmarshaler] interface. +func (i *Levels) UnmarshalText(text []byte) error { return enums.UnmarshalText(i, text, "Levels") } + +var _StatsPhaseValues = []StatsPhase{0, 1} + +// StatsPhaseN is the highest valid value for type StatsPhase, plus one. +const StatsPhaseN StatsPhase = 2 + +var _StatsPhaseValueMap = map[string]StatsPhase{`Start`: 0, `Step`: 1} + +var _StatsPhaseDescMap = map[StatsPhase]string{0: ``, 1: ``} + +var _StatsPhaseMap = map[StatsPhase]string{0: `Start`, 1: `Step`} + +// String returns the string representation of this StatsPhase value. +func (i StatsPhase) String() string { return enums.String(i, _StatsPhaseMap) } + +// SetString sets the StatsPhase value from its string representation, +// and returns an error if the string is invalid. +func (i *StatsPhase) SetString(s string) error { + return enums.SetString(i, s, _StatsPhaseValueMap, "StatsPhase") +} + +// Int64 returns the StatsPhase value as an int64. +func (i StatsPhase) Int64() int64 { return int64(i) } + +// SetInt64 sets the StatsPhase value from an int64. +func (i *StatsPhase) SetInt64(in int64) { *i = StatsPhase(in) } + +// Desc returns the description of the StatsPhase value. +func (i StatsPhase) Desc() string { return enums.Desc(i, _StatsPhaseDescMap) } + +// StatsPhaseValues returns all possible values for the type StatsPhase. +func StatsPhaseValues() []StatsPhase { return _StatsPhaseValues } + +// Values returns all possible values for the type StatsPhase. +func (i StatsPhase) Values() []enums.Enum { return enums.Values(_StatsPhaseValues) } + +// MarshalText implements the [encoding.TextMarshaler] interface. +func (i StatsPhase) MarshalText() ([]byte, error) { return []byte(i.String()), nil } + +// UnmarshalText implements the [encoding.TextUnmarshaler] interface. +func (i *StatsPhase) UnmarshalText(text []byte) error { + return enums.UnmarshalText(i, text, "StatsPhase") +} diff --git a/sims/pvlv/enumgen.go b/sims/pvlv/enumgen.go new file mode 100644 index 00000000..f8080994 --- /dev/null +++ b/sims/pvlv/enumgen.go @@ -0,0 +1,128 @@ +// Code generated by "core generate -add-types -add-funcs"; DO NOT EDIT. + +package main + +import ( + "cogentcore.org/core/enums" +) + +var _ModesValues = []Modes{0, 1} + +// ModesN is the highest valid value for type Modes, plus one. +const ModesN Modes = 2 + +var _ModesValueMap = map[string]Modes{`Train`: 0, `Test`: 1} + +var _ModesDescMap = map[Modes]string{0: ``, 1: ``} + +var _ModesMap = map[Modes]string{0: `Train`, 1: `Test`} + +// String returns the string representation of this Modes value. +func (i Modes) String() string { return enums.String(i, _ModesMap) } + +// SetString sets the Modes value from its string representation, +// and returns an error if the string is invalid. +func (i *Modes) SetString(s string) error { return enums.SetString(i, s, _ModesValueMap, "Modes") } + +// Int64 returns the Modes value as an int64. +func (i Modes) Int64() int64 { return int64(i) } + +// SetInt64 sets the Modes value from an int64. +func (i *Modes) SetInt64(in int64) { *i = Modes(in) } + +// Desc returns the description of the Modes value. +func (i Modes) Desc() string { return enums.Desc(i, _ModesDescMap) } + +// ModesValues returns all possible values for the type Modes. +func ModesValues() []Modes { return _ModesValues } + +// Values returns all possible values for the type Modes. +func (i Modes) Values() []enums.Enum { return enums.Values(_ModesValues) } + +// MarshalText implements the [encoding.TextMarshaler] interface. +func (i Modes) MarshalText() ([]byte, error) { return []byte(i.String()), nil } + +// UnmarshalText implements the [encoding.TextUnmarshaler] interface. +func (i *Modes) UnmarshalText(text []byte) error { return enums.UnmarshalText(i, text, "Modes") } + +var _LevelsValues = []Levels{0, 1, 2, 3, 4, 5} + +// LevelsN is the highest valid value for type Levels, plus one. +const LevelsN Levels = 6 + +var _LevelsValueMap = map[string]Levels{`Cycle`: 0, `Trial`: 1, `Sequence`: 2, `Block`: 3, `Condition`: 4, `Run`: 5} + +var _LevelsDescMap = map[Levels]string{0: ``, 1: ``, 2: ``, 3: ``, 4: ``, 5: ``} + +var _LevelsMap = map[Levels]string{0: `Cycle`, 1: `Trial`, 2: `Sequence`, 3: `Block`, 4: `Condition`, 5: `Run`} + +// String returns the string representation of this Levels value. +func (i Levels) String() string { return enums.String(i, _LevelsMap) } + +// SetString sets the Levels value from its string representation, +// and returns an error if the string is invalid. +func (i *Levels) SetString(s string) error { return enums.SetString(i, s, _LevelsValueMap, "Levels") } + +// Int64 returns the Levels value as an int64. +func (i Levels) Int64() int64 { return int64(i) } + +// SetInt64 sets the Levels value from an int64. +func (i *Levels) SetInt64(in int64) { *i = Levels(in) } + +// Desc returns the description of the Levels value. +func (i Levels) Desc() string { return enums.Desc(i, _LevelsDescMap) } + +// LevelsValues returns all possible values for the type Levels. +func LevelsValues() []Levels { return _LevelsValues } + +// Values returns all possible values for the type Levels. +func (i Levels) Values() []enums.Enum { return enums.Values(_LevelsValues) } + +// MarshalText implements the [encoding.TextMarshaler] interface. +func (i Levels) MarshalText() ([]byte, error) { return []byte(i.String()), nil } + +// UnmarshalText implements the [encoding.TextUnmarshaler] interface. +func (i *Levels) UnmarshalText(text []byte) error { return enums.UnmarshalText(i, text, "Levels") } + +var _StatsPhaseValues = []StatsPhase{0, 1} + +// StatsPhaseN is the highest valid value for type StatsPhase, plus one. +const StatsPhaseN StatsPhase = 2 + +var _StatsPhaseValueMap = map[string]StatsPhase{`Start`: 0, `Step`: 1} + +var _StatsPhaseDescMap = map[StatsPhase]string{0: ``, 1: ``} + +var _StatsPhaseMap = map[StatsPhase]string{0: `Start`, 1: `Step`} + +// String returns the string representation of this StatsPhase value. +func (i StatsPhase) String() string { return enums.String(i, _StatsPhaseMap) } + +// SetString sets the StatsPhase value from its string representation, +// and returns an error if the string is invalid. +func (i *StatsPhase) SetString(s string) error { + return enums.SetString(i, s, _StatsPhaseValueMap, "StatsPhase") +} + +// Int64 returns the StatsPhase value as an int64. +func (i StatsPhase) Int64() int64 { return int64(i) } + +// SetInt64 sets the StatsPhase value from an int64. +func (i *StatsPhase) SetInt64(in int64) { *i = StatsPhase(in) } + +// Desc returns the description of the StatsPhase value. +func (i StatsPhase) Desc() string { return enums.Desc(i, _StatsPhaseDescMap) } + +// StatsPhaseValues returns all possible values for the type StatsPhase. +func StatsPhaseValues() []StatsPhase { return _StatsPhaseValues } + +// Values returns all possible values for the type StatsPhase. +func (i StatsPhase) Values() []enums.Enum { return enums.Values(_StatsPhaseValues) } + +// MarshalText implements the [encoding.TextMarshaler] interface. +func (i StatsPhase) MarshalText() ([]byte, error) { return []byte(i.String()), nil } + +// UnmarshalText implements the [encoding.TextUnmarshaler] interface. +func (i *StatsPhase) UnmarshalText(text []byte) error { + return enums.UnmarshalText(i, text, "StatsPhase") +}