/// <summary>Snippet for CreateIndex</summary>
 public void CreateIndex()
 {
     // Snippet: CreateIndex(ParentName,Index,CallSettings)
     // Create client
     FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.Create();
     // Initialize request argument(s)
     ParentName parent = new ParentName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]");
     Index      index  = new Index();
     // Make the request
     Operation response = firestoreAdminClient.CreateIndex(parent, index);
     // End snippet
 }
 public void CreateIndex()
 {
     // Snippet: CreateIndex(string,Index,CallSettings)
     // Create client
     FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.Create();
     // Initialize request argument(s)
     string formattedParent = new DatabaseName("[PROJECT]", "[DATABASE]").ToString();
     Index  index           = new Index();
     // Make the request
     Operation response = firestoreAdminClient.CreateIndex(formattedParent, index);
     // End snippet
 }
 /// <summary>Snippet for CreateIndex</summary>
 public void CreateIndex_RequestObject()
 {
     // Snippet: CreateIndex(CreateIndexRequest,CallSettings)
     // Create client
     FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.Create();
     // Initialize request argument(s)
     CreateIndexRequest request = new CreateIndexRequest
     {
         ParentAsParentName = new ParentName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]"),
         Index = new Index(),
     };
     // Make the request
     Operation response = firestoreAdminClient.CreateIndex(request);
     // End snippet
 }