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

            _callGetIncomeRangeView = clientHelper.BuildApiCall <GetIncomeRangeViewRequest, gagvr::IncomeRangeView>(grpcClient.GetIncomeRangeViewAsync, grpcClient.GetIncomeRangeView, effectiveSettings.GetIncomeRangeViewSettings).WithGoogleRequestParam("resource_name", request => request.ResourceName);
            Modify_ApiCall(ref _callGetIncomeRangeView);
            Modify_GetIncomeRangeViewApiCall(ref _callGetIncomeRangeView);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }
Beispiel #2
0
 partial void OnCopy(IncomeRangeViewServiceSettings existing);
Beispiel #3
0
 private IncomeRangeViewServiceSettings(IncomeRangeViewServiceSettings existing) : base(existing)
 {
     gax::GaxPreconditions.CheckNotNull(existing, nameof(existing));
     GetIncomeRangeViewSettings = existing.GetIncomeRangeViewSettings;
     OnCopy(existing);
 }
Beispiel #4
0
 partial void OnConstruction(IncomeRangeViewService.IncomeRangeViewServiceClient grpcClient, IncomeRangeViewServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper);
Beispiel #5
0
        /// <summary>
        /// Creates a <see cref="IncomeRangeViewServiceClient"/> 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="IncomeRangeViewServiceSettings"/>.</param>
        /// <returns>The created <see cref="IncomeRangeViewServiceClient"/>.</returns>
        internal static IncomeRangeViewServiceClient Create(grpccore::CallInvoker callInvoker, IncomeRangeViewServiceSettings settings = null)
        {
            gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
            grpcinter::Interceptor interceptor = settings?.Interceptor;

            if (interceptor != null)
            {
                callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor);
            }
            IncomeRangeViewService.IncomeRangeViewServiceClient grpcClient = new IncomeRangeViewService.IncomeRangeViewServiceClient(callInvoker);
            return(new IncomeRangeViewServiceClientImpl(grpcClient, settings));
        }