
#nullable enable

namespace Google.Gemini
{
    /// <summary>
    /// Candidate for the logprobs token and score.
    /// </summary>
    public sealed partial class LogprobsResultCandidate
    {
        /// <summary>
        /// The candidate’s token id value.
        /// </summary>
        [global::System.Text.Json.Serialization.JsonPropertyName("tokenId")]
        public int? TokenId { get; set; }

        /// <summary>
        /// The candidate's log probability.
        /// </summary>
        [global::System.Text.Json.Serialization.JsonPropertyName("logProbability")]
        public float? LogProbability { get; set; }

        /// <summary>
        /// The candidate’s token string value.
        /// </summary>
        [global::System.Text.Json.Serialization.JsonPropertyName("token")]
        public string? Token { 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="LogprobsResultCandidate" /> class.
        /// </summary>
        /// <param name="tokenId">
        /// The candidate’s token id value.
        /// </param>
        /// <param name="logProbability">
        /// The candidate's log probability.
        /// </param>
        /// <param name="token">
        /// The candidate’s token string value.
        /// </param>
#if NET7_0_OR_GREATER
        [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
        public LogprobsResultCandidate(
            int? tokenId,
            float? logProbability,
            string? token)
        {
            this.TokenId = tokenId;
            this.LogProbability = logProbability;
            this.Token = token;
        }

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

    }
}