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

Side by Side Diff: generated/googleapis_beta/lib/ml/v1beta1.dart

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 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.ml.v1beta1; 3 library googleapis_beta.ml.v1beta1;
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 queryParams: _queryParams, 80 queryParams: _queryParams,
81 uploadOptions: _uploadOptions, 81 uploadOptions: _uploadOptions,
82 uploadMedia: _uploadMedia, 82 uploadMedia: _uploadMedia,
83 downloadOptions: _downloadOptions); 83 downloadOptions: _downloadOptions);
84 return _response.then((data) => new GoogleCloudMlV1beta1GetConfigResponse.fr omJson(data)); 84 return _response.then((data) => new GoogleCloudMlV1beta1GetConfigResponse.fr omJson(data));
85 } 85 }
86 86
87 /** 87 /**
88 * Performs prediction on the data in the request. 88 * Performs prediction on the data in the request.
89 * 89 *
90 * Responses are very similar to requests. There are two top-level fields, 90 * **** REMOVE FROM GENERATED DOCUMENTATION
91 * each of which are JSON lists:
92 *
93 * <dl>
94 * <dt>predictions</dt>
95 * <dd>The list of predictions, one per instance in the request.</dd>
96 * <dt>error</dt>
97 * <dd>An error message returned instead of a prediction list if any
98 * instance produced an error.</dd>
99 * </dl>
100 *
101 * If the call is successful, the response body will contain one prediction
102 * entry per instance in the request body. If prediction fails for any
103 * instance, the response body will contain no predictions and will contian
104 * a single error entry instead.
105 *
106 * Even though there is one prediction per instance, the format of a
107 * prediction is not directly related to the format of an instance.
108 * Predictions take whatever format is specified in the outputs collection
109 * defined in the model. The collection of predictions is returned in a JSON
110 * list. Each member of the list can be a simple value, a list, or a JSON
111 * object of any complexity. If your model has more than one output tensor,
112 * each prediction will be a JSON object containing a name/value pair for each
113 * output. The names identify the output aliases in the graph.
114 *
115 * The following examples show some possible responses:
116 *
117 * A simple set of predictions for three input instances, where each
118 * prediction is an integer value:
119 * <pre>
120 * {"predictions": [5, 4, 3]}
121 * </pre>
122 * A more complex set of predictions, each containing two named values that
123 * correspond to output tensors, named **label** and **scores** respectively.
124 * The value of **label** is the predicted category ("car" or "beach") and
125 * **scores** contains a list of probabilities for that instance across the
126 * possible categories.
127 * <pre>
128 * {"predictions": [{"label": "beach", "scores": [0.1, 0.9]},
129 * {"label": "car", "scores": [0.75, 0.25]}]}
130 * </pre>
131 * A response when there is an error processing an input instance:
132 * <pre>
133 * {"error": "Divide by zero"}
134 * </pre>
135 * 91 *
136 * [request] - The metadata request object. 92 * [request] - The metadata request object.
137 * 93 *
138 * Request parameters: 94 * Request parameters:
139 * 95 *
140 * [name] - Required. The resource name of a model or a version. 96 * [name] - Required. The resource name of a model or a version.
141 * 97 *
142 * Authorization: requires `Viewer` role on the parent project. 98 * Authorization: requires `Viewer` role on the parent project.
143 * Value must have pattern "^projects/.+$". 99 * Value must have pattern "^projects/.+$".
144 * 100 *
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 /** 281 /**
326 * Lists the jobs in the project. 282 * Lists the jobs in the project.
327 * 283 *
328 * Request parameters: 284 * Request parameters:
329 * 285 *
330 * [parent] - Required. The name of the project for which to list jobs. 286 * [parent] - Required. The name of the project for which to list jobs.
331 * 287 *
332 * Authorization: requires `Viewer` role on the specified project. 288 * Authorization: requires `Viewer` role on the specified project.
333 * Value must have pattern "^projects/[^/]+$". 289 * Value must have pattern "^projects/[^/]+$".
334 * 290 *
335 * [pageSize] - Optional. The number of jobs to retrieve per "page" of
336 * results. If there
337 * are more remaining results than this number, the response message will
338 * contain a valid value in the `next_page_token` field.
339 *
340 * The default value is 20, and the maximum page size is 100.
341 *
342 * [filter] - Optional. Specifies the subset of jobs to retrieve. 291 * [filter] - Optional. Specifies the subset of jobs to retrieve.
343 * 292 *
344 * [pageToken] - Optional. A page token to request the next page of results. 293 * [pageToken] - Optional. A page token to request the next page of results.
345 * 294 *
346 * You get the token from the `next_page_token` field of the response from 295 * You get the token from the `next_page_token` field of the response from
347 * the previous call. 296 * the previous call.
348 * 297 *
298 * [pageSize] - Optional. The number of jobs to retrieve per "page" of
299 * results. If there
300 * are more remaining results than this number, the response message will
301 * contain a valid value in the `next_page_token` field.
302 *
303 * The default value is 20, and the maximum page size is 100.
304 *
349 * Completes with a [GoogleCloudMlV1beta1ListJobsResponse]. 305 * Completes with a [GoogleCloudMlV1beta1ListJobsResponse].
350 * 306 *
351 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 307 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
352 * error. 308 * error.
353 * 309 *
354 * If the used [http.Client] completes with an error when making a REST call, 310 * If the used [http.Client] completes with an error when making a REST call,
355 * this method will complete with the same error. 311 * this method will complete with the same error.
356 */ 312 */
357 async.Future<GoogleCloudMlV1beta1ListJobsResponse> list(core.String parent, {c ore.int pageSize, core.String filter, core.String pageToken}) { 313 async.Future<GoogleCloudMlV1beta1ListJobsResponse> list(core.String parent, {c ore.String filter, core.String pageToken, core.int pageSize}) {
358 var _url = null; 314 var _url = null;
359 var _queryParams = new core.Map(); 315 var _queryParams = new core.Map();
360 var _uploadMedia = null; 316 var _uploadMedia = null;
361 var _uploadOptions = null; 317 var _uploadOptions = null;
362 var _downloadOptions = commons.DownloadOptions.Metadata; 318 var _downloadOptions = commons.DownloadOptions.Metadata;
363 var _body = null; 319 var _body = null;
364 320
365 if (parent == null) { 321 if (parent == null) {
366 throw new core.ArgumentError("Parameter parent is required."); 322 throw new core.ArgumentError("Parameter parent is required.");
367 } 323 }
368 if (pageSize != null) {
369 _queryParams["pageSize"] = ["${pageSize}"];
370 }
371 if (filter != null) { 324 if (filter != null) {
372 _queryParams["filter"] = [filter]; 325 _queryParams["filter"] = [filter];
373 } 326 }
374 if (pageToken != null) { 327 if (pageToken != null) {
375 _queryParams["pageToken"] = [pageToken]; 328 _queryParams["pageToken"] = [pageToken];
376 } 329 }
330 if (pageSize != null) {
331 _queryParams["pageSize"] = ["${pageSize}"];
332 }
377 333
378 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/job s'; 334 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/job s';
379 335
380 var _response = _requester.request(_url, 336 var _response = _requester.request(_url,
381 "GET", 337 "GET",
382 body: _body, 338 body: _body,
383 queryParams: _queryParams, 339 queryParams: _queryParams,
384 uploadOptions: _uploadOptions, 340 uploadOptions: _uploadOptions,
385 uploadMedia: _uploadMedia, 341 uploadMedia: _uploadMedia,
386 downloadOptions: _downloadOptions); 342 downloadOptions: _downloadOptions);
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 * Each project can contain multiple models, and each model can have multiple 501 * Each project can contain multiple models, and each model can have multiple
546 * versions. 502 * versions.
547 * 503 *
548 * Request parameters: 504 * Request parameters:
549 * 505 *
550 * [parent] - Required. The name of the project whose models are to be listed. 506 * [parent] - Required. The name of the project whose models are to be listed.
551 * 507 *
552 * Authorization: requires `Viewer` role on the specified project. 508 * Authorization: requires `Viewer` role on the specified project.
553 * Value must have pattern "^projects/[^/]+$". 509 * Value must have pattern "^projects/[^/]+$".
554 * 510 *
511 * [pageToken] - Optional. A page token to request the next page of results.
512 *
513 * You get the token from the `next_page_token` field of the response from
514 * the previous call.
515 *
555 * [pageSize] - Optional. The number of models to retrieve per "page" of 516 * [pageSize] - Optional. The number of models to retrieve per "page" of
556 * results. If there 517 * results. If there
557 * are more remaining results than this number, the response message will 518 * are more remaining results than this number, the response message will
558 * contain a valid value in the `next_page_token` field. 519 * contain a valid value in the `next_page_token` field.
559 * 520 *
560 * The default value is 20, and the maximum page size is 100. 521 * The default value is 20, and the maximum page size is 100.
561 * 522 *
562 * [pageToken] - Optional. A page token to request the next page of results.
563 *
564 * You get the token from the `next_page_token` field of the response from
565 * the previous call.
566 *
567 * Completes with a [GoogleCloudMlV1beta1ListModelsResponse]. 523 * Completes with a [GoogleCloudMlV1beta1ListModelsResponse].
568 * 524 *
569 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 525 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
570 * error. 526 * error.
571 * 527 *
572 * If the used [http.Client] completes with an error when making a REST call, 528 * If the used [http.Client] completes with an error when making a REST call,
573 * this method will complete with the same error. 529 * this method will complete with the same error.
574 */ 530 */
575 async.Future<GoogleCloudMlV1beta1ListModelsResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) { 531 async.Future<GoogleCloudMlV1beta1ListModelsResponse> list(core.String parent, {core.String pageToken, core.int pageSize}) {
576 var _url = null; 532 var _url = null;
577 var _queryParams = new core.Map(); 533 var _queryParams = new core.Map();
578 var _uploadMedia = null; 534 var _uploadMedia = null;
579 var _uploadOptions = null; 535 var _uploadOptions = null;
580 var _downloadOptions = commons.DownloadOptions.Metadata; 536 var _downloadOptions = commons.DownloadOptions.Metadata;
581 var _body = null; 537 var _body = null;
582 538
583 if (parent == null) { 539 if (parent == null) {
584 throw new core.ArgumentError("Parameter parent is required."); 540 throw new core.ArgumentError("Parameter parent is required.");
585 } 541 }
542 if (pageToken != null) {
543 _queryParams["pageToken"] = [pageToken];
544 }
586 if (pageSize != null) { 545 if (pageSize != null) {
587 _queryParams["pageSize"] = ["${pageSize}"]; 546 _queryParams["pageSize"] = ["${pageSize}"];
588 } 547 }
589 if (pageToken != null) {
590 _queryParams["pageToken"] = [pageToken];
591 }
592 548
593 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/mod els'; 549 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/mod els';
594 550
595 var _response = _requester.request(_url, 551 var _response = _requester.request(_url,
596 "GET", 552 "GET",
597 body: _body, 553 body: _body,
598 queryParams: _queryParams, 554 queryParams: _queryParams,
599 uploadOptions: _uploadOptions, 555 uploadOptions: _uploadOptions,
600 uploadMedia: _uploadMedia, 556 uploadMedia: _uploadMedia,
601 downloadOptions: _downloadOptions); 557 downloadOptions: _downloadOptions);
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 * only a limited number of results at a time, you can request that the list 726 * only a limited number of results at a time, you can request that the list
771 * be retrieved in batches (called pages): 727 * be retrieved in batches (called pages):
772 * 728 *
773 * Request parameters: 729 * Request parameters:
774 * 730 *
775 * [parent] - Required. The name of the model for which to list the version. 731 * [parent] - Required. The name of the model for which to list the version.
776 * 732 *
777 * Authorization: requires `Viewer` role on the parent project. 733 * Authorization: requires `Viewer` role on the parent project.
778 * Value must have pattern "^projects/[^/]+/models/[^/]+$". 734 * Value must have pattern "^projects/[^/]+/models/[^/]+$".
779 * 735 *
736 * [pageToken] - Optional. A page token to request the next page of results.
737 *
738 * You get the token from the `next_page_token` field of the response from
739 * the previous call.
740 *
780 * [pageSize] - Optional. The number of versions to retrieve per "page" of 741 * [pageSize] - Optional. The number of versions to retrieve per "page" of
781 * results. If 742 * results. If
782 * there are more remaining results than this number, the response message 743 * there are more remaining results than this number, the response message
783 * will contain a valid value in the `next_page_token` field. 744 * will contain a valid value in the `next_page_token` field.
784 * 745 *
785 * The default value is 20, and the maximum page size is 100. 746 * The default value is 20, and the maximum page size is 100.
786 * 747 *
787 * [pageToken] - Optional. A page token to request the next page of results.
788 *
789 * You get the token from the `next_page_token` field of the response from
790 * the previous call.
791 *
792 * Completes with a [GoogleCloudMlV1beta1ListVersionsResponse]. 748 * Completes with a [GoogleCloudMlV1beta1ListVersionsResponse].
793 * 749 *
794 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 750 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
795 * error. 751 * error.
796 * 752 *
797 * If the used [http.Client] completes with an error when making a REST call, 753 * If the used [http.Client] completes with an error when making a REST call,
798 * this method will complete with the same error. 754 * this method will complete with the same error.
799 */ 755 */
800 async.Future<GoogleCloudMlV1beta1ListVersionsResponse> list(core.String parent , {core.int pageSize, core.String pageToken}) { 756 async.Future<GoogleCloudMlV1beta1ListVersionsResponse> list(core.String parent , {core.String pageToken, core.int pageSize}) {
801 var _url = null; 757 var _url = null;
802 var _queryParams = new core.Map(); 758 var _queryParams = new core.Map();
803 var _uploadMedia = null; 759 var _uploadMedia = null;
804 var _uploadOptions = null; 760 var _uploadOptions = null;
805 var _downloadOptions = commons.DownloadOptions.Metadata; 761 var _downloadOptions = commons.DownloadOptions.Metadata;
806 var _body = null; 762 var _body = null;
807 763
808 if (parent == null) { 764 if (parent == null) {
809 throw new core.ArgumentError("Parameter parent is required."); 765 throw new core.ArgumentError("Parameter parent is required.");
810 } 766 }
767 if (pageToken != null) {
768 _queryParams["pageToken"] = [pageToken];
769 }
811 if (pageSize != null) { 770 if (pageSize != null) {
812 _queryParams["pageSize"] = ["${pageSize}"]; 771 _queryParams["pageSize"] = ["${pageSize}"];
813 } 772 }
814 if (pageToken != null) {
815 _queryParams["pageToken"] = [pageToken];
816 }
817 773
818 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/ver sions'; 774 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/ver sions';
819 775
820 var _response = _requester.request(_url, 776 var _response = _requester.request(_url,
821 "GET", 777 "GET",
822 body: _body, 778 body: _body,
823 queryParams: _queryParams, 779 queryParams: _queryParams,
824 uploadOptions: _uploadOptions, 780 uploadOptions: _uploadOptions,
825 uploadMedia: _uploadMedia, 781 uploadMedia: _uploadMedia,
826 downloadOptions: _downloadOptions); 782 downloadOptions: _downloadOptions);
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 * server doesn't support this method, it returns `UNIMPLEMENTED`. 988 * server doesn't support this method, it returns `UNIMPLEMENTED`.
1033 * 989 *
1034 * NOTE: the `name` binding below allows API services to override the binding 990 * NOTE: the `name` binding below allows API services to override the binding
1035 * to use different resource name schemes, such as `users / * /operations`. 991 * to use different resource name schemes, such as `users / * /operations`.
1036 * 992 *
1037 * Request parameters: 993 * Request parameters:
1038 * 994 *
1039 * [name] - The name of the operation collection. 995 * [name] - The name of the operation collection.
1040 * Value must have pattern "^projects/[^/]+$". 996 * Value must have pattern "^projects/[^/]+$".
1041 * 997 *
1042 * [pageSize] - The standard list page size.
1043 *
1044 * [filter] - The standard list filter. 998 * [filter] - The standard list filter.
1045 * 999 *
1046 * [pageToken] - The standard list page token. 1000 * [pageToken] - The standard list page token.
1047 * 1001 *
1002 * [pageSize] - The standard list page size.
1003 *
1048 * Completes with a [GoogleLongrunningListOperationsResponse]. 1004 * Completes with a [GoogleLongrunningListOperationsResponse].
1049 * 1005 *
1050 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1006 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1051 * error. 1007 * error.
1052 * 1008 *
1053 * If the used [http.Client] completes with an error when making a REST call, 1009 * If the used [http.Client] completes with an error when making a REST call,
1054 * this method will complete with the same error. 1010 * this method will complete with the same error.
1055 */ 1011 */
1056 async.Future<GoogleLongrunningListOperationsResponse> list(core.String name, { core.int pageSize, core.String filter, core.String pageToken}) { 1012 async.Future<GoogleLongrunningListOperationsResponse> list(core.String name, { core.String filter, core.String pageToken, core.int pageSize}) {
1057 var _url = null; 1013 var _url = null;
1058 var _queryParams = new core.Map(); 1014 var _queryParams = new core.Map();
1059 var _uploadMedia = null; 1015 var _uploadMedia = null;
1060 var _uploadOptions = null; 1016 var _uploadOptions = null;
1061 var _downloadOptions = commons.DownloadOptions.Metadata; 1017 var _downloadOptions = commons.DownloadOptions.Metadata;
1062 var _body = null; 1018 var _body = null;
1063 1019
1064 if (name == null) { 1020 if (name == null) {
1065 throw new core.ArgumentError("Parameter name is required."); 1021 throw new core.ArgumentError("Parameter name is required.");
1066 } 1022 }
1067 if (pageSize != null) {
1068 _queryParams["pageSize"] = ["${pageSize}"];
1069 }
1070 if (filter != null) { 1023 if (filter != null) {
1071 _queryParams["filter"] = [filter]; 1024 _queryParams["filter"] = [filter];
1072 } 1025 }
1073 if (pageToken != null) { 1026 if (pageToken != null) {
1074 _queryParams["pageToken"] = [pageToken]; 1027 _queryParams["pageToken"] = [pageToken];
1075 } 1028 }
1029 if (pageSize != null) {
1030 _queryParams["pageSize"] = ["${pageSize}"];
1031 }
1076 1032
1077 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + '/opera tions'; 1033 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + '/opera tions';
1078 1034
1079 var _response = _requester.request(_url, 1035 var _response = _requester.request(_url,
1080 "GET", 1036 "GET",
1081 body: _body, 1037 body: _body,
1082 queryParams: _queryParams, 1038 queryParams: _queryParams,
1083 uploadOptions: _uploadOptions, 1039 uploadOptions: _uploadOptions,
1084 uploadMedia: _uploadMedia, 1040 uploadMedia: _uploadMedia,
1085 downloadOptions: _downloadOptions); 1041 downloadOptions: _downloadOptions);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
1161 if (contentType != null) { 1117 if (contentType != null) {
1162 _json["contentType"] = contentType; 1118 _json["contentType"] = contentType;
1163 } 1119 }
1164 if (data != null) { 1120 if (data != null) {
1165 _json["data"] = data; 1121 _json["data"] = data;
1166 } 1122 }
1167 return _json; 1123 return _json;
1168 } 1124 }
1169 } 1125 }
1170 1126
1127 /** Represents the metadata of the long-running operation. */
1128 class GoogleCloudMlV1OperationMetadata {
1129 /** The time the operation was submitted. */
1130 core.String createTime;
1131 /** The time operation processing completed. */
1132 core.String endTime;
1133 /** Indicates whether a request to cancel this operation has been made. */
1134 core.bool isCancellationRequested;
1135 /** Contains the name of the model associated with the operation. */
1136 core.String modelName;
1137 /**
1138 * The operation type.
1139 * Possible string values are:
1140 * - "OPERATION_TYPE_UNSPECIFIED" : Unspecified operation type.
1141 * - "CREATE_VERSION" : An operation to create a new version.
1142 * - "DELETE_VERSION" : An operation to delete an existing version.
1143 * - "DELETE_MODEL" : An operation to delete an existing model.
1144 */
1145 core.String operationType;
1146 /** The time operation processing started. */
1147 core.String startTime;
1148 /** Contains the version associated with the operation. */
1149 GoogleCloudMlV1Version version;
1150
1151 GoogleCloudMlV1OperationMetadata();
1152
1153 GoogleCloudMlV1OperationMetadata.fromJson(core.Map _json) {
1154 if (_json.containsKey("createTime")) {
1155 createTime = _json["createTime"];
1156 }
1157 if (_json.containsKey("endTime")) {
1158 endTime = _json["endTime"];
1159 }
1160 if (_json.containsKey("isCancellationRequested")) {
1161 isCancellationRequested = _json["isCancellationRequested"];
1162 }
1163 if (_json.containsKey("modelName")) {
1164 modelName = _json["modelName"];
1165 }
1166 if (_json.containsKey("operationType")) {
1167 operationType = _json["operationType"];
1168 }
1169 if (_json.containsKey("startTime")) {
1170 startTime = _json["startTime"];
1171 }
1172 if (_json.containsKey("version")) {
1173 version = new GoogleCloudMlV1Version.fromJson(_json["version"]);
1174 }
1175 }
1176
1177 core.Map toJson() {
1178 var _json = new core.Map();
1179 if (createTime != null) {
1180 _json["createTime"] = createTime;
1181 }
1182 if (endTime != null) {
1183 _json["endTime"] = endTime;
1184 }
1185 if (isCancellationRequested != null) {
1186 _json["isCancellationRequested"] = isCancellationRequested;
1187 }
1188 if (modelName != null) {
1189 _json["modelName"] = modelName;
1190 }
1191 if (operationType != null) {
1192 _json["operationType"] = operationType;
1193 }
1194 if (startTime != null) {
1195 _json["startTime"] = startTime;
1196 }
1197 if (version != null) {
1198 _json["version"] = (version).toJson();
1199 }
1200 return _json;
1201 }
1202 }
1203
1204 /**
1205 * Represents a version of the model.
1206 *
1207 * Each version is a trained model deployed in the cloud, ready to handle
1208 * prediction requests. A model can have multiple versions. You can get
1209 * information about all of the versions of a given model by calling
1210 * [projects.models.versions.list](/ml/reference/rest/v1/projects.models.version s/list).
1211 */
1212 class GoogleCloudMlV1Version {
1213 /** Output only. The time the version was created. */
1214 core.String createTime;
1215 /**
1216 * Required. The Google Cloud Storage location of the trained model used to
1217 * create the version. See the
1218 * [overview of model deployment](/ml/docs/concepts/deployment-overview) for
1219 * more informaiton.
1220 *
1221 * When passing Version to
1222 * [projects.models.versions.create](/ml/reference/rest/v1/projects.models.ver sions/create)
1223 * the model service uses the specified location as the source of the model.
1224 * Once deployed, the model version is hosted by the prediction service, so
1225 * this location is useful only as a historical record.
1226 */
1227 core.String deploymentUri;
1228 /**
1229 * Optional. The description specified for the version when it was created.
1230 */
1231 core.String description;
1232 /**
1233 * Output only. If true, this version will be used to handle prediction
1234 * requests that do not specify a version.
1235 *
1236 * You can change the default version by calling
1237 * [projects.methods.versions.setDefault](/ml/reference/rest/v1/projects.model s.versions/setDefault).
1238 */
1239 core.bool isDefault;
1240 /** Output only. The time the version was last used for prediction. */
1241 core.String lastUseTime;
1242 /**
1243 * Required.The name specified for the version when it was created.
1244 *
1245 * The version name must be unique within the model it is created in.
1246 */
1247 core.String name;
1248 /**
1249 * Optional. The Google Cloud ML runtime version to use for this deployment.
1250 * If not set, Google Cloud ML will choose a version.
1251 */
1252 core.String runtimeVersion;
1253
1254 GoogleCloudMlV1Version();
1255
1256 GoogleCloudMlV1Version.fromJson(core.Map _json) {
1257 if (_json.containsKey("createTime")) {
1258 createTime = _json["createTime"];
1259 }
1260 if (_json.containsKey("deploymentUri")) {
1261 deploymentUri = _json["deploymentUri"];
1262 }
1263 if (_json.containsKey("description")) {
1264 description = _json["description"];
1265 }
1266 if (_json.containsKey("isDefault")) {
1267 isDefault = _json["isDefault"];
1268 }
1269 if (_json.containsKey("lastUseTime")) {
1270 lastUseTime = _json["lastUseTime"];
1271 }
1272 if (_json.containsKey("name")) {
1273 name = _json["name"];
1274 }
1275 if (_json.containsKey("runtimeVersion")) {
1276 runtimeVersion = _json["runtimeVersion"];
1277 }
1278 }
1279
1280 core.Map toJson() {
1281 var _json = new core.Map();
1282 if (createTime != null) {
1283 _json["createTime"] = createTime;
1284 }
1285 if (deploymentUri != null) {
1286 _json["deploymentUri"] = deploymentUri;
1287 }
1288 if (description != null) {
1289 _json["description"] = description;
1290 }
1291 if (isDefault != null) {
1292 _json["isDefault"] = isDefault;
1293 }
1294 if (lastUseTime != null) {
1295 _json["lastUseTime"] = lastUseTime;
1296 }
1297 if (name != null) {
1298 _json["name"] = name;
1299 }
1300 if (runtimeVersion != null) {
1301 _json["runtimeVersion"] = runtimeVersion;
1302 }
1303 return _json;
1304 }
1305 }
1306
1171 /** An observed value of a metric. */ 1307 /** An observed value of a metric. */
1172 class GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric { 1308 class GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric {
1173 /** The objective value at this training step. */ 1309 /** The objective value at this training step. */
1174 core.double objectiveValue; 1310 core.double objectiveValue;
1175 /** The global training step for this metric. */ 1311 /** The global training step for this metric. */
1176 core.String trainingStep; 1312 core.String trainingStep;
1177 1313
1178 GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(); 1314 GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric();
1179 1315
1180 GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric.fromJson(core.Map _json) { 1316 GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric.fromJson(core.Map _json) {
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1300 * `MAXIMIZE` and `MINIMIZE`. 1436 * `MAXIMIZE` and `MINIMIZE`.
1301 * 1437 *
1302 * Defaults to `MAXIMIZE`. 1438 * Defaults to `MAXIMIZE`.
1303 * Possible string values are: 1439 * Possible string values are:
1304 * - "GOAL_TYPE_UNSPECIFIED" : Goal Type will default to maximize. 1440 * - "GOAL_TYPE_UNSPECIFIED" : Goal Type will default to maximize.
1305 * - "MAXIMIZE" : Maximize the goal metric. 1441 * - "MAXIMIZE" : Maximize the goal metric.
1306 * - "MINIMIZE" : Minimize the goal metric. 1442 * - "MINIMIZE" : Minimize the goal metric.
1307 */ 1443 */
1308 core.String goal; 1444 core.String goal;
1309 /** 1445 /**
1446 * Optional. The Tensorflow summary tag name to use for optimizing trials. For
1447 * current versions of Tensorflow, this tag name should exactly match what is
1448 * shown in Tensorboard, including all scopes. For versions of Tensorflow
1449 * prior to 0.12, this should be only the tag passed to tf.Summary.
1450 * By default, "training/hptuning/metric" will be used.
1451 */
1452 core.String hyperparameterMetricTag;
1453 /**
1310 * Optional. The number of training trials to run concurrently. 1454 * Optional. The number of training trials to run concurrently.
1311 * You can reduce the time it takes to perform hyperparameter tuning by adding 1455 * You can reduce the time it takes to perform hyperparameter tuning by adding
1312 * trials in parallel. However, each trail only benefits from the information 1456 * trials in parallel. However, each trail only benefits from the information
1313 * gained in completed trials. That means that a trial does not get access to 1457 * gained in completed trials. That means that a trial does not get access to
1314 * the results of trials running at the same time, which could reduce the 1458 * the results of trials running at the same time, which could reduce the
1315 * quality of the overall optimization. 1459 * quality of the overall optimization.
1316 * 1460 *
1317 * Each trial will use the same scale tier and machine types. 1461 * Each trial will use the same scale tier and machine types.
1318 * 1462 *
1319 * Defaults to one. 1463 * Defaults to one.
1320 */ 1464 */
1321 core.int maxParallelTrials; 1465 core.int maxParallelTrials;
1322 /** 1466 /**
1323 * Optional. How many training trials should be attempted to optimize 1467 * Optional. How many training trials should be attempted to optimize
1324 * the specified hyperparameters. 1468 * the specified hyperparameters.
1325 * 1469 *
1326 * Defaults to one. 1470 * Defaults to one.
1327 */ 1471 */
1328 core.int maxTrials; 1472 core.int maxTrials;
1329 /** Required. The set of parameters to tune. */ 1473 /** Required. The set of parameters to tune. */
1330 core.List<GoogleCloudMlV1beta1ParameterSpec> params; 1474 core.List<GoogleCloudMlV1beta1ParameterSpec> params;
1331 1475
1332 GoogleCloudMlV1beta1HyperparameterSpec(); 1476 GoogleCloudMlV1beta1HyperparameterSpec();
1333 1477
1334 GoogleCloudMlV1beta1HyperparameterSpec.fromJson(core.Map _json) { 1478 GoogleCloudMlV1beta1HyperparameterSpec.fromJson(core.Map _json) {
1335 if (_json.containsKey("goal")) { 1479 if (_json.containsKey("goal")) {
1336 goal = _json["goal"]; 1480 goal = _json["goal"];
1337 } 1481 }
1482 if (_json.containsKey("hyperparameterMetricTag")) {
1483 hyperparameterMetricTag = _json["hyperparameterMetricTag"];
1484 }
1338 if (_json.containsKey("maxParallelTrials")) { 1485 if (_json.containsKey("maxParallelTrials")) {
1339 maxParallelTrials = _json["maxParallelTrials"]; 1486 maxParallelTrials = _json["maxParallelTrials"];
1340 } 1487 }
1341 if (_json.containsKey("maxTrials")) { 1488 if (_json.containsKey("maxTrials")) {
1342 maxTrials = _json["maxTrials"]; 1489 maxTrials = _json["maxTrials"];
1343 } 1490 }
1344 if (_json.containsKey("params")) { 1491 if (_json.containsKey("params")) {
1345 params = _json["params"].map((value) => new GoogleCloudMlV1beta1ParameterS pec.fromJson(value)).toList(); 1492 params = _json["params"].map((value) => new GoogleCloudMlV1beta1ParameterS pec.fromJson(value)).toList();
1346 } 1493 }
1347 } 1494 }
1348 1495
1349 core.Map toJson() { 1496 core.Map toJson() {
1350 var _json = new core.Map(); 1497 var _json = new core.Map();
1351 if (goal != null) { 1498 if (goal != null) {
1352 _json["goal"] = goal; 1499 _json["goal"] = goal;
1353 } 1500 }
1501 if (hyperparameterMetricTag != null) {
1502 _json["hyperparameterMetricTag"] = hyperparameterMetricTag;
1503 }
1354 if (maxParallelTrials != null) { 1504 if (maxParallelTrials != null) {
1355 _json["maxParallelTrials"] = maxParallelTrials; 1505 _json["maxParallelTrials"] = maxParallelTrials;
1356 } 1506 }
1357 if (maxTrials != null) { 1507 if (maxTrials != null) {
1358 _json["maxTrials"] = maxTrials; 1508 _json["maxTrials"] = maxTrials;
1359 } 1509 }
1360 if (params != null) { 1510 if (params != null) {
1361 _json["params"] = params.map((value) => (value).toJson()).toList(); 1511 _json["params"] = params.map((value) => (value).toJson()).toList();
1362 } 1512 }
1363 return _json; 1513 return _json;
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
1590 GoogleCloudMlV1beta1Version defaultVersion; 1740 GoogleCloudMlV1beta1Version defaultVersion;
1591 /** Optional. The description specified for the model when it was created. */ 1741 /** Optional. The description specified for the model when it was created. */
1592 core.String description; 1742 core.String description;
1593 /** 1743 /**
1594 * Required. The name specified for the model when it was created. 1744 * Required. The name specified for the model when it was created.
1595 * 1745 *
1596 * The model name must be unique within the project it is created in. 1746 * The model name must be unique within the project it is created in.
1597 */ 1747 */
1598 core.String name; 1748 core.String name;
1599 /** 1749 /**
1750 * Optional. If true, enables StackDriver Logging for online prediction.
1751 * Default is false.
1752 */
1753 core.bool onlinePredictionLogging;
1754 /**
1600 * Optional. The list of regions where the model is going to be deployed. 1755 * Optional. The list of regions where the model is going to be deployed.
1601 * Currently only one region per model is supported. 1756 * Currently only one region per model is supported.
1602 * Defaults to 'us-central1' if nothing is set. 1757 * Defaults to 'us-central1' if nothing is set.
1603 */ 1758 */
1604 core.List<core.String> regions; 1759 core.List<core.String> regions;
1605 1760
1606 GoogleCloudMlV1beta1Model(); 1761 GoogleCloudMlV1beta1Model();
1607 1762
1608 GoogleCloudMlV1beta1Model.fromJson(core.Map _json) { 1763 GoogleCloudMlV1beta1Model.fromJson(core.Map _json) {
1609 if (_json.containsKey("defaultVersion")) { 1764 if (_json.containsKey("defaultVersion")) {
1610 defaultVersion = new GoogleCloudMlV1beta1Version.fromJson(_json["defaultVe rsion"]); 1765 defaultVersion = new GoogleCloudMlV1beta1Version.fromJson(_json["defaultVe rsion"]);
1611 } 1766 }
1612 if (_json.containsKey("description")) { 1767 if (_json.containsKey("description")) {
1613 description = _json["description"]; 1768 description = _json["description"];
1614 } 1769 }
1615 if (_json.containsKey("name")) { 1770 if (_json.containsKey("name")) {
1616 name = _json["name"]; 1771 name = _json["name"];
1617 } 1772 }
1773 if (_json.containsKey("onlinePredictionLogging")) {
1774 onlinePredictionLogging = _json["onlinePredictionLogging"];
1775 }
1618 if (_json.containsKey("regions")) { 1776 if (_json.containsKey("regions")) {
1619 regions = _json["regions"]; 1777 regions = _json["regions"];
1620 } 1778 }
1621 } 1779 }
1622 1780
1623 core.Map toJson() { 1781 core.Map toJson() {
1624 var _json = new core.Map(); 1782 var _json = new core.Map();
1625 if (defaultVersion != null) { 1783 if (defaultVersion != null) {
1626 _json["defaultVersion"] = (defaultVersion).toJson(); 1784 _json["defaultVersion"] = (defaultVersion).toJson();
1627 } 1785 }
1628 if (description != null) { 1786 if (description != null) {
1629 _json["description"] = description; 1787 _json["description"] = description;
1630 } 1788 }
1631 if (name != null) { 1789 if (name != null) {
1632 _json["name"] = name; 1790 _json["name"] = name;
1633 } 1791 }
1792 if (onlinePredictionLogging != null) {
1793 _json["onlinePredictionLogging"] = onlinePredictionLogging;
1794 }
1634 if (regions != null) { 1795 if (regions != null) {
1635 _json["regions"] = regions; 1796 _json["regions"] = regions;
1636 } 1797 }
1637 return _json; 1798 return _json;
1638 } 1799 }
1639 } 1800 }
1640 1801
1641 /** Represents the metadata of the long-running operation. */ 1802 /** Represents the metadata of the long-running operation. */
1642 class GoogleCloudMlV1beta1OperationMetadata { 1803 class GoogleCloudMlV1beta1OperationMetadata {
1643 /** The time the operation was submitted. */ 1804 /** The time the operation was submitted. */
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
1842 * <dl> 2003 * <dl>
1843 * <dt>instances</dt> 2004 * <dt>instances</dt>
1844 * <dd>A JSON array containing values representing the instances to use for 2005 * <dd>A JSON array containing values representing the instances to use for
1845 * prediction.</dd> 2006 * prediction.</dd>
1846 * </dl> 2007 * </dl>
1847 * 2008 *
1848 * The structure of each element of the instances list is determined by your 2009 * The structure of each element of the instances list is determined by your
1849 * model's input definition. Instances can include named inputs or can contain 2010 * model's input definition. Instances can include named inputs or can contain
1850 * only unlabeled values. 2011 * only unlabeled values.
1851 * 2012 *
1852 * Most data does not include named inputs. Some instances will be simple 2013 * Not all data includes named inputs. Some instances will be simple
1853 * JSON values (boolean, number, or string). However, instances are often lists 2014 * JSON values (boolean, number, or string). However, instances are often lists
1854 * of simple values, or complex nested lists. Here are some examples of request 2015 * of simple values, or complex nested lists. Here are some examples of request
1855 * bodies: 2016 * bodies:
1856 * 2017 *
1857 * CSV data with each row encoded as a string value: 2018 * CSV data with each row encoded as a string value:
1858 * <pre> 2019 * <pre>
1859 * {"instances": ["1.0,true,\\"x\\"", "-2.0,false,\\"y\\""]} 2020 * {"instances": ["1.0,true,\\"x\\"", "-2.0,false,\\"y\\""]}
1860 * </pre> 2021 * </pre>
1861 * Plain text: 2022 * Plain text:
1862 * <pre> 2023 * <pre>
1863 * {"instances": ["the quick brown fox", "la bruja le dio"]} 2024 * {"instances": ["the quick brown fox", "la bruja le dio"]}
1864 * </pre> 2025 * </pre>
1865 * Sentences encoded as lists of words (vectors of strings): 2026 * Sentences encoded as lists of words (vectors of strings):
1866 * <pre> 2027 * <pre>
1867 * {"instances": [["the","quick","brown"], ["la","bruja","le"]]} 2028 * {
2029 * "instances": [
2030 * ["the","quick","brown"],
2031 * ["la","bruja","le"],
2032 * ...
2033 * ]
2034 * }
1868 * </pre> 2035 * </pre>
1869 * Floating point scalar values: 2036 * Floating point scalar values:
1870 * <pre> 2037 * <pre>
1871 * {"instances": [0.0, 1.1, 2.2]} 2038 * {"instances": [0.0, 1.1, 2.2]}
1872 * </pre> 2039 * </pre>
1873 * Vectors of integers: 2040 * Vectors of integers:
1874 * <pre> 2041 * <pre>
1875 * {"instances": [[0, 1, 2], [3, 4, 5],...]} 2042 * {
2043 * "instances": [
2044 * [0, 1, 2],
2045 * [3, 4, 5],
2046 * ...
2047 * ]
2048 * }
1876 * </pre> 2049 * </pre>
1877 * Tensors (in this case, two-dimensional tensors): 2050 * Tensors (in this case, two-dimensional tensors):
1878 * <pre> 2051 * <pre>
1879 * {"instances": [[[0, 1, 2], [3, 4, 5]], ...]} 2052 * {
2053 * "instances": [
2054 * [
2055 * [0, 1, 2],
2056 * [3, 4, 5]
2057 * ],
2058 * ...
2059 * ]
2060 * }
1880 * </pre> 2061 * </pre>
1881 * Images represented as a three-dimensional list. In this encoding scheme the 2062 * Images can be represented different ways. In this encoding scheme the first
1882 * first two dimensions represent the rows and columns of the image, and the 2063 * two dimensions represent the rows and columns of the image, and the third
1883 * third contains the R, G, and B values for each pixel. 2064 * contains lists (vectors) of the R, G, and B values for each pixel.
1884 * <pre> 2065 * <pre>
1885 * {"instances": [[[[138, 30, 66], [130, 20, 56], ...]]]]} 2066 * {
2067 * "instances": [
2068 * [
2069 * [
2070 * [138, 30, 66],
2071 * [130, 20, 56],
2072 * ...
2073 * ],
2074 * [
2075 * [126, 38, 61],
2076 * [122, 24, 57],
2077 * ...
2078 * ],
2079 * ...
2080 * ],
2081 * ...
2082 * ]
2083 * }
1886 * </pre> 2084 * </pre>
1887 * Data must be encoded as UTF-8. If your data uses another character encoding, 2085 * JSON strings must be encoded as UTF-8. To send binary data, you must
1888 * you must base64 encode the data and mark it as binary. To mark a JSON string 2086 * base64-encode the data and mark it as binary. To mark a JSON string
1889 * as binary, replace it with an object with a single attribute named `b`: 2087 * as binary, replace it with a JSON object with a single attribute named `b64`:
1890 * <pre>{"b": "..."} </pre> 2088 * <pre>{"b64": "..."} </pre>
1891 * For example: 2089 * For example:
1892 * 2090 *
1893 * Two Serialized tf.Examples (fake data, for illustrative purposes only): 2091 * Two Serialized tf.Examples (fake data, for illustrative purposes only):
1894 * <pre> 2092 * <pre>
1895 * {"instances": [{"b64": "X5ad6u"}, {"b64": "IA9j4nx"}]} 2093 * {"instances": [{"b64": "X5ad6u"}, {"b64": "IA9j4nx"}]}
1896 * </pre> 2094 * </pre>
1897 * Two JPEG image byte strings (fake data, for illustrative purposes only): 2095 * Two JPEG image byte strings (fake data, for illustrative purposes only):
1898 * <pre> 2096 * <pre>
1899 * {"instances": [{"b64": "ASa8asdf"}, {"b64": "JLK7ljk3"}]} 2097 * {"instances": [{"b64": "ASa8asdf"}, {"b64": "JLK7ljk3"}]}
1900 * </pre> 2098 * </pre>
1901 * If your data includes named references, format each instance as a JSON object 2099 * If your data includes named references, format each instance as a JSON object
1902 * with the named references as the keys: 2100 * with the named references as the keys:
1903 * 2101 *
1904 * JSON input data to be preprocessed: 2102 * JSON input data to be preprocessed:
1905 * <pre> 2103 * <pre>
1906 * {"instances": [{"a": 1.0, "b": true, "c": "x"}, 2104 * {
1907 * {"a": -2.0, "b": false, "c": "y"}]} 2105 * "instances": [
2106 * {
2107 * "a": 1.0,
2108 * "b": true,
2109 * "c": "x"
2110 * },
2111 * {
2112 * "a": -2.0,
2113 * "b": false,
2114 * "c": "y"
2115 * }
2116 * ]
2117 * }
1908 * </pre> 2118 * </pre>
1909 * Some models have an underlying TensorFlow graph that accepts multiple input 2119 * Some models have an underlying TensorFlow graph that accepts multiple input
1910 * tensors. In this case, you should use the names of JSON name/value pairs to 2120 * tensors. In this case, you should use the names of JSON name/value pairs to
1911 * identify the input tensors, as shown in the following exmaples: 2121 * identify the input tensors, as shown in the following exmaples:
1912 * 2122 *
1913 * For a graph with input tensor aliases "tag" (string) and "image" 2123 * For a graph with input tensor aliases "tag" (string) and "image"
1914 * (base64-encoded string): 2124 * (base64-encoded string):
1915 * <pre> 2125 * <pre>
1916 * {"instances": [{"tag": "beach", "image": {"b64": "ASa8asdf"}}, 2126 * {
1917 * {"tag": "car", "image": {"b64": "JLK7ljk3"}}]} 2127 * "instances": [
2128 * {
2129 * "tag": "beach",
2130 * "image": {"b64": "ASa8asdf"}
2131 * },
2132 * {
2133 * "tag": "car",
2134 * "image": {"b64": "JLK7ljk3"}
2135 * }
2136 * ]
2137 * }
1918 * </pre> 2138 * </pre>
1919 * For a graph with input tensor aliases "tag" (string) and "image" 2139 * For a graph with input tensor aliases "tag" (string) and "image"
1920 * (3-dimensional array of 8-bit ints): 2140 * (3-dimensional array of 8-bit ints):
1921 * <pre> 2141 * <pre>
1922 * {"instances": [{"tag": "beach", "image": [[[263, 1, 10], [262, 2, 11], 2142 * {
1923 * ...]]}, 2143 * "instances": [
1924 * {"tag": "car", "image": [[[10, 11, 24], [23, 10, 15], ...]]}]} 2144 * {
2145 * "tag": "beach",
2146 * "image": [
2147 * [
2148 * [138, 30, 66],
2149 * [130, 20, 56],
2150 * ...
2151 * ],
2152 * [
2153 * [126, 38, 61],
2154 * [122, 24, 57],
2155 * ...
2156 * ],
2157 * ...
2158 * ]
2159 * },
2160 * {
2161 * "tag": "car",
2162 * "image": [
2163 * [
2164 * [255, 0, 102],
2165 * [255, 0, 97],
2166 * ...
2167 * ],
2168 * [
2169 * [254, 1, 101],
2170 * [254, 2, 93],
2171 * ...
2172 * ],
2173 * ...
2174 * ]
2175 * },
2176 * ...
2177 * ]
2178 * }
1925 * </pre> 2179 * </pre>
1926 * If the call is successful, the response body will contain one prediction 2180 * If the call is successful, the response body will contain one prediction
1927 * entry per instance in the request body. If prediction fails for any 2181 * entry per instance in the request body. If prediction fails for any
1928 * instance, the response body will contain no predictions and will contian 2182 * instance, the response body will contain no predictions and will contian
1929 * a single error entry instead. 2183 * a single error entry instead.
1930 */ 2184 */
1931 class GoogleCloudMlV1beta1PredictRequest { 2185 class GoogleCloudMlV1beta1PredictRequest {
1932 /** 2186 /**
1933 * 2187 *
1934 * Required. The prediction request body. 2188 * Required. The prediction request body.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1982 */ 2236 */
1983 core.String modelName; 2237 core.String modelName;
1984 /** Required. The output Google Cloud Storage location. */ 2238 /** Required. The output Google Cloud Storage location. */
1985 core.String outputPath; 2239 core.String outputPath;
1986 /** 2240 /**
1987 * Required. The Google Compute Engine region to run the prediction job in. 2241 * Required. The Google Compute Engine region to run the prediction job in.
1988 */ 2242 */
1989 core.String region; 2243 core.String region;
1990 /** 2244 /**
1991 * Optional. The Google Cloud ML runtime version to use for this batch 2245 * Optional. The Google Cloud ML runtime version to use for this batch
1992 * prediction. If not set, Google Cloud ML will choose a version. 2246 * prediction. If not set, Google Cloud ML will pick the runtime version used
2247 * during the CreateVersion request for this model version, or choose the
2248 * latest stable version when model version information is not available
2249 * such as when the model is specified by uri.
1993 */ 2250 */
1994 core.String runtimeVersion; 2251 core.String runtimeVersion;
2252 /** Use this field if you want to specify a GCS path to the model to use. */
2253 core.String uri;
1995 /** 2254 /**
1996 * Use this field if you want to specify a version of the model to use. The 2255 * Use this field if you want to specify a version of the model to use. The
1997 * string is formatted the same way as `model_version`, with the addition 2256 * string is formatted the same way as `model_version`, with the addition
1998 * of the version information: 2257 * of the version information:
1999 * 2258 *
2000 * `"projects/<var>[YOUR_PROJECT]</var>/models/<var>YOUR_MODEL/versions/<var>[ YOUR_VERSION]</var>"` 2259 * `"projects/<var>[YOUR_PROJECT]</var>/models/<var>YOUR_MODEL/versions/<var>[ YOUR_VERSION]</var>"`
2001 */ 2260 */
2002 core.String versionName; 2261 core.String versionName;
2003 2262
2004 GoogleCloudMlV1beta1PredictionInput(); 2263 GoogleCloudMlV1beta1PredictionInput();
(...skipping 13 matching lines...) Expand all
2018 } 2277 }
2019 if (_json.containsKey("outputPath")) { 2278 if (_json.containsKey("outputPath")) {
2020 outputPath = _json["outputPath"]; 2279 outputPath = _json["outputPath"];
2021 } 2280 }
2022 if (_json.containsKey("region")) { 2281 if (_json.containsKey("region")) {
2023 region = _json["region"]; 2282 region = _json["region"];
2024 } 2283 }
2025 if (_json.containsKey("runtimeVersion")) { 2284 if (_json.containsKey("runtimeVersion")) {
2026 runtimeVersion = _json["runtimeVersion"]; 2285 runtimeVersion = _json["runtimeVersion"];
2027 } 2286 }
2287 if (_json.containsKey("uri")) {
2288 uri = _json["uri"];
2289 }
2028 if (_json.containsKey("versionName")) { 2290 if (_json.containsKey("versionName")) {
2029 versionName = _json["versionName"]; 2291 versionName = _json["versionName"];
2030 } 2292 }
2031 } 2293 }
2032 2294
2033 core.Map toJson() { 2295 core.Map toJson() {
2034 var _json = new core.Map(); 2296 var _json = new core.Map();
2035 if (dataFormat != null) { 2297 if (dataFormat != null) {
2036 _json["dataFormat"] = dataFormat; 2298 _json["dataFormat"] = dataFormat;
2037 } 2299 }
2038 if (inputPaths != null) { 2300 if (inputPaths != null) {
2039 _json["inputPaths"] = inputPaths; 2301 _json["inputPaths"] = inputPaths;
2040 } 2302 }
2041 if (maxWorkerCount != null) { 2303 if (maxWorkerCount != null) {
2042 _json["maxWorkerCount"] = maxWorkerCount; 2304 _json["maxWorkerCount"] = maxWorkerCount;
2043 } 2305 }
2044 if (modelName != null) { 2306 if (modelName != null) {
2045 _json["modelName"] = modelName; 2307 _json["modelName"] = modelName;
2046 } 2308 }
2047 if (outputPath != null) { 2309 if (outputPath != null) {
2048 _json["outputPath"] = outputPath; 2310 _json["outputPath"] = outputPath;
2049 } 2311 }
2050 if (region != null) { 2312 if (region != null) {
2051 _json["region"] = region; 2313 _json["region"] = region;
2052 } 2314 }
2053 if (runtimeVersion != null) { 2315 if (runtimeVersion != null) {
2054 _json["runtimeVersion"] = runtimeVersion; 2316 _json["runtimeVersion"] = runtimeVersion;
2055 } 2317 }
2318 if (uri != null) {
2319 _json["uri"] = uri;
2320 }
2056 if (versionName != null) { 2321 if (versionName != null) {
2057 _json["versionName"] = versionName; 2322 _json["versionName"] = versionName;
2058 } 2323 }
2059 return _json; 2324 return _json;
2060 } 2325 }
2061 } 2326 }
2062 2327
2063 /** Represents results of a prediction job. */ 2328 /** Represents results of a prediction job. */
2064 class GoogleCloudMlV1beta1PredictionOutput { 2329 class GoogleCloudMlV1beta1PredictionOutput {
2065 /** The number of data instances which resulted in errors. */ 2330 /** The number of data instances which resulted in errors. */
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
2122 } 2387 }
2123 } 2388 }
2124 2389
2125 /** Represents input parameters for a training job. */ 2390 /** Represents input parameters for a training job. */
2126 class GoogleCloudMlV1beta1TrainingInput { 2391 class GoogleCloudMlV1beta1TrainingInput {
2127 /** Optional. Command line arguments to pass to the program. */ 2392 /** Optional. Command line arguments to pass to the program. */
2128 core.List<core.String> args; 2393 core.List<core.String> args;
2129 /** Optional. The set of Hyperparameters to tune. */ 2394 /** Optional. The set of Hyperparameters to tune. */
2130 GoogleCloudMlV1beta1HyperparameterSpec hyperparameters; 2395 GoogleCloudMlV1beta1HyperparameterSpec hyperparameters;
2131 /** 2396 /**
2397 * Optional. A GCS path in which to store training outputs and other data
2398 * needed for training. This path will be passed to your TensorFlow program as
2399 * the 'job_dir' command-line arg. The benefit of specifying this field is
2400 * that
2401 * Cloud ML will validate the path for use in training.
2402 */
2403 core.String jobDir;
2404 /**
2132 * Optional. Specifies the type of virtual machine to use for your training 2405 * Optional. Specifies the type of virtual machine to use for your training
2133 * job's master worker. 2406 * job's master worker.
2134 * 2407 *
2135 * The following types are supported: 2408 * The following types are supported:
2136 * 2409 *
2137 * <dl> 2410 * <dl>
2138 * <dt>standard</dt> 2411 * <dt>standard</dt>
2139 * <dd> 2412 * <dd>
2140 * A basic machine configuration suitable for training simple models with 2413 * A basic machine configuration suitable for training simple models with
2141 * small to moderate datasets. 2414 * small to moderate datasets.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
2203 core.String runtimeVersion; 2476 core.String runtimeVersion;
2204 /** 2477 /**
2205 * Required. Specifies the machine types, the number of replicas for workers 2478 * Required. Specifies the machine types, the number of replicas for workers
2206 * and parameter servers. 2479 * and parameter servers.
2207 * Possible string values are: 2480 * Possible string values are:
2208 * - "BASIC" : A single worker instance. This tier is suitable for learning 2481 * - "BASIC" : A single worker instance. This tier is suitable for learning
2209 * how to use 2482 * how to use
2210 * Cloud ML, and for experimenting with new models using small datasets. 2483 * Cloud ML, and for experimenting with new models using small datasets.
2211 * - "STANDARD_1" : Many workers and a few parameter servers. 2484 * - "STANDARD_1" : Many workers and a few parameter servers.
2212 * - "PREMIUM_1" : A large number of workers with many parameter servers. 2485 * - "PREMIUM_1" : A large number of workers with many parameter servers.
2486 * - "BASIC_GPU" : A single worker instance with a GPU.
2213 * - "CUSTOM" : The CUSTOM tier is not a set tier, but rather enables you to 2487 * - "CUSTOM" : The CUSTOM tier is not a set tier, but rather enables you to
2214 * use your 2488 * use your
2215 * own cluster specification. When you use this tier, set values to 2489 * own cluster specification. When you use this tier, set values to
2216 * configure your processing cluster according to these guidelines: 2490 * configure your processing cluster according to these guidelines:
2217 * 2491 *
2218 * * You _must_ set `TrainingInput.masterType` to specify the type 2492 * * You _must_ set `TrainingInput.masterType` to specify the type
2219 * of machine to use for your master node. This is the only required 2493 * of machine to use for your master node. This is the only required
2220 * setting. 2494 * setting.
2221 * 2495 *
2222 * * You _may_ set `TrainingInput.workerCount` to specify the number of 2496 * * You _may_ set `TrainingInput.workerCount` to specify the number of
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
2258 2532
2259 GoogleCloudMlV1beta1TrainingInput(); 2533 GoogleCloudMlV1beta1TrainingInput();
2260 2534
2261 GoogleCloudMlV1beta1TrainingInput.fromJson(core.Map _json) { 2535 GoogleCloudMlV1beta1TrainingInput.fromJson(core.Map _json) {
2262 if (_json.containsKey("args")) { 2536 if (_json.containsKey("args")) {
2263 args = _json["args"]; 2537 args = _json["args"];
2264 } 2538 }
2265 if (_json.containsKey("hyperparameters")) { 2539 if (_json.containsKey("hyperparameters")) {
2266 hyperparameters = new GoogleCloudMlV1beta1HyperparameterSpec.fromJson(_jso n["hyperparameters"]); 2540 hyperparameters = new GoogleCloudMlV1beta1HyperparameterSpec.fromJson(_jso n["hyperparameters"]);
2267 } 2541 }
2542 if (_json.containsKey("jobDir")) {
2543 jobDir = _json["jobDir"];
2544 }
2268 if (_json.containsKey("masterType")) { 2545 if (_json.containsKey("masterType")) {
2269 masterType = _json["masterType"]; 2546 masterType = _json["masterType"];
2270 } 2547 }
2271 if (_json.containsKey("packageUris")) { 2548 if (_json.containsKey("packageUris")) {
2272 packageUris = _json["packageUris"]; 2549 packageUris = _json["packageUris"];
2273 } 2550 }
2274 if (_json.containsKey("parameterServerCount")) { 2551 if (_json.containsKey("parameterServerCount")) {
2275 parameterServerCount = _json["parameterServerCount"]; 2552 parameterServerCount = _json["parameterServerCount"];
2276 } 2553 }
2277 if (_json.containsKey("parameterServerType")) { 2554 if (_json.containsKey("parameterServerType")) {
(...skipping 20 matching lines...) Expand all
2298 } 2575 }
2299 2576
2300 core.Map toJson() { 2577 core.Map toJson() {
2301 var _json = new core.Map(); 2578 var _json = new core.Map();
2302 if (args != null) { 2579 if (args != null) {
2303 _json["args"] = args; 2580 _json["args"] = args;
2304 } 2581 }
2305 if (hyperparameters != null) { 2582 if (hyperparameters != null) {
2306 _json["hyperparameters"] = (hyperparameters).toJson(); 2583 _json["hyperparameters"] = (hyperparameters).toJson();
2307 } 2584 }
2585 if (jobDir != null) {
2586 _json["jobDir"] = jobDir;
2587 }
2308 if (masterType != null) { 2588 if (masterType != null) {
2309 _json["masterType"] = masterType; 2589 _json["masterType"] = masterType;
2310 } 2590 }
2311 if (packageUris != null) { 2591 if (packageUris != null) {
2312 _json["packageUris"] = packageUris; 2592 _json["packageUris"] = packageUris;
2313 } 2593 }
2314 if (parameterServerCount != null) { 2594 if (parameterServerCount != null) {
2315 _json["parameterServerCount"] = parameterServerCount; 2595 _json["parameterServerCount"] = parameterServerCount;
2316 } 2596 }
2317 if (parameterServerType != null) { 2597 if (parameterServerType != null) {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
2429 core.bool isDefault; 2709 core.bool isDefault;
2430 /** Output only. The time the version was last used for prediction. */ 2710 /** Output only. The time the version was last used for prediction. */
2431 core.String lastUseTime; 2711 core.String lastUseTime;
2432 /** 2712 /**
2433 * Required.The name specified for the version when it was created. 2713 * Required.The name specified for the version when it was created.
2434 * 2714 *
2435 * The version name must be unique within the model it is created in. 2715 * The version name must be unique within the model it is created in.
2436 */ 2716 */
2437 core.String name; 2717 core.String name;
2438 /** 2718 /**
2439 * Optional. If true, enables StackDriver Logging for online prediction.
2440 * Default is false.
2441 */
2442 core.bool onlinePredictionLogging;
2443 /**
2444 * Optional. The Google Cloud ML runtime version to use for this deployment. 2719 * Optional. The Google Cloud ML runtime version to use for this deployment.
2445 * If not set, Google Cloud ML will choose a version. 2720 * If not set, Google Cloud ML will choose a version.
2446 */ 2721 */
2447 core.String runtimeVersion; 2722 core.String runtimeVersion;
2448 2723
2449 GoogleCloudMlV1beta1Version(); 2724 GoogleCloudMlV1beta1Version();
2450 2725
2451 GoogleCloudMlV1beta1Version.fromJson(core.Map _json) { 2726 GoogleCloudMlV1beta1Version.fromJson(core.Map _json) {
2452 if (_json.containsKey("createTime")) { 2727 if (_json.containsKey("createTime")) {
2453 createTime = _json["createTime"]; 2728 createTime = _json["createTime"];
2454 } 2729 }
2455 if (_json.containsKey("deploymentUri")) { 2730 if (_json.containsKey("deploymentUri")) {
2456 deploymentUri = _json["deploymentUri"]; 2731 deploymentUri = _json["deploymentUri"];
2457 } 2732 }
2458 if (_json.containsKey("description")) { 2733 if (_json.containsKey("description")) {
2459 description = _json["description"]; 2734 description = _json["description"];
2460 } 2735 }
2461 if (_json.containsKey("isDefault")) { 2736 if (_json.containsKey("isDefault")) {
2462 isDefault = _json["isDefault"]; 2737 isDefault = _json["isDefault"];
2463 } 2738 }
2464 if (_json.containsKey("lastUseTime")) { 2739 if (_json.containsKey("lastUseTime")) {
2465 lastUseTime = _json["lastUseTime"]; 2740 lastUseTime = _json["lastUseTime"];
2466 } 2741 }
2467 if (_json.containsKey("name")) { 2742 if (_json.containsKey("name")) {
2468 name = _json["name"]; 2743 name = _json["name"];
2469 } 2744 }
2470 if (_json.containsKey("onlinePredictionLogging")) {
2471 onlinePredictionLogging = _json["onlinePredictionLogging"];
2472 }
2473 if (_json.containsKey("runtimeVersion")) { 2745 if (_json.containsKey("runtimeVersion")) {
2474 runtimeVersion = _json["runtimeVersion"]; 2746 runtimeVersion = _json["runtimeVersion"];
2475 } 2747 }
2476 } 2748 }
2477 2749
2478 core.Map toJson() { 2750 core.Map toJson() {
2479 var _json = new core.Map(); 2751 var _json = new core.Map();
2480 if (createTime != null) { 2752 if (createTime != null) {
2481 _json["createTime"] = createTime; 2753 _json["createTime"] = createTime;
2482 } 2754 }
2483 if (deploymentUri != null) { 2755 if (deploymentUri != null) {
2484 _json["deploymentUri"] = deploymentUri; 2756 _json["deploymentUri"] = deploymentUri;
2485 } 2757 }
2486 if (description != null) { 2758 if (description != null) {
2487 _json["description"] = description; 2759 _json["description"] = description;
2488 } 2760 }
2489 if (isDefault != null) { 2761 if (isDefault != null) {
2490 _json["isDefault"] = isDefault; 2762 _json["isDefault"] = isDefault;
2491 } 2763 }
2492 if (lastUseTime != null) { 2764 if (lastUseTime != null) {
2493 _json["lastUseTime"] = lastUseTime; 2765 _json["lastUseTime"] = lastUseTime;
2494 } 2766 }
2495 if (name != null) { 2767 if (name != null) {
2496 _json["name"] = name; 2768 _json["name"] = name;
2497 } 2769 }
2498 if (onlinePredictionLogging != null) {
2499 _json["onlinePredictionLogging"] = onlinePredictionLogging;
2500 }
2501 if (runtimeVersion != null) { 2770 if (runtimeVersion != null) {
2502 _json["runtimeVersion"] = runtimeVersion; 2771 _json["runtimeVersion"] = runtimeVersion;
2503 } 2772 }
2504 return _json; 2773 return _json;
2505 } 2774 }
2506 } 2775 }
2507 2776
2508 /** The response message for Operations.ListOperations. */ 2777 /** The response message for Operations.ListOperations. */
2509 class GoogleLongrunningListOperationsResponse { 2778 class GoogleLongrunningListOperationsResponse {
2510 /** The standard List next-page token. */ 2779 /** The standard List next-page token. */
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
2739 } 3008 }
2740 if (details != null) { 3009 if (details != null) {
2741 _json["details"] = details; 3010 _json["details"] = details;
2742 } 3011 }
2743 if (message != null) { 3012 if (message != null) {
2744 _json["message"] = message; 3013 _json["message"] = message;
2745 } 3014 }
2746 return _json; 3015 return _json;
2747 } 3016 }
2748 } 3017 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/logging/v2beta1.dart ('k') | generated/googleapis_beta/lib/pubsub/v1beta2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698