<s> from google . net . proto import ProtocolBuffer <EOL> import array <EOL> import dummy_thread as thread <EOL> __pychecker__ = """<STR_LIT>""" <EOL> if hasattr ( ProtocolBuffer , '<STR_LIT>' ) : <EOL> _extension_runtime = True <EOL> _ExtendableProtocolMessage = ProtocolBuffer . ExtendableProtocolMessage <EOL> else : <EOL> _extension_runtime = False <EOL> _ExtendableProtocolMessage = ProtocolBuffer . ProtocolMessage <EOL> class ModulesServiceError ( ProtocolBuffer . ProtocolMessage ) : <EOL> OK = <NUM_LIT:0> <EOL> INVALID_MODULE = <NUM_LIT:1> <EOL> INVALID_VERSION = <NUM_LIT:2> <EOL> INVALID_INSTANCES = <NUM_LIT:3> <EOL> TRANSIENT_ERROR = <NUM_LIT:4> <EOL> UNEXPECTED_STATE = <NUM_LIT:5> <EOL> _ErrorCode_NAMES = { <EOL> <NUM_LIT:0> : "<STR_LIT:OK>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> <NUM_LIT:2> : "<STR_LIT>" , <EOL> <NUM_LIT:3> : "<STR_LIT>" , <EOL> <NUM_LIT:4> : "<STR_LIT>" , <EOL> <NUM_LIT:5> : "<STR_LIT>" , <EOL> } <EOL> def ErrorCode_Name ( cls , x ) : return cls . _ErrorCode_NAMES . get ( x , "<STR_LIT>" ) <EOL> ErrorCode_Name = classmethod ( ErrorCode_Name ) <EOL> def __init__ ( self , contents = None ) : <EOL> pass <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> return n <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> return n <EOL> def Clear ( self ) : <EOL> pass <EOL> def OutputUnchecked ( self , out ) : <EOL> pass <EOL> def OutputPartial ( self , out ) : <EOL> pass <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> } , <NUM_LIT:0> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> } , <NUM_LIT:0> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class GetModulesRequest ( ProtocolBuffer . ProtocolMessage ) : <EOL> def __init__ ( self , contents = None ) : <EOL> pass <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> return n <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> return n <EOL> def Clear ( self ) : <EOL> pass <EOL> def OutputUnchecked ( self , out ) : <EOL> pass <EOL> def OutputPartial ( self , out ) : <EOL> pass <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> } , <NUM_LIT:0> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> } , <NUM_LIT:0> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class GetModulesResponse ( ProtocolBuffer . ProtocolMessage ) : <EOL> def __init__ ( self , contents = None ) : <EOL> self . module_ = [ ] <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def module_size ( self ) : return len ( self . module_ ) <EOL> def module_list ( self ) : return self . module_ <EOL> def module ( self , i ) : <EOL> return self . module_ [ i ] <EOL> def set_module ( self , i , x ) : <EOL> self . module_ [ i ] = x <EOL> def add_module ( self , x ) : <EOL> self . module_ . append ( x ) <EOL> def clear_module ( self ) : <EOL> self . module_ = [ ] <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> for i in xrange ( x . module_size ( ) ) : self . add_module ( x . module ( i ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if len ( self . module_ ) != len ( x . module_ ) : return <NUM_LIT:0> <EOL> for e1 , e2 in zip ( self . module_ , x . module_ ) : <EOL> if e1 != e2 : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += <NUM_LIT:1> * len ( self . module_ ) <EOL> for i in xrange ( len ( self . module_ ) ) : n += self . lengthString ( len ( self . module_ [ i ] ) ) <EOL> return n <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += <NUM_LIT:1> * len ( self . module_ ) <EOL> for i in xrange ( len ( self . module_ ) ) : n += self . lengthString ( len ( self . module_ [ i ] ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_module ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> for i in xrange ( len ( self . module_ ) ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . module_ [ i ] ) <EOL> def OutputPartial ( self , out ) : <EOL> for i in xrange ( len ( self . module_ ) ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . module_ [ i ] ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:10> : <EOL> self . add_module ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> cnt = <NUM_LIT:0> <EOL> for e in self . module_ : <EOL> elm = "<STR_LIT>" <EOL> if printElemNumber : elm = "<STR_LIT>" % cnt <EOL> res += prefix + ( "<STR_LIT>" % ( elm , self . DebugFormatString ( e ) ) ) <EOL> cnt += <NUM_LIT:1> <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kmodule = <NUM_LIT:1> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> } , <NUM_LIT:1> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . STRING , <EOL> } , <NUM_LIT:1> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class GetVersionsRequest ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_module_ = <NUM_LIT:0> <EOL> module_ = "<STR_LIT>" <EOL> def __init__ ( self , contents = None ) : <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def module ( self ) : return self . module_ <EOL> def set_module ( self , x ) : <EOL> self . has_module_ = <NUM_LIT:1> <EOL> self . module_ = x <EOL> def clear_module ( self ) : <EOL> if self . has_module_ : <EOL> self . has_module_ = <NUM_LIT:0> <EOL> self . module_ = "<STR_LIT>" <EOL> def has_module ( self ) : return self . has_module_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_module ( ) ) : self . set_module ( x . module ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_module_ != x . has_module_ : return <NUM_LIT:0> <EOL> if self . has_module_ and self . module_ != x . module_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_module_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . module_ ) ) <EOL> return n <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_module_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . module_ ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_module ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> if ( self . has_module_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . module_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_module_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . module_ ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:10> : <EOL> self . set_module ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_module_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . module_ ) ) <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kmodule = <NUM_LIT:1> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> } , <NUM_LIT:1> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . STRING , <EOL> } , <NUM_LIT:1> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class GetVersionsResponse ( ProtocolBuffer . ProtocolMessage ) : <EOL> def __init__ ( self , contents = None ) : <EOL> self . version_ = [ ] <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def version_size ( self ) : return len ( self . version_ ) <EOL> def version_list ( self ) : return self . version_ <EOL> def version ( self , i ) : <EOL> return self . version_ [ i ] <EOL> def set_version ( self , i , x ) : <EOL> self . version_ [ i ] = x <EOL> def add_version ( self , x ) : <EOL> self . version_ . append ( x ) <EOL> def clear_version ( self ) : <EOL> self . version_ = [ ] <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> for i in xrange ( x . version_size ( ) ) : self . add_version ( x . version ( i ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if len ( self . version_ ) != len ( x . version_ ) : return <NUM_LIT:0> <EOL> for e1 , e2 in zip ( self . version_ , x . version_ ) : <EOL> if e1 != e2 : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += <NUM_LIT:1> * len ( self . version_ ) <EOL> for i in xrange ( len ( self . version_ ) ) : n += self . lengthString ( len ( self . version_ [ i ] ) ) <EOL> return n <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += <NUM_LIT:1> * len ( self . version_ ) <EOL> for i in xrange ( len ( self . version_ ) ) : n += self . lengthString ( len ( self . version_ [ i ] ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_version ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> for i in xrange ( len ( self . version_ ) ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . version_ [ i ] ) <EOL> def OutputPartial ( self , out ) : <EOL> for i in xrange ( len ( self . version_ ) ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . version_ [ i ] ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:10> : <EOL> self . add_version ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> cnt = <NUM_LIT:0> <EOL> for e in self . version_ : <EOL> elm = "<STR_LIT>" <EOL> if printElemNumber : elm = "<STR_LIT>" % cnt <EOL> res += prefix + ( "<STR_LIT>" % ( elm , self . DebugFormatString ( e ) ) ) <EOL> cnt += <NUM_LIT:1> <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kversion = <NUM_LIT:1> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT:version>" , <EOL> } , <NUM_LIT:1> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . STRING , <EOL> } , <NUM_LIT:1> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class GetDefaultVersionRequest ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_module_ = <NUM_LIT:0> <EOL> module_ = "<STR_LIT>" <EOL> def __init__ ( self , contents = None ) : <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def module ( self ) : return self . module_ <EOL> def set_module ( self , x ) : <EOL> self . has_module_ = <NUM_LIT:1> <EOL> self . module_ = x <EOL> def clear_module ( self ) : <EOL> if self . has_module_ : <EOL> self . has_module_ = <NUM_LIT:0> <EOL> self . module_ = "<STR_LIT>" <EOL> def has_module ( self ) : return self . has_module_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_module ( ) ) : self . set_module ( x . module ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_module_ != x . has_module_ : return <NUM_LIT:0> <EOL> if self . has_module_ and self . module_ != x . module_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_module_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . module_ ) ) <EOL> return n <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_module_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . module_ ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_module ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> if ( self . has_module_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . module_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_module_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . module_ ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:10> : <EOL> self . set_module ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_module_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . module_ ) ) <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kmodule = <NUM_LIT:1> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> } , <NUM_LIT:1> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . STRING , <EOL> } , <NUM_LIT:1> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class GetDefaultVersionResponse ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_version_ = <NUM_LIT:0> <EOL> version_ = "<STR_LIT>" <EOL> def __init__ ( self , contents = None ) : <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def version ( self ) : return self . version_ <EOL> def set_version ( self , x ) : <EOL> self . has_version_ = <NUM_LIT:1> <EOL> self . version_ = x <EOL> def clear_version ( self ) : <EOL> if self . has_version_ : <EOL> self . has_version_ = <NUM_LIT:0> <EOL> self . version_ = "<STR_LIT>" <EOL> def has_version ( self ) : return self . has_version_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_version ( ) ) : self . set_version ( x . version ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_version_ != x . has_version_ : return <NUM_LIT:0> <EOL> if self . has_version_ and self . version_ != x . version_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> if ( not self . has_version_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += self . lengthString ( len ( self . version_ ) ) <EOL> return n + <NUM_LIT:1> <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_version_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthString ( len ( self . version_ ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_version ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . version_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_version_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . version_ ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:10> : <EOL> self . set_version ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_version_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . version_ ) ) <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kversion = <NUM_LIT:1> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT:version>" , <EOL> } , <NUM_LIT:1> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . STRING , <EOL> } , <NUM_LIT:1> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class GetNumInstancesRequest ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_module_ = <NUM_LIT:0> <EOL> module_ = "<STR_LIT>" <EOL> has_version_ = <NUM_LIT:0> <EOL> version_ = "<STR_LIT>" <EOL> def __init__ ( self , contents = None ) : <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def module ( self ) : return self . module_ <EOL> def set_module ( self , x ) : <EOL> self . has_module_ = <NUM_LIT:1> <EOL> self . module_ = x <EOL> def clear_module ( self ) : <EOL> if self . has_module_ : <EOL> self . has_module_ = <NUM_LIT:0> <EOL> self . module_ = "<STR_LIT>" <EOL> def has_module ( self ) : return self . has_module_ <EOL> def version ( self ) : return self . version_ <EOL> def set_version ( self , x ) : <EOL> self . has_version_ = <NUM_LIT:1> <EOL> self . version_ = x <EOL> def clear_version ( self ) : <EOL> if self . has_version_ : <EOL> self . has_version_ = <NUM_LIT:0> <EOL> self . version_ = "<STR_LIT>" <EOL> def has_version ( self ) : return self . has_version_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_module ( ) ) : self . set_module ( x . module ( ) ) <EOL> if ( x . has_version ( ) ) : self . set_version ( x . version ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_module_ != x . has_module_ : return <NUM_LIT:0> <EOL> if self . has_module_ and self . module_ != x . module_ : return <NUM_LIT:0> <EOL> if self . has_version_ != x . has_version_ : return <NUM_LIT:0> <EOL> if self . has_version_ and self . version_ != x . version_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_module_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . module_ ) ) <EOL> if ( self . has_version_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . version_ ) ) <EOL> return n <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_module_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . module_ ) ) <EOL> if ( self . has_version_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . version_ ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_module ( ) <EOL> self . clear_version ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> if ( self . has_module_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . module_ ) <EOL> if ( self . has_version_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . version_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_module_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . module_ ) <EOL> if ( self . has_version_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . version_ ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:10> : <EOL> self . set_module ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_version ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_module_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . module_ ) ) <EOL> if self . has_version_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . version_ ) ) <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kmodule = <NUM_LIT:1> <EOL> kversion = <NUM_LIT:2> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> <NUM_LIT:2> : "<STR_LIT:version>" , <EOL> } , <NUM_LIT:2> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . STRING , <EOL> <NUM_LIT:2> : ProtocolBuffer . Encoder . STRING , <EOL> } , <NUM_LIT:2> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class GetNumInstancesResponse ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_instances_ = <NUM_LIT:0> <EOL> instances_ = <NUM_LIT:0> <EOL> def __init__ ( self , contents = None ) : <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def instances ( self ) : return self . instances_ <EOL> def set_instances ( self , x ) : <EOL> self . has_instances_ = <NUM_LIT:1> <EOL> self . instances_ = x <EOL> def clear_instances ( self ) : <EOL> if self . has_instances_ : <EOL> self . has_instances_ = <NUM_LIT:0> <EOL> self . instances_ = <NUM_LIT:0> <EOL> def has_instances ( self ) : return self . has_instances_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_instances ( ) ) : self . set_instances ( x . instances ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_instances_ != x . has_instances_ : return <NUM_LIT:0> <EOL> if self . has_instances_ and self . instances_ != x . instances_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> if ( not self . has_instances_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += self . lengthVarInt64 ( self . instances_ ) <EOL> return n + <NUM_LIT:1> <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_instances_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthVarInt64 ( self . instances_ ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_instances ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> out . putVarInt32 ( <NUM_LIT:8> ) <EOL> out . putVarInt64 ( self . instances_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_instances_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:8> ) <EOL> out . putVarInt64 ( self . instances_ ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:8> : <EOL> self . set_instances ( d . getVarInt64 ( ) ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_instances_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatInt64 ( self . instances_ ) ) <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kinstances = <NUM_LIT:1> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> } , <NUM_LIT:1> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . NUMERIC , <EOL> } , <NUM_LIT:1> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class SetNumInstancesRequest ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_module_ = <NUM_LIT:0> <EOL> module_ = "<STR_LIT>" <EOL> has_version_ = <NUM_LIT:0> <EOL> version_ = "<STR_LIT>" <EOL> has_instances_ = <NUM_LIT:0> <EOL> instances_ = <NUM_LIT:0> <EOL> def __init__ ( self , contents = None ) : <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def module ( self ) : return self . module_ <EOL> def set_module ( self , x ) : <EOL> self . has_module_ = <NUM_LIT:1> <EOL> self . module_ = x <EOL> def clear_module ( self ) : <EOL> if self . has_module_ : <EOL> self . has_module_ = <NUM_LIT:0> <EOL> self . module_ = "<STR_LIT>" <EOL> def has_module ( self ) : return self . has_module_ <EOL> def version ( self ) : return self . version_ <EOL> def set_version ( self , x ) : <EOL> self . has_version_ = <NUM_LIT:1> <EOL> self . version_ = x <EOL> def clear_version ( self ) : <EOL> if self . has_version_ : <EOL> self . has_version_ = <NUM_LIT:0> <EOL> self . version_ = "<STR_LIT>" <EOL> def has_version ( self ) : return self . has_version_ <EOL> def instances ( self ) : return self . instances_ <EOL> def set_instances ( self , x ) : <EOL> self . has_instances_ = <NUM_LIT:1> <EOL> self . instances_ = x <EOL> def clear_instances ( self ) : <EOL> if self . has_instances_ : <EOL> self . has_instances_ = <NUM_LIT:0> <EOL> self . instances_ = <NUM_LIT:0> <EOL> def has_instances ( self ) : return self . has_instances_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_module ( ) ) : self . set_module ( x . module ( ) ) <EOL> if ( x . has_version ( ) ) : self . set_version ( x . version ( ) ) <EOL> if ( x . has_instances ( ) ) : self . set_instances ( x . instances ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_module_ != x . has_module_ : return <NUM_LIT:0> <EOL> if self . has_module_ and self . module_ != x . module_ : return <NUM_LIT:0> <EOL> if self . has_version_ != x . has_version_ : return <NUM_LIT:0> <EOL> if self . has_version_ and self . version_ != x . version_ : return <NUM_LIT:0> <EOL> if self . has_instances_ != x . has_instances_ : return <NUM_LIT:0> <EOL> if self . has_instances_ and self . instances_ != x . instances_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> if ( not self . has_instances_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_module_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . module_ ) ) <EOL> if ( self . has_version_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . version_ ) ) <EOL> n += self . lengthVarInt64 ( self . instances_ ) <EOL> return n + <NUM_LIT:1> <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_module_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . module_ ) ) <EOL> if ( self . has_version_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . version_ ) ) <EOL> if ( self . has_instances_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthVarInt64 ( self . instances_ ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_module ( ) <EOL> self . clear_version ( ) <EOL> self . clear_instances ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> if ( self . has_module_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . module_ ) <EOL> if ( self . has_version_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . version_ ) <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putVarInt64 ( self . instances_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_module_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . module_ ) <EOL> if ( self . has_version_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . version_ ) <EOL> if ( self . has_instances_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putVarInt64 ( self . instances_ ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:10> : <EOL> self . set_module ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_version ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_instances ( d . getVarInt64 ( ) ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_module_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . module_ ) ) <EOL> if self . has_version_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . version_ ) ) <EOL> if self . has_instances_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatInt64 ( self . instances_ ) ) <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kmodule = <NUM_LIT:1> <EOL> kversion = <NUM_LIT:2> <EOL> kinstances = <NUM_LIT:3> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> <NUM_LIT:2> : "<STR_LIT:version>" , <EOL> <NUM_LIT:3> : "<STR_LIT>" , <EOL> } , <NUM_LIT:3> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . STRING , <EOL> <NUM_LIT:2> : ProtocolBuffer . Encoder . STRING , <EOL> <NUM_LIT:3> : ProtocolBuffer . Encoder . NUMERIC , <EOL> } , <NUM_LIT:3> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class SetNumInstancesResponse ( ProtocolBuffer . ProtocolMessage ) : <EOL> def __init__ ( self , contents = None ) : <EOL> pass <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> return n <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> return n <EOL> def Clear ( self ) : <EOL> pass <EOL> def OutputUnchecked ( self , out ) : <EOL> pass <EOL> def OutputPartial ( self , out ) : <EOL> pass <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> } , <NUM_LIT:0> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> } , <NUM_LIT:0> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class StartModuleRequest ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_module_ = <NUM_LIT:0> <EOL> module_ = "<STR_LIT>" <EOL> has_version_ = <NUM_LIT:0> <EOL> version_ = "<STR_LIT>" <EOL> def __init__ ( self , contents = None ) : <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def module ( self ) : return self . module_ <EOL> def set_module ( self , x ) : <EOL> self . has_module_ = <NUM_LIT:1> <EOL> self . module_ = x <EOL> def clear_module ( self ) : <EOL> if self . has_module_ : <EOL> self . has_module_ = <NUM_LIT:0> <EOL> self . module_ = "<STR_LIT>" <EOL> def has_module ( self ) : return self . has_module_ <EOL> def version ( self ) : return self . version_ <EOL> def set_version ( self , x ) : <EOL> self . has_version_ = <NUM_LIT:1> <EOL> self . version_ = x <EOL> def clear_version ( self ) : <EOL> if self . has_version_ : <EOL> self . has_version_ = <NUM_LIT:0> <EOL> self . version_ = "<STR_LIT>" <EOL> def has_version ( self ) : return self . has_version_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_module ( ) ) : self . set_module ( x . module ( ) ) <EOL> if ( x . has_version ( ) ) : self . set_version ( x . version ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_module_ != x . has_module_ : return <NUM_LIT:0> <EOL> if self . has_module_ and self . module_ != x . module_ : return <NUM_LIT:0> <EOL> if self . has_version_ != x . has_version_ : return <NUM_LIT:0> <EOL> if self . has_version_ and self . version_ != x . version_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> if ( not self . has_module_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> if ( not self . has_version_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += self . lengthString ( len ( self . module_ ) ) <EOL> n += self . lengthString ( len ( self . version_ ) ) <EOL> return n + <NUM_LIT:2> <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_module_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthString ( len ( self . module_ ) ) <EOL> if ( self . has_version_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthString ( len ( self . version_ ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_module ( ) <EOL> self . clear_version ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . module_ ) <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . version_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_module_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . module_ ) <EOL> if ( self . has_version_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . version_ ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:10> : <EOL> self . set_module ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_version ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_module_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . module_ ) ) <EOL> if self . has_version_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . version_ ) ) <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kmodule = <NUM_LIT:1> <EOL> kversion = <NUM_LIT:2> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> <NUM_LIT:2> : "<STR_LIT:version>" , <EOL> } , <NUM_LIT:2> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . STRING , <EOL> <NUM_LIT:2> : ProtocolBuffer . Encoder . STRING , <EOL> } , <NUM_LIT:2> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class StartModuleResponse ( ProtocolBuffer . ProtocolMessage ) : <EOL> def __init__ ( self , contents = None ) : <EOL> pass <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> return n <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> return n <EOL> def Clear ( self ) : <EOL> pass <EOL> def OutputUnchecked ( self , out ) : <EOL> pass <EOL> def OutputPartial ( self , out ) : <EOL> pass <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> } , <NUM_LIT:0> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> } , <NUM_LIT:0> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class StopModuleRequest ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_module_ = <NUM_LIT:0> <EOL> module_ = "<STR_LIT>" <EOL> has_version_ = <NUM_LIT:0> <EOL> version_ = "<STR_LIT>" <EOL> def __init__ ( self , contents = None ) : <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def module ( self ) : return self . module_ <EOL> def set_module ( self , x ) : <EOL> self . has_module_ = <NUM_LIT:1> <EOL> self . module_ = x <EOL> def clear_module ( self ) : <EOL> if self . has_module_ : <EOL> self . has_module_ = <NUM_LIT:0> <EOL> self . module_ = "<STR_LIT>" <EOL> def has_module ( self ) : return self . has_module_ <EOL> def version ( self ) : return self . version_ <EOL> def set_version ( self , x ) : <EOL> self . has_version_ = <NUM_LIT:1> <EOL> self . version_ = x <EOL> def clear_version ( self ) : <EOL> if self . has_version_ : <EOL> self . has_version_ = <NUM_LIT:0> <EOL> self . version_ = "<STR_LIT>" <EOL> def has_version ( self ) : return self . has_version_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_module ( ) ) : self . set_module ( x . module ( ) ) <EOL> if ( x . has_version ( ) ) : self . set_version ( x . version ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_module_ != x . has_module_ : return <NUM_LIT:0> <EOL> if self . has_module_ and self . module_ != x . module_ : return <NUM_LIT:0> <EOL> if self . has_version_ != x . has_version_ : return <NUM_LIT:0> <EOL> if self . has_version_ and self . version_ != x . version_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_module_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . module_ ) ) <EOL> if ( self . has_version_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . version_ ) ) <EOL> return n <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_module_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . module_ ) ) <EOL> if ( self . has_version_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . version_ ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_module ( ) <EOL> self . clear_version ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> if ( self . has_module_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . module_ ) <EOL> if ( self . has_version_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . version_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_module_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . module_ ) <EOL> if ( self . has_version_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . version_ ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:10> : <EOL> self . set_module ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_version ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_module_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . module_ ) ) <EOL> if self . has_version_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . version_ ) ) <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kmodule = <NUM_LIT:1> <EOL> kversion = <NUM_LIT:2> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> <NUM_LIT:2> : "<STR_LIT:version>" , <EOL> } , <NUM_LIT:2> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . STRING , <EOL> <NUM_LIT:2> : ProtocolBuffer . Encoder . STRING , <EOL> } , <NUM_LIT:2> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class StopModuleResponse ( ProtocolBuffer . ProtocolMessage ) : <EOL> def __init__ ( self , contents = None ) : <EOL> pass <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> return n <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> return n <EOL> def Clear ( self ) : <EOL> pass <EOL> def OutputUnchecked ( self , out ) : <EOL> pass <EOL> def OutputPartial ( self , out ) : <EOL> pass <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> } , <NUM_LIT:0> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> } , <NUM_LIT:0> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class GetHostnameRequest ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_module_ = <NUM_LIT:0> <EOL> module_ = "<STR_LIT>" <EOL> has_version_ = <NUM_LIT:0> <EOL> version_ = "<STR_LIT>" <EOL> has_instance_ = <NUM_LIT:0> <EOL> instance_ = "<STR_LIT>" <EOL> def __init__ ( self , contents = None ) : <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def module ( self ) : return self . module_ <EOL> def set_module ( self , x ) : <EOL> self . has_module_ = <NUM_LIT:1> <EOL> self . module_ = x <EOL> def clear_module ( self ) : <EOL> if self . has_module_ : <EOL> self . has_module_ = <NUM_LIT:0> <EOL> self . module_ = "<STR_LIT>" <EOL> def has_module ( self ) : return self . has_module_ <EOL> def version ( self ) : return self . version_ <EOL> def set_version ( self , x ) : <EOL> self . has_version_ = <NUM_LIT:1> <EOL> self . version_ = x <EOL> def clear_version ( self ) : <EOL> if self . has_version_ : <EOL> self . has_version_ = <NUM_LIT:0> <EOL> self . version_ = "<STR_LIT>" <EOL> def has_version ( self ) : return self . has_version_ <EOL> def instance ( self ) : return self . instance_ <EOL> def set_instance ( self , x ) : <EOL> self . has_instance_ = <NUM_LIT:1> <EOL> self . instance_ = x <EOL> def clear_instance ( self ) : <EOL> if self . has_instance_ : <EOL> self . has_instance_ = <NUM_LIT:0> <EOL> self . instance_ = "<STR_LIT>" <EOL> def has_instance ( self ) : return self . has_instance_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_module ( ) ) : self . set_module ( x . module ( ) ) <EOL> if ( x . has_version ( ) ) : self . set_version ( x . version ( ) ) <EOL> if ( x . has_instance ( ) ) : self . set_instance ( x . instance ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_module_ != x . has_module_ : return <NUM_LIT:0> <EOL> if self . has_module_ and self . module_ != x . module_ : return <NUM_LIT:0> <EOL> if self . has_version_ != x . has_version_ : return <NUM_LIT:0> <EOL> if self . has_version_ and self . version_ != x . version_ : return <NUM_LIT:0> <EOL> if self . has_instance_ != x . has_instance_ : return <NUM_LIT:0> <EOL> if self . has_instance_ and self . instance_ != x . instance_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_module_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . module_ ) ) <EOL> if ( self . has_version_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . version_ ) ) <EOL> if ( self . has_instance_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . instance_ ) ) <EOL> return n <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_module_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . module_ ) ) <EOL> if ( self . has_version_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . version_ ) ) <EOL> if ( self . has_instance_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . instance_ ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_module ( ) <EOL> self . clear_version ( ) <EOL> self . clear_instance ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> if ( self . has_module_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . module_ ) <EOL> if ( self . has_version_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . version_ ) <EOL> if ( self . has_instance_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . instance_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_module_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . module_ ) <EOL> if ( self . has_version_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . version_ ) <EOL> if ( self . has_instance_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . instance_ ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:10> : <EOL> self . set_module ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_version ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_instance ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_module_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . module_ ) ) <EOL> if self . has_version_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . version_ ) ) <EOL> if self . has_instance_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . instance_ ) ) <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> kmodule = <NUM_LIT:1> <EOL> kversion = <NUM_LIT:2> <EOL> kinstance = <NUM_LIT:3> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> <NUM_LIT:2> : "<STR_LIT:version>" , <EOL> <NUM_LIT:3> : "<STR_LIT>" , <EOL> } , <NUM_LIT:3> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . STRING , <EOL> <NUM_LIT:2> : ProtocolBuffer . Encoder . STRING , <EOL> <NUM_LIT:3> : ProtocolBuffer . Encoder . STRING , <EOL> } , <NUM_LIT:3> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class GetHostnameResponse ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_hostname_ = <NUM_LIT:0> <EOL> hostname_ = "<STR_LIT>" <EOL> def __init__ ( self , contents = None ) : <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def hostname ( self ) : return self . hostname_ <EOL> def set_hostname ( self , x ) : <EOL> self . has_hostname_ = <NUM_LIT:1> <EOL> self . hostname_ = x <EOL> def clear_hostname ( self ) : <EOL> if self . has_hostname_ : <EOL> self . has_hostname_ = <NUM_LIT:0> <EOL> self . hostname_ = "<STR_LIT>" <EOL> def has_hostname ( self ) : return self . has_hostname_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_hostname ( ) ) : self . set_hostname ( x . hostname ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_hostname_ != x . has_hostname_ : return <NUM_LIT:0> <EOL> if self . has_hostname_ and self . hostname_ != x . hostname_ : return <NUM_LIT:0> <EOL> return <NUM_LIT:1> <EOL> def IsInitialized ( self , debug_strs = None ) : <EOL> initialized = <NUM_LIT:1> <EOL> if ( not self . has_hostname_ ) : <EOL> initialized = <NUM_LIT:0> <EOL> if debug_strs is not None : <EOL> debug_strs . append ( '<STR_LIT>' ) <EOL> return initialized <EOL> def ByteSize ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += self . lengthString ( len ( self . hostname_ ) ) <EOL> return n + <NUM_LIT:1> <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_hostname_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthString ( len ( self . hostname_ ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_hostname ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . hostname_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_hostname_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . hostname_ ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:10> : <EOL> self . set_hostname ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if ( tt == <NUM_LIT:0> ) : raise ProtocolBuffer . ProtocolBufferDecodeError <EOL> d . skipData ( tt ) <EOL> def __str__ ( self , prefix = "<STR_LIT>" , printElemNumber = <NUM_LIT:0> ) : <EOL> res = "<STR_LIT>" <EOL> if self . has_hostname_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . hostname_ ) ) <EOL> return res <EOL> def _BuildTagLookupTable ( sparse , maxtag , default = None ) : <EOL> return tuple ( [ sparse . get ( i , default ) for i in xrange ( <NUM_LIT:0> , <NUM_LIT:1> + maxtag ) ] ) <EOL> khostname = <NUM_LIT:1> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> } , <NUM_LIT:1> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . STRING , <EOL> } , <NUM_LIT:1> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> if _extension_runtime : <EOL> pass <EOL> __all__ = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] </s>
