struct Facebook::Proto::Location

Included Modules

Defined in:

cli/proto/facebook/Location.pb.cr

Constant 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

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(buf : Protobuf::Buffer) #

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) #

def self.new(pull : JSON::PullParser) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def []=(key : String, val) #

def []?(key : String) #

def city_id : Int64 | Nil #

def city_id=(city_id : Int64 | Nil) #

def country : String | Nil #

def country=(country : String | Nil) #

def country_code : String | Nil #

def country_code=(country_code : String | Nil) #

def latitude : Float64 | Nil #

def latitude=(latitude : Float64 | Nil) #

def located_in : String | Nil #

def located_in=(located_in : String | Nil) #

def longitude : Float64 | Nil #

def longitude=(longitude : Float64 | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def region_id : Int64 | Nil #

def region_id=(region_id : Int64 | Nil) #

def state : String | Nil #

def state=(state : String | Nil) #

def street : String | Nil #

def street=(street : String | Nil) #

def to_hash #

def to_protobuf(io : IO, embedded = false) #

def to_protobuf #

def zip : String | Nil #

def zip=(zip : String | Nil) #