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
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 StringProto
26
class UserServiceError(ProtocolBuffer.ProtocolMessage):
29
REDIRECT_URL_TOO_LONG = 1
34
1: "REDIRECT_URL_TOO_LONG",
38
def ErrorCode_Name(cls, x): return cls._ErrorCode_NAMES.get(x, "")
39
ErrorCode_Name = classmethod(ErrorCode_Name)
42
def __init__(self, contents=None):
44
if contents is not None: self.MergeFromString(contents)
47
def MergeFrom(self, x):
51
if x is self: return 1
54
def IsInitialized(self, debug_strs=None):
65
def OutputUnchecked(self, out):
68
def TryMerge(self, d):
71
if (tt == 0): raise ProtocolBuffer.ProtocolBufferDecodeError
75
def __str__(self, prefix="", printElemNumber=0):
85
ProtocolBuffer.Encoder.NUMERIC,
89
_STYLE_CONTENT_TYPE = """"""
91
__all__ = ['UserServiceError']