// <auto-generated/>

#nullable disable

using System;
using System.ComponentModel;
using OpenAI;

namespace OpenAI.Realtime
{
    public readonly partial struct InputTranscriptionModel : IEquatable<InputTranscriptionModel>
    {
        private readonly string _value;
        private const string Whisper1Value = "whisper-1";

        public InputTranscriptionModel(string value)
        {
            Argument.AssertNotNull(value, nameof(value));

            _value = value;
        }

        public static InputTranscriptionModel Whisper1 { get; } = new InputTranscriptionModel(Whisper1Value);

        public static bool operator ==(InputTranscriptionModel left, InputTranscriptionModel right) => left.Equals(right);

        public static bool operator !=(InputTranscriptionModel left, InputTranscriptionModel right) => !left.Equals(right);

        public static implicit operator InputTranscriptionModel(string value) => new InputTranscriptionModel(value);

        [EditorBrowsable(EditorBrowsableState.Never)]
        public override bool Equals(object obj) => obj is InputTranscriptionModel other && Equals(other);

        public bool Equals(InputTranscriptionModel other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);

        [EditorBrowsable(EditorBrowsableState.Never)]
        public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;

        public override string ToString() => _value;
    }
}
