示例#1
0
        /// <summary>
        /// Constructs a client wrapper for the CustomConversionGoalService service, with the specified gRPC client and
        /// settings.
        /// </summary>
        /// <param name="grpcClient">The underlying gRPC client.</param>
        /// <param name="settings">
        /// The base <see cref="CustomConversionGoalServiceSettings"/> used within this client.
        /// </param>
        public CustomConversionGoalServiceClientImpl(CustomConversionGoalService.CustomConversionGoalServiceClient grpcClient, CustomConversionGoalServiceSettings settings)
        {
            GrpcClient = grpcClient;
            CustomConversionGoalServiceSettings effectiveSettings = settings ?? CustomConversionGoalServiceSettings.GetDefault();
            gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings);

            _callMutateCustomConversionGoals = clientHelper.BuildApiCall <MutateCustomConversionGoalsRequest, MutateCustomConversionGoalsResponse>(grpcClient.MutateCustomConversionGoalsAsync, grpcClient.MutateCustomConversionGoals, effectiveSettings.MutateCustomConversionGoalsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId);
            Modify_ApiCall(ref _callMutateCustomConversionGoals);
            Modify_MutateCustomConversionGoalsApiCall(ref _callMutateCustomConversionGoals);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }
示例#2
0
 partial void OnCopy(CustomConversionGoalServiceSettings existing);
示例#3
0
 private CustomConversionGoalServiceSettings(CustomConversionGoalServiceSettings existing) : base(existing)
 {
     gax::GaxPreconditions.CheckNotNull(existing, nameof(existing));
     MutateCustomConversionGoalsSettings = existing.MutateCustomConversionGoalsSettings;
     OnCopy(existing);
 }
示例#4
0
 partial void OnConstruction(CustomConversionGoalService.CustomConversionGoalServiceClient grpcClient, CustomConversionGoalServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper);
示例#5
0
        /// <summary>
        /// Creates a <see cref="CustomConversionGoalServiceClient"/> 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="CustomConversionGoalServiceSettings"/>.</param>
        /// <returns>The created <see cref="CustomConversionGoalServiceClient"/>.</returns>
        internal static CustomConversionGoalServiceClient Create(grpccore::CallInvoker callInvoker, CustomConversionGoalServiceSettings settings = null)
        {
            gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
            grpcinter::Interceptor interceptor = settings?.Interceptor;

            if (interceptor != null)
            {
                callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor);
            }
            CustomConversionGoalService.CustomConversionGoalServiceClient grpcClient = new CustomConversionGoalService.CustomConversionGoalServiceClient(callInvoker);
            return(new CustomConversionGoalServiceClientImpl(grpcClient, settings));
        }