googlebigquery.pp 150 KB

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