struct TwitterAds::Proto::User

Included Modules

Defined in:

twitter-ads/proto/user.pb.cr

Constant Summary

FIELDS = {1 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :friends_count, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :screen_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :location, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :profile_image_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :profile_background_color, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :profile_use_background_image, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :is_translator, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :geo_enabled, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :description, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :profile_link_color, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :id_str, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 14 => {name: :listed_count, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :default_profile_image, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :followers_count, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 17 => {name: :profile_image_url_https, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 18 => {name: :profile_sidebar_border_color, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 19 => {name: :profile_background_image_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 20 => {name: :favourites_count, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 21 => {name: :default_profile, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 22 => {name: :id, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 23 => {name: :profile_background_tile, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 24 => {name: :contributors_enabled, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 25 => {name: :created_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 26 => {name: :profile_sidebar_fill_color, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 27 => {name: :translator_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 28 => {name: :profile_text_color, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 29 => {name: :verified, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 30 => {name: :profile_banner_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 31 => {name: :statuses_count, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 32 => {name: :profile_background_image_url_https, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 33 => {name: :is_translation_enabled, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, 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(name : String | Nil = nil, friends_count : Int64 | Nil = nil, screen_name : String | Nil = nil, location : String | Nil = nil, url : String | Nil = nil, profile_image_url : String | Nil = nil, profile_background_color : String | Nil = nil, profile_use_background_image : Bool | Nil = nil, is_translator : Bool | Nil = nil, geo_enabled : Bool | Nil = nil, description : String | Nil = nil, profile_link_color : String | Nil = nil, id_str : String | Nil = nil, listed_count : Int64 | Nil = nil, default_profile_image : Bool | Nil = nil, followers_count : Int64 | Nil = nil, profile_image_url_https : String | Nil = nil, profile_sidebar_border_color : String | Nil = nil, profile_background_image_url : String | Nil = nil, favourites_count : Int64 | Nil = nil, default_profile : Bool | Nil = nil, id : Int64 | Nil = nil, profile_background_tile : Bool | Nil = nil, contributors_enabled : Bool | Nil = nil, created_at : String | Nil = nil, profile_sidebar_fill_color : String | Nil = nil, translator_type : String | Nil = nil, profile_text_color : String | Nil = nil, verified : Bool | Nil = nil, profile_banner_url : String | Nil = nil, statuses_count : Int64 | Nil = nil, profile_background_image_url_https : String | Nil = nil, is_translation_enabled : Bool | 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 contributors_enabled : Bool | Nil #

def contributors_enabled=(contributors_enabled : Bool | Nil) #

def created_at : String | Nil #

def created_at=(created_at : String | Nil) #

def default_profile : Bool | Nil #

def default_profile=(default_profile : Bool | Nil) #

def default_profile_image : Bool | Nil #

def default_profile_image=(default_profile_image : Bool | Nil) #

def description : String | Nil #

def description=(description : String | Nil) #

def favourites_count : Int64 | Nil #

def favourites_count=(favourites_count : Int64 | Nil) #

def followers_count : Int64 | Nil #

def followers_count=(followers_count : Int64 | Nil) #

def friends_count : Int64 | Nil #

def friends_count=(friends_count : Int64 | Nil) #

def geo_enabled : Bool | Nil #

def geo_enabled=(geo_enabled : Bool | Nil) #

def id : Int64 | Nil #

def id=(id : Int64 | Nil) #

def id_str : String | Nil #

def id_str=(id_str : String | Nil) #

def is_translation_enabled : Bool | Nil #

def is_translation_enabled=(is_translation_enabled : Bool | Nil) #

def is_translator : Bool | Nil #

def is_translator=(is_translator : Bool | Nil) #

def listed_count : Int64 | Nil #

def listed_count=(listed_count : Int64 | Nil) #

def location : String | Nil #

def location=(location : String | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def profile_background_color : String | Nil #

def profile_background_color=(profile_background_color : String | Nil) #

def profile_background_image_url : String | Nil #

def profile_background_image_url=(profile_background_image_url : String | Nil) #

def profile_background_image_url_https : String | Nil #

def profile_background_image_url_https=(profile_background_image_url_https : String | Nil) #

def profile_background_tile : Bool | Nil #

def profile_background_tile=(profile_background_tile : Bool | Nil) #

def profile_banner_url : String | Nil #

def profile_banner_url=(profile_banner_url : String | Nil) #

def profile_image_url : String | Nil #

def profile_image_url=(profile_image_url : String | Nil) #

def profile_image_url_https : String | Nil #

def profile_image_url_https=(profile_image_url_https : String | Nil) #

def profile_link_color : String | Nil #

def profile_link_color=(profile_link_color : String | Nil) #

def profile_sidebar_border_color : String | Nil #

def profile_sidebar_border_color=(profile_sidebar_border_color : String | Nil) #

def profile_sidebar_fill_color : String | Nil #

def profile_sidebar_fill_color=(profile_sidebar_fill_color : String | Nil) #

def profile_text_color : String | Nil #

def profile_text_color=(profile_text_color : String | Nil) #

def profile_use_background_image : Bool | Nil #

def profile_use_background_image=(profile_use_background_image : Bool | Nil) #

def screen_name : String | Nil #

def screen_name=(screen_name : String | Nil) #

def statuses_count : Int64 | Nil #

def statuses_count=(statuses_count : Int64 | Nil) #

def to_hash #

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

def to_protobuf #

def translator_type : String | Nil #

def translator_type=(translator_type : String | Nil) #

def url : String | Nil #

def url=(url : String | Nil) #

def verified : Bool | Nil #

def verified=(verified : Bool | Nil) #