on develop help sign in
Regenerating gogol-vision from latest service definition
commit64bf98c372b642095d30b0430f857a2fb61158d2 authorBrendan Hay <brendan.g.hay@gmail.com> dateTue 25 Oct 2016, 11:37 (10 years ago) parentd7e9761
2 files changed+16−15
gen/model/vision/v1/vision-api.json+4−4 gogol-vision/gen/Network/Google/Vision/Types/Product.hs+12−11
gen/model/vision/v1/vision-api.json+4−4
@@ -153,7 +153,7 @@
153153 "type": "array",
154154 "items": {
155155 "additionalProperties": {
156− "description": "Properties of the object. Contains field @ype with type URL.",
156+ "description": "Properties of the object. Contains field @type with type URL.",
157157 "type": "any"
158158 },
159159 "type": "object"
@@ -503,7 +503,7 @@
503503 "$ref": "LatLongRect"
504504 },
505505 "languageHints": {
506− "description": "List of languages to use for TEXT_DETECTION. In most cases, an empty value\nwill yield the best results as it will allow text detection to\nautomatically detect the text language. For languages based on the latin\nalphabet a hint is not needed. In rare cases, when the language of\nthe text in the image is known in advance, setting this hint will help get\nbetter results (although it will hurt a great deal if the hint is wrong).\nText detection will return an error if one or more of the languages\nspecified here are not supported. The exact list of supported languages are\nspecified here:\nhttps://cloud.google.com/translate/v2/using_rest#language-params",
506+ "description": "List of languages to use for TEXT_DETECTION. In most cases, an empty value\nyields the best results since it enables automatic language detection. For\nlanguages based on the Latin alphabet, setting `language_hints` is not\nneeded. In rare cases, when the language of the text in the image is known,\nsetting a hint will help get better results (although it will be a\nsignificant hindrance if the hint is wrong). Text detection returns an\nerror if one or more of the specified languages is not one of the\n[supported\nlanguages](/translate/v2/translate-reference#supported_languages).",
507507 "type": "array",
508508 "items": {
509509 "type": "string"
@@ -727,7 +727,7 @@
727727 "$ref": "ImageSource"
728728 },
729729 "content": {
730− "description": "Image content, represented as a stream of bytes.",
730+ "description": "Image content, represented as a stream of bytes.\nNote: as with all `bytes` fields, protobuffers use a pure binary\nrepresentation, whereas JSON representations use base64.",
731731 "type": "string",
732732 "format": "byte"
733733 }
@@ -849,7 +849,7 @@
849849 "id": "Position"
850850 }
851851 },
852− "revision": "20160513",
852+ "revision": "20160726",
853853 "basePath": "",
854854 "icons": {
855855 "x32": "http://www.google.com/images/icons/product/search-32.gif",
gogol-vision/gen/Network/Google/Vision/Types/Product.hs+12−11
@@ -305,7 +305,9 @@ image =
305305 , _iSource = Nothing
306306 }
307307
308−-- | Image content, represented as a stream of bytes.
308+-- | Image content, represented as a stream of bytes. Note: as with all
309+-- \`bytes\` fields, protobuffers use a pure binary representation, whereas
310+-- JSON representations use base64.
309311iContent :: Lens' Image (Maybe ByteString)
310312iContent
311313 = lens _iContent (\ s a -> s{_iContent = a}) .
@@ -630,7 +632,7 @@ statusDetailsItem pSdiAddtional_ =
630632 { _sdiAddtional = _Coerce # pSdiAddtional_
631633 }
632634
633−-- | Properties of the object. Contains field \'ype with type URL.
635+-- | Properties of the object. Contains field \'type with type URL.
634636sdiAddtional :: Lens' StatusDetailsItem (HashMap Text JSONValue)
635637sdiAddtional
636638 = lens _sdiAddtional (\ s a -> s{_sdiAddtional = a})
@@ -1486,15 +1488,14 @@ imageContext =
14861488 }
14871489
14881490-- | List of languages to use for TEXT_DETECTION. In most cases, an empty
1489−-- value will yield the best results as it will allow text detection to
1490−-- automatically detect the text language. For languages based on the latin
1491−-- alphabet a hint is not needed. In rare cases, when the language of the
1492−-- text in the image is known in advance, setting this hint will help get
1493−-- better results (although it will hurt a great deal if the hint is
1494−-- wrong). Text detection will return an error if one or more of the
1495−-- languages specified here are not supported. The exact list of supported
1496−-- languages are specified here:
1497−-- https:\/\/cloud.google.com\/translate\/v2\/using_rest#language-params
1491+-- value yields the best results since it enables automatic language
1492+-- detection. For languages based on the Latin alphabet, setting
1493+-- \`language_hints\` is not needed. In rare cases, when the language of
1494+-- the text in the image is known, setting a hint will help get better
1495+-- results (although it will be a significant hindrance if the hint is
1496+-- wrong). Text detection returns an error if one or more of the specified
1497+-- languages is not one of the [supported
1498+-- languages](\/translate\/v2\/translate-reference#supported_languages).
14981499icLanguageHints :: Lens' ImageContext [Text]
14991500icLanguageHints
15001501 = lens _icLanguageHints