struct Facebook::Proto::Location
- Facebook::Proto::Location
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
cli/proto/facebook/Location.pb.crConstant Summary
-
FIELDS =
{1 => {name: :city_id, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :country, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :country_code, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :latitude, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :located_in, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :longitude, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :region_id, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :state, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :street, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :zip, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
-
Fields =
{} of String => Field
Constructors
- .new(buf : Protobuf::Buffer)
- .new(city_id : Int64 | Nil = nil, country : String | Nil = nil, country_code : String | Nil = nil, latitude : Float64 | Nil = nil, located_in : String | Nil = nil, longitude : Float64 | Nil = nil, name : String | Nil = nil, region_id : Int64 | Nil = nil, state : String | Nil = nil, street : String | Nil = nil, zip : String | Nil = nil)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #[]=(key : String, val)
- #[]?(key : String)
- #city_id : Int64 | Nil
- #city_id=(city_id : Int64 | Nil)
- #country : String | Nil
- #country=(country : String | Nil)
- #country_code : String | Nil
- #country_code=(country_code : String | Nil)
- #latitude : Float64 | Nil
- #latitude=(latitude : Float64 | Nil)
- #located_in : String | Nil
- #located_in=(located_in : String | Nil)
- #longitude : Float64 | Nil
- #longitude=(longitude : Float64 | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #region_id : Int64 | Nil
- #region_id=(region_id : Int64 | Nil)
- #state : String | Nil
- #state=(state : String | Nil)
- #street : String | Nil
- #street=(street : String | Nil)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #zip : String | Nil
- #zip=(zip : String | Nil)
Constructor Detail
def self.new(city_id : Int64 | Nil = nil, country : String | Nil = nil, country_code : String | Nil = nil, latitude : Float64 | Nil = nil, located_in : String | Nil = nil, longitude : Float64 | Nil = nil, name : String | Nil = nil, region_id : Int64 | Nil = nil, state : String | Nil = nil, street : String | Nil = nil, zip : String | Nil = nil)
#