~nchohan/appscale/zk3.3.4

« back to all changes in this revision

Viewing changes to AppServer/google/appengine/api/user_service_pb.py

  • Committer: Navraj Chohan
  • Date: 2009-03-28 01:14:04 UTC
  • Revision ID: nchohan@cs.ucsb.edu-20090328011404-42m1w6yt60m6yfg3
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
  NOT_ALLOWED  =    2
 
31
 
 
32
  _ErrorCode_NAMES = {
 
33
    0: "OK",
 
34
    1: "REDIRECT_URL_TOO_LONG",
 
35
    2: "NOT_ALLOWED",
 
36
  }
 
37
 
 
38
  def ErrorCode_Name(cls, x): return cls._ErrorCode_NAMES.get(x, "")
 
39
  ErrorCode_Name = classmethod(ErrorCode_Name)
 
40
 
 
41
 
 
42
  def __init__(self, contents=None):
 
43
    pass
 
44
    if contents is not None: self.MergeFromString(contents)
 
45
 
 
46
 
 
47
  def MergeFrom(self, x):
 
48
    assert x is not self
 
49
 
 
50
  def Equals(self, x):
 
51
    if x is self: return 1
 
52
    return 1
 
53
 
 
54
  def IsInitialized(self, debug_strs=None):
 
55
    initialized = 1
 
56
    return initialized
 
57
 
 
58
  def ByteSize(self):
 
59
    n = 0
 
60
    return n + 0
 
61
 
 
62
  def Clear(self):
 
63
    pass
 
64
 
 
65
  def OutputUnchecked(self, out):
 
66
    pass
 
67
 
 
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)
 
73
 
 
74
 
 
75
  def __str__(self, prefix="", printElemNumber=0):
 
76
    res=""
 
77
    return res
 
78
 
 
79
 
 
80
  _TEXT = (
 
81
   "ErrorCode",
 
82
  )
 
83
 
 
84
  _TYPES = (
 
85
   ProtocolBuffer.Encoder.NUMERIC,
 
86
  )
 
87
 
 
88
  _STYLE = """"""
 
89
  _STYLE_CONTENT_TYPE = """"""
 
90
 
 
91
__all__ = ['UserServiceError']