/// <summary> /// Gets a setting. /// /// Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the /// setting does not exist. /// </summary> /// <param name="name"> /// Required. The name of the setting to get. See [Setting][google.cloud.resourcesettings.v1.Setting] for naming /// requirements. /// </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 <Setting> GetSettingAsync(SettingName name, st::CancellationToken cancellationToken) => GetSettingAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Gets a setting. /// /// Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the /// setting does not exist. /// </summary> /// <param name="name"> /// Required. The name of the setting to get. See [Setting][google.cloud.resourcesettings.v1.Setting] for naming /// requirements. /// </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 <Setting> GetSettingAsync(SettingName name, gaxgrpc::CallSettings callSettings = null) => GetSettingAsync(new GetSettingRequest { SettingName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), }, callSettings);