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

Side by Side Diff: generated/googleapis_beta/lib/toolresults/v1beta3.dart

Issue 2039113004: Api-roll 37: 2016-06-06 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
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_beta.toolresults.v1beta3; 3 library googleapis_beta.toolresults.v1beta3;
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:crypto/crypto.dart' as crypto;
11 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
12 11
13 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
14 ApiRequestError, DetailedApiRequestError; 13 ApiRequestError, DetailedApiRequestError;
15 14
16 const core.String USER_AGENT = 'dart-api-client toolresults/v1beta3'; 15 const core.String USER_AGENT = 'dart-api-client toolresults/v1beta3';
17 16
18 /** Reads and publishes results from Cloud Test Lab. */ 17 /** Reads and publishes results from Cloud Test Lab. */
19 class ToolresultsApi { 18 class ToolresultsApi {
20 /** View and manage your data across Google Cloud Platform services */ 19 /** View and manage your data across Google Cloud Platform services */
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 * message [google.protobuf.Duration][]): 1167 * message [google.protobuf.Duration][]):
1169 * 1168 *
1170 * { "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" 1169 * { "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s"
1171 * } 1170 * }
1172 */ 1171 */
1173 class Any { 1172 class Any {
1174 /** 1173 /**
1175 * A URL/resource name whose content describes the type of the serialized 1174 * A URL/resource name whose content describes the type of the serialized
1176 * protocol buffer message. 1175 * protocol buffer message.
1177 * 1176 *
1178 * For URLs which use the schema `http`, `https`, or no schema, the following 1177 * For URLs which use the scheme `http`, `https`, or no scheme, the following
1179 * restrictions and interpretations apply: 1178 * restrictions and interpretations apply:
1180 * 1179 *
1181 * * If no schema is provided, `https` is assumed. * The last segment of the 1180 * * If no scheme is provided, `https` is assumed. * The last segment of the
1182 * URL's path must represent the fully qualified name of the type (as in 1181 * URL's path must represent the fully qualified name of the type (as in
1183 * `path/google.protobuf.Duration`). The name should be in a canonical form 1182 * `path/google.protobuf.Duration`). The name should be in a canonical form
1184 * (e.g., leading "." is not accepted). * An HTTP GET on the URL must yield a 1183 * (e.g., leading "." is not accepted). * An HTTP GET on the URL must yield a
1185 * [google.protobuf.Type][] value in binary format, or produce an error. * 1184 * [google.protobuf.Type][] value in binary format, or produce an error. *
1186 * Applications are allowed to cache lookup results based on the URL, or have 1185 * Applications are allowed to cache lookup results based on the URL, or have
1187 * them precompiled into a binary to avoid any lookup. Therefore, binary 1186 * them precompiled into a binary to avoid any lookup. Therefore, binary
1188 * compatibility needs to be preserved on changes to types. (Use versioned 1187 * compatibility needs to be preserved on changes to types. (Use versioned
1189 * type names to manage breaking changes.) 1188 * type names to manage breaking changes.)
1190 * 1189 *
1191 * Schemas other than `http`, `https` (or the empty schema) might be used with 1190 * Schemes other than `http`, `https` (or the empty scheme) might be used with
1192 * implementation specific semantics. 1191 * implementation specific semantics.
1193 */ 1192 */
1194 core.String typeUrl; 1193 core.String typeUrl;
1195 /** 1194 /**
1196 * Must be a valid serialized protocol buffer of the above specified type. 1195 * Must be a valid serialized protocol buffer of the above specified type.
1197 */ 1196 */
1198 core.String value; 1197 core.String value;
1199 core.List<core.int> get valueAsBytes { 1198 core.List<core.int> get valueAsBytes {
1200 return crypto.CryptoUtils.base64StringToBytes(value); 1199 return convert.BASE64.decode(value);
1201 } 1200 }
1202 1201
1203 void set valueAsBytes(core.List<core.int> _bytes) { 1202 void set valueAsBytes(core.List<core.int> _bytes) {
1204 value = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); 1203 value = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", " -");
1205 } 1204 }
1206 1205
1207 Any(); 1206 Any();
1208 1207
1209 Any.fromJson(core.Map _json) { 1208 Any.fromJson(core.Map _json) {
1210 if (_json.containsKey("typeUrl")) { 1209 if (_json.containsKey("typeUrl")) {
1211 typeUrl = _json["typeUrl"]; 1210 typeUrl = _json["typeUrl"];
1212 } 1211 }
1213 if (_json.containsKey("value")) { 1212 if (_json.containsKey("value")) {
1214 value = _json["value"]; 1213 value = _json["value"];
(...skipping 1595 matching lines...) Expand 10 before | Expand all | Expand 10 after
2810 * The thumbnail file itself. 2809 * The thumbnail file itself.
2811 * 2810 *
2812 * That is, the bytes here are precisely the bytes that make up the thumbnail 2811 * That is, the bytes here are precisely the bytes that make up the thumbnail
2813 * file; they can be served as an image as-is (with the appropriate content 2812 * file; they can be served as an image as-is (with the appropriate content
2814 * type.) 2813 * type.)
2815 * 2814 *
2816 * Always set. 2815 * Always set.
2817 */ 2816 */
2818 core.String data; 2817 core.String data;
2819 core.List<core.int> get dataAsBytes { 2818 core.List<core.int> get dataAsBytes {
2820 return crypto.CryptoUtils.base64StringToBytes(data); 2819 return convert.BASE64.decode(data);
2821 } 2820 }
2822 2821
2823 void set dataAsBytes(core.List<core.int> _bytes) { 2822 void set dataAsBytes(core.List<core.int> _bytes) {
2824 data = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); 2823 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- ");
2825 } 2824 }
2826 /** 2825 /**
2827 * The height of the thumbnail, in pixels. 2826 * The height of the thumbnail, in pixels.
2828 * 2827 *
2829 * Always set. 2828 * Always set.
2830 */ 2829 */
2831 core.int heightPx; 2830 core.int heightPx;
2832 /** 2831 /**
2833 * The width of the thumbnail, in pixels. 2832 * The width of the thumbnail, in pixels.
2834 * 2833 *
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
3136 } 3135 }
3137 if (output != null) { 3136 if (output != null) {
3138 _json["output"] = (output).toJson(); 3137 _json["output"] = (output).toJson();
3139 } 3138 }
3140 if (testCase != null) { 3139 if (testCase != null) {
3141 _json["testCase"] = (testCase).toJson(); 3140 _json["testCase"] = (testCase).toJson();
3142 } 3141 }
3143 return _json; 3142 return _json;
3144 } 3143 }
3145 } 3144 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart ('k') | generated/googleapis_beta/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698