struct Facebook::Proto::TargetingGeoLocationCustomLocation

Included Modules

Defined in:

cli/proto/facebook/TargetingGeoLocationCustomLocation.pb.cr

Constant Summary

FIELDS = {1 => {name: :address_string, pb_type: :string, crystal_type: String, cast_type: String?, 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_group, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :custom_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :distance_unit, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :key, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :latitude, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :longitude, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :max_population, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :min_population, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :primary_city_id, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :radius, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 14 => {name: :region_id, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, 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(address_string : String | Nil = nil, country : String | Nil = nil, country_group : String | Nil = nil, custom_type : String | Nil = nil, distance_unit : String | Nil = nil, key : String | Nil = nil, latitude : Float64 | Nil = nil, longitude : Float64 | Nil = nil, max_population : Int64 | Nil = nil, min_population : Int64 | Nil = nil, name : String | Nil = nil, primary_city_id : Int64 | Nil = nil, radius : Float64 | Nil = nil, region_id : Int64 | 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 address_string : String | Nil #

def address_string=(address_string : String | Nil) #

def country : String | Nil #

def country=(country : String | Nil) #

def country_group : String | Nil #

def country_group=(country_group : String | Nil) #

def custom_type : String | Nil #

def custom_type=(custom_type : String | Nil) #

def distance_unit : String | Nil #

def distance_unit=(distance_unit : String | Nil) #

def key : String | Nil #

def key=(key : String | Nil) #

def latitude : Float64 | Nil #

def latitude=(latitude : Float64 | Nil) #

def longitude : Float64 | Nil #

def longitude=(longitude : Float64 | Nil) #

def max_population : Int64 | Nil #

def max_population=(max_population : Int64 | Nil) #

def min_population : Int64 | Nil #

def min_population=(min_population : Int64 | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def primary_city_id : Int64 | Nil #

def primary_city_id=(primary_city_id : Int64 | Nil) #

def radius : Float64 | Nil #

def radius=(radius : Float64 | Nil) #

def region_id : Int64 | Nil #

def region_id=(region_id : Int64 | Nil) #

def to_hash #

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

def to_protobuf #