private ChangelogsSettings(ChangelogsSettings existing) : base(existing)
 {
     gax::GaxPreconditions.CheckNotNull(existing, nameof(existing));
     ListChangelogsSettings = existing.ListChangelogsSettings;
     GetChangelogSettings   = existing.GetChangelogSettings;
     OnCopy(existing);
 }
        /// <summary>
        /// Creates a <see cref="ChangelogsClient"/> 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="ChangelogsSettings"/>.</param>
        /// <returns>The created <see cref="ChangelogsClient"/>.</returns>
        internal static ChangelogsClient Create(grpccore::CallInvoker callInvoker, ChangelogsSettings settings = null)
        {
            gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
            grpcinter::Interceptor interceptor = settings?.Interceptor;

            if (interceptor != null)
            {
                callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor);
            }
            Changelogs.ChangelogsClient grpcClient = new Changelogs.ChangelogsClient(callInvoker);
            return(new ChangelogsClientImpl(grpcClient, settings));
        }
        /// <summary>
        /// Constructs a client wrapper for the Changelogs service, with the specified gRPC client and settings.
        /// </summary>
        /// <param name="grpcClient">The underlying gRPC client.</param>
        /// <param name="settings">The base <see cref="ChangelogsSettings"/> used within this client.</param>
        public ChangelogsClientImpl(Changelogs.ChangelogsClient grpcClient, ChangelogsSettings settings)
        {
            GrpcClient = grpcClient;
            ChangelogsSettings    effectiveSettings = settings ?? ChangelogsSettings.GetDefault();
            gaxgrpc::ClientHelper clientHelper      = new gaxgrpc::ClientHelper(effectiveSettings);

            _callListChangelogs = clientHelper.BuildApiCall <ListChangelogsRequest, ListChangelogsResponse>(grpcClient.ListChangelogsAsync, grpcClient.ListChangelogs, effectiveSettings.ListChangelogsSettings).WithGoogleRequestParam("parent", request => request.Parent);
            Modify_ApiCall(ref _callListChangelogs);
            Modify_ListChangelogsApiCall(ref _callListChangelogs);
            _callGetChangelog = clientHelper.BuildApiCall <GetChangelogRequest, Changelog>(grpcClient.GetChangelogAsync, grpcClient.GetChangelog, effectiveSettings.GetChangelogSettings).WithGoogleRequestParam("name", request => request.Name);
            Modify_ApiCall(ref _callGetChangelog);
            Modify_GetChangelogApiCall(ref _callGetChangelog);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }
 partial void OnConstruction(Changelogs.ChangelogsClient grpcClient, ChangelogsSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper);
 partial void OnCopy(ChangelogsSettings existing);