{-# LANGUAGE TypeApplications #-}


-- | Copyright  : Will Thompson and Iñaki García Etxebarria
-- License    : LGPL-2.1
-- Maintainer : Iñaki García Etxebarria
-- 
-- OvsDpdk Link Settings

#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif

module GI.NM.Objects.SettingOvsDpdk
    ( 

-- * Exported types
    SettingOvsDpdk(..)                      ,
    IsSettingOvsDpdk                        ,
    toSettingOvsDpdk                        ,


 -- * Methods
-- | 
-- 
--  === __Click to display all available methods, including inherited ones__
-- ==== Methods
-- [bindProperty]("GI.GObject.Objects.Object#g:method:bindProperty"), [bindPropertyFull]("GI.GObject.Objects.Object#g:method:bindPropertyFull"), [compare]("GI.NM.Objects.Setting#g:method:compare"), [diff]("GI.NM.Objects.Setting#g:method:diff"), [duplicate]("GI.NM.Objects.Setting#g:method:duplicate"), [enumerateValues]("GI.NM.Objects.Setting#g:method:enumerateValues"), [forceFloating]("GI.GObject.Objects.Object#g:method:forceFloating"), [freezeNotify]("GI.GObject.Objects.Object#g:method:freezeNotify"), [getv]("GI.GObject.Objects.Object#g:method:getv"), [isFloating]("GI.GObject.Objects.Object#g:method:isFloating"), [notify]("GI.GObject.Objects.Object#g:method:notify"), [notifyByPspec]("GI.GObject.Objects.Object#g:method:notifyByPspec"), [optionClearByName]("GI.NM.Objects.Setting#g:method:optionClearByName"), [optionGet]("GI.NM.Objects.Setting#g:method:optionGet"), [optionGetAllNames]("GI.NM.Objects.Setting#g:method:optionGetAllNames"), [optionGetBoolean]("GI.NM.Objects.Setting#g:method:optionGetBoolean"), [optionGetUint32]("GI.NM.Objects.Setting#g:method:optionGetUint32"), [optionSet]("GI.NM.Objects.Setting#g:method:optionSet"), [optionSetBoolean]("GI.NM.Objects.Setting#g:method:optionSetBoolean"), [optionSetUint32]("GI.NM.Objects.Setting#g:method:optionSetUint32"), [ref]("GI.GObject.Objects.Object#g:method:ref"), [refSink]("GI.GObject.Objects.Object#g:method:refSink"), [runDispose]("GI.GObject.Objects.Object#g:method:runDispose"), [stealData]("GI.GObject.Objects.Object#g:method:stealData"), [stealQdata]("GI.GObject.Objects.Object#g:method:stealQdata"), [thawNotify]("GI.GObject.Objects.Object#g:method:thawNotify"), [toString]("GI.NM.Objects.Setting#g:method:toString"), [unref]("GI.GObject.Objects.Object#g:method:unref"), [verify]("GI.NM.Objects.Setting#g:method:verify"), [verifySecrets]("GI.NM.Objects.Setting#g:method:verifySecrets"), [watchClosure]("GI.GObject.Objects.Object#g:method:watchClosure").
-- 
-- ==== Getters
-- [getData]("GI.GObject.Objects.Object#g:method:getData"), [getDbusPropertyType]("GI.NM.Objects.Setting#g:method:getDbusPropertyType"), [getDevargs]("GI.NM.Objects.SettingOvsDpdk#g:method:getDevargs"), [getNRxq]("GI.NM.Objects.SettingOvsDpdk#g:method:getNRxq"), [getNRxqDesc]("GI.NM.Objects.SettingOvsDpdk#g:method:getNRxqDesc"), [getNTxqDesc]("GI.NM.Objects.SettingOvsDpdk#g:method:getNTxqDesc"), [getName]("GI.NM.Objects.Setting#g:method:getName"), [getProperty]("GI.GObject.Objects.Object#g:method:getProperty"), [getQdata]("GI.GObject.Objects.Object#g:method:getQdata"), [getSecretFlags]("GI.NM.Objects.Setting#g:method:getSecretFlags").
-- 
-- ==== Setters
-- [setData]("GI.GObject.Objects.Object#g:method:setData"), [setDataFull]("GI.GObject.Objects.Object#g:method:setDataFull"), [setProperty]("GI.GObject.Objects.Object#g:method:setProperty"), [setSecretFlags]("GI.NM.Objects.Setting#g:method:setSecretFlags").

#if defined(ENABLE_OVERLOADING)
    ResolveSettingOvsDpdkMethod             ,
#endif

-- ** getDevargs #method:getDevargs#

#if defined(ENABLE_OVERLOADING)
    SettingOvsDpdkGetDevargsMethodInfo      ,
#endif
    settingOvsDpdkGetDevargs                ,


-- ** getNRxq #method:getNRxq#

#if defined(ENABLE_OVERLOADING)
    SettingOvsDpdkGetNRxqMethodInfo         ,
#endif
    settingOvsDpdkGetNRxq                   ,


-- ** getNRxqDesc #method:getNRxqDesc#

#if defined(ENABLE_OVERLOADING)
    SettingOvsDpdkGetNRxqDescMethodInfo     ,
#endif
    settingOvsDpdkGetNRxqDesc               ,


-- ** getNTxqDesc #method:getNTxqDesc#

#if defined(ENABLE_OVERLOADING)
    SettingOvsDpdkGetNTxqDescMethodInfo     ,
#endif
    settingOvsDpdkGetNTxqDesc               ,


-- ** new #method:new#

    settingOvsDpdkNew                       ,




 -- * Properties


-- ** devargs #attr:devargs#
-- | Open vSwitch DPDK device arguments.
-- 
-- /Since: 1.20/

#if defined(ENABLE_OVERLOADING)
    SettingOvsDpdkDevargsPropertyInfo       ,
#endif
    clearSettingOvsDpdkDevargs              ,
    constructSettingOvsDpdkDevargs          ,
    getSettingOvsDpdkDevargs                ,
    setSettingOvsDpdkDevargs                ,
#if defined(ENABLE_OVERLOADING)
    settingOvsDpdkDevargs                   ,
#endif


-- ** nRxq #attr:nRxq#
-- | Open vSwitch DPDK number of rx queues.
-- Defaults to zero which means to leave the parameter in OVS unspecified
-- and effectively configures one queue.
-- 
-- /Since: 1.36/

#if defined(ENABLE_OVERLOADING)
    SettingOvsDpdkNRxqPropertyInfo          ,
#endif
    constructSettingOvsDpdkNRxq             ,
    getSettingOvsDpdkNRxq                   ,
    setSettingOvsDpdkNRxq                   ,
#if defined(ENABLE_OVERLOADING)
    settingOvsDpdkNRxq                      ,
#endif


-- ** nRxqDesc #attr:nRxqDesc#
-- | The rx queue size (number of rx descriptors) for DPDK ports.
-- Must be zero or a power of 2 between 1 and 4096, and supported
-- by the hardware. Defaults to zero which means to leave the
-- parameter in OVS unspecified and effectively configures 2048
-- descriptors.
-- 
-- /Since: 1.42/

#if defined(ENABLE_OVERLOADING)
    SettingOvsDpdkNRxqDescPropertyInfo      ,
#endif
    constructSettingOvsDpdkNRxqDesc         ,
    getSettingOvsDpdkNRxqDesc               ,
    setSettingOvsDpdkNRxqDesc               ,
#if defined(ENABLE_OVERLOADING)
    settingOvsDpdkNRxqDesc                  ,
#endif


-- ** nTxqDesc #attr:nTxqDesc#
-- | The tx queue size (number of tx descriptors) for DPDK ports.
-- Must be zero or a power of 2 between 1 and 4096, and supported
-- by the hardware. Defaults to zero which means to leave the
-- parameter in OVS unspecified and effectively configures 2048
-- descriptors.
-- 
-- /Since: 1.42/

#if defined(ENABLE_OVERLOADING)
    SettingOvsDpdkNTxqDescPropertyInfo      ,
#endif
    constructSettingOvsDpdkNTxqDesc         ,
    getSettingOvsDpdkNTxqDesc               ,
    setSettingOvsDpdkNTxqDesc               ,
#if defined(ENABLE_OVERLOADING)
    settingOvsDpdkNTxqDesc                  ,
#endif




    ) where

import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P

import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.BasicTypes as B.Types
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GArray as B.GArray
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GHashTable as B.GHT
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
import qualified Control.Monad.IO.Class as MIO
import qualified Data.Coerce as Coerce
import qualified Data.Text as T
import qualified Data.Kind as DK
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GHC.Records as R
import qualified Data.Word as DW
import qualified Data.Int as DI
import qualified System.Posix.Types as SPT
import qualified Foreign.C.Types as FCT

-- Workaround for https://gitlab.haskell.org/ghc/ghc/-/issues/23392
#if MIN_VERSION_base(4,18,0)
import qualified GI.GLib.Structs.Bytes as GLib.Bytes
import qualified GI.GLib.Structs.VariantType as GLib.VariantType
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.NM.Callbacks as NM.Callbacks
import {-# SOURCE #-} qualified GI.NM.Enums as NM.Enums
import {-# SOURCE #-} qualified GI.NM.Flags as NM.Flags
import {-# SOURCE #-} qualified GI.NM.Interfaces.Connection as NM.Connection
import {-# SOURCE #-} qualified GI.NM.Objects.Setting as NM.Setting
import {-# SOURCE #-} qualified GI.NM.Objects.Setting8021x as NM.Setting8021x
import {-# SOURCE #-} qualified GI.NM.Objects.SettingAdsl as NM.SettingAdsl
import {-# SOURCE #-} qualified GI.NM.Objects.SettingBluetooth as NM.SettingBluetooth
import {-# SOURCE #-} qualified GI.NM.Objects.SettingBond as NM.SettingBond
import {-# SOURCE #-} qualified GI.NM.Objects.SettingBridge as NM.SettingBridge
import {-# SOURCE #-} qualified GI.NM.Objects.SettingBridgePort as NM.SettingBridgePort
import {-# SOURCE #-} qualified GI.NM.Objects.SettingCdma as NM.SettingCdma
import {-# SOURCE #-} qualified GI.NM.Objects.SettingConnection as NM.SettingConnection
import {-# SOURCE #-} qualified GI.NM.Objects.SettingDcb as NM.SettingDcb
import {-# SOURCE #-} qualified GI.NM.Objects.SettingDummy as NM.SettingDummy
import {-# SOURCE #-} qualified GI.NM.Objects.SettingGeneric as NM.SettingGeneric
import {-# SOURCE #-} qualified GI.NM.Objects.SettingGsm as NM.SettingGsm
import {-# SOURCE #-} qualified GI.NM.Objects.SettingIP4Config as NM.SettingIP4Config
import {-# SOURCE #-} qualified GI.NM.Objects.SettingIP6Config as NM.SettingIP6Config
import {-# SOURCE #-} qualified GI.NM.Objects.SettingIPConfig as NM.SettingIPConfig
import {-# SOURCE #-} qualified GI.NM.Objects.SettingIPTunnel as NM.SettingIPTunnel
import {-# SOURCE #-} qualified GI.NM.Objects.SettingInfiniband as NM.SettingInfiniband
import {-# SOURCE #-} qualified GI.NM.Objects.SettingMacsec as NM.SettingMacsec
import {-# SOURCE #-} qualified GI.NM.Objects.SettingMacvlan as NM.SettingMacvlan
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOlpcMesh as NM.SettingOlpcMesh
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOvsBridge as NM.SettingOvsBridge
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOvsInterface as NM.SettingOvsInterface
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOvsPatch as NM.SettingOvsPatch
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOvsPort as NM.SettingOvsPort
import {-# SOURCE #-} qualified GI.NM.Objects.SettingPpp as NM.SettingPpp
import {-# SOURCE #-} qualified GI.NM.Objects.SettingPppoe as NM.SettingPppoe
import {-# SOURCE #-} qualified GI.NM.Objects.SettingProxy as NM.SettingProxy
import {-# SOURCE #-} qualified GI.NM.Objects.SettingSerial as NM.SettingSerial
import {-# SOURCE #-} qualified GI.NM.Objects.SettingTCConfig as NM.SettingTCConfig
import {-# SOURCE #-} qualified GI.NM.Objects.SettingTeam as NM.SettingTeam
import {-# SOURCE #-} qualified GI.NM.Objects.SettingTeamPort as NM.SettingTeamPort
import {-# SOURCE #-} qualified GI.NM.Objects.SettingTun as NM.SettingTun
import {-# SOURCE #-} qualified GI.NM.Objects.SettingVlan as NM.SettingVlan
import {-# SOURCE #-} qualified GI.NM.Objects.SettingVpn as NM.SettingVpn
import {-# SOURCE #-} qualified GI.NM.Objects.SettingVxlan as NM.SettingVxlan
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWimax as NM.SettingWimax
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWired as NM.SettingWired
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWireless as NM.SettingWireless
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWirelessSecurity as NM.SettingWirelessSecurity
import {-# SOURCE #-} qualified GI.NM.Structs.BridgeVlan as NM.BridgeVlan
import {-# SOURCE #-} qualified GI.NM.Structs.IPAddress as NM.IPAddress
import {-# SOURCE #-} qualified GI.NM.Structs.IPRoute as NM.IPRoute
import {-# SOURCE #-} qualified GI.NM.Structs.IPRoutingRule as NM.IPRoutingRule
import {-# SOURCE #-} qualified GI.NM.Structs.Range as NM.Range
import {-# SOURCE #-} qualified GI.NM.Structs.TCAction as NM.TCAction
import {-# SOURCE #-} qualified GI.NM.Structs.TCQdisc as NM.TCQdisc
import {-# SOURCE #-} qualified GI.NM.Structs.TCTfilter as NM.TCTfilter
import {-# SOURCE #-} qualified GI.NM.Structs.TeamLinkWatcher as NM.TeamLinkWatcher
import {-# SOURCE #-} qualified GI.NM.Structs.VariantAttributeSpec as NM.VariantAttributeSpec

#else
import qualified GI.GObject.Objects.Object as GObject.Object
import {-# SOURCE #-} qualified GI.NM.Objects.Setting as NM.Setting

#endif

-- | Memory-managed wrapper type.
newtype SettingOvsDpdk = SettingOvsDpdk (SP.ManagedPtr SettingOvsDpdk)
    deriving (SettingOvsDpdk -> SettingOvsDpdk -> Bool
(SettingOvsDpdk -> SettingOvsDpdk -> Bool)
-> (SettingOvsDpdk -> SettingOvsDpdk -> Bool) -> Eq SettingOvsDpdk
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SettingOvsDpdk -> SettingOvsDpdk -> Bool
== :: SettingOvsDpdk -> SettingOvsDpdk -> Bool
$c/= :: SettingOvsDpdk -> SettingOvsDpdk -> Bool
/= :: SettingOvsDpdk -> SettingOvsDpdk -> Bool
Eq)

instance SP.ManagedPtrNewtype SettingOvsDpdk where
    toManagedPtr :: SettingOvsDpdk -> ManagedPtr SettingOvsDpdk
toManagedPtr (SettingOvsDpdk ManagedPtr SettingOvsDpdk
p) = ManagedPtr SettingOvsDpdk
p

foreign import ccall "nm_setting_ovs_dpdk_get_type"
    c_nm_setting_ovs_dpdk_get_type :: IO B.Types.GType

instance B.Types.TypedObject SettingOvsDpdk where
    glibType :: IO GType
glibType = IO GType
c_nm_setting_ovs_dpdk_get_type

instance B.Types.GObject SettingOvsDpdk

-- | Type class for types which can be safely cast to t'SettingOvsDpdk', for instance with `toSettingOvsDpdk`.
class (SP.GObject o, O.IsDescendantOf SettingOvsDpdk o) => IsSettingOvsDpdk o
instance (SP.GObject o, O.IsDescendantOf SettingOvsDpdk o) => IsSettingOvsDpdk o

instance O.HasParentTypes SettingOvsDpdk
type instance O.ParentTypes SettingOvsDpdk = '[NM.Setting.Setting, GObject.Object.Object]

-- | Cast to t'SettingOvsDpdk', for types for which this is known to be safe. For general casts, use 'Data.GI.Base.ManagedPtr.castTo'.
toSettingOvsDpdk :: (MIO.MonadIO m, IsSettingOvsDpdk o) => o -> m SettingOvsDpdk
toSettingOvsDpdk :: forall (m :: * -> *) o.
(MonadIO m, IsSettingOvsDpdk o) =>
o -> m SettingOvsDpdk
toSettingOvsDpdk = IO SettingOvsDpdk -> m SettingOvsDpdk
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO SettingOvsDpdk -> m SettingOvsDpdk)
-> (o -> IO SettingOvsDpdk) -> o -> m SettingOvsDpdk
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr SettingOvsDpdk -> SettingOvsDpdk)
-> o -> IO SettingOvsDpdk
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
 ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr SettingOvsDpdk -> SettingOvsDpdk
SettingOvsDpdk

-- | Convert t'SettingOvsDpdk' to and from t'Data.GI.Base.GValue.GValue'. See 'Data.GI.Base.GValue.toGValue' and 'Data.GI.Base.GValue.fromGValue'.
instance B.GValue.IsGValue (Maybe SettingOvsDpdk) where
    gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_nm_setting_ovs_dpdk_get_type
    gvalueSet_ :: Ptr GValue -> Maybe SettingOvsDpdk -> IO ()
gvalueSet_ Ptr GValue
gv Maybe SettingOvsDpdk
P.Nothing = Ptr GValue -> Ptr SettingOvsDpdk -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr SettingOvsDpdk
forall a. Ptr a
FP.nullPtr :: FP.Ptr SettingOvsDpdk)
    gvalueSet_ Ptr GValue
gv (P.Just SettingOvsDpdk
obj) = SettingOvsDpdk -> (Ptr SettingOvsDpdk -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr SettingOvsDpdk
obj (Ptr GValue -> Ptr SettingOvsDpdk -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
    gvalueGet_ :: Ptr GValue -> IO (Maybe SettingOvsDpdk)
gvalueGet_ Ptr GValue
gv = do
        Ptr SettingOvsDpdk
ptr <- Ptr GValue -> IO (Ptr SettingOvsDpdk)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr SettingOvsDpdk)
        if Ptr SettingOvsDpdk
ptr Ptr SettingOvsDpdk -> Ptr SettingOvsDpdk -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr SettingOvsDpdk
forall a. Ptr a
FP.nullPtr
        then SettingOvsDpdk -> Maybe SettingOvsDpdk
forall a. a -> Maybe a
P.Just (SettingOvsDpdk -> Maybe SettingOvsDpdk)
-> IO SettingOvsDpdk -> IO (Maybe SettingOvsDpdk)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr SettingOvsDpdk -> SettingOvsDpdk)
-> Ptr SettingOvsDpdk -> IO SettingOvsDpdk
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr SettingOvsDpdk -> SettingOvsDpdk
SettingOvsDpdk Ptr SettingOvsDpdk
ptr
        else Maybe SettingOvsDpdk -> IO (Maybe SettingOvsDpdk)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe SettingOvsDpdk
forall a. Maybe a
P.Nothing
        
    

#if defined(ENABLE_OVERLOADING)
type family ResolveSettingOvsDpdkMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
    ResolveSettingOvsDpdkMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
    ResolveSettingOvsDpdkMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
    ResolveSettingOvsDpdkMethod "compare" o = NM.Setting.SettingCompareMethodInfo
    ResolveSettingOvsDpdkMethod "diff" o = NM.Setting.SettingDiffMethodInfo
    ResolveSettingOvsDpdkMethod "duplicate" o = NM.Setting.SettingDuplicateMethodInfo
    ResolveSettingOvsDpdkMethod "enumerateValues" o = NM.Setting.SettingEnumerateValuesMethodInfo
    ResolveSettingOvsDpdkMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
    ResolveSettingOvsDpdkMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
    ResolveSettingOvsDpdkMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
    ResolveSettingOvsDpdkMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
    ResolveSettingOvsDpdkMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
    ResolveSettingOvsDpdkMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
    ResolveSettingOvsDpdkMethod "optionClearByName" o = NM.Setting.SettingOptionClearByNameMethodInfo
    ResolveSettingOvsDpdkMethod "optionGet" o = NM.Setting.SettingOptionGetMethodInfo
    ResolveSettingOvsDpdkMethod "optionGetAllNames" o = NM.Setting.SettingOptionGetAllNamesMethodInfo
    ResolveSettingOvsDpdkMethod "optionGetBoolean" o = NM.Setting.SettingOptionGetBooleanMethodInfo
    ResolveSettingOvsDpdkMethod "optionGetUint32" o = NM.Setting.SettingOptionGetUint32MethodInfo
    ResolveSettingOvsDpdkMethod "optionSet" o = NM.Setting.SettingOptionSetMethodInfo
    ResolveSettingOvsDpdkMethod "optionSetBoolean" o = NM.Setting.SettingOptionSetBooleanMethodInfo
    ResolveSettingOvsDpdkMethod "optionSetUint32" o = NM.Setting.SettingOptionSetUint32MethodInfo
    ResolveSettingOvsDpdkMethod "ref" o = GObject.Object.ObjectRefMethodInfo
    ResolveSettingOvsDpdkMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
    ResolveSettingOvsDpdkMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
    ResolveSettingOvsDpdkMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
    ResolveSettingOvsDpdkMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
    ResolveSettingOvsDpdkMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
    ResolveSettingOvsDpdkMethod "toString" o = NM.Setting.SettingToStringMethodInfo
    ResolveSettingOvsDpdkMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
    ResolveSettingOvsDpdkMethod "verify" o = NM.Setting.SettingVerifyMethodInfo
    ResolveSettingOvsDpdkMethod "verifySecrets" o = NM.Setting.SettingVerifySecretsMethodInfo
    ResolveSettingOvsDpdkMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
    ResolveSettingOvsDpdkMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
    ResolveSettingOvsDpdkMethod "getDbusPropertyType" o = NM.Setting.SettingGetDbusPropertyTypeMethodInfo
    ResolveSettingOvsDpdkMethod "getDevargs" o = SettingOvsDpdkGetDevargsMethodInfo
    ResolveSettingOvsDpdkMethod "getNRxq" o = SettingOvsDpdkGetNRxqMethodInfo
    ResolveSettingOvsDpdkMethod "getNRxqDesc" o = SettingOvsDpdkGetNRxqDescMethodInfo
    ResolveSettingOvsDpdkMethod "getNTxqDesc" o = SettingOvsDpdkGetNTxqDescMethodInfo
    ResolveSettingOvsDpdkMethod "getName" o = NM.Setting.SettingGetNameMethodInfo
    ResolveSettingOvsDpdkMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
    ResolveSettingOvsDpdkMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
    ResolveSettingOvsDpdkMethod "getSecretFlags" o = NM.Setting.SettingGetSecretFlagsMethodInfo
    ResolveSettingOvsDpdkMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
    ResolveSettingOvsDpdkMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
    ResolveSettingOvsDpdkMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
    ResolveSettingOvsDpdkMethod "setSecretFlags" o = NM.Setting.SettingSetSecretFlagsMethodInfo
    ResolveSettingOvsDpdkMethod l o = O.MethodResolutionFailed l o

instance (info ~ ResolveSettingOvsDpdkMethod t SettingOvsDpdk, O.OverloadedMethod info SettingOvsDpdk p) => OL.IsLabel t (SettingOvsDpdk -> p) where
#if MIN_VERSION_base(4,10,0)
    fromLabel = O.overloadedMethod @info
#else
    fromLabel _ = O.overloadedMethod @info
#endif

#if MIN_VERSION_base(4,13,0)
instance (info ~ ResolveSettingOvsDpdkMethod t SettingOvsDpdk, O.OverloadedMethod info SettingOvsDpdk p, R.HasField t SettingOvsDpdk p) => R.HasField t SettingOvsDpdk p where
    getField = O.overloadedMethod @info

#endif

instance (info ~ ResolveSettingOvsDpdkMethod t SettingOvsDpdk, O.OverloadedMethodInfo info SettingOvsDpdk) => OL.IsLabel t (O.MethodProxy info SettingOvsDpdk) where
#if MIN_VERSION_base(4,10,0)
    fromLabel = O.MethodProxy
#else
    fromLabel _ = O.MethodProxy
#endif

#endif

-- VVV Prop "devargs"
   -- Type: TBasicType TUTF8
   -- Flags: [PropertyReadable,PropertyWritable]
   -- Nullable: (Just False,Nothing)

-- | Get the value of the “@devargs@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.get' settingOvsDpdk #devargs
-- @
getSettingOvsDpdkDevargs :: (MonadIO m, IsSettingOvsDpdk o) => o -> m T.Text
getSettingOvsDpdkDevargs :: forall (m :: * -> *) o.
(MonadIO m, IsSettingOvsDpdk o) =>
o -> m Text
getSettingOvsDpdkDevargs o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingOvsDpdkDevargs" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"devargs"

-- | Set the value of the “@devargs@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.set' settingOvsDpdk [ #devargs 'Data.GI.Base.Attributes.:=' value ]
-- @
setSettingOvsDpdkDevargs :: (MonadIO m, IsSettingOvsDpdk o) => o -> T.Text -> m ()
setSettingOvsDpdkDevargs :: forall (m :: * -> *) o.
(MonadIO m, IsSettingOvsDpdk o) =>
o -> Text -> m ()
setSettingOvsDpdkDevargs o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
    o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"devargs" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)

-- | Construct a t'GValueConstruct' with valid value for the “@devargs@” property. This is rarely needed directly, but it is used by `Data.GI.Base.Constructible.new`.
constructSettingOvsDpdkDevargs :: (IsSettingOvsDpdk o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingOvsDpdkDevargs :: forall o (m :: * -> *).
(IsSettingOvsDpdk o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingOvsDpdkDevargs Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
    IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"devargs" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)

-- | Set the value of the “@devargs@” property to `Nothing`.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.clear' #devargs
-- @
clearSettingOvsDpdkDevargs :: (MonadIO m, IsSettingOvsDpdk o) => o -> m ()
clearSettingOvsDpdkDevargs :: forall (m :: * -> *) o.
(MonadIO m, IsSettingOvsDpdk o) =>
o -> m ()
clearSettingOvsDpdkDevargs o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"devargs" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)

#if defined(ENABLE_OVERLOADING)
data SettingOvsDpdkDevargsPropertyInfo
instance AttrInfo SettingOvsDpdkDevargsPropertyInfo where
    type AttrAllowedOps SettingOvsDpdkDevargsPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
    type AttrBaseTypeConstraint SettingOvsDpdkDevargsPropertyInfo = IsSettingOvsDpdk
    type AttrSetTypeConstraint SettingOvsDpdkDevargsPropertyInfo = (~) T.Text
    type AttrTransferTypeConstraint SettingOvsDpdkDevargsPropertyInfo = (~) T.Text
    type AttrTransferType SettingOvsDpdkDevargsPropertyInfo = T.Text
    type AttrGetType SettingOvsDpdkDevargsPropertyInfo = T.Text
    type AttrLabel SettingOvsDpdkDevargsPropertyInfo = "devargs"
    type AttrOrigin SettingOvsDpdkDevargsPropertyInfo = SettingOvsDpdk
    attrGet = getSettingOvsDpdkDevargs
    attrSet = setSettingOvsDpdkDevargs
    attrTransfer _ v = do
        return v
    attrConstruct = constructSettingOvsDpdkDevargs
    attrClear = clearSettingOvsDpdkDevargs
    dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingOvsDpdk.devargs"
        , O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingOvsDpdk.html#g:attr:devargs"
        })
#endif

-- VVV Prop "n-rxq"
   -- Type: TBasicType TUInt
   -- Flags: [PropertyReadable,PropertyWritable]
   -- Nullable: (Nothing,Nothing)

-- | Get the value of the “@n-rxq@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.get' settingOvsDpdk #nRxq
-- @
getSettingOvsDpdkNRxq :: (MonadIO m, IsSettingOvsDpdk o) => o -> m Word32
getSettingOvsDpdkNRxq :: forall (m :: * -> *) o.
(MonadIO m, IsSettingOvsDpdk o) =>
o -> m Word32
getSettingOvsDpdkNRxq o
obj = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Word32
forall a. GObject a => a -> String -> IO Word32
B.Properties.getObjectPropertyUInt32 o
obj String
"n-rxq"

-- | Set the value of the “@n-rxq@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.set' settingOvsDpdk [ #nRxq 'Data.GI.Base.Attributes.:=' value ]
-- @
setSettingOvsDpdkNRxq :: (MonadIO m, IsSettingOvsDpdk o) => o -> Word32 -> m ()
setSettingOvsDpdkNRxq :: forall (m :: * -> *) o.
(MonadIO m, IsSettingOvsDpdk o) =>
o -> Word32 -> m ()
setSettingOvsDpdkNRxq o
obj Word32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
    o -> String -> Word32 -> IO ()
forall a. GObject a => a -> String -> Word32 -> IO ()
B.Properties.setObjectPropertyUInt32 o
obj String
"n-rxq" Word32
val

-- | Construct a t'GValueConstruct' with valid value for the “@n-rxq@” property. This is rarely needed directly, but it is used by `Data.GI.Base.Constructible.new`.
constructSettingOvsDpdkNRxq :: (IsSettingOvsDpdk o, MIO.MonadIO m) => Word32 -> m (GValueConstruct o)
constructSettingOvsDpdkNRxq :: forall o (m :: * -> *).
(IsSettingOvsDpdk o, MonadIO m) =>
Word32 -> m (GValueConstruct o)
constructSettingOvsDpdkNRxq Word32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
    IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Word32 -> IO (GValueConstruct o)
forall o. String -> Word32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyUInt32 String
"n-rxq" Word32
val

#if defined(ENABLE_OVERLOADING)
data SettingOvsDpdkNRxqPropertyInfo
instance AttrInfo SettingOvsDpdkNRxqPropertyInfo where
    type AttrAllowedOps SettingOvsDpdkNRxqPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
    type AttrBaseTypeConstraint SettingOvsDpdkNRxqPropertyInfo = IsSettingOvsDpdk
    type AttrSetTypeConstraint SettingOvsDpdkNRxqPropertyInfo = (~) Word32
    type AttrTransferTypeConstraint SettingOvsDpdkNRxqPropertyInfo = (~) Word32
    type AttrTransferType SettingOvsDpdkNRxqPropertyInfo = Word32
    type AttrGetType SettingOvsDpdkNRxqPropertyInfo = Word32
    type AttrLabel SettingOvsDpdkNRxqPropertyInfo = "n-rxq"
    type AttrOrigin SettingOvsDpdkNRxqPropertyInfo = SettingOvsDpdk
    attrGet = getSettingOvsDpdkNRxq
    attrSet = setSettingOvsDpdkNRxq
    attrTransfer _ v = do
        return v
    attrConstruct = constructSettingOvsDpdkNRxq
    attrClear = undefined
    dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingOvsDpdk.nRxq"
        , O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingOvsDpdk.html#g:attr:nRxq"
        })
#endif

-- VVV Prop "n-rxq-desc"
   -- Type: TBasicType TUInt
   -- Flags: [PropertyReadable,PropertyWritable]
   -- Nullable: (Nothing,Nothing)

-- | Get the value of the “@n-rxq-desc@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.get' settingOvsDpdk #nRxqDesc
-- @
getSettingOvsDpdkNRxqDesc :: (MonadIO m, IsSettingOvsDpdk o) => o -> m Word32
getSettingOvsDpdkNRxqDesc :: forall (m :: * -> *) o.
(MonadIO m, IsSettingOvsDpdk o) =>
o -> m Word32
getSettingOvsDpdkNRxqDesc o
obj = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Word32
forall a. GObject a => a -> String -> IO Word32
B.Properties.getObjectPropertyUInt32 o
obj String
"n-rxq-desc"

-- | Set the value of the “@n-rxq-desc@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.set' settingOvsDpdk [ #nRxqDesc 'Data.GI.Base.Attributes.:=' value ]
-- @
setSettingOvsDpdkNRxqDesc :: (MonadIO m, IsSettingOvsDpdk o) => o -> Word32 -> m ()
setSettingOvsDpdkNRxqDesc :: forall (m :: * -> *) o.
(MonadIO m, IsSettingOvsDpdk o) =>
o -> Word32 -> m ()
setSettingOvsDpdkNRxqDesc o
obj Word32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
    o -> String -> Word32 -> IO ()
forall a. GObject a => a -> String -> Word32 -> IO ()
B.Properties.setObjectPropertyUInt32 o
obj String
"n-rxq-desc" Word32
val

-- | Construct a t'GValueConstruct' with valid value for the “@n-rxq-desc@” property. This is rarely needed directly, but it is used by `Data.GI.Base.Constructible.new`.
constructSettingOvsDpdkNRxqDesc :: (IsSettingOvsDpdk o, MIO.MonadIO m) => Word32 -> m (GValueConstruct o)
constructSettingOvsDpdkNRxqDesc :: forall o (m :: * -> *).
(IsSettingOvsDpdk o, MonadIO m) =>
Word32 -> m (GValueConstruct o)
constructSettingOvsDpdkNRxqDesc Word32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
    IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Word32 -> IO (GValueConstruct o)
forall o. String -> Word32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyUInt32 String
"n-rxq-desc" Word32
val

#if defined(ENABLE_OVERLOADING)
data SettingOvsDpdkNRxqDescPropertyInfo
instance AttrInfo SettingOvsDpdkNRxqDescPropertyInfo where
    type AttrAllowedOps SettingOvsDpdkNRxqDescPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
    type AttrBaseTypeConstraint SettingOvsDpdkNRxqDescPropertyInfo = IsSettingOvsDpdk
    type AttrSetTypeConstraint SettingOvsDpdkNRxqDescPropertyInfo = (~) Word32
    type AttrTransferTypeConstraint SettingOvsDpdkNRxqDescPropertyInfo = (~) Word32
    type AttrTransferType SettingOvsDpdkNRxqDescPropertyInfo = Word32
    type AttrGetType SettingOvsDpdkNRxqDescPropertyInfo = Word32
    type AttrLabel SettingOvsDpdkNRxqDescPropertyInfo = "n-rxq-desc"
    type AttrOrigin SettingOvsDpdkNRxqDescPropertyInfo = SettingOvsDpdk
    attrGet = getSettingOvsDpdkNRxqDesc
    attrSet = setSettingOvsDpdkNRxqDesc
    attrTransfer _ v = do
        return v
    attrConstruct = constructSettingOvsDpdkNRxqDesc
    attrClear = undefined
    dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingOvsDpdk.nRxqDesc"
        , O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingOvsDpdk.html#g:attr:nRxqDesc"
        })
#endif

-- VVV Prop "n-txq-desc"
   -- Type: TBasicType TUInt
   -- Flags: [PropertyReadable,PropertyWritable]
   -- Nullable: (Nothing,Nothing)

-- | Get the value of the “@n-txq-desc@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.get' settingOvsDpdk #nTxqDesc
-- @
getSettingOvsDpdkNTxqDesc :: (MonadIO m, IsSettingOvsDpdk o) => o -> m Word32
getSettingOvsDpdkNTxqDesc :: forall (m :: * -> *) o.
(MonadIO m, IsSettingOvsDpdk o) =>
o -> m Word32
getSettingOvsDpdkNTxqDesc o
obj = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Word32
forall a. GObject a => a -> String -> IO Word32
B.Properties.getObjectPropertyUInt32 o
obj String
"n-txq-desc"

-- | Set the value of the “@n-txq-desc@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.set' settingOvsDpdk [ #nTxqDesc 'Data.GI.Base.Attributes.:=' value ]
-- @
setSettingOvsDpdkNTxqDesc :: (MonadIO m, IsSettingOvsDpdk o) => o -> Word32 -> m ()
setSettingOvsDpdkNTxqDesc :: forall (m :: * -> *) o.
(MonadIO m, IsSettingOvsDpdk o) =>
o -> Word32 -> m ()
setSettingOvsDpdkNTxqDesc o
obj Word32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
    o -> String -> Word32 -> IO ()
forall a. GObject a => a -> String -> Word32 -> IO ()
B.Properties.setObjectPropertyUInt32 o
obj String
"n-txq-desc" Word32
val

-- | Construct a t'GValueConstruct' with valid value for the “@n-txq-desc@” property. This is rarely needed directly, but it is used by `Data.GI.Base.Constructible.new`.
constructSettingOvsDpdkNTxqDesc :: (IsSettingOvsDpdk o, MIO.MonadIO m) => Word32 -> m (GValueConstruct o)
constructSettingOvsDpdkNTxqDesc :: forall o (m :: * -> *).
(IsSettingOvsDpdk o, MonadIO m) =>
Word32 -> m (GValueConstruct o)
constructSettingOvsDpdkNTxqDesc Word32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
    IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Word32 -> IO (GValueConstruct o)
forall o. String -> Word32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyUInt32 String
"n-txq-desc" Word32
val

#if defined(ENABLE_OVERLOADING)
data SettingOvsDpdkNTxqDescPropertyInfo
instance AttrInfo SettingOvsDpdkNTxqDescPropertyInfo where
    type AttrAllowedOps SettingOvsDpdkNTxqDescPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
    type AttrBaseTypeConstraint SettingOvsDpdkNTxqDescPropertyInfo = IsSettingOvsDpdk
    type AttrSetTypeConstraint SettingOvsDpdkNTxqDescPropertyInfo = (~) Word32
    type AttrTransferTypeConstraint SettingOvsDpdkNTxqDescPropertyInfo = (~) Word32
    type AttrTransferType SettingOvsDpdkNTxqDescPropertyInfo = Word32
    type AttrGetType SettingOvsDpdkNTxqDescPropertyInfo = Word32
    type AttrLabel SettingOvsDpdkNTxqDescPropertyInfo = "n-txq-desc"
    type AttrOrigin SettingOvsDpdkNTxqDescPropertyInfo = SettingOvsDpdk
    attrGet = getSettingOvsDpdkNTxqDesc
    attrSet = setSettingOvsDpdkNTxqDesc
    attrTransfer _ v = do
        return v
    attrConstruct = constructSettingOvsDpdkNTxqDesc
    attrClear = undefined
    dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingOvsDpdk.nTxqDesc"
        , O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingOvsDpdk.html#g:attr:nTxqDesc"
        })
#endif

#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList SettingOvsDpdk
type instance O.AttributeList SettingOvsDpdk = SettingOvsDpdkAttributeList
type SettingOvsDpdkAttributeList = ('[ '("devargs", SettingOvsDpdkDevargsPropertyInfo), '("nRxq", SettingOvsDpdkNRxqPropertyInfo), '("nRxqDesc", SettingOvsDpdkNRxqDescPropertyInfo), '("nTxqDesc", SettingOvsDpdkNTxqDescPropertyInfo), '("name", NM.Setting.SettingNamePropertyInfo)] :: [(Symbol, DK.Type)])
#endif

#if defined(ENABLE_OVERLOADING)
settingOvsDpdkDevargs :: AttrLabelProxy "devargs"
settingOvsDpdkDevargs = AttrLabelProxy

settingOvsDpdkNRxq :: AttrLabelProxy "nRxq"
settingOvsDpdkNRxq = AttrLabelProxy

settingOvsDpdkNRxqDesc :: AttrLabelProxy "nRxqDesc"
settingOvsDpdkNRxqDesc = AttrLabelProxy

settingOvsDpdkNTxqDesc :: AttrLabelProxy "nTxqDesc"
settingOvsDpdkNTxqDesc = AttrLabelProxy

#endif

#if defined(ENABLE_OVERLOADING)
type instance O.SignalList SettingOvsDpdk = SettingOvsDpdkSignalList
type SettingOvsDpdkSignalList = ('[ '("notify", GObject.Object.ObjectNotifySignalInfo)] :: [(Symbol, DK.Type)])

#endif

-- method SettingOvsDpdk::new
-- method type : Constructor
-- Args: []
-- Lengths: []
-- returnType: Just
--               (TInterface Name { namespace = "NM" , name = "SettingOvsDpdk" })
-- throws : False
-- Skip return : False

foreign import ccall "nm_setting_ovs_dpdk_new" nm_setting_ovs_dpdk_new :: 
    IO (Ptr SettingOvsDpdk)

-- | Creates a new t'GI.NM.Objects.SettingOvsDpdk.SettingOvsDpdk' object with default values.
-- 
-- /Since: 1.20/
settingOvsDpdkNew ::
    (B.CallStack.HasCallStack, MonadIO m) =>
    m SettingOvsDpdk
    -- ^ __Returns:__ the new empty t'GI.NM.Objects.SettingOvsDpdk.SettingOvsDpdk' object
settingOvsDpdkNew :: forall (m :: * -> *). (HasCallStack, MonadIO m) => m SettingOvsDpdk
settingOvsDpdkNew  = IO SettingOvsDpdk -> m SettingOvsDpdk
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SettingOvsDpdk -> m SettingOvsDpdk)
-> IO SettingOvsDpdk -> m SettingOvsDpdk
forall a b. (a -> b) -> a -> b
$ do
    Ptr SettingOvsDpdk
result <- IO (Ptr SettingOvsDpdk)
nm_setting_ovs_dpdk_new
    Text -> Ptr SettingOvsDpdk -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingOvsDpdkNew" Ptr SettingOvsDpdk
result
    SettingOvsDpdk
result' <- ((ManagedPtr SettingOvsDpdk -> SettingOvsDpdk)
-> Ptr SettingOvsDpdk -> IO SettingOvsDpdk
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr SettingOvsDpdk -> SettingOvsDpdk
SettingOvsDpdk) Ptr SettingOvsDpdk
result
    SettingOvsDpdk -> IO SettingOvsDpdk
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return SettingOvsDpdk
result'

#if defined(ENABLE_OVERLOADING)
#endif

-- method SettingOvsDpdk::get_devargs
-- method type : OrdinaryMethod
-- Args: [ Arg
--           { argCName = "self"
--           , argType =
--               TInterface Name { namespace = "NM" , name = "SettingOvsDpdk" }
--           , direction = DirectionIn
--           , mayBeNull = False
--           , argDoc =
--               Documentation
--                 { rawDocText = Just "the #NMSettingOvsDpdk"
--                 , sinceVersion = Nothing
--                 }
--           , argScope = ScopeTypeInvalid
--           , argClosure = -1
--           , argDestroy = -1
--           , argCallerAllocates = False
--           , argCallbackUserData = False
--           , transfer = TransferNothing
--           }
--       ]
-- Lengths: []
-- returnType: Just (TBasicType TUTF8)
-- throws : False
-- Skip return : False

foreign import ccall "nm_setting_ovs_dpdk_get_devargs" nm_setting_ovs_dpdk_get_devargs :: 
    Ptr SettingOvsDpdk ->                   -- self : TInterface (Name {namespace = "NM", name = "SettingOvsDpdk"})
    IO CString

-- | /No description available in the introspection data./
-- 
-- /Since: 1.20/
settingOvsDpdkGetDevargs ::
    (B.CallStack.HasCallStack, MonadIO m, IsSettingOvsDpdk a) =>
    a
    -- ^ /@self@/: the t'GI.NM.Objects.SettingOvsDpdk.SettingOvsDpdk'
    -> m T.Text
    -- ^ __Returns:__ the [SettingOvsDpdk:devargs]("GI.NM.Objects.SettingOvsDpdk#g:attr:devargs") property of the setting
settingOvsDpdkGetDevargs :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingOvsDpdk a) =>
a -> m Text
settingOvsDpdkGetDevargs a
self = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
    Ptr SettingOvsDpdk
self' <- a -> IO (Ptr SettingOvsDpdk)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
    CString
result <- Ptr SettingOvsDpdk -> IO CString
nm_setting_ovs_dpdk_get_devargs Ptr SettingOvsDpdk
self'
    Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingOvsDpdkGetDevargs" CString
result
    Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
    a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
    Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'

#if defined(ENABLE_OVERLOADING)
data SettingOvsDpdkGetDevargsMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingOvsDpdk a) => O.OverloadedMethod SettingOvsDpdkGetDevargsMethodInfo a signature where
    overloadedMethod = settingOvsDpdkGetDevargs

instance O.OverloadedMethodInfo SettingOvsDpdkGetDevargsMethodInfo a where
    overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingOvsDpdk.settingOvsDpdkGetDevargs",
        O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingOvsDpdk.html#v:settingOvsDpdkGetDevargs"
        })


#endif

-- method SettingOvsDpdk::get_n_rxq
-- method type : OrdinaryMethod
-- Args: [ Arg
--           { argCName = "self"
--           , argType =
--               TInterface Name { namespace = "NM" , name = "SettingOvsDpdk" }
--           , direction = DirectionIn
--           , mayBeNull = False
--           , argDoc =
--               Documentation
--                 { rawDocText = Just "the #NMSettingOvsDpdk"
--                 , sinceVersion = Nothing
--                 }
--           , argScope = ScopeTypeInvalid
--           , argClosure = -1
--           , argDestroy = -1
--           , argCallerAllocates = False
--           , argCallbackUserData = False
--           , transfer = TransferNothing
--           }
--       ]
-- Lengths: []
-- returnType: Just (TBasicType TUInt32)
-- throws : False
-- Skip return : False

foreign import ccall "nm_setting_ovs_dpdk_get_n_rxq" nm_setting_ovs_dpdk_get_n_rxq :: 
    Ptr SettingOvsDpdk ->                   -- self : TInterface (Name {namespace = "NM", name = "SettingOvsDpdk"})
    IO Word32

-- | /No description available in the introspection data./
-- 
-- /Since: 1.36/
settingOvsDpdkGetNRxq ::
    (B.CallStack.HasCallStack, MonadIO m, IsSettingOvsDpdk a) =>
    a
    -- ^ /@self@/: the t'GI.NM.Objects.SettingOvsDpdk.SettingOvsDpdk'
    -> m Word32
    -- ^ __Returns:__ the [SettingOvsDpdk:nRxq]("GI.NM.Objects.SettingOvsDpdk#g:attr:nRxq") property of the setting
settingOvsDpdkGetNRxq :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingOvsDpdk a) =>
a -> m Word32
settingOvsDpdkGetNRxq a
self = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ do
    Ptr SettingOvsDpdk
self' <- a -> IO (Ptr SettingOvsDpdk)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
    Word32
result <- Ptr SettingOvsDpdk -> IO Word32
nm_setting_ovs_dpdk_get_n_rxq Ptr SettingOvsDpdk
self'
    a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
    Word32 -> IO Word32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
result

#if defined(ENABLE_OVERLOADING)
data SettingOvsDpdkGetNRxqMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsSettingOvsDpdk a) => O.OverloadedMethod SettingOvsDpdkGetNRxqMethodInfo a signature where
    overloadedMethod = settingOvsDpdkGetNRxq

instance O.OverloadedMethodInfo SettingOvsDpdkGetNRxqMethodInfo a where
    overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingOvsDpdk.settingOvsDpdkGetNRxq",
        O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingOvsDpdk.html#v:settingOvsDpdkGetNRxq"
        })


#endif

-- method SettingOvsDpdk::get_n_rxq_desc
-- method type : OrdinaryMethod
-- Args: [ Arg
--           { argCName = "self"
--           , argType =
--               TInterface Name { namespace = "NM" , name = "SettingOvsDpdk" }
--           , direction = DirectionIn
--           , mayBeNull = False
--           , argDoc =
--               Documentation
--                 { rawDocText = Just "the #NMSettingOvsDpdk"
--                 , sinceVersion = Nothing
--                 }
--           , argScope = ScopeTypeInvalid
--           , argClosure = -1
--           , argDestroy = -1
--           , argCallerAllocates = False
--           , argCallbackUserData = False
--           , transfer = TransferNothing
--           }
--       ]
-- Lengths: []
-- returnType: Just (TBasicType TUInt32)
-- throws : False
-- Skip return : False

foreign import ccall "nm_setting_ovs_dpdk_get_n_rxq_desc" nm_setting_ovs_dpdk_get_n_rxq_desc :: 
    Ptr SettingOvsDpdk ->                   -- self : TInterface (Name {namespace = "NM", name = "SettingOvsDpdk"})
    IO Word32

-- | /No description available in the introspection data./
-- 
-- /Since: 1.42/
settingOvsDpdkGetNRxqDesc ::
    (B.CallStack.HasCallStack, MonadIO m, IsSettingOvsDpdk a) =>
    a
    -- ^ /@self@/: the t'GI.NM.Objects.SettingOvsDpdk.SettingOvsDpdk'
    -> m Word32
    -- ^ __Returns:__ the [SettingOvsDpdk:nRxqDesc]("GI.NM.Objects.SettingOvsDpdk#g:attr:nRxqDesc") property of the setting
settingOvsDpdkGetNRxqDesc :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingOvsDpdk a) =>
a -> m Word32
settingOvsDpdkGetNRxqDesc a
self = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ do
    Ptr SettingOvsDpdk
self' <- a -> IO (Ptr SettingOvsDpdk)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
    Word32
result <- Ptr SettingOvsDpdk -> IO Word32
nm_setting_ovs_dpdk_get_n_rxq_desc Ptr SettingOvsDpdk
self'
    a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
    Word32 -> IO Word32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
result

#if defined(ENABLE_OVERLOADING)
data SettingOvsDpdkGetNRxqDescMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsSettingOvsDpdk a) => O.OverloadedMethod SettingOvsDpdkGetNRxqDescMethodInfo a signature where
    overloadedMethod = settingOvsDpdkGetNRxqDesc

instance O.OverloadedMethodInfo SettingOvsDpdkGetNRxqDescMethodInfo a where
    overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingOvsDpdk.settingOvsDpdkGetNRxqDesc",
        O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingOvsDpdk.html#v:settingOvsDpdkGetNRxqDesc"
        })


#endif

-- method SettingOvsDpdk::get_n_txq_desc
-- method type : OrdinaryMethod
-- Args: [ Arg
--           { argCName = "self"
--           , argType =
--               TInterface Name { namespace = "NM" , name = "SettingOvsDpdk" }
--           , direction = DirectionIn
--           , mayBeNull = False
--           , argDoc =
--               Documentation
--                 { rawDocText = Just "the #NMSettingOvsDpdk"
--                 , sinceVersion = Nothing
--                 }
--           , argScope = ScopeTypeInvalid
--           , argClosure = -1
--           , argDestroy = -1
--           , argCallerAllocates = False
--           , argCallbackUserData = False
--           , transfer = TransferNothing
--           }
--       ]
-- Lengths: []
-- returnType: Just (TBasicType TUInt32)
-- throws : False
-- Skip return : False

foreign import ccall "nm_setting_ovs_dpdk_get_n_txq_desc" nm_setting_ovs_dpdk_get_n_txq_desc :: 
    Ptr SettingOvsDpdk ->                   -- self : TInterface (Name {namespace = "NM", name = "SettingOvsDpdk"})
    IO Word32

-- | /No description available in the introspection data./
-- 
-- /Since: 1.42/
settingOvsDpdkGetNTxqDesc ::
    (B.CallStack.HasCallStack, MonadIO m, IsSettingOvsDpdk a) =>
    a
    -- ^ /@self@/: the t'GI.NM.Objects.SettingOvsDpdk.SettingOvsDpdk'
    -> m Word32
    -- ^ __Returns:__ the [SettingOvsDpdk:nTxqDesc]("GI.NM.Objects.SettingOvsDpdk#g:attr:nTxqDesc") property of the setting
settingOvsDpdkGetNTxqDesc :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingOvsDpdk a) =>
a -> m Word32
settingOvsDpdkGetNTxqDesc a
self = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ do
    Ptr SettingOvsDpdk
self' <- a -> IO (Ptr SettingOvsDpdk)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
    Word32
result <- Ptr SettingOvsDpdk -> IO Word32
nm_setting_ovs_dpdk_get_n_txq_desc Ptr SettingOvsDpdk
self'
    a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
    Word32 -> IO Word32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
result

#if defined(ENABLE_OVERLOADING)
data SettingOvsDpdkGetNTxqDescMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsSettingOvsDpdk a) => O.OverloadedMethod SettingOvsDpdkGetNTxqDescMethodInfo a signature where
    overloadedMethod = settingOvsDpdkGetNTxqDesc

instance O.OverloadedMethodInfo SettingOvsDpdkGetNTxqDescMethodInfo a where
    overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingOvsDpdk.settingOvsDpdkGetNTxqDesc",
        O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingOvsDpdk.html#v:settingOvsDpdkGetNTxqDesc"
        })


#endif