/// <summary>Snippet for GetIndexAsync</summary> public async Task GetIndexAsync() { // Snippet: GetIndexAsync(IndexName,CallSettings) // Additional: GetIndexAsync(IndexName,CancellationToken) // Create client FirestoreAdminClient firestoreAdminClient = await FirestoreAdminClient.CreateAsync(); // Initialize request argument(s) IndexName name = new IndexName("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]", "[INDEX_ID]"); // Make the request Index response = await firestoreAdminClient.GetIndexAsync(name); // End snippet }
public async Task GetIndexAsync() { // Snippet: GetIndexAsync(string,CallSettings) // Additional: GetIndexAsync(string,CancellationToken) // Create client FirestoreAdminClient firestoreAdminClient = await FirestoreAdminClient.CreateAsync(); // Initialize request argument(s) string formattedName = new IndexName("[PROJECT]", "[DATABASE]", "[INDEX]").ToString(); // Make the request Index response = await firestoreAdminClient.GetIndexAsync(formattedName); // End snippet }
public async Task GetIndexAsync_RequestObject() { // Snippet: GetIndexAsync(GetIndexRequest,CallSettings) // Create client FirestoreAdminClient firestoreAdminClient = await FirestoreAdminClient.CreateAsync(); // Initialize request argument(s) GetIndexRequest request = new GetIndexRequest { Name = new IndexName("[PROJECT]", "[DATABASE]", "[INDEX]").ToString(), }; // Make the request Index response = await firestoreAdminClient.GetIndexAsync(request); // End snippet }