
#nullable enable

namespace Google.Gemini
{
    /// <summary>
    /// Request for `UploadToFileSearchStore`.
    /// </summary>
    public sealed partial class UploadToFileSearchStoreRequest
    {
        /// <summary>
        /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto
        /// </summary>
        [global::System.Text.Json.Serialization.JsonPropertyName("chunkingConfig")]
        public global::Google.Gemini.ChunkingConfig? ChunkingConfig { get; set; }

        /// <summary>
        /// Optional. Display name of the created document.
        /// </summary>
        [global::System.Text.Json.Serialization.JsonPropertyName("displayName")]
        public string? DisplayName { get; set; }

        /// <summary>
        /// Custom metadata to be associated with the data.
        /// </summary>
        [global::System.Text.Json.Serialization.JsonPropertyName("customMetadata")]
        public global::System.Collections.Generic.IList<global::Google.Gemini.CustomMetadata>? CustomMetadata { get; set; }

        /// <summary>
        /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content.
        /// </summary>
        [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")]
        public string? MimeType { 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="UploadToFileSearchStoreRequest" /> class.
        /// </summary>
        /// <param name="chunkingConfig">
        /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto
        /// </param>
        /// <param name="displayName">
        /// Optional. Display name of the created document.
        /// </param>
        /// <param name="customMetadata">
        /// Custom metadata to be associated with the data.
        /// </param>
        /// <param name="mimeType">
        /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content.
        /// </param>
#if NET7_0_OR_GREATER
        [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
        public UploadToFileSearchStoreRequest(
            global::Google.Gemini.ChunkingConfig? chunkingConfig,
            string? displayName,
            global::System.Collections.Generic.IList<global::Google.Gemini.CustomMetadata>? customMetadata,
            string? mimeType)
        {
            this.ChunkingConfig = chunkingConfig;
            this.DisplayName = displayName;
            this.CustomMetadata = customMetadata;
            this.MimeType = mimeType;
        }

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

    }
}