Example #1
0
 /// <summary>
 /// Returns just the requested field.
 /// </summary>
 /// <param name="resourceName">
 /// Required. The resource name of the field to get.
 /// </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::GoogleAdsField> GetGoogleAdsFieldAsync(gagvr::GoogleAdsFieldName resourceName, st::CancellationToken cancellationToken) =>
 GetGoogleAdsFieldAsync(resourceName, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
Example #2
0
 /// <summary>
 /// Returns just the requested field.
 /// </summary>
 /// <param name="resourceName">
 /// Required. The resource name of the field to get.
 /// </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::GoogleAdsField> GetGoogleAdsFieldAsync(gagvr::GoogleAdsFieldName resourceName, gaxgrpc::CallSettings callSettings = null) =>
 GetGoogleAdsFieldAsync(new GetGoogleAdsFieldRequest
 {
     ResourceNameAsGoogleAdsFieldName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)),
 }, callSettings);