/// <summary> /// Returns the attributes of the requested distance view. /// </summary> /// <param name="resourceName"> /// Required. The resource name of the distance view to fetch. /// </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 <gagvr::DistanceView> GetDistanceViewAsync(gagvr::DistanceViewName resourceName, st::CancellationToken cancellationToken) => GetDistanceViewAsync(resourceName, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Returns the attributes of the requested distance view. /// </summary> /// <param name="resourceName"> /// Required. The resource name of the distance view to fetch. /// </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 <gagvr::DistanceView> GetDistanceViewAsync(gagvr::DistanceViewName resourceName, gaxgrpc::CallSettings callSettings = null) => GetDistanceViewAsync(new GetDistanceViewRequest { ResourceNameAsDistanceViewName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), }, callSettings);