struct Facebook::Proto::LookalikeSpec
- Facebook::Proto::LookalikeSpec
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
cli/proto/facebook/LookalikeSpec.pb.crConstant 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
- .new(buf : Protobuf::Buffer)
- .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)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #[]=(key : String, val)
- #[]?(key : String)
- #country : String | Nil
- #country=(country : String | Nil)
- #is_financial_service : Bool | Nil
- #is_financial_service=(is_financial_service : Bool | Nil)
- #origin_event_name : String | Nil
- #origin_event_name=(origin_event_name : String | Nil)
- #origin_event_source_name : String | Nil
- #origin_event_source_name=(origin_event_source_name : String | Nil)
- #origin_event_source_type : String | Nil
- #origin_event_source_type=(origin_event_source_type : String | Nil)
- #product_set_name : String | Nil
- #product_set_name=(product_set_name : String | Nil)
- #ratio : Float64 | Nil
- #ratio=(ratio : Float64 | Nil)
- #starting_ratio : Float64 | Nil
- #starting_ratio=(starting_ratio : Float64 | Nil)
- #target_countries : Array(String) | Nil
- #target_countries=(target_countries : Array(String) | Nil)
- #target_countries=(target_countries : Array(String) | Nil)
- #target_country_names : Array(String) | Nil
- #target_country_names=(target_country_names : Array(String) | Nil)
- #target_country_names=(target_country_names : Array(String) | Nil)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #type : String | Nil
- #type=(type : String | Nil)
Constructor Detail
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)
#