struct Facebook::Proto::Flight

Included Modules

Defined in:

cli/proto/facebook/Flight.pb.cr

Constant Summary

FIELDS = {1 => {name: :id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :currency, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :description, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :destination_airport, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :destination_city, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :flight_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :images, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 8 => {name: :oneway_currency, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :oneway_price, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :origin_airport, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :origin_city, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :price, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :sanitized_images, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 14 => {name: :url, 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(id : String | Nil = nil, currency : String | Nil = nil, description : String | Nil = nil, destination_airport : String | Nil = nil, destination_city : String | Nil = nil, flight_id : String | Nil = nil, images : Array(String) | Nil = nil, oneway_currency : String | Nil = nil, oneway_price : String | Nil = nil, origin_airport : String | Nil = nil, origin_city : String | Nil = nil, price : String | Nil = nil, sanitized_images : Array(String) | Nil = nil, url : 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 currency : String | Nil #

def currency=(currency : String | Nil) #

def description : String | Nil #

def description=(description : String | Nil) #

def destination_airport : String | Nil #

def destination_airport=(destination_airport : String | Nil) #

def destination_city : String | Nil #

def destination_city=(destination_city : String | Nil) #

def flight_id : String | Nil #

def flight_id=(flight_id : String | Nil) #

def id : String | Nil #

def id=(id : String | Nil) #

def images : Array(String) | Nil #

def images=(images : Array(String) | Nil) #

def images=(images : Array(String) | Nil) #

def oneway_currency : String | Nil #

def oneway_currency=(oneway_currency : String | Nil) #

def oneway_price : String | Nil #

def oneway_price=(oneway_price : String | Nil) #

def origin_airport : String | Nil #

def origin_airport=(origin_airport : String | Nil) #

def origin_city : String | Nil #

def origin_city=(origin_city : String | Nil) #

def price : String | Nil #

def price=(price : String | Nil) #

def sanitized_images : Array(String) | Nil #

def sanitized_images=(sanitized_images : Array(String) | Nil) #

def sanitized_images=(sanitized_images : Array(String) | Nil) #

def to_hash #

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

def to_protobuf #

def url : String | Nil #

def url=(url : String | Nil) #