struct Facebook::Proto::LookalikeSpec

Included Modules

Defined in:

cli/proto/facebook/LookalikeSpec.pb.cr

Constant Summary

FIELDS = {1 => {name: :country, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :is_financial_service, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :origin_event_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :origin_event_source_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :origin_event_source_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :product_set_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :ratio, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :starting_ratio, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :target_countries, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 10 => {name: :target_country_names, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 11 => {name: :type, 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(country : String | Nil = nil, is_financial_service : Bool | Nil = nil, origin_event_name : String | Nil = nil, origin_event_source_name : String | Nil = nil, origin_event_source_type : String | Nil = nil, product_set_name : String | Nil = nil, ratio : Float64 | Nil = nil, starting_ratio : Float64 | Nil = nil, target_countries : Array(String) | Nil = nil, target_country_names : Array(String) | Nil = nil, type : 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 country : String | Nil #

def country=(country : String | Nil) #

def is_financial_service : Bool | Nil #

def is_financial_service=(is_financial_service : Bool | Nil) #

def origin_event_name : String | Nil #

def origin_event_name=(origin_event_name : String | Nil) #

def origin_event_source_name : String | Nil #

def origin_event_source_name=(origin_event_source_name : String | Nil) #

def origin_event_source_type : String | Nil #

def origin_event_source_type=(origin_event_source_type : String | Nil) #

def product_set_name : String | Nil #

def product_set_name=(product_set_name : String | Nil) #

def ratio : Float64 | Nil #

def ratio=(ratio : Float64 | Nil) #

def starting_ratio : Float64 | Nil #

def starting_ratio=(starting_ratio : Float64 | Nil) #

def target_countries : Array(String) | Nil #

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

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

def target_country_names : Array(String) | Nil #

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

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

def to_hash #

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

def to_protobuf #

def type : String | Nil #

def type=(type : String | Nil) #