Update Google App Engine to 1.2.2 in thirdparty folder.
[Melange.git] / thirdparty / google_appengine / google / appengine / api / user_service_pb.py
blob412084a3e6a522e133e6219770369030cc3167ce
1 #!/usr/bin/env python
3 # Copyright 2007 Google Inc.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
18 from google.net.proto import ProtocolBuffer
19 import array
20 import dummy_thread as thread
22 __pychecker__ = """maxreturns=0 maxbranches=0 no-callinit
23 unusednames=printElemNumber,debug_strs no-special"""
25 from google.appengine.api.api_base_pb import *
26 class UserServiceError(ProtocolBuffer.ProtocolMessage):
28 OK = 0
29 REDIRECT_URL_TOO_LONG = 1
30 NOT_ALLOWED = 2
32 _ErrorCode_NAMES = {
33 0: "OK",
34 1: "REDIRECT_URL_TOO_LONG",
35 2: "NOT_ALLOWED",
38 def ErrorCode_Name(cls, x): return cls._ErrorCode_NAMES.get(x, "")
39 ErrorCode_Name = classmethod(ErrorCode_Name)
42 def __init__(self, contents=None):
43 pass
44 if contents is not None: self.MergeFromString(contents)
47 def MergeFrom(self, x):
48 assert x is not self
50 def Equals(self, x):
51 if x is self: return 1
52 return 1
54 def IsInitialized(self, debug_strs=None):
55 initialized = 1
56 return initialized
58 def ByteSize(self):
59 n = 0
60 return n + 0
62 def Clear(self):
63 pass
65 def OutputUnchecked(self, out):
66 pass
68 def TryMerge(self, d):
69 while d.avail() > 0:
70 tt = d.getVarInt32()
71 if (tt == 0): raise ProtocolBuffer.ProtocolBufferDecodeError
72 d.skipData(tt)
75 def __str__(self, prefix="", printElemNumber=0):
76 res=""
77 return res
80 _TEXT = (
81 "ErrorCode",
84 _TYPES = (
85 ProtocolBuffer.Encoder.NUMERIC,
88 _STYLE = """"""
89 _STYLE_CONTENT_TYPE = """"""
91 __all__ = ['UserServiceError']