/// <summary>
 /// Returns the requested language constant.
 ///
 /// List of thrown errors:
 /// [AuthenticationError]()
 /// [AuthorizationError]()
 /// [HeaderError]()
 /// [InternalError]()
 /// [QuotaError]()
 /// [RequestError]()
 /// </summary>
 /// <param name="request">The request object containing all of the parameters for the API call.</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::LanguageConstant> GetLanguageConstantAsync(GetLanguageConstantRequest request, st::CancellationToken cancellationToken) =>
 GetLanguageConstantAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
 /// <summary>
 /// Returns all payments accounts associated with all managers
 /// between the login customer ID and specified serving customer in the
 /// hierarchy, inclusive.
 /// </summary>
 /// <param name="request">The request object containing all of the parameters for the API call.</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 <ListPaymentsAccountsResponse> ListPaymentsAccountsAsync(ListPaymentsAccountsRequest request, st::CancellationToken cancellationToken) =>
 ListPaymentsAccountsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
 partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task <PaymentsAccountServiceClient> task);
 /// <summary>
 /// Returns the requested ad group label in full detail.
 /// </summary>
 /// <param name="resourceName">
 /// Required. The resource name of the ad group label 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::AdGroupLabel> GetAdGroupLabelAsync(gagvr::AdGroupLabelName resourceName, st::CancellationToken cancellationToken) =>
 GetAdGroupLabelAsync(resourceName, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
 /// <summary>
 /// Creates and removes ad group labels.
 /// Operation statuses are returned.
 /// </summary>
 /// <param name="customerId">
 /// Required. ID of the customer whose ad group labels are being modified.
 /// </param>
 /// <param name="operations">
 /// Required. The list of operations to perform on ad group labels.
 /// </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 <MutateAdGroupLabelsResponse> MutateAdGroupLabelsAsync(string customerId, scg::IEnumerable <AdGroupLabelOperation> operations, st::CancellationToken cancellationToken) =>
 MutateAdGroupLabelsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
 /// <summary>
 /// Asynchronously creates a <see cref="PrivateCatalogClient"/> using the default credentials, endpoint and
 /// settings. To specify custom credentials or other settings, use <see cref="PrivateCatalogClientBuilder"/>.
 /// </summary>
 /// <param name="cancellationToken">
 /// The <see cref="st::CancellationToken"/> to use while creating the client.
 /// </param>
 /// <returns>The task representing the created <see cref="PrivateCatalogClient"/>.</returns>
 public static stt::Task <PrivateCatalogClient> CreateAsync(st::CancellationToken cancellationToken = default) =>
 new PrivateCatalogClientBuilder().BuildAsync(cancellationToken);
 /// <summary>
 /// Asynchronously creates a <see cref="AdGroupLabelServiceClient"/> using the default credentials, endpoint and
 /// settings. To specify custom credentials or other settings, use
 /// <see cref="AdGroupLabelServiceClientBuilder"/>.
 /// </summary>
 /// <param name="cancellationToken">
 /// The <see cref="st::CancellationToken"/> to use while creating the client.
 /// </param>
 /// <returns>The task representing the created <see cref="AdGroupLabelServiceClient"/>.</returns>
 public static stt::Task <AdGroupLabelServiceClient> CreateAsync(st::CancellationToken cancellationToken = default) =>
 new AdGroupLabelServiceClientBuilder().BuildAsync(cancellationToken);
 /// <summary>
 /// Asynchronously creates a <see cref="ConversionGoalCampaignConfigServiceClient"/> using the default
 /// credentials, endpoint and settings. To specify custom credentials or other settings, use
 /// <see cref="ConversionGoalCampaignConfigServiceClientBuilder"/>.
 /// </summary>
 /// <param name="cancellationToken">
 /// The <see cref="st::CancellationToken"/> to use while creating the client.
 /// </param>
 /// <returns>
 /// The task representing the created <see cref="ConversionGoalCampaignConfigServiceClient"/>.
 /// </returns>
 public static stt::Task <ConversionGoalCampaignConfigServiceClient> CreateAsync(st::CancellationToken cancellationToken = default) =>
 new ConversionGoalCampaignConfigServiceClientBuilder().BuildAsync(cancellationToken);
 /// <summary>
 /// Creates, updates or removes conversion goal campaign config. Operation
 /// statuses are returned.
 /// </summary>
 /// <param name="request">The request object containing all of the parameters for the API call.</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 <MutateConversionGoalCampaignConfigsResponse> MutateConversionGoalCampaignConfigsAsync(MutateConversionGoalCampaignConfigsRequest request, st::CancellationToken cancellationToken) =>
 MutateConversionGoalCampaignConfigsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
        /// <summary>Builds the resulting client asynchronously.</summary>
        public override stt::Task <ConversionGoalCampaignConfigServiceClient> BuildAsync(st::CancellationToken cancellationToken = default)
        {
            stt::Task <ConversionGoalCampaignConfigServiceClient> task = null;

            InterceptBuildAsync(cancellationToken, ref task);
            return(task ?? BuildAsyncImpl(cancellationToken));
        }
        private async stt::Task <ConversionGoalCampaignConfigServiceClient> BuildAsyncImpl(st::CancellationToken cancellationToken)
        {
            Validate();
            grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false);

            return(ConversionGoalCampaignConfigServiceClient.Create(callInvoker, Settings));
        }
 partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task <ConversionGoalCampaignConfigServiceClient> task);
 partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task <LanguageConstantServiceClient> task);
 /// <summary>
 /// Returns the requested language constant.
 ///
 /// List of thrown errors:
 /// [AuthenticationError]()
 /// [AuthorizationError]()
 /// [HeaderError]()
 /// [InternalError]()
 /// [QuotaError]()
 /// [RequestError]()
 /// </summary>
 /// <param name="resourceName">
 /// Required. Resource name of the language constant 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::LanguageConstant> GetLanguageConstantAsync(gagvr::LanguageConstantName resourceName, st::CancellationToken cancellationToken) =>
 GetLanguageConstantAsync(resourceName, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
 /// <summary>
 /// Performs asynchronous video annotation. Progress and results can be
 /// retrieved through the `google.longrunning.Operations` interface.
 /// `Operation.metadata` contains `AnnotateVideoProgress` (progress).
 /// `Operation.response` contains `AnnotateVideoResponse` (results).
 /// </summary>
 /// <param name="inputUri">
 /// Input video location. Currently, only
 /// [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
 /// supported, which must be specified in the following format:
 /// `gs://bucket-id/object-id` (other URI formats return
 /// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
 /// [Request URIs](/storage/docs/reference-uris).
 /// A video URI may include wildcards in `object-id`, and thus identify
 /// multiple videos. Supported wildcards: '*' to match 0 or more characters;
 /// '?' to match 1 character. If unset, the input video should be embedded
 /// in the request as `input_content`. If set, `input_content` should be unset.
 /// </param>
 /// <param name="features">
 /// Required. Requested video annotation features.
 /// </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 <lro::Operation <AnnotateVideoResponse, AnnotateVideoProgress> > AnnotateVideoAsync(string inputUri, scg::IEnumerable <Feature> features, st::CancellationToken cancellationToken) =>
 AnnotateVideoAsync(inputUri, features, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
 /// <summary>
 /// Creates, updates or removes conversion goal campaign config. Operation
 /// statuses are returned.
 /// </summary>
 /// <param name="customerId">
 /// Required. The ID of the customer whose custom conversion goals are being modified.
 /// </param>
 /// <param name="operations">
 /// Required. The list of operations to perform on individual conversion goal campaign
 /// config.
 /// </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 <MutateConversionGoalCampaignConfigsResponse> MutateConversionGoalCampaignConfigsAsync(string customerId, scg::IEnumerable <ConversionGoalCampaignConfigOperation> operations, st::CancellationToken cancellationToken) =>
 MutateConversionGoalCampaignConfigsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
 partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task <PrivateCatalogClient> task);
Example #18
0
 /// <summary>
 /// Returns an account-level budget in full detail.
 ///
 /// List of thrown errors:
 /// [AuthenticationError]()
 /// [AuthorizationError]()
 /// [HeaderError]()
 /// [InternalError]()
 /// [QuotaError]()
 /// [RequestError]()
 /// </summary>
 /// <param name="request">The request object containing all of the parameters for the API call.</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::AccountBudget> GetAccountBudgetAsync(GetAccountBudgetRequest request, st::CancellationToken cancellationToken) =>
 GetAccountBudgetAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
 partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task <AdGroupLabelServiceClient> task);
Example #20
0
 /// <summary>
 /// Returns an account-level budget in full detail.
 ///
 /// List of thrown errors:
 /// [AuthenticationError]()
 /// [AuthorizationError]()
 /// [HeaderError]()
 /// [InternalError]()
 /// [QuotaError]()
 /// [RequestError]()
 /// </summary>
 /// <param name="resourceName">
 /// Required. The resource name of the account-level budget 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::AccountBudget> GetAccountBudgetAsync(gagvr::AccountBudgetName resourceName, st::CancellationToken cancellationToken) =>
 GetAccountBudgetAsync(resourceName, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
 /// <summary>
 /// Returns the requested ad group label in full detail.
 /// </summary>
 /// <param name="request">The request object containing all of the parameters for the API call.</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::AdGroupLabel> GetAdGroupLabelAsync(GetAdGroupLabelRequest request, st::CancellationToken cancellationToken) =>
 GetAdGroupLabelAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
 /// <summary>
 /// Returns the requested display keyword view in full detail.
 /// </summary>
 /// <param name="request">The request object containing all of the parameters for the API call.</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::DisplayKeywordView> GetDisplayKeywordViewAsync(GetDisplayKeywordViewRequest request, st::CancellationToken cancellationToken) =>
 GetDisplayKeywordViewAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
 /// <summary>
 /// Creates and removes ad group labels.
 /// Operation statuses are returned.
 /// </summary>
 /// <param name="request">The request object containing all of the parameters for the API call.</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 <MutateAdGroupLabelsResponse> MutateAdGroupLabelsAsync(MutateAdGroupLabelsRequest request, st::CancellationToken cancellationToken) =>
 MutateAdGroupLabelsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
 /// <summary>
 /// Returns the requested display keyword view in full detail.
 /// </summary>
 /// <param name="resourceName">
 /// Required. The resource name of the display keyword 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::DisplayKeywordView> GetDisplayKeywordViewAsync(gagvr::DisplayKeywordViewName resourceName, st::CancellationToken cancellationToken) =>
 GetDisplayKeywordViewAsync(resourceName, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
 /// <summary>
 /// Asynchronously creates a <see cref="PaymentsAccountServiceClient"/> using the default credentials, endpoint
 /// and settings. To specify custom credentials or other settings, use
 /// <see cref="PaymentsAccountServiceClientBuilder"/>.
 /// </summary>
 /// <param name="cancellationToken">
 /// The <see cref="st::CancellationToken"/> to use while creating the client.
 /// </param>
 /// <returns>The task representing the created <see cref="PaymentsAccountServiceClient"/>.</returns>
 public static stt::Task <PaymentsAccountServiceClient> CreateAsync(st::CancellationToken cancellationToken = default) =>
 new PaymentsAccountServiceClientBuilder().BuildAsync(cancellationToken);
 partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task <DisplayKeywordViewServiceClient> task);
 /// <summary>
 /// Returns all payments accounts associated with all managers
 /// between the login customer ID and specified serving customer in the
 /// hierarchy, inclusive.
 /// </summary>
 /// <param name="customerId">
 /// Required. The ID of the customer to apply the PaymentsAccount list operation to.
 /// </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 <ListPaymentsAccountsResponse> ListPaymentsAccountsAsync(string customerId, st::CancellationToken cancellationToken) =>
 ListPaymentsAccountsAsync(customerId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
 /// <summary>
 /// Performs asynchronous video annotation. Progress and results can be
 /// retrieved through the `google.longrunning.Operations` interface.
 /// `Operation.metadata` contains `AnnotateVideoProgress` (progress).
 /// `Operation.response` contains `AnnotateVideoResponse` (results).
 /// </summary>
 /// <param name="request">The request object containing all of the parameters for the API call.</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 <lro::Operation <AnnotateVideoResponse, AnnotateVideoProgress> > AnnotateVideoAsync(AnnotateVideoRequest request, st::CancellationToken cancellationToken) =>
 AnnotateVideoAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
Example #29
0
 /// <summary>
 /// Asynchronously creates a <see cref="KeywordViewServiceClient"/> using the default credentials, endpoint and
 /// settings. To specify custom credentials or other settings, use <see cref="KeywordViewServiceClientBuilder"/>
 /// .
 /// </summary>
 /// <param name="cancellationToken">
 /// The <see cref="st::CancellationToken"/> to use while creating the client.
 /// </param>
 /// <returns>The task representing the created <see cref="KeywordViewServiceClient"/>.</returns>
 public static stt::Task <KeywordViewServiceClient> CreateAsync(st::CancellationToken cancellationToken = default) =>
 new KeywordViewServiceClientBuilder().BuildAsync(cancellationToken);
 /// <summary>
 /// Asynchronously creates a <see cref="LanguageConstantServiceClient"/> using the default credentials, endpoint
 /// and settings. To specify custom credentials or other settings, use
 /// <see cref="LanguageConstantServiceClientBuilder"/>.
 /// </summary>
 /// <param name="cancellationToken">
 /// The <see cref="st::CancellationToken"/> to use while creating the client.
 /// </param>
 /// <returns>The task representing the created <see cref="LanguageConstantServiceClient"/>.</returns>
 public static stt::Task <LanguageConstantServiceClient> CreateAsync(st::CancellationToken cancellationToken = default) =>
 new LanguageConstantServiceClientBuilder().BuildAsync(cancellationToken);