Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
 partial void OnConstruction(AssetGroupListingGroupFilterService.AssetGroupListingGroupFilterServiceClient grpcClient, AssetGroupListingGroupFilterServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper);
Beispiel #3
0
        /// <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));
        }