struct TwitterAds::Proto::UserSetting

Included Modules

Defined in:

twitter-ads/proto/user_setting.pb.cr

Constant Summary

FIELDS = {1 => {name: :notification_email, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :contact_phone, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :contact_phone_extension, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :subscribed_email_types, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 5 => {name: :account_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :user_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(notification_email : String | Nil = nil, contact_phone : String | Nil = nil, contact_phone_extension : String | Nil = nil, subscribed_email_types : Array(String) | Nil = nil, account_id : String | Nil = nil, user_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 account_id : String | Nil #

def account_id=(account_id : String | Nil) #

def contact_phone : String | Nil #

def contact_phone=(contact_phone : String | Nil) #

def contact_phone_extension : String | Nil #

def contact_phone_extension=(contact_phone_extension : String | Nil) #

def notification_email : String | Nil #

def notification_email=(notification_email : String | Nil) #

def subscribed_email_types : Array(String) | Nil #

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

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

def to_hash #

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

def to_protobuf #

def user_id : Int64 | Nil #

def user_id=(user_id : Int64 | Nil) #