
#nullable enable

namespace Google.Gemini
{
    /// <summary>
    /// Record for a single tuning step.
    /// </summary>
    public sealed partial class TuningSnapshot
    {
        /// <summary>
        /// Output only. The epoch this step was part of.<br/>
        /// Included only in responses
        /// </summary>
        [global::System.Text.Json.Serialization.JsonPropertyName("epoch")]
        public int? Epoch { get; set; }

        /// <summary>
        /// Output only. The mean loss of the training examples for this step.<br/>
        /// Included only in responses
        /// </summary>
        [global::System.Text.Json.Serialization.JsonPropertyName("meanLoss")]
        public float? MeanLoss { get; set; }

        /// <summary>
        /// Output only. The tuning step.<br/>
        /// Included only in responses
        /// </summary>
        [global::System.Text.Json.Serialization.JsonPropertyName("step")]
        public int? Step { get; set; }

        /// <summary>
        /// Output only. The timestamp when this metric was computed.<br/>
        /// Included only in responses
        /// </summary>
        [global::System.Text.Json.Serialization.JsonPropertyName("computeTime")]
        public string? ComputeTime { get; set; }

        /// <summary>
        /// Additional properties that are not explicitly defined in the schema
        /// </summary>
        [global::System.Text.Json.Serialization.JsonExtensionData]
        public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

        /// <summary>
        /// Initializes a new instance of the <see cref="TuningSnapshot" /> class.
        /// </summary>
        /// <param name="epoch">
        /// Output only. The epoch this step was part of.<br/>
        /// Included only in responses
        /// </param>
        /// <param name="meanLoss">
        /// Output only. The mean loss of the training examples for this step.<br/>
        /// Included only in responses
        /// </param>
        /// <param name="step">
        /// Output only. The tuning step.<br/>
        /// Included only in responses
        /// </param>
        /// <param name="computeTime">
        /// Output only. The timestamp when this metric was computed.<br/>
        /// Included only in responses
        /// </param>
#if NET7_0_OR_GREATER
        [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
        public TuningSnapshot(
            int? epoch,
            float? meanLoss,
            int? step,
            string? computeTime)
        {
            this.Epoch = epoch;
            this.MeanLoss = meanLoss;
            this.Step = step;
            this.ComputeTime = computeTime;
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="TuningSnapshot" /> class.
        /// </summary>
        public TuningSnapshot()
        {
        }

    }
}