1# 2# Autogenerated by Thrift 3# 4# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING 5# @generated 6# 7 8from __future__ import absolute_import 9import sys 10from thrift.util.Recursive import fix_spec 11from thrift.Thrift import TType, TMessageType, TPriority, TRequestContext, TProcessorEventHandler, TServerInterface, TProcessor, TException, TApplicationException, UnimplementedTypedef 12from thrift.protocol.TProtocol import TProtocolException 13 14 15 16from .ttypes import UTF8STRINGS, EmptyEnum, City, Company, Internship, Range, struct1, struct2, struct3, struct4, union1, union2, MyCompany, MyStringIdentifier, MyIntIdentifier, MyMapIdentifier 17 18myInt = 1337 19 20name = "Mark Zuckerberg" 21 22multi_line_string = """This 23is a 24multi line string. 25""" 26 27states = [ 28 { 29 "San Diego" : 3211000, 30 "Sacramento" : 479600, 31 "SF" : 837400, 32 }, 33 { 34 "New York" : 8406000, 35 "Albany" : 98400, 36 }, 37] 38 39x = 1.00000 40 41y = 1000000 42 43z = 1.00000e+09 44 45zeroDoubleValue = 0.00000 46 47longDoubleValue = 2.59961e-05 48 49my_company = 0 50 51foo = "foo" 52 53bar = 42 54 55mymap = { 56 "keys" : "values", 57} 58 59instagram = Internship(**{ 60 "weeks" : 12, 61 "title" : "Software Engineer", 62 "employer" : 3, 63 "compensation" : 1200.00, 64 "school" : "Monters University", 65}) 66 67partial_const = Internship(**{ 68 "weeks" : 8, 69 "title" : "Some Job", 70}) 71 72kRanges = [ 73 Range(**{ 74 "min" : 1, 75 "max" : 2, 76 }), 77 Range(**{ 78 "min" : 5, 79 "max" : 6, 80 }), 81] 82 83internList = [ 84 Internship(**{ 85 "weeks" : 12, 86 "title" : "Software Engineer", 87 "employer" : 3, 88 "compensation" : 1200.00, 89 "school" : "Monters University", 90 }), 91 Internship(**{ 92 "weeks" : 10, 93 "title" : "Sales Intern", 94 "employer" : 0, 95 "compensation" : 1000.00, 96 }), 97] 98 99pod_0 = struct1(**{ 100}) 101 102pod_s_0 = struct1(**{ 103}) 104 105pod_1 = struct1(**{ 106 "a" : 10, 107 "b" : "foo", 108}) 109 110pod_s_1 = struct1(**{ 111 "a" : 10, 112 "b" : "foo", 113}) 114 115pod_2 = struct2(**{ 116 "a" : 98, 117 "b" : "gaz", 118 "c" : struct1(**{ 119 "a" : 12, 120 "b" : "bar", 121 }), 122 "d" : [ 123 11, 124 22, 125 33, 126 ], 127}) 128 129pod_trailing_commas = struct2(**{ 130 "a" : 98, 131 "b" : "gaz", 132 "c" : struct1(**{ 133 "a" : 12, 134 "b" : "bar", 135 }), 136 "d" : [ 137 11, 138 22, 139 33, 140 ], 141}) 142 143pod_s_2 = struct2(**{ 144 "a" : 98, 145 "b" : "gaz", 146 "c" : struct1(**{ 147 "a" : 12, 148 "b" : "bar", 149 }), 150 "d" : [ 151 11, 152 22, 153 33, 154 ], 155}) 156 157pod_3 = struct3(**{ 158 "a" : "abc", 159 "b" : 456, 160 "c" : struct2(**{ 161 "a" : 888, 162 "c" : struct1(**{ 163 "b" : "gaz", 164 }), 165 "d" : [ 166 1, 167 2, 168 3, 169 ], 170 }), 171}) 172 173pod_s_3 = struct3(**{ 174 "a" : "abc", 175 "b" : 456, 176 "c" : struct2(**{ 177 "a" : 888, 178 "c" : struct1(**{ 179 "b" : "gaz", 180 }), 181 "d" : [ 182 1, 183 2, 184 3, 185 ], 186 }), 187}) 188 189pod_4 = struct4(**{ 190 "a" : 1234, 191 "b" : 0.333000, 192 "c" : 25, 193}) 194 195u_1_1 = union1(**{ 196 "i" : 97, 197}) 198 199u_1_2 = union1(**{ 200 "d" : 5.60000, 201}) 202 203u_1_3 = union1(**{ 204}) 205 206u_2_1 = union2(**{ 207 "i" : 51, 208}) 209 210u_2_2 = union2(**{ 211 "d" : 6.70000, 212}) 213 214u_2_3 = union2(**{ 215 "s" : struct1(**{ 216 "a" : 8, 217 "b" : "abacabb", 218 }), 219}) 220 221u_2_4 = union2(**{ 222 "u" : union1(**{ 223 "i" : 43, 224 }), 225}) 226 227u_2_5 = union2(**{ 228 "u" : union1(**{ 229 "d" : 9.80000, 230 }), 231}) 232 233u_2_6 = union2(**{ 234 "u" : union1(**{ 235 }), 236}) 237 238apostrophe = "'" 239 240tripleApostrophe = "'''" 241 242quotationMark = "\"" 243 244backslash = "\\" 245 246escaped_a = "\x61" 247 248char2ascii = { 249 "'" : 39, 250 "\"" : 34, 251 "\\" : 92, 252 "\x61" : 97, 253} 254 255escaped_strings = [ 256 "\x61", 257 "\xab", 258 "\x6a", 259 "\xa6", 260 "\x61yyy", 261 "\xabyyy", 262 "\x6ayyy", 263 "\xa6yyy", 264 "zzz\x61", 265 "zzz\xab", 266 "zzz\x6a", 267 "zzz\xa6", 268 "zzz\x61yyy", 269 "zzz\xabyyy", 270 "zzz\x6ayyy", 271 "zzz\xa6yyy", 272] 273 274false_c = False 275 276true_c = True 277 278zero_byte = 0 279 280zero16 = 0 281 282zero32 = 0 283 284zero64 = 0 285 286zero_dot_zero = 0.00000 287 288empty_string = "" 289 290empty_int_list = [ 291] 292 293empty_string_list = [ 294] 295 296empty_int_set = set([ 297]) 298 299empty_string_set = set([ 300]) 301 302empty_int_int_map = { 303} 304 305empty_int_string_map = { 306} 307 308empty_string_int_map = { 309} 310 311empty_string_string_map = { 312} 313 314