Class LocationInfo

java.lang.Object
dev.vality.damsel.columbus.LocationInfo
All Implemented Interfaces:
Serializable, Cloneable, Comparable<LocationInfo>, org.apache.thrift.TBase<LocationInfo,LocationInfo._Fields>, org.apache.thrift.TSerializable

@Generated(value="Autogenerated by Thrift Compiler (0.19.0)", date="2024-08-02") public class LocationInfo extends Object implements org.apache.thrift.TBase<LocationInfo,LocationInfo._Fields>, Serializable, Cloneable, Comparable<LocationInfo>
See Also:
  • Field Details

    • city_geo_id

      public int city_geo_id
    • country_geo_id

      public int country_geo_id
    • raw_response

      public String raw_response
    • metaDataMap

      public static final Map<LocationInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
  • Constructor Details

    • LocationInfo

      public LocationInfo()
    • LocationInfo

      public LocationInfo(int city_geo_id, int country_geo_id)
    • LocationInfo

      public LocationInfo(LocationInfo other)
      Performs a deep copy on other.
  • Method Details

    • deepCopy

      public LocationInfo deepCopy()
      Specified by:
      deepCopy in interface org.apache.thrift.TBase<LocationInfo,LocationInfo._Fields>
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.thrift.TBase<LocationInfo,LocationInfo._Fields>
    • getCityGeoId

      public int getCityGeoId()
    • setCityGeoId

      public LocationInfo setCityGeoId(int city_geo_id)
    • unsetCityGeoId

      public void unsetCityGeoId()
    • isSetCityGeoId

      public boolean isSetCityGeoId()
      Returns true if field city_geo_id is set (has been assigned a value) and false otherwise
    • setCityGeoIdIsSet

      public void setCityGeoIdIsSet(boolean value)
    • getCountryGeoId

      public int getCountryGeoId()
    • setCountryGeoId

      public LocationInfo setCountryGeoId(int country_geo_id)
    • unsetCountryGeoId

      public void unsetCountryGeoId()
    • isSetCountryGeoId

      public boolean isSetCountryGeoId()
      Returns true if field country_geo_id is set (has been assigned a value) and false otherwise
    • setCountryGeoIdIsSet

      public void setCountryGeoIdIsSet(boolean value)
    • getRawResponse

      public String getRawResponse()
    • setRawResponse

      public LocationInfo setRawResponse(String raw_response)
    • unsetRawResponse

      public void unsetRawResponse()
    • isSetRawResponse

      public boolean isSetRawResponse()
      Returns true if field raw_response is set (has been assigned a value) and false otherwise
    • setRawResponseIsSet

      public void setRawResponseIsSet(boolean value)
    • setFieldValue

      public void setFieldValue(LocationInfo._Fields field, Object value)
      Specified by:
      setFieldValue in interface org.apache.thrift.TBase<LocationInfo,LocationInfo._Fields>
    • getFieldValue

      public Object getFieldValue(LocationInfo._Fields field)
      Specified by:
      getFieldValue in interface org.apache.thrift.TBase<LocationInfo,LocationInfo._Fields>
    • isSet

      public boolean isSet(LocationInfo._Fields field)
      Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
      Specified by:
      isSet in interface org.apache.thrift.TBase<LocationInfo,LocationInfo._Fields>
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(LocationInfo that)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(LocationInfo other)
      Specified by:
      compareTo in interface Comparable<LocationInfo>
    • fieldForId

      public LocationInfo._Fields fieldForId(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<LocationInfo,LocationInfo._Fields>
    • getFields

      public LocationInfo._Fields[] getFields()
      Specified by:
      getFields in interface org.apache.thrift.TBase<LocationInfo,LocationInfo._Fields>
    • getFieldMetaData

      public Map<LocationInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> getFieldMetaData()
      Specified by:
      getFieldMetaData in interface org.apache.thrift.TBase<LocationInfo,LocationInfo._Fields>
    • read

      public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
      Specified by:
      read in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • write

      public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
      Specified by:
      write in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public void validate() throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException