Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(515)

Side by Side Diff: discovery/googleapis/vision__v1.json

Issue 2649893002: Api-roll 44: 2017-01-23 (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « discovery/googleapis/storage__v1.json ('k') | discovery/googleapis/youtubeAnalytics__v1.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "auth": { 2 "auth": {
3 "oauth2": { 3 "oauth2": {
4 "scopes": { 4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-platform": { 5 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "View and manage your data across Google Clou d Platform services" 6 "description": "View and manage your data across Google Clou d Platform services"
7 } 7 }
8 } 8 }
9 } 9 }
10 }, 10 },
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 "response": { 129 "response": {
130 "$ref": "BatchAnnotateImagesResponse" 130 "$ref": "BatchAnnotateImagesResponse"
131 }, 131 },
132 "scopes": [ 132 "scopes": [
133 "https://www.googleapis.com/auth/cloud-platform" 133 "https://www.googleapis.com/auth/cloud-platform"
134 ] 134 ]
135 } 135 }
136 } 136 }
137 } 137 }
138 }, 138 },
139 "revision": "20161128", 139 "revision": "20170112",
140 "rootUrl": "https://vision.googleapis.com/", 140 "rootUrl": "https://vision.googleapis.com/",
141 "schemas": { 141 "schemas": {
142 "ImageSource": { 142 "ImageSource": {
143 "description": "External image source (Google Cloud Storage image lo cation).", 143 "description": "External image source (Google Cloud Storage image lo cation).",
144 "id": "ImageSource", 144 "id": "ImageSource",
145 "properties": { 145 "properties": {
146 "gcsImageUri": { 146 "gcsImageUri": {
147 "description": "Google Cloud Storage image URI, which must b e in the following form:\n`gs://bucket_name/object_name` (for details, see\n[Goo gle Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference- uris)).\nNOTE: Cloud Storage object versioning is not supported.", 147 "description": "Google Cloud Storage image URI, which must b e in the following form:\n`gs://bucket_name/object_name` (for details, see\n[Goo gle Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference- uris)).\nNOTE: Cloud Storage object versioning is not supported.",
148 "type": "string" 148 "type": "string"
149 } 149 }
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 "id": "ImageProperties", 904 "id": "ImageProperties",
905 "properties": { 905 "properties": {
906 "dominantColors": { 906 "dominantColors": {
907 "$ref": "DominantColorsAnnotation", 907 "$ref": "DominantColorsAnnotation",
908 "description": "If present, dominant colors completed succes sfully." 908 "description": "If present, dominant colors completed succes sfully."
909 } 909 }
910 }, 910 },
911 "type": "object" 911 "type": "object"
912 }, 912 },
913 "LatLng": { 913 "LatLng": {
914 "description": "An object representing a latitude/longitude pair. Th is is expressed as a pair\nof doubles representing degrees latitude and degrees longitude. Unless\nspecified otherwise, this must conform to the\n<a href=\"http ://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf\">WGS84\nstandard</a>. Values must be within normalized ranges.\n\nExample of normalization code in Python:\n \n def NormalizeLongitude(longitude):\n \"\"\"Wraps decimal degrees long itude to [-180.0, 180.0].\"\"\"\n q, r = divmod(longitude, 360.0)\n if r > 180.0 or (r == 180.0 and q <= -1.0):\n return r - 360.0\n retur n r\n\n def NormalizeLatLng(latitude, longitude):\n \"\"\"Wraps decimal degrees latitude and longitude to\n [-90.0, 90.0] and [-180.0, 180.0], resp ectively.\"\"\"\n r = latitude % 360.0\n if r <= 90.0:\n return r, NormalizeLongitude(longitude)\n elif r >= 270.0:\n return r - 36 0, NormalizeLongitude(longitude)\n else:\n return 180 - r, Normalize Longitude(longitude + 180.0)\n\n assert 180.0 == NormalizeLongitude(180.0)\n assert -180.0 == NormalizeLongitude(-180.0)\n assert -179.0 == NormalizeLo ngitude(181.0)\n assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)\n assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)\n assert (85.0, 180.0) == Normali zeLatLng(95.0, 0.0)\n assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)\ n assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)\n assert (-90.0, -10. 0) == NormalizeLatLng(-90.0, -10.0)\n assert (0.0, -170.0) == NormalizeLatLng (-180.0, 10.0)\n assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)\n as sert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)\n assert (90.0, 10.0) == N ormalizeLatLng(-270.0, 10.0)", 914 "description": "An object representing a latitude/longitude pair. Th is is expressed as a pair\nof doubles representing degrees latitude and degrees longitude. Unless\nspecified otherwise, this must conform to the\n<a href=\"http ://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf\">WGS84\nstandard</a>. Values must be within normalized ranges.\n\nExample of normalization code in Python:\n \n def NormalizeLongitude(longitude):\n \"\"\"Wraps decimal degrees long itude to [-180.0, 180.0].\"\"\"\n q, r = divmod(longitude, 360.0)\n if r > 180.0 or (r == 180.0 and q <= -1.0):\n return r - 360.0\n retur n r\n\n def NormalizeLatLng(latitude, longitude):\n \"\"\"Wraps decimal degrees latitude and longitude to\n [-90.0, 90.0] and [-180.0, 180.0], resp ectively.\"\"\"\n r = latitude % 360.0\n if r <= 90.0:\n return r, NormalizeLongitude(longitude)\n elif r >= 270.0:\n return r - 36 0, NormalizeLongitude(longitude)\n else:\n return 180 - r, Normalize Longitude(longitude + 180.0)\n\n assert 180.0 == NormalizeLongitude(180.0)\n assert -180.0 == NormalizeLongitude(-180.0)\n assert -179.0 == NormalizeLo ngitude(181.0)\n assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)\n assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)\n assert (85.0, 180.0) == Normali zeLatLng(95.0, 0.0)\n assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)\ n assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)\n assert (-90.0, -10. 0) == NormalizeLatLng(-90.0, -10.0)\n assert (0.0, -170.0) == NormalizeLatLng (-180.0, 10.0)\n assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)\n as sert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)\n assert (90.0, 10.0) == N ormalizeLatLng(-270.0, 10.0)\n\nThe code in logs/storage/validator/logs_validato r_traits.cc treats this type\nas if it were annotated as ST_LOCATION.",
915 "id": "LatLng", 915 "id": "LatLng",
916 "properties": { 916 "properties": {
917 "latitude": { 917 "latitude": {
918 "description": "The latitude in degrees. It must be in the r ange [-90.0, +90.0].", 918 "description": "The latitude in degrees. It must be in the r ange [-90.0, +90.0].",
919 "format": "double", 919 "format": "double",
920 "type": "number" 920 "type": "number"
921 }, 921 },
922 "longitude": { 922 "longitude": {
923 "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].", 923 "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",
924 "format": "double", 924 "format": "double",
(...skipping 22 matching lines...) Expand all
947 "type": "number" 947 "type": "number"
948 } 948 }
949 }, 949 },
950 "type": "object" 950 "type": "object"
951 } 951 }
952 }, 952 },
953 "servicePath": "", 953 "servicePath": "",
954 "title": "Google Cloud Vision API", 954 "title": "Google Cloud Vision API",
955 "version": "v1" 955 "version": "v1"
956 } 956 }
OLDNEW
« no previous file with comments | « discovery/googleapis/storage__v1.json ('k') | discovery/googleapis/youtubeAnalytics__v1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698