thirdparty/google_appengine/google/appengine/api/user_service_pb.py
changeset 109 620f9b141567
child 149 f2e327a7c5de
equal deleted inserted replaced
108:261778de26ff 109:620f9b141567
       
     1 #!/usr/bin/env python
       
     2 #
       
     3 # Copyright 2007 Google Inc.
       
     4 #
       
     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
       
     8 #
       
     9 #     http://www.apache.org/licenses/LICENSE-2.0
       
    10 #
       
    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.
       
    16 #
       
    17 
       
    18 from google.net.proto import ProtocolBuffer
       
    19 import array
       
    20 import dummy_thread as thread
       
    21 
       
    22 __pychecker__ = """maxreturns=0 maxbranches=0 no-callinit
       
    23                    unusednames=printElemNumber,debug_strs no-special"""
       
    24 
       
    25 from google.appengine.api.api_base_pb import StringProto
       
    26 class UserServiceError(ProtocolBuffer.ProtocolMessage):
       
    27 
       
    28   OK           =    0
       
    29   REDIRECT_URL_TOO_LONG =    1
       
    30 
       
    31   _ErrorCode_NAMES = {
       
    32     0: "OK",
       
    33     1: "REDIRECT_URL_TOO_LONG",
       
    34   }
       
    35 
       
    36   def ErrorCode_Name(cls, x): return cls._ErrorCode_NAMES.get(x, "")
       
    37   ErrorCode_Name = classmethod(ErrorCode_Name)
       
    38 
       
    39   def __init__(self, contents=None):
       
    40     pass
       
    41     if contents is not None: self.MergeFromString(contents)
       
    42 
       
    43 
       
    44   def MergeFrom(self, x):
       
    45     assert x is not self
       
    46 
       
    47   def Equals(self, x):
       
    48     if x is self: return 1
       
    49     return 1
       
    50 
       
    51   def __eq__(self, other):
       
    52     return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other)
       
    53 
       
    54   def __ne__(self, other):
       
    55     return not (self == other)
       
    56 
       
    57   def IsInitialized(self, debug_strs=None):
       
    58     initialized = 1
       
    59     return initialized
       
    60 
       
    61   def ByteSize(self):
       
    62     n = 0
       
    63     return n + 0
       
    64 
       
    65   def Clear(self):
       
    66     pass
       
    67 
       
    68   def OutputUnchecked(self, out):
       
    69     pass
       
    70 
       
    71   def TryMerge(self, d):
       
    72     while d.avail() > 0:
       
    73       tt = d.getVarInt32()
       
    74       if (tt == 0): raise ProtocolBuffer.ProtocolBufferDecodeError
       
    75       d.skipData(tt)
       
    76 
       
    77 
       
    78   def __str__(self, prefix="", printElemNumber=0):
       
    79     res=""
       
    80     return res
       
    81 
       
    82 
       
    83   _TEXT = (
       
    84    "ErrorCode",
       
    85   )
       
    86 
       
    87   _TYPES = (
       
    88    ProtocolBuffer.Encoder.NUMERIC,
       
    89   )
       
    90 
       
    91   _STYLE = """"""
       
    92   _STYLE_CONTENT_TYPE = """"""
       
    93 
       
    94 __all__ = ['UserServiceError']