/// <summary>Snippet for LookupAsync</summary> public async Task LookupAsync() { // Snippet: LookupAsync(string, ReadOptions, IEnumerable<Key>, CallSettings) // Additional: LookupAsync(string, ReadOptions, IEnumerable<Key>, CancellationToken) // Create client DatastoreClient datastoreClient = await DatastoreClient.CreateAsync(); // Initialize request argument(s) string projectId = ""; ReadOptions readOptions = new ReadOptions(); IEnumerable <Key> keys = new Key[] { new Key(), }; // Make the request LookupResponse response = await datastoreClient.LookupAsync(projectId, readOptions, keys); // End snippet }
public async Task LookupAsync_RequestObject() { // Snippet: LookupAsync(LookupRequest,CallSettings) // Create client DatastoreClient datastoreClient = await DatastoreClient.CreateAsync(); // Initialize request argument(s) LookupRequest request = new LookupRequest { ProjectId = "", Keys = { }, }; // Make the request LookupResponse response = await datastoreClient.LookupAsync(request); // End snippet }
/// <summary>Snippet for LookupAsync</summary> public async Task LookupRequestObjectAsync() { // Snippet: LookupAsync(LookupRequest, CallSettings) // Additional: LookupAsync(LookupRequest, CancellationToken) // Create client DatastoreClient datastoreClient = await DatastoreClient.CreateAsync(); // Initialize request argument(s) LookupRequest request = new LookupRequest { ReadOptions = new ReadOptions(), Keys = { new Key(), }, ProjectId = "", }; // Make the request LookupResponse response = await datastoreClient.LookupAsync(request); // End snippet }