DeviceExtLens

io.bidmachine.protobuf.ml.v1.DeviceExt.DeviceExtLens
implicit class DeviceExtLens[UpperPB](_l: Lens[UpperPB, DeviceExt]) extends ObjectLens[UpperPB, DeviceExt]

Attributes

Graph
Supertypes
class ObjectLens[UpperPB, DeviceExt]
trait Lens[UpperPB, DeviceExt]
trait Serializable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def access: Lens[UpperPB, String]
def airplane: Lens[UpperPB, Int]
def atts: Lens[UpperPB, Int]
def batterylevel: Lens[UpperPB, Double]
def batterysaver: Lens[UpperPB, Int]
def charging: Lens[UpperPB, Int]
def cpuname: Lens[UpperPB, String]
def cpuvendor: Lens[UpperPB, String]
def darkmode: Lens[UpperPB, Int]
def devicename: Lens[UpperPB, String]
def diskspace: Lens[UpperPB, Int]
def dnd: Lens[UpperPB, Int]
def freemem: Lens[UpperPB, Long]
def gpuname: Lens[UpperPB, String]
def gpuvendor: Lens[UpperPB, String]
def headset: Lens[UpperPB, Int]
def headsetname: Lens[UpperPB, String]
def ifv: Lens[UpperPB, String]
def inputlanguage: Lens[UpperPB, Seq[String]]
def jailbreak: Lens[UpperPB, Int]
def lastbootup: Lens[UpperPB, Double]
def optionalAccess: Lens[UpperPB, Option[String]]
def optionalAirplane: Lens[UpperPB, Option[Int]]
def optionalAtts: Lens[UpperPB, Option[Int]]
def optionalBatterylevel: Lens[UpperPB, Option[Double]]
def optionalBatterysaver: Lens[UpperPB, Option[Int]]
def optionalCharging: Lens[UpperPB, Option[Int]]
def optionalCpuname: Lens[UpperPB, Option[String]]
def optionalCpuvendor: Lens[UpperPB, Option[String]]
def optionalDarkmode: Lens[UpperPB, Option[Int]]
def optionalDevicename: Lens[UpperPB, Option[String]]
def optionalDiskspace: Lens[UpperPB, Option[Int]]
def optionalDnd: Lens[UpperPB, Option[Int]]
def optionalFreemem: Lens[UpperPB, Option[Long]]
def optionalGpuname: Lens[UpperPB, Option[String]]
def optionalGpuvendor: Lens[UpperPB, Option[String]]
def optionalHeadset: Lens[UpperPB, Option[Int]]
def optionalHeadsetname: Lens[UpperPB, Option[String]]
def optionalIfv: Lens[UpperPB, Option[String]]
def optionalJailbreak: Lens[UpperPB, Option[Int]]
def optionalLastbootup: Lens[UpperPB, Option[Double]]
def optionalRingmute: Lens[UpperPB, Option[Int]]
def optionalScreenbright: Lens[UpperPB, Option[Double]]
def optionalTime: Lens[UpperPB, Option[Long]]
def optionalTimezone: Lens[UpperPB, Option[String]]
def optionalTotaldisk: Lens[UpperPB, Option[Int]]
def optionalTotalmem: Lens[UpperPB, Option[Long]]
def optionalVolumelevel: Lens[UpperPB, Option[Float]]
def ringmute: Lens[UpperPB, Int]
def screenbright: Lens[UpperPB, Double]
def time: Lens[UpperPB, Long]
def timezone: Lens[UpperPB, String]
def totaldisk: Lens[UpperPB, Int]
def totalmem: Lens[UpperPB, Long]
def volumelevel: Lens[UpperPB, Float]

Inherited methods

def :=(a: DeviceExt): () => UpperPB

alias to set

alias to set

Attributes

Inherited from:
Lens
def compose[B](other: Lens[DeviceExt, B]): Lens[UpperPB, B]

Composes two lenses, this enables nesting.

Composes two lenses, this enables nesting.

If our field of type A has a sub-field of type B, then given a lens for it (other: Lens[A, B]) we can create a single lens from Container to B.

Attributes

Inherited from:
Lens
def field[A](getter: DeviceExt => A)(setter: (DeviceExt, A) => DeviceExt): Lens[UpperPB, A]

Creates a sub-lens

Creates a sub-lens

Attributes

Inherited from:
ObjectLens
def field[A](lens: Lens[DeviceExt, A]): Lens[UpperPB, A]

Creates a sub-lens

Creates a sub-lens

Attributes

Inherited from:
ObjectLens
override def get(u: UpperPB): DeviceExt

get knows how to extract some field of type A from a container

get knows how to extract some field of type A from a container

Attributes

Definition Classes
ObjectLens -> Lens
Inherited from:
ObjectLens
def modify(f: DeviceExt => DeviceExt): () => UpperPB

Represent an update operator (like x.y += 1 )

Represent an update operator (like x.y += 1 )

Attributes

Inherited from:
Lens
override def set(c: DeviceExt): () => UpperPB

Represents an assignment operator.

Represents an assignment operator.

Given a value of type A, sets knows how to transform a container such that a is assigned to the field.

We must have get(set(a)(c)) == a

Attributes

Definition Classes
ObjectLens -> Lens
Inherited from:
ObjectLens
def setIfDefined(aOpt: Option[DeviceExt]): () => UpperPB

Optional assignment.

Optional assignment.

Given a Some[A], assign the Some's value to the field. Given None, the container is unchanged.

Attributes

Inherited from:
Lens
def update(ms: Lens[DeviceExt, DeviceExt] => () => DeviceExt*): () => UpperPB

Attributes

Inherited from:
ObjectLens
def zip[B](other: Lens[UpperPB, B]): Lens[UpperPB, (DeviceExt, B)]

Given two lenses with the same origin, returns a new lens that can mutate both values represented by both lenses through a tuple.

Given two lenses with the same origin, returns a new lens that can mutate both values represented by both lenses through a tuple.

Attributes

Inherited from:
Lens