<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> from google . appengine . api . api_base_pb import * <EOL> import google . appengine . api . api_base_pb <EOL> from google . appengine . api . channel . channel_service_pb import * <EOL> import google . appengine . api . channel . channel_service_pb <EOL> class XmppServiceError ( ProtocolBuffer . ProtocolMessage ) : <EOL> UNSPECIFIED_ERROR = <NUM_LIT:1> <EOL> INVALID_JID = <NUM_LIT:2> <EOL> NO_BODY = <NUM_LIT:3> <EOL> INVALID_XML = <NUM_LIT:4> <EOL> INVALID_TYPE = <NUM_LIT:5> <EOL> INVALID_SHOW = <NUM_LIT:6> <EOL> EXCEEDED_MAX_SIZE = <NUM_LIT:7> <EOL> _ErrorCode_NAMES = { <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> <NUM_LIT:6> : "<STR_LIT>" , <EOL> <NUM_LIT:7> : "<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 PresenceRequest ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_jid_ = <NUM_LIT:0> <EOL> jid_ = "<STR_LIT>" <EOL> has_from_jid_ = <NUM_LIT:0> <EOL> from_jid_ = "<STR_LIT>" <EOL> def __init__ ( self , contents = None ) : <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def jid ( self ) : return self . jid_ <EOL> def set_jid ( self , x ) : <EOL> self . has_jid_ = <NUM_LIT:1> <EOL> self . jid_ = x <EOL> def clear_jid ( self ) : <EOL> if self . has_jid_ : <EOL> self . has_jid_ = <NUM_LIT:0> <EOL> self . jid_ = "<STR_LIT>" <EOL> def has_jid ( self ) : return self . has_jid_ <EOL> def from_jid ( self ) : return self . from_jid_ <EOL> def set_from_jid ( self , x ) : <EOL> self . has_from_jid_ = <NUM_LIT:1> <EOL> self . from_jid_ = x <EOL> def clear_from_jid ( self ) : <EOL> if self . has_from_jid_ : <EOL> self . has_from_jid_ = <NUM_LIT:0> <EOL> self . from_jid_ = "<STR_LIT>" <EOL> def has_from_jid ( self ) : return self . has_from_jid_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_jid ( ) ) : self . set_jid ( x . jid ( ) ) <EOL> if ( x . has_from_jid ( ) ) : self . set_from_jid ( x . from_jid ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_jid_ != x . has_jid_ : return <NUM_LIT:0> <EOL> if self . has_jid_ and self . jid_ != x . jid_ : return <NUM_LIT:0> <EOL> if self . has_from_jid_ != x . has_from_jid_ : return <NUM_LIT:0> <EOL> if self . has_from_jid_ and self . from_jid_ != x . from_jid_ : 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_jid_ ) : <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 . jid_ ) ) <EOL> if ( self . has_from_jid_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . from_jid_ ) ) <EOL> return n + <NUM_LIT:1> <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_jid_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthString ( len ( self . jid_ ) ) <EOL> if ( self . has_from_jid_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . from_jid_ ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_jid ( ) <EOL> self . clear_from_jid ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . jid_ ) <EOL> if ( self . has_from_jid_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . from_jid_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_jid_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . jid_ ) <EOL> if ( self . has_from_jid_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . from_jid_ ) <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_jid ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_from_jid ( 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_jid_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . jid_ ) ) <EOL> if self . has_from_jid_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . from_jid_ ) ) <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> kjid = <NUM_LIT:1> <EOL> kfrom_jid = <NUM_LIT:2> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> <NUM_LIT:2> : "<STR_LIT>" , <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 PresenceResponse ( ProtocolBuffer . ProtocolMessage ) : <EOL> NORMAL = <NUM_LIT:0> <EOL> AWAY = <NUM_LIT:1> <EOL> DO_NOT_DISTURB = <NUM_LIT:2> <EOL> CHAT = <NUM_LIT:3> <EOL> EXTENDED_AWAY = <NUM_LIT:4> <EOL> _SHOW_NAMES = { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <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> } <EOL> def SHOW_Name ( cls , x ) : return cls . _SHOW_NAMES . get ( x , "<STR_LIT>" ) <EOL> SHOW_Name = classmethod ( SHOW_Name ) <EOL> has_is_available_ = <NUM_LIT:0> <EOL> is_available_ = <NUM_LIT:0> <EOL> has_presence_ = <NUM_LIT:0> <EOL> presence_ = <NUM_LIT:0> <EOL> def __init__ ( self , contents = None ) : <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def is_available ( self ) : return self . is_available_ <EOL> def set_is_available ( self , x ) : <EOL> self . has_is_available_ = <NUM_LIT:1> <EOL> self . is_available_ = x <EOL> def clear_is_available ( self ) : <EOL> if self . has_is_available_ : <EOL> self . has_is_available_ = <NUM_LIT:0> <EOL> self . is_available_ = <NUM_LIT:0> <EOL> def has_is_available ( self ) : return self . has_is_available_ <EOL> def presence ( self ) : return self . presence_ <EOL> def set_presence ( self , x ) : <EOL> self . has_presence_ = <NUM_LIT:1> <EOL> self . presence_ = x <EOL> def clear_presence ( self ) : <EOL> if self . has_presence_ : <EOL> self . has_presence_ = <NUM_LIT:0> <EOL> self . presence_ = <NUM_LIT:0> <EOL> def has_presence ( self ) : return self . has_presence_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_is_available ( ) ) : self . set_is_available ( x . is_available ( ) ) <EOL> if ( x . has_presence ( ) ) : self . set_presence ( x . presence ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_is_available_ != x . has_is_available_ : return <NUM_LIT:0> <EOL> if self . has_is_available_ and self . is_available_ != x . is_available_ : return <NUM_LIT:0> <EOL> if self . has_presence_ != x . has_presence_ : return <NUM_LIT:0> <EOL> if self . has_presence_ and self . presence_ != x . presence_ : 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_is_available_ ) : <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_presence_ ) : n += <NUM_LIT:1> + self . lengthVarInt64 ( self . presence_ ) <EOL> return n + <NUM_LIT:2> <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_is_available_ ) : <EOL> n += <NUM_LIT:2> <EOL> if ( self . has_presence_ ) : n += <NUM_LIT:1> + self . lengthVarInt64 ( self . presence_ ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_is_available ( ) <EOL> self . clear_presence ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> out . putVarInt32 ( <NUM_LIT:8> ) <EOL> out . putBoolean ( self . is_available_ ) <EOL> if ( self . has_presence_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:16> ) <EOL> out . putVarInt32 ( self . presence_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_is_available_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:8> ) <EOL> out . putBoolean ( self . is_available_ ) <EOL> if ( self . has_presence_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:16> ) <EOL> out . putVarInt32 ( self . presence_ ) <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_is_available ( d . getBoolean ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT:16> : <EOL> self . set_presence ( d . getVarInt32 ( ) ) <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_is_available_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatBool ( self . is_available_ ) ) <EOL> if self . has_presence_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatInt32 ( self . presence_ ) ) <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> kis_available = <NUM_LIT:1> <EOL> kpresence = <NUM_LIT:2> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> <NUM_LIT:2> : "<STR_LIT>" , <EOL> } , <NUM_LIT:2> ) <EOL> _TYPES = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:1> : ProtocolBuffer . Encoder . NUMERIC , <EOL> <NUM_LIT:2> : ProtocolBuffer . Encoder . NUMERIC , <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 XmppMessageRequest ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_body_ = <NUM_LIT:0> <EOL> body_ = "<STR_LIT>" <EOL> has_raw_xml_ = <NUM_LIT:0> <EOL> raw_xml_ = <NUM_LIT:0> <EOL> has_type_ = <NUM_LIT:0> <EOL> type_ = "<STR_LIT>" <EOL> has_from_jid_ = <NUM_LIT:0> <EOL> from_jid_ = "<STR_LIT>" <EOL> def __init__ ( self , contents = None ) : <EOL> self . jid_ = [ ] <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def jid_size ( self ) : return len ( self . jid_ ) <EOL> def jid_list ( self ) : return self . jid_ <EOL> def jid ( self , i ) : <EOL> return self . jid_ [ i ] <EOL> def set_jid ( self , i , x ) : <EOL> self . jid_ [ i ] = x <EOL> def add_jid ( self , x ) : <EOL> self . jid_ . append ( x ) <EOL> def clear_jid ( self ) : <EOL> self . jid_ = [ ] <EOL> def body ( self ) : return self . body_ <EOL> def set_body ( self , x ) : <EOL> self . has_body_ = <NUM_LIT:1> <EOL> self . body_ = x <EOL> def clear_body ( self ) : <EOL> if self . has_body_ : <EOL> self . has_body_ = <NUM_LIT:0> <EOL> self . body_ = "<STR_LIT>" <EOL> def has_body ( self ) : return self . has_body_ <EOL> def raw_xml ( self ) : return self . raw_xml_ <EOL> def set_raw_xml ( self , x ) : <EOL> self . has_raw_xml_ = <NUM_LIT:1> <EOL> self . raw_xml_ = x <EOL> def clear_raw_xml ( self ) : <EOL> if self . has_raw_xml_ : <EOL> self . has_raw_xml_ = <NUM_LIT:0> <EOL> self . raw_xml_ = <NUM_LIT:0> <EOL> def has_raw_xml ( self ) : return self . has_raw_xml_ <EOL> def type ( self ) : return self . type_ <EOL> def set_type ( self , x ) : <EOL> self . has_type_ = <NUM_LIT:1> <EOL> self . type_ = x <EOL> def clear_type ( self ) : <EOL> if self . has_type_ : <EOL> self . has_type_ = <NUM_LIT:0> <EOL> self . type_ = "<STR_LIT>" <EOL> def has_type ( self ) : return self . has_type_ <EOL> def from_jid ( self ) : return self . from_jid_ <EOL> def set_from_jid ( self , x ) : <EOL> self . has_from_jid_ = <NUM_LIT:1> <EOL> self . from_jid_ = x <EOL> def clear_from_jid ( self ) : <EOL> if self . has_from_jid_ : <EOL> self . has_from_jid_ = <NUM_LIT:0> <EOL> self . from_jid_ = "<STR_LIT>" <EOL> def has_from_jid ( self ) : return self . has_from_jid_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> for i in xrange ( x . jid_size ( ) ) : self . add_jid ( x . jid ( i ) ) <EOL> if ( x . has_body ( ) ) : self . set_body ( x . body ( ) ) <EOL> if ( x . has_raw_xml ( ) ) : self . set_raw_xml ( x . raw_xml ( ) ) <EOL> if ( x . has_type ( ) ) : self . set_type ( x . type ( ) ) <EOL> if ( x . has_from_jid ( ) ) : self . set_from_jid ( x . from_jid ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if len ( self . jid_ ) != len ( x . jid_ ) : return <NUM_LIT:0> <EOL> for e1 , e2 in zip ( self . jid_ , x . jid_ ) : <EOL> if e1 != e2 : return <NUM_LIT:0> <EOL> if self . has_body_ != x . has_body_ : return <NUM_LIT:0> <EOL> if self . has_body_ and self . body_ != x . body_ : return <NUM_LIT:0> <EOL> if self . has_raw_xml_ != x . has_raw_xml_ : return <NUM_LIT:0> <EOL> if self . has_raw_xml_ and self . raw_xml_ != x . raw_xml_ : return <NUM_LIT:0> <EOL> if self . has_type_ != x . has_type_ : return <NUM_LIT:0> <EOL> if self . has_type_ and self . type_ != x . type_ : return <NUM_LIT:0> <EOL> if self . has_from_jid_ != x . has_from_jid_ : return <NUM_LIT:0> <EOL> if self . has_from_jid_ and self . from_jid_ != x . from_jid_ : 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_body_ ) : <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 += <NUM_LIT:1> * len ( self . jid_ ) <EOL> for i in xrange ( len ( self . jid_ ) ) : n += self . lengthString ( len ( self . jid_ [ i ] ) ) <EOL> n += self . lengthString ( len ( self . body_ ) ) <EOL> if ( self . has_raw_xml_ ) : n += <NUM_LIT:2> <EOL> if ( self . has_type_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . type_ ) ) <EOL> if ( self . has_from_jid_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . from_jid_ ) ) <EOL> return n + <NUM_LIT:1> <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += <NUM_LIT:1> * len ( self . jid_ ) <EOL> for i in xrange ( len ( self . jid_ ) ) : n += self . lengthString ( len ( self . jid_ [ i ] ) ) <EOL> if ( self . has_body_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthString ( len ( self . body_ ) ) <EOL> if ( self . has_raw_xml_ ) : n += <NUM_LIT:2> <EOL> if ( self . has_type_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . type_ ) ) <EOL> if ( self . has_from_jid_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . from_jid_ ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_jid ( ) <EOL> self . clear_body ( ) <EOL> self . clear_raw_xml ( ) <EOL> self . clear_type ( ) <EOL> self . clear_from_jid ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> for i in xrange ( len ( self . jid_ ) ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . jid_ [ i ] ) <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . body_ ) <EOL> if ( self . has_raw_xml_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putBoolean ( self . raw_xml_ ) <EOL> if ( self . has_type_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . type_ ) <EOL> if ( self . has_from_jid_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . from_jid_ ) <EOL> def OutputPartial ( self , out ) : <EOL> for i in xrange ( len ( self . jid_ ) ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . jid_ [ i ] ) <EOL> if ( self . has_body_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . body_ ) <EOL> if ( self . has_raw_xml_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putBoolean ( self . raw_xml_ ) <EOL> if ( self . has_type_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . type_ ) <EOL> if ( self . has_from_jid_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . from_jid_ ) <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_jid ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_body ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_raw_xml ( d . getBoolean ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_type ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_from_jid ( 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 . jid_ : <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> if self . has_body_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . body_ ) ) <EOL> if self . has_raw_xml_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatBool ( self . raw_xml_ ) ) <EOL> if self . has_type_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . type_ ) ) <EOL> if self . has_from_jid_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . from_jid_ ) ) <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> kjid = <NUM_LIT:1> <EOL> kbody = <NUM_LIT:2> <EOL> kraw_xml = <NUM_LIT:3> <EOL> ktype = <NUM_LIT:4> <EOL> kfrom_jid = <NUM_LIT:5> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> <NUM_LIT:2> : "<STR_LIT:body>" , <EOL> <NUM_LIT:3> : "<STR_LIT>" , <EOL> <NUM_LIT:4> : "<STR_LIT:type>" , <EOL> <NUM_LIT:5> : "<STR_LIT>" , <EOL> } , <NUM_LIT:5> ) <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:4> : ProtocolBuffer . Encoder . STRING , <EOL> <NUM_LIT:5> : ProtocolBuffer . Encoder . STRING , <EOL> } , <NUM_LIT:5> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class XmppMessageResponse ( ProtocolBuffer . ProtocolMessage ) : <EOL> NO_ERROR = <NUM_LIT:0> <EOL> INVALID_JID = <NUM_LIT:1> <EOL> OTHER_ERROR = <NUM_LIT:2> <EOL> _XmppMessageStatus_NAMES = { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> <NUM_LIT:2> : "<STR_LIT>" , <EOL> } <EOL> def XmppMessageStatus_Name ( cls , x ) : return cls . _XmppMessageStatus_NAMES . get ( x , "<STR_LIT>" ) <EOL> XmppMessageStatus_Name = classmethod ( XmppMessageStatus_Name ) <EOL> def __init__ ( self , contents = None ) : <EOL> self . status_ = [ ] <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def status_size ( self ) : return len ( self . status_ ) <EOL> def status_list ( self ) : return self . status_ <EOL> def status ( self , i ) : <EOL> return self . status_ [ i ] <EOL> def set_status ( self , i , x ) : <EOL> self . status_ [ i ] = x <EOL> def add_status ( self , x ) : <EOL> self . status_ . append ( x ) <EOL> def clear_status ( self ) : <EOL> self . status_ = [ ] <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> for i in xrange ( x . status_size ( ) ) : self . add_status ( x . status ( i ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if len ( self . status_ ) != len ( x . status_ ) : return <NUM_LIT:0> <EOL> for e1 , e2 in zip ( self . status_ , x . status_ ) : <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 . status_ ) <EOL> for i in xrange ( len ( self . status_ ) ) : n += self . lengthVarInt64 ( self . status_ [ i ] ) <EOL> return n <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> n += <NUM_LIT:1> * len ( self . status_ ) <EOL> for i in xrange ( len ( self . status_ ) ) : n += self . lengthVarInt64 ( self . status_ [ i ] ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_status ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> for i in xrange ( len ( self . status_ ) ) : <EOL> out . putVarInt32 ( <NUM_LIT:8> ) <EOL> out . putVarInt32 ( self . status_ [ i ] ) <EOL> def OutputPartial ( self , out ) : <EOL> for i in xrange ( len ( self . status_ ) ) : <EOL> out . putVarInt32 ( <NUM_LIT:8> ) <EOL> out . putVarInt32 ( self . status_ [ i ] ) <EOL> def TryMerge ( self , d ) : <EOL> while d . avail ( ) > <NUM_LIT:0> : <EOL> tt = d . getVarInt32 ( ) <EOL> if tt == <NUM_LIT:8> : <EOL> self . add_status ( d . getVarInt32 ( ) ) <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 . status_ : <EOL> elm = "<STR_LIT>" <EOL> if printElemNumber : elm = "<STR_LIT>" % cnt <EOL> res += prefix + ( "<STR_LIT>" % ( elm , self . DebugFormatInt32 ( 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> kstatus = <NUM_LIT:1> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT:status>" , <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 XmppSendPresenceRequest ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_jid_ = <NUM_LIT:0> <EOL> jid_ = "<STR_LIT>" <EOL> has_type_ = <NUM_LIT:0> <EOL> type_ = "<STR_LIT>" <EOL> has_show_ = <NUM_LIT:0> <EOL> show_ = "<STR_LIT>" <EOL> has_status_ = <NUM_LIT:0> <EOL> status_ = "<STR_LIT>" <EOL> has_from_jid_ = <NUM_LIT:0> <EOL> from_jid_ = "<STR_LIT>" <EOL> def __init__ ( self , contents = None ) : <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def jid ( self ) : return self . jid_ <EOL> def set_jid ( self , x ) : <EOL> self . has_jid_ = <NUM_LIT:1> <EOL> self . jid_ = x <EOL> def clear_jid ( self ) : <EOL> if self . has_jid_ : <EOL> self . has_jid_ = <NUM_LIT:0> <EOL> self . jid_ = "<STR_LIT>" <EOL> def has_jid ( self ) : return self . has_jid_ <EOL> def type ( self ) : return self . type_ <EOL> def set_type ( self , x ) : <EOL> self . has_type_ = <NUM_LIT:1> <EOL> self . type_ = x <EOL> def clear_type ( self ) : <EOL> if self . has_type_ : <EOL> self . has_type_ = <NUM_LIT:0> <EOL> self . type_ = "<STR_LIT>" <EOL> def has_type ( self ) : return self . has_type_ <EOL> def show ( self ) : return self . show_ <EOL> def set_show ( self , x ) : <EOL> self . has_show_ = <NUM_LIT:1> <EOL> self . show_ = x <EOL> def clear_show ( self ) : <EOL> if self . has_show_ : <EOL> self . has_show_ = <NUM_LIT:0> <EOL> self . show_ = "<STR_LIT>" <EOL> def has_show ( self ) : return self . has_show_ <EOL> def status ( self ) : return self . status_ <EOL> def set_status ( self , x ) : <EOL> self . has_status_ = <NUM_LIT:1> <EOL> self . status_ = x <EOL> def clear_status ( self ) : <EOL> if self . has_status_ : <EOL> self . has_status_ = <NUM_LIT:0> <EOL> self . status_ = "<STR_LIT>" <EOL> def has_status ( self ) : return self . has_status_ <EOL> def from_jid ( self ) : return self . from_jid_ <EOL> def set_from_jid ( self , x ) : <EOL> self . has_from_jid_ = <NUM_LIT:1> <EOL> self . from_jid_ = x <EOL> def clear_from_jid ( self ) : <EOL> if self . has_from_jid_ : <EOL> self . has_from_jid_ = <NUM_LIT:0> <EOL> self . from_jid_ = "<STR_LIT>" <EOL> def has_from_jid ( self ) : return self . has_from_jid_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_jid ( ) ) : self . set_jid ( x . jid ( ) ) <EOL> if ( x . has_type ( ) ) : self . set_type ( x . type ( ) ) <EOL> if ( x . has_show ( ) ) : self . set_show ( x . show ( ) ) <EOL> if ( x . has_status ( ) ) : self . set_status ( x . status ( ) ) <EOL> if ( x . has_from_jid ( ) ) : self . set_from_jid ( x . from_jid ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_jid_ != x . has_jid_ : return <NUM_LIT:0> <EOL> if self . has_jid_ and self . jid_ != x . jid_ : return <NUM_LIT:0> <EOL> if self . has_type_ != x . has_type_ : return <NUM_LIT:0> <EOL> if self . has_type_ and self . type_ != x . type_ : return <NUM_LIT:0> <EOL> if self . has_show_ != x . has_show_ : return <NUM_LIT:0> <EOL> if self . has_show_ and self . show_ != x . show_ : return <NUM_LIT:0> <EOL> if self . has_status_ != x . has_status_ : return <NUM_LIT:0> <EOL> if self . has_status_ and self . status_ != x . status_ : return <NUM_LIT:0> <EOL> if self . has_from_jid_ != x . has_from_jid_ : return <NUM_LIT:0> <EOL> if self . has_from_jid_ and self . from_jid_ != x . from_jid_ : 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_jid_ ) : <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 . jid_ ) ) <EOL> if ( self . has_type_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . type_ ) ) <EOL> if ( self . has_show_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . show_ ) ) <EOL> if ( self . has_status_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . status_ ) ) <EOL> if ( self . has_from_jid_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . from_jid_ ) ) <EOL> return n + <NUM_LIT:1> <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_jid_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthString ( len ( self . jid_ ) ) <EOL> if ( self . has_type_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . type_ ) ) <EOL> if ( self . has_show_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . show_ ) ) <EOL> if ( self . has_status_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . status_ ) ) <EOL> if ( self . has_from_jid_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . from_jid_ ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_jid ( ) <EOL> self . clear_type ( ) <EOL> self . clear_show ( ) <EOL> self . clear_status ( ) <EOL> self . clear_from_jid ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . jid_ ) <EOL> if ( self . has_type_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . type_ ) <EOL> if ( self . has_show_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . show_ ) <EOL> if ( self . has_status_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . status_ ) <EOL> if ( self . has_from_jid_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . from_jid_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_jid_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . jid_ ) <EOL> if ( self . has_type_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . type_ ) <EOL> if ( self . has_show_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . show_ ) <EOL> if ( self . has_status_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . status_ ) <EOL> if ( self . has_from_jid_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . from_jid_ ) <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_jid ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_type ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_show ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_status ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_from_jid ( 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_jid_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . jid_ ) ) <EOL> if self . has_type_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . type_ ) ) <EOL> if self . has_show_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . show_ ) ) <EOL> if self . has_status_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . status_ ) ) <EOL> if self . has_from_jid_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . from_jid_ ) ) <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> kjid = <NUM_LIT:1> <EOL> ktype = <NUM_LIT:2> <EOL> kshow = <NUM_LIT:3> <EOL> kstatus = <NUM_LIT:4> <EOL> kfrom_jid = <NUM_LIT:5> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> <NUM_LIT:2> : "<STR_LIT:type>" , <EOL> <NUM_LIT:3> : "<STR_LIT>" , <EOL> <NUM_LIT:4> : "<STR_LIT:status>" , <EOL> <NUM_LIT:5> : "<STR_LIT>" , <EOL> } , <NUM_LIT:5> ) <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:4> : ProtocolBuffer . Encoder . STRING , <EOL> <NUM_LIT:5> : ProtocolBuffer . Encoder . STRING , <EOL> } , <NUM_LIT:5> , ProtocolBuffer . Encoder . MAX_TYPE ) <EOL> _STYLE = """<STR_LIT>""" <EOL> _STYLE_CONTENT_TYPE = """<STR_LIT>""" <EOL> _PROTO_DESCRIPTOR_NAME = '<STR_LIT>' <EOL> class XmppSendPresenceResponse ( 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 XmppInviteRequest ( ProtocolBuffer . ProtocolMessage ) : <EOL> has_jid_ = <NUM_LIT:0> <EOL> jid_ = "<STR_LIT>" <EOL> has_from_jid_ = <NUM_LIT:0> <EOL> from_jid_ = "<STR_LIT>" <EOL> def __init__ ( self , contents = None ) : <EOL> if contents is not None : self . MergeFromString ( contents ) <EOL> def jid ( self ) : return self . jid_ <EOL> def set_jid ( self , x ) : <EOL> self . has_jid_ = <NUM_LIT:1> <EOL> self . jid_ = x <EOL> def clear_jid ( self ) : <EOL> if self . has_jid_ : <EOL> self . has_jid_ = <NUM_LIT:0> <EOL> self . jid_ = "<STR_LIT>" <EOL> def has_jid ( self ) : return self . has_jid_ <EOL> def from_jid ( self ) : return self . from_jid_ <EOL> def set_from_jid ( self , x ) : <EOL> self . has_from_jid_ = <NUM_LIT:1> <EOL> self . from_jid_ = x <EOL> def clear_from_jid ( self ) : <EOL> if self . has_from_jid_ : <EOL> self . has_from_jid_ = <NUM_LIT:0> <EOL> self . from_jid_ = "<STR_LIT>" <EOL> def has_from_jid ( self ) : return self . has_from_jid_ <EOL> def MergeFrom ( self , x ) : <EOL> assert x is not self <EOL> if ( x . has_jid ( ) ) : self . set_jid ( x . jid ( ) ) <EOL> if ( x . has_from_jid ( ) ) : self . set_from_jid ( x . from_jid ( ) ) <EOL> def Equals ( self , x ) : <EOL> if x is self : return <NUM_LIT:1> <EOL> if self . has_jid_ != x . has_jid_ : return <NUM_LIT:0> <EOL> if self . has_jid_ and self . jid_ != x . jid_ : return <NUM_LIT:0> <EOL> if self . has_from_jid_ != x . has_from_jid_ : return <NUM_LIT:0> <EOL> if self . has_from_jid_ and self . from_jid_ != x . from_jid_ : 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_jid_ ) : <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 . jid_ ) ) <EOL> if ( self . has_from_jid_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . from_jid_ ) ) <EOL> return n + <NUM_LIT:1> <EOL> def ByteSizePartial ( self ) : <EOL> n = <NUM_LIT:0> <EOL> if ( self . has_jid_ ) : <EOL> n += <NUM_LIT:1> <EOL> n += self . lengthString ( len ( self . jid_ ) ) <EOL> if ( self . has_from_jid_ ) : n += <NUM_LIT:1> + self . lengthString ( len ( self . from_jid_ ) ) <EOL> return n <EOL> def Clear ( self ) : <EOL> self . clear_jid ( ) <EOL> self . clear_from_jid ( ) <EOL> def OutputUnchecked ( self , out ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . jid_ ) <EOL> if ( self . has_from_jid_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . from_jid_ ) <EOL> def OutputPartial ( self , out ) : <EOL> if ( self . has_jid_ ) : <EOL> out . putVarInt32 ( <NUM_LIT:10> ) <EOL> out . putPrefixedString ( self . jid_ ) <EOL> if ( self . has_from_jid_ ) : <EOL> out . putVarInt32 ( <NUM_LIT> ) <EOL> out . putPrefixedString ( self . from_jid_ ) <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_jid ( d . getPrefixedString ( ) ) <EOL> continue <EOL> if tt == <NUM_LIT> : <EOL> self . set_from_jid ( 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_jid_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . jid_ ) ) <EOL> if self . has_from_jid_ : res += prefix + ( "<STR_LIT>" % self . DebugFormatString ( self . from_jid_ ) ) <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> kjid = <NUM_LIT:1> <EOL> kfrom_jid = <NUM_LIT:2> <EOL> _TEXT = _BuildTagLookupTable ( { <EOL> <NUM_LIT:0> : "<STR_LIT>" , <EOL> <NUM_LIT:1> : "<STR_LIT>" , <EOL> <NUM_LIT:2> : "<STR_LIT>" , <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 XmppInviteResponse ( 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> 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>' ] </s>
