/**
 * This file is generated by hand in order to bootstrap compiler development. It is intended to be an exact match to
 * compiled output.
 */ import * as capnp from "../index" ; import { ObjectSize as __O , Struct as __S } from "../index" ; export const _capnpFileId = "b312981b2552a250" ; export enum Message_Which { UNIMPLEMENTED = 0 , ABORT = 1 , BOOTSTRAP = 8 , CALL = 2 , RETURN = 3 , FINISH = 4 , RESOLVE = 5 , RELEASE = 6 , DISEMBARGO = 13 , OBSOLETE_SAVE = 7 , OBSOLETE_DELETE = 9 , PROVIDE = 10 , ACCEPT = 11 , JOIN = 12 } export class Message extends __S { static readonly UNIMPLEMENTED = Message_Which . UNIMPLEMENTED ; static readonly ABORT = Message_Which . ABORT ; static readonly BOOTSTRAP = Message_Which . BOOTSTRAP ; static readonly CALL = Message_Which . CALL ; static readonly RETURN = Message_Which . RETURN ; static readonly FINISH = Message_Which . FINISH ; static readonly RESOLVE = Message_Which . RESOLVE ; static readonly RELEASE = Message_Which . RELEASE ; static readonly DISEMBARGO = Message_Which . DISEMBARGO ; static readonly OBSOLETE_SAVE = Message_Which . OBSOLETE_SAVE ; static readonly OBSOLETE_DELETE = Message_Which . OBSOLETE_DELETE ; static readonly PROVIDE = Message_Which . PROVIDE ; static readonly ACCEPT = Message_Which . ACCEPT ; static readonly JOIN = Message_Which . JOIN ; static readonly _capnp = { displayName : "Message" , id : "91b79f1f808db032" , size : new __O ( 8 , 1 ) } ; adoptUnimplemented ( value ) { __S . setUint16 ( 0 , 0 , this ) ; __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownUnimplemented ( ) { return __S . disown ( this . getUnimplemented ( ) ) ; } getUnimplemented ( ) { __S . testWhich ( "unimplemented" , __S . getUint16 ( 0 , this ) , 0 , this ) ; return __S . getStruct ( 0 , Message , this ) ; } hasUnimplemented ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initUnimplemented ( ) { __S . setUint16 ( 0 , 0 , this ) ; return __S . initStructAt ( 0 , Message , this ) ; } isUnimplemented ( ) { return __S . getUint16 ( 0 , this ) === 0 ; } setUnimplemented ( value ) { __S . setUint16 ( 0 , 0 , this ) ; __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } adoptAbort ( value ) { __S . setUint16 ( 0 , 1 , this ) ; __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownAbort ( ) { return __S . disown ( this . getAbort ( ) ) ; } getAbort ( ) { __S . testWhich ( "abort" , __S . getUint16 ( 0 , this ) , 1 , this ) ; return __S . getStruct ( 0 , Exception , this ) ; } hasAbort ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initAbort ( ) { __S . setUint16 ( 0 , 1 , this ) ; return __S . initStructAt ( 0 , Exception , this ) ; } isAbort ( ) { return __S . getUint16 ( 0 , this ) === 1 ; } setAbort ( value ) { __S . setUint16 ( 0 , 1 , this ) ; __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } adoptBootstrap ( value ) { __S . setUint16 ( 0 , 8 , this ) ; __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownBootstrap ( ) { return __S . disown ( this . getBootstrap ( ) ) ; } getBootstrap ( ) { __S . testWhich ( "bootstrap" , __S . getUint16 ( 0 , this ) , 8 , this ) ; return __S . getStruct ( 0 , Bootstrap , this ) ; } hasBootstrap ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initBootstrap ( ) { __S . setUint16 ( 0 , 8 , this ) ; return __S . initStructAt ( 0 , Bootstrap , this ) ; } isBootstrap ( ) { return __S . getUint16 ( 0 , this ) === 8 ; } setBootstrap ( value ) { __S . setUint16 ( 0 , 8 , this ) ; __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } adoptCall ( value ) { __S . setUint16 ( 0 , 2 , this ) ; __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownCall ( ) { return __S . disown ( this . getCall ( ) ) ; } getCall ( ) { __S . testWhich ( "call" , __S . getUint16 ( 0 , this ) , 2 , this ) ; return __S . getStruct ( 0 , Call , this ) ; } hasCall ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initCall ( ) { __S . setUint16 ( 0 , 2 , this ) ; return __S . initStructAt ( 0 , Call , this ) ; } isCall ( ) { return __S . getUint16 ( 0 , this ) === 2 ; } setCall ( value ) { __S . setUint16 ( 0 , 2 , this ) ; __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } adoptReturn ( value ) { __S . setUint16 ( 0 , 3 , this ) ; __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownReturn ( ) { return __S . disown ( this . getReturn ( ) ) ; } getReturn ( ) { __S . testWhich ( "return" , __S . getUint16 ( 0 , this ) , 3 , this ) ; return __S . getStruct ( 0 , Return , this ) ; } hasReturn ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initReturn ( ) { __S . setUint16 ( 0 , 3 , this ) ; return __S . initStructAt ( 0 , Return , this ) ; } isReturn ( ) { return __S . getUint16 ( 0 , this ) === 3 ; } setReturn ( value ) { __S . setUint16 ( 0 , 3 , this ) ; __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } adoptFinish ( value ) { __S . setUint16 ( 0 , 4 , this ) ; __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownFinish ( ) { return __S . disown ( this . getFinish ( ) ) ; } getFinish ( ) { __S . testWhich ( "finish" , __S . getUint16 ( 0 , this ) , 4 , this ) ; return __S . getStruct ( 0 , Finish , this ) ; } hasFinish ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initFinish ( ) { __S . setUint16 ( 0 , 4 , this ) ; return __S . initStructAt ( 0 , Finish , this ) ; } isFinish ( ) { return __S . getUint16 ( 0 , this ) === 4 ; } setFinish ( value ) { __S . setUint16 ( 0 , 4 , this ) ; __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } adoptResolve ( value ) { __S . setUint16 ( 0 , 5 , this ) ; __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownResolve ( ) { return __S . disown ( this . getResolve ( ) ) ; } getResolve ( ) { __S . testWhich ( "resolve" , __S . getUint16 ( 0 , this ) , 5 , this ) ; return __S . getStruct ( 0 , Resolve , this ) ; } hasResolve ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initResolve ( ) { __S . setUint16 ( 0 , 5 , this ) ; return __S . initStructAt ( 0 , Resolve , this ) ; } isResolve ( ) { return __S . getUint16 ( 0 , this ) === 5 ; } setResolve ( value ) { __S . setUint16 ( 0 , 5 , this ) ; __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } adoptRelease ( value ) { __S . setUint16 ( 0 , 6 , this ) ; __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownRelease ( ) { return __S . disown ( this . getRelease ( ) ) ; } getRelease ( ) { __S . testWhich ( "release" , __S . getUint16 ( 0 , this ) , 6 , this ) ; return __S . getStruct ( 0 , Release , this ) ; } hasRelease ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initRelease ( ) { __S . setUint16 ( 0 , 6 , this ) ; return __S . initStructAt ( 0 , Release , this ) ; } isRelease ( ) { return __S . getUint16 ( 0 , this ) === 6 ; } setRelease ( value ) { __S . setUint16 ( 0 , 6 , this ) ; __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } adoptDisembargo ( value ) { __S . setUint16 ( 0 , 13 , this ) ; __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownDisembargo ( ) { return __S . disown ( this . getDisembargo ( ) ) ; } getDisembargo ( ) { __S . testWhich ( "disembargo" , __S . getUint16 ( 0 , this ) , 13 , this ) ; return __S . getStruct ( 0 , Disembargo , this ) ; } hasDisembargo ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initDisembargo ( ) { __S . setUint16 ( 0 , 13 , this ) ; return __S . initStructAt ( 0 , Disembargo , this ) ; } isDisembargo ( ) { return __S . getUint16 ( 0 , this ) === 13 ; } setDisembargo ( value ) { __S . setUint16 ( 0 , 13 , this ) ; __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } adoptObsoleteSave ( value ) { __S . setUint16 ( 0 , 7 , this ) ; __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownObsoleteSave ( ) { return __S . disown ( this . getObsoleteSave ( ) ) ; } getObsoleteSave ( ) { __S . testWhich ( "obsoleteSave" , __S . getUint16 ( 0 , this ) , 7 , this ) ; return __S . getPointer ( 0 , this ) ; } hasObsoleteSave ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } isObsoleteSave ( ) { return __S . getUint16 ( 0 , this ) === 7 ; } setObsoleteSave ( value ) { __S . setUint16 ( 0 , 7 , this ) ; __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } adoptObsoleteDelete ( value ) { __S . setUint16 ( 0 , 9 , this ) ; __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownObsoleteDelete ( ) { return __S . disown ( this . getObsoleteDelete ( ) ) ; } getObsoleteDelete ( ) { __S . testWhich ( "obsoleteDelete" , __S . getUint16 ( 0 , this ) , 9 , this ) ; return __S . getPointer ( 0 , this ) ; } hasObsoleteDelete ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } isObsoleteDelete ( ) { return __S . getUint16 ( 0 , this ) === 9 ; } setObsoleteDelete ( value ) { __S . setUint16 ( 0 , 9 , this ) ; __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } adoptProvide ( value ) { __S . setUint16 ( 0 , 10 , this ) ; __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownProvide ( ) { return __S . disown ( this . getProvide ( ) ) ; } getProvide ( ) { __S . testWhich ( "provide" , __S . getUint16 ( 0 , this ) , 10 , this ) ; return __S . getStruct ( 0 , Provide , this ) ; } hasProvide ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initProvide ( ) { __S . setUint16 ( 0 , 10 , this ) ; return __S . initStructAt ( 0 , Provide , this ) ; } isProvide ( ) { return __S . getUint16 ( 0 , this ) === 10 ; } setProvide ( value ) { __S . setUint16 ( 0 , 10 , this ) ; __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } adoptAccept ( value ) { __S . setUint16 ( 0 , 11 , this ) ; __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownAccept ( ) { return __S . disown ( this . getAccept ( ) ) ; } getAccept ( ) { __S . testWhich ( "accept" , __S . getUint16 ( 0 , this ) , 11 , this ) ; return __S . getStruct ( 0 , Accept , this ) ; } hasAccept ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initAccept ( ) { __S . setUint16 ( 0 , 11 , this ) ; return __S . initStructAt ( 0 , Accept , this ) ; } isAccept ( ) { return __S . getUint16 ( 0 , this ) === 11 ; } setAccept ( value ) { __S . setUint16 ( 0 , 11 , this ) ; __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } adoptJoin ( value ) { __S . setUint16 ( 0 , 12 , this ) ; __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownJoin ( ) { return __S . disown ( this . getJoin ( ) ) ; } getJoin ( ) { __S . testWhich ( "join" , __S . getUint16 ( 0 , this ) , 12 , this ) ; return __S . getStruct ( 0 , Join , this ) ; } hasJoin ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initJoin ( ) { __S . setUint16 ( 0 , 12 , this ) ; return __S . initStructAt ( 0 , Join , this ) ; } isJoin ( ) { return __S . getUint16 ( 0 , this ) === 12 ; } setJoin ( value ) { __S . setUint16 ( 0 , 12 , this ) ; __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } toString ( ) { return "Message_" + super . toString ( ) ; } which ( ) { return __S . getUint16 ( 0 , this ) ; } } export class Bootstrap extends __S { static readonly _capnp = { displayName : "Bootstrap" , id : "e94ccf8031176ec4" , size : new __O ( 8 , 1 ) } ; getQuestionId ( ) { return __S . getUint32 ( 0 , this ) ; } setQuestionId ( value ) { __S . setUint32 ( 0 , value , this ) ; } adoptDeprecatedObjectId ( value ) { __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownDeprecatedObjectId ( ) { return __S . disown ( this . getDeprecatedObjectId ( ) ) ; } getDeprecatedObjectId ( ) { return __S . getPointer ( 0 , this ) ; } hasDeprecatedObjectId ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } setDeprecatedObjectId ( value ) { __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } toString ( ) { return "Bootstrap_" + super . toString ( ) ; } } export enum Call_SendResultsTo_Which { CALLER = 0 , YOURSELF = 1 , THIRD_PARTY = 2 } export class Call_SendResultsTo extends __S { static readonly CALLER = Call_SendResultsTo_Which . CALLER ; static readonly YOURSELF = Call_SendResultsTo_Which . YOURSELF ; static readonly THIRD_PARTY = Call_SendResultsTo_Which . THIRD_PARTY ; static readonly _capnp = { displayName : "sendResultsTo" , id : "dae8b0f61aab5f99" , size : new __O ( 24 , 3 ) } ; isCaller ( ) { return __S . getUint16 ( 6 , this ) === 0 ; } setCaller ( ) { __S . setUint16 ( 6 , 0 , this ) ; } isYourself ( ) { return __S . getUint16 ( 6 , this ) === 1 ; } setYourself ( ) { __S . setUint16 ( 6 , 1 , this ) ; } adoptThirdParty ( value ) { __S . setUint16 ( 6 , 2 , this ) ; __S . adopt ( value , __S . getPointer ( 2 , this ) ) ; } disownThirdParty ( ) { return __S . disown ( this . getThirdParty ( ) ) ; } getThirdParty ( ) { __S . testWhich ( "thirdParty" , __S . getUint16 ( 6 , this ) , 2 , this ) ; return __S . getPointer ( 2 , this ) ; } hasThirdParty ( ) { return ! __S . isNull ( __S . getPointer ( 2 , this ) ) ; } isThirdParty ( ) { return __S . getUint16 ( 6 , this ) === 2 ; } setThirdParty ( value ) { __S . setUint16 ( 6 , 2 , this ) ; __S . copyFrom ( value , __S . getPointer ( 2 , this ) ) ; } toString ( ) { return "Call_SendResultsTo_" + super . toString ( ) ; } which ( ) { return __S . getUint16 ( 6 , this ) ; } } export class Call extends __S { static readonly _capnp = { displayName : "Call" , id : "836a53ce789d4cd4" , size : new __O ( 24 , 3 ) , defaultAllowThirdPartyTailCall : capnp . getBitMask ( false , 0 ) } ; getQuestionId ( ) { return __S . getUint32 ( 0 , this ) ; } setQuestionId ( value ) { __S . setUint32 ( 0 , value , this ) ; } adoptTarget ( value ) { __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownTarget ( ) { return __S . disown ( this . getTarget ( ) ) ; } getTarget ( ) { return __S . getStruct ( 0 , MessageTarget , this ) ; } hasTarget ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initTarget ( ) { return __S . initStructAt ( 0 , MessageTarget , this ) ; } setTarget ( value ) { __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } getInterfaceId ( ) { return __S . getUint64 ( 8 , this ) ; } setInterfaceId ( value ) { __S . setUint64 ( 8 , value , this ) ; } getMethodId ( ) { return __S . getUint16 ( 4 , this ) ; } setMethodId ( value ) { __S . setUint16 ( 4 , value , this ) ; } getAllowThirdPartyTailCall ( ) { return __S . getBit ( 128 , this , Call . _capnp . defaultAllowThirdPartyTailCall ) ; } setAllowThirdPartyTailCall ( value ) { __S . setBit ( 128 , value , this ) ; } adoptParams ( value ) { __S . adopt ( value , __S . getPointer ( 1 , this ) ) ; } disownParams ( ) { return __S . disown ( this . getParams ( ) ) ; } getParams ( ) { return __S . getStruct ( 1 , Payload , this ) ; } hasParams ( ) { return ! __S . isNull ( __S . getPointer ( 1 , this ) ) ; } initParams ( ) { return __S . initStructAt ( 1 , Payload , this ) ; } setParams ( value ) { __S . copyFrom ( value , __S . getPointer ( 1 , this ) ) ; } getSendResultsTo ( ) { return __S . getAs ( Call_SendResultsTo , this ) ; } initSendResultsTo ( ) { return __S . getAs ( Call_SendResultsTo , this ) ; } toString ( ) { return "Call_" + super . toString ( ) ; } } export enum Return_Which { RESULTS = 0 , EXCEPTION = 1 , CANCELED = 2 , RESULTS_SENT_ELSEWHERE = 3 , TAKE_FROM_OTHER_QUESTION = 4 , ACCEPT_FROM_THIRD_PARTY = 5 } export class Return extends __S { static readonly RESULTS = Return_Which . RESULTS ; static readonly EXCEPTION = Return_Which . EXCEPTION ; static readonly CANCELED = Return_Which . CANCELED ; static readonly RESULTS_SENT_ELSEWHERE = Return_Which . RESULTS_SENT_ELSEWHERE ; static readonly TAKE_FROM_OTHER_QUESTION = Return_Which . TAKE_FROM_OTHER_QUESTION ; static readonly ACCEPT_FROM_THIRD_PARTY = Return_Which . ACCEPT_FROM_THIRD_PARTY ; static readonly _capnp = { displayName : "Return" , id : "9e19b28d3db3573a" , size : new __O ( 16 , 1 ) , defaultReleaseParamCaps : capnp . getBitMask ( true , 0 ) } ; getAnswerId ( ) { return __S . getUint32 ( 0 , this ) ; } setAnswerId ( value ) { __S . setUint32 ( 0 , value , this ) ; } getReleaseParamCaps ( ) { return __S . getBit ( 32 , this , Return . _capnp . defaultReleaseParamCaps ) ; } setReleaseParamCaps ( value ) { __S . setBit ( 32 , value , this ) ; } adoptResults ( value ) { __S . setUint16 ( 6 , 0 , this ) ; __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownResults ( ) { return __S . disown ( this . getResults ( ) ) ; } getResults ( ) { __S . testWhich ( "results" , __S . getUint16 ( 6 , this ) , 0 , this ) ; return __S . getStruct ( 0 , Payload , this ) ; } hasResults ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initResults ( ) { __S . setUint16 ( 6 , 0 , this ) ; return __S . initStructAt ( 0 , Payload , this ) ; } isResults ( ) { return __S . getUint16 ( 6 , this ) === 0 ; } setResults ( value ) { __S . setUint16 ( 6 , 0 , this ) ; __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } adoptException ( value ) { __S . setUint16 ( 6 , 1 , this ) ; __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownException ( ) { return __S . disown ( this . getException ( ) ) ; } getException ( ) { __S . testWhich ( "exception" , __S . getUint16 ( 6 , this ) , 1 , this ) ; return __S . getStruct ( 0 , Exception , this ) ; } hasException ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initException ( ) { __S . setUint16 ( 6 , 1 , this ) ; return __S . initStructAt ( 0 , Exception , this ) ; } isException ( ) { return __S . getUint16 ( 6 , this ) === 1 ; } setException ( value ) { __S . setUint16 ( 6 , 1 , this ) ; __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } isCanceled ( ) { return __S . getUint16 ( 6 , this ) === 2 ; } setCanceled ( ) { __S . setUint16 ( 6 , 2 , this ) ; } isResultsSentElsewhere ( ) { return __S . getUint16 ( 6 , this ) === 3 ; } setResultsSentElsewhere ( ) { __S . setUint16 ( 6 , 3 , this ) ; } getTakeFromOtherQuestion ( ) { __S . testWhich ( "takeFromOtherQuestion" , __S . getUint16 ( 6 , this ) , 4 , this ) ; return __S . getUint32 ( 8 , this ) ; } isTakeFromOtherQuestion ( ) { return __S . getUint16 ( 6 , this ) === 4 ; } setTakeFromOtherQuestion ( value ) { __S . setUint16 ( 6 , 4 , this ) ; __S . setUint32 ( 8 , value , this ) ; } adoptAcceptFromThirdParty ( value ) { __S . setUint16 ( 6 , 5 , this ) ; __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownAcceptFromThirdParty ( ) { return __S . disown ( this . getAcceptFromThirdParty ( ) ) ; } getAcceptFromThirdParty ( ) { __S . testWhich ( "acceptFromThirdParty" , __S . getUint16 ( 6 , this ) , 5 , this ) ; return __S . getPointer ( 0 , this ) ; } hasAcceptFromThirdParty ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } isAcceptFromThirdParty ( ) { return __S . getUint16 ( 6 , this ) === 5 ; } setAcceptFromThirdParty ( value ) { __S . setUint16 ( 6 , 5 , this ) ; __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } toString ( ) { return "Return_" + super . toString ( ) ; } which ( ) { return __S . getUint16 ( 6 , this ) ; } } export class Finish extends __S { static readonly _capnp = { displayName : "Finish" , id : "d37d2eb2c2f80e63" , size : new __O ( 8 , 0 ) , defaultReleaseResultCaps : capnp . getBitMask ( true , 0 ) } ; getQuestionId ( ) { return __S . getUint32 ( 0 , this ) ; } setQuestionId ( value ) { __S . setUint32 ( 0 , value , this ) ; } getReleaseResultCaps ( ) { return __S . getBit ( 32 , this , Finish . _capnp . defaultReleaseResultCaps ) ; } setReleaseResultCaps ( value ) { __S . setBit ( 32 , value , this ) ; } toString ( ) { return "Finish_" + super . toString ( ) ; } } export enum Resolve_Which { CAP = 0 , EXCEPTION = 1 } export class Resolve extends __S { static readonly CAP = Resolve_Which . CAP ; static readonly EXCEPTION = Resolve_Which . EXCEPTION ; static readonly _capnp = { displayName : "Resolve" , id : "bbc29655fa89086e" , size : new __O ( 8 , 1 ) } ; getPromiseId ( ) { return __S . getUint32 ( 0 , this ) ; } setPromiseId ( value ) { __S . setUint32 ( 0 , value , this ) ; } adoptCap ( value ) { __S . setUint16 ( 4 , 0 , this ) ; __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownCap ( ) { return __S . disown ( this . getCap ( ) ) ; } getCap ( ) { __S . testWhich ( "cap" , __S . getUint16 ( 4 , this ) , 0 , this ) ; return __S . getStruct ( 0 , CapDescriptor , this ) ; } hasCap ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initCap ( ) { __S . setUint16 ( 4 , 0 , this ) ; return __S . initStructAt ( 0 , CapDescriptor , this ) ; } isCap ( ) { return __S . getUint16 ( 4 , this ) === 0 ; } setCap ( value ) { __S . setUint16 ( 4 , 0 , this ) ; __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } adoptException ( value ) { __S . setUint16 ( 4 , 1 , this ) ; __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownException ( ) { return __S . disown ( this . getException ( ) ) ; } getException ( ) { __S . testWhich ( "exception" , __S . getUint16 ( 4 , this ) , 1 , this ) ; return __S . getStruct ( 0 , Exception , this ) ; } hasException ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initException ( ) { __S . setUint16 ( 4 , 1 , this ) ; return __S . initStructAt ( 0 , Exception , this ) ; } isException ( ) { return __S . getUint16 ( 4 , this ) === 1 ; } setException ( value ) { __S . setUint16 ( 4 , 1 , this ) ; __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } toString ( ) { return "Resolve_" + super . toString ( ) ; } which ( ) { return __S . getUint16 ( 4 , this ) ; } } export class Release extends __S { static readonly _capnp = { displayName : "Release" , id : "ad1a6c0d7dd07497" , size : new __O ( 8 , 0 ) } ; getId ( ) { return __S . getUint32 ( 0 , this ) ; } setId ( value ) { __S . setUint32 ( 0 , value , this ) ; } getReferenceCount ( ) { return __S . getUint32 ( 4 , this ) ; } setReferenceCount ( value ) { __S . setUint32 ( 4 , value , this ) ; } toString ( ) { return "Release_" + super . toString ( ) ; } } export enum Disembargo_Context_Which { SENDER_LOOPBACK = 0 , RECEIVER_LOOPBACK = 1 , ACCEPT = 2 , PROVIDE = 3 } export class Disembargo_Context extends __S { static readonly SENDER_LOOPBACK = Disembargo_Context_Which . SENDER_LOOPBACK ; static readonly RECEIVER_LOOPBACK = Disembargo_Context_Which . RECEIVER_LOOPBACK ; static readonly ACCEPT = Disembargo_Context_Which . ACCEPT ; static readonly PROVIDE = Disembargo_Context_Which . PROVIDE ; static readonly _capnp = { displayName : "context" , id : "d562b4df655bdd4d" , size : new __O ( 8 , 1 ) } ; getSenderLoopback ( ) { __S . testWhich ( "senderLoopback" , __S . getUint16 ( 4 , this ) , 0 , this ) ; return __S . getUint32 ( 0 , this ) ; } isSenderLoopback ( ) { return __S . getUint16 ( 4 , this ) === 0 ; } setSenderLoopback ( value ) { __S . setUint16 ( 4 , 0 , this ) ; __S . setUint32 ( 0 , value , this ) ; } getReceiverLoopback ( ) { __S . testWhich ( "receiverLoopback" , __S . getUint16 ( 4 , this ) , 1 , this ) ; return __S . getUint32 ( 0 , this ) ; } isReceiverLoopback ( ) { return __S . getUint16 ( 4 , this ) === 1 ; } setReceiverLoopback ( value ) { __S . setUint16 ( 4 , 1 , this ) ; __S . setUint32 ( 0 , value , this ) ; } isAccept ( ) { return __S . getUint16 ( 4 , this ) === 2 ; } setAccept ( ) { __S . setUint16 ( 4 , 2 , this ) ; } getProvide ( ) { __S . testWhich ( "provide" , __S . getUint16 ( 4 , this ) , 3 , this ) ; return __S . getUint32 ( 0 , this ) ; } isProvide ( ) { return __S . getUint16 ( 4 , this ) === 3 ; } setProvide ( value ) { __S . setUint16 ( 4 , 3 , this ) ; __S . setUint32 ( 0 , value , this ) ; } toString ( ) { return "Disembargo_Context_" + super . toString ( ) ; } which ( ) { return __S . getUint16 ( 4 , this ) ; } } export class Disembargo extends __S { static readonly _capnp = { displayName : "Disembargo" , id : "f964368b0fbd3711" , size : new __O ( 8 , 1 ) } ; adoptTarget ( value ) { __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownTarget ( ) { return __S . disown ( this . getTarget ( ) ) ; } getTarget ( ) { return __S . getStruct ( 0 , MessageTarget , this ) ; } hasTarget ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initTarget ( ) { return __S . initStructAt ( 0 , MessageTarget , this ) ; } setTarget ( value ) { __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } getContext ( ) { return __S . getAs ( Disembargo_Context , this ) ; } initContext ( ) { return __S . getAs ( Disembargo_Context , this ) ; } toString ( ) { return "Disembargo_" + super . toString ( ) ; } } export class Provide extends __S { static readonly _capnp = { displayName : "Provide" , id : "9c6a046bfbc1ac5a" , size : new __O ( 8 , 2 ) } ; getQuestionId ( ) { return __S . getUint32 ( 0 , this ) ; } setQuestionId ( value ) { __S . setUint32 ( 0 , value , this ) ; } adoptTarget ( value ) { __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownTarget ( ) { return __S . disown ( this . getTarget ( ) ) ; } getTarget ( ) { return __S . getStruct ( 0 , MessageTarget , this ) ; } hasTarget ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initTarget ( ) { return __S . initStructAt ( 0 , MessageTarget , this ) ; } setTarget ( value ) { __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } adoptRecipient ( value ) { __S . adopt ( value , __S . getPointer ( 1 , this ) ) ; } disownRecipient ( ) { return __S . disown ( this . getRecipient ( ) ) ; } getRecipient ( ) { return __S . getPointer ( 1 , this ) ; } hasRecipient ( ) { return ! __S . isNull ( __S . getPointer ( 1 , this ) ) ; } setRecipient ( value ) { __S . copyFrom ( value , __S . getPointer ( 1 , this ) ) ; } toString ( ) { return "Provide_" + super . toString ( ) ; } } export class Accept extends __S { static readonly _capnp = { displayName : "Accept" , id : "d4c9b56290554016" , size : new __O ( 8 , 1 ) } ; getQuestionId ( ) { return __S . getUint32 ( 0 , this ) ; } setQuestionId ( value ) { __S . setUint32 ( 0 , value , this ) ; } adoptProvision ( value ) { __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownProvision ( ) { return __S . disown ( this . getProvision ( ) ) ; } getProvision ( ) { return __S . getPointer ( 0 , this ) ; } hasProvision ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } setProvision ( value ) { __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } getEmbargo ( ) { return __S . getBit ( 32 , this ) ; } setEmbargo ( value ) { __S . setBit ( 32 , value , this ) ; } toString ( ) { return "Accept_" + super . toString ( ) ; } } export class Join extends __S { static readonly _capnp = { displayName : "Join" , id : "fbe1980490e001af" , size : new __O ( 8 , 2 ) } ; getQuestionId ( ) { return __S . getUint32 ( 0 , this ) ; } setQuestionId ( value ) { __S . setUint32 ( 0 , value , this ) ; } adoptTarget ( value ) { __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownTarget ( ) { return __S . disown ( this . getTarget ( ) ) ; } getTarget ( ) { return __S . getStruct ( 0 , MessageTarget , this ) ; } hasTarget ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initTarget ( ) { return __S . initStructAt ( 0 , MessageTarget , this ) ; } setTarget ( value ) { __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } adoptKeyPart ( value ) { __S . adopt ( value , __S . getPointer ( 1 , this ) ) ; } disownKeyPart ( ) { return __S . disown ( this . getKeyPart ( ) ) ; } getKeyPart ( ) { return __S . getPointer ( 1 , this ) ; } hasKeyPart ( ) { return ! __S . isNull ( __S . getPointer ( 1 , this ) ) ; } setKeyPart ( value ) { __S . copyFrom ( value , __S . getPointer ( 1 , this ) ) ; } toString ( ) { return "Join_" + super . toString ( ) ; } } export enum MessageTarget_Which { IMPORTED_CAP = 0 , PROMISED_ANSWER = 1 } export class MessageTarget extends __S { static readonly IMPORTED_CAP = MessageTarget_Which . IMPORTED_CAP ; static readonly PROMISED_ANSWER = MessageTarget_Which . PROMISED_ANSWER ; static readonly _capnp = { displayName : "MessageTarget" , id : "95bc14545813fbc1" , size : new __O ( 8 , 1 ) } ; getImportedCap ( ) { __S . testWhich ( "importedCap" , __S . getUint16 ( 4 , this ) , 0 , this ) ; return __S . getUint32 ( 0 , this ) ; } isImportedCap ( ) { return __S . getUint16 ( 4 , this ) === 0 ; } setImportedCap ( value ) { __S . setUint16 ( 4 , 0 , this ) ; __S . setUint32 ( 0 , value , this ) ; } adoptPromisedAnswer ( value ) { __S . setUint16 ( 4 , 1 , this ) ; __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownPromisedAnswer ( ) { return __S . disown ( this . getPromisedAnswer ( ) ) ; } getPromisedAnswer ( ) { __S . testWhich ( "promisedAnswer" , __S . getUint16 ( 4 , this ) , 1 , this ) ; return __S . getStruct ( 0 , PromisedAnswer , this ) ; } hasPromisedAnswer ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initPromisedAnswer ( ) { __S . setUint16 ( 4 , 1 , this ) ; return __S . initStructAt ( 0 , PromisedAnswer , this ) ; } isPromisedAnswer ( ) { return __S . getUint16 ( 4 , this ) === 1 ; } setPromisedAnswer ( value ) { __S . setUint16 ( 4 , 1 , this ) ; __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } toString ( ) { return "MessageTarget_" + super . toString ( ) ; } which ( ) { return __S . getUint16 ( 4 , this ) ; } } export class Payload extends __S { static readonly _capnp = { displayName : "Payload" , id : "9a0e61223d96743b" , size : new __O ( 0 , 2 ) } ; static _CapTable : capnp . ListCtor < CapDescriptor > ; adoptContent ( value ) { __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownContent ( ) { return __S . disown ( this . getContent ( ) ) ; } getContent ( ) { return __S . getPointer ( 0 , this ) ; } hasContent ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } setContent ( value ) { __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } adoptCapTable ( value ) { __S . adopt ( value , __S . getPointer ( 1 , this ) ) ; } disownCapTable ( ) { return __S . disown ( this . getCapTable ( ) ) ; } getCapTable ( ) { return __S . getList ( 1 , Payload . _CapTable , this ) ; } hasCapTable ( ) { return ! __S . isNull ( __S . getPointer ( 1 , this ) ) ; } initCapTable ( length ) { return __S . initList ( 1 , Payload . _CapTable , length , this ) ; } setCapTable ( value ) { __S . copyFrom ( value , __S . getPointer ( 1 , this ) ) ; } toString ( ) { return "Payload_" + super . toString ( ) ; } } export enum CapDescriptor_Which { NONE = 0 , SENDER_HOSTED = 1 , SENDER_PROMISE = 2 , RECEIVER_HOSTED = 3 , RECEIVER_ANSWER = 4 , THIRD_PARTY_HOSTED = 5 } export class CapDescriptor extends __S { static readonly NONE = CapDescriptor_Which . NONE ; static readonly SENDER_HOSTED = CapDescriptor_Which . SENDER_HOSTED ; static readonly SENDER_PROMISE = CapDescriptor_Which . SENDER_PROMISE ; static readonly RECEIVER_HOSTED = CapDescriptor_Which . RECEIVER_HOSTED ; static readonly RECEIVER_ANSWER = CapDescriptor_Which . RECEIVER_ANSWER ; static readonly THIRD_PARTY_HOSTED = CapDescriptor_Which . THIRD_PARTY_HOSTED ; static readonly _capnp = { displayName : "CapDescriptor" , id : "8523ddc40b86b8b0" , size : new __O ( 8 , 1 ) } ; isNone ( ) { return __S . getUint16 ( 0 , this ) === 0 ; } setNone ( ) { __S . setUint16 ( 0 , 0 , this ) ; } getSenderHosted ( ) { __S . testWhich ( "senderHosted" , __S . getUint16 ( 0 , this ) , 1 , this ) ; return __S . getUint32 ( 4 , this ) ; } isSenderHosted ( ) { return __S . getUint16 ( 0 , this ) === 1 ; } setSenderHosted ( value ) { __S . setUint16 ( 0 , 1 , this ) ; __S . setUint32 ( 4 , value , this ) ; } getSenderPromise ( ) { __S . testWhich ( "senderPromise" , __S . getUint16 ( 0 , this ) , 2 , this ) ; return __S . getUint32 ( 4 , this ) ; } isSenderPromise ( ) { return __S . getUint16 ( 0 , this ) === 2 ; } setSenderPromise ( value ) { __S . setUint16 ( 0 , 2 , this ) ; __S . setUint32 ( 4 , value , this ) ; } getReceiverHosted ( ) { __S . testWhich ( "receiverHosted" , __S . getUint16 ( 0 , this ) , 3 , this ) ; return __S . getUint32 ( 4 , this ) ; } isReceiverHosted ( ) { return __S . getUint16 ( 0 , this ) === 3 ; } setReceiverHosted ( value ) { __S . setUint16 ( 0 , 3 , this ) ; __S . setUint32 ( 4 , value , this ) ; } adoptReceiverAnswer ( value ) { __S . setUint16 ( 0 , 4 , this ) ; __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownReceiverAnswer ( ) { return __S . disown ( this . getReceiverAnswer ( ) ) ; } getReceiverAnswer ( ) { __S . testWhich ( "receiverAnswer" , __S . getUint16 ( 0 , this ) , 4 , this ) ; return __S . getStruct ( 0 , PromisedAnswer , this ) ; } hasReceiverAnswer ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initReceiverAnswer ( ) { __S . setUint16 ( 0 , 4 , this ) ; return __S . initStructAt ( 0 , PromisedAnswer , this ) ; } isReceiverAnswer ( ) { return __S . getUint16 ( 0 , this ) === 4 ; } setReceiverAnswer ( value ) { __S . setUint16 ( 0 , 4 , this ) ; __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } adoptThirdPartyHosted ( value ) { __S . setUint16 ( 0 , 5 , this ) ; __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownThirdPartyHosted ( ) { return __S . disown ( this . getThirdPartyHosted ( ) ) ; } getThirdPartyHosted ( ) { __S . testWhich ( "thirdPartyHosted" , __S . getUint16 ( 0 , this ) , 5 , this ) ; return __S . getStruct ( 0 , ThirdPartyCapDescriptor , this ) ; } hasThirdPartyHosted ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initThirdPartyHosted ( ) { __S . setUint16 ( 0 , 5 , this ) ; return __S . initStructAt ( 0 , ThirdPartyCapDescriptor , this ) ; } isThirdPartyHosted ( ) { return __S . getUint16 ( 0 , this ) === 5 ; } setThirdPartyHosted ( value ) { __S . setUint16 ( 0 , 5 , this ) ; __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } toString ( ) { return "CapDescriptor_" + super . toString ( ) ; } which ( ) { return __S . getUint16 ( 0 , this ) ; } } export enum PromisedAnswer_Op_Which { NOOP = 0 , GET_POINTER_FIELD = 1 } export class PromisedAnswer_Op extends __S { static readonly NOOP = PromisedAnswer_Op_Which . NOOP ; static readonly GET_POINTER_FIELD = PromisedAnswer_Op_Which . GET_POINTER_FIELD ; static readonly _capnp = { displayName : "Op" , id : "f316944415569081" , size : new __O ( 8 , 0 ) } ; isNoop ( ) { return __S . getUint16 ( 0 , this ) === 0 ; } setNoop ( ) { __S . setUint16 ( 0 , 0 , this ) ; } getGetPointerField ( ) { __S . testWhich ( "getPointerField" , __S . getUint16 ( 0 , this ) , 1 , this ) ; return __S . getUint16 ( 2 , this ) ; } isGetPointerField ( ) { return __S . getUint16 ( 0 , this ) === 1 ; } setGetPointerField ( value ) { __S . setUint16 ( 0 , 1 , this ) ; __S . setUint16 ( 2 , value , this ) ; } toString ( ) { return "PromisedAnswer_Op_" + super . toString ( ) ; } which ( ) { return __S . getUint16 ( 0 , this ) ; } } export class PromisedAnswer extends __S { static readonly Op = PromisedAnswer_Op ; static readonly _capnp = { displayName : "PromisedAnswer" , id : "d800b1d6cd6f1ca0" , size : new __O ( 8 , 1 ) } ; static _Transform : capnp . ListCtor < PromisedAnswer_Op > ; getQuestionId ( ) { return __S . getUint32 ( 0 , this ) ; } setQuestionId ( value ) { __S . setUint32 ( 0 , value , this ) ; } adoptTransform ( value ) { __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownTransform ( ) { return __S . disown ( this . getTransform ( ) ) ; } getTransform ( ) { return __S . getList ( 0 , PromisedAnswer . _Transform , this ) ; } hasTransform ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } initTransform ( length ) { return __S . initList ( 0 , PromisedAnswer . _Transform , length , this ) ; } setTransform ( value ) { __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } toString ( ) { return "PromisedAnswer_" + super . toString ( ) ; } } export class ThirdPartyCapDescriptor extends __S { static readonly _capnp = { displayName : "ThirdPartyCapDescriptor" , id : "d37007fde1f0027d" , size : new __O ( 8 , 1 ) } ; adoptId ( value ) { __S . adopt ( value , __S . getPointer ( 0 , this ) ) ; } disownId ( ) { return __S . disown ( this . getId ( ) ) ; } getId ( ) { return __S . getPointer ( 0 , this ) ; } hasId ( ) { return ! __S . isNull ( __S . getPointer ( 0 , this ) ) ; } setId ( value ) { __S . copyFrom ( value , __S . getPointer ( 0 , this ) ) ; } getVineId ( ) { return __S . getUint32 ( 0 , this ) ; } setVineId ( value ) { __S . setUint32 ( 0 , value , this ) ; } toString ( ) { return "ThirdPartyCapDescriptor_" + super . toString ( ) ; } } export enum Exception_Type { FAILED , OVERLOADED , DISCONNECTED , UNIMPLEMENTED } export class Exception extends __S { static readonly Type = Exception_Type ; static readonly _capnp = { displayName : "Exception" , id : "d625b7063acf691a" , size : new __O ( 8 , 1 ) } ; getReason ( ) { return __S . getText ( 0 , this ) ; } setReason ( value ) { __S . setText ( 0 , value , this ) ; } getType ( ) { return __S . getUint16 ( 4 , this ) ; } setType ( value ) { __S . setUint16 ( 4 , value , this ) ; } getObsoleteIsCallersFault ( ) { return __S . getBit ( 0 , this ) ; } setObsoleteIsCallersFault ( value ) { __S . setBit ( 0 , value , this ) ; } getObsoleteDurability ( ) { return __S . getUint16 ( 2 , this ) ; } setObsoleteDurability ( value ) { __S . setUint16 ( 2 , value , this ) ; } toString ( ) { return "Exception_" + super . toString ( ) ; } } Payload . _CapTable = capnp . CompositeList ( CapDescriptor ) ; PromisedAnswer . _Transform = capnp . CompositeList ( PromisedAnswer_Op ) ;