Skip to content

Commit 01b7f66

Browse files
feat!: BREAKING CHANGE: remove unsupported accelerator types feat: add aiplatform API Vizier service (#92)
Committer: @dizcology PiperOrigin-RevId: 363921711 Source-Author: Google APIs <[email protected]> Source-Date: Fri Mar 19 10:37:18 2021 -0700 Source-Repo: googleapis/googleapis Source-Sha: 4ea5a2764a08f86676d0e853dbb01c4e9868a22b Source-Link: googleapis/googleapis@4ea5a27 Co-authored-by: Benjamin E. Coe <[email protected]>
1 parent 2164ac7 commit 01b7f66

File tree

73 files changed

+19650
-239
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+19650
-239
lines changed

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/accelerator_type.proto

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -42,10 +42,4 @@ enum AcceleratorType {
4242

4343
// Nvidia Tesla T4 GPU.
4444
NVIDIA_TESLA_T4 = 5;
45-
46-
// TPU v2.
47-
TPU_V2 = 6;
48-
49-
// TPU v3.
50-
TPU_V3 = 7;
5145
}

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/annotation.proto

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -18,6 +18,7 @@ package google.cloud.aiplatform.v1beta1;
1818

1919
import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
21+
2122
import "google/cloud/aiplatform/v1beta1/user_action_reference.proto";
2223
import "google/protobuf/struct.proto";
2324
import "google/protobuf/timestamp.proto";
@@ -58,7 +59,7 @@ message Annotation {
5859
// Output only. Timestamp when this Annotation was last updated.
5960
google.protobuf.Timestamp update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
6061

61-
// Optional. Used to perform a consistent read-modify-write updates. If not set, a blind
62+
// Optional. Used to perform consistent read-modify-write updates. If not set, a blind
6263
// "overwrite" update happens.
6364
string etag = 8 [(google.api.field_behavior) = OPTIONAL];
6465

@@ -79,7 +80,7 @@ message Annotation {
7980
//
8081
// * "aiplatform.googleapis.com/annotation_set_name":
8182
// optional, name of the UI's annotation set this Annotation belongs to.
82-
// If not set the Annotation is not visible in the UI.
83+
// If not set, the Annotation is not visible in the UI.
8384
//
8485
// * "aiplatform.googleapis.com/payload_schema":
8586
// output only, its value is the [payload_schema's][google.cloud.aiplatform.v1beta1.Annotation.payload_schema_uri]

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/annotation_spec.proto

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -47,7 +47,7 @@ message AnnotationSpec {
4747
// Output only. Timestamp when AnnotationSpec was last updated.
4848
google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
4949

50-
// Optional. Used to perform a consistent read-modify-write updates. If not set, a blind
50+
// Optional. Used to perform consistent read-modify-write updates. If not set, a blind
5151
// "overwrite" update happens.
5252
string etag = 5 [(google.api.field_behavior) = OPTIONAL];
5353
}

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -120,7 +120,6 @@ message BatchPredictionJob {
120120

121121
// Required. The format in which AI Platform gives the predictions, must be one of the
122122
// [Model's][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model]
123-
//
124123
// [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
125124
string predictions_format = 1 [(google.api.field_behavior) = REQUIRED];
126125
}
@@ -206,8 +205,8 @@ message BatchPredictionJob {
206205
// conforms to the [Explanation][google.cloud.aiplatform.v1beta1.Explanation] object.
207206
// * `csv`: Generating explanations for CSV format is not supported.
208207
//
209-
// If this field is set to true, the [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be
210-
// populated.
208+
// If this field is set to true, either the [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] or
209+
// [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] must be populated.
211210
bool generate_explanation = 23;
212211

213212
// Explanation configuration for this BatchPredictionJob. Can be

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/completion_stats.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -93,6 +93,8 @@ message CustomJob {
9393
// Represents the spec of a CustomJob.
9494
message CustomJobSpec {
9595
// Required. The spec of the worker pools including machine type and Docker image.
96+
// All worker pools except the first one are optional and can be skipped by
97+
// providing an empty value.
9698
repeated WorkerPoolSpec worker_pool_specs = 1 [(google.api.field_behavior) = REQUIRED];
9799

98100
// Scheduling options for a CustomJob.
@@ -180,10 +182,12 @@ message ContainerSpec {
180182

181183
// The spec of a Python packaged code.
182184
message PythonPackageSpec {
183-
// Required. The URI of a container image in the Container Registry that will run the
184-
// provided python package. AI Platform provides wide range of executor images
185-
// with pre-installed packages to meet users' various use cases. Only one of
186-
// the provided images can be set here.
185+
// Required. The URI of a container image in Artifact Registry that will run the
186+
// provided Python package. AI Platform provides a wide range of executor
187+
// images with pre-installed packages to meet users' various use cases. See
188+
// the list of [pre-built containers for
189+
// training](https://cloud.google.com/ai-platform-unified/docs/training/pre-built-containers).
190+
// You must use an image from this list.
187191
string executor_image_uri = 1 [(google.api.field_behavior) = REQUIRED];
188192

189193
// Required. The Google Cloud Storage location of the Python package files which are

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/data_item.proto

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -18,6 +18,7 @@ package google.cloud.aiplatform.v1beta1;
1818

1919
import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
21+
2122
import "google/protobuf/struct.proto";
2223
import "google/protobuf/timestamp.proto";
2324
import "google/api/annotations.proto";
@@ -62,7 +63,7 @@ message DataItem {
6263
// [metadata schema's][google.cloud.aiplatform.v1beta1.Dataset.metadata_schema_uri] dataItemSchemaUri field.
6364
google.protobuf.Value payload = 4 [(google.api.field_behavior) = REQUIRED];
6465

65-
// Optional. Used to perform a consistent read-modify-write updates. If not set, a blind
66+
// Optional. Used to perform consistent read-modify-write updates. If not set, a blind
6667
// "overwrite" update happens.
6768
string etag = 7 [(google.api.field_behavior) = OPTIONAL];
6869
}

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/data_labeling_job.proto

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -134,13 +134,13 @@ message DataLabelingJob {
134134
// the EncryptionSpec of the Dataset they are exported to.
135135
EncryptionSpec encryption_spec = 20;
136136

137-
// Parameters that configure active learning pipeline. Active learning will
138-
// label the data incrementally via several iterations. For every iteration,
139-
// it will select a batch of data based on the sampling strategy.
137+
// Parameters that configure the active learning pipeline. Active learning
138+
// will label the data incrementally via several iterations. For every
139+
// iteration, it will select a batch of data based on the sampling strategy.
140140
ActiveLearningConfig active_learning_config = 21;
141141
}
142142

143-
// Parameters that configure active learning pipeline. Active learning will
143+
// Parameters that configure the active learning pipeline. Active learning will
144144
// label the data incrementally by several iterations. For every iteration, it
145145
// will select a batch of data based on the sampling strategy.
146146
message ActiveLearningConfig {
@@ -192,7 +192,7 @@ message SampleConfig {
192192
int32 following_batch_sample_percentage = 3;
193193
}
194194

195-
// Field to chose sampling strategy. Sampling strategy will decide which data
195+
// Field to choose sampling strategy. Sampling strategy will decide which data
196196
// should be selected for human labeling in every batch.
197197
SampleStrategy sample_strategy = 5;
198198
}

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset.proto

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -104,7 +104,7 @@ message ImportDataConfig {
104104
// considered identical if their content bytes are identical (e.g. image bytes
105105
// or pdf bytes).
106106
// These labels will be overridden by Annotation labels specified inside index
107-
// file refenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file.
107+
// file referenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file.
108108
map<string, string> data_item_labels = 2;
109109

110110
// Required. Points to a YAML file stored on Google Cloud Storage describing the import

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -358,7 +358,6 @@ message ListDataItemsResponse {
358358
message GetAnnotationSpecRequest {
359359
// Required. The name of the AnnotationSpec resource.
360360
// Format:
361-
//
362361
// `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}`
363362
string name = 1 [
364363
(google.api.field_behavior) = REQUIRED,
@@ -375,7 +374,6 @@ message GetAnnotationSpecRequest {
375374
message ListAnnotationsRequest {
376375
// Required. The resource name of the DataItem to list Annotations from.
377376
// Format:
378-
//
379377
// `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}`
380378
string parent = 1 [
381379
(google.api.field_behavior) = REQUIRED,

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployed_model_ref.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/encryption_spec.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint.proto

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -108,7 +108,7 @@ message DeployedModel {
108108
// Output only. The ID of the DeployedModel.
109109
string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
110110

111-
// Required. The name of the Model this is the deployment of. Note that the Model
111+
// Required. The name of the Model that this is the deployment of. Note that the Model
112112
// may be in a different location than the DeployedModel's Endpoint.
113113
string model = 2 [
114114
(google.api.field_behavior) = REQUIRED,
@@ -130,9 +130,9 @@ message DeployedModel {
130130
// overrides the value of [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec]. All fields of
131131
// [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] are optional in the request. If a field of
132132
// [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] is not populated, the value of the same field of
133-
// [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. The corresponding
134-
// [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] must be populated, otherwise explanation for
135-
// this Model is not allowed.
133+
// [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. If the corresponding
134+
// [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is not populated, all fields of the
135+
// [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] will be used for the explanation configuration.
136136
ExplanationSpec explanation_spec = 9;
137137

138138
// The service account that the DeployedModel's container runs as. Specify the

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -192,7 +192,7 @@ message ListEndpointsResponse {
192192
// List of Endpoints in the requested page.
193193
repeated Endpoint endpoints = 1;
194194

195-
// A token to retrieve next page of results.
195+
// A token to retrieve the next page of results.
196196
// Pass to [ListEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListEndpointsRequest.page_token] to obtain that page.
197197
string next_page_token = 2;
198198
}

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/env_var.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/explanation.proto

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -18,6 +18,7 @@ package google.cloud.aiplatform.v1beta1;
1818

1919
import "google/api/field_behavior.proto";
2020
import "google/cloud/aiplatform/v1beta1/explanation_metadata.proto";
21+
import "google/cloud/aiplatform/v1beta1/io.proto";
2122
import "google/protobuf/struct.proto";
2223
import "google/api/annotations.proto";
2324

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/explanation_metadata.proto

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -339,7 +339,7 @@ message ExplanationMetadata {
339339
// outputs by their values.
340340
//
341341
// The shape of the value must be an n-dimensional array of strings. The
342-
// number of dimentions must match that of the outputs to be explained.
342+
// number of dimensions must match that of the outputs to be explained.
343343
// The [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] is populated by locating in the
344344
// mapping with [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index].
345345
google.protobuf.Value index_display_name_mapping = 1;
@@ -377,8 +377,8 @@ message ExplanationMetadata {
377377

378378
// Required. Map from output names to output metadata.
379379
//
380-
// For AI Platform provided Tensorflow images, keys can be any string user
381-
// defines.
380+
// For AI Platform provided Tensorflow images, keys can be any user defined
381+
// string that consists of any UTF-8 characters.
382382
//
383383
// For custom images, keys are the name of the output field in the prediction
384384
// to be explained.

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/io.proto

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -53,9 +53,9 @@ message BigQuerySource {
5353
message BigQueryDestination {
5454
// Required. BigQuery URI to a project or table, up to 2000 characters long.
5555
//
56-
// When only project is specified, Dataset and Table is created.
57-
// When full table reference is specified, Dataset must exist and table must
58-
// not exist.
56+
// When only the project is specified, the Dataset and Table is created.
57+
// When the full table reference is specified, the Dataset must exist and
58+
// table must not exist.
5959
//
6060
// Accepted forms:
6161
//
@@ -64,7 +64,7 @@ message BigQueryDestination {
6464
string output_uri = 1 [(google.api.field_behavior) = REQUIRED];
6565
}
6666

67-
// The Container Regsitry location for the container image.
67+
// The Container Registry location for the container image.
6868
message ContainerRegistryDestination {
6969
// Required. Container Registry URI of a container image.
7070
// Only Google Container Registry and Artifact Registry are supported now.

0 commit comments

Comments
 (0)