thirdparty/google_appengine/google/appengine/api/images/images_service_pb.py
changeset 2864 2e0b0af889be
parent 2273 e4cb9c53db3e
child 3031 7678f72140e6
equal deleted inserted replaced
2862:27971a13089f 2864:2e0b0af889be
    78   def __str__(self, prefix="", printElemNumber=0):
    78   def __str__(self, prefix="", printElemNumber=0):
    79     res=""
    79     res=""
    80     return res
    80     return res
    81 
    81 
    82 
    82 
    83   _TEXT = (
    83   def _BuildTagLookupTable(sparse, maxtag, default=None):
    84    "ErrorCode",
    84     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
    85   )
    85 
    86 
    86 
    87   _TYPES = (
    87   _TEXT = _BuildTagLookupTable({
    88    ProtocolBuffer.Encoder.NUMERIC,
    88     0: "ErrorCode",
    89   )
    89   }, 0)
       
    90 
       
    91   _TYPES = _BuildTagLookupTable({
       
    92     0: ProtocolBuffer.Encoder.NUMERIC,
       
    93   }, 0, ProtocolBuffer.Encoder.MAX_TYPE)
    90 
    94 
    91   _STYLE = """"""
    95   _STYLE = """"""
    92   _STYLE_CONTENT_TYPE = """"""
    96   _STYLE_CONTENT_TYPE = """"""
    93 class ImagesServiceTransform(ProtocolBuffer.ProtocolMessage):
    97 class ImagesServiceTransform(ProtocolBuffer.ProtocolMessage):
    94 
    98 
   148   def __str__(self, prefix="", printElemNumber=0):
   152   def __str__(self, prefix="", printElemNumber=0):
   149     res=""
   153     res=""
   150     return res
   154     return res
   151 
   155 
   152 
   156 
   153   _TEXT = (
   157   def _BuildTagLookupTable(sparse, maxtag, default=None):
   154    "ErrorCode",
   158     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
   155   )
   159 
   156 
   160 
   157   _TYPES = (
   161   _TEXT = _BuildTagLookupTable({
   158    ProtocolBuffer.Encoder.NUMERIC,
   162     0: "ErrorCode",
   159   )
   163   }, 0)
       
   164 
       
   165   _TYPES = _BuildTagLookupTable({
       
   166     0: ProtocolBuffer.Encoder.NUMERIC,
       
   167   }, 0, ProtocolBuffer.Encoder.MAX_TYPE)
   160 
   168 
   161   _STYLE = """"""
   169   _STYLE = """"""
   162   _STYLE_CONTENT_TYPE = """"""
   170   _STYLE_CONTENT_TYPE = """"""
   163 class Transform(ProtocolBuffer.ProtocolMessage):
   171 class Transform(ProtocolBuffer.ProtocolMessage):
   164   has_width_ = 0
   172   has_width_ = 0
   464     if self.has_crop_right_x_: res+=prefix+("crop_right_x: %s\n" % self.DebugFormatFloat(self.crop_right_x_))
   472     if self.has_crop_right_x_: res+=prefix+("crop_right_x: %s\n" % self.DebugFormatFloat(self.crop_right_x_))
   465     if self.has_crop_bottom_y_: res+=prefix+("crop_bottom_y: %s\n" % self.DebugFormatFloat(self.crop_bottom_y_))
   473     if self.has_crop_bottom_y_: res+=prefix+("crop_bottom_y: %s\n" % self.DebugFormatFloat(self.crop_bottom_y_))
   466     if self.has_autolevels_: res+=prefix+("autolevels: %s\n" % self.DebugFormatBool(self.autolevels_))
   474     if self.has_autolevels_: res+=prefix+("autolevels: %s\n" % self.DebugFormatBool(self.autolevels_))
   467     return res
   475     return res
   468 
   476 
       
   477 
       
   478   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
   479     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
   480 
   469   kwidth = 1
   481   kwidth = 1
   470   kheight = 2
   482   kheight = 2
   471   krotate = 3
   483   krotate = 3
   472   khorizontal_flip = 4
   484   khorizontal_flip = 4
   473   kvertical_flip = 5
   485   kvertical_flip = 5
   475   kcrop_top_y = 7
   487   kcrop_top_y = 7
   476   kcrop_right_x = 8
   488   kcrop_right_x = 8
   477   kcrop_bottom_y = 9
   489   kcrop_bottom_y = 9
   478   kautolevels = 10
   490   kautolevels = 10
   479 
   491 
   480   _TEXT = (
   492   _TEXT = _BuildTagLookupTable({
   481    "ErrorCode",
   493     0: "ErrorCode",
   482    "width",
   494     1: "width",
   483    "height",
   495     2: "height",
   484    "rotate",
   496     3: "rotate",
   485    "horizontal_flip",
   497     4: "horizontal_flip",
   486    "vertical_flip",
   498     5: "vertical_flip",
   487    "crop_left_x",
   499     6: "crop_left_x",
   488    "crop_top_y",
   500     7: "crop_top_y",
   489    "crop_right_x",
   501     8: "crop_right_x",
   490    "crop_bottom_y",
   502     9: "crop_bottom_y",
   491    "autolevels",
   503     10: "autolevels",
   492   )
   504   }, 10)
   493 
   505 
   494   _TYPES = (
   506   _TYPES = _BuildTagLookupTable({
   495    ProtocolBuffer.Encoder.NUMERIC,
   507     0: ProtocolBuffer.Encoder.NUMERIC,
   496    ProtocolBuffer.Encoder.NUMERIC,
   508     1: ProtocolBuffer.Encoder.NUMERIC,
   497 
   509     2: ProtocolBuffer.Encoder.NUMERIC,
   498    ProtocolBuffer.Encoder.NUMERIC,
   510     3: ProtocolBuffer.Encoder.NUMERIC,
   499 
   511     4: ProtocolBuffer.Encoder.NUMERIC,
   500    ProtocolBuffer.Encoder.NUMERIC,
   512     5: ProtocolBuffer.Encoder.NUMERIC,
   501 
   513     6: ProtocolBuffer.Encoder.FLOAT,
   502    ProtocolBuffer.Encoder.NUMERIC,
   514     7: ProtocolBuffer.Encoder.FLOAT,
   503 
   515     8: ProtocolBuffer.Encoder.FLOAT,
   504    ProtocolBuffer.Encoder.NUMERIC,
   516     9: ProtocolBuffer.Encoder.FLOAT,
   505 
   517     10: ProtocolBuffer.Encoder.NUMERIC,
   506    ProtocolBuffer.Encoder.FLOAT,
   518   }, 10, ProtocolBuffer.Encoder.MAX_TYPE)
   507 
       
   508    ProtocolBuffer.Encoder.FLOAT,
       
   509 
       
   510    ProtocolBuffer.Encoder.FLOAT,
       
   511 
       
   512    ProtocolBuffer.Encoder.FLOAT,
       
   513 
       
   514    ProtocolBuffer.Encoder.NUMERIC,
       
   515 
       
   516   )
       
   517 
   519 
   518   _STYLE = """"""
   520   _STYLE = """"""
   519   _STYLE_CONTENT_TYPE = """"""
   521   _STYLE_CONTENT_TYPE = """"""
   520 class ImageData(ProtocolBuffer.ProtocolMessage):
   522 class ImageData(ProtocolBuffer.ProtocolMessage):
   521   has_content_ = 0
   523   has_content_ = 0
   581   def __str__(self, prefix="", printElemNumber=0):
   583   def __str__(self, prefix="", printElemNumber=0):
   582     res=""
   584     res=""
   583     if self.has_content_: res+=prefix+("content: %s\n" % self.DebugFormatString(self.content_))
   585     if self.has_content_: res+=prefix+("content: %s\n" % self.DebugFormatString(self.content_))
   584     return res
   586     return res
   585 
   587 
       
   588 
       
   589   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
   590     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
   591 
   586   kcontent = 1
   592   kcontent = 1
   587 
   593 
   588   _TEXT = (
   594   _TEXT = _BuildTagLookupTable({
   589    "ErrorCode",
   595     0: "ErrorCode",
   590    "content",
   596     1: "content",
   591   )
   597   }, 1)
   592 
   598 
   593   _TYPES = (
   599   _TYPES = _BuildTagLookupTable({
   594    ProtocolBuffer.Encoder.NUMERIC,
   600     0: ProtocolBuffer.Encoder.NUMERIC,
   595    ProtocolBuffer.Encoder.STRING,
   601     1: ProtocolBuffer.Encoder.STRING,
   596 
   602   }, 1, ProtocolBuffer.Encoder.MAX_TYPE)
   597   )
       
   598 
   603 
   599   _STYLE = """"""
   604   _STYLE = """"""
   600   _STYLE_CONTENT_TYPE = """"""
   605   _STYLE_CONTENT_TYPE = """"""
   601 class OutputSettings(ProtocolBuffer.ProtocolMessage):
   606 class OutputSettings(ProtocolBuffer.ProtocolMessage):
   602 
   607 
   671   def __str__(self, prefix="", printElemNumber=0):
   676   def __str__(self, prefix="", printElemNumber=0):
   672     res=""
   677     res=""
   673     if self.has_mime_type_: res+=prefix+("mime_type: %s\n" % self.DebugFormatInt32(self.mime_type_))
   678     if self.has_mime_type_: res+=prefix+("mime_type: %s\n" % self.DebugFormatInt32(self.mime_type_))
   674     return res
   679     return res
   675 
   680 
       
   681 
       
   682   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
   683     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
   684 
   676   kmime_type = 1
   685   kmime_type = 1
   677 
   686 
   678   _TEXT = (
   687   _TEXT = _BuildTagLookupTable({
   679    "ErrorCode",
   688     0: "ErrorCode",
   680    "mime_type",
   689     1: "mime_type",
   681   )
   690   }, 1)
   682 
   691 
   683   _TYPES = (
   692   _TYPES = _BuildTagLookupTable({
   684    ProtocolBuffer.Encoder.NUMERIC,
   693     0: ProtocolBuffer.Encoder.NUMERIC,
   685    ProtocolBuffer.Encoder.NUMERIC,
   694     1: ProtocolBuffer.Encoder.NUMERIC,
   686 
   695   }, 1, ProtocolBuffer.Encoder.MAX_TYPE)
   687   )
       
   688 
   696 
   689   _STYLE = """"""
   697   _STYLE = """"""
   690   _STYLE_CONTENT_TYPE = """"""
   698   _STYLE_CONTENT_TYPE = """"""
   691 class ImagesTransformRequest(ProtocolBuffer.ProtocolMessage):
   699 class ImagesTransformRequest(ProtocolBuffer.ProtocolMessage):
   692   has_image_ = 0
   700   has_image_ = 0
   832       res+=prefix+"output <\n"
   840       res+=prefix+"output <\n"
   833       res+=self.output_.__str__(prefix + "  ", printElemNumber)
   841       res+=self.output_.__str__(prefix + "  ", printElemNumber)
   834       res+=prefix+">\n"
   842       res+=prefix+">\n"
   835     return res
   843     return res
   836 
   844 
       
   845 
       
   846   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
   847     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
   848 
   837   kimage = 1
   849   kimage = 1
   838   ktransform = 2
   850   ktransform = 2
   839   koutput = 3
   851   koutput = 3
   840 
   852 
   841   _TEXT = (
   853   _TEXT = _BuildTagLookupTable({
   842    "ErrorCode",
   854     0: "ErrorCode",
   843    "image",
   855     1: "image",
   844    "transform",
   856     2: "transform",
   845    "output",
   857     3: "output",
   846   )
   858   }, 3)
   847 
   859 
   848   _TYPES = (
   860   _TYPES = _BuildTagLookupTable({
   849    ProtocolBuffer.Encoder.NUMERIC,
   861     0: ProtocolBuffer.Encoder.NUMERIC,
   850    ProtocolBuffer.Encoder.STRING,
   862     1: ProtocolBuffer.Encoder.STRING,
   851 
   863     2: ProtocolBuffer.Encoder.STRING,
   852    ProtocolBuffer.Encoder.STRING,
   864     3: ProtocolBuffer.Encoder.STRING,
   853 
   865   }, 3, ProtocolBuffer.Encoder.MAX_TYPE)
   854    ProtocolBuffer.Encoder.STRING,
       
   855 
       
   856   )
       
   857 
   866 
   858   _STYLE = """"""
   867   _STYLE = """"""
   859   _STYLE_CONTENT_TYPE = """"""
   868   _STYLE_CONTENT_TYPE = """"""
   860 class ImagesTransformResponse(ProtocolBuffer.ProtocolMessage):
   869 class ImagesTransformResponse(ProtocolBuffer.ProtocolMessage):
   861   has_image_ = 0
   870   has_image_ = 0
   924       res+=prefix+"image <\n"
   933       res+=prefix+"image <\n"
   925       res+=self.image_.__str__(prefix + "  ", printElemNumber)
   934       res+=self.image_.__str__(prefix + "  ", printElemNumber)
   926       res+=prefix+">\n"
   935       res+=prefix+">\n"
   927     return res
   936     return res
   928 
   937 
       
   938 
       
   939   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
   940     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
   941 
   929   kimage = 1
   942   kimage = 1
   930 
   943 
   931   _TEXT = (
   944   _TEXT = _BuildTagLookupTable({
   932    "ErrorCode",
   945     0: "ErrorCode",
   933    "image",
   946     1: "image",
   934   )
   947   }, 1)
   935 
   948 
   936   _TYPES = (
   949   _TYPES = _BuildTagLookupTable({
   937    ProtocolBuffer.Encoder.NUMERIC,
   950     0: ProtocolBuffer.Encoder.NUMERIC,
   938    ProtocolBuffer.Encoder.STRING,
   951     1: ProtocolBuffer.Encoder.STRING,
   939 
   952   }, 1, ProtocolBuffer.Encoder.MAX_TYPE)
   940   )
       
   941 
   953 
   942   _STYLE = """"""
   954   _STYLE = """"""
   943   _STYLE_CONTENT_TYPE = """"""
   955   _STYLE_CONTENT_TYPE = """"""
   944 class CompositeImageOptions(ProtocolBuffer.ProtocolMessage):
   956 class CompositeImageOptions(ProtocolBuffer.ProtocolMessage):
   945 
   957 
  1150     if self.has_y_offset_: res+=prefix+("y_offset: %s\n" % self.DebugFormatInt32(self.y_offset_))
  1162     if self.has_y_offset_: res+=prefix+("y_offset: %s\n" % self.DebugFormatInt32(self.y_offset_))
  1151     if self.has_opacity_: res+=prefix+("opacity: %s\n" % self.DebugFormatFloat(self.opacity_))
  1163     if self.has_opacity_: res+=prefix+("opacity: %s\n" % self.DebugFormatFloat(self.opacity_))
  1152     if self.has_anchor_: res+=prefix+("anchor: %s\n" % self.DebugFormatInt32(self.anchor_))
  1164     if self.has_anchor_: res+=prefix+("anchor: %s\n" % self.DebugFormatInt32(self.anchor_))
  1153     return res
  1165     return res
  1154 
  1166 
       
  1167 
       
  1168   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
  1169     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
  1170 
  1155   ksource_index = 1
  1171   ksource_index = 1
  1156   kx_offset = 2
  1172   kx_offset = 2
  1157   ky_offset = 3
  1173   ky_offset = 3
  1158   kopacity = 4
  1174   kopacity = 4
  1159   kanchor = 5
  1175   kanchor = 5
  1160 
  1176 
  1161   _TEXT = (
  1177   _TEXT = _BuildTagLookupTable({
  1162    "ErrorCode",
  1178     0: "ErrorCode",
  1163    "source_index",
  1179     1: "source_index",
  1164    "x_offset",
  1180     2: "x_offset",
  1165    "y_offset",
  1181     3: "y_offset",
  1166    "opacity",
  1182     4: "opacity",
  1167    "anchor",
  1183     5: "anchor",
  1168   )
  1184   }, 5)
  1169 
  1185 
  1170   _TYPES = (
  1186   _TYPES = _BuildTagLookupTable({
  1171    ProtocolBuffer.Encoder.NUMERIC,
  1187     0: ProtocolBuffer.Encoder.NUMERIC,
  1172    ProtocolBuffer.Encoder.NUMERIC,
  1188     1: ProtocolBuffer.Encoder.NUMERIC,
  1173 
  1189     2: ProtocolBuffer.Encoder.NUMERIC,
  1174    ProtocolBuffer.Encoder.NUMERIC,
  1190     3: ProtocolBuffer.Encoder.NUMERIC,
  1175 
  1191     4: ProtocolBuffer.Encoder.FLOAT,
  1176    ProtocolBuffer.Encoder.NUMERIC,
  1192     5: ProtocolBuffer.Encoder.NUMERIC,
  1177 
  1193   }, 5, ProtocolBuffer.Encoder.MAX_TYPE)
  1178    ProtocolBuffer.Encoder.FLOAT,
       
  1179 
       
  1180    ProtocolBuffer.Encoder.NUMERIC,
       
  1181 
       
  1182   )
       
  1183 
  1194 
  1184   _STYLE = """"""
  1195   _STYLE = """"""
  1185   _STYLE_CONTENT_TYPE = """"""
  1196   _STYLE_CONTENT_TYPE = """"""
  1186 class ImagesCanvas(ProtocolBuffer.ProtocolMessage):
  1197 class ImagesCanvas(ProtocolBuffer.ProtocolMessage):
  1187   has_width_ = 0
  1198   has_width_ = 0
  1337       res+=self.output_.__str__(prefix + "  ", printElemNumber)
  1348       res+=self.output_.__str__(prefix + "  ", printElemNumber)
  1338       res+=prefix+">\n"
  1349       res+=prefix+">\n"
  1339     if self.has_color_: res+=prefix+("color: %s\n" % self.DebugFormatInt32(self.color_))
  1350     if self.has_color_: res+=prefix+("color: %s\n" % self.DebugFormatInt32(self.color_))
  1340     return res
  1351     return res
  1341 
  1352 
       
  1353 
       
  1354   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
  1355     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
  1356 
  1342   kwidth = 1
  1357   kwidth = 1
  1343   kheight = 2
  1358   kheight = 2
  1344   koutput = 3
  1359   koutput = 3
  1345   kcolor = 4
  1360   kcolor = 4
  1346 
  1361 
  1347   _TEXT = (
  1362   _TEXT = _BuildTagLookupTable({
  1348    "ErrorCode",
  1363     0: "ErrorCode",
  1349    "width",
  1364     1: "width",
  1350    "height",
  1365     2: "height",
  1351    "output",
  1366     3: "output",
  1352    "color",
  1367     4: "color",
  1353   )
  1368   }, 4)
  1354 
  1369 
  1355   _TYPES = (
  1370   _TYPES = _BuildTagLookupTable({
  1356    ProtocolBuffer.Encoder.NUMERIC,
  1371     0: ProtocolBuffer.Encoder.NUMERIC,
  1357    ProtocolBuffer.Encoder.NUMERIC,
  1372     1: ProtocolBuffer.Encoder.NUMERIC,
  1358 
  1373     2: ProtocolBuffer.Encoder.NUMERIC,
  1359    ProtocolBuffer.Encoder.NUMERIC,
  1374     3: ProtocolBuffer.Encoder.STRING,
  1360 
  1375     4: ProtocolBuffer.Encoder.NUMERIC,
  1361    ProtocolBuffer.Encoder.STRING,
  1376   }, 4, ProtocolBuffer.Encoder.MAX_TYPE)
  1362 
       
  1363    ProtocolBuffer.Encoder.NUMERIC,
       
  1364 
       
  1365   )
       
  1366 
  1377 
  1367   _STYLE = """"""
  1378   _STYLE = """"""
  1368   _STYLE_CONTENT_TYPE = """"""
  1379   _STYLE_CONTENT_TYPE = """"""
  1369 class ImagesCompositeRequest(ProtocolBuffer.ProtocolMessage):
  1380 class ImagesCompositeRequest(ProtocolBuffer.ProtocolMessage):
  1370   has_canvas_ = 0
  1381   has_canvas_ = 0
  1521       res+=prefix+"canvas <\n"
  1532       res+=prefix+"canvas <\n"
  1522       res+=self.canvas_.__str__(prefix + "  ", printElemNumber)
  1533       res+=self.canvas_.__str__(prefix + "  ", printElemNumber)
  1523       res+=prefix+">\n"
  1534       res+=prefix+">\n"
  1524     return res
  1535     return res
  1525 
  1536 
       
  1537 
       
  1538   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
  1539     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
  1540 
  1526   kimage = 1
  1541   kimage = 1
  1527   koptions = 2
  1542   koptions = 2
  1528   kcanvas = 3
  1543   kcanvas = 3
  1529 
  1544 
  1530   _TEXT = (
  1545   _TEXT = _BuildTagLookupTable({
  1531    "ErrorCode",
  1546     0: "ErrorCode",
  1532    "image",
  1547     1: "image",
  1533    "options",
  1548     2: "options",
  1534    "canvas",
  1549     3: "canvas",
  1535   )
  1550   }, 3)
  1536 
  1551 
  1537   _TYPES = (
  1552   _TYPES = _BuildTagLookupTable({
  1538    ProtocolBuffer.Encoder.NUMERIC,
  1553     0: ProtocolBuffer.Encoder.NUMERIC,
  1539    ProtocolBuffer.Encoder.STRING,
  1554     1: ProtocolBuffer.Encoder.STRING,
  1540 
  1555     2: ProtocolBuffer.Encoder.STRING,
  1541    ProtocolBuffer.Encoder.STRING,
  1556     3: ProtocolBuffer.Encoder.STRING,
  1542 
  1557   }, 3, ProtocolBuffer.Encoder.MAX_TYPE)
  1543    ProtocolBuffer.Encoder.STRING,
       
  1544 
       
  1545   )
       
  1546 
  1558 
  1547   _STYLE = """"""
  1559   _STYLE = """"""
  1548   _STYLE_CONTENT_TYPE = """"""
  1560   _STYLE_CONTENT_TYPE = """"""
  1549 class ImagesCompositeResponse(ProtocolBuffer.ProtocolMessage):
  1561 class ImagesCompositeResponse(ProtocolBuffer.ProtocolMessage):
  1550   has_image_ = 0
  1562   has_image_ = 0
  1613       res+=prefix+"image <\n"
  1625       res+=prefix+"image <\n"
  1614       res+=self.image_.__str__(prefix + "  ", printElemNumber)
  1626       res+=self.image_.__str__(prefix + "  ", printElemNumber)
  1615       res+=prefix+">\n"
  1627       res+=prefix+">\n"
  1616     return res
  1628     return res
  1617 
  1629 
       
  1630 
       
  1631   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
  1632     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
  1633 
  1618   kimage = 1
  1634   kimage = 1
  1619 
  1635 
  1620   _TEXT = (
  1636   _TEXT = _BuildTagLookupTable({
  1621    "ErrorCode",
  1637     0: "ErrorCode",
  1622    "image",
  1638     1: "image",
  1623   )
  1639   }, 1)
  1624 
  1640 
  1625   _TYPES = (
  1641   _TYPES = _BuildTagLookupTable({
  1626    ProtocolBuffer.Encoder.NUMERIC,
  1642     0: ProtocolBuffer.Encoder.NUMERIC,
  1627    ProtocolBuffer.Encoder.STRING,
  1643     1: ProtocolBuffer.Encoder.STRING,
  1628 
  1644   }, 1, ProtocolBuffer.Encoder.MAX_TYPE)
  1629   )
       
  1630 
  1645 
  1631   _STYLE = """"""
  1646   _STYLE = """"""
  1632   _STYLE_CONTENT_TYPE = """"""
  1647   _STYLE_CONTENT_TYPE = """"""
  1633 class ImagesHistogramRequest(ProtocolBuffer.ProtocolMessage):
  1648 class ImagesHistogramRequest(ProtocolBuffer.ProtocolMessage):
  1634   has_image_ = 0
  1649   has_image_ = 0
  1697       res+=prefix+"image <\n"
  1712       res+=prefix+"image <\n"
  1698       res+=self.image_.__str__(prefix + "  ", printElemNumber)
  1713       res+=self.image_.__str__(prefix + "  ", printElemNumber)
  1699       res+=prefix+">\n"
  1714       res+=prefix+">\n"
  1700     return res
  1715     return res
  1701 
  1716 
       
  1717 
       
  1718   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
  1719     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
  1720 
  1702   kimage = 1
  1721   kimage = 1
  1703 
  1722 
  1704   _TEXT = (
  1723   _TEXT = _BuildTagLookupTable({
  1705    "ErrorCode",
  1724     0: "ErrorCode",
  1706    "image",
  1725     1: "image",
  1707   )
  1726   }, 1)
  1708 
  1727 
  1709   _TYPES = (
  1728   _TYPES = _BuildTagLookupTable({
  1710    ProtocolBuffer.Encoder.NUMERIC,
  1729     0: ProtocolBuffer.Encoder.NUMERIC,
  1711    ProtocolBuffer.Encoder.STRING,
  1730     1: ProtocolBuffer.Encoder.STRING,
  1712 
  1731   }, 1, ProtocolBuffer.Encoder.MAX_TYPE)
  1713   )
       
  1714 
  1732 
  1715   _STYLE = """"""
  1733   _STYLE = """"""
  1716   _STYLE_CONTENT_TYPE = """"""
  1734   _STYLE_CONTENT_TYPE = """"""
  1717 class ImagesHistogram(ProtocolBuffer.ProtocolMessage):
  1735 class ImagesHistogram(ProtocolBuffer.ProtocolMessage):
  1718 
  1736 
  1853       if printElemNumber: elm="(%d)" % cnt
  1871       if printElemNumber: elm="(%d)" % cnt
  1854       res+=prefix+("blue%s: %s\n" % (elm, self.DebugFormatInt32(e)))
  1872       res+=prefix+("blue%s: %s\n" % (elm, self.DebugFormatInt32(e)))
  1855       cnt+=1
  1873       cnt+=1
  1856     return res
  1874     return res
  1857 
  1875 
       
  1876 
       
  1877   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
  1878     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
  1879 
  1858   kred = 1
  1880   kred = 1
  1859   kgreen = 2
  1881   kgreen = 2
  1860   kblue = 3
  1882   kblue = 3
  1861 
  1883 
  1862   _TEXT = (
  1884   _TEXT = _BuildTagLookupTable({
  1863    "ErrorCode",
  1885     0: "ErrorCode",
  1864    "red",
  1886     1: "red",
  1865    "green",
  1887     2: "green",
  1866    "blue",
  1888     3: "blue",
  1867   )
  1889   }, 3)
  1868 
  1890 
  1869   _TYPES = (
  1891   _TYPES = _BuildTagLookupTable({
  1870    ProtocolBuffer.Encoder.NUMERIC,
  1892     0: ProtocolBuffer.Encoder.NUMERIC,
  1871    ProtocolBuffer.Encoder.NUMERIC,
  1893     1: ProtocolBuffer.Encoder.NUMERIC,
  1872 
  1894     2: ProtocolBuffer.Encoder.NUMERIC,
  1873    ProtocolBuffer.Encoder.NUMERIC,
  1895     3: ProtocolBuffer.Encoder.NUMERIC,
  1874 
  1896   }, 3, ProtocolBuffer.Encoder.MAX_TYPE)
  1875    ProtocolBuffer.Encoder.NUMERIC,
       
  1876 
       
  1877   )
       
  1878 
  1897 
  1879   _STYLE = """"""
  1898   _STYLE = """"""
  1880   _STYLE_CONTENT_TYPE = """"""
  1899   _STYLE_CONTENT_TYPE = """"""
  1881 class ImagesHistogramResponse(ProtocolBuffer.ProtocolMessage):
  1900 class ImagesHistogramResponse(ProtocolBuffer.ProtocolMessage):
  1882   has_histogram_ = 0
  1901   has_histogram_ = 0
  1945       res+=prefix+"histogram <\n"
  1964       res+=prefix+"histogram <\n"
  1946       res+=self.histogram_.__str__(prefix + "  ", printElemNumber)
  1965       res+=self.histogram_.__str__(prefix + "  ", printElemNumber)
  1947       res+=prefix+">\n"
  1966       res+=prefix+">\n"
  1948     return res
  1967     return res
  1949 
  1968 
       
  1969 
       
  1970   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
  1971     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
  1972 
  1950   khistogram = 1
  1973   khistogram = 1
  1951 
  1974 
  1952   _TEXT = (
  1975   _TEXT = _BuildTagLookupTable({
  1953    "ErrorCode",
  1976     0: "ErrorCode",
  1954    "histogram",
  1977     1: "histogram",
  1955   )
  1978   }, 1)
  1956 
  1979 
  1957   _TYPES = (
  1980   _TYPES = _BuildTagLookupTable({
  1958    ProtocolBuffer.Encoder.NUMERIC,
  1981     0: ProtocolBuffer.Encoder.NUMERIC,
  1959    ProtocolBuffer.Encoder.STRING,
  1982     1: ProtocolBuffer.Encoder.STRING,
  1960 
  1983   }, 1, ProtocolBuffer.Encoder.MAX_TYPE)
  1961   )
       
  1962 
  1984 
  1963   _STYLE = """"""
  1985   _STYLE = """"""
  1964   _STYLE_CONTENT_TYPE = """"""
  1986   _STYLE_CONTENT_TYPE = """"""
  1965 
  1987 
  1966 __all__ = ['ImagesServiceError','ImagesServiceTransform','Transform','ImageData','OutputSettings','ImagesTransformRequest','ImagesTransformResponse','CompositeImageOptions','ImagesCanvas','ImagesCompositeRequest','ImagesCompositeResponse','ImagesHistogramRequest','ImagesHistogram','ImagesHistogramResponse']
  1988 __all__ = ['ImagesServiceError','ImagesServiceTransform','Transform','ImageData','OutputSettings','ImagesTransformRequest','ImagesTransformResponse','CompositeImageOptions','ImagesCanvas','ImagesCompositeRequest','ImagesCompositeResponse','ImagesHistogramRequest','ImagesHistogram','ImagesHistogramResponse']