Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit 23f184d

Browse files
yoshi-automationBenjamin E. Coe
andauthored
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 c5218d7 commit 23f184d

73 files changed

Lines changed: 19650 additions & 239 deletions

File tree

Some content is hidden

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

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

Lines changed: 1 addition & 7 deletions
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
}

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

Lines changed: 4 additions & 3 deletions
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]

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

Lines changed: 2 additions & 2 deletions
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
}

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

Lines changed: 3 additions & 4 deletions
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

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

Lines changed: 1 addition & 1 deletion
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.

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

Lines changed: 9 additions & 5 deletions
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

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

Lines changed: 3 additions & 2 deletions
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
}

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

Lines changed: 6 additions & 6 deletions
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
}

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

Lines changed: 2 additions & 2 deletions
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

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

Lines changed: 1 addition & 3 deletions
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,

0 commit comments

Comments
 (0)