Esempio n. 1
0
        /// <summary>
        /// Constructs a client wrapper for the CustomerConversionGoalService service, with the specified gRPC client
        /// and settings.
        /// </summary>
        /// <param name="grpcClient">The underlying gRPC client.</param>
        /// <param name="settings">
        /// The base <see cref="CustomerConversionGoalServiceSettings"/> used within this client.
        /// </param>
        public CustomerConversionGoalServiceClientImpl(CustomerConversionGoalService.CustomerConversionGoalServiceClient grpcClient, CustomerConversionGoalServiceSettings settings)
        {
            GrpcClient = grpcClient;
            CustomerConversionGoalServiceSettings effectiveSettings = settings ?? CustomerConversionGoalServiceSettings.GetDefault();
            gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings);

            _callMutateCustomerConversionGoals = clientHelper.BuildApiCall <MutateCustomerConversionGoalsRequest, MutateCustomerConversionGoalsResponse>(grpcClient.MutateCustomerConversionGoalsAsync, grpcClient.MutateCustomerConversionGoals, effectiveSettings.MutateCustomerConversionGoalsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId);
            Modify_ApiCall(ref _callMutateCustomerConversionGoals);
            Modify_MutateCustomerConversionGoalsApiCall(ref _callMutateCustomerConversionGoals);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }
Esempio n. 2
0
 partial void OnCopy(CustomerConversionGoalServiceSettings existing);
Esempio n. 3
0
 private CustomerConversionGoalServiceSettings(CustomerConversionGoalServiceSettings existing) : base(existing)
 {
     gax::GaxPreconditions.CheckNotNull(existing, nameof(existing));
     MutateCustomerConversionGoalsSettings = existing.MutateCustomerConversionGoalsSettings;
     OnCopy(existing);
 }
Esempio n. 4
0
 partial void OnConstruction(CustomerConversionGoalService.CustomerConversionGoalServiceClient grpcClient, CustomerConversionGoalServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper);
Esempio n. 5
0
        /// <summary>
        /// Creates a <see cref="CustomerConversionGoalServiceClient"/> which uses the specified call invoker for remote
        /// operations.
        /// </summary>
        /// <param name="callInvoker">
        /// The <see cref="grpccore::CallInvoker"/> for remote operations. Must not be null.
        /// </param>
        /// <param name="settings">Optional <see cref="CustomerConversionGoalServiceSettings"/>.</param>
        /// <returns>The created <see cref="CustomerConversionGoalServiceClient"/>.</returns>
        internal static CustomerConversionGoalServiceClient Create(grpccore::CallInvoker callInvoker, CustomerConversionGoalServiceSettings settings = null)
        {
            gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
            grpcinter::Interceptor interceptor = settings?.Interceptor;

            if (interceptor != null)
            {
                callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor);
            }
            CustomerConversionGoalService.CustomerConversionGoalServiceClient grpcClient = new CustomerConversionGoalService.CustomerConversionGoalServiceClient(callInvoker);
            return(new CustomerConversionGoalServiceClientImpl(grpcClient, settings));
        }