Пример #1
0
 /// <summary>
 /// Updates the specified answer record.
 /// </summary>
 /// <param name="answerRecord">
 /// Required. Answer record to update.
 /// </param>
 /// <param name="updateMask">
 /// Required. The mask to control which fields get updated.
 /// </param>
 /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
 /// <returns>A Task containing the RPC response.</returns>
 public virtual stt::Task <AnswerRecord> UpdateAnswerRecordAsync(AnswerRecord answerRecord, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) =>
 UpdateAnswerRecordAsync(answerRecord, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
Пример #2
0
 /// <summary>
 /// Updates the specified answer record.
 /// </summary>
 /// <param name="answerRecord">
 /// Required. Answer record to update.
 /// </param>
 /// <param name="updateMask">
 /// Required. The mask to control which fields get updated.
 /// </param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>A Task containing the RPC response.</returns>
 public virtual stt::Task <AnswerRecord> UpdateAnswerRecordAsync(AnswerRecord answerRecord, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) =>
 UpdateAnswerRecordAsync(new UpdateAnswerRecordRequest
 {
     AnswerRecord = gax::GaxPreconditions.CheckNotNull(answerRecord, nameof(answerRecord)),
     UpdateMask   = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)),
 }, callSettings);