googlebigquery.pp 183 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445
  1. unit googlebigquery;
  2. {$MODE objfpc}
  3. {$H+}
  4. interface
  5. uses sysutils, classes, googleservice, restbase, googlebase;
  6. type
  7. //Top-level schema types
  8. TJsonValue = TJSONSchema;
  9. TBigtableColumn = Class;
  10. TBigtableColumnFamily = Class;
  11. TBigtableOptions = Class;
  12. TCsvOptions = Class;
  13. TDataset = Class;
  14. TDatasetList = Class;
  15. TDatasetReference = Class;
  16. TErrorProto = Class;
  17. TExplainQueryStage = Class;
  18. TExplainQueryStep = Class;
  19. TExternalDataConfiguration = Class;
  20. TGetQueryResultsResponse = Class;
  21. TGoogleSheetsOptions = Class;
  22. TJob = Class;
  23. TJobCancelResponse = Class;
  24. TJobConfiguration = Class;
  25. TJobConfigurationExtract = Class;
  26. TJobConfigurationLoad = Class;
  27. TJobConfigurationQuery = Class;
  28. TJobConfigurationTableCopy = Class;
  29. TJobList = Class;
  30. TJobReference = Class;
  31. TJobStatistics = Class;
  32. TJobStatistics2 = Class;
  33. TJobStatistics3 = Class;
  34. TJobStatistics4 = Class;
  35. TJobStatus = Class;
  36. TJsonObject = Class;
  37. TProjectList = Class;
  38. TProjectReference = Class;
  39. TQueryRequest = Class;
  40. TQueryResponse = Class;
  41. TStreamingbuffer = Class;
  42. TTable = Class;
  43. TTableCell = Class;
  44. TTableDataInsertAllRequest = Class;
  45. TTableDataInsertAllResponse = Class;
  46. TTableDataList = Class;
  47. TTableFieldSchema = Class;
  48. TTableList = Class;
  49. TTableReference = Class;
  50. TTableRow = Class;
  51. TTableSchema = Class;
  52. TTimePartitioning = Class;
  53. TUserDefinedFunctionResource = Class;
  54. TViewDefinition = Class;
  55. TBigtableColumnArray = Array of TBigtableColumn;
  56. TBigtableColumnFamilyArray = Array of TBigtableColumnFamily;
  57. TBigtableOptionsArray = Array of TBigtableOptions;
  58. TCsvOptionsArray = Array of TCsvOptions;
  59. TDatasetArray = Array of TDataset;
  60. TDatasetListArray = Array of TDatasetList;
  61. TDatasetReferenceArray = Array of TDatasetReference;
  62. TErrorProtoArray = Array of TErrorProto;
  63. TExplainQueryStageArray = Array of TExplainQueryStage;
  64. TExplainQueryStepArray = Array of TExplainQueryStep;
  65. TExternalDataConfigurationArray = Array of TExternalDataConfiguration;
  66. TGetQueryResultsResponseArray = Array of TGetQueryResultsResponse;
  67. TGoogleSheetsOptionsArray = Array of TGoogleSheetsOptions;
  68. TJobArray = Array of TJob;
  69. TJobCancelResponseArray = Array of TJobCancelResponse;
  70. TJobConfigurationArray = Array of TJobConfiguration;
  71. TJobConfigurationExtractArray = Array of TJobConfigurationExtract;
  72. TJobConfigurationLoadArray = Array of TJobConfigurationLoad;
  73. TJobConfigurationQueryArray = Array of TJobConfigurationQuery;
  74. TJobConfigurationTableCopyArray = Array of TJobConfigurationTableCopy;
  75. TJobListArray = Array of TJobList;
  76. TJobReferenceArray = Array of TJobReference;
  77. TJobStatisticsArray = Array of TJobStatistics;
  78. TJobStatistics2Array = Array of TJobStatistics2;
  79. TJobStatistics3Array = Array of TJobStatistics3;
  80. TJobStatistics4Array = Array of TJobStatistics4;
  81. TJobStatusArray = Array of TJobStatus;
  82. TJsonObjectArray = Array of TJsonObject;
  83. TProjectListArray = Array of TProjectList;
  84. TProjectReferenceArray = Array of TProjectReference;
  85. TQueryRequestArray = Array of TQueryRequest;
  86. TQueryResponseArray = Array of TQueryResponse;
  87. TStreamingbufferArray = Array of TStreamingbuffer;
  88. TTableArray = Array of TTable;
  89. TTableCellArray = Array of TTableCell;
  90. TTableDataInsertAllRequestArray = Array of TTableDataInsertAllRequest;
  91. TTableDataInsertAllResponseArray = Array of TTableDataInsertAllResponse;
  92. TTableDataListArray = Array of TTableDataList;
  93. TTableFieldSchemaArray = Array of TTableFieldSchema;
  94. TTableListArray = Array of TTableList;
  95. TTableReferenceArray = Array of TTableReference;
  96. TTableRowArray = Array of TTableRow;
  97. TTableSchemaArray = Array of TTableSchema;
  98. TTimePartitioningArray = Array of TTimePartitioning;
  99. TUserDefinedFunctionResourceArray = Array of TUserDefinedFunctionResource;
  100. TViewDefinitionArray = Array of TViewDefinition;
  101. //Anonymous types, using auto-generated names
  102. TDatasetTypeaccessItem = Class;
  103. TDatasetListTypedatasetsItem = Class;
  104. TJobConfigurationQueryTypetableDefinitions = Class;
  105. TJobListTypejobsItem = Class;
  106. TProjectListTypeprojectsItem = Class;
  107. TTableDataInsertAllRequestTyperowsItem = Class;
  108. TTableDataInsertAllResponseTypeinsertErrorsItem = Class;
  109. TTableListTypetablesItem = Class;
  110. TBigtableColumnFamilyTypecolumnsArray = Array of TBigtableColumn;
  111. TBigtableOptionsTypecolumnFamiliesArray = Array of TBigtableColumnFamily;
  112. TDatasetTypeaccessArray = Array of TDatasetTypeaccessItem;
  113. TDatasetListTypedatasetsArray = Array of TDatasetListTypedatasetsItem;
  114. TExplainQueryStageTypestepsArray = Array of TExplainQueryStep;
  115. TGetQueryResultsResponseTypeerrorsArray = Array of TErrorProto;
  116. TGetQueryResultsResponseTyperowsArray = Array of TTableRow;
  117. TJobConfigurationQueryTypeuserDefinedFunctionResourcesArray = Array of TUserDefinedFunctionResource;
  118. TJobConfigurationTableCopyTypesourceTablesArray = Array of TTableReference;
  119. TJobListTypejobsArray = Array of TJobListTypejobsItem;
  120. TJobStatistics2TypequeryPlanArray = Array of TExplainQueryStage;
  121. TJobStatistics2TypereferencedTablesArray = Array of TTableReference;
  122. TJobStatusTypeerrorsArray = Array of TErrorProto;
  123. TProjectListTypeprojectsArray = Array of TProjectListTypeprojectsItem;
  124. TQueryResponseTypeerrorsArray = Array of TErrorProto;
  125. TQueryResponseTyperowsArray = Array of TTableRow;
  126. TTableDataInsertAllRequestTyperowsArray = Array of TTableDataInsertAllRequestTyperowsItem;
  127. TTableDataInsertAllResponseTypeinsertErrorsItemTypeerrorsArray = Array of TErrorProto;
  128. TTableDataInsertAllResponseTypeinsertErrorsArray = Array of TTableDataInsertAllResponseTypeinsertErrorsItem;
  129. TTableDataListTyperowsArray = Array of TTableRow;
  130. TTableFieldSchemaTypefieldsArray = Array of TTableFieldSchema;
  131. TTableListTypetablesArray = Array of TTableListTypetablesItem;
  132. TTableRowTypefArray = Array of TTableCell;
  133. TTableSchemaTypefieldsArray = Array of TTableFieldSchema;
  134. TViewDefinitionTypeuserDefinedFunctionResourcesArray = Array of TUserDefinedFunctionResource;
  135. { --------------------------------------------------------------------
  136. TBigtableColumn
  137. --------------------------------------------------------------------}
  138. TBigtableColumn = Class(TGoogleBaseObject)
  139. Private
  140. Fencoding : String;
  141. FfieldName : String;
  142. FonlyReadLatest : boolean;
  143. FqualifierEncoded : String;
  144. FqualifierString : String;
  145. F_type : String;
  146. Protected
  147. Class Function ExportPropertyName(Const AName : String) : string; override;
  148. //Property setters
  149. Procedure Setencoding(AIndex : Integer; const AValue : String); virtual;
  150. Procedure SetfieldName(AIndex : Integer; const AValue : String); virtual;
  151. Procedure SetonlyReadLatest(AIndex : Integer; const AValue : boolean); virtual;
  152. Procedure SetqualifierEncoded(AIndex : Integer; const AValue : String); virtual;
  153. Procedure SetqualifierString(AIndex : Integer; const AValue : String); virtual;
  154. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  155. Public
  156. Published
  157. Property encoding : String Index 0 Read Fencoding Write Setencoding;
  158. Property fieldName : String Index 8 Read FfieldName Write SetfieldName;
  159. Property onlyReadLatest : boolean Index 16 Read FonlyReadLatest Write SetonlyReadLatest;
  160. Property qualifierEncoded : String Index 24 Read FqualifierEncoded Write SetqualifierEncoded;
  161. Property qualifierString : String Index 32 Read FqualifierString Write SetqualifierString;
  162. Property _type : String Index 40 Read F_type Write Set_type;
  163. end;
  164. TBigtableColumnClass = Class of TBigtableColumn;
  165. { --------------------------------------------------------------------
  166. TBigtableColumnFamily
  167. --------------------------------------------------------------------}
  168. TBigtableColumnFamily = Class(TGoogleBaseObject)
  169. Private
  170. Fcolumns : TBigtableColumnFamilyTypecolumnsArray;
  171. Fencoding : String;
  172. FfamilyId : String;
  173. FonlyReadLatest : boolean;
  174. F_type : String;
  175. Protected
  176. Class Function ExportPropertyName(Const AName : String) : string; override;
  177. //Property setters
  178. Procedure Setcolumns(AIndex : Integer; const AValue : TBigtableColumnFamilyTypecolumnsArray); virtual;
  179. Procedure Setencoding(AIndex : Integer; const AValue : String); virtual;
  180. Procedure SetfamilyId(AIndex : Integer; const AValue : String); virtual;
  181. Procedure SetonlyReadLatest(AIndex : Integer; const AValue : boolean); virtual;
  182. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  183. //2.6.4. bug workaround
  184. {$IFDEF VER2_6}
  185. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  186. {$ENDIF VER2_6}
  187. Public
  188. Published
  189. Property columns : TBigtableColumnFamilyTypecolumnsArray Index 0 Read Fcolumns Write Setcolumns;
  190. Property encoding : String Index 8 Read Fencoding Write Setencoding;
  191. Property familyId : String Index 16 Read FfamilyId Write SetfamilyId;
  192. Property onlyReadLatest : boolean Index 24 Read FonlyReadLatest Write SetonlyReadLatest;
  193. Property _type : String Index 32 Read F_type Write Set_type;
  194. end;
  195. TBigtableColumnFamilyClass = Class of TBigtableColumnFamily;
  196. { --------------------------------------------------------------------
  197. TBigtableOptions
  198. --------------------------------------------------------------------}
  199. TBigtableOptions = Class(TGoogleBaseObject)
  200. Private
  201. FcolumnFamilies : TBigtableOptionsTypecolumnFamiliesArray;
  202. FignoreUnspecifiedColumnFamilies : boolean;
  203. Protected
  204. //Property setters
  205. Procedure SetcolumnFamilies(AIndex : Integer; const AValue : TBigtableOptionsTypecolumnFamiliesArray); virtual;
  206. Procedure SetignoreUnspecifiedColumnFamilies(AIndex : Integer; const AValue : boolean); virtual;
  207. //2.6.4. bug workaround
  208. {$IFDEF VER2_6}
  209. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  210. {$ENDIF VER2_6}
  211. Public
  212. Published
  213. Property columnFamilies : TBigtableOptionsTypecolumnFamiliesArray Index 0 Read FcolumnFamilies Write SetcolumnFamilies;
  214. Property ignoreUnspecifiedColumnFamilies : boolean Index 8 Read FignoreUnspecifiedColumnFamilies Write SetignoreUnspecifiedColumnFamilies;
  215. end;
  216. TBigtableOptionsClass = Class of TBigtableOptions;
  217. { --------------------------------------------------------------------
  218. TCsvOptions
  219. --------------------------------------------------------------------}
  220. TCsvOptions = Class(TGoogleBaseObject)
  221. Private
  222. FallowJaggedRows : boolean;
  223. FallowQuotedNewlines : boolean;
  224. Fencoding : String;
  225. FfieldDelimiter : String;
  226. Fquote : String;
  227. FskipLeadingRows : String;
  228. Protected
  229. //Property setters
  230. Procedure SetallowJaggedRows(AIndex : Integer; const AValue : boolean); virtual;
  231. Procedure SetallowQuotedNewlines(AIndex : Integer; const AValue : boolean); virtual;
  232. Procedure Setencoding(AIndex : Integer; const AValue : String); virtual;
  233. Procedure SetfieldDelimiter(AIndex : Integer; const AValue : String); virtual;
  234. Procedure Setquote(AIndex : Integer; const AValue : String); virtual;
  235. Procedure SetskipLeadingRows(AIndex : Integer; const AValue : String); virtual;
  236. Public
  237. Published
  238. Property allowJaggedRows : boolean Index 0 Read FallowJaggedRows Write SetallowJaggedRows;
  239. Property allowQuotedNewlines : boolean Index 8 Read FallowQuotedNewlines Write SetallowQuotedNewlines;
  240. Property encoding : String Index 16 Read Fencoding Write Setencoding;
  241. Property fieldDelimiter : String Index 24 Read FfieldDelimiter Write SetfieldDelimiter;
  242. Property quote : String Index 32 Read Fquote Write Setquote;
  243. Property skipLeadingRows : String Index 40 Read FskipLeadingRows Write SetskipLeadingRows;
  244. end;
  245. TCsvOptionsClass = Class of TCsvOptions;
  246. { --------------------------------------------------------------------
  247. TDatasetTypeaccessItem
  248. --------------------------------------------------------------------}
  249. TDatasetTypeaccessItem = Class(TGoogleBaseObject)
  250. Private
  251. Fdomain : String;
  252. FgroupByEmail : String;
  253. Frole : String;
  254. FspecialGroup : String;
  255. FuserByEmail : String;
  256. Fview : TTableReference;
  257. Protected
  258. //Property setters
  259. Procedure Setdomain(AIndex : Integer; const AValue : String); virtual;
  260. Procedure SetgroupByEmail(AIndex : Integer; const AValue : String); virtual;
  261. Procedure Setrole(AIndex : Integer; const AValue : String); virtual;
  262. Procedure SetspecialGroup(AIndex : Integer; const AValue : String); virtual;
  263. Procedure SetuserByEmail(AIndex : Integer; const AValue : String); virtual;
  264. Procedure Setview(AIndex : Integer; const AValue : TTableReference); virtual;
  265. Public
  266. Published
  267. Property domain : String Index 0 Read Fdomain Write Setdomain;
  268. Property groupByEmail : String Index 8 Read FgroupByEmail Write SetgroupByEmail;
  269. Property role : String Index 16 Read Frole Write Setrole;
  270. Property specialGroup : String Index 24 Read FspecialGroup Write SetspecialGroup;
  271. Property userByEmail : String Index 32 Read FuserByEmail Write SetuserByEmail;
  272. Property view : TTableReference Index 40 Read Fview Write Setview;
  273. end;
  274. TDatasetTypeaccessItemClass = Class of TDatasetTypeaccessItem;
  275. { --------------------------------------------------------------------
  276. TDataset
  277. --------------------------------------------------------------------}
  278. TDataset = Class(TGoogleBaseObject)
  279. Private
  280. Faccess : TDatasetTypeaccessArray;
  281. FcreationTime : String;
  282. FdatasetReference : TDatasetReference;
  283. FdefaultTableExpirationMs : String;
  284. Fdescription : String;
  285. Fetag : String;
  286. FfriendlyName : String;
  287. Fid : String;
  288. Fkind : String;
  289. FlastModifiedTime : String;
  290. Flocation : String;
  291. FselfLink : String;
  292. Protected
  293. //Property setters
  294. Procedure Setaccess(AIndex : Integer; const AValue : TDatasetTypeaccessArray); virtual;
  295. Procedure SetcreationTime(AIndex : Integer; const AValue : String); virtual;
  296. Procedure SetdatasetReference(AIndex : Integer; const AValue : TDatasetReference); virtual;
  297. Procedure SetdefaultTableExpirationMs(AIndex : Integer; const AValue : String); virtual;
  298. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  299. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  300. Procedure SetfriendlyName(AIndex : Integer; const AValue : String); virtual;
  301. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  302. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  303. Procedure SetlastModifiedTime(AIndex : Integer; const AValue : String); virtual;
  304. Procedure Setlocation(AIndex : Integer; const AValue : String); virtual;
  305. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  306. //2.6.4. bug workaround
  307. {$IFDEF VER2_6}
  308. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  309. {$ENDIF VER2_6}
  310. Public
  311. Published
  312. Property access : TDatasetTypeaccessArray Index 0 Read Faccess Write Setaccess;
  313. Property creationTime : String Index 8 Read FcreationTime Write SetcreationTime;
  314. Property datasetReference : TDatasetReference Index 16 Read FdatasetReference Write SetdatasetReference;
  315. Property defaultTableExpirationMs : String Index 24 Read FdefaultTableExpirationMs Write SetdefaultTableExpirationMs;
  316. Property description : String Index 32 Read Fdescription Write Setdescription;
  317. Property etag : String Index 40 Read Fetag Write Setetag;
  318. Property friendlyName : String Index 48 Read FfriendlyName Write SetfriendlyName;
  319. Property id : String Index 56 Read Fid Write Setid;
  320. Property kind : String Index 64 Read Fkind Write Setkind;
  321. Property lastModifiedTime : String Index 72 Read FlastModifiedTime Write SetlastModifiedTime;
  322. Property location : String Index 80 Read Flocation Write Setlocation;
  323. Property selfLink : String Index 88 Read FselfLink Write SetselfLink;
  324. end;
  325. TDatasetClass = Class of TDataset;
  326. { --------------------------------------------------------------------
  327. TDatasetListTypedatasetsItem
  328. --------------------------------------------------------------------}
  329. TDatasetListTypedatasetsItem = Class(TGoogleBaseObject)
  330. Private
  331. FdatasetReference : TDatasetReference;
  332. FfriendlyName : String;
  333. Fid : String;
  334. Fkind : String;
  335. Protected
  336. //Property setters
  337. Procedure SetdatasetReference(AIndex : Integer; const AValue : TDatasetReference); virtual;
  338. Procedure SetfriendlyName(AIndex : Integer; const AValue : String); virtual;
  339. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  340. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  341. Public
  342. Published
  343. Property datasetReference : TDatasetReference Index 0 Read FdatasetReference Write SetdatasetReference;
  344. Property friendlyName : String Index 8 Read FfriendlyName Write SetfriendlyName;
  345. Property id : String Index 16 Read Fid Write Setid;
  346. Property kind : String Index 24 Read Fkind Write Setkind;
  347. end;
  348. TDatasetListTypedatasetsItemClass = Class of TDatasetListTypedatasetsItem;
  349. { --------------------------------------------------------------------
  350. TDatasetList
  351. --------------------------------------------------------------------}
  352. TDatasetList = Class(TGoogleBaseObject)
  353. Private
  354. Fdatasets : TDatasetListTypedatasetsArray;
  355. Fetag : String;
  356. Fkind : String;
  357. FnextPageToken : String;
  358. Protected
  359. //Property setters
  360. Procedure Setdatasets(AIndex : Integer; const AValue : TDatasetListTypedatasetsArray); virtual;
  361. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  362. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  363. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  364. //2.6.4. bug workaround
  365. {$IFDEF VER2_6}
  366. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  367. {$ENDIF VER2_6}
  368. Public
  369. Published
  370. Property datasets : TDatasetListTypedatasetsArray Index 0 Read Fdatasets Write Setdatasets;
  371. Property etag : String Index 8 Read Fetag Write Setetag;
  372. Property kind : String Index 16 Read Fkind Write Setkind;
  373. Property nextPageToken : String Index 24 Read FnextPageToken Write SetnextPageToken;
  374. end;
  375. TDatasetListClass = Class of TDatasetList;
  376. { --------------------------------------------------------------------
  377. TDatasetReference
  378. --------------------------------------------------------------------}
  379. TDatasetReference = Class(TGoogleBaseObject)
  380. Private
  381. FdatasetId : String;
  382. FprojectId : String;
  383. Protected
  384. //Property setters
  385. Procedure SetdatasetId(AIndex : Integer; const AValue : String); virtual;
  386. Procedure SetprojectId(AIndex : Integer; const AValue : String); virtual;
  387. Public
  388. Published
  389. Property datasetId : String Index 0 Read FdatasetId Write SetdatasetId;
  390. Property projectId : String Index 8 Read FprojectId Write SetprojectId;
  391. end;
  392. TDatasetReferenceClass = Class of TDatasetReference;
  393. { --------------------------------------------------------------------
  394. TErrorProto
  395. --------------------------------------------------------------------}
  396. TErrorProto = Class(TGoogleBaseObject)
  397. Private
  398. FdebugInfo : String;
  399. Flocation : String;
  400. Fmessage : String;
  401. Freason : String;
  402. Protected
  403. //Property setters
  404. Procedure SetdebugInfo(AIndex : Integer; const AValue : String); virtual;
  405. Procedure Setlocation(AIndex : Integer; const AValue : String); virtual;
  406. Procedure Setmessage(AIndex : Integer; const AValue : String); virtual;
  407. Procedure Setreason(AIndex : Integer; const AValue : String); virtual;
  408. Public
  409. Published
  410. Property debugInfo : String Index 0 Read FdebugInfo Write SetdebugInfo;
  411. Property location : String Index 8 Read Flocation Write Setlocation;
  412. Property message : String Index 16 Read Fmessage Write Setmessage;
  413. Property reason : String Index 24 Read Freason Write Setreason;
  414. end;
  415. TErrorProtoClass = Class of TErrorProto;
  416. { --------------------------------------------------------------------
  417. TExplainQueryStage
  418. --------------------------------------------------------------------}
  419. TExplainQueryStage = Class(TGoogleBaseObject)
  420. Private
  421. FcomputeRatioAvg : double;
  422. FcomputeRatioMax : double;
  423. Fid : String;
  424. Fname : String;
  425. FreadRatioAvg : double;
  426. FreadRatioMax : double;
  427. FrecordsRead : String;
  428. FrecordsWritten : String;
  429. Fsteps : TExplainQueryStageTypestepsArray;
  430. FwaitRatioAvg : double;
  431. FwaitRatioMax : double;
  432. FwriteRatioAvg : double;
  433. FwriteRatioMax : double;
  434. Protected
  435. //Property setters
  436. Procedure SetcomputeRatioAvg(AIndex : Integer; const AValue : double); virtual;
  437. Procedure SetcomputeRatioMax(AIndex : Integer; const AValue : double); virtual;
  438. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  439. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  440. Procedure SetreadRatioAvg(AIndex : Integer; const AValue : double); virtual;
  441. Procedure SetreadRatioMax(AIndex : Integer; const AValue : double); virtual;
  442. Procedure SetrecordsRead(AIndex : Integer; const AValue : String); virtual;
  443. Procedure SetrecordsWritten(AIndex : Integer; const AValue : String); virtual;
  444. Procedure Setsteps(AIndex : Integer; const AValue : TExplainQueryStageTypestepsArray); virtual;
  445. Procedure SetwaitRatioAvg(AIndex : Integer; const AValue : double); virtual;
  446. Procedure SetwaitRatioMax(AIndex : Integer; const AValue : double); virtual;
  447. Procedure SetwriteRatioAvg(AIndex : Integer; const AValue : double); virtual;
  448. Procedure SetwriteRatioMax(AIndex : Integer; const AValue : double); virtual;
  449. //2.6.4. bug workaround
  450. {$IFDEF VER2_6}
  451. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  452. {$ENDIF VER2_6}
  453. Public
  454. Published
  455. Property computeRatioAvg : double Index 0 Read FcomputeRatioAvg Write SetcomputeRatioAvg;
  456. Property computeRatioMax : double Index 8 Read FcomputeRatioMax Write SetcomputeRatioMax;
  457. Property id : String Index 16 Read Fid Write Setid;
  458. Property name : String Index 24 Read Fname Write Setname;
  459. Property readRatioAvg : double Index 32 Read FreadRatioAvg Write SetreadRatioAvg;
  460. Property readRatioMax : double Index 40 Read FreadRatioMax Write SetreadRatioMax;
  461. Property recordsRead : String Index 48 Read FrecordsRead Write SetrecordsRead;
  462. Property recordsWritten : String Index 56 Read FrecordsWritten Write SetrecordsWritten;
  463. Property steps : TExplainQueryStageTypestepsArray Index 64 Read Fsteps Write Setsteps;
  464. Property waitRatioAvg : double Index 72 Read FwaitRatioAvg Write SetwaitRatioAvg;
  465. Property waitRatioMax : double Index 80 Read FwaitRatioMax Write SetwaitRatioMax;
  466. Property writeRatioAvg : double Index 88 Read FwriteRatioAvg Write SetwriteRatioAvg;
  467. Property writeRatioMax : double Index 96 Read FwriteRatioMax Write SetwriteRatioMax;
  468. end;
  469. TExplainQueryStageClass = Class of TExplainQueryStage;
  470. { --------------------------------------------------------------------
  471. TExplainQueryStep
  472. --------------------------------------------------------------------}
  473. TExplainQueryStep = Class(TGoogleBaseObject)
  474. Private
  475. Fkind : String;
  476. Fsubsteps : TStringArray;
  477. Protected
  478. //Property setters
  479. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  480. Procedure Setsubsteps(AIndex : Integer; const AValue : TStringArray); virtual;
  481. //2.6.4. bug workaround
  482. {$IFDEF VER2_6}
  483. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  484. {$ENDIF VER2_6}
  485. Public
  486. Published
  487. Property kind : String Index 0 Read Fkind Write Setkind;
  488. Property substeps : TStringArray Index 8 Read Fsubsteps Write Setsubsteps;
  489. end;
  490. TExplainQueryStepClass = Class of TExplainQueryStep;
  491. { --------------------------------------------------------------------
  492. TExternalDataConfiguration
  493. --------------------------------------------------------------------}
  494. TExternalDataConfiguration = Class(TGoogleBaseObject)
  495. Private
  496. Fautodetect : boolean;
  497. FbigtableOptions : TBigtableOptions;
  498. Fcompression : String;
  499. FcsvOptions : TCsvOptions;
  500. FgoogleSheetsOptions : TGoogleSheetsOptions;
  501. FignoreUnknownValues : boolean;
  502. FmaxBadRecords : integer;
  503. Fschema : TTableSchema;
  504. FsourceFormat : String;
  505. FsourceUris : TStringArray;
  506. Protected
  507. //Property setters
  508. Procedure Setautodetect(AIndex : Integer; const AValue : boolean); virtual;
  509. Procedure SetbigtableOptions(AIndex : Integer; const AValue : TBigtableOptions); virtual;
  510. Procedure Setcompression(AIndex : Integer; const AValue : String); virtual;
  511. Procedure SetcsvOptions(AIndex : Integer; const AValue : TCsvOptions); virtual;
  512. Procedure SetgoogleSheetsOptions(AIndex : Integer; const AValue : TGoogleSheetsOptions); virtual;
  513. Procedure SetignoreUnknownValues(AIndex : Integer; const AValue : boolean); virtual;
  514. Procedure SetmaxBadRecords(AIndex : Integer; const AValue : integer); virtual;
  515. Procedure Setschema(AIndex : Integer; const AValue : TTableSchema); virtual;
  516. Procedure SetsourceFormat(AIndex : Integer; const AValue : String); virtual;
  517. Procedure SetsourceUris(AIndex : Integer; const AValue : TStringArray); virtual;
  518. //2.6.4. bug workaround
  519. {$IFDEF VER2_6}
  520. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  521. {$ENDIF VER2_6}
  522. Public
  523. Published
  524. Property autodetect : boolean Index 0 Read Fautodetect Write Setautodetect;
  525. Property bigtableOptions : TBigtableOptions Index 8 Read FbigtableOptions Write SetbigtableOptions;
  526. Property compression : String Index 16 Read Fcompression Write Setcompression;
  527. Property csvOptions : TCsvOptions Index 24 Read FcsvOptions Write SetcsvOptions;
  528. Property googleSheetsOptions : TGoogleSheetsOptions Index 32 Read FgoogleSheetsOptions Write SetgoogleSheetsOptions;
  529. Property ignoreUnknownValues : boolean Index 40 Read FignoreUnknownValues Write SetignoreUnknownValues;
  530. Property maxBadRecords : integer Index 48 Read FmaxBadRecords Write SetmaxBadRecords;
  531. Property schema : TTableSchema Index 56 Read Fschema Write Setschema;
  532. Property sourceFormat : String Index 64 Read FsourceFormat Write SetsourceFormat;
  533. Property sourceUris : TStringArray Index 72 Read FsourceUris Write SetsourceUris;
  534. end;
  535. TExternalDataConfigurationClass = Class of TExternalDataConfiguration;
  536. { --------------------------------------------------------------------
  537. TGetQueryResultsResponse
  538. --------------------------------------------------------------------}
  539. TGetQueryResultsResponse = Class(TGoogleBaseObject)
  540. Private
  541. FcacheHit : boolean;
  542. Ferrors : TGetQueryResultsResponseTypeerrorsArray;
  543. Fetag : String;
  544. FjobComplete : boolean;
  545. FjobReference : TJobReference;
  546. Fkind : String;
  547. FpageToken : String;
  548. Frows : TGetQueryResultsResponseTyperowsArray;
  549. Fschema : TTableSchema;
  550. FtotalBytesProcessed : String;
  551. FtotalRows : String;
  552. Protected
  553. //Property setters
  554. Procedure SetcacheHit(AIndex : Integer; const AValue : boolean); virtual;
  555. Procedure Seterrors(AIndex : Integer; const AValue : TGetQueryResultsResponseTypeerrorsArray); virtual;
  556. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  557. Procedure SetjobComplete(AIndex : Integer; const AValue : boolean); virtual;
  558. Procedure SetjobReference(AIndex : Integer; const AValue : TJobReference); virtual;
  559. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  560. Procedure SetpageToken(AIndex : Integer; const AValue : String); virtual;
  561. Procedure Setrows(AIndex : Integer; const AValue : TGetQueryResultsResponseTyperowsArray); virtual;
  562. Procedure Setschema(AIndex : Integer; const AValue : TTableSchema); virtual;
  563. Procedure SettotalBytesProcessed(AIndex : Integer; const AValue : String); virtual;
  564. Procedure SettotalRows(AIndex : Integer; const AValue : String); virtual;
  565. //2.6.4. bug workaround
  566. {$IFDEF VER2_6}
  567. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  568. {$ENDIF VER2_6}
  569. Public
  570. Published
  571. Property cacheHit : boolean Index 0 Read FcacheHit Write SetcacheHit;
  572. Property errors : TGetQueryResultsResponseTypeerrorsArray Index 8 Read Ferrors Write Seterrors;
  573. Property etag : String Index 16 Read Fetag Write Setetag;
  574. Property jobComplete : boolean Index 24 Read FjobComplete Write SetjobComplete;
  575. Property jobReference : TJobReference Index 32 Read FjobReference Write SetjobReference;
  576. Property kind : String Index 40 Read Fkind Write Setkind;
  577. Property pageToken : String Index 48 Read FpageToken Write SetpageToken;
  578. Property rows : TGetQueryResultsResponseTyperowsArray Index 56 Read Frows Write Setrows;
  579. Property schema : TTableSchema Index 64 Read Fschema Write Setschema;
  580. Property totalBytesProcessed : String Index 72 Read FtotalBytesProcessed Write SettotalBytesProcessed;
  581. Property totalRows : String Index 80 Read FtotalRows Write SettotalRows;
  582. end;
  583. TGetQueryResultsResponseClass = Class of TGetQueryResultsResponse;
  584. { --------------------------------------------------------------------
  585. TGoogleSheetsOptions
  586. --------------------------------------------------------------------}
  587. TGoogleSheetsOptions = Class(TGoogleBaseObject)
  588. Private
  589. FskipLeadingRows : String;
  590. Protected
  591. //Property setters
  592. Procedure SetskipLeadingRows(AIndex : Integer; const AValue : String); virtual;
  593. Public
  594. Published
  595. Property skipLeadingRows : String Index 0 Read FskipLeadingRows Write SetskipLeadingRows;
  596. end;
  597. TGoogleSheetsOptionsClass = Class of TGoogleSheetsOptions;
  598. { --------------------------------------------------------------------
  599. TJob
  600. --------------------------------------------------------------------}
  601. TJob = Class(TGoogleBaseObject)
  602. Private
  603. Fconfiguration : TJobConfiguration;
  604. Fetag : String;
  605. Fid : String;
  606. FjobReference : TJobReference;
  607. Fkind : String;
  608. FselfLink : String;
  609. Fstatistics : TJobStatistics;
  610. Fstatus : TJobStatus;
  611. Fuser_email : String;
  612. Protected
  613. //Property setters
  614. Procedure Setconfiguration(AIndex : Integer; const AValue : TJobConfiguration); virtual;
  615. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  616. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  617. Procedure SetjobReference(AIndex : Integer; const AValue : TJobReference); virtual;
  618. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  619. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  620. Procedure Setstatistics(AIndex : Integer; const AValue : TJobStatistics); virtual;
  621. Procedure Setstatus(AIndex : Integer; const AValue : TJobStatus); virtual;
  622. Procedure Setuser_email(AIndex : Integer; const AValue : String); virtual;
  623. Public
  624. Published
  625. Property configuration : TJobConfiguration Index 0 Read Fconfiguration Write Setconfiguration;
  626. Property etag : String Index 8 Read Fetag Write Setetag;
  627. Property id : String Index 16 Read Fid Write Setid;
  628. Property jobReference : TJobReference Index 24 Read FjobReference Write SetjobReference;
  629. Property kind : String Index 32 Read Fkind Write Setkind;
  630. Property selfLink : String Index 40 Read FselfLink Write SetselfLink;
  631. Property statistics : TJobStatistics Index 48 Read Fstatistics Write Setstatistics;
  632. Property status : TJobStatus Index 56 Read Fstatus Write Setstatus;
  633. Property user_email : String Index 64 Read Fuser_email Write Setuser_email;
  634. end;
  635. TJobClass = Class of TJob;
  636. { --------------------------------------------------------------------
  637. TJobCancelResponse
  638. --------------------------------------------------------------------}
  639. TJobCancelResponse = Class(TGoogleBaseObject)
  640. Private
  641. Fjob : TJob;
  642. Fkind : String;
  643. Protected
  644. //Property setters
  645. Procedure Setjob(AIndex : Integer; const AValue : TJob); virtual;
  646. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  647. Public
  648. Published
  649. Property job : TJob Index 0 Read Fjob Write Setjob;
  650. Property kind : String Index 8 Read Fkind Write Setkind;
  651. end;
  652. TJobCancelResponseClass = Class of TJobCancelResponse;
  653. { --------------------------------------------------------------------
  654. TJobConfiguration
  655. --------------------------------------------------------------------}
  656. TJobConfiguration = Class(TGoogleBaseObject)
  657. Private
  658. Fcopy : TJobConfigurationTableCopy;
  659. FdryRun : boolean;
  660. Fextract : TJobConfigurationExtract;
  661. Fload : TJobConfigurationLoad;
  662. Fquery : TJobConfigurationQuery;
  663. Protected
  664. //Property setters
  665. Procedure Setcopy(AIndex : Integer; const AValue : TJobConfigurationTableCopy); virtual;
  666. Procedure SetdryRun(AIndex : Integer; const AValue : boolean); virtual;
  667. Procedure Setextract(AIndex : Integer; const AValue : TJobConfigurationExtract); virtual;
  668. Procedure Setload(AIndex : Integer; const AValue : TJobConfigurationLoad); virtual;
  669. Procedure Setquery(AIndex : Integer; const AValue : TJobConfigurationQuery); virtual;
  670. Public
  671. Published
  672. Property copy : TJobConfigurationTableCopy Index 0 Read Fcopy Write Setcopy;
  673. Property dryRun : boolean Index 8 Read FdryRun Write SetdryRun;
  674. Property extract : TJobConfigurationExtract Index 16 Read Fextract Write Setextract;
  675. Property load : TJobConfigurationLoad Index 24 Read Fload Write Setload;
  676. Property query : TJobConfigurationQuery Index 32 Read Fquery Write Setquery;
  677. end;
  678. TJobConfigurationClass = Class of TJobConfiguration;
  679. { --------------------------------------------------------------------
  680. TJobConfigurationExtract
  681. --------------------------------------------------------------------}
  682. TJobConfigurationExtract = Class(TGoogleBaseObject)
  683. Private
  684. Fcompression : String;
  685. FdestinationFormat : String;
  686. FdestinationUri : String;
  687. FdestinationUris : TStringArray;
  688. FfieldDelimiter : String;
  689. FprintHeader : boolean;
  690. FsourceTable : TTableReference;
  691. Protected
  692. //Property setters
  693. Procedure Setcompression(AIndex : Integer; const AValue : String); virtual;
  694. Procedure SetdestinationFormat(AIndex : Integer; const AValue : String); virtual;
  695. Procedure SetdestinationUri(AIndex : Integer; const AValue : String); virtual;
  696. Procedure SetdestinationUris(AIndex : Integer; const AValue : TStringArray); virtual;
  697. Procedure SetfieldDelimiter(AIndex : Integer; const AValue : String); virtual;
  698. Procedure SetprintHeader(AIndex : Integer; const AValue : boolean); virtual;
  699. Procedure SetsourceTable(AIndex : Integer; const AValue : TTableReference); virtual;
  700. //2.6.4. bug workaround
  701. {$IFDEF VER2_6}
  702. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  703. {$ENDIF VER2_6}
  704. Public
  705. Published
  706. Property compression : String Index 0 Read Fcompression Write Setcompression;
  707. Property destinationFormat : String Index 8 Read FdestinationFormat Write SetdestinationFormat;
  708. Property destinationUri : String Index 16 Read FdestinationUri Write SetdestinationUri;
  709. Property destinationUris : TStringArray Index 24 Read FdestinationUris Write SetdestinationUris;
  710. Property fieldDelimiter : String Index 32 Read FfieldDelimiter Write SetfieldDelimiter;
  711. Property printHeader : boolean Index 40 Read FprintHeader Write SetprintHeader;
  712. Property sourceTable : TTableReference Index 48 Read FsourceTable Write SetsourceTable;
  713. end;
  714. TJobConfigurationExtractClass = Class of TJobConfigurationExtract;
  715. { --------------------------------------------------------------------
  716. TJobConfigurationLoad
  717. --------------------------------------------------------------------}
  718. TJobConfigurationLoad = Class(TGoogleBaseObject)
  719. Private
  720. FallowJaggedRows : boolean;
  721. FallowQuotedNewlines : boolean;
  722. Fautodetect : boolean;
  723. FcreateDisposition : String;
  724. FdestinationTable : TTableReference;
  725. Fencoding : String;
  726. FfieldDelimiter : String;
  727. FignoreUnknownValues : boolean;
  728. FmaxBadRecords : integer;
  729. FprojectionFields : TStringArray;
  730. Fquote : String;
  731. Fschema : TTableSchema;
  732. FschemaInline : String;
  733. FschemaInlineFormat : String;
  734. FskipLeadingRows : integer;
  735. FsourceFormat : String;
  736. FsourceUris : TStringArray;
  737. FwriteDisposition : String;
  738. Protected
  739. //Property setters
  740. Procedure SetallowJaggedRows(AIndex : Integer; const AValue : boolean); virtual;
  741. Procedure SetallowQuotedNewlines(AIndex : Integer; const AValue : boolean); virtual;
  742. Procedure Setautodetect(AIndex : Integer; const AValue : boolean); virtual;
  743. Procedure SetcreateDisposition(AIndex : Integer; const AValue : String); virtual;
  744. Procedure SetdestinationTable(AIndex : Integer; const AValue : TTableReference); virtual;
  745. Procedure Setencoding(AIndex : Integer; const AValue : String); virtual;
  746. Procedure SetfieldDelimiter(AIndex : Integer; const AValue : String); virtual;
  747. Procedure SetignoreUnknownValues(AIndex : Integer; const AValue : boolean); virtual;
  748. Procedure SetmaxBadRecords(AIndex : Integer; const AValue : integer); virtual;
  749. Procedure SetprojectionFields(AIndex : Integer; const AValue : TStringArray); virtual;
  750. Procedure Setquote(AIndex : Integer; const AValue : String); virtual;
  751. Procedure Setschema(AIndex : Integer; const AValue : TTableSchema); virtual;
  752. Procedure SetschemaInline(AIndex : Integer; const AValue : String); virtual;
  753. Procedure SetschemaInlineFormat(AIndex : Integer; const AValue : String); virtual;
  754. Procedure SetskipLeadingRows(AIndex : Integer; const AValue : integer); virtual;
  755. Procedure SetsourceFormat(AIndex : Integer; const AValue : String); virtual;
  756. Procedure SetsourceUris(AIndex : Integer; const AValue : TStringArray); virtual;
  757. Procedure SetwriteDisposition(AIndex : Integer; const AValue : String); virtual;
  758. //2.6.4. bug workaround
  759. {$IFDEF VER2_6}
  760. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  761. {$ENDIF VER2_6}
  762. Public
  763. Published
  764. Property allowJaggedRows : boolean Index 0 Read FallowJaggedRows Write SetallowJaggedRows;
  765. Property allowQuotedNewlines : boolean Index 8 Read FallowQuotedNewlines Write SetallowQuotedNewlines;
  766. Property autodetect : boolean Index 16 Read Fautodetect Write Setautodetect;
  767. Property createDisposition : String Index 24 Read FcreateDisposition Write SetcreateDisposition;
  768. Property destinationTable : TTableReference Index 32 Read FdestinationTable Write SetdestinationTable;
  769. Property encoding : String Index 40 Read Fencoding Write Setencoding;
  770. Property fieldDelimiter : String Index 48 Read FfieldDelimiter Write SetfieldDelimiter;
  771. Property ignoreUnknownValues : boolean Index 56 Read FignoreUnknownValues Write SetignoreUnknownValues;
  772. Property maxBadRecords : integer Index 64 Read FmaxBadRecords Write SetmaxBadRecords;
  773. Property projectionFields : TStringArray Index 72 Read FprojectionFields Write SetprojectionFields;
  774. Property quote : String Index 80 Read Fquote Write Setquote;
  775. Property schema : TTableSchema Index 88 Read Fschema Write Setschema;
  776. Property schemaInline : String Index 96 Read FschemaInline Write SetschemaInline;
  777. Property schemaInlineFormat : String Index 104 Read FschemaInlineFormat Write SetschemaInlineFormat;
  778. Property skipLeadingRows : integer Index 112 Read FskipLeadingRows Write SetskipLeadingRows;
  779. Property sourceFormat : String Index 120 Read FsourceFormat Write SetsourceFormat;
  780. Property sourceUris : TStringArray Index 128 Read FsourceUris Write SetsourceUris;
  781. Property writeDisposition : String Index 136 Read FwriteDisposition Write SetwriteDisposition;
  782. end;
  783. TJobConfigurationLoadClass = Class of TJobConfigurationLoad;
  784. { --------------------------------------------------------------------
  785. TJobConfigurationQueryTypetableDefinitions
  786. --------------------------------------------------------------------}
  787. TJobConfigurationQueryTypetableDefinitions = Class(TGoogleBaseObject)
  788. Private
  789. Protected
  790. //Property setters
  791. Public
  792. Class Function AllowAdditionalProperties : Boolean; override;
  793. Published
  794. end;
  795. TJobConfigurationQueryTypetableDefinitionsClass = Class of TJobConfigurationQueryTypetableDefinitions;
  796. { --------------------------------------------------------------------
  797. TJobConfigurationQuery
  798. --------------------------------------------------------------------}
  799. TJobConfigurationQuery = Class(TGoogleBaseObject)
  800. Private
  801. FallowLargeResults : boolean;
  802. FcreateDisposition : String;
  803. FdefaultDataset : TDatasetReference;
  804. FdestinationTable : TTableReference;
  805. FflattenResults : boolean;
  806. FmaximumBillingTier : integer;
  807. FpreserveNulls : boolean;
  808. Fpriority : String;
  809. Fquery : String;
  810. FtableDefinitions : TJobConfigurationQueryTypetableDefinitions;
  811. FuseLegacySql : boolean;
  812. FuseQueryCache : boolean;
  813. FuserDefinedFunctionResources : TJobConfigurationQueryTypeuserDefinedFunctionResourcesArray;
  814. FwriteDisposition : String;
  815. Protected
  816. //Property setters
  817. Procedure SetallowLargeResults(AIndex : Integer; const AValue : boolean); virtual;
  818. Procedure SetcreateDisposition(AIndex : Integer; const AValue : String); virtual;
  819. Procedure SetdefaultDataset(AIndex : Integer; const AValue : TDatasetReference); virtual;
  820. Procedure SetdestinationTable(AIndex : Integer; const AValue : TTableReference); virtual;
  821. Procedure SetflattenResults(AIndex : Integer; const AValue : boolean); virtual;
  822. Procedure SetmaximumBillingTier(AIndex : Integer; const AValue : integer); virtual;
  823. Procedure SetpreserveNulls(AIndex : Integer; const AValue : boolean); virtual;
  824. Procedure Setpriority(AIndex : Integer; const AValue : String); virtual;
  825. Procedure Setquery(AIndex : Integer; const AValue : String); virtual;
  826. Procedure SettableDefinitions(AIndex : Integer; const AValue : TJobConfigurationQueryTypetableDefinitions); virtual;
  827. Procedure SetuseLegacySql(AIndex : Integer; const AValue : boolean); virtual;
  828. Procedure SetuseQueryCache(AIndex : Integer; const AValue : boolean); virtual;
  829. Procedure SetuserDefinedFunctionResources(AIndex : Integer; const AValue : TJobConfigurationQueryTypeuserDefinedFunctionResourcesArray); virtual;
  830. Procedure SetwriteDisposition(AIndex : Integer; const AValue : String); virtual;
  831. //2.6.4. bug workaround
  832. {$IFDEF VER2_6}
  833. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  834. {$ENDIF VER2_6}
  835. Public
  836. Published
  837. Property allowLargeResults : boolean Index 0 Read FallowLargeResults Write SetallowLargeResults;
  838. Property createDisposition : String Index 8 Read FcreateDisposition Write SetcreateDisposition;
  839. Property defaultDataset : TDatasetReference Index 16 Read FdefaultDataset Write SetdefaultDataset;
  840. Property destinationTable : TTableReference Index 24 Read FdestinationTable Write SetdestinationTable;
  841. Property flattenResults : boolean Index 32 Read FflattenResults Write SetflattenResults;
  842. Property maximumBillingTier : integer Index 40 Read FmaximumBillingTier Write SetmaximumBillingTier;
  843. Property preserveNulls : boolean Index 48 Read FpreserveNulls Write SetpreserveNulls;
  844. Property priority : String Index 56 Read Fpriority Write Setpriority;
  845. Property query : String Index 64 Read Fquery Write Setquery;
  846. Property tableDefinitions : TJobConfigurationQueryTypetableDefinitions Index 72 Read FtableDefinitions Write SettableDefinitions;
  847. Property useLegacySql : boolean Index 80 Read FuseLegacySql Write SetuseLegacySql;
  848. Property useQueryCache : boolean Index 88 Read FuseQueryCache Write SetuseQueryCache;
  849. Property userDefinedFunctionResources : TJobConfigurationQueryTypeuserDefinedFunctionResourcesArray Index 96 Read FuserDefinedFunctionResources Write SetuserDefinedFunctionResources;
  850. Property writeDisposition : String Index 104 Read FwriteDisposition Write SetwriteDisposition;
  851. end;
  852. TJobConfigurationQueryClass = Class of TJobConfigurationQuery;
  853. { --------------------------------------------------------------------
  854. TJobConfigurationTableCopy
  855. --------------------------------------------------------------------}
  856. TJobConfigurationTableCopy = Class(TGoogleBaseObject)
  857. Private
  858. FcreateDisposition : String;
  859. FdestinationTable : TTableReference;
  860. FsourceTable : TTableReference;
  861. FsourceTables : TJobConfigurationTableCopyTypesourceTablesArray;
  862. FwriteDisposition : String;
  863. Protected
  864. //Property setters
  865. Procedure SetcreateDisposition(AIndex : Integer; const AValue : String); virtual;
  866. Procedure SetdestinationTable(AIndex : Integer; const AValue : TTableReference); virtual;
  867. Procedure SetsourceTable(AIndex : Integer; const AValue : TTableReference); virtual;
  868. Procedure SetsourceTables(AIndex : Integer; const AValue : TJobConfigurationTableCopyTypesourceTablesArray); virtual;
  869. Procedure SetwriteDisposition(AIndex : Integer; const AValue : String); virtual;
  870. //2.6.4. bug workaround
  871. {$IFDEF VER2_6}
  872. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  873. {$ENDIF VER2_6}
  874. Public
  875. Published
  876. Property createDisposition : String Index 0 Read FcreateDisposition Write SetcreateDisposition;
  877. Property destinationTable : TTableReference Index 8 Read FdestinationTable Write SetdestinationTable;
  878. Property sourceTable : TTableReference Index 16 Read FsourceTable Write SetsourceTable;
  879. Property sourceTables : TJobConfigurationTableCopyTypesourceTablesArray Index 24 Read FsourceTables Write SetsourceTables;
  880. Property writeDisposition : String Index 32 Read FwriteDisposition Write SetwriteDisposition;
  881. end;
  882. TJobConfigurationTableCopyClass = Class of TJobConfigurationTableCopy;
  883. { --------------------------------------------------------------------
  884. TJobListTypejobsItem
  885. --------------------------------------------------------------------}
  886. TJobListTypejobsItem = Class(TGoogleBaseObject)
  887. Private
  888. Fconfiguration : TJobConfiguration;
  889. FerrorResult : TErrorProto;
  890. Fid : String;
  891. FjobReference : TJobReference;
  892. Fkind : String;
  893. Fstate : String;
  894. Fstatistics : TJobStatistics;
  895. Fstatus : TJobStatus;
  896. Fuser_email : String;
  897. Protected
  898. //Property setters
  899. Procedure Setconfiguration(AIndex : Integer; const AValue : TJobConfiguration); virtual;
  900. Procedure SeterrorResult(AIndex : Integer; const AValue : TErrorProto); virtual;
  901. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  902. Procedure SetjobReference(AIndex : Integer; const AValue : TJobReference); virtual;
  903. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  904. Procedure Setstate(AIndex : Integer; const AValue : String); virtual;
  905. Procedure Setstatistics(AIndex : Integer; const AValue : TJobStatistics); virtual;
  906. Procedure Setstatus(AIndex : Integer; const AValue : TJobStatus); virtual;
  907. Procedure Setuser_email(AIndex : Integer; const AValue : String); virtual;
  908. Public
  909. Published
  910. Property configuration : TJobConfiguration Index 0 Read Fconfiguration Write Setconfiguration;
  911. Property errorResult : TErrorProto Index 8 Read FerrorResult Write SeterrorResult;
  912. Property id : String Index 16 Read Fid Write Setid;
  913. Property jobReference : TJobReference Index 24 Read FjobReference Write SetjobReference;
  914. Property kind : String Index 32 Read Fkind Write Setkind;
  915. Property state : String Index 40 Read Fstate Write Setstate;
  916. Property statistics : TJobStatistics Index 48 Read Fstatistics Write Setstatistics;
  917. Property status : TJobStatus Index 56 Read Fstatus Write Setstatus;
  918. Property user_email : String Index 64 Read Fuser_email Write Setuser_email;
  919. end;
  920. TJobListTypejobsItemClass = Class of TJobListTypejobsItem;
  921. { --------------------------------------------------------------------
  922. TJobList
  923. --------------------------------------------------------------------}
  924. TJobList = Class(TGoogleBaseObject)
  925. Private
  926. Fetag : String;
  927. Fjobs : TJobListTypejobsArray;
  928. Fkind : String;
  929. FnextPageToken : String;
  930. Protected
  931. //Property setters
  932. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  933. Procedure Setjobs(AIndex : Integer; const AValue : TJobListTypejobsArray); virtual;
  934. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  935. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  936. //2.6.4. bug workaround
  937. {$IFDEF VER2_6}
  938. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  939. {$ENDIF VER2_6}
  940. Public
  941. Published
  942. Property etag : String Index 0 Read Fetag Write Setetag;
  943. Property jobs : TJobListTypejobsArray Index 8 Read Fjobs Write Setjobs;
  944. Property kind : String Index 16 Read Fkind Write Setkind;
  945. Property nextPageToken : String Index 24 Read FnextPageToken Write SetnextPageToken;
  946. end;
  947. TJobListClass = Class of TJobList;
  948. { --------------------------------------------------------------------
  949. TJobReference
  950. --------------------------------------------------------------------}
  951. TJobReference = Class(TGoogleBaseObject)
  952. Private
  953. FjobId : String;
  954. FprojectId : String;
  955. Protected
  956. //Property setters
  957. Procedure SetjobId(AIndex : Integer; const AValue : String); virtual;
  958. Procedure SetprojectId(AIndex : Integer; const AValue : String); virtual;
  959. Public
  960. Published
  961. Property jobId : String Index 0 Read FjobId Write SetjobId;
  962. Property projectId : String Index 8 Read FprojectId Write SetprojectId;
  963. end;
  964. TJobReferenceClass = Class of TJobReference;
  965. { --------------------------------------------------------------------
  966. TJobStatistics
  967. --------------------------------------------------------------------}
  968. TJobStatistics = Class(TGoogleBaseObject)
  969. Private
  970. FcreationTime : String;
  971. FendTime : String;
  972. Fextract : TJobStatistics4;
  973. Fload : TJobStatistics3;
  974. Fquery : TJobStatistics2;
  975. FstartTime : String;
  976. FtotalBytesProcessed : String;
  977. Protected
  978. //Property setters
  979. Procedure SetcreationTime(AIndex : Integer; const AValue : String); virtual;
  980. Procedure SetendTime(AIndex : Integer; const AValue : String); virtual;
  981. Procedure Setextract(AIndex : Integer; const AValue : TJobStatistics4); virtual;
  982. Procedure Setload(AIndex : Integer; const AValue : TJobStatistics3); virtual;
  983. Procedure Setquery(AIndex : Integer; const AValue : TJobStatistics2); virtual;
  984. Procedure SetstartTime(AIndex : Integer; const AValue : String); virtual;
  985. Procedure SettotalBytesProcessed(AIndex : Integer; const AValue : String); virtual;
  986. Public
  987. Published
  988. Property creationTime : String Index 0 Read FcreationTime Write SetcreationTime;
  989. Property endTime : String Index 8 Read FendTime Write SetendTime;
  990. Property extract : TJobStatistics4 Index 16 Read Fextract Write Setextract;
  991. Property load : TJobStatistics3 Index 24 Read Fload Write Setload;
  992. Property query : TJobStatistics2 Index 32 Read Fquery Write Setquery;
  993. Property startTime : String Index 40 Read FstartTime Write SetstartTime;
  994. Property totalBytesProcessed : String Index 48 Read FtotalBytesProcessed Write SettotalBytesProcessed;
  995. end;
  996. TJobStatisticsClass = Class of TJobStatistics;
  997. { --------------------------------------------------------------------
  998. TJobStatistics2
  999. --------------------------------------------------------------------}
  1000. TJobStatistics2 = Class(TGoogleBaseObject)
  1001. Private
  1002. FbillingTier : integer;
  1003. FcacheHit : boolean;
  1004. FqueryPlan : TJobStatistics2TypequeryPlanArray;
  1005. FreferencedTables : TJobStatistics2TypereferencedTablesArray;
  1006. Fschema : TTableSchema;
  1007. FtotalBytesBilled : String;
  1008. FtotalBytesProcessed : String;
  1009. Protected
  1010. //Property setters
  1011. Procedure SetbillingTier(AIndex : Integer; const AValue : integer); virtual;
  1012. Procedure SetcacheHit(AIndex : Integer; const AValue : boolean); virtual;
  1013. Procedure SetqueryPlan(AIndex : Integer; const AValue : TJobStatistics2TypequeryPlanArray); virtual;
  1014. Procedure SetreferencedTables(AIndex : Integer; const AValue : TJobStatistics2TypereferencedTablesArray); virtual;
  1015. Procedure Setschema(AIndex : Integer; const AValue : TTableSchema); virtual;
  1016. Procedure SettotalBytesBilled(AIndex : Integer; const AValue : String); virtual;
  1017. Procedure SettotalBytesProcessed(AIndex : Integer; const AValue : String); virtual;
  1018. //2.6.4. bug workaround
  1019. {$IFDEF VER2_6}
  1020. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1021. {$ENDIF VER2_6}
  1022. Public
  1023. Published
  1024. Property billingTier : integer Index 0 Read FbillingTier Write SetbillingTier;
  1025. Property cacheHit : boolean Index 8 Read FcacheHit Write SetcacheHit;
  1026. Property queryPlan : TJobStatistics2TypequeryPlanArray Index 16 Read FqueryPlan Write SetqueryPlan;
  1027. Property referencedTables : TJobStatistics2TypereferencedTablesArray Index 24 Read FreferencedTables Write SetreferencedTables;
  1028. Property schema : TTableSchema Index 32 Read Fschema Write Setschema;
  1029. Property totalBytesBilled : String Index 40 Read FtotalBytesBilled Write SettotalBytesBilled;
  1030. Property totalBytesProcessed : String Index 48 Read FtotalBytesProcessed Write SettotalBytesProcessed;
  1031. end;
  1032. TJobStatistics2Class = Class of TJobStatistics2;
  1033. { --------------------------------------------------------------------
  1034. TJobStatistics3
  1035. --------------------------------------------------------------------}
  1036. TJobStatistics3 = Class(TGoogleBaseObject)
  1037. Private
  1038. FinputFileBytes : String;
  1039. FinputFiles : String;
  1040. FoutputBytes : String;
  1041. FoutputRows : String;
  1042. Protected
  1043. //Property setters
  1044. Procedure SetinputFileBytes(AIndex : Integer; const AValue : String); virtual;
  1045. Procedure SetinputFiles(AIndex : Integer; const AValue : String); virtual;
  1046. Procedure SetoutputBytes(AIndex : Integer; const AValue : String); virtual;
  1047. Procedure SetoutputRows(AIndex : Integer; const AValue : String); virtual;
  1048. Public
  1049. Published
  1050. Property inputFileBytes : String Index 0 Read FinputFileBytes Write SetinputFileBytes;
  1051. Property inputFiles : String Index 8 Read FinputFiles Write SetinputFiles;
  1052. Property outputBytes : String Index 16 Read FoutputBytes Write SetoutputBytes;
  1053. Property outputRows : String Index 24 Read FoutputRows Write SetoutputRows;
  1054. end;
  1055. TJobStatistics3Class = Class of TJobStatistics3;
  1056. { --------------------------------------------------------------------
  1057. TJobStatistics4
  1058. --------------------------------------------------------------------}
  1059. TJobStatistics4 = Class(TGoogleBaseObject)
  1060. Private
  1061. FdestinationUriFileCounts : TStringArray;
  1062. Protected
  1063. //Property setters
  1064. Procedure SetdestinationUriFileCounts(AIndex : Integer; const AValue : TStringArray); virtual;
  1065. //2.6.4. bug workaround
  1066. {$IFDEF VER2_6}
  1067. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1068. {$ENDIF VER2_6}
  1069. Public
  1070. Published
  1071. Property destinationUriFileCounts : TStringArray Index 0 Read FdestinationUriFileCounts Write SetdestinationUriFileCounts;
  1072. end;
  1073. TJobStatistics4Class = Class of TJobStatistics4;
  1074. { --------------------------------------------------------------------
  1075. TJobStatus
  1076. --------------------------------------------------------------------}
  1077. TJobStatus = Class(TGoogleBaseObject)
  1078. Private
  1079. FerrorResult : TErrorProto;
  1080. Ferrors : TJobStatusTypeerrorsArray;
  1081. Fstate : String;
  1082. Protected
  1083. //Property setters
  1084. Procedure SeterrorResult(AIndex : Integer; const AValue : TErrorProto); virtual;
  1085. Procedure Seterrors(AIndex : Integer; const AValue : TJobStatusTypeerrorsArray); virtual;
  1086. Procedure Setstate(AIndex : Integer; const AValue : String); virtual;
  1087. //2.6.4. bug workaround
  1088. {$IFDEF VER2_6}
  1089. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1090. {$ENDIF VER2_6}
  1091. Public
  1092. Published
  1093. Property errorResult : TErrorProto Index 0 Read FerrorResult Write SeterrorResult;
  1094. Property errors : TJobStatusTypeerrorsArray Index 8 Read Ferrors Write Seterrors;
  1095. Property state : String Index 16 Read Fstate Write Setstate;
  1096. end;
  1097. TJobStatusClass = Class of TJobStatus;
  1098. { --------------------------------------------------------------------
  1099. TJsonObject
  1100. --------------------------------------------------------------------}
  1101. TJsonObject = Class(TGoogleBaseObject)
  1102. Private
  1103. Protected
  1104. //Property setters
  1105. Public
  1106. Class Function AllowAdditionalProperties : Boolean; override;
  1107. Published
  1108. end;
  1109. TJsonObjectClass = Class of TJsonObject;
  1110. { --------------------------------------------------------------------
  1111. TProjectListTypeprojectsItem
  1112. --------------------------------------------------------------------}
  1113. TProjectListTypeprojectsItem = Class(TGoogleBaseObject)
  1114. Private
  1115. FfriendlyName : String;
  1116. Fid : String;
  1117. Fkind : String;
  1118. FnumericId : String;
  1119. FprojectReference : TProjectReference;
  1120. Protected
  1121. //Property setters
  1122. Procedure SetfriendlyName(AIndex : Integer; const AValue : String); virtual;
  1123. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1124. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1125. Procedure SetnumericId(AIndex : Integer; const AValue : String); virtual;
  1126. Procedure SetprojectReference(AIndex : Integer; const AValue : TProjectReference); virtual;
  1127. Public
  1128. Published
  1129. Property friendlyName : String Index 0 Read FfriendlyName Write SetfriendlyName;
  1130. Property id : String Index 8 Read Fid Write Setid;
  1131. Property kind : String Index 16 Read Fkind Write Setkind;
  1132. Property numericId : String Index 24 Read FnumericId Write SetnumericId;
  1133. Property projectReference : TProjectReference Index 32 Read FprojectReference Write SetprojectReference;
  1134. end;
  1135. TProjectListTypeprojectsItemClass = Class of TProjectListTypeprojectsItem;
  1136. { --------------------------------------------------------------------
  1137. TProjectList
  1138. --------------------------------------------------------------------}
  1139. TProjectList = Class(TGoogleBaseObject)
  1140. Private
  1141. Fetag : String;
  1142. Fkind : String;
  1143. FnextPageToken : String;
  1144. Fprojects : TProjectListTypeprojectsArray;
  1145. FtotalItems : integer;
  1146. Protected
  1147. //Property setters
  1148. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  1149. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1150. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  1151. Procedure Setprojects(AIndex : Integer; const AValue : TProjectListTypeprojectsArray); virtual;
  1152. Procedure SettotalItems(AIndex : Integer; const AValue : integer); virtual;
  1153. //2.6.4. bug workaround
  1154. {$IFDEF VER2_6}
  1155. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1156. {$ENDIF VER2_6}
  1157. Public
  1158. Published
  1159. Property etag : String Index 0 Read Fetag Write Setetag;
  1160. Property kind : String Index 8 Read Fkind Write Setkind;
  1161. Property nextPageToken : String Index 16 Read FnextPageToken Write SetnextPageToken;
  1162. Property projects : TProjectListTypeprojectsArray Index 24 Read Fprojects Write Setprojects;
  1163. Property totalItems : integer Index 32 Read FtotalItems Write SettotalItems;
  1164. end;
  1165. TProjectListClass = Class of TProjectList;
  1166. { --------------------------------------------------------------------
  1167. TProjectReference
  1168. --------------------------------------------------------------------}
  1169. TProjectReference = Class(TGoogleBaseObject)
  1170. Private
  1171. FprojectId : String;
  1172. Protected
  1173. //Property setters
  1174. Procedure SetprojectId(AIndex : Integer; const AValue : String); virtual;
  1175. Public
  1176. Published
  1177. Property projectId : String Index 0 Read FprojectId Write SetprojectId;
  1178. end;
  1179. TProjectReferenceClass = Class of TProjectReference;
  1180. { --------------------------------------------------------------------
  1181. TQueryRequest
  1182. --------------------------------------------------------------------}
  1183. TQueryRequest = Class(TGoogleBaseObject)
  1184. Private
  1185. FdefaultDataset : TDatasetReference;
  1186. FdryRun : boolean;
  1187. Fkind : String;
  1188. FmaxResults : integer;
  1189. FpreserveNulls : boolean;
  1190. Fquery : String;
  1191. FtimeoutMs : integer;
  1192. FuseLegacySql : boolean;
  1193. FuseQueryCache : boolean;
  1194. Protected
  1195. //Property setters
  1196. Procedure SetdefaultDataset(AIndex : Integer; const AValue : TDatasetReference); virtual;
  1197. Procedure SetdryRun(AIndex : Integer; const AValue : boolean); virtual;
  1198. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1199. Procedure SetmaxResults(AIndex : Integer; const AValue : integer); virtual;
  1200. Procedure SetpreserveNulls(AIndex : Integer; const AValue : boolean); virtual;
  1201. Procedure Setquery(AIndex : Integer; const AValue : String); virtual;
  1202. Procedure SettimeoutMs(AIndex : Integer; const AValue : integer); virtual;
  1203. Procedure SetuseLegacySql(AIndex : Integer; const AValue : boolean); virtual;
  1204. Procedure SetuseQueryCache(AIndex : Integer; const AValue : boolean); virtual;
  1205. Public
  1206. Published
  1207. Property defaultDataset : TDatasetReference Index 0 Read FdefaultDataset Write SetdefaultDataset;
  1208. Property dryRun : boolean Index 8 Read FdryRun Write SetdryRun;
  1209. Property kind : String Index 16 Read Fkind Write Setkind;
  1210. Property maxResults : integer Index 24 Read FmaxResults Write SetmaxResults;
  1211. Property preserveNulls : boolean Index 32 Read FpreserveNulls Write SetpreserveNulls;
  1212. Property query : String Index 40 Read Fquery Write Setquery;
  1213. Property timeoutMs : integer Index 48 Read FtimeoutMs Write SettimeoutMs;
  1214. Property useLegacySql : boolean Index 56 Read FuseLegacySql Write SetuseLegacySql;
  1215. Property useQueryCache : boolean Index 64 Read FuseQueryCache Write SetuseQueryCache;
  1216. end;
  1217. TQueryRequestClass = Class of TQueryRequest;
  1218. { --------------------------------------------------------------------
  1219. TQueryResponse
  1220. --------------------------------------------------------------------}
  1221. TQueryResponse = Class(TGoogleBaseObject)
  1222. Private
  1223. FcacheHit : boolean;
  1224. Ferrors : TQueryResponseTypeerrorsArray;
  1225. FjobComplete : boolean;
  1226. FjobReference : TJobReference;
  1227. Fkind : String;
  1228. FpageToken : String;
  1229. Frows : TQueryResponseTyperowsArray;
  1230. Fschema : TTableSchema;
  1231. FtotalBytesProcessed : String;
  1232. FtotalRows : String;
  1233. Protected
  1234. //Property setters
  1235. Procedure SetcacheHit(AIndex : Integer; const AValue : boolean); virtual;
  1236. Procedure Seterrors(AIndex : Integer; const AValue : TQueryResponseTypeerrorsArray); virtual;
  1237. Procedure SetjobComplete(AIndex : Integer; const AValue : boolean); virtual;
  1238. Procedure SetjobReference(AIndex : Integer; const AValue : TJobReference); virtual;
  1239. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1240. Procedure SetpageToken(AIndex : Integer; const AValue : String); virtual;
  1241. Procedure Setrows(AIndex : Integer; const AValue : TQueryResponseTyperowsArray); virtual;
  1242. Procedure Setschema(AIndex : Integer; const AValue : TTableSchema); virtual;
  1243. Procedure SettotalBytesProcessed(AIndex : Integer; const AValue : String); virtual;
  1244. Procedure SettotalRows(AIndex : Integer; const AValue : String); virtual;
  1245. //2.6.4. bug workaround
  1246. {$IFDEF VER2_6}
  1247. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1248. {$ENDIF VER2_6}
  1249. Public
  1250. Published
  1251. Property cacheHit : boolean Index 0 Read FcacheHit Write SetcacheHit;
  1252. Property errors : TQueryResponseTypeerrorsArray Index 8 Read Ferrors Write Seterrors;
  1253. Property jobComplete : boolean Index 16 Read FjobComplete Write SetjobComplete;
  1254. Property jobReference : TJobReference Index 24 Read FjobReference Write SetjobReference;
  1255. Property kind : String Index 32 Read Fkind Write Setkind;
  1256. Property pageToken : String Index 40 Read FpageToken Write SetpageToken;
  1257. Property rows : TQueryResponseTyperowsArray Index 48 Read Frows Write Setrows;
  1258. Property schema : TTableSchema Index 56 Read Fschema Write Setschema;
  1259. Property totalBytesProcessed : String Index 64 Read FtotalBytesProcessed Write SettotalBytesProcessed;
  1260. Property totalRows : String Index 72 Read FtotalRows Write SettotalRows;
  1261. end;
  1262. TQueryResponseClass = Class of TQueryResponse;
  1263. { --------------------------------------------------------------------
  1264. TStreamingbuffer
  1265. --------------------------------------------------------------------}
  1266. TStreamingbuffer = Class(TGoogleBaseObject)
  1267. Private
  1268. FestimatedBytes : String;
  1269. FestimatedRows : String;
  1270. FoldestEntryTime : String;
  1271. Protected
  1272. //Property setters
  1273. Procedure SetestimatedBytes(AIndex : Integer; const AValue : String); virtual;
  1274. Procedure SetestimatedRows(AIndex : Integer; const AValue : String); virtual;
  1275. Procedure SetoldestEntryTime(AIndex : Integer; const AValue : String); virtual;
  1276. Public
  1277. Published
  1278. Property estimatedBytes : String Index 0 Read FestimatedBytes Write SetestimatedBytes;
  1279. Property estimatedRows : String Index 8 Read FestimatedRows Write SetestimatedRows;
  1280. Property oldestEntryTime : String Index 16 Read FoldestEntryTime Write SetoldestEntryTime;
  1281. end;
  1282. TStreamingbufferClass = Class of TStreamingbuffer;
  1283. { --------------------------------------------------------------------
  1284. TTable
  1285. --------------------------------------------------------------------}
  1286. TTable = Class(TGoogleBaseObject)
  1287. Private
  1288. FcreationTime : String;
  1289. Fdescription : String;
  1290. Fetag : String;
  1291. FexpirationTime : String;
  1292. FexternalDataConfiguration : TExternalDataConfiguration;
  1293. FfriendlyName : String;
  1294. Fid : String;
  1295. Fkind : String;
  1296. FlastModifiedTime : String;
  1297. Flocation : String;
  1298. FnumBytes : String;
  1299. FnumLongTermBytes : String;
  1300. FnumRows : String;
  1301. Fschema : TTableSchema;
  1302. FselfLink : String;
  1303. FstreamingBuffer : TStreamingbuffer;
  1304. FtableReference : TTableReference;
  1305. FtimePartitioning : TTimePartitioning;
  1306. F_type : String;
  1307. Fview : TViewDefinition;
  1308. Protected
  1309. Class Function ExportPropertyName(Const AName : String) : string; override;
  1310. //Property setters
  1311. Procedure SetcreationTime(AIndex : Integer; const AValue : String); virtual;
  1312. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  1313. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  1314. Procedure SetexpirationTime(AIndex : Integer; const AValue : String); virtual;
  1315. Procedure SetexternalDataConfiguration(AIndex : Integer; const AValue : TExternalDataConfiguration); virtual;
  1316. Procedure SetfriendlyName(AIndex : Integer; const AValue : String); virtual;
  1317. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1318. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1319. Procedure SetlastModifiedTime(AIndex : Integer; const AValue : String); virtual;
  1320. Procedure Setlocation(AIndex : Integer; const AValue : String); virtual;
  1321. Procedure SetnumBytes(AIndex : Integer; const AValue : String); virtual;
  1322. Procedure SetnumLongTermBytes(AIndex : Integer; const AValue : String); virtual;
  1323. Procedure SetnumRows(AIndex : Integer; const AValue : String); virtual;
  1324. Procedure Setschema(AIndex : Integer; const AValue : TTableSchema); virtual;
  1325. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  1326. Procedure SetstreamingBuffer(AIndex : Integer; const AValue : TStreamingbuffer); virtual;
  1327. Procedure SettableReference(AIndex : Integer; const AValue : TTableReference); virtual;
  1328. Procedure SettimePartitioning(AIndex : Integer; const AValue : TTimePartitioning); virtual;
  1329. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1330. Procedure Setview(AIndex : Integer; const AValue : TViewDefinition); virtual;
  1331. Public
  1332. Published
  1333. Property creationTime : String Index 0 Read FcreationTime Write SetcreationTime;
  1334. Property description : String Index 8 Read Fdescription Write Setdescription;
  1335. Property etag : String Index 16 Read Fetag Write Setetag;
  1336. Property expirationTime : String Index 24 Read FexpirationTime Write SetexpirationTime;
  1337. Property externalDataConfiguration : TExternalDataConfiguration Index 32 Read FexternalDataConfiguration Write SetexternalDataConfiguration;
  1338. Property friendlyName : String Index 40 Read FfriendlyName Write SetfriendlyName;
  1339. Property id : String Index 48 Read Fid Write Setid;
  1340. Property kind : String Index 56 Read Fkind Write Setkind;
  1341. Property lastModifiedTime : String Index 64 Read FlastModifiedTime Write SetlastModifiedTime;
  1342. Property location : String Index 72 Read Flocation Write Setlocation;
  1343. Property numBytes : String Index 80 Read FnumBytes Write SetnumBytes;
  1344. Property numLongTermBytes : String Index 88 Read FnumLongTermBytes Write SetnumLongTermBytes;
  1345. Property numRows : String Index 96 Read FnumRows Write SetnumRows;
  1346. Property schema : TTableSchema Index 104 Read Fschema Write Setschema;
  1347. Property selfLink : String Index 112 Read FselfLink Write SetselfLink;
  1348. Property streamingBuffer : TStreamingbuffer Index 120 Read FstreamingBuffer Write SetstreamingBuffer;
  1349. Property tableReference : TTableReference Index 128 Read FtableReference Write SettableReference;
  1350. Property timePartitioning : TTimePartitioning Index 136 Read FtimePartitioning Write SettimePartitioning;
  1351. Property _type : String Index 144 Read F_type Write Set_type;
  1352. Property view : TViewDefinition Index 152 Read Fview Write Setview;
  1353. end;
  1354. TTableClass = Class of TTable;
  1355. { --------------------------------------------------------------------
  1356. TTableCell
  1357. --------------------------------------------------------------------}
  1358. TTableCell = Class(TGoogleBaseObject)
  1359. Private
  1360. Fv : TJSONSchema;
  1361. Protected
  1362. //Property setters
  1363. Procedure Setv(AIndex : Integer; const AValue : TJSONSchema); virtual;
  1364. Public
  1365. Published
  1366. Property v : TJSONSchema Index 0 Read Fv Write Setv;
  1367. end;
  1368. TTableCellClass = Class of TTableCell;
  1369. { --------------------------------------------------------------------
  1370. TTableDataInsertAllRequestTyperowsItem
  1371. --------------------------------------------------------------------}
  1372. TTableDataInsertAllRequestTyperowsItem = Class(TGoogleBaseObject)
  1373. Private
  1374. FinsertId : String;
  1375. Fjson : TJsonObject;
  1376. Protected
  1377. //Property setters
  1378. Procedure SetinsertId(AIndex : Integer; const AValue : String); virtual;
  1379. Procedure Setjson(AIndex : Integer; const AValue : TJsonObject); virtual;
  1380. Public
  1381. Published
  1382. Property insertId : String Index 0 Read FinsertId Write SetinsertId;
  1383. Property json : TJsonObject Index 8 Read Fjson Write Setjson;
  1384. end;
  1385. TTableDataInsertAllRequestTyperowsItemClass = Class of TTableDataInsertAllRequestTyperowsItem;
  1386. { --------------------------------------------------------------------
  1387. TTableDataInsertAllRequest
  1388. --------------------------------------------------------------------}
  1389. TTableDataInsertAllRequest = Class(TGoogleBaseObject)
  1390. Private
  1391. FignoreUnknownValues : boolean;
  1392. Fkind : String;
  1393. Frows : TTableDataInsertAllRequestTyperowsArray;
  1394. FskipInvalidRows : boolean;
  1395. FtemplateSuffix : String;
  1396. Protected
  1397. //Property setters
  1398. Procedure SetignoreUnknownValues(AIndex : Integer; const AValue : boolean); virtual;
  1399. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1400. Procedure Setrows(AIndex : Integer; const AValue : TTableDataInsertAllRequestTyperowsArray); virtual;
  1401. Procedure SetskipInvalidRows(AIndex : Integer; const AValue : boolean); virtual;
  1402. Procedure SettemplateSuffix(AIndex : Integer; const AValue : String); virtual;
  1403. //2.6.4. bug workaround
  1404. {$IFDEF VER2_6}
  1405. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1406. {$ENDIF VER2_6}
  1407. Public
  1408. Published
  1409. Property ignoreUnknownValues : boolean Index 0 Read FignoreUnknownValues Write SetignoreUnknownValues;
  1410. Property kind : String Index 8 Read Fkind Write Setkind;
  1411. Property rows : TTableDataInsertAllRequestTyperowsArray Index 16 Read Frows Write Setrows;
  1412. Property skipInvalidRows : boolean Index 24 Read FskipInvalidRows Write SetskipInvalidRows;
  1413. Property templateSuffix : String Index 32 Read FtemplateSuffix Write SettemplateSuffix;
  1414. end;
  1415. TTableDataInsertAllRequestClass = Class of TTableDataInsertAllRequest;
  1416. { --------------------------------------------------------------------
  1417. TTableDataInsertAllResponseTypeinsertErrorsItem
  1418. --------------------------------------------------------------------}
  1419. TTableDataInsertAllResponseTypeinsertErrorsItem = Class(TGoogleBaseObject)
  1420. Private
  1421. Ferrors : TTableDataInsertAllResponseTypeinsertErrorsItemTypeerrorsArray;
  1422. Findex : integer;
  1423. Protected
  1424. //Property setters
  1425. Procedure Seterrors(AIndex : Integer; const AValue : TTableDataInsertAllResponseTypeinsertErrorsItemTypeerrorsArray); virtual;
  1426. Procedure Setindex(AIndex : Integer; const AValue : integer); virtual;
  1427. //2.6.4. bug workaround
  1428. {$IFDEF VER2_6}
  1429. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1430. {$ENDIF VER2_6}
  1431. Public
  1432. Published
  1433. Property errors : TTableDataInsertAllResponseTypeinsertErrorsItemTypeerrorsArray Index 0 Read Ferrors Write Seterrors;
  1434. Property index : integer Index 8 Read Findex Write Setindex;
  1435. end;
  1436. TTableDataInsertAllResponseTypeinsertErrorsItemClass = Class of TTableDataInsertAllResponseTypeinsertErrorsItem;
  1437. { --------------------------------------------------------------------
  1438. TTableDataInsertAllResponse
  1439. --------------------------------------------------------------------}
  1440. TTableDataInsertAllResponse = Class(TGoogleBaseObject)
  1441. Private
  1442. FinsertErrors : TTableDataInsertAllResponseTypeinsertErrorsArray;
  1443. Fkind : String;
  1444. Protected
  1445. //Property setters
  1446. Procedure SetinsertErrors(AIndex : Integer; const AValue : TTableDataInsertAllResponseTypeinsertErrorsArray); virtual;
  1447. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1448. //2.6.4. bug workaround
  1449. {$IFDEF VER2_6}
  1450. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1451. {$ENDIF VER2_6}
  1452. Public
  1453. Published
  1454. Property insertErrors : TTableDataInsertAllResponseTypeinsertErrorsArray Index 0 Read FinsertErrors Write SetinsertErrors;
  1455. Property kind : String Index 8 Read Fkind Write Setkind;
  1456. end;
  1457. TTableDataInsertAllResponseClass = Class of TTableDataInsertAllResponse;
  1458. { --------------------------------------------------------------------
  1459. TTableDataList
  1460. --------------------------------------------------------------------}
  1461. TTableDataList = Class(TGoogleBaseObject)
  1462. Private
  1463. Fetag : String;
  1464. Fkind : String;
  1465. FpageToken : String;
  1466. Frows : TTableDataListTyperowsArray;
  1467. FtotalRows : String;
  1468. Protected
  1469. //Property setters
  1470. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  1471. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1472. Procedure SetpageToken(AIndex : Integer; const AValue : String); virtual;
  1473. Procedure Setrows(AIndex : Integer; const AValue : TTableDataListTyperowsArray); virtual;
  1474. Procedure SettotalRows(AIndex : Integer; const AValue : String); virtual;
  1475. //2.6.4. bug workaround
  1476. {$IFDEF VER2_6}
  1477. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1478. {$ENDIF VER2_6}
  1479. Public
  1480. Published
  1481. Property etag : String Index 0 Read Fetag Write Setetag;
  1482. Property kind : String Index 8 Read Fkind Write Setkind;
  1483. Property pageToken : String Index 16 Read FpageToken Write SetpageToken;
  1484. Property rows : TTableDataListTyperowsArray Index 24 Read Frows Write Setrows;
  1485. Property totalRows : String Index 32 Read FtotalRows Write SettotalRows;
  1486. end;
  1487. TTableDataListClass = Class of TTableDataList;
  1488. { --------------------------------------------------------------------
  1489. TTableFieldSchema
  1490. --------------------------------------------------------------------}
  1491. TTableFieldSchema = Class(TGoogleBaseObject)
  1492. Private
  1493. Fdescription : String;
  1494. Ffields : TTableFieldSchemaTypefieldsArray;
  1495. Fmode : String;
  1496. Fname : String;
  1497. F_type : String;
  1498. Protected
  1499. Class Function ExportPropertyName(Const AName : String) : string; override;
  1500. //Property setters
  1501. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  1502. Procedure Setfields(AIndex : Integer; const AValue : TTableFieldSchemaTypefieldsArray); virtual;
  1503. Procedure Setmode(AIndex : Integer; const AValue : String); virtual;
  1504. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1505. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1506. //2.6.4. bug workaround
  1507. {$IFDEF VER2_6}
  1508. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1509. {$ENDIF VER2_6}
  1510. Public
  1511. Published
  1512. Property description : String Index 0 Read Fdescription Write Setdescription;
  1513. Property fields : TTableFieldSchemaTypefieldsArray Index 8 Read Ffields Write Setfields;
  1514. Property mode : String Index 16 Read Fmode Write Setmode;
  1515. Property name : String Index 24 Read Fname Write Setname;
  1516. Property _type : String Index 32 Read F_type Write Set_type;
  1517. end;
  1518. TTableFieldSchemaClass = Class of TTableFieldSchema;
  1519. { --------------------------------------------------------------------
  1520. TTableListTypetablesItem
  1521. --------------------------------------------------------------------}
  1522. TTableListTypetablesItem = Class(TGoogleBaseObject)
  1523. Private
  1524. FfriendlyName : String;
  1525. Fid : String;
  1526. Fkind : String;
  1527. FtableReference : TTableReference;
  1528. F_type : String;
  1529. Protected
  1530. Class Function ExportPropertyName(Const AName : String) : string; override;
  1531. //Property setters
  1532. Procedure SetfriendlyName(AIndex : Integer; const AValue : String); virtual;
  1533. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1534. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1535. Procedure SettableReference(AIndex : Integer; const AValue : TTableReference); virtual;
  1536. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1537. Public
  1538. Published
  1539. Property friendlyName : String Index 0 Read FfriendlyName Write SetfriendlyName;
  1540. Property id : String Index 8 Read Fid Write Setid;
  1541. Property kind : String Index 16 Read Fkind Write Setkind;
  1542. Property tableReference : TTableReference Index 24 Read FtableReference Write SettableReference;
  1543. Property _type : String Index 32 Read F_type Write Set_type;
  1544. end;
  1545. TTableListTypetablesItemClass = Class of TTableListTypetablesItem;
  1546. { --------------------------------------------------------------------
  1547. TTableList
  1548. --------------------------------------------------------------------}
  1549. TTableList = Class(TGoogleBaseObject)
  1550. Private
  1551. Fetag : String;
  1552. Fkind : String;
  1553. FnextPageToken : String;
  1554. Ftables : TTableListTypetablesArray;
  1555. FtotalItems : integer;
  1556. Protected
  1557. //Property setters
  1558. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  1559. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1560. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  1561. Procedure Settables(AIndex : Integer; const AValue : TTableListTypetablesArray); virtual;
  1562. Procedure SettotalItems(AIndex : Integer; const AValue : integer); virtual;
  1563. //2.6.4. bug workaround
  1564. {$IFDEF VER2_6}
  1565. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1566. {$ENDIF VER2_6}
  1567. Public
  1568. Published
  1569. Property etag : String Index 0 Read Fetag Write Setetag;
  1570. Property kind : String Index 8 Read Fkind Write Setkind;
  1571. Property nextPageToken : String Index 16 Read FnextPageToken Write SetnextPageToken;
  1572. Property tables : TTableListTypetablesArray Index 24 Read Ftables Write Settables;
  1573. Property totalItems : integer Index 32 Read FtotalItems Write SettotalItems;
  1574. end;
  1575. TTableListClass = Class of TTableList;
  1576. { --------------------------------------------------------------------
  1577. TTableReference
  1578. --------------------------------------------------------------------}
  1579. TTableReference = Class(TGoogleBaseObject)
  1580. Private
  1581. FdatasetId : String;
  1582. FprojectId : String;
  1583. FtableId : String;
  1584. Protected
  1585. //Property setters
  1586. Procedure SetdatasetId(AIndex : Integer; const AValue : String); virtual;
  1587. Procedure SetprojectId(AIndex : Integer; const AValue : String); virtual;
  1588. Procedure SettableId(AIndex : Integer; const AValue : String); virtual;
  1589. Public
  1590. Published
  1591. Property datasetId : String Index 0 Read FdatasetId Write SetdatasetId;
  1592. Property projectId : String Index 8 Read FprojectId Write SetprojectId;
  1593. Property tableId : String Index 16 Read FtableId Write SettableId;
  1594. end;
  1595. TTableReferenceClass = Class of TTableReference;
  1596. { --------------------------------------------------------------------
  1597. TTableRow
  1598. --------------------------------------------------------------------}
  1599. TTableRow = Class(TGoogleBaseObject)
  1600. Private
  1601. Ff : TTableRowTypefArray;
  1602. Protected
  1603. //Property setters
  1604. Procedure Setf(AIndex : Integer; const AValue : TTableRowTypefArray); virtual;
  1605. //2.6.4. bug workaround
  1606. {$IFDEF VER2_6}
  1607. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1608. {$ENDIF VER2_6}
  1609. Public
  1610. Published
  1611. Property f : TTableRowTypefArray Index 0 Read Ff Write Setf;
  1612. end;
  1613. TTableRowClass = Class of TTableRow;
  1614. { --------------------------------------------------------------------
  1615. TTableSchema
  1616. --------------------------------------------------------------------}
  1617. TTableSchema = Class(TGoogleBaseObject)
  1618. Private
  1619. Ffields : TTableSchemaTypefieldsArray;
  1620. Protected
  1621. //Property setters
  1622. Procedure Setfields(AIndex : Integer; const AValue : TTableSchemaTypefieldsArray); virtual;
  1623. //2.6.4. bug workaround
  1624. {$IFDEF VER2_6}
  1625. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1626. {$ENDIF VER2_6}
  1627. Public
  1628. Published
  1629. Property fields : TTableSchemaTypefieldsArray Index 0 Read Ffields Write Setfields;
  1630. end;
  1631. TTableSchemaClass = Class of TTableSchema;
  1632. { --------------------------------------------------------------------
  1633. TTimePartitioning
  1634. --------------------------------------------------------------------}
  1635. TTimePartitioning = Class(TGoogleBaseObject)
  1636. Private
  1637. FexpirationMs : String;
  1638. F_type : String;
  1639. Protected
  1640. Class Function ExportPropertyName(Const AName : String) : string; override;
  1641. //Property setters
  1642. Procedure SetexpirationMs(AIndex : Integer; const AValue : String); virtual;
  1643. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1644. Public
  1645. Published
  1646. Property expirationMs : String Index 0 Read FexpirationMs Write SetexpirationMs;
  1647. Property _type : String Index 8 Read F_type Write Set_type;
  1648. end;
  1649. TTimePartitioningClass = Class of TTimePartitioning;
  1650. { --------------------------------------------------------------------
  1651. TUserDefinedFunctionResource
  1652. --------------------------------------------------------------------}
  1653. TUserDefinedFunctionResource = Class(TGoogleBaseObject)
  1654. Private
  1655. FinlineCode : String;
  1656. FresourceUri : String;
  1657. Protected
  1658. //Property setters
  1659. Procedure SetinlineCode(AIndex : Integer; const AValue : String); virtual;
  1660. Procedure SetresourceUri(AIndex : Integer; const AValue : String); virtual;
  1661. Public
  1662. Published
  1663. Property inlineCode : String Index 0 Read FinlineCode Write SetinlineCode;
  1664. Property resourceUri : String Index 8 Read FresourceUri Write SetresourceUri;
  1665. end;
  1666. TUserDefinedFunctionResourceClass = Class of TUserDefinedFunctionResource;
  1667. { --------------------------------------------------------------------
  1668. TViewDefinition
  1669. --------------------------------------------------------------------}
  1670. TViewDefinition = Class(TGoogleBaseObject)
  1671. Private
  1672. Fquery : String;
  1673. FuserDefinedFunctionResources : TViewDefinitionTypeuserDefinedFunctionResourcesArray;
  1674. Protected
  1675. //Property setters
  1676. Procedure Setquery(AIndex : Integer; const AValue : String); virtual;
  1677. Procedure SetuserDefinedFunctionResources(AIndex : Integer; const AValue : TViewDefinitionTypeuserDefinedFunctionResourcesArray); virtual;
  1678. //2.6.4. bug workaround
  1679. {$IFDEF VER2_6}
  1680. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1681. {$ENDIF VER2_6}
  1682. Public
  1683. Published
  1684. Property query : String Index 0 Read Fquery Write Setquery;
  1685. Property userDefinedFunctionResources : TViewDefinitionTypeuserDefinedFunctionResourcesArray Index 8 Read FuserDefinedFunctionResources Write SetuserDefinedFunctionResources;
  1686. end;
  1687. TViewDefinitionClass = Class of TViewDefinition;
  1688. { --------------------------------------------------------------------
  1689. TDatasetsResource
  1690. --------------------------------------------------------------------}
  1691. //Optional query Options for TDatasetsResource, method Delete
  1692. TDatasetsDeleteOptions = Record
  1693. deleteContents : boolean;
  1694. end;
  1695. //Optional query Options for TDatasetsResource, method List
  1696. TDatasetsListOptions = Record
  1697. all : boolean;
  1698. maxResults : integer;
  1699. pageToken : String;
  1700. end;
  1701. TDatasetsResource = Class(TGoogleResource)
  1702. Public
  1703. Class Function ResourceName : String; override;
  1704. Class Function DefaultAPI : TGoogleAPIClass; override;
  1705. Procedure Delete(datasetId: string; projectId: string; AQuery : string = '');
  1706. Procedure Delete(datasetId: string; projectId: string; AQuery : TDatasetsdeleteOptions);
  1707. Function Get(datasetId: string; projectId: string) : TDataset;
  1708. Function Insert(projectId: string; aDataset : TDataset) : TDataset;
  1709. Function List(projectId: string; AQuery : string = '') : TDatasetList;
  1710. Function List(projectId: string; AQuery : TDatasetslistOptions) : TDatasetList;
  1711. Function Patch(datasetId: string; projectId: string; aDataset : TDataset) : TDataset;
  1712. Function Update(datasetId: string; projectId: string; aDataset : TDataset) : TDataset;
  1713. end;
  1714. { --------------------------------------------------------------------
  1715. TJobsResource
  1716. --------------------------------------------------------------------}
  1717. //Optional query Options for TJobsResource, method GetQueryResults
  1718. TJobsGetQueryResultsOptions = Record
  1719. maxResults : integer;
  1720. pageToken : String;
  1721. startIndex : String;
  1722. timeoutMs : integer;
  1723. end;
  1724. //Optional query Options for TJobsResource, method List
  1725. TJobsListOptions = Record
  1726. allUsers : boolean;
  1727. maxResults : integer;
  1728. pageToken : String;
  1729. projection : String;
  1730. stateFilter : String;
  1731. end;
  1732. TJobsResource = Class(TGoogleResource)
  1733. Public
  1734. Class Function ResourceName : String; override;
  1735. Class Function DefaultAPI : TGoogleAPIClass; override;
  1736. Function Cancel(jobId: string; projectId: string) : TJobCancelResponse;
  1737. Function Get(jobId: string; projectId: string) : TJob;
  1738. Function GetQueryResults(jobId: string; projectId: string; AQuery : string = '') : TGetQueryResultsResponse;
  1739. Function GetQueryResults(jobId: string; projectId: string; AQuery : TJobsgetQueryResultsOptions) : TGetQueryResultsResponse;
  1740. Function Insert(projectId: string; aJob : TJob) : TJob;
  1741. Function List(projectId: string; AQuery : string = '') : TJobList;
  1742. Function List(projectId: string; AQuery : TJobslistOptions) : TJobList;
  1743. Function Query(projectId: string; aQueryRequest : TQueryRequest) : TQueryResponse;
  1744. end;
  1745. { --------------------------------------------------------------------
  1746. TProjectsResource
  1747. --------------------------------------------------------------------}
  1748. //Optional query Options for TProjectsResource, method List
  1749. TProjectsListOptions = Record
  1750. maxResults : integer;
  1751. pageToken : String;
  1752. end;
  1753. TProjectsResource = Class(TGoogleResource)
  1754. Public
  1755. Class Function ResourceName : String; override;
  1756. Class Function DefaultAPI : TGoogleAPIClass; override;
  1757. Function List(AQuery : string = '') : TProjectList;
  1758. Function List(AQuery : TProjectslistOptions) : TProjectList;
  1759. end;
  1760. { --------------------------------------------------------------------
  1761. TTabledataResource
  1762. --------------------------------------------------------------------}
  1763. //Optional query Options for TTabledataResource, method List
  1764. TTabledataListOptions = Record
  1765. maxResults : integer;
  1766. pageToken : String;
  1767. startIndex : String;
  1768. end;
  1769. TTabledataResource = Class(TGoogleResource)
  1770. Public
  1771. Class Function ResourceName : String; override;
  1772. Class Function DefaultAPI : TGoogleAPIClass; override;
  1773. Function InsertAll(datasetId: string; projectId: string; tableId: string; aTableDataInsertAllRequest : TTableDataInsertAllRequest) : TTableDataInsertAllResponse;
  1774. Function List(datasetId: string; projectId: string; tableId: string; AQuery : string = '') : TTableDataList;
  1775. Function List(datasetId: string; projectId: string; tableId: string; AQuery : TTabledatalistOptions) : TTableDataList;
  1776. end;
  1777. { --------------------------------------------------------------------
  1778. TTablesResource
  1779. --------------------------------------------------------------------}
  1780. //Optional query Options for TTablesResource, method List
  1781. TTablesListOptions = Record
  1782. maxResults : integer;
  1783. pageToken : String;
  1784. end;
  1785. TTablesResource = Class(TGoogleResource)
  1786. Public
  1787. Class Function ResourceName : String; override;
  1788. Class Function DefaultAPI : TGoogleAPIClass; override;
  1789. Procedure Delete(datasetId: string; projectId: string; tableId: string);
  1790. Function Get(datasetId: string; projectId: string; tableId: string) : TTable;
  1791. Function Insert(datasetId: string; projectId: string; aTable : TTable) : TTable;
  1792. Function List(datasetId: string; projectId: string; AQuery : string = '') : TTableList;
  1793. Function List(datasetId: string; projectId: string; AQuery : TTableslistOptions) : TTableList;
  1794. Function Patch(datasetId: string; projectId: string; tableId: string; aTable : TTable) : TTable;
  1795. Function Update(datasetId: string; projectId: string; tableId: string; aTable : TTable) : TTable;
  1796. end;
  1797. { --------------------------------------------------------------------
  1798. TBigqueryAPI
  1799. --------------------------------------------------------------------}
  1800. TBigqueryAPI = Class(TGoogleAPI)
  1801. Private
  1802. FDatasetsInstance : TDatasetsResource;
  1803. FJobsInstance : TJobsResource;
  1804. FProjectsInstance : TProjectsResource;
  1805. FTabledataInstance : TTabledataResource;
  1806. FTablesInstance : TTablesResource;
  1807. Function GetDatasetsInstance : TDatasetsResource;virtual;
  1808. Function GetJobsInstance : TJobsResource;virtual;
  1809. Function GetProjectsInstance : TProjectsResource;virtual;
  1810. Function GetTabledataInstance : TTabledataResource;virtual;
  1811. Function GetTablesInstance : TTablesResource;virtual;
  1812. Public
  1813. //Override class functions with API info
  1814. Class Function APIName : String; override;
  1815. Class Function APIVersion : String; override;
  1816. Class Function APIRevision : String; override;
  1817. Class Function APIID : String; override;
  1818. Class Function APITitle : String; override;
  1819. Class Function APIDescription : String; override;
  1820. Class Function APIOwnerDomain : String; override;
  1821. Class Function APIOwnerName : String; override;
  1822. Class Function APIIcon16 : String; override;
  1823. Class Function APIIcon32 : String; override;
  1824. Class Function APIdocumentationLink : String; override;
  1825. Class Function APIrootUrl : string; override;
  1826. Class Function APIbasePath : string;override;
  1827. Class Function APIbaseURL : String;override;
  1828. Class Function APIProtocol : string;override;
  1829. Class Function APIservicePath : string;override;
  1830. Class Function APIbatchPath : String;override;
  1831. Class Function APIAuthScopes : TScopeInfoArray;override;
  1832. Class Function APINeedsAuth : Boolean;override;
  1833. Class Procedure RegisterAPIResources; override;
  1834. //Add create function for resources
  1835. Function CreateDatasetsResource(AOwner : TComponent) : TDatasetsResource;virtual;overload;
  1836. Function CreateDatasetsResource : TDatasetsResource;virtual;overload;
  1837. Function CreateJobsResource(AOwner : TComponent) : TJobsResource;virtual;overload;
  1838. Function CreateJobsResource : TJobsResource;virtual;overload;
  1839. Function CreateProjectsResource(AOwner : TComponent) : TProjectsResource;virtual;overload;
  1840. Function CreateProjectsResource : TProjectsResource;virtual;overload;
  1841. Function CreateTabledataResource(AOwner : TComponent) : TTabledataResource;virtual;overload;
  1842. Function CreateTabledataResource : TTabledataResource;virtual;overload;
  1843. Function CreateTablesResource(AOwner : TComponent) : TTablesResource;virtual;overload;
  1844. Function CreateTablesResource : TTablesResource;virtual;overload;
  1845. //Add default on-demand instances for resources
  1846. Property DatasetsResource : TDatasetsResource Read GetDatasetsInstance;
  1847. Property JobsResource : TJobsResource Read GetJobsInstance;
  1848. Property ProjectsResource : TProjectsResource Read GetProjectsInstance;
  1849. Property TabledataResource : TTabledataResource Read GetTabledataInstance;
  1850. Property TablesResource : TTablesResource Read GetTablesInstance;
  1851. end;
  1852. implementation
  1853. { --------------------------------------------------------------------
  1854. TBigtableColumn
  1855. --------------------------------------------------------------------}
  1856. Procedure TBigtableColumn.Setencoding(AIndex : Integer; const AValue : String);
  1857. begin
  1858. If (Fencoding=AValue) then exit;
  1859. Fencoding:=AValue;
  1860. MarkPropertyChanged(AIndex);
  1861. end;
  1862. Procedure TBigtableColumn.SetfieldName(AIndex : Integer; const AValue : String);
  1863. begin
  1864. If (FfieldName=AValue) then exit;
  1865. FfieldName:=AValue;
  1866. MarkPropertyChanged(AIndex);
  1867. end;
  1868. Procedure TBigtableColumn.SetonlyReadLatest(AIndex : Integer; const AValue : boolean);
  1869. begin
  1870. If (FonlyReadLatest=AValue) then exit;
  1871. FonlyReadLatest:=AValue;
  1872. MarkPropertyChanged(AIndex);
  1873. end;
  1874. Procedure TBigtableColumn.SetqualifierEncoded(AIndex : Integer; const AValue : String);
  1875. begin
  1876. If (FqualifierEncoded=AValue) then exit;
  1877. FqualifierEncoded:=AValue;
  1878. MarkPropertyChanged(AIndex);
  1879. end;
  1880. Procedure TBigtableColumn.SetqualifierString(AIndex : Integer; const AValue : String);
  1881. begin
  1882. If (FqualifierString=AValue) then exit;
  1883. FqualifierString:=AValue;
  1884. MarkPropertyChanged(AIndex);
  1885. end;
  1886. Procedure TBigtableColumn.Set_type(AIndex : Integer; const AValue : String);
  1887. begin
  1888. If (F_type=AValue) then exit;
  1889. F_type:=AValue;
  1890. MarkPropertyChanged(AIndex);
  1891. end;
  1892. Class Function TBigtableColumn.ExportPropertyName(Const AName : String) :String;
  1893. begin
  1894. Case AName of
  1895. '_type' : Result:='type';
  1896. else
  1897. Result:=Inherited ExportPropertyName(AName);
  1898. end;
  1899. end;
  1900. { --------------------------------------------------------------------
  1901. TBigtableColumnFamily
  1902. --------------------------------------------------------------------}
  1903. Procedure TBigtableColumnFamily.Setcolumns(AIndex : Integer; const AValue : TBigtableColumnFamilyTypecolumnsArray);
  1904. begin
  1905. If (Fcolumns=AValue) then exit;
  1906. Fcolumns:=AValue;
  1907. MarkPropertyChanged(AIndex);
  1908. end;
  1909. Procedure TBigtableColumnFamily.Setencoding(AIndex : Integer; const AValue : String);
  1910. begin
  1911. If (Fencoding=AValue) then exit;
  1912. Fencoding:=AValue;
  1913. MarkPropertyChanged(AIndex);
  1914. end;
  1915. Procedure TBigtableColumnFamily.SetfamilyId(AIndex : Integer; const AValue : String);
  1916. begin
  1917. If (FfamilyId=AValue) then exit;
  1918. FfamilyId:=AValue;
  1919. MarkPropertyChanged(AIndex);
  1920. end;
  1921. Procedure TBigtableColumnFamily.SetonlyReadLatest(AIndex : Integer; const AValue : boolean);
  1922. begin
  1923. If (FonlyReadLatest=AValue) then exit;
  1924. FonlyReadLatest:=AValue;
  1925. MarkPropertyChanged(AIndex);
  1926. end;
  1927. Procedure TBigtableColumnFamily.Set_type(AIndex : Integer; const AValue : String);
  1928. begin
  1929. If (F_type=AValue) then exit;
  1930. F_type:=AValue;
  1931. MarkPropertyChanged(AIndex);
  1932. end;
  1933. Class Function TBigtableColumnFamily.ExportPropertyName(Const AName : String) :String;
  1934. begin
  1935. Case AName of
  1936. '_type' : Result:='type';
  1937. else
  1938. Result:=Inherited ExportPropertyName(AName);
  1939. end;
  1940. end;
  1941. //2.6.4. bug workaround
  1942. {$IFDEF VER2_6}
  1943. Procedure TBigtableColumnFamily.SetArrayLength(Const AName : String; ALength : Longint);
  1944. begin
  1945. Case AName of
  1946. 'columns' : SetLength(Fcolumns,ALength);
  1947. else
  1948. Inherited SetArrayLength(AName,ALength);
  1949. end;
  1950. end;
  1951. {$ENDIF VER2_6}
  1952. { --------------------------------------------------------------------
  1953. TBigtableOptions
  1954. --------------------------------------------------------------------}
  1955. Procedure TBigtableOptions.SetcolumnFamilies(AIndex : Integer; const AValue : TBigtableOptionsTypecolumnFamiliesArray);
  1956. begin
  1957. If (FcolumnFamilies=AValue) then exit;
  1958. FcolumnFamilies:=AValue;
  1959. MarkPropertyChanged(AIndex);
  1960. end;
  1961. Procedure TBigtableOptions.SetignoreUnspecifiedColumnFamilies(AIndex : Integer; const AValue : boolean);
  1962. begin
  1963. If (FignoreUnspecifiedColumnFamilies=AValue) then exit;
  1964. FignoreUnspecifiedColumnFamilies:=AValue;
  1965. MarkPropertyChanged(AIndex);
  1966. end;
  1967. //2.6.4. bug workaround
  1968. {$IFDEF VER2_6}
  1969. Procedure TBigtableOptions.SetArrayLength(Const AName : String; ALength : Longint);
  1970. begin
  1971. Case AName of
  1972. 'columnfamilies' : SetLength(FcolumnFamilies,ALength);
  1973. else
  1974. Inherited SetArrayLength(AName,ALength);
  1975. end;
  1976. end;
  1977. {$ENDIF VER2_6}
  1978. { --------------------------------------------------------------------
  1979. TCsvOptions
  1980. --------------------------------------------------------------------}
  1981. Procedure TCsvOptions.SetallowJaggedRows(AIndex : Integer; const AValue : boolean);
  1982. begin
  1983. If (FallowJaggedRows=AValue) then exit;
  1984. FallowJaggedRows:=AValue;
  1985. MarkPropertyChanged(AIndex);
  1986. end;
  1987. Procedure TCsvOptions.SetallowQuotedNewlines(AIndex : Integer; const AValue : boolean);
  1988. begin
  1989. If (FallowQuotedNewlines=AValue) then exit;
  1990. FallowQuotedNewlines:=AValue;
  1991. MarkPropertyChanged(AIndex);
  1992. end;
  1993. Procedure TCsvOptions.Setencoding(AIndex : Integer; const AValue : String);
  1994. begin
  1995. If (Fencoding=AValue) then exit;
  1996. Fencoding:=AValue;
  1997. MarkPropertyChanged(AIndex);
  1998. end;
  1999. Procedure TCsvOptions.SetfieldDelimiter(AIndex : Integer; const AValue : String);
  2000. begin
  2001. If (FfieldDelimiter=AValue) then exit;
  2002. FfieldDelimiter:=AValue;
  2003. MarkPropertyChanged(AIndex);
  2004. end;
  2005. Procedure TCsvOptions.Setquote(AIndex : Integer; const AValue : String);
  2006. begin
  2007. If (Fquote=AValue) then exit;
  2008. Fquote:=AValue;
  2009. MarkPropertyChanged(AIndex);
  2010. end;
  2011. Procedure TCsvOptions.SetskipLeadingRows(AIndex : Integer; const AValue : String);
  2012. begin
  2013. If (FskipLeadingRows=AValue) then exit;
  2014. FskipLeadingRows:=AValue;
  2015. MarkPropertyChanged(AIndex);
  2016. end;
  2017. { --------------------------------------------------------------------
  2018. TDatasetTypeaccessItem
  2019. --------------------------------------------------------------------}
  2020. Procedure TDatasetTypeaccessItem.Setdomain(AIndex : Integer; const AValue : String);
  2021. begin
  2022. If (Fdomain=AValue) then exit;
  2023. Fdomain:=AValue;
  2024. MarkPropertyChanged(AIndex);
  2025. end;
  2026. Procedure TDatasetTypeaccessItem.SetgroupByEmail(AIndex : Integer; const AValue : String);
  2027. begin
  2028. If (FgroupByEmail=AValue) then exit;
  2029. FgroupByEmail:=AValue;
  2030. MarkPropertyChanged(AIndex);
  2031. end;
  2032. Procedure TDatasetTypeaccessItem.Setrole(AIndex : Integer; const AValue : String);
  2033. begin
  2034. If (Frole=AValue) then exit;
  2035. Frole:=AValue;
  2036. MarkPropertyChanged(AIndex);
  2037. end;
  2038. Procedure TDatasetTypeaccessItem.SetspecialGroup(AIndex : Integer; const AValue : String);
  2039. begin
  2040. If (FspecialGroup=AValue) then exit;
  2041. FspecialGroup:=AValue;
  2042. MarkPropertyChanged(AIndex);
  2043. end;
  2044. Procedure TDatasetTypeaccessItem.SetuserByEmail(AIndex : Integer; const AValue : String);
  2045. begin
  2046. If (FuserByEmail=AValue) then exit;
  2047. FuserByEmail:=AValue;
  2048. MarkPropertyChanged(AIndex);
  2049. end;
  2050. Procedure TDatasetTypeaccessItem.Setview(AIndex : Integer; const AValue : TTableReference);
  2051. begin
  2052. If (Fview=AValue) then exit;
  2053. Fview:=AValue;
  2054. MarkPropertyChanged(AIndex);
  2055. end;
  2056. { --------------------------------------------------------------------
  2057. TDataset
  2058. --------------------------------------------------------------------}
  2059. Procedure TDataset.Setaccess(AIndex : Integer; const AValue : TDatasetTypeaccessArray);
  2060. begin
  2061. If (Faccess=AValue) then exit;
  2062. Faccess:=AValue;
  2063. MarkPropertyChanged(AIndex);
  2064. end;
  2065. Procedure TDataset.SetcreationTime(AIndex : Integer; const AValue : String);
  2066. begin
  2067. If (FcreationTime=AValue) then exit;
  2068. FcreationTime:=AValue;
  2069. MarkPropertyChanged(AIndex);
  2070. end;
  2071. Procedure TDataset.SetdatasetReference(AIndex : Integer; const AValue : TDatasetReference);
  2072. begin
  2073. If (FdatasetReference=AValue) then exit;
  2074. FdatasetReference:=AValue;
  2075. MarkPropertyChanged(AIndex);
  2076. end;
  2077. Procedure TDataset.SetdefaultTableExpirationMs(AIndex : Integer; const AValue : String);
  2078. begin
  2079. If (FdefaultTableExpirationMs=AValue) then exit;
  2080. FdefaultTableExpirationMs:=AValue;
  2081. MarkPropertyChanged(AIndex);
  2082. end;
  2083. Procedure TDataset.Setdescription(AIndex : Integer; const AValue : String);
  2084. begin
  2085. If (Fdescription=AValue) then exit;
  2086. Fdescription:=AValue;
  2087. MarkPropertyChanged(AIndex);
  2088. end;
  2089. Procedure TDataset.Setetag(AIndex : Integer; const AValue : String);
  2090. begin
  2091. If (Fetag=AValue) then exit;
  2092. Fetag:=AValue;
  2093. MarkPropertyChanged(AIndex);
  2094. end;
  2095. Procedure TDataset.SetfriendlyName(AIndex : Integer; const AValue : String);
  2096. begin
  2097. If (FfriendlyName=AValue) then exit;
  2098. FfriendlyName:=AValue;
  2099. MarkPropertyChanged(AIndex);
  2100. end;
  2101. Procedure TDataset.Setid(AIndex : Integer; const AValue : String);
  2102. begin
  2103. If (Fid=AValue) then exit;
  2104. Fid:=AValue;
  2105. MarkPropertyChanged(AIndex);
  2106. end;
  2107. Procedure TDataset.Setkind(AIndex : Integer; const AValue : String);
  2108. begin
  2109. If (Fkind=AValue) then exit;
  2110. Fkind:=AValue;
  2111. MarkPropertyChanged(AIndex);
  2112. end;
  2113. Procedure TDataset.SetlastModifiedTime(AIndex : Integer; const AValue : String);
  2114. begin
  2115. If (FlastModifiedTime=AValue) then exit;
  2116. FlastModifiedTime:=AValue;
  2117. MarkPropertyChanged(AIndex);
  2118. end;
  2119. Procedure TDataset.Setlocation(AIndex : Integer; const AValue : String);
  2120. begin
  2121. If (Flocation=AValue) then exit;
  2122. Flocation:=AValue;
  2123. MarkPropertyChanged(AIndex);
  2124. end;
  2125. Procedure TDataset.SetselfLink(AIndex : Integer; const AValue : String);
  2126. begin
  2127. If (FselfLink=AValue) then exit;
  2128. FselfLink:=AValue;
  2129. MarkPropertyChanged(AIndex);
  2130. end;
  2131. //2.6.4. bug workaround
  2132. {$IFDEF VER2_6}
  2133. Procedure TDataset.SetArrayLength(Const AName : String; ALength : Longint);
  2134. begin
  2135. Case AName of
  2136. 'access' : SetLength(Faccess,ALength);
  2137. else
  2138. Inherited SetArrayLength(AName,ALength);
  2139. end;
  2140. end;
  2141. {$ENDIF VER2_6}
  2142. { --------------------------------------------------------------------
  2143. TDatasetListTypedatasetsItem
  2144. --------------------------------------------------------------------}
  2145. Procedure TDatasetListTypedatasetsItem.SetdatasetReference(AIndex : Integer; const AValue : TDatasetReference);
  2146. begin
  2147. If (FdatasetReference=AValue) then exit;
  2148. FdatasetReference:=AValue;
  2149. MarkPropertyChanged(AIndex);
  2150. end;
  2151. Procedure TDatasetListTypedatasetsItem.SetfriendlyName(AIndex : Integer; const AValue : String);
  2152. begin
  2153. If (FfriendlyName=AValue) then exit;
  2154. FfriendlyName:=AValue;
  2155. MarkPropertyChanged(AIndex);
  2156. end;
  2157. Procedure TDatasetListTypedatasetsItem.Setid(AIndex : Integer; const AValue : String);
  2158. begin
  2159. If (Fid=AValue) then exit;
  2160. Fid:=AValue;
  2161. MarkPropertyChanged(AIndex);
  2162. end;
  2163. Procedure TDatasetListTypedatasetsItem.Setkind(AIndex : Integer; const AValue : String);
  2164. begin
  2165. If (Fkind=AValue) then exit;
  2166. Fkind:=AValue;
  2167. MarkPropertyChanged(AIndex);
  2168. end;
  2169. { --------------------------------------------------------------------
  2170. TDatasetList
  2171. --------------------------------------------------------------------}
  2172. Procedure TDatasetList.Setdatasets(AIndex : Integer; const AValue : TDatasetListTypedatasetsArray);
  2173. begin
  2174. If (Fdatasets=AValue) then exit;
  2175. Fdatasets:=AValue;
  2176. MarkPropertyChanged(AIndex);
  2177. end;
  2178. Procedure TDatasetList.Setetag(AIndex : Integer; const AValue : String);
  2179. begin
  2180. If (Fetag=AValue) then exit;
  2181. Fetag:=AValue;
  2182. MarkPropertyChanged(AIndex);
  2183. end;
  2184. Procedure TDatasetList.Setkind(AIndex : Integer; const AValue : String);
  2185. begin
  2186. If (Fkind=AValue) then exit;
  2187. Fkind:=AValue;
  2188. MarkPropertyChanged(AIndex);
  2189. end;
  2190. Procedure TDatasetList.SetnextPageToken(AIndex : Integer; const AValue : String);
  2191. begin
  2192. If (FnextPageToken=AValue) then exit;
  2193. FnextPageToken:=AValue;
  2194. MarkPropertyChanged(AIndex);
  2195. end;
  2196. //2.6.4. bug workaround
  2197. {$IFDEF VER2_6}
  2198. Procedure TDatasetList.SetArrayLength(Const AName : String; ALength : Longint);
  2199. begin
  2200. Case AName of
  2201. 'datasets' : SetLength(Fdatasets,ALength);
  2202. else
  2203. Inherited SetArrayLength(AName,ALength);
  2204. end;
  2205. end;
  2206. {$ENDIF VER2_6}
  2207. { --------------------------------------------------------------------
  2208. TDatasetReference
  2209. --------------------------------------------------------------------}
  2210. Procedure TDatasetReference.SetdatasetId(AIndex : Integer; const AValue : String);
  2211. begin
  2212. If (FdatasetId=AValue) then exit;
  2213. FdatasetId:=AValue;
  2214. MarkPropertyChanged(AIndex);
  2215. end;
  2216. Procedure TDatasetReference.SetprojectId(AIndex : Integer; const AValue : String);
  2217. begin
  2218. If (FprojectId=AValue) then exit;
  2219. FprojectId:=AValue;
  2220. MarkPropertyChanged(AIndex);
  2221. end;
  2222. { --------------------------------------------------------------------
  2223. TErrorProto
  2224. --------------------------------------------------------------------}
  2225. Procedure TErrorProto.SetdebugInfo(AIndex : Integer; const AValue : String);
  2226. begin
  2227. If (FdebugInfo=AValue) then exit;
  2228. FdebugInfo:=AValue;
  2229. MarkPropertyChanged(AIndex);
  2230. end;
  2231. Procedure TErrorProto.Setlocation(AIndex : Integer; const AValue : String);
  2232. begin
  2233. If (Flocation=AValue) then exit;
  2234. Flocation:=AValue;
  2235. MarkPropertyChanged(AIndex);
  2236. end;
  2237. Procedure TErrorProto.Setmessage(AIndex : Integer; const AValue : String);
  2238. begin
  2239. If (Fmessage=AValue) then exit;
  2240. Fmessage:=AValue;
  2241. MarkPropertyChanged(AIndex);
  2242. end;
  2243. Procedure TErrorProto.Setreason(AIndex : Integer; const AValue : String);
  2244. begin
  2245. If (Freason=AValue) then exit;
  2246. Freason:=AValue;
  2247. MarkPropertyChanged(AIndex);
  2248. end;
  2249. { --------------------------------------------------------------------
  2250. TExplainQueryStage
  2251. --------------------------------------------------------------------}
  2252. Procedure TExplainQueryStage.SetcomputeRatioAvg(AIndex : Integer; const AValue : double);
  2253. begin
  2254. If (FcomputeRatioAvg=AValue) then exit;
  2255. FcomputeRatioAvg:=AValue;
  2256. MarkPropertyChanged(AIndex);
  2257. end;
  2258. Procedure TExplainQueryStage.SetcomputeRatioMax(AIndex : Integer; const AValue : double);
  2259. begin
  2260. If (FcomputeRatioMax=AValue) then exit;
  2261. FcomputeRatioMax:=AValue;
  2262. MarkPropertyChanged(AIndex);
  2263. end;
  2264. Procedure TExplainQueryStage.Setid(AIndex : Integer; const AValue : String);
  2265. begin
  2266. If (Fid=AValue) then exit;
  2267. Fid:=AValue;
  2268. MarkPropertyChanged(AIndex);
  2269. end;
  2270. Procedure TExplainQueryStage.Setname(AIndex : Integer; const AValue : String);
  2271. begin
  2272. If (Fname=AValue) then exit;
  2273. Fname:=AValue;
  2274. MarkPropertyChanged(AIndex);
  2275. end;
  2276. Procedure TExplainQueryStage.SetreadRatioAvg(AIndex : Integer; const AValue : double);
  2277. begin
  2278. If (FreadRatioAvg=AValue) then exit;
  2279. FreadRatioAvg:=AValue;
  2280. MarkPropertyChanged(AIndex);
  2281. end;
  2282. Procedure TExplainQueryStage.SetreadRatioMax(AIndex : Integer; const AValue : double);
  2283. begin
  2284. If (FreadRatioMax=AValue) then exit;
  2285. FreadRatioMax:=AValue;
  2286. MarkPropertyChanged(AIndex);
  2287. end;
  2288. Procedure TExplainQueryStage.SetrecordsRead(AIndex : Integer; const AValue : String);
  2289. begin
  2290. If (FrecordsRead=AValue) then exit;
  2291. FrecordsRead:=AValue;
  2292. MarkPropertyChanged(AIndex);
  2293. end;
  2294. Procedure TExplainQueryStage.SetrecordsWritten(AIndex : Integer; const AValue : String);
  2295. begin
  2296. If (FrecordsWritten=AValue) then exit;
  2297. FrecordsWritten:=AValue;
  2298. MarkPropertyChanged(AIndex);
  2299. end;
  2300. Procedure TExplainQueryStage.Setsteps(AIndex : Integer; const AValue : TExplainQueryStageTypestepsArray);
  2301. begin
  2302. If (Fsteps=AValue) then exit;
  2303. Fsteps:=AValue;
  2304. MarkPropertyChanged(AIndex);
  2305. end;
  2306. Procedure TExplainQueryStage.SetwaitRatioAvg(AIndex : Integer; const AValue : double);
  2307. begin
  2308. If (FwaitRatioAvg=AValue) then exit;
  2309. FwaitRatioAvg:=AValue;
  2310. MarkPropertyChanged(AIndex);
  2311. end;
  2312. Procedure TExplainQueryStage.SetwaitRatioMax(AIndex : Integer; const AValue : double);
  2313. begin
  2314. If (FwaitRatioMax=AValue) then exit;
  2315. FwaitRatioMax:=AValue;
  2316. MarkPropertyChanged(AIndex);
  2317. end;
  2318. Procedure TExplainQueryStage.SetwriteRatioAvg(AIndex : Integer; const AValue : double);
  2319. begin
  2320. If (FwriteRatioAvg=AValue) then exit;
  2321. FwriteRatioAvg:=AValue;
  2322. MarkPropertyChanged(AIndex);
  2323. end;
  2324. Procedure TExplainQueryStage.SetwriteRatioMax(AIndex : Integer; const AValue : double);
  2325. begin
  2326. If (FwriteRatioMax=AValue) then exit;
  2327. FwriteRatioMax:=AValue;
  2328. MarkPropertyChanged(AIndex);
  2329. end;
  2330. //2.6.4. bug workaround
  2331. {$IFDEF VER2_6}
  2332. Procedure TExplainQueryStage.SetArrayLength(Const AName : String; ALength : Longint);
  2333. begin
  2334. Case AName of
  2335. 'steps' : SetLength(Fsteps,ALength);
  2336. else
  2337. Inherited SetArrayLength(AName,ALength);
  2338. end;
  2339. end;
  2340. {$ENDIF VER2_6}
  2341. { --------------------------------------------------------------------
  2342. TExplainQueryStep
  2343. --------------------------------------------------------------------}
  2344. Procedure TExplainQueryStep.Setkind(AIndex : Integer; const AValue : String);
  2345. begin
  2346. If (Fkind=AValue) then exit;
  2347. Fkind:=AValue;
  2348. MarkPropertyChanged(AIndex);
  2349. end;
  2350. Procedure TExplainQueryStep.Setsubsteps(AIndex : Integer; const AValue : TStringArray);
  2351. begin
  2352. If (Fsubsteps=AValue) then exit;
  2353. Fsubsteps:=AValue;
  2354. MarkPropertyChanged(AIndex);
  2355. end;
  2356. //2.6.4. bug workaround
  2357. {$IFDEF VER2_6}
  2358. Procedure TExplainQueryStep.SetArrayLength(Const AName : String; ALength : Longint);
  2359. begin
  2360. Case AName of
  2361. 'substeps' : SetLength(Fsubsteps,ALength);
  2362. else
  2363. Inherited SetArrayLength(AName,ALength);
  2364. end;
  2365. end;
  2366. {$ENDIF VER2_6}
  2367. { --------------------------------------------------------------------
  2368. TExternalDataConfiguration
  2369. --------------------------------------------------------------------}
  2370. Procedure TExternalDataConfiguration.Setautodetect(AIndex : Integer; const AValue : boolean);
  2371. begin
  2372. If (Fautodetect=AValue) then exit;
  2373. Fautodetect:=AValue;
  2374. MarkPropertyChanged(AIndex);
  2375. end;
  2376. Procedure TExternalDataConfiguration.SetbigtableOptions(AIndex : Integer; const AValue : TBigtableOptions);
  2377. begin
  2378. If (FbigtableOptions=AValue) then exit;
  2379. FbigtableOptions:=AValue;
  2380. MarkPropertyChanged(AIndex);
  2381. end;
  2382. Procedure TExternalDataConfiguration.Setcompression(AIndex : Integer; const AValue : String);
  2383. begin
  2384. If (Fcompression=AValue) then exit;
  2385. Fcompression:=AValue;
  2386. MarkPropertyChanged(AIndex);
  2387. end;
  2388. Procedure TExternalDataConfiguration.SetcsvOptions(AIndex : Integer; const AValue : TCsvOptions);
  2389. begin
  2390. If (FcsvOptions=AValue) then exit;
  2391. FcsvOptions:=AValue;
  2392. MarkPropertyChanged(AIndex);
  2393. end;
  2394. Procedure TExternalDataConfiguration.SetgoogleSheetsOptions(AIndex : Integer; const AValue : TGoogleSheetsOptions);
  2395. begin
  2396. If (FgoogleSheetsOptions=AValue) then exit;
  2397. FgoogleSheetsOptions:=AValue;
  2398. MarkPropertyChanged(AIndex);
  2399. end;
  2400. Procedure TExternalDataConfiguration.SetignoreUnknownValues(AIndex : Integer; const AValue : boolean);
  2401. begin
  2402. If (FignoreUnknownValues=AValue) then exit;
  2403. FignoreUnknownValues:=AValue;
  2404. MarkPropertyChanged(AIndex);
  2405. end;
  2406. Procedure TExternalDataConfiguration.SetmaxBadRecords(AIndex : Integer; const AValue : integer);
  2407. begin
  2408. If (FmaxBadRecords=AValue) then exit;
  2409. FmaxBadRecords:=AValue;
  2410. MarkPropertyChanged(AIndex);
  2411. end;
  2412. Procedure TExternalDataConfiguration.Setschema(AIndex : Integer; const AValue : TTableSchema);
  2413. begin
  2414. If (Fschema=AValue) then exit;
  2415. Fschema:=AValue;
  2416. MarkPropertyChanged(AIndex);
  2417. end;
  2418. Procedure TExternalDataConfiguration.SetsourceFormat(AIndex : Integer; const AValue : String);
  2419. begin
  2420. If (FsourceFormat=AValue) then exit;
  2421. FsourceFormat:=AValue;
  2422. MarkPropertyChanged(AIndex);
  2423. end;
  2424. Procedure TExternalDataConfiguration.SetsourceUris(AIndex : Integer; const AValue : TStringArray);
  2425. begin
  2426. If (FsourceUris=AValue) then exit;
  2427. FsourceUris:=AValue;
  2428. MarkPropertyChanged(AIndex);
  2429. end;
  2430. //2.6.4. bug workaround
  2431. {$IFDEF VER2_6}
  2432. Procedure TExternalDataConfiguration.SetArrayLength(Const AName : String; ALength : Longint);
  2433. begin
  2434. Case AName of
  2435. 'sourceuris' : SetLength(FsourceUris,ALength);
  2436. else
  2437. Inherited SetArrayLength(AName,ALength);
  2438. end;
  2439. end;
  2440. {$ENDIF VER2_6}
  2441. { --------------------------------------------------------------------
  2442. TGetQueryResultsResponse
  2443. --------------------------------------------------------------------}
  2444. Procedure TGetQueryResultsResponse.SetcacheHit(AIndex : Integer; const AValue : boolean);
  2445. begin
  2446. If (FcacheHit=AValue) then exit;
  2447. FcacheHit:=AValue;
  2448. MarkPropertyChanged(AIndex);
  2449. end;
  2450. Procedure TGetQueryResultsResponse.Seterrors(AIndex : Integer; const AValue : TGetQueryResultsResponseTypeerrorsArray);
  2451. begin
  2452. If (Ferrors=AValue) then exit;
  2453. Ferrors:=AValue;
  2454. MarkPropertyChanged(AIndex);
  2455. end;
  2456. Procedure TGetQueryResultsResponse.Setetag(AIndex : Integer; const AValue : String);
  2457. begin
  2458. If (Fetag=AValue) then exit;
  2459. Fetag:=AValue;
  2460. MarkPropertyChanged(AIndex);
  2461. end;
  2462. Procedure TGetQueryResultsResponse.SetjobComplete(AIndex : Integer; const AValue : boolean);
  2463. begin
  2464. If (FjobComplete=AValue) then exit;
  2465. FjobComplete:=AValue;
  2466. MarkPropertyChanged(AIndex);
  2467. end;
  2468. Procedure TGetQueryResultsResponse.SetjobReference(AIndex : Integer; const AValue : TJobReference);
  2469. begin
  2470. If (FjobReference=AValue) then exit;
  2471. FjobReference:=AValue;
  2472. MarkPropertyChanged(AIndex);
  2473. end;
  2474. Procedure TGetQueryResultsResponse.Setkind(AIndex : Integer; const AValue : String);
  2475. begin
  2476. If (Fkind=AValue) then exit;
  2477. Fkind:=AValue;
  2478. MarkPropertyChanged(AIndex);
  2479. end;
  2480. Procedure TGetQueryResultsResponse.SetpageToken(AIndex : Integer; const AValue : String);
  2481. begin
  2482. If (FpageToken=AValue) then exit;
  2483. FpageToken:=AValue;
  2484. MarkPropertyChanged(AIndex);
  2485. end;
  2486. Procedure TGetQueryResultsResponse.Setrows(AIndex : Integer; const AValue : TGetQueryResultsResponseTyperowsArray);
  2487. begin
  2488. If (Frows=AValue) then exit;
  2489. Frows:=AValue;
  2490. MarkPropertyChanged(AIndex);
  2491. end;
  2492. Procedure TGetQueryResultsResponse.Setschema(AIndex : Integer; const AValue : TTableSchema);
  2493. begin
  2494. If (Fschema=AValue) then exit;
  2495. Fschema:=AValue;
  2496. MarkPropertyChanged(AIndex);
  2497. end;
  2498. Procedure TGetQueryResultsResponse.SettotalBytesProcessed(AIndex : Integer; const AValue : String);
  2499. begin
  2500. If (FtotalBytesProcessed=AValue) then exit;
  2501. FtotalBytesProcessed:=AValue;
  2502. MarkPropertyChanged(AIndex);
  2503. end;
  2504. Procedure TGetQueryResultsResponse.SettotalRows(AIndex : Integer; const AValue : String);
  2505. begin
  2506. If (FtotalRows=AValue) then exit;
  2507. FtotalRows:=AValue;
  2508. MarkPropertyChanged(AIndex);
  2509. end;
  2510. //2.6.4. bug workaround
  2511. {$IFDEF VER2_6}
  2512. Procedure TGetQueryResultsResponse.SetArrayLength(Const AName : String; ALength : Longint);
  2513. begin
  2514. Case AName of
  2515. 'errors' : SetLength(Ferrors,ALength);
  2516. 'rows' : SetLength(Frows,ALength);
  2517. else
  2518. Inherited SetArrayLength(AName,ALength);
  2519. end;
  2520. end;
  2521. {$ENDIF VER2_6}
  2522. { --------------------------------------------------------------------
  2523. TGoogleSheetsOptions
  2524. --------------------------------------------------------------------}
  2525. Procedure TGoogleSheetsOptions.SetskipLeadingRows(AIndex : Integer; const AValue : String);
  2526. begin
  2527. If (FskipLeadingRows=AValue) then exit;
  2528. FskipLeadingRows:=AValue;
  2529. MarkPropertyChanged(AIndex);
  2530. end;
  2531. { --------------------------------------------------------------------
  2532. TJob
  2533. --------------------------------------------------------------------}
  2534. Procedure TJob.Setconfiguration(AIndex : Integer; const AValue : TJobConfiguration);
  2535. begin
  2536. If (Fconfiguration=AValue) then exit;
  2537. Fconfiguration:=AValue;
  2538. MarkPropertyChanged(AIndex);
  2539. end;
  2540. Procedure TJob.Setetag(AIndex : Integer; const AValue : String);
  2541. begin
  2542. If (Fetag=AValue) then exit;
  2543. Fetag:=AValue;
  2544. MarkPropertyChanged(AIndex);
  2545. end;
  2546. Procedure TJob.Setid(AIndex : Integer; const AValue : String);
  2547. begin
  2548. If (Fid=AValue) then exit;
  2549. Fid:=AValue;
  2550. MarkPropertyChanged(AIndex);
  2551. end;
  2552. Procedure TJob.SetjobReference(AIndex : Integer; const AValue : TJobReference);
  2553. begin
  2554. If (FjobReference=AValue) then exit;
  2555. FjobReference:=AValue;
  2556. MarkPropertyChanged(AIndex);
  2557. end;
  2558. Procedure TJob.Setkind(AIndex : Integer; const AValue : String);
  2559. begin
  2560. If (Fkind=AValue) then exit;
  2561. Fkind:=AValue;
  2562. MarkPropertyChanged(AIndex);
  2563. end;
  2564. Procedure TJob.SetselfLink(AIndex : Integer; const AValue : String);
  2565. begin
  2566. If (FselfLink=AValue) then exit;
  2567. FselfLink:=AValue;
  2568. MarkPropertyChanged(AIndex);
  2569. end;
  2570. Procedure TJob.Setstatistics(AIndex : Integer; const AValue : TJobStatistics);
  2571. begin
  2572. If (Fstatistics=AValue) then exit;
  2573. Fstatistics:=AValue;
  2574. MarkPropertyChanged(AIndex);
  2575. end;
  2576. Procedure TJob.Setstatus(AIndex : Integer; const AValue : TJobStatus);
  2577. begin
  2578. If (Fstatus=AValue) then exit;
  2579. Fstatus:=AValue;
  2580. MarkPropertyChanged(AIndex);
  2581. end;
  2582. Procedure TJob.Setuser_email(AIndex : Integer; const AValue : String);
  2583. begin
  2584. If (Fuser_email=AValue) then exit;
  2585. Fuser_email:=AValue;
  2586. MarkPropertyChanged(AIndex);
  2587. end;
  2588. { --------------------------------------------------------------------
  2589. TJobCancelResponse
  2590. --------------------------------------------------------------------}
  2591. Procedure TJobCancelResponse.Setjob(AIndex : Integer; const AValue : TJob);
  2592. begin
  2593. If (Fjob=AValue) then exit;
  2594. Fjob:=AValue;
  2595. MarkPropertyChanged(AIndex);
  2596. end;
  2597. Procedure TJobCancelResponse.Setkind(AIndex : Integer; const AValue : String);
  2598. begin
  2599. If (Fkind=AValue) then exit;
  2600. Fkind:=AValue;
  2601. MarkPropertyChanged(AIndex);
  2602. end;
  2603. { --------------------------------------------------------------------
  2604. TJobConfiguration
  2605. --------------------------------------------------------------------}
  2606. Procedure TJobConfiguration.Setcopy(AIndex : Integer; const AValue : TJobConfigurationTableCopy);
  2607. begin
  2608. If (Fcopy=AValue) then exit;
  2609. Fcopy:=AValue;
  2610. MarkPropertyChanged(AIndex);
  2611. end;
  2612. Procedure TJobConfiguration.SetdryRun(AIndex : Integer; const AValue : boolean);
  2613. begin
  2614. If (FdryRun=AValue) then exit;
  2615. FdryRun:=AValue;
  2616. MarkPropertyChanged(AIndex);
  2617. end;
  2618. Procedure TJobConfiguration.Setextract(AIndex : Integer; const AValue : TJobConfigurationExtract);
  2619. begin
  2620. If (Fextract=AValue) then exit;
  2621. Fextract:=AValue;
  2622. MarkPropertyChanged(AIndex);
  2623. end;
  2624. Procedure TJobConfiguration.Setload(AIndex : Integer; const AValue : TJobConfigurationLoad);
  2625. begin
  2626. If (Fload=AValue) then exit;
  2627. Fload:=AValue;
  2628. MarkPropertyChanged(AIndex);
  2629. end;
  2630. Procedure TJobConfiguration.Setquery(AIndex : Integer; const AValue : TJobConfigurationQuery);
  2631. begin
  2632. If (Fquery=AValue) then exit;
  2633. Fquery:=AValue;
  2634. MarkPropertyChanged(AIndex);
  2635. end;
  2636. { --------------------------------------------------------------------
  2637. TJobConfigurationExtract
  2638. --------------------------------------------------------------------}
  2639. Procedure TJobConfigurationExtract.Setcompression(AIndex : Integer; const AValue : String);
  2640. begin
  2641. If (Fcompression=AValue) then exit;
  2642. Fcompression:=AValue;
  2643. MarkPropertyChanged(AIndex);
  2644. end;
  2645. Procedure TJobConfigurationExtract.SetdestinationFormat(AIndex : Integer; const AValue : String);
  2646. begin
  2647. If (FdestinationFormat=AValue) then exit;
  2648. FdestinationFormat:=AValue;
  2649. MarkPropertyChanged(AIndex);
  2650. end;
  2651. Procedure TJobConfigurationExtract.SetdestinationUri(AIndex : Integer; const AValue : String);
  2652. begin
  2653. If (FdestinationUri=AValue) then exit;
  2654. FdestinationUri:=AValue;
  2655. MarkPropertyChanged(AIndex);
  2656. end;
  2657. Procedure TJobConfigurationExtract.SetdestinationUris(AIndex : Integer; const AValue : TStringArray);
  2658. begin
  2659. If (FdestinationUris=AValue) then exit;
  2660. FdestinationUris:=AValue;
  2661. MarkPropertyChanged(AIndex);
  2662. end;
  2663. Procedure TJobConfigurationExtract.SetfieldDelimiter(AIndex : Integer; const AValue : String);
  2664. begin
  2665. If (FfieldDelimiter=AValue) then exit;
  2666. FfieldDelimiter:=AValue;
  2667. MarkPropertyChanged(AIndex);
  2668. end;
  2669. Procedure TJobConfigurationExtract.SetprintHeader(AIndex : Integer; const AValue : boolean);
  2670. begin
  2671. If (FprintHeader=AValue) then exit;
  2672. FprintHeader:=AValue;
  2673. MarkPropertyChanged(AIndex);
  2674. end;
  2675. Procedure TJobConfigurationExtract.SetsourceTable(AIndex : Integer; const AValue : TTableReference);
  2676. begin
  2677. If (FsourceTable=AValue) then exit;
  2678. FsourceTable:=AValue;
  2679. MarkPropertyChanged(AIndex);
  2680. end;
  2681. //2.6.4. bug workaround
  2682. {$IFDEF VER2_6}
  2683. Procedure TJobConfigurationExtract.SetArrayLength(Const AName : String; ALength : Longint);
  2684. begin
  2685. Case AName of
  2686. 'destinationuris' : SetLength(FdestinationUris,ALength);
  2687. else
  2688. Inherited SetArrayLength(AName,ALength);
  2689. end;
  2690. end;
  2691. {$ENDIF VER2_6}
  2692. { --------------------------------------------------------------------
  2693. TJobConfigurationLoad
  2694. --------------------------------------------------------------------}
  2695. Procedure TJobConfigurationLoad.SetallowJaggedRows(AIndex : Integer; const AValue : boolean);
  2696. begin
  2697. If (FallowJaggedRows=AValue) then exit;
  2698. FallowJaggedRows:=AValue;
  2699. MarkPropertyChanged(AIndex);
  2700. end;
  2701. Procedure TJobConfigurationLoad.SetallowQuotedNewlines(AIndex : Integer; const AValue : boolean);
  2702. begin
  2703. If (FallowQuotedNewlines=AValue) then exit;
  2704. FallowQuotedNewlines:=AValue;
  2705. MarkPropertyChanged(AIndex);
  2706. end;
  2707. Procedure TJobConfigurationLoad.Setautodetect(AIndex : Integer; const AValue : boolean);
  2708. begin
  2709. If (Fautodetect=AValue) then exit;
  2710. Fautodetect:=AValue;
  2711. MarkPropertyChanged(AIndex);
  2712. end;
  2713. Procedure TJobConfigurationLoad.SetcreateDisposition(AIndex : Integer; const AValue : String);
  2714. begin
  2715. If (FcreateDisposition=AValue) then exit;
  2716. FcreateDisposition:=AValue;
  2717. MarkPropertyChanged(AIndex);
  2718. end;
  2719. Procedure TJobConfigurationLoad.SetdestinationTable(AIndex : Integer; const AValue : TTableReference);
  2720. begin
  2721. If (FdestinationTable=AValue) then exit;
  2722. FdestinationTable:=AValue;
  2723. MarkPropertyChanged(AIndex);
  2724. end;
  2725. Procedure TJobConfigurationLoad.Setencoding(AIndex : Integer; const AValue : String);
  2726. begin
  2727. If (Fencoding=AValue) then exit;
  2728. Fencoding:=AValue;
  2729. MarkPropertyChanged(AIndex);
  2730. end;
  2731. Procedure TJobConfigurationLoad.SetfieldDelimiter(AIndex : Integer; const AValue : String);
  2732. begin
  2733. If (FfieldDelimiter=AValue) then exit;
  2734. FfieldDelimiter:=AValue;
  2735. MarkPropertyChanged(AIndex);
  2736. end;
  2737. Procedure TJobConfigurationLoad.SetignoreUnknownValues(AIndex : Integer; const AValue : boolean);
  2738. begin
  2739. If (FignoreUnknownValues=AValue) then exit;
  2740. FignoreUnknownValues:=AValue;
  2741. MarkPropertyChanged(AIndex);
  2742. end;
  2743. Procedure TJobConfigurationLoad.SetmaxBadRecords(AIndex : Integer; const AValue : integer);
  2744. begin
  2745. If (FmaxBadRecords=AValue) then exit;
  2746. FmaxBadRecords:=AValue;
  2747. MarkPropertyChanged(AIndex);
  2748. end;
  2749. Procedure TJobConfigurationLoad.SetprojectionFields(AIndex : Integer; const AValue : TStringArray);
  2750. begin
  2751. If (FprojectionFields=AValue) then exit;
  2752. FprojectionFields:=AValue;
  2753. MarkPropertyChanged(AIndex);
  2754. end;
  2755. Procedure TJobConfigurationLoad.Setquote(AIndex : Integer; const AValue : String);
  2756. begin
  2757. If (Fquote=AValue) then exit;
  2758. Fquote:=AValue;
  2759. MarkPropertyChanged(AIndex);
  2760. end;
  2761. Procedure TJobConfigurationLoad.Setschema(AIndex : Integer; const AValue : TTableSchema);
  2762. begin
  2763. If (Fschema=AValue) then exit;
  2764. Fschema:=AValue;
  2765. MarkPropertyChanged(AIndex);
  2766. end;
  2767. Procedure TJobConfigurationLoad.SetschemaInline(AIndex : Integer; const AValue : String);
  2768. begin
  2769. If (FschemaInline=AValue) then exit;
  2770. FschemaInline:=AValue;
  2771. MarkPropertyChanged(AIndex);
  2772. end;
  2773. Procedure TJobConfigurationLoad.SetschemaInlineFormat(AIndex : Integer; const AValue : String);
  2774. begin
  2775. If (FschemaInlineFormat=AValue) then exit;
  2776. FschemaInlineFormat:=AValue;
  2777. MarkPropertyChanged(AIndex);
  2778. end;
  2779. Procedure TJobConfigurationLoad.SetskipLeadingRows(AIndex : Integer; const AValue : integer);
  2780. begin
  2781. If (FskipLeadingRows=AValue) then exit;
  2782. FskipLeadingRows:=AValue;
  2783. MarkPropertyChanged(AIndex);
  2784. end;
  2785. Procedure TJobConfigurationLoad.SetsourceFormat(AIndex : Integer; const AValue : String);
  2786. begin
  2787. If (FsourceFormat=AValue) then exit;
  2788. FsourceFormat:=AValue;
  2789. MarkPropertyChanged(AIndex);
  2790. end;
  2791. Procedure TJobConfigurationLoad.SetsourceUris(AIndex : Integer; const AValue : TStringArray);
  2792. begin
  2793. If (FsourceUris=AValue) then exit;
  2794. FsourceUris:=AValue;
  2795. MarkPropertyChanged(AIndex);
  2796. end;
  2797. Procedure TJobConfigurationLoad.SetwriteDisposition(AIndex : Integer; const AValue : String);
  2798. begin
  2799. If (FwriteDisposition=AValue) then exit;
  2800. FwriteDisposition:=AValue;
  2801. MarkPropertyChanged(AIndex);
  2802. end;
  2803. //2.6.4. bug workaround
  2804. {$IFDEF VER2_6}
  2805. Procedure TJobConfigurationLoad.SetArrayLength(Const AName : String; ALength : Longint);
  2806. begin
  2807. Case AName of
  2808. 'projectionfields' : SetLength(FprojectionFields,ALength);
  2809. 'sourceuris' : SetLength(FsourceUris,ALength);
  2810. else
  2811. Inherited SetArrayLength(AName,ALength);
  2812. end;
  2813. end;
  2814. {$ENDIF VER2_6}
  2815. { --------------------------------------------------------------------
  2816. TJobConfigurationQueryTypetableDefinitions
  2817. --------------------------------------------------------------------}
  2818. Class Function TJobConfigurationQueryTypetableDefinitions.AllowAdditionalProperties : Boolean;
  2819. begin
  2820. Result:=True;
  2821. end;
  2822. { --------------------------------------------------------------------
  2823. TJobConfigurationQuery
  2824. --------------------------------------------------------------------}
  2825. Procedure TJobConfigurationQuery.SetallowLargeResults(AIndex : Integer; const AValue : boolean);
  2826. begin
  2827. If (FallowLargeResults=AValue) then exit;
  2828. FallowLargeResults:=AValue;
  2829. MarkPropertyChanged(AIndex);
  2830. end;
  2831. Procedure TJobConfigurationQuery.SetcreateDisposition(AIndex : Integer; const AValue : String);
  2832. begin
  2833. If (FcreateDisposition=AValue) then exit;
  2834. FcreateDisposition:=AValue;
  2835. MarkPropertyChanged(AIndex);
  2836. end;
  2837. Procedure TJobConfigurationQuery.SetdefaultDataset(AIndex : Integer; const AValue : TDatasetReference);
  2838. begin
  2839. If (FdefaultDataset=AValue) then exit;
  2840. FdefaultDataset:=AValue;
  2841. MarkPropertyChanged(AIndex);
  2842. end;
  2843. Procedure TJobConfigurationQuery.SetdestinationTable(AIndex : Integer; const AValue : TTableReference);
  2844. begin
  2845. If (FdestinationTable=AValue) then exit;
  2846. FdestinationTable:=AValue;
  2847. MarkPropertyChanged(AIndex);
  2848. end;
  2849. Procedure TJobConfigurationQuery.SetflattenResults(AIndex : Integer; const AValue : boolean);
  2850. begin
  2851. If (FflattenResults=AValue) then exit;
  2852. FflattenResults:=AValue;
  2853. MarkPropertyChanged(AIndex);
  2854. end;
  2855. Procedure TJobConfigurationQuery.SetmaximumBillingTier(AIndex : Integer; const AValue : integer);
  2856. begin
  2857. If (FmaximumBillingTier=AValue) then exit;
  2858. FmaximumBillingTier:=AValue;
  2859. MarkPropertyChanged(AIndex);
  2860. end;
  2861. Procedure TJobConfigurationQuery.SetpreserveNulls(AIndex : Integer; const AValue : boolean);
  2862. begin
  2863. If (FpreserveNulls=AValue) then exit;
  2864. FpreserveNulls:=AValue;
  2865. MarkPropertyChanged(AIndex);
  2866. end;
  2867. Procedure TJobConfigurationQuery.Setpriority(AIndex : Integer; const AValue : String);
  2868. begin
  2869. If (Fpriority=AValue) then exit;
  2870. Fpriority:=AValue;
  2871. MarkPropertyChanged(AIndex);
  2872. end;
  2873. Procedure TJobConfigurationQuery.Setquery(AIndex : Integer; const AValue : String);
  2874. begin
  2875. If (Fquery=AValue) then exit;
  2876. Fquery:=AValue;
  2877. MarkPropertyChanged(AIndex);
  2878. end;
  2879. Procedure TJobConfigurationQuery.SettableDefinitions(AIndex : Integer; const AValue : TJobConfigurationQueryTypetableDefinitions);
  2880. begin
  2881. If (FtableDefinitions=AValue) then exit;
  2882. FtableDefinitions:=AValue;
  2883. MarkPropertyChanged(AIndex);
  2884. end;
  2885. Procedure TJobConfigurationQuery.SetuseLegacySql(AIndex : Integer; const AValue : boolean);
  2886. begin
  2887. If (FuseLegacySql=AValue) then exit;
  2888. FuseLegacySql:=AValue;
  2889. MarkPropertyChanged(AIndex);
  2890. end;
  2891. Procedure TJobConfigurationQuery.SetuseQueryCache(AIndex : Integer; const AValue : boolean);
  2892. begin
  2893. If (FuseQueryCache=AValue) then exit;
  2894. FuseQueryCache:=AValue;
  2895. MarkPropertyChanged(AIndex);
  2896. end;
  2897. Procedure TJobConfigurationQuery.SetuserDefinedFunctionResources(AIndex : Integer; const AValue : TJobConfigurationQueryTypeuserDefinedFunctionResourcesArray);
  2898. begin
  2899. If (FuserDefinedFunctionResources=AValue) then exit;
  2900. FuserDefinedFunctionResources:=AValue;
  2901. MarkPropertyChanged(AIndex);
  2902. end;
  2903. Procedure TJobConfigurationQuery.SetwriteDisposition(AIndex : Integer; const AValue : String);
  2904. begin
  2905. If (FwriteDisposition=AValue) then exit;
  2906. FwriteDisposition:=AValue;
  2907. MarkPropertyChanged(AIndex);
  2908. end;
  2909. //2.6.4. bug workaround
  2910. {$IFDEF VER2_6}
  2911. Procedure TJobConfigurationQuery.SetArrayLength(Const AName : String; ALength : Longint);
  2912. begin
  2913. Case AName of
  2914. 'userdefinedfunctionresources' : SetLength(FuserDefinedFunctionResources,ALength);
  2915. else
  2916. Inherited SetArrayLength(AName,ALength);
  2917. end;
  2918. end;
  2919. {$ENDIF VER2_6}
  2920. { --------------------------------------------------------------------
  2921. TJobConfigurationTableCopy
  2922. --------------------------------------------------------------------}
  2923. Procedure TJobConfigurationTableCopy.SetcreateDisposition(AIndex : Integer; const AValue : String);
  2924. begin
  2925. If (FcreateDisposition=AValue) then exit;
  2926. FcreateDisposition:=AValue;
  2927. MarkPropertyChanged(AIndex);
  2928. end;
  2929. Procedure TJobConfigurationTableCopy.SetdestinationTable(AIndex : Integer; const AValue : TTableReference);
  2930. begin
  2931. If (FdestinationTable=AValue) then exit;
  2932. FdestinationTable:=AValue;
  2933. MarkPropertyChanged(AIndex);
  2934. end;
  2935. Procedure TJobConfigurationTableCopy.SetsourceTable(AIndex : Integer; const AValue : TTableReference);
  2936. begin
  2937. If (FsourceTable=AValue) then exit;
  2938. FsourceTable:=AValue;
  2939. MarkPropertyChanged(AIndex);
  2940. end;
  2941. Procedure TJobConfigurationTableCopy.SetsourceTables(AIndex : Integer; const AValue : TJobConfigurationTableCopyTypesourceTablesArray);
  2942. begin
  2943. If (FsourceTables=AValue) then exit;
  2944. FsourceTables:=AValue;
  2945. MarkPropertyChanged(AIndex);
  2946. end;
  2947. Procedure TJobConfigurationTableCopy.SetwriteDisposition(AIndex : Integer; const AValue : String);
  2948. begin
  2949. If (FwriteDisposition=AValue) then exit;
  2950. FwriteDisposition:=AValue;
  2951. MarkPropertyChanged(AIndex);
  2952. end;
  2953. //2.6.4. bug workaround
  2954. {$IFDEF VER2_6}
  2955. Procedure TJobConfigurationTableCopy.SetArrayLength(Const AName : String; ALength : Longint);
  2956. begin
  2957. Case AName of
  2958. 'sourcetables' : SetLength(FsourceTables,ALength);
  2959. else
  2960. Inherited SetArrayLength(AName,ALength);
  2961. end;
  2962. end;
  2963. {$ENDIF VER2_6}
  2964. { --------------------------------------------------------------------
  2965. TJobListTypejobsItem
  2966. --------------------------------------------------------------------}
  2967. Procedure TJobListTypejobsItem.Setconfiguration(AIndex : Integer; const AValue : TJobConfiguration);
  2968. begin
  2969. If (Fconfiguration=AValue) then exit;
  2970. Fconfiguration:=AValue;
  2971. MarkPropertyChanged(AIndex);
  2972. end;
  2973. Procedure TJobListTypejobsItem.SeterrorResult(AIndex : Integer; const AValue : TErrorProto);
  2974. begin
  2975. If (FerrorResult=AValue) then exit;
  2976. FerrorResult:=AValue;
  2977. MarkPropertyChanged(AIndex);
  2978. end;
  2979. Procedure TJobListTypejobsItem.Setid(AIndex : Integer; const AValue : String);
  2980. begin
  2981. If (Fid=AValue) then exit;
  2982. Fid:=AValue;
  2983. MarkPropertyChanged(AIndex);
  2984. end;
  2985. Procedure TJobListTypejobsItem.SetjobReference(AIndex : Integer; const AValue : TJobReference);
  2986. begin
  2987. If (FjobReference=AValue) then exit;
  2988. FjobReference:=AValue;
  2989. MarkPropertyChanged(AIndex);
  2990. end;
  2991. Procedure TJobListTypejobsItem.Setkind(AIndex : Integer; const AValue : String);
  2992. begin
  2993. If (Fkind=AValue) then exit;
  2994. Fkind:=AValue;
  2995. MarkPropertyChanged(AIndex);
  2996. end;
  2997. Procedure TJobListTypejobsItem.Setstate(AIndex : Integer; const AValue : String);
  2998. begin
  2999. If (Fstate=AValue) then exit;
  3000. Fstate:=AValue;
  3001. MarkPropertyChanged(AIndex);
  3002. end;
  3003. Procedure TJobListTypejobsItem.Setstatistics(AIndex : Integer; const AValue : TJobStatistics);
  3004. begin
  3005. If (Fstatistics=AValue) then exit;
  3006. Fstatistics:=AValue;
  3007. MarkPropertyChanged(AIndex);
  3008. end;
  3009. Procedure TJobListTypejobsItem.Setstatus(AIndex : Integer; const AValue : TJobStatus);
  3010. begin
  3011. If (Fstatus=AValue) then exit;
  3012. Fstatus:=AValue;
  3013. MarkPropertyChanged(AIndex);
  3014. end;
  3015. Procedure TJobListTypejobsItem.Setuser_email(AIndex : Integer; const AValue : String);
  3016. begin
  3017. If (Fuser_email=AValue) then exit;
  3018. Fuser_email:=AValue;
  3019. MarkPropertyChanged(AIndex);
  3020. end;
  3021. { --------------------------------------------------------------------
  3022. TJobList
  3023. --------------------------------------------------------------------}
  3024. Procedure TJobList.Setetag(AIndex : Integer; const AValue : String);
  3025. begin
  3026. If (Fetag=AValue) then exit;
  3027. Fetag:=AValue;
  3028. MarkPropertyChanged(AIndex);
  3029. end;
  3030. Procedure TJobList.Setjobs(AIndex : Integer; const AValue : TJobListTypejobsArray);
  3031. begin
  3032. If (Fjobs=AValue) then exit;
  3033. Fjobs:=AValue;
  3034. MarkPropertyChanged(AIndex);
  3035. end;
  3036. Procedure TJobList.Setkind(AIndex : Integer; const AValue : String);
  3037. begin
  3038. If (Fkind=AValue) then exit;
  3039. Fkind:=AValue;
  3040. MarkPropertyChanged(AIndex);
  3041. end;
  3042. Procedure TJobList.SetnextPageToken(AIndex : Integer; const AValue : String);
  3043. begin
  3044. If (FnextPageToken=AValue) then exit;
  3045. FnextPageToken:=AValue;
  3046. MarkPropertyChanged(AIndex);
  3047. end;
  3048. //2.6.4. bug workaround
  3049. {$IFDEF VER2_6}
  3050. Procedure TJobList.SetArrayLength(Const AName : String; ALength : Longint);
  3051. begin
  3052. Case AName of
  3053. 'jobs' : SetLength(Fjobs,ALength);
  3054. else
  3055. Inherited SetArrayLength(AName,ALength);
  3056. end;
  3057. end;
  3058. {$ENDIF VER2_6}
  3059. { --------------------------------------------------------------------
  3060. TJobReference
  3061. --------------------------------------------------------------------}
  3062. Procedure TJobReference.SetjobId(AIndex : Integer; const AValue : String);
  3063. begin
  3064. If (FjobId=AValue) then exit;
  3065. FjobId:=AValue;
  3066. MarkPropertyChanged(AIndex);
  3067. end;
  3068. Procedure TJobReference.SetprojectId(AIndex : Integer; const AValue : String);
  3069. begin
  3070. If (FprojectId=AValue) then exit;
  3071. FprojectId:=AValue;
  3072. MarkPropertyChanged(AIndex);
  3073. end;
  3074. { --------------------------------------------------------------------
  3075. TJobStatistics
  3076. --------------------------------------------------------------------}
  3077. Procedure TJobStatistics.SetcreationTime(AIndex : Integer; const AValue : String);
  3078. begin
  3079. If (FcreationTime=AValue) then exit;
  3080. FcreationTime:=AValue;
  3081. MarkPropertyChanged(AIndex);
  3082. end;
  3083. Procedure TJobStatistics.SetendTime(AIndex : Integer; const AValue : String);
  3084. begin
  3085. If (FendTime=AValue) then exit;
  3086. FendTime:=AValue;
  3087. MarkPropertyChanged(AIndex);
  3088. end;
  3089. Procedure TJobStatistics.Setextract(AIndex : Integer; const AValue : TJobStatistics4);
  3090. begin
  3091. If (Fextract=AValue) then exit;
  3092. Fextract:=AValue;
  3093. MarkPropertyChanged(AIndex);
  3094. end;
  3095. Procedure TJobStatistics.Setload(AIndex : Integer; const AValue : TJobStatistics3);
  3096. begin
  3097. If (Fload=AValue) then exit;
  3098. Fload:=AValue;
  3099. MarkPropertyChanged(AIndex);
  3100. end;
  3101. Procedure TJobStatistics.Setquery(AIndex : Integer; const AValue : TJobStatistics2);
  3102. begin
  3103. If (Fquery=AValue) then exit;
  3104. Fquery:=AValue;
  3105. MarkPropertyChanged(AIndex);
  3106. end;
  3107. Procedure TJobStatistics.SetstartTime(AIndex : Integer; const AValue : String);
  3108. begin
  3109. If (FstartTime=AValue) then exit;
  3110. FstartTime:=AValue;
  3111. MarkPropertyChanged(AIndex);
  3112. end;
  3113. Procedure TJobStatistics.SettotalBytesProcessed(AIndex : Integer; const AValue : String);
  3114. begin
  3115. If (FtotalBytesProcessed=AValue) then exit;
  3116. FtotalBytesProcessed:=AValue;
  3117. MarkPropertyChanged(AIndex);
  3118. end;
  3119. { --------------------------------------------------------------------
  3120. TJobStatistics2
  3121. --------------------------------------------------------------------}
  3122. Procedure TJobStatistics2.SetbillingTier(AIndex : Integer; const AValue : integer);
  3123. begin
  3124. If (FbillingTier=AValue) then exit;
  3125. FbillingTier:=AValue;
  3126. MarkPropertyChanged(AIndex);
  3127. end;
  3128. Procedure TJobStatistics2.SetcacheHit(AIndex : Integer; const AValue : boolean);
  3129. begin
  3130. If (FcacheHit=AValue) then exit;
  3131. FcacheHit:=AValue;
  3132. MarkPropertyChanged(AIndex);
  3133. end;
  3134. Procedure TJobStatistics2.SetqueryPlan(AIndex : Integer; const AValue : TJobStatistics2TypequeryPlanArray);
  3135. begin
  3136. If (FqueryPlan=AValue) then exit;
  3137. FqueryPlan:=AValue;
  3138. MarkPropertyChanged(AIndex);
  3139. end;
  3140. Procedure TJobStatistics2.SetreferencedTables(AIndex : Integer; const AValue : TJobStatistics2TypereferencedTablesArray);
  3141. begin
  3142. If (FreferencedTables=AValue) then exit;
  3143. FreferencedTables:=AValue;
  3144. MarkPropertyChanged(AIndex);
  3145. end;
  3146. Procedure TJobStatistics2.Setschema(AIndex : Integer; const AValue : TTableSchema);
  3147. begin
  3148. If (Fschema=AValue) then exit;
  3149. Fschema:=AValue;
  3150. MarkPropertyChanged(AIndex);
  3151. end;
  3152. Procedure TJobStatistics2.SettotalBytesBilled(AIndex : Integer; const AValue : String);
  3153. begin
  3154. If (FtotalBytesBilled=AValue) then exit;
  3155. FtotalBytesBilled:=AValue;
  3156. MarkPropertyChanged(AIndex);
  3157. end;
  3158. Procedure TJobStatistics2.SettotalBytesProcessed(AIndex : Integer; const AValue : String);
  3159. begin
  3160. If (FtotalBytesProcessed=AValue) then exit;
  3161. FtotalBytesProcessed:=AValue;
  3162. MarkPropertyChanged(AIndex);
  3163. end;
  3164. //2.6.4. bug workaround
  3165. {$IFDEF VER2_6}
  3166. Procedure TJobStatistics2.SetArrayLength(Const AName : String; ALength : Longint);
  3167. begin
  3168. Case AName of
  3169. 'queryplan' : SetLength(FqueryPlan,ALength);
  3170. 'referencedtables' : SetLength(FreferencedTables,ALength);
  3171. else
  3172. Inherited SetArrayLength(AName,ALength);
  3173. end;
  3174. end;
  3175. {$ENDIF VER2_6}
  3176. { --------------------------------------------------------------------
  3177. TJobStatistics3
  3178. --------------------------------------------------------------------}
  3179. Procedure TJobStatistics3.SetinputFileBytes(AIndex : Integer; const AValue : String);
  3180. begin
  3181. If (FinputFileBytes=AValue) then exit;
  3182. FinputFileBytes:=AValue;
  3183. MarkPropertyChanged(AIndex);
  3184. end;
  3185. Procedure TJobStatistics3.SetinputFiles(AIndex : Integer; const AValue : String);
  3186. begin
  3187. If (FinputFiles=AValue) then exit;
  3188. FinputFiles:=AValue;
  3189. MarkPropertyChanged(AIndex);
  3190. end;
  3191. Procedure TJobStatistics3.SetoutputBytes(AIndex : Integer; const AValue : String);
  3192. begin
  3193. If (FoutputBytes=AValue) then exit;
  3194. FoutputBytes:=AValue;
  3195. MarkPropertyChanged(AIndex);
  3196. end;
  3197. Procedure TJobStatistics3.SetoutputRows(AIndex : Integer; const AValue : String);
  3198. begin
  3199. If (FoutputRows=AValue) then exit;
  3200. FoutputRows:=AValue;
  3201. MarkPropertyChanged(AIndex);
  3202. end;
  3203. { --------------------------------------------------------------------
  3204. TJobStatistics4
  3205. --------------------------------------------------------------------}
  3206. Procedure TJobStatistics4.SetdestinationUriFileCounts(AIndex : Integer; const AValue : TStringArray);
  3207. begin
  3208. If (FdestinationUriFileCounts=AValue) then exit;
  3209. FdestinationUriFileCounts:=AValue;
  3210. MarkPropertyChanged(AIndex);
  3211. end;
  3212. //2.6.4. bug workaround
  3213. {$IFDEF VER2_6}
  3214. Procedure TJobStatistics4.SetArrayLength(Const AName : String; ALength : Longint);
  3215. begin
  3216. Case AName of
  3217. 'destinationurifilecounts' : SetLength(FdestinationUriFileCounts,ALength);
  3218. else
  3219. Inherited SetArrayLength(AName,ALength);
  3220. end;
  3221. end;
  3222. {$ENDIF VER2_6}
  3223. { --------------------------------------------------------------------
  3224. TJobStatus
  3225. --------------------------------------------------------------------}
  3226. Procedure TJobStatus.SeterrorResult(AIndex : Integer; const AValue : TErrorProto);
  3227. begin
  3228. If (FerrorResult=AValue) then exit;
  3229. FerrorResult:=AValue;
  3230. MarkPropertyChanged(AIndex);
  3231. end;
  3232. Procedure TJobStatus.Seterrors(AIndex : Integer; const AValue : TJobStatusTypeerrorsArray);
  3233. begin
  3234. If (Ferrors=AValue) then exit;
  3235. Ferrors:=AValue;
  3236. MarkPropertyChanged(AIndex);
  3237. end;
  3238. Procedure TJobStatus.Setstate(AIndex : Integer; const AValue : String);
  3239. begin
  3240. If (Fstate=AValue) then exit;
  3241. Fstate:=AValue;
  3242. MarkPropertyChanged(AIndex);
  3243. end;
  3244. //2.6.4. bug workaround
  3245. {$IFDEF VER2_6}
  3246. Procedure TJobStatus.SetArrayLength(Const AName : String; ALength : Longint);
  3247. begin
  3248. Case AName of
  3249. 'errors' : SetLength(Ferrors,ALength);
  3250. else
  3251. Inherited SetArrayLength(AName,ALength);
  3252. end;
  3253. end;
  3254. {$ENDIF VER2_6}
  3255. { --------------------------------------------------------------------
  3256. TJsonObject
  3257. --------------------------------------------------------------------}
  3258. Class Function TJsonObject.AllowAdditionalProperties : Boolean;
  3259. begin
  3260. Result:=True;
  3261. end;
  3262. { --------------------------------------------------------------------
  3263. TProjectListTypeprojectsItem
  3264. --------------------------------------------------------------------}
  3265. Procedure TProjectListTypeprojectsItem.SetfriendlyName(AIndex : Integer; const AValue : String);
  3266. begin
  3267. If (FfriendlyName=AValue) then exit;
  3268. FfriendlyName:=AValue;
  3269. MarkPropertyChanged(AIndex);
  3270. end;
  3271. Procedure TProjectListTypeprojectsItem.Setid(AIndex : Integer; const AValue : String);
  3272. begin
  3273. If (Fid=AValue) then exit;
  3274. Fid:=AValue;
  3275. MarkPropertyChanged(AIndex);
  3276. end;
  3277. Procedure TProjectListTypeprojectsItem.Setkind(AIndex : Integer; const AValue : String);
  3278. begin
  3279. If (Fkind=AValue) then exit;
  3280. Fkind:=AValue;
  3281. MarkPropertyChanged(AIndex);
  3282. end;
  3283. Procedure TProjectListTypeprojectsItem.SetnumericId(AIndex : Integer; const AValue : String);
  3284. begin
  3285. If (FnumericId=AValue) then exit;
  3286. FnumericId:=AValue;
  3287. MarkPropertyChanged(AIndex);
  3288. end;
  3289. Procedure TProjectListTypeprojectsItem.SetprojectReference(AIndex : Integer; const AValue : TProjectReference);
  3290. begin
  3291. If (FprojectReference=AValue) then exit;
  3292. FprojectReference:=AValue;
  3293. MarkPropertyChanged(AIndex);
  3294. end;
  3295. { --------------------------------------------------------------------
  3296. TProjectList
  3297. --------------------------------------------------------------------}
  3298. Procedure TProjectList.Setetag(AIndex : Integer; const AValue : String);
  3299. begin
  3300. If (Fetag=AValue) then exit;
  3301. Fetag:=AValue;
  3302. MarkPropertyChanged(AIndex);
  3303. end;
  3304. Procedure TProjectList.Setkind(AIndex : Integer; const AValue : String);
  3305. begin
  3306. If (Fkind=AValue) then exit;
  3307. Fkind:=AValue;
  3308. MarkPropertyChanged(AIndex);
  3309. end;
  3310. Procedure TProjectList.SetnextPageToken(AIndex : Integer; const AValue : String);
  3311. begin
  3312. If (FnextPageToken=AValue) then exit;
  3313. FnextPageToken:=AValue;
  3314. MarkPropertyChanged(AIndex);
  3315. end;
  3316. Procedure TProjectList.Setprojects(AIndex : Integer; const AValue : TProjectListTypeprojectsArray);
  3317. begin
  3318. If (Fprojects=AValue) then exit;
  3319. Fprojects:=AValue;
  3320. MarkPropertyChanged(AIndex);
  3321. end;
  3322. Procedure TProjectList.SettotalItems(AIndex : Integer; const AValue : integer);
  3323. begin
  3324. If (FtotalItems=AValue) then exit;
  3325. FtotalItems:=AValue;
  3326. MarkPropertyChanged(AIndex);
  3327. end;
  3328. //2.6.4. bug workaround
  3329. {$IFDEF VER2_6}
  3330. Procedure TProjectList.SetArrayLength(Const AName : String; ALength : Longint);
  3331. begin
  3332. Case AName of
  3333. 'projects' : SetLength(Fprojects,ALength);
  3334. else
  3335. Inherited SetArrayLength(AName,ALength);
  3336. end;
  3337. end;
  3338. {$ENDIF VER2_6}
  3339. { --------------------------------------------------------------------
  3340. TProjectReference
  3341. --------------------------------------------------------------------}
  3342. Procedure TProjectReference.SetprojectId(AIndex : Integer; const AValue : String);
  3343. begin
  3344. If (FprojectId=AValue) then exit;
  3345. FprojectId:=AValue;
  3346. MarkPropertyChanged(AIndex);
  3347. end;
  3348. { --------------------------------------------------------------------
  3349. TQueryRequest
  3350. --------------------------------------------------------------------}
  3351. Procedure TQueryRequest.SetdefaultDataset(AIndex : Integer; const AValue : TDatasetReference);
  3352. begin
  3353. If (FdefaultDataset=AValue) then exit;
  3354. FdefaultDataset:=AValue;
  3355. MarkPropertyChanged(AIndex);
  3356. end;
  3357. Procedure TQueryRequest.SetdryRun(AIndex : Integer; const AValue : boolean);
  3358. begin
  3359. If (FdryRun=AValue) then exit;
  3360. FdryRun:=AValue;
  3361. MarkPropertyChanged(AIndex);
  3362. end;
  3363. Procedure TQueryRequest.Setkind(AIndex : Integer; const AValue : String);
  3364. begin
  3365. If (Fkind=AValue) then exit;
  3366. Fkind:=AValue;
  3367. MarkPropertyChanged(AIndex);
  3368. end;
  3369. Procedure TQueryRequest.SetmaxResults(AIndex : Integer; const AValue : integer);
  3370. begin
  3371. If (FmaxResults=AValue) then exit;
  3372. FmaxResults:=AValue;
  3373. MarkPropertyChanged(AIndex);
  3374. end;
  3375. Procedure TQueryRequest.SetpreserveNulls(AIndex : Integer; const AValue : boolean);
  3376. begin
  3377. If (FpreserveNulls=AValue) then exit;
  3378. FpreserveNulls:=AValue;
  3379. MarkPropertyChanged(AIndex);
  3380. end;
  3381. Procedure TQueryRequest.Setquery(AIndex : Integer; const AValue : String);
  3382. begin
  3383. If (Fquery=AValue) then exit;
  3384. Fquery:=AValue;
  3385. MarkPropertyChanged(AIndex);
  3386. end;
  3387. Procedure TQueryRequest.SettimeoutMs(AIndex : Integer; const AValue : integer);
  3388. begin
  3389. If (FtimeoutMs=AValue) then exit;
  3390. FtimeoutMs:=AValue;
  3391. MarkPropertyChanged(AIndex);
  3392. end;
  3393. Procedure TQueryRequest.SetuseLegacySql(AIndex : Integer; const AValue : boolean);
  3394. begin
  3395. If (FuseLegacySql=AValue) then exit;
  3396. FuseLegacySql:=AValue;
  3397. MarkPropertyChanged(AIndex);
  3398. end;
  3399. Procedure TQueryRequest.SetuseQueryCache(AIndex : Integer; const AValue : boolean);
  3400. begin
  3401. If (FuseQueryCache=AValue) then exit;
  3402. FuseQueryCache:=AValue;
  3403. MarkPropertyChanged(AIndex);
  3404. end;
  3405. { --------------------------------------------------------------------
  3406. TQueryResponse
  3407. --------------------------------------------------------------------}
  3408. Procedure TQueryResponse.SetcacheHit(AIndex : Integer; const AValue : boolean);
  3409. begin
  3410. If (FcacheHit=AValue) then exit;
  3411. FcacheHit:=AValue;
  3412. MarkPropertyChanged(AIndex);
  3413. end;
  3414. Procedure TQueryResponse.Seterrors(AIndex : Integer; const AValue : TQueryResponseTypeerrorsArray);
  3415. begin
  3416. If (Ferrors=AValue) then exit;
  3417. Ferrors:=AValue;
  3418. MarkPropertyChanged(AIndex);
  3419. end;
  3420. Procedure TQueryResponse.SetjobComplete(AIndex : Integer; const AValue : boolean);
  3421. begin
  3422. If (FjobComplete=AValue) then exit;
  3423. FjobComplete:=AValue;
  3424. MarkPropertyChanged(AIndex);
  3425. end;
  3426. Procedure TQueryResponse.SetjobReference(AIndex : Integer; const AValue : TJobReference);
  3427. begin
  3428. If (FjobReference=AValue) then exit;
  3429. FjobReference:=AValue;
  3430. MarkPropertyChanged(AIndex);
  3431. end;
  3432. Procedure TQueryResponse.Setkind(AIndex : Integer; const AValue : String);
  3433. begin
  3434. If (Fkind=AValue) then exit;
  3435. Fkind:=AValue;
  3436. MarkPropertyChanged(AIndex);
  3437. end;
  3438. Procedure TQueryResponse.SetpageToken(AIndex : Integer; const AValue : String);
  3439. begin
  3440. If (FpageToken=AValue) then exit;
  3441. FpageToken:=AValue;
  3442. MarkPropertyChanged(AIndex);
  3443. end;
  3444. Procedure TQueryResponse.Setrows(AIndex : Integer; const AValue : TQueryResponseTyperowsArray);
  3445. begin
  3446. If (Frows=AValue) then exit;
  3447. Frows:=AValue;
  3448. MarkPropertyChanged(AIndex);
  3449. end;
  3450. Procedure TQueryResponse.Setschema(AIndex : Integer; const AValue : TTableSchema);
  3451. begin
  3452. If (Fschema=AValue) then exit;
  3453. Fschema:=AValue;
  3454. MarkPropertyChanged(AIndex);
  3455. end;
  3456. Procedure TQueryResponse.SettotalBytesProcessed(AIndex : Integer; const AValue : String);
  3457. begin
  3458. If (FtotalBytesProcessed=AValue) then exit;
  3459. FtotalBytesProcessed:=AValue;
  3460. MarkPropertyChanged(AIndex);
  3461. end;
  3462. Procedure TQueryResponse.SettotalRows(AIndex : Integer; const AValue : String);
  3463. begin
  3464. If (FtotalRows=AValue) then exit;
  3465. FtotalRows:=AValue;
  3466. MarkPropertyChanged(AIndex);
  3467. end;
  3468. //2.6.4. bug workaround
  3469. {$IFDEF VER2_6}
  3470. Procedure TQueryResponse.SetArrayLength(Const AName : String; ALength : Longint);
  3471. begin
  3472. Case AName of
  3473. 'errors' : SetLength(Ferrors,ALength);
  3474. 'rows' : SetLength(Frows,ALength);
  3475. else
  3476. Inherited SetArrayLength(AName,ALength);
  3477. end;
  3478. end;
  3479. {$ENDIF VER2_6}
  3480. { --------------------------------------------------------------------
  3481. TStreamingbuffer
  3482. --------------------------------------------------------------------}
  3483. Procedure TStreamingbuffer.SetestimatedBytes(AIndex : Integer; const AValue : String);
  3484. begin
  3485. If (FestimatedBytes=AValue) then exit;
  3486. FestimatedBytes:=AValue;
  3487. MarkPropertyChanged(AIndex);
  3488. end;
  3489. Procedure TStreamingbuffer.SetestimatedRows(AIndex : Integer; const AValue : String);
  3490. begin
  3491. If (FestimatedRows=AValue) then exit;
  3492. FestimatedRows:=AValue;
  3493. MarkPropertyChanged(AIndex);
  3494. end;
  3495. Procedure TStreamingbuffer.SetoldestEntryTime(AIndex : Integer; const AValue : String);
  3496. begin
  3497. If (FoldestEntryTime=AValue) then exit;
  3498. FoldestEntryTime:=AValue;
  3499. MarkPropertyChanged(AIndex);
  3500. end;
  3501. { --------------------------------------------------------------------
  3502. TTable
  3503. --------------------------------------------------------------------}
  3504. Procedure TTable.SetcreationTime(AIndex : Integer; const AValue : String);
  3505. begin
  3506. If (FcreationTime=AValue) then exit;
  3507. FcreationTime:=AValue;
  3508. MarkPropertyChanged(AIndex);
  3509. end;
  3510. Procedure TTable.Setdescription(AIndex : Integer; const AValue : String);
  3511. begin
  3512. If (Fdescription=AValue) then exit;
  3513. Fdescription:=AValue;
  3514. MarkPropertyChanged(AIndex);
  3515. end;
  3516. Procedure TTable.Setetag(AIndex : Integer; const AValue : String);
  3517. begin
  3518. If (Fetag=AValue) then exit;
  3519. Fetag:=AValue;
  3520. MarkPropertyChanged(AIndex);
  3521. end;
  3522. Procedure TTable.SetexpirationTime(AIndex : Integer; const AValue : String);
  3523. begin
  3524. If (FexpirationTime=AValue) then exit;
  3525. FexpirationTime:=AValue;
  3526. MarkPropertyChanged(AIndex);
  3527. end;
  3528. Procedure TTable.SetexternalDataConfiguration(AIndex : Integer; const AValue : TExternalDataConfiguration);
  3529. begin
  3530. If (FexternalDataConfiguration=AValue) then exit;
  3531. FexternalDataConfiguration:=AValue;
  3532. MarkPropertyChanged(AIndex);
  3533. end;
  3534. Procedure TTable.SetfriendlyName(AIndex : Integer; const AValue : String);
  3535. begin
  3536. If (FfriendlyName=AValue) then exit;
  3537. FfriendlyName:=AValue;
  3538. MarkPropertyChanged(AIndex);
  3539. end;
  3540. Procedure TTable.Setid(AIndex : Integer; const AValue : String);
  3541. begin
  3542. If (Fid=AValue) then exit;
  3543. Fid:=AValue;
  3544. MarkPropertyChanged(AIndex);
  3545. end;
  3546. Procedure TTable.Setkind(AIndex : Integer; const AValue : String);
  3547. begin
  3548. If (Fkind=AValue) then exit;
  3549. Fkind:=AValue;
  3550. MarkPropertyChanged(AIndex);
  3551. end;
  3552. Procedure TTable.SetlastModifiedTime(AIndex : Integer; const AValue : String);
  3553. begin
  3554. If (FlastModifiedTime=AValue) then exit;
  3555. FlastModifiedTime:=AValue;
  3556. MarkPropertyChanged(AIndex);
  3557. end;
  3558. Procedure TTable.Setlocation(AIndex : Integer; const AValue : String);
  3559. begin
  3560. If (Flocation=AValue) then exit;
  3561. Flocation:=AValue;
  3562. MarkPropertyChanged(AIndex);
  3563. end;
  3564. Procedure TTable.SetnumBytes(AIndex : Integer; const AValue : String);
  3565. begin
  3566. If (FnumBytes=AValue) then exit;
  3567. FnumBytes:=AValue;
  3568. MarkPropertyChanged(AIndex);
  3569. end;
  3570. Procedure TTable.SetnumLongTermBytes(AIndex : Integer; const AValue : String);
  3571. begin
  3572. If (FnumLongTermBytes=AValue) then exit;
  3573. FnumLongTermBytes:=AValue;
  3574. MarkPropertyChanged(AIndex);
  3575. end;
  3576. Procedure TTable.SetnumRows(AIndex : Integer; const AValue : String);
  3577. begin
  3578. If (FnumRows=AValue) then exit;
  3579. FnumRows:=AValue;
  3580. MarkPropertyChanged(AIndex);
  3581. end;
  3582. Procedure TTable.Setschema(AIndex : Integer; const AValue : TTableSchema);
  3583. begin
  3584. If (Fschema=AValue) then exit;
  3585. Fschema:=AValue;
  3586. MarkPropertyChanged(AIndex);
  3587. end;
  3588. Procedure TTable.SetselfLink(AIndex : Integer; const AValue : String);
  3589. begin
  3590. If (FselfLink=AValue) then exit;
  3591. FselfLink:=AValue;
  3592. MarkPropertyChanged(AIndex);
  3593. end;
  3594. Procedure TTable.SetstreamingBuffer(AIndex : Integer; const AValue : TStreamingbuffer);
  3595. begin
  3596. If (FstreamingBuffer=AValue) then exit;
  3597. FstreamingBuffer:=AValue;
  3598. MarkPropertyChanged(AIndex);
  3599. end;
  3600. Procedure TTable.SettableReference(AIndex : Integer; const AValue : TTableReference);
  3601. begin
  3602. If (FtableReference=AValue) then exit;
  3603. FtableReference:=AValue;
  3604. MarkPropertyChanged(AIndex);
  3605. end;
  3606. Procedure TTable.SettimePartitioning(AIndex : Integer; const AValue : TTimePartitioning);
  3607. begin
  3608. If (FtimePartitioning=AValue) then exit;
  3609. FtimePartitioning:=AValue;
  3610. MarkPropertyChanged(AIndex);
  3611. end;
  3612. Procedure TTable.Set_type(AIndex : Integer; const AValue : String);
  3613. begin
  3614. If (F_type=AValue) then exit;
  3615. F_type:=AValue;
  3616. MarkPropertyChanged(AIndex);
  3617. end;
  3618. Procedure TTable.Setview(AIndex : Integer; const AValue : TViewDefinition);
  3619. begin
  3620. If (Fview=AValue) then exit;
  3621. Fview:=AValue;
  3622. MarkPropertyChanged(AIndex);
  3623. end;
  3624. Class Function TTable.ExportPropertyName(Const AName : String) :String;
  3625. begin
  3626. Case AName of
  3627. '_type' : Result:='type';
  3628. else
  3629. Result:=Inherited ExportPropertyName(AName);
  3630. end;
  3631. end;
  3632. { --------------------------------------------------------------------
  3633. TTableCell
  3634. --------------------------------------------------------------------}
  3635. Procedure TTableCell.Setv(AIndex : Integer; const AValue : TJSONSchema);
  3636. begin
  3637. If (Fv=AValue) then exit;
  3638. Fv:=AValue;
  3639. MarkPropertyChanged(AIndex);
  3640. end;
  3641. { --------------------------------------------------------------------
  3642. TTableDataInsertAllRequestTyperowsItem
  3643. --------------------------------------------------------------------}
  3644. Procedure TTableDataInsertAllRequestTyperowsItem.SetinsertId(AIndex : Integer; const AValue : String);
  3645. begin
  3646. If (FinsertId=AValue) then exit;
  3647. FinsertId:=AValue;
  3648. MarkPropertyChanged(AIndex);
  3649. end;
  3650. Procedure TTableDataInsertAllRequestTyperowsItem.Setjson(AIndex : Integer; const AValue : TJsonObject);
  3651. begin
  3652. If (Fjson=AValue) then exit;
  3653. Fjson:=AValue;
  3654. MarkPropertyChanged(AIndex);
  3655. end;
  3656. { --------------------------------------------------------------------
  3657. TTableDataInsertAllRequest
  3658. --------------------------------------------------------------------}
  3659. Procedure TTableDataInsertAllRequest.SetignoreUnknownValues(AIndex : Integer; const AValue : boolean);
  3660. begin
  3661. If (FignoreUnknownValues=AValue) then exit;
  3662. FignoreUnknownValues:=AValue;
  3663. MarkPropertyChanged(AIndex);
  3664. end;
  3665. Procedure TTableDataInsertAllRequest.Setkind(AIndex : Integer; const AValue : String);
  3666. begin
  3667. If (Fkind=AValue) then exit;
  3668. Fkind:=AValue;
  3669. MarkPropertyChanged(AIndex);
  3670. end;
  3671. Procedure TTableDataInsertAllRequest.Setrows(AIndex : Integer; const AValue : TTableDataInsertAllRequestTyperowsArray);
  3672. begin
  3673. If (Frows=AValue) then exit;
  3674. Frows:=AValue;
  3675. MarkPropertyChanged(AIndex);
  3676. end;
  3677. Procedure TTableDataInsertAllRequest.SetskipInvalidRows(AIndex : Integer; const AValue : boolean);
  3678. begin
  3679. If (FskipInvalidRows=AValue) then exit;
  3680. FskipInvalidRows:=AValue;
  3681. MarkPropertyChanged(AIndex);
  3682. end;
  3683. Procedure TTableDataInsertAllRequest.SettemplateSuffix(AIndex : Integer; const AValue : String);
  3684. begin
  3685. If (FtemplateSuffix=AValue) then exit;
  3686. FtemplateSuffix:=AValue;
  3687. MarkPropertyChanged(AIndex);
  3688. end;
  3689. //2.6.4. bug workaround
  3690. {$IFDEF VER2_6}
  3691. Procedure TTableDataInsertAllRequest.SetArrayLength(Const AName : String; ALength : Longint);
  3692. begin
  3693. Case AName of
  3694. 'rows' : SetLength(Frows,ALength);
  3695. else
  3696. Inherited SetArrayLength(AName,ALength);
  3697. end;
  3698. end;
  3699. {$ENDIF VER2_6}
  3700. { --------------------------------------------------------------------
  3701. TTableDataInsertAllResponseTypeinsertErrorsItem
  3702. --------------------------------------------------------------------}
  3703. Procedure TTableDataInsertAllResponseTypeinsertErrorsItem.Seterrors(AIndex : Integer; const AValue : TTableDataInsertAllResponseTypeinsertErrorsItemTypeerrorsArray);
  3704. begin
  3705. If (Ferrors=AValue) then exit;
  3706. Ferrors:=AValue;
  3707. MarkPropertyChanged(AIndex);
  3708. end;
  3709. Procedure TTableDataInsertAllResponseTypeinsertErrorsItem.Setindex(AIndex : Integer; const AValue : integer);
  3710. begin
  3711. If (Findex=AValue) then exit;
  3712. Findex:=AValue;
  3713. MarkPropertyChanged(AIndex);
  3714. end;
  3715. //2.6.4. bug workaround
  3716. {$IFDEF VER2_6}
  3717. Procedure TTableDataInsertAllResponseTypeinsertErrorsItem.SetArrayLength(Const AName : String; ALength : Longint);
  3718. begin
  3719. Case AName of
  3720. 'errors' : SetLength(Ferrors,ALength);
  3721. else
  3722. Inherited SetArrayLength(AName,ALength);
  3723. end;
  3724. end;
  3725. {$ENDIF VER2_6}
  3726. { --------------------------------------------------------------------
  3727. TTableDataInsertAllResponse
  3728. --------------------------------------------------------------------}
  3729. Procedure TTableDataInsertAllResponse.SetinsertErrors(AIndex : Integer; const AValue : TTableDataInsertAllResponseTypeinsertErrorsArray);
  3730. begin
  3731. If (FinsertErrors=AValue) then exit;
  3732. FinsertErrors:=AValue;
  3733. MarkPropertyChanged(AIndex);
  3734. end;
  3735. Procedure TTableDataInsertAllResponse.Setkind(AIndex : Integer; const AValue : String);
  3736. begin
  3737. If (Fkind=AValue) then exit;
  3738. Fkind:=AValue;
  3739. MarkPropertyChanged(AIndex);
  3740. end;
  3741. //2.6.4. bug workaround
  3742. {$IFDEF VER2_6}
  3743. Procedure TTableDataInsertAllResponse.SetArrayLength(Const AName : String; ALength : Longint);
  3744. begin
  3745. Case AName of
  3746. 'inserterrors' : SetLength(FinsertErrors,ALength);
  3747. else
  3748. Inherited SetArrayLength(AName,ALength);
  3749. end;
  3750. end;
  3751. {$ENDIF VER2_6}
  3752. { --------------------------------------------------------------------
  3753. TTableDataList
  3754. --------------------------------------------------------------------}
  3755. Procedure TTableDataList.Setetag(AIndex : Integer; const AValue : String);
  3756. begin
  3757. If (Fetag=AValue) then exit;
  3758. Fetag:=AValue;
  3759. MarkPropertyChanged(AIndex);
  3760. end;
  3761. Procedure TTableDataList.Setkind(AIndex : Integer; const AValue : String);
  3762. begin
  3763. If (Fkind=AValue) then exit;
  3764. Fkind:=AValue;
  3765. MarkPropertyChanged(AIndex);
  3766. end;
  3767. Procedure TTableDataList.SetpageToken(AIndex : Integer; const AValue : String);
  3768. begin
  3769. If (FpageToken=AValue) then exit;
  3770. FpageToken:=AValue;
  3771. MarkPropertyChanged(AIndex);
  3772. end;
  3773. Procedure TTableDataList.Setrows(AIndex : Integer; const AValue : TTableDataListTyperowsArray);
  3774. begin
  3775. If (Frows=AValue) then exit;
  3776. Frows:=AValue;
  3777. MarkPropertyChanged(AIndex);
  3778. end;
  3779. Procedure TTableDataList.SettotalRows(AIndex : Integer; const AValue : String);
  3780. begin
  3781. If (FtotalRows=AValue) then exit;
  3782. FtotalRows:=AValue;
  3783. MarkPropertyChanged(AIndex);
  3784. end;
  3785. //2.6.4. bug workaround
  3786. {$IFDEF VER2_6}
  3787. Procedure TTableDataList.SetArrayLength(Const AName : String; ALength : Longint);
  3788. begin
  3789. Case AName of
  3790. 'rows' : SetLength(Frows,ALength);
  3791. else
  3792. Inherited SetArrayLength(AName,ALength);
  3793. end;
  3794. end;
  3795. {$ENDIF VER2_6}
  3796. { --------------------------------------------------------------------
  3797. TTableFieldSchema
  3798. --------------------------------------------------------------------}
  3799. Procedure TTableFieldSchema.Setdescription(AIndex : Integer; const AValue : String);
  3800. begin
  3801. If (Fdescription=AValue) then exit;
  3802. Fdescription:=AValue;
  3803. MarkPropertyChanged(AIndex);
  3804. end;
  3805. Procedure TTableFieldSchema.Setfields(AIndex : Integer; const AValue : TTableFieldSchemaTypefieldsArray);
  3806. begin
  3807. If (Ffields=AValue) then exit;
  3808. Ffields:=AValue;
  3809. MarkPropertyChanged(AIndex);
  3810. end;
  3811. Procedure TTableFieldSchema.Setmode(AIndex : Integer; const AValue : String);
  3812. begin
  3813. If (Fmode=AValue) then exit;
  3814. Fmode:=AValue;
  3815. MarkPropertyChanged(AIndex);
  3816. end;
  3817. Procedure TTableFieldSchema.Setname(AIndex : Integer; const AValue : String);
  3818. begin
  3819. If (Fname=AValue) then exit;
  3820. Fname:=AValue;
  3821. MarkPropertyChanged(AIndex);
  3822. end;
  3823. Procedure TTableFieldSchema.Set_type(AIndex : Integer; const AValue : String);
  3824. begin
  3825. If (F_type=AValue) then exit;
  3826. F_type:=AValue;
  3827. MarkPropertyChanged(AIndex);
  3828. end;
  3829. Class Function TTableFieldSchema.ExportPropertyName(Const AName : String) :String;
  3830. begin
  3831. Case AName of
  3832. '_type' : Result:='type';
  3833. else
  3834. Result:=Inherited ExportPropertyName(AName);
  3835. end;
  3836. end;
  3837. //2.6.4. bug workaround
  3838. {$IFDEF VER2_6}
  3839. Procedure TTableFieldSchema.SetArrayLength(Const AName : String; ALength : Longint);
  3840. begin
  3841. Case AName of
  3842. 'fields' : SetLength(Ffields,ALength);
  3843. else
  3844. Inherited SetArrayLength(AName,ALength);
  3845. end;
  3846. end;
  3847. {$ENDIF VER2_6}
  3848. { --------------------------------------------------------------------
  3849. TTableListTypetablesItem
  3850. --------------------------------------------------------------------}
  3851. Procedure TTableListTypetablesItem.SetfriendlyName(AIndex : Integer; const AValue : String);
  3852. begin
  3853. If (FfriendlyName=AValue) then exit;
  3854. FfriendlyName:=AValue;
  3855. MarkPropertyChanged(AIndex);
  3856. end;
  3857. Procedure TTableListTypetablesItem.Setid(AIndex : Integer; const AValue : String);
  3858. begin
  3859. If (Fid=AValue) then exit;
  3860. Fid:=AValue;
  3861. MarkPropertyChanged(AIndex);
  3862. end;
  3863. Procedure TTableListTypetablesItem.Setkind(AIndex : Integer; const AValue : String);
  3864. begin
  3865. If (Fkind=AValue) then exit;
  3866. Fkind:=AValue;
  3867. MarkPropertyChanged(AIndex);
  3868. end;
  3869. Procedure TTableListTypetablesItem.SettableReference(AIndex : Integer; const AValue : TTableReference);
  3870. begin
  3871. If (FtableReference=AValue) then exit;
  3872. FtableReference:=AValue;
  3873. MarkPropertyChanged(AIndex);
  3874. end;
  3875. Procedure TTableListTypetablesItem.Set_type(AIndex : Integer; const AValue : String);
  3876. begin
  3877. If (F_type=AValue) then exit;
  3878. F_type:=AValue;
  3879. MarkPropertyChanged(AIndex);
  3880. end;
  3881. Class Function TTableListTypetablesItem.ExportPropertyName(Const AName : String) :String;
  3882. begin
  3883. Case AName of
  3884. '_type' : Result:='type';
  3885. else
  3886. Result:=Inherited ExportPropertyName(AName);
  3887. end;
  3888. end;
  3889. { --------------------------------------------------------------------
  3890. TTableList
  3891. --------------------------------------------------------------------}
  3892. Procedure TTableList.Setetag(AIndex : Integer; const AValue : String);
  3893. begin
  3894. If (Fetag=AValue) then exit;
  3895. Fetag:=AValue;
  3896. MarkPropertyChanged(AIndex);
  3897. end;
  3898. Procedure TTableList.Setkind(AIndex : Integer; const AValue : String);
  3899. begin
  3900. If (Fkind=AValue) then exit;
  3901. Fkind:=AValue;
  3902. MarkPropertyChanged(AIndex);
  3903. end;
  3904. Procedure TTableList.SetnextPageToken(AIndex : Integer; const AValue : String);
  3905. begin
  3906. If (FnextPageToken=AValue) then exit;
  3907. FnextPageToken:=AValue;
  3908. MarkPropertyChanged(AIndex);
  3909. end;
  3910. Procedure TTableList.Settables(AIndex : Integer; const AValue : TTableListTypetablesArray);
  3911. begin
  3912. If (Ftables=AValue) then exit;
  3913. Ftables:=AValue;
  3914. MarkPropertyChanged(AIndex);
  3915. end;
  3916. Procedure TTableList.SettotalItems(AIndex : Integer; const AValue : integer);
  3917. begin
  3918. If (FtotalItems=AValue) then exit;
  3919. FtotalItems:=AValue;
  3920. MarkPropertyChanged(AIndex);
  3921. end;
  3922. //2.6.4. bug workaround
  3923. {$IFDEF VER2_6}
  3924. Procedure TTableList.SetArrayLength(Const AName : String; ALength : Longint);
  3925. begin
  3926. Case AName of
  3927. 'tables' : SetLength(Ftables,ALength);
  3928. else
  3929. Inherited SetArrayLength(AName,ALength);
  3930. end;
  3931. end;
  3932. {$ENDIF VER2_6}
  3933. { --------------------------------------------------------------------
  3934. TTableReference
  3935. --------------------------------------------------------------------}
  3936. Procedure TTableReference.SetdatasetId(AIndex : Integer; const AValue : String);
  3937. begin
  3938. If (FdatasetId=AValue) then exit;
  3939. FdatasetId:=AValue;
  3940. MarkPropertyChanged(AIndex);
  3941. end;
  3942. Procedure TTableReference.SetprojectId(AIndex : Integer; const AValue : String);
  3943. begin
  3944. If (FprojectId=AValue) then exit;
  3945. FprojectId:=AValue;
  3946. MarkPropertyChanged(AIndex);
  3947. end;
  3948. Procedure TTableReference.SettableId(AIndex : Integer; const AValue : String);
  3949. begin
  3950. If (FtableId=AValue) then exit;
  3951. FtableId:=AValue;
  3952. MarkPropertyChanged(AIndex);
  3953. end;
  3954. { --------------------------------------------------------------------
  3955. TTableRow
  3956. --------------------------------------------------------------------}
  3957. Procedure TTableRow.Setf(AIndex : Integer; const AValue : TTableRowTypefArray);
  3958. begin
  3959. If (Ff=AValue) then exit;
  3960. Ff:=AValue;
  3961. MarkPropertyChanged(AIndex);
  3962. end;
  3963. //2.6.4. bug workaround
  3964. {$IFDEF VER2_6}
  3965. Procedure TTableRow.SetArrayLength(Const AName : String; ALength : Longint);
  3966. begin
  3967. Case AName of
  3968. 'f' : SetLength(Ff,ALength);
  3969. else
  3970. Inherited SetArrayLength(AName,ALength);
  3971. end;
  3972. end;
  3973. {$ENDIF VER2_6}
  3974. { --------------------------------------------------------------------
  3975. TTableSchema
  3976. --------------------------------------------------------------------}
  3977. Procedure TTableSchema.Setfields(AIndex : Integer; const AValue : TTableSchemaTypefieldsArray);
  3978. begin
  3979. If (Ffields=AValue) then exit;
  3980. Ffields:=AValue;
  3981. MarkPropertyChanged(AIndex);
  3982. end;
  3983. //2.6.4. bug workaround
  3984. {$IFDEF VER2_6}
  3985. Procedure TTableSchema.SetArrayLength(Const AName : String; ALength : Longint);
  3986. begin
  3987. Case AName of
  3988. 'fields' : SetLength(Ffields,ALength);
  3989. else
  3990. Inherited SetArrayLength(AName,ALength);
  3991. end;
  3992. end;
  3993. {$ENDIF VER2_6}
  3994. { --------------------------------------------------------------------
  3995. TTimePartitioning
  3996. --------------------------------------------------------------------}
  3997. Procedure TTimePartitioning.SetexpirationMs(AIndex : Integer; const AValue : String);
  3998. begin
  3999. If (FexpirationMs=AValue) then exit;
  4000. FexpirationMs:=AValue;
  4001. MarkPropertyChanged(AIndex);
  4002. end;
  4003. Procedure TTimePartitioning.Set_type(AIndex : Integer; const AValue : String);
  4004. begin
  4005. If (F_type=AValue) then exit;
  4006. F_type:=AValue;
  4007. MarkPropertyChanged(AIndex);
  4008. end;
  4009. Class Function TTimePartitioning.ExportPropertyName(Const AName : String) :String;
  4010. begin
  4011. Case AName of
  4012. '_type' : Result:='type';
  4013. else
  4014. Result:=Inherited ExportPropertyName(AName);
  4015. end;
  4016. end;
  4017. { --------------------------------------------------------------------
  4018. TUserDefinedFunctionResource
  4019. --------------------------------------------------------------------}
  4020. Procedure TUserDefinedFunctionResource.SetinlineCode(AIndex : Integer; const AValue : String);
  4021. begin
  4022. If (FinlineCode=AValue) then exit;
  4023. FinlineCode:=AValue;
  4024. MarkPropertyChanged(AIndex);
  4025. end;
  4026. Procedure TUserDefinedFunctionResource.SetresourceUri(AIndex : Integer; const AValue : String);
  4027. begin
  4028. If (FresourceUri=AValue) then exit;
  4029. FresourceUri:=AValue;
  4030. MarkPropertyChanged(AIndex);
  4031. end;
  4032. { --------------------------------------------------------------------
  4033. TViewDefinition
  4034. --------------------------------------------------------------------}
  4035. Procedure TViewDefinition.Setquery(AIndex : Integer; const AValue : String);
  4036. begin
  4037. If (Fquery=AValue) then exit;
  4038. Fquery:=AValue;
  4039. MarkPropertyChanged(AIndex);
  4040. end;
  4041. Procedure TViewDefinition.SetuserDefinedFunctionResources(AIndex : Integer; const AValue : TViewDefinitionTypeuserDefinedFunctionResourcesArray);
  4042. begin
  4043. If (FuserDefinedFunctionResources=AValue) then exit;
  4044. FuserDefinedFunctionResources:=AValue;
  4045. MarkPropertyChanged(AIndex);
  4046. end;
  4047. //2.6.4. bug workaround
  4048. {$IFDEF VER2_6}
  4049. Procedure TViewDefinition.SetArrayLength(Const AName : String; ALength : Longint);
  4050. begin
  4051. Case AName of
  4052. 'userdefinedfunctionresources' : SetLength(FuserDefinedFunctionResources,ALength);
  4053. else
  4054. Inherited SetArrayLength(AName,ALength);
  4055. end;
  4056. end;
  4057. {$ENDIF VER2_6}
  4058. { --------------------------------------------------------------------
  4059. TDatasetsResource
  4060. --------------------------------------------------------------------}
  4061. Class Function TDatasetsResource.ResourceName : String;
  4062. begin
  4063. Result:='datasets';
  4064. end;
  4065. Class Function TDatasetsResource.DefaultAPI : TGoogleAPIClass;
  4066. begin
  4067. Result:=TbigqueryAPI;
  4068. end;
  4069. Procedure TDatasetsResource.Delete(datasetId: string; projectId: string; AQuery : string = '');
  4070. Const
  4071. _HTTPMethod = 'DELETE';
  4072. _Path = 'projects/{projectId}/datasets/{datasetId}';
  4073. _Methodid = 'bigquery.datasets.delete';
  4074. Var
  4075. _P : String;
  4076. begin
  4077. _P:=SubstitutePath(_Path,['datasetId',datasetId,'projectId',projectId]);
  4078. ServiceCall(_HTTPMethod,_P,AQuery,Nil,Nil);
  4079. end;
  4080. Procedure TDatasetsResource.Delete(datasetId: string; projectId: string; AQuery : TDatasetsdeleteOptions);
  4081. Var
  4082. _Q : String;
  4083. begin
  4084. _Q:='';
  4085. AddToQuery(_Q,'deleteContents',AQuery.deleteContents);
  4086. Delete(datasetId,projectId,_Q);
  4087. end;
  4088. Function TDatasetsResource.Get(datasetId: string; projectId: string) : TDataset;
  4089. Const
  4090. _HTTPMethod = 'GET';
  4091. _Path = 'projects/{projectId}/datasets/{datasetId}';
  4092. _Methodid = 'bigquery.datasets.get';
  4093. Var
  4094. _P : String;
  4095. begin
  4096. _P:=SubstitutePath(_Path,['datasetId',datasetId,'projectId',projectId]);
  4097. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TDataset) as TDataset;
  4098. end;
  4099. Function TDatasetsResource.Insert(projectId: string; aDataset : TDataset) : TDataset;
  4100. Const
  4101. _HTTPMethod = 'POST';
  4102. _Path = 'projects/{projectId}/datasets';
  4103. _Methodid = 'bigquery.datasets.insert';
  4104. Var
  4105. _P : String;
  4106. begin
  4107. _P:=SubstitutePath(_Path,['projectId',projectId]);
  4108. Result:=ServiceCall(_HTTPMethod,_P,'',aDataset,TDataset) as TDataset;
  4109. end;
  4110. Function TDatasetsResource.List(projectId: string; AQuery : string = '') : TDatasetList;
  4111. Const
  4112. _HTTPMethod = 'GET';
  4113. _Path = 'projects/{projectId}/datasets';
  4114. _Methodid = 'bigquery.datasets.list';
  4115. Var
  4116. _P : String;
  4117. begin
  4118. _P:=SubstitutePath(_Path,['projectId',projectId]);
  4119. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TDatasetList) as TDatasetList;
  4120. end;
  4121. Function TDatasetsResource.List(projectId: string; AQuery : TDatasetslistOptions) : TDatasetList;
  4122. Var
  4123. _Q : String;
  4124. begin
  4125. _Q:='';
  4126. AddToQuery(_Q,'all',AQuery.all);
  4127. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  4128. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  4129. Result:=List(projectId,_Q);
  4130. end;
  4131. Function TDatasetsResource.Patch(datasetId: string; projectId: string; aDataset : TDataset) : TDataset;
  4132. Const
  4133. _HTTPMethod = 'PATCH';
  4134. _Path = 'projects/{projectId}/datasets/{datasetId}';
  4135. _Methodid = 'bigquery.datasets.patch';
  4136. Var
  4137. _P : String;
  4138. begin
  4139. _P:=SubstitutePath(_Path,['datasetId',datasetId,'projectId',projectId]);
  4140. Result:=ServiceCall(_HTTPMethod,_P,'',aDataset,TDataset) as TDataset;
  4141. end;
  4142. Function TDatasetsResource.Update(datasetId: string; projectId: string; aDataset : TDataset) : TDataset;
  4143. Const
  4144. _HTTPMethod = 'PUT';
  4145. _Path = 'projects/{projectId}/datasets/{datasetId}';
  4146. _Methodid = 'bigquery.datasets.update';
  4147. Var
  4148. _P : String;
  4149. begin
  4150. _P:=SubstitutePath(_Path,['datasetId',datasetId,'projectId',projectId]);
  4151. Result:=ServiceCall(_HTTPMethod,_P,'',aDataset,TDataset) as TDataset;
  4152. end;
  4153. { --------------------------------------------------------------------
  4154. TJobsResource
  4155. --------------------------------------------------------------------}
  4156. Class Function TJobsResource.ResourceName : String;
  4157. begin
  4158. Result:='jobs';
  4159. end;
  4160. Class Function TJobsResource.DefaultAPI : TGoogleAPIClass;
  4161. begin
  4162. Result:=TbigqueryAPI;
  4163. end;
  4164. Function TJobsResource.Cancel(jobId: string; projectId: string) : TJobCancelResponse;
  4165. Const
  4166. _HTTPMethod = 'POST';
  4167. _Path = 'project/{projectId}/jobs/{jobId}/cancel';
  4168. _Methodid = 'bigquery.jobs.cancel';
  4169. Var
  4170. _P : String;
  4171. begin
  4172. _P:=SubstitutePath(_Path,['jobId',jobId,'projectId',projectId]);
  4173. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TJobCancelResponse) as TJobCancelResponse;
  4174. end;
  4175. Function TJobsResource.Get(jobId: string; projectId: string) : TJob;
  4176. Const
  4177. _HTTPMethod = 'GET';
  4178. _Path = 'projects/{projectId}/jobs/{jobId}';
  4179. _Methodid = 'bigquery.jobs.get';
  4180. Var
  4181. _P : String;
  4182. begin
  4183. _P:=SubstitutePath(_Path,['jobId',jobId,'projectId',projectId]);
  4184. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TJob) as TJob;
  4185. end;
  4186. Function TJobsResource.GetQueryResults(jobId: string; projectId: string; AQuery : string = '') : TGetQueryResultsResponse;
  4187. Const
  4188. _HTTPMethod = 'GET';
  4189. _Path = 'projects/{projectId}/queries/{jobId}';
  4190. _Methodid = 'bigquery.jobs.getQueryResults';
  4191. Var
  4192. _P : String;
  4193. begin
  4194. _P:=SubstitutePath(_Path,['jobId',jobId,'projectId',projectId]);
  4195. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TGetQueryResultsResponse) as TGetQueryResultsResponse;
  4196. end;
  4197. Function TJobsResource.GetQueryResults(jobId: string; projectId: string; AQuery : TJobsgetQueryResultsOptions) : TGetQueryResultsResponse;
  4198. Var
  4199. _Q : String;
  4200. begin
  4201. _Q:='';
  4202. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  4203. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  4204. AddToQuery(_Q,'startIndex',AQuery.startIndex);
  4205. AddToQuery(_Q,'timeoutMs',AQuery.timeoutMs);
  4206. Result:=GetQueryResults(jobId,projectId,_Q);
  4207. end;
  4208. Function TJobsResource.Insert(projectId: string; aJob : TJob) : TJob;
  4209. Const
  4210. _HTTPMethod = 'POST';
  4211. _Path = 'projects/{projectId}/jobs';
  4212. _Methodid = 'bigquery.jobs.insert';
  4213. Var
  4214. _P : String;
  4215. begin
  4216. _P:=SubstitutePath(_Path,['projectId',projectId]);
  4217. Result:=ServiceCall(_HTTPMethod,_P,'',aJob,TJob) as TJob;
  4218. end;
  4219. Function TJobsResource.List(projectId: string; AQuery : string = '') : TJobList;
  4220. Const
  4221. _HTTPMethod = 'GET';
  4222. _Path = 'projects/{projectId}/jobs';
  4223. _Methodid = 'bigquery.jobs.list';
  4224. Var
  4225. _P : String;
  4226. begin
  4227. _P:=SubstitutePath(_Path,['projectId',projectId]);
  4228. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TJobList) as TJobList;
  4229. end;
  4230. Function TJobsResource.List(projectId: string; AQuery : TJobslistOptions) : TJobList;
  4231. Var
  4232. _Q : String;
  4233. begin
  4234. _Q:='';
  4235. AddToQuery(_Q,'allUsers',AQuery.allUsers);
  4236. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  4237. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  4238. AddToQuery(_Q,'projection',AQuery.projection);
  4239. AddToQuery(_Q,'stateFilter',AQuery.stateFilter);
  4240. Result:=List(projectId,_Q);
  4241. end;
  4242. Function TJobsResource.Query(projectId: string; aQueryRequest : TQueryRequest) : TQueryResponse;
  4243. Const
  4244. _HTTPMethod = 'POST';
  4245. _Path = 'projects/{projectId}/queries';
  4246. _Methodid = 'bigquery.jobs.query';
  4247. Var
  4248. _P : String;
  4249. begin
  4250. _P:=SubstitutePath(_Path,['projectId',projectId]);
  4251. Result:=ServiceCall(_HTTPMethod,_P,'',aQueryRequest,TQueryResponse) as TQueryResponse;
  4252. end;
  4253. { --------------------------------------------------------------------
  4254. TProjectsResource
  4255. --------------------------------------------------------------------}
  4256. Class Function TProjectsResource.ResourceName : String;
  4257. begin
  4258. Result:='projects';
  4259. end;
  4260. Class Function TProjectsResource.DefaultAPI : TGoogleAPIClass;
  4261. begin
  4262. Result:=TbigqueryAPI;
  4263. end;
  4264. Function TProjectsResource.List(AQuery : string = '') : TProjectList;
  4265. Const
  4266. _HTTPMethod = 'GET';
  4267. _Path = 'projects';
  4268. _Methodid = 'bigquery.projects.list';
  4269. begin
  4270. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TProjectList) as TProjectList;
  4271. end;
  4272. Function TProjectsResource.List(AQuery : TProjectslistOptions) : TProjectList;
  4273. Var
  4274. _Q : String;
  4275. begin
  4276. _Q:='';
  4277. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  4278. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  4279. Result:=List(_Q);
  4280. end;
  4281. { --------------------------------------------------------------------
  4282. TTabledataResource
  4283. --------------------------------------------------------------------}
  4284. Class Function TTabledataResource.ResourceName : String;
  4285. begin
  4286. Result:='tabledata';
  4287. end;
  4288. Class Function TTabledataResource.DefaultAPI : TGoogleAPIClass;
  4289. begin
  4290. Result:=TbigqueryAPI;
  4291. end;
  4292. Function TTabledataResource.InsertAll(datasetId: string; projectId: string; tableId: string; aTableDataInsertAllRequest : TTableDataInsertAllRequest) : TTableDataInsertAllResponse;
  4293. Const
  4294. _HTTPMethod = 'POST';
  4295. _Path = 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll';
  4296. _Methodid = 'bigquery.tabledata.insertAll';
  4297. Var
  4298. _P : String;
  4299. begin
  4300. _P:=SubstitutePath(_Path,['datasetId',datasetId,'projectId',projectId,'tableId',tableId]);
  4301. Result:=ServiceCall(_HTTPMethod,_P,'',aTableDataInsertAllRequest,TTableDataInsertAllResponse) as TTableDataInsertAllResponse;
  4302. end;
  4303. Function TTabledataResource.List(datasetId: string; projectId: string; tableId: string; AQuery : string = '') : TTableDataList;
  4304. Const
  4305. _HTTPMethod = 'GET';
  4306. _Path = 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data';
  4307. _Methodid = 'bigquery.tabledata.list';
  4308. Var
  4309. _P : String;
  4310. begin
  4311. _P:=SubstitutePath(_Path,['datasetId',datasetId,'projectId',projectId,'tableId',tableId]);
  4312. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TTableDataList) as TTableDataList;
  4313. end;
  4314. Function TTabledataResource.List(datasetId: string; projectId: string; tableId: string; AQuery : TTabledatalistOptions) : TTableDataList;
  4315. Var
  4316. _Q : String;
  4317. begin
  4318. _Q:='';
  4319. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  4320. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  4321. AddToQuery(_Q,'startIndex',AQuery.startIndex);
  4322. Result:=List(datasetId,projectId,tableId,_Q);
  4323. end;
  4324. { --------------------------------------------------------------------
  4325. TTablesResource
  4326. --------------------------------------------------------------------}
  4327. Class Function TTablesResource.ResourceName : String;
  4328. begin
  4329. Result:='tables';
  4330. end;
  4331. Class Function TTablesResource.DefaultAPI : TGoogleAPIClass;
  4332. begin
  4333. Result:=TbigqueryAPI;
  4334. end;
  4335. Procedure TTablesResource.Delete(datasetId: string; projectId: string; tableId: string);
  4336. Const
  4337. _HTTPMethod = 'DELETE';
  4338. _Path = 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}';
  4339. _Methodid = 'bigquery.tables.delete';
  4340. Var
  4341. _P : String;
  4342. begin
  4343. _P:=SubstitutePath(_Path,['datasetId',datasetId,'projectId',projectId,'tableId',tableId]);
  4344. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  4345. end;
  4346. Function TTablesResource.Get(datasetId: string; projectId: string; tableId: string) : TTable;
  4347. Const
  4348. _HTTPMethod = 'GET';
  4349. _Path = 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}';
  4350. _Methodid = 'bigquery.tables.get';
  4351. Var
  4352. _P : String;
  4353. begin
  4354. _P:=SubstitutePath(_Path,['datasetId',datasetId,'projectId',projectId,'tableId',tableId]);
  4355. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TTable) as TTable;
  4356. end;
  4357. Function TTablesResource.Insert(datasetId: string; projectId: string; aTable : TTable) : TTable;
  4358. Const
  4359. _HTTPMethod = 'POST';
  4360. _Path = 'projects/{projectId}/datasets/{datasetId}/tables';
  4361. _Methodid = 'bigquery.tables.insert';
  4362. Var
  4363. _P : String;
  4364. begin
  4365. _P:=SubstitutePath(_Path,['datasetId',datasetId,'projectId',projectId]);
  4366. Result:=ServiceCall(_HTTPMethod,_P,'',aTable,TTable) as TTable;
  4367. end;
  4368. Function TTablesResource.List(datasetId: string; projectId: string; AQuery : string = '') : TTableList;
  4369. Const
  4370. _HTTPMethod = 'GET';
  4371. _Path = 'projects/{projectId}/datasets/{datasetId}/tables';
  4372. _Methodid = 'bigquery.tables.list';
  4373. Var
  4374. _P : String;
  4375. begin
  4376. _P:=SubstitutePath(_Path,['datasetId',datasetId,'projectId',projectId]);
  4377. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TTableList) as TTableList;
  4378. end;
  4379. Function TTablesResource.List(datasetId: string; projectId: string; AQuery : TTableslistOptions) : TTableList;
  4380. Var
  4381. _Q : String;
  4382. begin
  4383. _Q:='';
  4384. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  4385. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  4386. Result:=List(datasetId,projectId,_Q);
  4387. end;
  4388. Function TTablesResource.Patch(datasetId: string; projectId: string; tableId: string; aTable : TTable) : TTable;
  4389. Const
  4390. _HTTPMethod = 'PATCH';
  4391. _Path = 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}';
  4392. _Methodid = 'bigquery.tables.patch';
  4393. Var
  4394. _P : String;
  4395. begin
  4396. _P:=SubstitutePath(_Path,['datasetId',datasetId,'projectId',projectId,'tableId',tableId]);
  4397. Result:=ServiceCall(_HTTPMethod,_P,'',aTable,TTable) as TTable;
  4398. end;
  4399. Function TTablesResource.Update(datasetId: string; projectId: string; tableId: string; aTable : TTable) : TTable;
  4400. Const
  4401. _HTTPMethod = 'PUT';
  4402. _Path = 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}';
  4403. _Methodid = 'bigquery.tables.update';
  4404. Var
  4405. _P : String;
  4406. begin
  4407. _P:=SubstitutePath(_Path,['datasetId',datasetId,'projectId',projectId,'tableId',tableId]);
  4408. Result:=ServiceCall(_HTTPMethod,_P,'',aTable,TTable) as TTable;
  4409. end;
  4410. { --------------------------------------------------------------------
  4411. TBigqueryAPI
  4412. --------------------------------------------------------------------}
  4413. Class Function TBigqueryAPI.APIName : String;
  4414. begin
  4415. Result:='bigquery';
  4416. end;
  4417. Class Function TBigqueryAPI.APIVersion : String;
  4418. begin
  4419. Result:='v2';
  4420. end;
  4421. Class Function TBigqueryAPI.APIRevision : String;
  4422. begin
  4423. Result:='20160511';
  4424. end;
  4425. Class Function TBigqueryAPI.APIID : String;
  4426. begin
  4427. Result:='bigquery:v2';
  4428. end;
  4429. Class Function TBigqueryAPI.APITitle : String;
  4430. begin
  4431. Result:='BigQuery API';
  4432. end;
  4433. Class Function TBigqueryAPI.APIDescription : String;
  4434. begin
  4435. Result:='A data platform for customers to create, manage, share and query data.';
  4436. end;
  4437. Class Function TBigqueryAPI.APIOwnerDomain : String;
  4438. begin
  4439. Result:='google.com';
  4440. end;
  4441. Class Function TBigqueryAPI.APIOwnerName : String;
  4442. begin
  4443. Result:='Google';
  4444. end;
  4445. Class Function TBigqueryAPI.APIIcon16 : String;
  4446. begin
  4447. Result:='https://www.google.com/images/icons/product/search-16.gif';
  4448. end;
  4449. Class Function TBigqueryAPI.APIIcon32 : String;
  4450. begin
  4451. Result:='https://www.google.com/images/icons/product/search-32.gif';
  4452. end;
  4453. Class Function TBigqueryAPI.APIdocumentationLink : String;
  4454. begin
  4455. Result:='https://cloud.google.com/bigquery/';
  4456. end;
  4457. Class Function TBigqueryAPI.APIrootUrl : string;
  4458. begin
  4459. Result:='https://www.googleapis.com/';
  4460. end;
  4461. Class Function TBigqueryAPI.APIbasePath : string;
  4462. begin
  4463. Result:='/bigquery/v2/';
  4464. end;
  4465. Class Function TBigqueryAPI.APIbaseURL : String;
  4466. begin
  4467. Result:='https://www.googleapis.com/bigquery/v2/';
  4468. end;
  4469. Class Function TBigqueryAPI.APIProtocol : string;
  4470. begin
  4471. Result:='rest';
  4472. end;
  4473. Class Function TBigqueryAPI.APIservicePath : string;
  4474. begin
  4475. Result:='bigquery/v2/';
  4476. end;
  4477. Class Function TBigqueryAPI.APIbatchPath : String;
  4478. begin
  4479. Result:='batch';
  4480. end;
  4481. Class Function TBigqueryAPI.APIAuthScopes : TScopeInfoArray;
  4482. begin
  4483. SetLength(Result,7);
  4484. Result[0].Name:='https://www.googleapis.com/auth/bigquery';
  4485. Result[0].Description:='View and manage your data in Google BigQuery';
  4486. Result[1].Name:='https://www.googleapis.com/auth/bigquery.insertdata';
  4487. Result[1].Description:='Insert data into Google BigQuery';
  4488. Result[2].Name:='https://www.googleapis.com/auth/cloud-platform';
  4489. Result[2].Description:='View and manage your data across Google Cloud Platform services';
  4490. Result[3].Name:='https://www.googleapis.com/auth/cloud-platform.read-only';
  4491. Result[3].Description:='View your data across Google Cloud Platform services';
  4492. Result[4].Name:='https://www.googleapis.com/auth/devstorage.full_control';
  4493. Result[4].Description:='Manage your data and permissions in Google Cloud Storage';
  4494. Result[5].Name:='https://www.googleapis.com/auth/devstorage.read_only';
  4495. Result[5].Description:='View your data in Google Cloud Storage';
  4496. Result[6].Name:='https://www.googleapis.com/auth/devstorage.read_write';
  4497. Result[6].Description:='Manage your data in Google Cloud Storage';
  4498. end;
  4499. Class Function TBigqueryAPI.APINeedsAuth : Boolean;
  4500. begin
  4501. Result:=True;
  4502. end;
  4503. Class Procedure TBigqueryAPI.RegisterAPIResources;
  4504. begin
  4505. TBigtableColumn.RegisterObject;
  4506. TBigtableColumnFamily.RegisterObject;
  4507. TBigtableOptions.RegisterObject;
  4508. TCsvOptions.RegisterObject;
  4509. TDatasetTypeaccessItem.RegisterObject;
  4510. TDataset.RegisterObject;
  4511. TDatasetListTypedatasetsItem.RegisterObject;
  4512. TDatasetList.RegisterObject;
  4513. TDatasetReference.RegisterObject;
  4514. TErrorProto.RegisterObject;
  4515. TExplainQueryStage.RegisterObject;
  4516. TExplainQueryStep.RegisterObject;
  4517. TExternalDataConfiguration.RegisterObject;
  4518. TGetQueryResultsResponse.RegisterObject;
  4519. TGoogleSheetsOptions.RegisterObject;
  4520. TJob.RegisterObject;
  4521. TJobCancelResponse.RegisterObject;
  4522. TJobConfiguration.RegisterObject;
  4523. TJobConfigurationExtract.RegisterObject;
  4524. TJobConfigurationLoad.RegisterObject;
  4525. TJobConfigurationQueryTypetableDefinitions.RegisterObject;
  4526. TJobConfigurationQuery.RegisterObject;
  4527. TJobConfigurationTableCopy.RegisterObject;
  4528. TJobListTypejobsItem.RegisterObject;
  4529. TJobList.RegisterObject;
  4530. TJobReference.RegisterObject;
  4531. TJobStatistics.RegisterObject;
  4532. TJobStatistics2.RegisterObject;
  4533. TJobStatistics3.RegisterObject;
  4534. TJobStatistics4.RegisterObject;
  4535. TJobStatus.RegisterObject;
  4536. TJsonObject.RegisterObject;
  4537. TProjectListTypeprojectsItem.RegisterObject;
  4538. TProjectList.RegisterObject;
  4539. TProjectReference.RegisterObject;
  4540. TQueryRequest.RegisterObject;
  4541. TQueryResponse.RegisterObject;
  4542. TStreamingbuffer.RegisterObject;
  4543. TTable.RegisterObject;
  4544. TTableCell.RegisterObject;
  4545. TTableDataInsertAllRequestTyperowsItem.RegisterObject;
  4546. TTableDataInsertAllRequest.RegisterObject;
  4547. TTableDataInsertAllResponseTypeinsertErrorsItem.RegisterObject;
  4548. TTableDataInsertAllResponse.RegisterObject;
  4549. TTableDataList.RegisterObject;
  4550. TTableFieldSchema.RegisterObject;
  4551. TTableListTypetablesItem.RegisterObject;
  4552. TTableList.RegisterObject;
  4553. TTableReference.RegisterObject;
  4554. TTableRow.RegisterObject;
  4555. TTableSchema.RegisterObject;
  4556. TTimePartitioning.RegisterObject;
  4557. TUserDefinedFunctionResource.RegisterObject;
  4558. TViewDefinition.RegisterObject;
  4559. end;
  4560. Function TBigqueryAPI.GetDatasetsInstance : TDatasetsResource;
  4561. begin
  4562. if (FDatasetsInstance=Nil) then
  4563. FDatasetsInstance:=CreateDatasetsResource;
  4564. Result:=FDatasetsInstance;
  4565. end;
  4566. Function TBigqueryAPI.CreateDatasetsResource : TDatasetsResource;
  4567. begin
  4568. Result:=CreateDatasetsResource(Self);
  4569. end;
  4570. Function TBigqueryAPI.CreateDatasetsResource(AOwner : TComponent) : TDatasetsResource;
  4571. begin
  4572. Result:=TDatasetsResource.Create(AOwner);
  4573. Result.API:=Self.API;
  4574. end;
  4575. Function TBigqueryAPI.GetJobsInstance : TJobsResource;
  4576. begin
  4577. if (FJobsInstance=Nil) then
  4578. FJobsInstance:=CreateJobsResource;
  4579. Result:=FJobsInstance;
  4580. end;
  4581. Function TBigqueryAPI.CreateJobsResource : TJobsResource;
  4582. begin
  4583. Result:=CreateJobsResource(Self);
  4584. end;
  4585. Function TBigqueryAPI.CreateJobsResource(AOwner : TComponent) : TJobsResource;
  4586. begin
  4587. Result:=TJobsResource.Create(AOwner);
  4588. Result.API:=Self.API;
  4589. end;
  4590. Function TBigqueryAPI.GetProjectsInstance : TProjectsResource;
  4591. begin
  4592. if (FProjectsInstance=Nil) then
  4593. FProjectsInstance:=CreateProjectsResource;
  4594. Result:=FProjectsInstance;
  4595. end;
  4596. Function TBigqueryAPI.CreateProjectsResource : TProjectsResource;
  4597. begin
  4598. Result:=CreateProjectsResource(Self);
  4599. end;
  4600. Function TBigqueryAPI.CreateProjectsResource(AOwner : TComponent) : TProjectsResource;
  4601. begin
  4602. Result:=TProjectsResource.Create(AOwner);
  4603. Result.API:=Self.API;
  4604. end;
  4605. Function TBigqueryAPI.GetTabledataInstance : TTabledataResource;
  4606. begin
  4607. if (FTabledataInstance=Nil) then
  4608. FTabledataInstance:=CreateTabledataResource;
  4609. Result:=FTabledataInstance;
  4610. end;
  4611. Function TBigqueryAPI.CreateTabledataResource : TTabledataResource;
  4612. begin
  4613. Result:=CreateTabledataResource(Self);
  4614. end;
  4615. Function TBigqueryAPI.CreateTabledataResource(AOwner : TComponent) : TTabledataResource;
  4616. begin
  4617. Result:=TTabledataResource.Create(AOwner);
  4618. Result.API:=Self.API;
  4619. end;
  4620. Function TBigqueryAPI.GetTablesInstance : TTablesResource;
  4621. begin
  4622. if (FTablesInstance=Nil) then
  4623. FTablesInstance:=CreateTablesResource;
  4624. Result:=FTablesInstance;
  4625. end;
  4626. Function TBigqueryAPI.CreateTablesResource : TTablesResource;
  4627. begin
  4628. Result:=CreateTablesResource(Self);
  4629. end;
  4630. Function TBigqueryAPI.CreateTablesResource(AOwner : TComponent) : TTablesResource;
  4631. begin
  4632. Result:=TTablesResource.Create(AOwner);
  4633. Result.API:=Self.API;
  4634. end;
  4635. initialization
  4636. TBigqueryAPI.RegisterAPI;
  4637. end.