/// <summary>Snippet for UpdateContextAsync</summary> public async Task UpdateContextAsync() { // Snippet: UpdateContextAsync(Context,CallSettings) // Additional: UpdateContextAsync(Context,CancellationToken) // Create client ContextsClient contextsClient = await ContextsClient.CreateAsync(); // Initialize request argument(s) Context context = new Context(); // Make the request Context response = await contextsClient.UpdateContextAsync(context); // End snippet }
/// <summary>Snippet for UpdateContextAsync</summary> public async Task UpdateContextRequestObjectAsync() { // Snippet: UpdateContextAsync(UpdateContextRequest, CallSettings) // Additional: UpdateContextAsync(UpdateContextRequest, CancellationToken) // Create client ContextsClient contextsClient = await ContextsClient.CreateAsync(); // Initialize request argument(s) UpdateContextRequest request = new UpdateContextRequest { Context = new Context(), UpdateMask = new FieldMask(), }; // Make the request Context response = await contextsClient.UpdateContextAsync(request); // End snippet }