| 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.datastore.v1; | 3 library googleapis.datastore.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 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 935 * assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0) | 935 * assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0) |
| 936 * assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0) | 936 * assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0) |
| 937 * assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) | 937 * assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) |
| 938 * assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0) | 938 * assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0) |
| 939 * assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0) | 939 * assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0) |
| 940 * assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) | 940 * assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) |
| 941 * assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0) | 941 * assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0) |
| 942 * assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) | 942 * assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) |
| 943 * assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) | 943 * assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) |
| 944 * assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) | 944 * assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) |
| 945 * |
| 946 * The code in logs/storage/validator/logs_validator_traits.cc treats this type |
| 947 * as if it were annotated as ST_LOCATION. |
| 945 */ | 948 */ |
| 946 class LatLng { | 949 class LatLng { |
| 947 /** The latitude in degrees. It must be in the range [-90.0, +90.0]. */ | 950 /** The latitude in degrees. It must be in the range [-90.0, +90.0]. */ |
| 948 core.double latitude; | 951 core.double latitude; |
| 949 /** The longitude in degrees. It must be in the range [-180.0, +180.0]. */ | 952 /** The longitude in degrees. It must be in the range [-180.0, +180.0]. */ |
| 950 core.double longitude; | 953 core.double longitude; |
| 951 | 954 |
| 952 LatLng(); | 955 LatLng(); |
| 953 | 956 |
| 954 LatLng.fromJson(core.Map _json) { | 957 LatLng.fromJson(core.Map _json) { |
| (...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1989 } | 1992 } |
| 1990 if (stringValue != null) { | 1993 if (stringValue != null) { |
| 1991 _json["stringValue"] = stringValue; | 1994 _json["stringValue"] = stringValue; |
| 1992 } | 1995 } |
| 1993 if (timestampValue != null) { | 1996 if (timestampValue != null) { |
| 1994 _json["timestampValue"] = timestampValue; | 1997 _json["timestampValue"] = timestampValue; |
| 1995 } | 1998 } |
| 1996 return _json; | 1999 return _json; |
| 1997 } | 2000 } |
| 1998 } | 2001 } |
| OLD | NEW |