/// <summary>Snippet for GetIndex</summary> public void GetIndex() { // Snippet: GetIndex(IndexName,CallSettings) // Create client FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.Create(); // Initialize request argument(s) IndexName name = new IndexName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]", "[INDEX_ID]"); // Make the request Index response = firestoreAdminClient.GetIndex(name); // End snippet }
public void GetIndex() { // Snippet: GetIndex(string,CallSettings) // Create client FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.Create(); // Initialize request argument(s) string formattedName = new IndexName("[PROJECT]", "[DATABASE]", "[INDEX]").ToString(); // Make the request Index response = firestoreAdminClient.GetIndex(formattedName); // End snippet }
/// <summary>Snippet for GetIndex</summary> public void GetIndex_RequestObject() { // Snippet: GetIndex(GetIndexRequest,CallSettings) // Create client FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.Create(); // Initialize request argument(s) GetIndexRequest request = new GetIndexRequest { IndexName = new IndexName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]", "[INDEX_ID]"), }; // Make the request Index response = firestoreAdminClient.GetIndex(request); // End snippet }