/// <summary> /// Retrieves the specified Changelog. /// </summary> /// <param name="name"> /// Required. The name of the changelog to get. /// Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent /// ID&gt;/changelogs/&lt;Changelog ID&gt;`. /// </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 <Changelog> GetChangelogAsync(ChangelogName name, st::CancellationToken cancellationToken) => GetChangelogAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Retrieves the specified Changelog. /// </summary> /// <param name="name"> /// Required. The name of the changelog to get. /// Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent /// ID&gt;/changelogs/&lt;Changelog ID&gt;`. /// </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 <Changelog> GetChangelogAsync(ChangelogName name, gaxgrpc::CallSettings callSettings = null) => GetChangelogAsync(new GetChangelogRequest { ChangelogName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), }, callSettings);