thirdparty/google_appengine/google/appengine/api/user_service_pb.py
changeset 2864 2e0b0af889be
parent 2309 be1b94099f2d
child 3031 7678f72140e6
equal deleted inserted replaced
2862:27971a13089f 2864:2e0b0af889be
    75   def __str__(self, prefix="", printElemNumber=0):
    75   def __str__(self, prefix="", printElemNumber=0):
    76     res=""
    76     res=""
    77     return res
    77     return res
    78 
    78 
    79 
    79 
    80   _TEXT = (
    80   def _BuildTagLookupTable(sparse, maxtag, default=None):
    81    "ErrorCode",
    81     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
    82   )
    82 
    83 
    83 
    84   _TYPES = (
    84   _TEXT = _BuildTagLookupTable({
    85    ProtocolBuffer.Encoder.NUMERIC,
    85     0: "ErrorCode",
    86   )
    86   }, 0)
       
    87 
       
    88   _TYPES = _BuildTagLookupTable({
       
    89     0: ProtocolBuffer.Encoder.NUMERIC,
       
    90   }, 0, ProtocolBuffer.Encoder.MAX_TYPE)
    87 
    91 
    88   _STYLE = """"""
    92   _STYLE = """"""
    89   _STYLE_CONTENT_TYPE = """"""
    93   _STYLE_CONTENT_TYPE = """"""
    90 
    94 class CreateLoginURLRequest(ProtocolBuffer.ProtocolMessage):
    91 __all__ = ['UserServiceError']
    95   has_destination_url_ = 0
       
    96   destination_url_ = ""
       
    97   has_auth_domain_ = 0
       
    98   auth_domain_ = ""
       
    99 
       
   100   def __init__(self, contents=None):
       
   101     if contents is not None: self.MergeFromString(contents)
       
   102 
       
   103   def destination_url(self): return self.destination_url_
       
   104 
       
   105   def set_destination_url(self, x):
       
   106     self.has_destination_url_ = 1
       
   107     self.destination_url_ = x
       
   108 
       
   109   def clear_destination_url(self):
       
   110     if self.has_destination_url_:
       
   111       self.has_destination_url_ = 0
       
   112       self.destination_url_ = ""
       
   113 
       
   114   def has_destination_url(self): return self.has_destination_url_
       
   115 
       
   116   def auth_domain(self): return self.auth_domain_
       
   117 
       
   118   def set_auth_domain(self, x):
       
   119     self.has_auth_domain_ = 1
       
   120     self.auth_domain_ = x
       
   121 
       
   122   def clear_auth_domain(self):
       
   123     if self.has_auth_domain_:
       
   124       self.has_auth_domain_ = 0
       
   125       self.auth_domain_ = ""
       
   126 
       
   127   def has_auth_domain(self): return self.has_auth_domain_
       
   128 
       
   129 
       
   130   def MergeFrom(self, x):
       
   131     assert x is not self
       
   132     if (x.has_destination_url()): self.set_destination_url(x.destination_url())
       
   133     if (x.has_auth_domain()): self.set_auth_domain(x.auth_domain())
       
   134 
       
   135   def Equals(self, x):
       
   136     if x is self: return 1
       
   137     if self.has_destination_url_ != x.has_destination_url_: return 0
       
   138     if self.has_destination_url_ and self.destination_url_ != x.destination_url_: return 0
       
   139     if self.has_auth_domain_ != x.has_auth_domain_: return 0
       
   140     if self.has_auth_domain_ and self.auth_domain_ != x.auth_domain_: return 0
       
   141     return 1
       
   142 
       
   143   def IsInitialized(self, debug_strs=None):
       
   144     initialized = 1
       
   145     if (not self.has_destination_url_):
       
   146       initialized = 0
       
   147       if debug_strs is not None:
       
   148         debug_strs.append('Required field: destination_url not set.')
       
   149     return initialized
       
   150 
       
   151   def ByteSize(self):
       
   152     n = 0
       
   153     n += self.lengthString(len(self.destination_url_))
       
   154     if (self.has_auth_domain_): n += 1 + self.lengthString(len(self.auth_domain_))
       
   155     return n + 1
       
   156 
       
   157   def Clear(self):
       
   158     self.clear_destination_url()
       
   159     self.clear_auth_domain()
       
   160 
       
   161   def OutputUnchecked(self, out):
       
   162     out.putVarInt32(10)
       
   163     out.putPrefixedString(self.destination_url_)
       
   164     if (self.has_auth_domain_):
       
   165       out.putVarInt32(18)
       
   166       out.putPrefixedString(self.auth_domain_)
       
   167 
       
   168   def TryMerge(self, d):
       
   169     while d.avail() > 0:
       
   170       tt = d.getVarInt32()
       
   171       if tt == 10:
       
   172         self.set_destination_url(d.getPrefixedString())
       
   173         continue
       
   174       if tt == 18:
       
   175         self.set_auth_domain(d.getPrefixedString())
       
   176         continue
       
   177       if (tt == 0): raise ProtocolBuffer.ProtocolBufferDecodeError
       
   178       d.skipData(tt)
       
   179 
       
   180 
       
   181   def __str__(self, prefix="", printElemNumber=0):
       
   182     res=""
       
   183     if self.has_destination_url_: res+=prefix+("destination_url: %s\n" % self.DebugFormatString(self.destination_url_))
       
   184     if self.has_auth_domain_: res+=prefix+("auth_domain: %s\n" % self.DebugFormatString(self.auth_domain_))
       
   185     return res
       
   186 
       
   187 
       
   188   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
   189     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
   190 
       
   191   kdestination_url = 1
       
   192   kauth_domain = 2
       
   193 
       
   194   _TEXT = _BuildTagLookupTable({
       
   195     0: "ErrorCode",
       
   196     1: "destination_url",
       
   197     2: "auth_domain",
       
   198   }, 2)
       
   199 
       
   200   _TYPES = _BuildTagLookupTable({
       
   201     0: ProtocolBuffer.Encoder.NUMERIC,
       
   202     1: ProtocolBuffer.Encoder.STRING,
       
   203     2: ProtocolBuffer.Encoder.STRING,
       
   204   }, 2, ProtocolBuffer.Encoder.MAX_TYPE)
       
   205 
       
   206   _STYLE = """"""
       
   207   _STYLE_CONTENT_TYPE = """"""
       
   208 class CreateLoginURLResponse(ProtocolBuffer.ProtocolMessage):
       
   209   has_login_url_ = 0
       
   210   login_url_ = ""
       
   211 
       
   212   def __init__(self, contents=None):
       
   213     if contents is not None: self.MergeFromString(contents)
       
   214 
       
   215   def login_url(self): return self.login_url_
       
   216 
       
   217   def set_login_url(self, x):
       
   218     self.has_login_url_ = 1
       
   219     self.login_url_ = x
       
   220 
       
   221   def clear_login_url(self):
       
   222     if self.has_login_url_:
       
   223       self.has_login_url_ = 0
       
   224       self.login_url_ = ""
       
   225 
       
   226   def has_login_url(self): return self.has_login_url_
       
   227 
       
   228 
       
   229   def MergeFrom(self, x):
       
   230     assert x is not self
       
   231     if (x.has_login_url()): self.set_login_url(x.login_url())
       
   232 
       
   233   def Equals(self, x):
       
   234     if x is self: return 1
       
   235     if self.has_login_url_ != x.has_login_url_: return 0
       
   236     if self.has_login_url_ and self.login_url_ != x.login_url_: return 0
       
   237     return 1
       
   238 
       
   239   def IsInitialized(self, debug_strs=None):
       
   240     initialized = 1
       
   241     if (not self.has_login_url_):
       
   242       initialized = 0
       
   243       if debug_strs is not None:
       
   244         debug_strs.append('Required field: login_url not set.')
       
   245     return initialized
       
   246 
       
   247   def ByteSize(self):
       
   248     n = 0
       
   249     n += self.lengthString(len(self.login_url_))
       
   250     return n + 1
       
   251 
       
   252   def Clear(self):
       
   253     self.clear_login_url()
       
   254 
       
   255   def OutputUnchecked(self, out):
       
   256     out.putVarInt32(10)
       
   257     out.putPrefixedString(self.login_url_)
       
   258 
       
   259   def TryMerge(self, d):
       
   260     while d.avail() > 0:
       
   261       tt = d.getVarInt32()
       
   262       if tt == 10:
       
   263         self.set_login_url(d.getPrefixedString())
       
   264         continue
       
   265       if (tt == 0): raise ProtocolBuffer.ProtocolBufferDecodeError
       
   266       d.skipData(tt)
       
   267 
       
   268 
       
   269   def __str__(self, prefix="", printElemNumber=0):
       
   270     res=""
       
   271     if self.has_login_url_: res+=prefix+("login_url: %s\n" % self.DebugFormatString(self.login_url_))
       
   272     return res
       
   273 
       
   274 
       
   275   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
   276     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
   277 
       
   278   klogin_url = 1
       
   279 
       
   280   _TEXT = _BuildTagLookupTable({
       
   281     0: "ErrorCode",
       
   282     1: "login_url",
       
   283   }, 1)
       
   284 
       
   285   _TYPES = _BuildTagLookupTable({
       
   286     0: ProtocolBuffer.Encoder.NUMERIC,
       
   287     1: ProtocolBuffer.Encoder.STRING,
       
   288   }, 1, ProtocolBuffer.Encoder.MAX_TYPE)
       
   289 
       
   290   _STYLE = """"""
       
   291   _STYLE_CONTENT_TYPE = """"""
       
   292 class CreateLogoutURLRequest(ProtocolBuffer.ProtocolMessage):
       
   293   has_destination_url_ = 0
       
   294   destination_url_ = ""
       
   295   has_auth_domain_ = 0
       
   296   auth_domain_ = ""
       
   297 
       
   298   def __init__(self, contents=None):
       
   299     if contents is not None: self.MergeFromString(contents)
       
   300 
       
   301   def destination_url(self): return self.destination_url_
       
   302 
       
   303   def set_destination_url(self, x):
       
   304     self.has_destination_url_ = 1
       
   305     self.destination_url_ = x
       
   306 
       
   307   def clear_destination_url(self):
       
   308     if self.has_destination_url_:
       
   309       self.has_destination_url_ = 0
       
   310       self.destination_url_ = ""
       
   311 
       
   312   def has_destination_url(self): return self.has_destination_url_
       
   313 
       
   314   def auth_domain(self): return self.auth_domain_
       
   315 
       
   316   def set_auth_domain(self, x):
       
   317     self.has_auth_domain_ = 1
       
   318     self.auth_domain_ = x
       
   319 
       
   320   def clear_auth_domain(self):
       
   321     if self.has_auth_domain_:
       
   322       self.has_auth_domain_ = 0
       
   323       self.auth_domain_ = ""
       
   324 
       
   325   def has_auth_domain(self): return self.has_auth_domain_
       
   326 
       
   327 
       
   328   def MergeFrom(self, x):
       
   329     assert x is not self
       
   330     if (x.has_destination_url()): self.set_destination_url(x.destination_url())
       
   331     if (x.has_auth_domain()): self.set_auth_domain(x.auth_domain())
       
   332 
       
   333   def Equals(self, x):
       
   334     if x is self: return 1
       
   335     if self.has_destination_url_ != x.has_destination_url_: return 0
       
   336     if self.has_destination_url_ and self.destination_url_ != x.destination_url_: return 0
       
   337     if self.has_auth_domain_ != x.has_auth_domain_: return 0
       
   338     if self.has_auth_domain_ and self.auth_domain_ != x.auth_domain_: return 0
       
   339     return 1
       
   340 
       
   341   def IsInitialized(self, debug_strs=None):
       
   342     initialized = 1
       
   343     if (not self.has_destination_url_):
       
   344       initialized = 0
       
   345       if debug_strs is not None:
       
   346         debug_strs.append('Required field: destination_url not set.')
       
   347     return initialized
       
   348 
       
   349   def ByteSize(self):
       
   350     n = 0
       
   351     n += self.lengthString(len(self.destination_url_))
       
   352     if (self.has_auth_domain_): n += 1 + self.lengthString(len(self.auth_domain_))
       
   353     return n + 1
       
   354 
       
   355   def Clear(self):
       
   356     self.clear_destination_url()
       
   357     self.clear_auth_domain()
       
   358 
       
   359   def OutputUnchecked(self, out):
       
   360     out.putVarInt32(10)
       
   361     out.putPrefixedString(self.destination_url_)
       
   362     if (self.has_auth_domain_):
       
   363       out.putVarInt32(18)
       
   364       out.putPrefixedString(self.auth_domain_)
       
   365 
       
   366   def TryMerge(self, d):
       
   367     while d.avail() > 0:
       
   368       tt = d.getVarInt32()
       
   369       if tt == 10:
       
   370         self.set_destination_url(d.getPrefixedString())
       
   371         continue
       
   372       if tt == 18:
       
   373         self.set_auth_domain(d.getPrefixedString())
       
   374         continue
       
   375       if (tt == 0): raise ProtocolBuffer.ProtocolBufferDecodeError
       
   376       d.skipData(tt)
       
   377 
       
   378 
       
   379   def __str__(self, prefix="", printElemNumber=0):
       
   380     res=""
       
   381     if self.has_destination_url_: res+=prefix+("destination_url: %s\n" % self.DebugFormatString(self.destination_url_))
       
   382     if self.has_auth_domain_: res+=prefix+("auth_domain: %s\n" % self.DebugFormatString(self.auth_domain_))
       
   383     return res
       
   384 
       
   385 
       
   386   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
   387     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
   388 
       
   389   kdestination_url = 1
       
   390   kauth_domain = 2
       
   391 
       
   392   _TEXT = _BuildTagLookupTable({
       
   393     0: "ErrorCode",
       
   394     1: "destination_url",
       
   395     2: "auth_domain",
       
   396   }, 2)
       
   397 
       
   398   _TYPES = _BuildTagLookupTable({
       
   399     0: ProtocolBuffer.Encoder.NUMERIC,
       
   400     1: ProtocolBuffer.Encoder.STRING,
       
   401     2: ProtocolBuffer.Encoder.STRING,
       
   402   }, 2, ProtocolBuffer.Encoder.MAX_TYPE)
       
   403 
       
   404   _STYLE = """"""
       
   405   _STYLE_CONTENT_TYPE = """"""
       
   406 class CreateLogoutURLResponse(ProtocolBuffer.ProtocolMessage):
       
   407   has_logout_url_ = 0
       
   408   logout_url_ = ""
       
   409 
       
   410   def __init__(self, contents=None):
       
   411     if contents is not None: self.MergeFromString(contents)
       
   412 
       
   413   def logout_url(self): return self.logout_url_
       
   414 
       
   415   def set_logout_url(self, x):
       
   416     self.has_logout_url_ = 1
       
   417     self.logout_url_ = x
       
   418 
       
   419   def clear_logout_url(self):
       
   420     if self.has_logout_url_:
       
   421       self.has_logout_url_ = 0
       
   422       self.logout_url_ = ""
       
   423 
       
   424   def has_logout_url(self): return self.has_logout_url_
       
   425 
       
   426 
       
   427   def MergeFrom(self, x):
       
   428     assert x is not self
       
   429     if (x.has_logout_url()): self.set_logout_url(x.logout_url())
       
   430 
       
   431   def Equals(self, x):
       
   432     if x is self: return 1
       
   433     if self.has_logout_url_ != x.has_logout_url_: return 0
       
   434     if self.has_logout_url_ and self.logout_url_ != x.logout_url_: return 0
       
   435     return 1
       
   436 
       
   437   def IsInitialized(self, debug_strs=None):
       
   438     initialized = 1
       
   439     if (not self.has_logout_url_):
       
   440       initialized = 0
       
   441       if debug_strs is not None:
       
   442         debug_strs.append('Required field: logout_url not set.')
       
   443     return initialized
       
   444 
       
   445   def ByteSize(self):
       
   446     n = 0
       
   447     n += self.lengthString(len(self.logout_url_))
       
   448     return n + 1
       
   449 
       
   450   def Clear(self):
       
   451     self.clear_logout_url()
       
   452 
       
   453   def OutputUnchecked(self, out):
       
   454     out.putVarInt32(10)
       
   455     out.putPrefixedString(self.logout_url_)
       
   456 
       
   457   def TryMerge(self, d):
       
   458     while d.avail() > 0:
       
   459       tt = d.getVarInt32()
       
   460       if tt == 10:
       
   461         self.set_logout_url(d.getPrefixedString())
       
   462         continue
       
   463       if (tt == 0): raise ProtocolBuffer.ProtocolBufferDecodeError
       
   464       d.skipData(tt)
       
   465 
       
   466 
       
   467   def __str__(self, prefix="", printElemNumber=0):
       
   468     res=""
       
   469     if self.has_logout_url_: res+=prefix+("logout_url: %s\n" % self.DebugFormatString(self.logout_url_))
       
   470     return res
       
   471 
       
   472 
       
   473   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
   474     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
   475 
       
   476   klogout_url = 1
       
   477 
       
   478   _TEXT = _BuildTagLookupTable({
       
   479     0: "ErrorCode",
       
   480     1: "logout_url",
       
   481   }, 1)
       
   482 
       
   483   _TYPES = _BuildTagLookupTable({
       
   484     0: ProtocolBuffer.Encoder.NUMERIC,
       
   485     1: ProtocolBuffer.Encoder.STRING,
       
   486   }, 1, ProtocolBuffer.Encoder.MAX_TYPE)
       
   487 
       
   488   _STYLE = """"""
       
   489   _STYLE_CONTENT_TYPE = """"""
       
   490 
       
   491 __all__ = ['UserServiceError','CreateLoginURLRequest','CreateLoginURLResponse','CreateLogoutURLRequest','CreateLogoutURLResponse']