/// <summary>Snippet for CreateIndexAsync</summary>
        public async Task CreateIndexAsync()
        {
            // Snippet: CreateIndexAsync(ParentName,Index,CallSettings)
            // Additional: CreateIndexAsync(ParentName,Index,CancellationToken)
            // Create client
            FirestoreAdminClient firestoreAdminClient = await FirestoreAdminClient.CreateAsync();

            // Initialize request argument(s)
            ParentName parent = new ParentName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]");
            Index      index  = new Index();
            // Make the request
            Operation response = await firestoreAdminClient.CreateIndexAsync(parent, index);

            // End snippet
        }
        public async Task CreateIndexAsync()
        {
            // Snippet: CreateIndexAsync(string,Index,CallSettings)
            // Additional: CreateIndexAsync(string,Index,CancellationToken)
            // Create client
            FirestoreAdminClient firestoreAdminClient = await FirestoreAdminClient.CreateAsync();

            // Initialize request argument(s)
            string formattedParent = new DatabaseName("[PROJECT]", "[DATABASE]").ToString();
            Index  index           = new Index();
            // Make the request
            Operation response = await firestoreAdminClient.CreateIndexAsync(formattedParent, index);

            // End snippet
        }
        public async Task CreateIndexAsync_RequestObject()
        {
            // Snippet: CreateIndexAsync(CreateIndexRequest,CallSettings)
            // Create client
            FirestoreAdminClient firestoreAdminClient = await FirestoreAdminClient.CreateAsync();

            // Initialize request argument(s)
            CreateIndexRequest request = new CreateIndexRequest
            {
                Parent = new DatabaseName("[PROJECT]", "[DATABASE]").ToString(),
                Index  = new Index(),
            };
            // Make the request
            Operation response = await firestoreAdminClient.CreateIndexAsync(request);

            // End snippet
        }
        /// <summary>Snippet for CreateIndexAsync</summary>
        public async Task CreateIndexAsync_RequestObject()
        {
            // Snippet: CreateIndexAsync(CreateIndexRequest,CallSettings)
            // Additional: CreateIndexAsync(CreateIndexRequest,CancellationToken)
            // Create client
            FirestoreAdminClient firestoreAdminClient = await FirestoreAdminClient.CreateAsync();

            // Initialize request argument(s)
            CreateIndexRequest request = new CreateIndexRequest
            {
                ParentAsParentName = new ParentName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]"),
                Index = new Index(),
            };
            // Make the request
            Operation response = await firestoreAdminClient.CreateIndexAsync(request);

            // End snippet
        }