/// <summary> /// Constructs a client wrapper for the AssetGroupListingGroupFilterService service, with the specified gRPC /// client and settings. /// </summary> /// <param name="grpcClient">The underlying gRPC client.</param> /// <param name="settings"> /// The base <see cref="AssetGroupListingGroupFilterServiceSettings"/> used within this client. /// </param> public AssetGroupListingGroupFilterServiceClientImpl(AssetGroupListingGroupFilterService.AssetGroupListingGroupFilterServiceClient grpcClient, AssetGroupListingGroupFilterServiceSettings settings) { GrpcClient = grpcClient; AssetGroupListingGroupFilterServiceSettings effectiveSettings = settings ?? AssetGroupListingGroupFilterServiceSettings.GetDefault(); gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callMutateAssetGroupListingGroupFilters = clientHelper.BuildApiCall <MutateAssetGroupListingGroupFiltersRequest, MutateAssetGroupListingGroupFiltersResponse>(grpcClient.MutateAssetGroupListingGroupFiltersAsync, grpcClient.MutateAssetGroupListingGroupFilters, effectiveSettings.MutateAssetGroupListingGroupFiltersSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); Modify_ApiCall(ref _callMutateAssetGroupListingGroupFilters); Modify_MutateAssetGroupListingGroupFiltersApiCall(ref _callMutateAssetGroupListingGroupFilters); OnConstruction(grpcClient, effectiveSettings, clientHelper); }
partial void OnCopy(AssetGroupListingGroupFilterServiceSettings existing);
private AssetGroupListingGroupFilterServiceSettings(AssetGroupListingGroupFilterServiceSettings existing) : base(existing) { gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); MutateAssetGroupListingGroupFiltersSettings = existing.MutateAssetGroupListingGroupFiltersSettings; OnCopy(existing); }
partial void OnConstruction(AssetGroupListingGroupFilterService.AssetGroupListingGroupFilterServiceClient grpcClient, AssetGroupListingGroupFilterServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper);
/// <summary> /// Creates a <see cref="AssetGroupListingGroupFilterServiceClient"/> 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="AssetGroupListingGroupFilterServiceSettings"/>.</param> /// <returns>The created <see cref="AssetGroupListingGroupFilterServiceClient"/>.</returns> internal static AssetGroupListingGroupFilterServiceClient Create(grpccore::CallInvoker callInvoker, AssetGroupListingGroupFilterServiceSettings settings = null) { gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); grpcinter::Interceptor interceptor = settings?.Interceptor; if (interceptor != null) { callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); } AssetGroupListingGroupFilterService.AssetGroupListingGroupFilterServiceClient grpcClient = new AssetGroupListingGroupFilterService.AssetGroupListingGroupFilterServiceClient(callInvoker); return(new AssetGroupListingGroupFilterServiceClientImpl(grpcClient, settings)); }