{-# LANGUAGE DeriveDataTypeable #-}------------------------------------------------------------------- Autogenerated by Thrift ---- ---- DO NOT EDIT UNLESS YOU ARE SURE YOU KNOW WHAT YOU ARE DOING -------------------------------------------------------------------moduleDatabase.Cassandra.Thrift.Cassandra_TypeswhereimportThriftimportData.Typeable(Typeable)importControl.ExceptionimportqualifiedData.MapasMapimportqualifiedData.SetasSetimportData.Int;importPrelude((==),String,Eq,Show,Ord,Maybe(..),(&&),(||),return,IO,Enum,fromEnum,toEnum,Bool(..),(++),($),Double,(-),length)dataConsistencyLevel=ZERO|ONE|QUORUM|DCQUORUM|DCQUORUMSYNC|ALL|ANYderiving(Show,Eq,Typeable,Ord)instanceEnumConsistencyLevelwherefromEnumt=casetofZERO->0ONE->1QUORUM->2DCQUORUM->3DCQUORUMSYNC->4ALL->5ANY->6toEnumt=casetof0->ZERO1->ONE2->QUORUM3->DCQUORUM4->DCQUORUMSYNC5->ALL6->ANY_->throwThriftExceptiondataColumn=Column{f_Column_name::MaybeString,f_Column_value::MaybeString,f_Column_timestamp::MaybeInt64}deriving(Show,Eq,Ord,Typeable)write_Columnoprotrec=dowriteStructBeginoprot"Column"casef_Column_namerecof{Nothing->return();Just_v->dowriteFieldBeginoprot("name",T_STRING,1)writeStringoprot_vwriteFieldEndoprot}casef_Column_valuerecof{Nothing->return();Just_v->dowriteFieldBeginoprot("value",T_STRING,2)writeStringoprot_vwriteFieldEndoprot}casef_Column_timestamprecof{Nothing->return();Just_v->dowriteFieldBeginoprot("timestamp",T_I64,3)writeI64oprot_vwriteFieldEndoprot}writeFieldStopoprotwriteStructEndoprotread_Column_fieldsiprotrec=do(_,_t3,_id4)<-readFieldBeginiprotif_t3==T_STOPthenreturnrecelsecase_id4of1->if_t3==T_STRINGthendos<-readStringiprotread_Column_fieldsiprotrec{f_Column_name=Justs}elsedoskipiprot_t3read_Column_fieldsiprotrec2->if_t3==T_STRINGthendos<-readStringiprotread_Column_fieldsiprotrec{f_Column_value=Justs}elsedoskipiprot_t3read_Column_fieldsiprotrec3->if_t3==T_I64thendos<-readI64iprotread_Column_fieldsiprotrec{f_Column_timestamp=Justs}elsedoskipiprot_t3read_Column_fieldsiprotrec_->doskipiprot_t3readFieldEndiprotread_Column_fieldsiprotrecread_Columniprot=doreadStructBeginiprotrec<-read_Column_fieldsiprot(Column{f_Column_name=Nothing,f_Column_value=Nothing,f_Column_timestamp=Nothing})readStructEndiprotreturnrecdataSuperColumn=SuperColumn{f_SuperColumn_name::MaybeString,f_SuperColumn_columns::Maybe[Column]}deriving(Show,Eq,Ord,Typeable)write_SuperColumnoprotrec=dowriteStructBeginoprot"SuperColumn"casef_SuperColumn_namerecof{Nothing->return();Just_v->dowriteFieldBeginoprot("name",T_STRING,1)writeStringoprot_vwriteFieldEndoprot}casef_SuperColumn_columnsrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("columns",T_LIST,2)(let{f[]=return();f(_viter7:t)=do{write_Columnoprot_viter7;ft}}indo{writeListBeginoprot(T_STRUCT,length_v);f_v;writeListEndoprot})writeFieldEndoprot}writeFieldStopoprotwriteStructEndoprotread_SuperColumn_fieldsiprotrec=do(_,_t9,_id10)<-readFieldBeginiprotif_t9==T_STOPthenreturnrecelsecase_id10of1->if_t9==T_STRINGthendos<-readStringiprotread_SuperColumn_fieldsiprotrec{f_SuperColumn_name=Justs}elsedoskipiprot_t9read_SuperColumn_fieldsiprotrec2->if_t9==T_LISTthendos<-(let{f0=return[];fn=do{v<-(read_Columniprot);r<-f(n-1);return$v:r}}indo{(_etype14,_size11)<-readListBeginiprot;f_size11})read_SuperColumn_fieldsiprotrec{f_SuperColumn_columns=Justs}elsedoskipiprot_t9read_SuperColumn_fieldsiprotrec_->doskipiprot_t9readFieldEndiprotread_SuperColumn_fieldsiprotrecread_SuperColumniprot=doreadStructBeginiprotrec<-read_SuperColumn_fieldsiprot(SuperColumn{f_SuperColumn_name=Nothing,f_SuperColumn_columns=Nothing})readStructEndiprotreturnrecdataColumnOrSuperColumn=ColumnOrSuperColumn{f_ColumnOrSuperColumn_column::MaybeColumn,f_ColumnOrSuperColumn_super_column::MaybeSuperColumn}deriving(Show,Eq,Ord,Typeable)write_ColumnOrSuperColumnoprotrec=dowriteStructBeginoprot"ColumnOrSuperColumn"casef_ColumnOrSuperColumn_columnrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("column",T_STRUCT,1)write_Columnoprot_vwriteFieldEndoprot}casef_ColumnOrSuperColumn_super_columnrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("super_column",T_STRUCT,2)write_SuperColumnoprot_vwriteFieldEndoprot}writeFieldStopoprotwriteStructEndoprotread_ColumnOrSuperColumn_fieldsiprotrec=do(_,_t19,_id20)<-readFieldBeginiprotif_t19==T_STOPthenreturnrecelsecase_id20of1->if_t19==T_STRUCTthendos<-(read_Columniprot)read_ColumnOrSuperColumn_fieldsiprotrec{f_ColumnOrSuperColumn_column=Justs}elsedoskipiprot_t19read_ColumnOrSuperColumn_fieldsiprotrec2->if_t19==T_STRUCTthendos<-(read_SuperColumniprot)read_ColumnOrSuperColumn_fieldsiprotrec{f_ColumnOrSuperColumn_super_column=Justs}elsedoskipiprot_t19read_ColumnOrSuperColumn_fieldsiprotrec_->doskipiprot_t19readFieldEndiprotread_ColumnOrSuperColumn_fieldsiprotrecread_ColumnOrSuperColumniprot=doreadStructBeginiprotrec<-read_ColumnOrSuperColumn_fieldsiprot(ColumnOrSuperColumn{f_ColumnOrSuperColumn_column=Nothing,f_ColumnOrSuperColumn_super_column=Nothing})readStructEndiprotreturnrecdataNotFoundException=NotFoundExceptionderiving(Show,Eq,Ord,Typeable)instanceExceptionNotFoundExceptionwrite_NotFoundExceptionoprotrec=dowriteStructBeginoprot"NotFoundException"writeFieldStopoprotwriteStructEndoprotread_NotFoundException_fieldsiprotrec=do(_,_t24,_id25)<-readFieldBeginiprotif_t24==T_STOPthenreturnrecelsecase_id25of_->doskipiprot_t24readFieldEndiprotread_NotFoundException_fieldsiprotrecread_NotFoundExceptioniprot=doreadStructBeginiprotrec<-read_NotFoundException_fieldsiprot(NotFoundException{})readStructEndiprotreturnrecdataInvalidRequestException=InvalidRequestException{f_InvalidRequestException_why::MaybeString}deriving(Show,Eq,Ord,Typeable)instanceExceptionInvalidRequestExceptionwrite_InvalidRequestExceptionoprotrec=dowriteStructBeginoprot"InvalidRequestException"casef_InvalidRequestException_whyrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("why",T_STRING,1)writeStringoprot_vwriteFieldEndoprot}writeFieldStopoprotwriteStructEndoprotread_InvalidRequestException_fieldsiprotrec=do(_,_t29,_id30)<-readFieldBeginiprotif_t29==T_STOPthenreturnrecelsecase_id30of1->if_t29==T_STRINGthendos<-readStringiprotread_InvalidRequestException_fieldsiprotrec{f_InvalidRequestException_why=Justs}elsedoskipiprot_t29read_InvalidRequestException_fieldsiprotrec_->doskipiprot_t29readFieldEndiprotread_InvalidRequestException_fieldsiprotrecread_InvalidRequestExceptioniprot=doreadStructBeginiprotrec<-read_InvalidRequestException_fieldsiprot(InvalidRequestException{f_InvalidRequestException_why=Nothing})readStructEndiprotreturnrecdataUnavailableException=UnavailableExceptionderiving(Show,Eq,Ord,Typeable)instanceExceptionUnavailableExceptionwrite_UnavailableExceptionoprotrec=dowriteStructBeginoprot"UnavailableException"writeFieldStopoprotwriteStructEndoprotread_UnavailableException_fieldsiprotrec=do(_,_t34,_id35)<-readFieldBeginiprotif_t34==T_STOPthenreturnrecelsecase_id35of_->doskipiprot_t34readFieldEndiprotread_UnavailableException_fieldsiprotrecread_UnavailableExceptioniprot=doreadStructBeginiprotrec<-read_UnavailableException_fieldsiprot(UnavailableException{})readStructEndiprotreturnrecdataTimedOutException=TimedOutExceptionderiving(Show,Eq,Ord,Typeable)instanceExceptionTimedOutExceptionwrite_TimedOutExceptionoprotrec=dowriteStructBeginoprot"TimedOutException"writeFieldStopoprotwriteStructEndoprotread_TimedOutException_fieldsiprotrec=do(_,_t39,_id40)<-readFieldBeginiprotif_t39==T_STOPthenreturnrecelsecase_id40of_->doskipiprot_t39readFieldEndiprotread_TimedOutException_fieldsiprotrecread_TimedOutExceptioniprot=doreadStructBeginiprotrec<-read_TimedOutException_fieldsiprot(TimedOutException{})readStructEndiprotreturnrecdataAuthenticationException=AuthenticationException{f_AuthenticationException_why::MaybeString}deriving(Show,Eq,Ord,Typeable)instanceExceptionAuthenticationExceptionwrite_AuthenticationExceptionoprotrec=dowriteStructBeginoprot"AuthenticationException"casef_AuthenticationException_whyrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("why",T_STRING,1)writeStringoprot_vwriteFieldEndoprot}writeFieldStopoprotwriteStructEndoprotread_AuthenticationException_fieldsiprotrec=do(_,_t44,_id45)<-readFieldBeginiprotif_t44==T_STOPthenreturnrecelsecase_id45of1->if_t44==T_STRINGthendos<-readStringiprotread_AuthenticationException_fieldsiprotrec{f_AuthenticationException_why=Justs}elsedoskipiprot_t44read_AuthenticationException_fieldsiprotrec_->doskipiprot_t44readFieldEndiprotread_AuthenticationException_fieldsiprotrecread_AuthenticationExceptioniprot=doreadStructBeginiprotrec<-read_AuthenticationException_fieldsiprot(AuthenticationException{f_AuthenticationException_why=Nothing})readStructEndiprotreturnrecdataAuthorizationException=AuthorizationException{f_AuthorizationException_why::MaybeString}deriving(Show,Eq,Ord,Typeable)instanceExceptionAuthorizationExceptionwrite_AuthorizationExceptionoprotrec=dowriteStructBeginoprot"AuthorizationException"casef_AuthorizationException_whyrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("why",T_STRING,1)writeStringoprot_vwriteFieldEndoprot}writeFieldStopoprotwriteStructEndoprotread_AuthorizationException_fieldsiprotrec=do(_,_t49,_id50)<-readFieldBeginiprotif_t49==T_STOPthenreturnrecelsecase_id50of1->if_t49==T_STRINGthendos<-readStringiprotread_AuthorizationException_fieldsiprotrec{f_AuthorizationException_why=Justs}elsedoskipiprot_t49read_AuthorizationException_fieldsiprotrec_->doskipiprot_t49readFieldEndiprotread_AuthorizationException_fieldsiprotrecread_AuthorizationExceptioniprot=doreadStructBeginiprotrec<-read_AuthorizationException_fieldsiprot(AuthorizationException{f_AuthorizationException_why=Nothing})readStructEndiprotreturnrecdataColumnParent=ColumnParent{f_ColumnParent_column_family::MaybeString,f_ColumnParent_super_column::MaybeString}deriving(Show,Eq,Ord,Typeable)write_ColumnParentoprotrec=dowriteStructBeginoprot"ColumnParent"casef_ColumnParent_column_familyrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("column_family",T_STRING,3)writeStringoprot_vwriteFieldEndoprot}casef_ColumnParent_super_columnrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("super_column",T_STRING,4)writeStringoprot_vwriteFieldEndoprot}writeFieldStopoprotwriteStructEndoprotread_ColumnParent_fieldsiprotrec=do(_,_t54,_id55)<-readFieldBeginiprotif_t54==T_STOPthenreturnrecelsecase_id55of3->if_t54==T_STRINGthendos<-readStringiprotread_ColumnParent_fieldsiprotrec{f_ColumnParent_column_family=Justs}elsedoskipiprot_t54read_ColumnParent_fieldsiprotrec4->if_t54==T_STRINGthendos<-readStringiprotread_ColumnParent_fieldsiprotrec{f_ColumnParent_super_column=Justs}elsedoskipiprot_t54read_ColumnParent_fieldsiprotrec_->doskipiprot_t54readFieldEndiprotread_ColumnParent_fieldsiprotrecread_ColumnParentiprot=doreadStructBeginiprotrec<-read_ColumnParent_fieldsiprot(ColumnParent{f_ColumnParent_column_family=Nothing,f_ColumnParent_super_column=Nothing})readStructEndiprotreturnrecdataColumnPath=ColumnPath{f_ColumnPath_column_family::MaybeString,f_ColumnPath_super_column::MaybeString,f_ColumnPath_column::MaybeString}deriving(Show,Eq,Ord,Typeable)write_ColumnPathoprotrec=dowriteStructBeginoprot"ColumnPath"casef_ColumnPath_column_familyrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("column_family",T_STRING,3)writeStringoprot_vwriteFieldEndoprot}casef_ColumnPath_super_columnrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("super_column",T_STRING,4)writeStringoprot_vwriteFieldEndoprot}casef_ColumnPath_columnrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("column",T_STRING,5)writeStringoprot_vwriteFieldEndoprot}writeFieldStopoprotwriteStructEndoprotread_ColumnPath_fieldsiprotrec=do(_,_t59,_id60)<-readFieldBeginiprotif_t59==T_STOPthenreturnrecelsecase_id60of3->if_t59==T_STRINGthendos<-readStringiprotread_ColumnPath_fieldsiprotrec{f_ColumnPath_column_family=Justs}elsedoskipiprot_t59read_ColumnPath_fieldsiprotrec4->if_t59==T_STRINGthendos<-readStringiprotread_ColumnPath_fieldsiprotrec{f_ColumnPath_super_column=Justs}elsedoskipiprot_t59read_ColumnPath_fieldsiprotrec5->if_t59==T_STRINGthendos<-readStringiprotread_ColumnPath_fieldsiprotrec{f_ColumnPath_column=Justs}elsedoskipiprot_t59read_ColumnPath_fieldsiprotrec_->doskipiprot_t59readFieldEndiprotread_ColumnPath_fieldsiprotrecread_ColumnPathiprot=doreadStructBeginiprotrec<-read_ColumnPath_fieldsiprot(ColumnPath{f_ColumnPath_column_family=Nothing,f_ColumnPath_super_column=Nothing,f_ColumnPath_column=Nothing})readStructEndiprotreturnrecdataSliceRange=SliceRange{f_SliceRange_start::MaybeString,f_SliceRange_finish::MaybeString,f_SliceRange_reversed::MaybeBool,f_SliceRange_count::MaybeInt}deriving(Show,Eq,Ord,Typeable)write_SliceRangeoprotrec=dowriteStructBeginoprot"SliceRange"casef_SliceRange_startrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("start",T_STRING,1)writeStringoprot_vwriteFieldEndoprot}casef_SliceRange_finishrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("finish",T_STRING,2)writeStringoprot_vwriteFieldEndoprot}casef_SliceRange_reversedrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("reversed",T_BOOL,3)writeBooloprot_vwriteFieldEndoprot}casef_SliceRange_countrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("count",T_I32,4)writeI32oprot_vwriteFieldEndoprot}writeFieldStopoprotwriteStructEndoprotread_SliceRange_fieldsiprotrec=do(_,_t64,_id65)<-readFieldBeginiprotif_t64==T_STOPthenreturnrecelsecase_id65of1->if_t64==T_STRINGthendos<-readStringiprotread_SliceRange_fieldsiprotrec{f_SliceRange_start=Justs}elsedoskipiprot_t64read_SliceRange_fieldsiprotrec2->if_t64==T_STRINGthendos<-readStringiprotread_SliceRange_fieldsiprotrec{f_SliceRange_finish=Justs}elsedoskipiprot_t64read_SliceRange_fieldsiprotrec3->if_t64==T_BOOLthendos<-readBooliprotread_SliceRange_fieldsiprotrec{f_SliceRange_reversed=Justs}elsedoskipiprot_t64read_SliceRange_fieldsiprotrec4->if_t64==T_I32thendos<-readI32iprotread_SliceRange_fieldsiprotrec{f_SliceRange_count=Justs}elsedoskipiprot_t64read_SliceRange_fieldsiprotrec_->doskipiprot_t64readFieldEndiprotread_SliceRange_fieldsiprotrecread_SliceRangeiprot=doreadStructBeginiprotrec<-read_SliceRange_fieldsiprot(SliceRange{f_SliceRange_start=Nothing,f_SliceRange_finish=Nothing,f_SliceRange_reversed=Nothing,f_SliceRange_count=Nothing})readStructEndiprotreturnrecdataSlicePredicate=SlicePredicate{f_SlicePredicate_column_names::Maybe[String],f_SlicePredicate_slice_range::MaybeSliceRange}deriving(Show,Eq,Ord,Typeable)write_SlicePredicateoprotrec=dowriteStructBeginoprot"SlicePredicate"casef_SlicePredicate_column_namesrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("column_names",T_LIST,1)(let{f[]=return();f(_viter68:t)=do{writeStringoprot_viter68;ft}}indo{writeListBeginoprot(T_STRING,length_v);f_v;writeListEndoprot})writeFieldEndoprot}casef_SlicePredicate_slice_rangerecof{Nothing->return();Just_v->dowriteFieldBeginoprot("slice_range",T_STRUCT,2)write_SliceRangeoprot_vwriteFieldEndoprot}writeFieldStopoprotwriteStructEndoprotread_SlicePredicate_fieldsiprotrec=do(_,_t70,_id71)<-readFieldBeginiprotif_t70==T_STOPthenreturnrecelsecase_id71of1->if_t70==T_LISTthendos<-(let{f0=return[];fn=do{v<-readStringiprot;r<-f(n-1);return$v:r}}indo{(_etype75,_size72)<-readListBeginiprot;f_size72})read_SlicePredicate_fieldsiprotrec{f_SlicePredicate_column_names=Justs}elsedoskipiprot_t70read_SlicePredicate_fieldsiprotrec2->if_t70==T_STRUCTthendos<-(read_SliceRangeiprot)read_SlicePredicate_fieldsiprotrec{f_SlicePredicate_slice_range=Justs}elsedoskipiprot_t70read_SlicePredicate_fieldsiprotrec_->doskipiprot_t70readFieldEndiprotread_SlicePredicate_fieldsiprotrecread_SlicePredicateiprot=doreadStructBeginiprotrec<-read_SlicePredicate_fieldsiprot(SlicePredicate{f_SlicePredicate_column_names=Nothing,f_SlicePredicate_slice_range=Nothing})readStructEndiprotreturnrecdataKeyRange=KeyRange{f_KeyRange_start_key::MaybeString,f_KeyRange_end_key::MaybeString,f_KeyRange_start_token::MaybeString,f_KeyRange_end_token::MaybeString,f_KeyRange_count::MaybeInt}deriving(Show,Eq,Ord,Typeable)write_KeyRangeoprotrec=dowriteStructBeginoprot"KeyRange"casef_KeyRange_start_keyrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("start_key",T_STRING,1)writeStringoprot_vwriteFieldEndoprot}casef_KeyRange_end_keyrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("end_key",T_STRING,2)writeStringoprot_vwriteFieldEndoprot}casef_KeyRange_start_tokenrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("start_token",T_STRING,3)writeStringoprot_vwriteFieldEndoprot}casef_KeyRange_end_tokenrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("end_token",T_STRING,4)writeStringoprot_vwriteFieldEndoprot}casef_KeyRange_countrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("count",T_I32,5)writeI32oprot_vwriteFieldEndoprot}writeFieldStopoprotwriteStructEndoprotread_KeyRange_fieldsiprotrec=do(_,_t80,_id81)<-readFieldBeginiprotif_t80==T_STOPthenreturnrecelsecase_id81of1->if_t80==T_STRINGthendos<-readStringiprotread_KeyRange_fieldsiprotrec{f_KeyRange_start_key=Justs}elsedoskipiprot_t80read_KeyRange_fieldsiprotrec2->if_t80==T_STRINGthendos<-readStringiprotread_KeyRange_fieldsiprotrec{f_KeyRange_end_key=Justs}elsedoskipiprot_t80read_KeyRange_fieldsiprotrec3->if_t80==T_STRINGthendos<-readStringiprotread_KeyRange_fieldsiprotrec{f_KeyRange_start_token=Justs}elsedoskipiprot_t80read_KeyRange_fieldsiprotrec4->if_t80==T_STRINGthendos<-readStringiprotread_KeyRange_fieldsiprotrec{f_KeyRange_end_token=Justs}elsedoskipiprot_t80read_KeyRange_fieldsiprotrec5->if_t80==T_I32thendos<-readI32iprotread_KeyRange_fieldsiprotrec{f_KeyRange_count=Justs}elsedoskipiprot_t80read_KeyRange_fieldsiprotrec_->doskipiprot_t80readFieldEndiprotread_KeyRange_fieldsiprotrecread_KeyRangeiprot=doreadStructBeginiprotrec<-read_KeyRange_fieldsiprot(KeyRange{f_KeyRange_start_key=Nothing,f_KeyRange_end_key=Nothing,f_KeyRange_start_token=Nothing,f_KeyRange_end_token=Nothing,f_KeyRange_count=Nothing})readStructEndiprotreturnrecdataKeySlice=KeySlice{f_KeySlice_key::MaybeString,f_KeySlice_columns::Maybe[ColumnOrSuperColumn]}deriving(Show,Eq,Ord,Typeable)write_KeySliceoprotrec=dowriteStructBeginoprot"KeySlice"casef_KeySlice_keyrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("key",T_STRING,1)writeStringoprot_vwriteFieldEndoprot}casef_KeySlice_columnsrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("columns",T_LIST,2)(let{f[]=return();f(_viter84:t)=do{write_ColumnOrSuperColumnoprot_viter84;ft}}indo{writeListBeginoprot(T_STRUCT,length_v);f_v;writeListEndoprot})writeFieldEndoprot}writeFieldStopoprotwriteStructEndoprotread_KeySlice_fieldsiprotrec=do(_,_t86,_id87)<-readFieldBeginiprotif_t86==T_STOPthenreturnrecelsecase_id87of1->if_t86==T_STRINGthendos<-readStringiprotread_KeySlice_fieldsiprotrec{f_KeySlice_key=Justs}elsedoskipiprot_t86read_KeySlice_fieldsiprotrec2->if_t86==T_LISTthendos<-(let{f0=return[];fn=do{v<-(read_ColumnOrSuperColumniprot);r<-f(n-1);return$v:r}}indo{(_etype91,_size88)<-readListBeginiprot;f_size88})read_KeySlice_fieldsiprotrec{f_KeySlice_columns=Justs}elsedoskipiprot_t86read_KeySlice_fieldsiprotrec_->doskipiprot_t86readFieldEndiprotread_KeySlice_fieldsiprotrecread_KeySliceiprot=doreadStructBeginiprotrec<-read_KeySlice_fieldsiprot(KeySlice{f_KeySlice_key=Nothing,f_KeySlice_columns=Nothing})readStructEndiprotreturnrecdataDeletion=Deletion{f_Deletion_timestamp::MaybeInt64,f_Deletion_super_column::MaybeString,f_Deletion_predicate::MaybeSlicePredicate}deriving(Show,Eq,Ord,Typeable)write_Deletionoprotrec=dowriteStructBeginoprot"Deletion"casef_Deletion_timestamprecof{Nothing->return();Just_v->dowriteFieldBeginoprot("timestamp",T_I64,1)writeI64oprot_vwriteFieldEndoprot}casef_Deletion_super_columnrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("super_column",T_STRING,2)writeStringoprot_vwriteFieldEndoprot}casef_Deletion_predicaterecof{Nothing->return();Just_v->dowriteFieldBeginoprot("predicate",T_STRUCT,3)write_SlicePredicateoprot_vwriteFieldEndoprot}writeFieldStopoprotwriteStructEndoprotread_Deletion_fieldsiprotrec=do(_,_t96,_id97)<-readFieldBeginiprotif_t96==T_STOPthenreturnrecelsecase_id97of1->if_t96==T_I64thendos<-readI64iprotread_Deletion_fieldsiprotrec{f_Deletion_timestamp=Justs}elsedoskipiprot_t96read_Deletion_fieldsiprotrec2->if_t96==T_STRINGthendos<-readStringiprotread_Deletion_fieldsiprotrec{f_Deletion_super_column=Justs}elsedoskipiprot_t96read_Deletion_fieldsiprotrec3->if_t96==T_STRUCTthendos<-(read_SlicePredicateiprot)read_Deletion_fieldsiprotrec{f_Deletion_predicate=Justs}elsedoskipiprot_t96read_Deletion_fieldsiprotrec_->doskipiprot_t96readFieldEndiprotread_Deletion_fieldsiprotrecread_Deletioniprot=doreadStructBeginiprotrec<-read_Deletion_fieldsiprot(Deletion{f_Deletion_timestamp=Nothing,f_Deletion_super_column=Nothing,f_Deletion_predicate=Nothing})readStructEndiprotreturnrecdataMutation=Mutation{f_Mutation_column_or_supercolumn::MaybeColumnOrSuperColumn,f_Mutation_deletion::MaybeDeletion}deriving(Show,Eq,Ord,Typeable)write_Mutationoprotrec=dowriteStructBeginoprot"Mutation"casef_Mutation_column_or_supercolumnrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("column_or_supercolumn",T_STRUCT,1)write_ColumnOrSuperColumnoprot_vwriteFieldEndoprot}casef_Mutation_deletionrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("deletion",T_STRUCT,2)write_Deletionoprot_vwriteFieldEndoprot}writeFieldStopoprotwriteStructEndoprotread_Mutation_fieldsiprotrec=do(_,_t101,_id102)<-readFieldBeginiprotif_t101==T_STOPthenreturnrecelsecase_id102of1->if_t101==T_STRUCTthendos<-(read_ColumnOrSuperColumniprot)read_Mutation_fieldsiprotrec{f_Mutation_column_or_supercolumn=Justs}elsedoskipiprot_t101read_Mutation_fieldsiprotrec2->if_t101==T_STRUCTthendos<-(read_Deletioniprot)read_Mutation_fieldsiprotrec{f_Mutation_deletion=Justs}elsedoskipiprot_t101read_Mutation_fieldsiprotrec_->doskipiprot_t101readFieldEndiprotread_Mutation_fieldsiprotrecread_Mutationiprot=doreadStructBeginiprotrec<-read_Mutation_fieldsiprot(Mutation{f_Mutation_column_or_supercolumn=Nothing,f_Mutation_deletion=Nothing})readStructEndiprotreturnrecdataTokenRange=TokenRange{f_TokenRange_start_token::MaybeString,f_TokenRange_end_token::MaybeString,f_TokenRange_endpoints::Maybe[String]}deriving(Show,Eq,Ord,Typeable)write_TokenRangeoprotrec=dowriteStructBeginoprot"TokenRange"casef_TokenRange_start_tokenrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("start_token",T_STRING,1)writeStringoprot_vwriteFieldEndoprot}casef_TokenRange_end_tokenrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("end_token",T_STRING,2)writeStringoprot_vwriteFieldEndoprot}casef_TokenRange_endpointsrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("endpoints",T_LIST,3)(let{f[]=return();f(_viter105:t)=do{writeStringoprot_viter105;ft}}indo{writeListBeginoprot(T_STRING,length_v);f_v;writeListEndoprot})writeFieldEndoprot}writeFieldStopoprotwriteStructEndoprotread_TokenRange_fieldsiprotrec=do(_,_t107,_id108)<-readFieldBeginiprotif_t107==T_STOPthenreturnrecelsecase_id108of1->if_t107==T_STRINGthendos<-readStringiprotread_TokenRange_fieldsiprotrec{f_TokenRange_start_token=Justs}elsedoskipiprot_t107read_TokenRange_fieldsiprotrec2->if_t107==T_STRINGthendos<-readStringiprotread_TokenRange_fieldsiprotrec{f_TokenRange_end_token=Justs}elsedoskipiprot_t107read_TokenRange_fieldsiprotrec3->if_t107==T_LISTthendos<-(let{f0=return[];fn=do{v<-readStringiprot;r<-f(n-1);return$v:r}}indo{(_etype112,_size109)<-readListBeginiprot;f_size109})read_TokenRange_fieldsiprotrec{f_TokenRange_endpoints=Justs}elsedoskipiprot_t107read_TokenRange_fieldsiprotrec_->doskipiprot_t107readFieldEndiprotread_TokenRange_fieldsiprotrecread_TokenRangeiprot=doreadStructBeginiprotrec<-read_TokenRange_fieldsiprot(TokenRange{f_TokenRange_start_token=Nothing,f_TokenRange_end_token=Nothing,f_TokenRange_endpoints=Nothing})readStructEndiprotreturnrecdataAuthenticationRequest=AuthenticationRequest{f_AuthenticationRequest_credentials::Maybe(Map.MapStringString)}deriving(Show,Eq,Ord,Typeable)write_AuthenticationRequestoprotrec=dowriteStructBeginoprot"AuthenticationRequest"casef_AuthenticationRequest_credentialsrecof{Nothing->return();Just_v->dowriteFieldBeginoprot("credentials",T_MAP,1)(let{f[]=return();f((_kiter116,_viter117):t)=do{do{writeStringoprot_kiter116;writeStringoprot_viter117};ft}}indo{writeMapBeginoprot(T_STRING,T_STRING,Map.size_v);f(Map.toList_v);writeMapEndoprot})writeFieldEndoprot}writeFieldStopoprotwriteStructEndoprotread_AuthenticationRequest_fieldsiprotrec=do(_,_t119,_id120)<-readFieldBeginiprotif_t119==T_STOPthenreturnrecelsecase_id120of1->if_t119==T_MAPthendos<-(let{f0=return[];fn=do{k<-readStringiprot;v<-readStringiprot;r<-f(n-1);return$(k,v):r}}indo{(_ktype122,_vtype123,_size121)<-readMapBeginiprot;l<-f_size121;return$Map.fromListl})read_AuthenticationRequest_fieldsiprotrec{f_AuthenticationRequest_credentials=Justs}elsedoskipiprot_t119read_AuthenticationRequest_fieldsiprotrec_->doskipiprot_t119readFieldEndiprotread_AuthenticationRequest_fieldsiprotrecread_AuthenticationRequestiprot=doreadStructBeginiprotrec<-read_AuthenticationRequest_fieldsiprot(AuthenticationRequest{f_AuthenticationRequest_credentials=Nothing})readStructEndiprotreturnrec