
#nullable enable

namespace Google.Gemini
{
    /// <summary>
    /// Tool to retrieve public web data for grounding, powered by Google.
    /// </summary>
    public sealed partial class GoogleSearchRetrieval
    {
        /// <summary>
        /// Describes the options to customize dynamic retrieval.
        /// </summary>
        [global::System.Text.Json.Serialization.JsonPropertyName("dynamicRetrievalConfig")]
        public global::Google.Gemini.DynamicRetrievalConfig? DynamicRetrievalConfig { 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="GoogleSearchRetrieval" /> class.
        /// </summary>
        /// <param name="dynamicRetrievalConfig">
        /// Describes the options to customize dynamic retrieval.
        /// </param>
#if NET7_0_OR_GREATER
        [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
        public GoogleSearchRetrieval(
            global::Google.Gemini.DynamicRetrievalConfig? dynamicRetrievalConfig)
        {
            this.DynamicRetrievalConfig = dynamicRetrievalConfig;
        }

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

    }
}