/// <summary>Snippet for UpdateAnswerRecordAsync</summary> public async Task UpdateAnswerRecordAsync() { // Snippet: UpdateAnswerRecordAsync(AnswerRecord, FieldMask, CallSettings) // Additional: UpdateAnswerRecordAsync(AnswerRecord, FieldMask, CancellationToken) // Create client AnswerRecordsClient answerRecordsClient = await AnswerRecordsClient.CreateAsync(); // Initialize request argument(s) AnswerRecord answerRecord = new AnswerRecord(); FieldMask updateMask = new FieldMask(); // Make the request AnswerRecord response = await answerRecordsClient.UpdateAnswerRecordAsync(answerRecord, updateMask); // End snippet }
/// <summary>Snippet for UpdateAnswerRecordAsync</summary> public async Task UpdateAnswerRecordRequestObjectAsync() { // Snippet: UpdateAnswerRecordAsync(UpdateAnswerRecordRequest, CallSettings) // Additional: UpdateAnswerRecordAsync(UpdateAnswerRecordRequest, CancellationToken) // Create client AnswerRecordsClient answerRecordsClient = await AnswerRecordsClient.CreateAsync(); // Initialize request argument(s) UpdateAnswerRecordRequest request = new UpdateAnswerRecordRequest { AnswerRecord = new AnswerRecord(), UpdateMask = new FieldMask(), }; // Make the request AnswerRecord response = await answerRecordsClient.UpdateAnswerRecordAsync(request); // End snippet }