thirdparty/google_appengine/google/appengine/api/images/images_service_pb.py
changeset 149 f2e327a7c5de
parent 109 620f9b141567
child 828 f5fd65cc3bf3
--- a/thirdparty/google_appengine/google/appengine/api/images/images_service_pb.py	Tue Sep 16 01:18:49 2008 +0000
+++ b/thirdparty/google_appengine/google/appengine/api/images/images_service_pb.py	Tue Sep 16 02:28:33 2008 +0000
@@ -41,6 +41,7 @@
   def ErrorCode_Name(cls, x): return cls._ErrorCode_NAMES.get(x, "")
   ErrorCode_Name = classmethod(ErrorCode_Name)
 
+
   def __init__(self, contents=None):
     pass
     if contents is not None: self.MergeFromString(contents)
@@ -116,6 +117,7 @@
   def Type_Name(cls, x): return cls._Type_NAMES.get(x, "")
   Type_Name = classmethod(Type_Name)
 
+
   def __init__(self, contents=None):
     pass
     if contents is not None: self.MergeFromString(contents)
@@ -171,27 +173,28 @@
   _STYLE = """"""
   _STYLE_CONTENT_TYPE = """"""
 class Transform(ProtocolBuffer.ProtocolMessage):
+  has_width_ = 0
+  width_ = 0
+  has_height_ = 0
+  height_ = 0
+  has_rotate_ = 0
+  rotate_ = 0
+  has_horizontal_flip_ = 0
+  horizontal_flip_ = 0
+  has_vertical_flip_ = 0
+  vertical_flip_ = 0
+  has_crop_left_x_ = 0
+  crop_left_x_ = 0.0
+  has_crop_top_y_ = 0
+  crop_top_y_ = 0.0
+  has_crop_right_x_ = 0
+  crop_right_x_ = 1.0
+  has_crop_bottom_y_ = 0
+  crop_bottom_y_ = 1.0
+  has_autolevels_ = 0
+  autolevels_ = 0
+
   def __init__(self, contents=None):
-    self.width_ = 0
-    self.height_ = 0
-    self.rotate_ = 0
-    self.horizontal_flip_ = 0
-    self.vertical_flip_ = 0
-    self.crop_left_x_ = 0.0
-    self.crop_top_y_ = 0.0
-    self.crop_right_x_ = 1.0
-    self.crop_bottom_y_ = 1.0
-    self.autolevels_ = 0
-    self.has_width_ = 0
-    self.has_height_ = 0
-    self.has_rotate_ = 0
-    self.has_horizontal_flip_ = 0
-    self.has_vertical_flip_ = 0
-    self.has_crop_left_x_ = 0
-    self.has_crop_top_y_ = 0
-    self.has_crop_right_x_ = 0
-    self.has_crop_bottom_y_ = 0
-    self.has_autolevels_ = 0
     if contents is not None: self.MergeFromString(contents)
 
   def width(self): return self.width_
@@ -523,9 +526,10 @@
   _STYLE = """"""
   _STYLE_CONTENT_TYPE = """"""
 class ImageData(ProtocolBuffer.ProtocolMessage):
+  has_content_ = 0
+  content_ = ""
+
   def __init__(self, contents=None):
-    self.content_ = ""
-    self.has_content_ = 0
     if contents is not None: self.MergeFromString(contents)
 
   def content(self): return self.content_
@@ -620,9 +624,10 @@
   def MIME_TYPE_Name(cls, x): return cls._MIME_TYPE_NAMES.get(x, "")
   MIME_TYPE_Name = classmethod(MIME_TYPE_Name)
 
+  has_mime_type_ = 0
+  mime_type_ = 0
+
   def __init__(self, contents=None):
-    self.mime_type_ = 0
-    self.has_mime_type_ = 0
     if contents is not None: self.MergeFromString(contents)
 
   def mime_type(self): return self.mime_type_
@@ -702,12 +707,13 @@
   _STYLE = """"""
   _STYLE_CONTENT_TYPE = """"""
 class ImagesTransformRequest(ProtocolBuffer.ProtocolMessage):
+  has_image_ = 0
+  has_output_ = 0
+
   def __init__(self, contents=None):
     self.image_ = ImageData()
     self.transform_ = []
     self.output_ = OutputSettings()
-    self.has_image_ = 0
-    self.has_output_ = 0
     if contents is not None: self.MergeFromString(contents)
 
   def image(self): return self.image_
@@ -773,8 +779,8 @@
       if debug_strs is not None:
         debug_strs.append('Required field: image not set.')
     elif not self.image_.IsInitialized(debug_strs): initialized = 0
-    for i in xrange(len(self.transform_)):
-      if (not self.transform_[i].IsInitialized(debug_strs)): initialized=0
+    for p in self.transform_:
+      if not p.IsInitialized(debug_strs): initialized=0
     if (not self.has_output_):
       initialized = 0
       if debug_strs is not None:
@@ -876,9 +882,10 @@
   _STYLE = """"""
   _STYLE_CONTENT_TYPE = """"""
 class ImagesTransformResponse(ProtocolBuffer.ProtocolMessage):
+  has_image_ = 0
+
   def __init__(self, contents=None):
     self.image_ = ImageData()
-    self.has_image_ = 0
     if contents is not None: self.MergeFromString(contents)
 
   def image(self): return self.image_