| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.vision.v1; | 3 library googleapis.vision.v1; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| (...skipping 1894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1905 * results in its response, the status of those operations should be | 1905 * results in its response, the status of those operations should be |
| 1906 * represented directly using the `Status` message. | 1906 * represented directly using the `Status` message. |
| 1907 * | 1907 * |
| 1908 * - Logging. If some API errors are stored in logs, the message `Status` could | 1908 * - Logging. If some API errors are stored in logs, the message `Status` could |
| 1909 * be used directly after any stripping needed for security/privacy reasons. | 1909 * be used directly after any stripping needed for security/privacy reasons. |
| 1910 */ | 1910 */ |
| 1911 class Status { | 1911 class Status { |
| 1912 /** The status code, which should be an enum value of google.rpc.Code. */ | 1912 /** The status code, which should be an enum value of google.rpc.Code. */ |
| 1913 core.int code; | 1913 core.int code; |
| 1914 /** | 1914 /** |
| 1915 * A list of messages that carry the error details. There will be a | 1915 * A list of messages that carry the error details. There is a common set of |
| 1916 * common set of message types for APIs to use. | 1916 * message types for APIs to use. |
| 1917 * | 1917 * |
| 1918 * The values for Object must be JSON objects. It can consist of `num`, | 1918 * The values for Object must be JSON objects. It can consist of `num`, |
| 1919 * `String`, `bool` and `null` as well as `Map` and `List` values. | 1919 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 1920 */ | 1920 */ |
| 1921 core.List<core.Map<core.String, core.Object>> details; | 1921 core.List<core.Map<core.String, core.Object>> details; |
| 1922 /** | 1922 /** |
| 1923 * A developer-facing error message, which should be in English. Any | 1923 * A developer-facing error message, which should be in English. Any |
| 1924 * user-facing error message should be localized and sent in the | 1924 * user-facing error message should be localized and sent in the |
| 1925 * google.rpc.Status.details field, or localized by the client. | 1925 * google.rpc.Status.details field, or localized by the client. |
| 1926 */ | 1926 */ |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2327 } | 2327 } |
| 2328 if (property != null) { | 2328 if (property != null) { |
| 2329 _json["property"] = (property).toJson(); | 2329 _json["property"] = (property).toJson(); |
| 2330 } | 2330 } |
| 2331 if (symbols != null) { | 2331 if (symbols != null) { |
| 2332 _json["symbols"] = symbols.map((value) => (value).toJson()).toList(); | 2332 _json["symbols"] = symbols.map((value) => (value).toJson()).toList(); |
| 2333 } | 2333 } |
| 2334 return _json; | 2334 return _json; |
| 2335 } | 2335 } |
| 2336 } | 2336 } |
| OLD | NEW |