class Immutable extends UserAgent
The default read-only implementation of UserAgent. You typically should not need to directly reference this class; instead, use the UserAgent.apply method to construct new instances.
- Alphabetic
- By Inheritance
- Immutable
- UserAgent
- Serializable
- HasThriftStructCodec3
- Product6
- Product
- Equals
- ThriftStruct
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Immutable(userAgentString: String, type: Option[UserAgentType] = _root_.scala.None, os: Option[NameAndVersion] = _root_.scala.None, family: Option[NameAndVersion] = _root_.scala.None, device: Option[DeviceType] = _root_.scala.None, model: Option[Device] = _root_.scala.None)
- new Immutable(userAgentString: String, type: Option[UserAgentType], os: Option[NameAndVersion], family: Option[NameAndVersion], device: Option[DeviceType], model: Option[Device], _passthroughFields: Map[Short, TFieldBlob])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
_1: String
- Definition Classes
- UserAgent → Product6
-
def
_2: Option[UserAgentType]
- Definition Classes
- UserAgent → Product6
-
def
_3: Option[NameAndVersion]
- Definition Classes
- UserAgent → Product6
-
def
_4: Option[NameAndVersion]
- Definition Classes
- UserAgent → Product6
-
def
_5: Option[DeviceType]
- Definition Classes
- UserAgent → Product6
-
def
_6: Option[Device]
- Definition Classes
- UserAgent → Product6
-
def
_codec: ThriftStructCodec3[UserAgent]
- Definition Classes
- UserAgent → HasThriftStructCodec3
- val _passthroughFields: Map[Short, TFieldBlob]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canEqual(other: Any): Boolean
- Definition Classes
- UserAgent → Equals
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
copy(userAgentString: String = this.userAgentString, type: Option[UserAgentType] = this.`type`, os: Option[NameAndVersion] = this.os, family: Option[NameAndVersion] = this.family, device: Option[DeviceType] = this.device, model: Option[Device] = this.model, _passthroughFields: Map[Short, TFieldBlob] = this._passthroughFields): UserAgent
- Definition Classes
- UserAgent
-
val
device: Option[DeviceType]
Device class of this user agent
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- UserAgent → Equals → AnyRef → Any
-
val
family: Option[NameAndVersion]
The family name and version of the user agent e.g.
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getFieldBlob(_fieldId: Short): Option[TFieldBlob]
Gets a field value encoded as a binary blob using TCompactProtocol.
Gets a field value encoded as a binary blob using TCompactProtocol. If the specified field is present in the passthrough map, that value is returned. Otherwise, if the specified field is known and not optional and set to None, then the field is serialized and returned.
- Definition Classes
- UserAgent
-
def
getFieldBlobs(ids: TraversableOnce[Short]): Map[Short, TFieldBlob]
Collects TCompactProtocol-encoded field values according to
getFieldBlob
into a map.Collects TCompactProtocol-encoded field values according to
getFieldBlob
into a map.- Definition Classes
- UserAgent
-
def
hashCode(): Int
- Definition Classes
- UserAgent → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
model: Option[Device]
Full device model and manufacturer Only populated for native apps, where this data is available.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
os: Option[NameAndVersion]
The operating system this request was made from
-
def
productArity: Int
- Definition Classes
- UserAgent → Product6 → Product
-
def
productElement(n: Int): Any
- Definition Classes
- UserAgent → Product6 → Product
-
def
productIterator: Iterator[Any]
- Definition Classes
- Product
-
def
productPrefix: String
- Definition Classes
- UserAgent → Product
-
def
setField(_blob: TFieldBlob): UserAgent
Sets a field using a TCompactProtocol-encoded binary blob.
Sets a field using a TCompactProtocol-encoded binary blob. If the field is a known field, the blob is decoded and the field is set to the decoded value. If the field is unknown and passthrough fields are enabled, then the blob will be stored in _passthroughFields.
- Definition Classes
- UserAgent
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- UserAgent → AnyRef → Any
-
def
toTuple: (String, Option[UserAgentType], Option[NameAndVersion], Option[NameAndVersion], Option[DeviceType], Option[Device])
- Definition Classes
- UserAgent
-
val
type: Option[UserAgentType]
The classification of this user agent
-
def
unsetDevice: UserAgent
- Definition Classes
- UserAgent
-
def
unsetFamily: UserAgent
- Definition Classes
- UserAgent
-
def
unsetField(_fieldId: Short): UserAgent
If the specified field is optional, it is set to None.
If the specified field is optional, it is set to None. Otherwise, if the field is known, it is reverted to its default value; if the field is unknown, it is removed from the passthroughFields map, if present.
- Definition Classes
- UserAgent
-
def
unsetModel: UserAgent
- Definition Classes
- UserAgent
-
def
unsetOs: UserAgent
- Definition Classes
- UserAgent
-
def
unsetType: UserAgent
- Definition Classes
- UserAgent
-
def
unsetUserAgentString: UserAgent
If the specified field is optional, it is set to None.
If the specified field is optional, it is set to None. Otherwise, if the field is known, it is reverted to its default value; if the field is unknown, it is removed from the passthroughFields map, if present.
- Definition Classes
- UserAgent
-
val
userAgentString: String
The raw user agent string supplied Note that for guardian native app events this is likely misleading, as it often represents the library that the app used to make the request
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
write(_oprot: TProtocol): Unit
- Definition Classes
- UserAgent → ThriftStruct