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

            _callGetLanguageConstant = clientHelper.BuildApiCall <GetLanguageConstantRequest, gagvr::LanguageConstant>(
                GrpcClient.GetLanguageConstantAsync, GrpcClient.GetLanguageConstant, effectiveSettings.GetLanguageConstantSettings);
            Modify_ApiCall(ref _callGetLanguageConstant);
            Modify_GetLanguageConstantApiCall(ref _callGetLanguageConstant);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }