class Immutable extends GeoLocation
The default read-only implementation of GeoLocation. You typically should not need to directly reference this class; instead, use the GeoLocation.apply method to construct new instances.
- Alphabetic
- By Inheritance
- Immutable
- GeoLocation
- Serializable
- HasThriftStructCodec3
- Product8
- Product
- Equals
- ThriftStruct
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Immutable(geo: Option[GeoPoint] = _root_.scala.None, countryCode: Option[String] = _root_.scala.None, countryName: Option[String] = _root_.scala.None, city: Option[String] = _root_.scala.None, metroCode: Option[Int] = _root_.scala.None, continent: Option[String] = _root_.scala.None, subdivisions: Option[Seq[String]] = _root_.scala.None, timezone: Option[String] = _root_.scala.None)
- new Immutable(geo: Option[GeoPoint], countryCode: Option[String], countryName: Option[String], city: Option[String], metroCode: Option[Int], continent: Option[String], subdivisions: Option[Seq[String]], timezone: Option[String], _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: Option[GeoPoint]
- Definition Classes
- GeoLocation → Product8
-
def
_2: Option[String]
- Definition Classes
- GeoLocation → Product8
-
def
_3: Option[String]
- Definition Classes
- GeoLocation → Product8
-
def
_4: Option[String]
- Definition Classes
- GeoLocation → Product8
-
def
_5: Option[Int]
- Definition Classes
- GeoLocation → Product8
-
def
_6: Option[String]
- Definition Classes
- GeoLocation → Product8
-
def
_7: Option[Seq[String]]
- Definition Classes
- GeoLocation → Product8
-
def
_8: Option[String]
- Definition Classes
- GeoLocation → Product8
-
def
_codec: ThriftStructCodec3[GeoLocation]
- Definition Classes
- GeoLocation → HasThriftStructCodec3
-
val
_passthroughFields: Map[Short, TFieldBlob]
- Definition Classes
- Immutable → GeoLocation
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canEqual(other: Any): Boolean
- Definition Classes
- GeoLocation → Equals
-
val
city: Option[String]
Human readable city name
Human readable city name
- Definition Classes
- Immutable → GeoLocation
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
val
continent: Option[String]
Human readable continent name
Human readable continent name
- Definition Classes
- Immutable → GeoLocation
-
def
copy(geo: Option[GeoPoint] = this.geo, countryCode: Option[String] = this.countryCode, countryName: Option[String] = this.countryName, city: Option[String] = this.city, metroCode: Option[Int] = this.metroCode, continent: Option[String] = this.continent, subdivisions: Option[Seq[String]] = this.subdivisions, timezone: Option[String] = this.timezone, _passthroughFields: Map[Short, TFieldBlob] = this._passthroughFields): GeoLocation
- Definition Classes
- GeoLocation
-
val
countryCode: Option[String]
The two letter country code of the ip address; Note that guardian internal traffic (within the Guardian offices) is assigned a country code of "GNM"
The two letter country code of the ip address; Note that guardian internal traffic (within the Guardian offices) is assigned a country code of "GNM"
- Definition Classes
- Immutable → GeoLocation
-
val
countryName: Option[String]
Human readable country name
Human readable country name
- Definition Classes
- Immutable → GeoLocation
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- GeoLocation → Equals → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
val
geo: Option[GeoPoint]
The resolved geolocation of the ip address
The resolved geolocation of the ip address
- Definition Classes
- Immutable → GeoLocation
-
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
- GeoLocation
-
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
- GeoLocation
-
def
hashCode(): Int
- Definition Classes
- GeoLocation → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
metroCode: Option[Int]
The metro code of the location if the location is in the US.
The metro code of the location if the location is in the US.
- Definition Classes
- Immutable → GeoLocation
-
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()
-
def
productArity: Int
- Definition Classes
- GeoLocation → Product8 → Product
-
def
productElement(n: Int): Any
- Definition Classes
- GeoLocation → Product8 → Product
-
def
productIterator: Iterator[Any]
- Definition Classes
- Product
-
def
productPrefix: String
- Definition Classes
- GeoLocation → Product
-
def
setField(_blob: TFieldBlob): GeoLocation
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
- GeoLocation
-
val
subdivisions: Option[Seq[String]]
Administrative subdivisions, e.g.
Administrative subdivisions, e.g. "Wales", "Berkshire" or "Alaska"
- Definition Classes
- Immutable → GeoLocation
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
timezone: Option[String]
Time zone as specified by http://www.iana.org/time-zones e.g.
Time zone as specified by http://www.iana.org/time-zones e.g. America/New_York
- Definition Classes
- Immutable → GeoLocation
-
def
toString(): String
- Definition Classes
- GeoLocation → AnyRef → Any
-
def
toTuple: (Option[GeoPoint], Option[String], Option[String], Option[String], Option[Int], Option[String], Option[Seq[String]], Option[String])
- Definition Classes
- GeoLocation
-
def
unsetCity: GeoLocation
- Definition Classes
- GeoLocation
-
def
unsetContinent: GeoLocation
- Definition Classes
- GeoLocation
-
def
unsetCountryCode: GeoLocation
- Definition Classes
- GeoLocation
-
def
unsetCountryName: GeoLocation
- Definition Classes
- GeoLocation
-
def
unsetField(_fieldId: Short): GeoLocation
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
- GeoLocation
-
def
unsetGeo: GeoLocation
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
- GeoLocation
-
def
unsetMetroCode: GeoLocation
- Definition Classes
- GeoLocation
-
def
unsetSubdivisions: GeoLocation
- Definition Classes
- GeoLocation
-
def
unsetTimezone: GeoLocation
- Definition Classes
- GeoLocation
-
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
- GeoLocation → ThriftStruct