/// <summary> /// Constructs a client wrapper for the OperatingSystemVersionConstantService service, with the specified gRPC /// client and settings. /// </summary> /// <param name="grpcClient">The underlying gRPC client.</param> /// <param name="settings"> /// The base <see cref="OperatingSystemVersionConstantServiceSettings"/> used within this client. /// </param> public OperatingSystemVersionConstantServiceClientImpl(OperatingSystemVersionConstantService.OperatingSystemVersionConstantServiceClient grpcClient, OperatingSystemVersionConstantServiceSettings settings) { GrpcClient = grpcClient; OperatingSystemVersionConstantServiceSettings effectiveSettings = settings ?? OperatingSystemVersionConstantServiceSettings.GetDefault(); gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callGetOperatingSystemVersionConstant = clientHelper.BuildApiCall <GetOperatingSystemVersionConstantRequest, gagvr::OperatingSystemVersionConstant>(grpcClient.GetOperatingSystemVersionConstantAsync, grpcClient.GetOperatingSystemVersionConstant, effectiveSettings.GetOperatingSystemVersionConstantSettings).WithGoogleRequestParam("resource_name", request => request.ResourceName); Modify_ApiCall(ref _callGetOperatingSystemVersionConstant); Modify_GetOperatingSystemVersionConstantApiCall(ref _callGetOperatingSystemVersionConstant); OnConstruction(grpcClient, effectiveSettings, clientHelper); }
/// <summary> /// Constructs a client wrapper for the OperatingSystemVersionConstantService service, with the specified gRPC client and settings. /// </summary> /// <param name="grpcClient">The underlying gRPC client.</param> /// <param name="settings">The base <see cref="OperatingSystemVersionConstantServiceSettings"/> used within this client </param> public OperatingSystemVersionConstantServiceClientImpl(OperatingSystemVersionConstantService.OperatingSystemVersionConstantServiceClient grpcClient, OperatingSystemVersionConstantServiceSettings settings) { GrpcClient = grpcClient; OperatingSystemVersionConstantServiceSettings effectiveSettings = settings ?? OperatingSystemVersionConstantServiceSettings.GetDefault(); gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callGetOperatingSystemVersionConstant = clientHelper.BuildApiCall <GetOperatingSystemVersionConstantRequest, gagvr::OperatingSystemVersionConstant>( GrpcClient.GetOperatingSystemVersionConstantAsync, GrpcClient.GetOperatingSystemVersionConstant, effectiveSettings.GetOperatingSystemVersionConstantSettings) .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource_name={request.ResourceName}")); Modify_ApiCall(ref _callGetOperatingSystemVersionConstant); Modify_GetOperatingSystemVersionConstantApiCall(ref _callGetOperatingSystemVersionConstant); OnConstruction(grpcClient, effectiveSettings, clientHelper); }