Esempio n. 1
0
 /// <summary>
 /// Retrieves a Call identified by the supplied resource name.
 ///
 /// The caller must have `voice.calls.get` permission on the project.
 /// </summary>
 /// <param name="name">
 /// The resource name of the Call to retrieve.
 /// Must be of the form `projects/*/calls/*`.
 /// </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 <Call> GetCallAsync(CallName name, st::CancellationToken cancellationToken) =>
 GetCallAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
 /// <summary>
 /// Lists the Recordings of the specified project.
 /// List returns Recordings sorted by create_time descending.
 ///
 /// The caller must have `voice.recordings.list` permission on the project.
 /// </summary>
 /// <param name="parent">
 /// The resource name of the parent of which to list recordings.
 /// May be of the form `projects/*/calls/*` to list the recordings of that
 /// specific call, or `projects/*` to list recordings across the entire project,
 /// which maps to `projects/*/calls/-`.
 /// </param>
 /// <param name="pageToken">
 /// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first
 /// page.
 /// </param>
 /// <param name="pageSize">
 /// The size of page to request. The response will not be larger than this, but may be smaller. A value of
 /// <c>null</c> or <c>0</c> uses a server-defined page size.
 /// </param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>A pageable asynchronous sequence of <see cref="Recording"/> resources.</returns>
 public virtual gax::PagedAsyncEnumerable <ListRecordingsResponse, Recording> ListRecordingsAsync(CallName parent, string pageToken = null, int?pageSize = null, gaxgrpc::CallSettings callSettings = null) =>
 ListRecordingsAsync(new ListRecordingsRequest
 {
     ParentAsCallName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)),
     PageToken        = pageToken ?? "",
     PageSize         = pageSize ?? 0,
 }, callSettings);
Esempio n. 3
0
 /// <summary>
 /// Retrieves a Call identified by the supplied resource name.
 ///
 /// The caller must have `voice.calls.get` permission on the project.
 /// </summary>
 /// <param name="name">
 /// The resource name of the Call to retrieve.
 /// Must be of the form `projects/*/calls/*`.
 /// </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 <Call> GetCallAsync(CallName name, gaxgrpc::CallSettings callSettings = null) =>
 GetCallAsync(new GetCallRequest
 {
     CallName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)),
 }, callSettings);