Skip to content

Commit 92429bf

Browse files
feat: Removes AcceleratorType.TPU_V2 and TPU_V3 constants (#167)
* feat!: Removes AcceleratorType.TPU_V2 and TPU_V3 constants feat: Adds AcceleratorType.NVIDIA_TESLA_A100 constant feat: Adds BigQuery output table field to batch prediction job output config feat: Adds JobState.JOB_STATE_EXPIRED constant feat: Adds AutoscalingMetricSpec message feat: Adds PipelineService methods: CreatePipelineJob, GetPipelineJob, ListPipelineJobs, DeletePipelineJobs, CancelPipelineJobs feat: Adds fields to Study message PiperOrigin-RevId: 384714314 Source-Link: googleapis/googleapis@cc51e48 Source-Link: googleapis/googleapis-gen@f87b91c * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 7db0e46 commit 92429bf

File tree

55 files changed

+18457
-1590
lines changed

Some content is hidden

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

55 files changed

+18457
-1590
lines changed

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

Lines changed: 3 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.
@@ -46,9 +46,6 @@ enum AcceleratorType {
4646
// Nvidia Tesla T4 GPU.
4747
NVIDIA_TESLA_T4 = 5;
4848

49-
// TPU v2.
50-
TPU_V2 = 6;
51-
52-
// TPU v3.
53-
TPU_V3 = 7;
49+
// Nvidia Tesla A100 GPU.
50+
NVIDIA_TESLA_A100 = 8;
5451
}
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
// Copyright 2021 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package google.cloud.aiplatform.v1;
18+
19+
import "google/api/field_behavior.proto";
20+
import "google/api/resource.proto";
21+
import "google/cloud/aiplatform/v1/value.proto";
22+
import "google/protobuf/struct.proto";
23+
import "google/protobuf/timestamp.proto";
24+
import "google/api/annotations.proto";
25+
26+
option csharp_namespace = "Google.Cloud.AIPlatform.V1";
27+
option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform";
28+
option java_multiple_files = true;
29+
option java_outer_classname = "ArtifactProto";
30+
option java_package = "com.google.cloud.aiplatform.v1";
31+
option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
32+
option ruby_package = "Google::Cloud::AIPlatform::V1";
33+
34+
// Instance of a general artifact.
35+
message Artifact {
36+
option (google.api.resource) = {
37+
type: "aiplatform.googleapis.com/Artifact"
38+
pattern: "projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}"
39+
};
40+
41+
// Describes the state of the Artifact.
42+
enum State {
43+
// Unspecified state for the Artifact.
44+
STATE_UNSPECIFIED = 0;
45+
46+
// A state used by systems like Vertex Pipelines to indicate that the
47+
// underlying data item represented by this Artifact is being created.
48+
PENDING = 1;
49+
50+
// A state indicating that the Artifact should exist, unless something
51+
// external to the system deletes it.
52+
LIVE = 2;
53+
}
54+
55+
// Output only. The resource name of the Artifact.
56+
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
57+
58+
// User provided display name of the Artifact.
59+
// May be up to 128 Unicode characters.
60+
string display_name = 2;
61+
62+
// The uniform resource identifier of the artifact file.
63+
// May be empty if there is no actual artifact file.
64+
string uri = 6;
65+
66+
// An eTag used to perform consistent read-modify-write updates. If not set, a
67+
// blind "overwrite" update happens.
68+
string etag = 9;
69+
70+
// The labels with user-defined metadata to organize your Artifacts.
71+
//
72+
// Label keys and values can be no longer than 64 characters
73+
// (Unicode codepoints), can only contain lowercase letters, numeric
74+
// characters, underscores and dashes. International characters are allowed.
75+
// No more than 64 user labels can be associated with one Artifact (System
76+
// labels are excluded).
77+
map<string, string> labels = 10;
78+
79+
// Output only. Timestamp when this Artifact was created.
80+
google.protobuf.Timestamp create_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
81+
82+
// Output only. Timestamp when this Artifact was last updated.
83+
google.protobuf.Timestamp update_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
84+
85+
// The state of this Artifact. This is a property of the Artifact, and does
86+
// not imply or capture any ongoing process. This property is managed by
87+
// clients (such as Vertex Pipelines), and the system does not prescribe
88+
// or check the validity of state transitions.
89+
State state = 13;
90+
}

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ message BatchPredictionJob {
9494
// `errors_N.<extension>` files are created (N depends on total number
9595
// of failed predictions). These files contain the failed instances,
9696
// as per their schema, followed by an additional `error` field which as
97-
// value has
98-
// [`google.rpc.Status`](Status)
97+
// value has [google.rpc.Status][google.rpc.Status]
9998
// containing only `code` and `message` fields.
10099
GcsDestination gcs_destination = 2;
101100

@@ -115,7 +114,7 @@ message BatchPredictionJob {
115114
// prediction schemata. The `errors` table contains rows for which the
116115
// prediction has failed, it has instance columns, as per the
117116
// instance schema, followed by a single "errors" column, which as values
118-
// has [`google.rpc.Status`](Status)
117+
// has [google.rpc.Status][google.rpc.Status]
119118
// represented as a STRUCT, and containing only `code` and `message`.
120119
BigQueryDestination bigquery_destination = 3;
121120
}
@@ -140,6 +139,12 @@ message BatchPredictionJob {
140139
// format, into which the prediction output is written.
141140
string bigquery_output_dataset = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
142141
}
142+
143+
// Output only. The name of the BigQuery table created, in
144+
// `predictions_<timestamp>`
145+
// format, into which the prediction output is written.
146+
// Can be used by UI to generate the BigQuery output path, for example.
147+
string bigquery_output_table = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
143148
}
144149

145150
// Output only. Resource name of the BatchPredictionJob.
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
// Copyright 2021 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package google.cloud.aiplatform.v1;
18+
19+
import "google/api/field_behavior.proto";
20+
import "google/api/resource.proto";
21+
import "google/cloud/aiplatform/v1/value.proto";
22+
import "google/protobuf/struct.proto";
23+
import "google/protobuf/timestamp.proto";
24+
import "google/api/annotations.proto";
25+
26+
option csharp_namespace = "Google.Cloud.AIPlatform.V1";
27+
option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform";
28+
option java_multiple_files = true;
29+
option java_outer_classname = "ContextProto";
30+
option java_package = "com.google.cloud.aiplatform.v1";
31+
option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
32+
option ruby_package = "Google::Cloud::AIPlatform::V1";
33+
34+
// Instance of a general context.
35+
message Context {
36+
option (google.api.resource) = {
37+
type: "aiplatform.googleapis.com/Context"
38+
pattern: "projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}"
39+
};
40+
41+
// Output only. The resource name of the Context.
42+
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
43+
44+
// User provided display name of the Context.
45+
// May be up to 128 Unicode characters.
46+
string display_name = 2;
47+
48+
// An eTag used to perform consistent read-modify-write updates. If not set, a
49+
// blind "overwrite" update happens.
50+
string etag = 8;
51+
52+
// The labels with user-defined metadata to organize your Contexts.
53+
//
54+
// Label keys and values can be no longer than 64 characters
55+
// (Unicode codepoints), can only contain lowercase letters, numeric
56+
// characters, underscores and dashes. International characters are allowed.
57+
// No more than 64 user labels can be associated with one Context (System
58+
// labels are excluded).
59+
map<string, string> labels = 9;
60+
61+
// Output only. Timestamp when this Context was created.
62+
google.protobuf.Timestamp create_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
63+
64+
// Output only. Timestamp when this Context was last updated.
65+
google.protobuf.Timestamp update_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
66+
67+
// Output only. A list of resource names of Contexts that are parents of this Context.
68+
// A Context may have at most 10 parent_contexts.
69+
repeated string parent_contexts = 12 [
70+
(google.api.field_behavior) = OUTPUT_ONLY,
71+
(google.api.resource_reference) = {
72+
type: "aiplatform.googleapis.com/Context"
73+
}
74+
];
75+
}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ message CustomJobSpec {
120120
//
121121
// Private services access must already be configured for the network. If left
122122
// unspecified, the job is not peered with any network.
123-
string network = 5;
123+
string network = 5 [(google.api.resource_reference) = {
124+
type: "compute.googleapis.com/Network"
125+
}];
124126

125127
// The Cloud Storage location to store the output of this CustomJob or
126128
// HyperparameterTuningJob. For HyperparameterTuningJob,
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
// Copyright 2021 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package google.cloud.aiplatform.v1;
18+
19+
import "google/api/field_behavior.proto";
20+
import "google/api/resource.proto";
21+
import "google/cloud/aiplatform/v1/value.proto";
22+
import "google/protobuf/struct.proto";
23+
import "google/protobuf/timestamp.proto";
24+
import "google/api/annotations.proto";
25+
26+
option csharp_namespace = "Google.Cloud.AIPlatform.V1";
27+
option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform";
28+
option java_multiple_files = true;
29+
option java_outer_classname = "ExecutionProto";
30+
option java_package = "com.google.cloud.aiplatform.v1";
31+
option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
32+
option ruby_package = "Google::Cloud::AIPlatform::V1";
33+
34+
// Instance of a general execution.
35+
message Execution {
36+
option (google.api.resource) = {
37+
type: "aiplatform.googleapis.com/Execution"
38+
pattern: "projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}"
39+
};
40+
41+
// Describes the state of the Execution.
42+
enum State {
43+
// Unspecified Execution state
44+
STATE_UNSPECIFIED = 0;
45+
46+
// The Execution is new
47+
NEW = 1;
48+
49+
// The Execution is running
50+
RUNNING = 2;
51+
52+
// The Execution has finished running
53+
COMPLETE = 3;
54+
55+
// The Execution has failed
56+
FAILED = 4;
57+
58+
// The Execution completed through Cache hit.
59+
CACHED = 5;
60+
61+
// The Execution was cancelled.
62+
CANCELLED = 6;
63+
}
64+
65+
// Output only. The resource name of the Execution.
66+
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
67+
68+
// User provided display name of the Execution.
69+
// May be up to 128 Unicode characters.
70+
string display_name = 2;
71+
72+
// The state of this Execution. This is a property of the Execution, and does
73+
// not imply or capture any ongoing process. This property is managed by
74+
// clients (such as Vertex Pipelines) and the system does not prescribe
75+
// or check the validity of state transitions.
76+
State state = 6;
77+
78+
// An eTag used to perform consistent read-modify-write updates. If not set, a
79+
// blind "overwrite" update happens.
80+
string etag = 9;
81+
82+
// The labels with user-defined metadata to organize your Executions.
83+
//
84+
// Label keys and values can be no longer than 64 characters
85+
// (Unicode codepoints), can only contain lowercase letters, numeric
86+
// characters, underscores and dashes. International characters are allowed.
87+
// No more than 64 user labels can be associated with one Execution (System
88+
// labels are excluded).
89+
map<string, string> labels = 10;
90+
91+
// Output only. Timestamp when this Execution was created.
92+
google.protobuf.Timestamp create_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
93+
94+
// Output only. Timestamp when this Execution was last updated.
95+
google.protobuf.Timestamp update_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
96+
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ message BigQueryDestination {
6363
// Accepted forms:
6464
//
6565
// * BigQuery path. For example:
66-
// `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`.
66+
// `bq://projectId` or `bq://projectId.bqDatasetId` or
67+
// `bq://projectId.bqDatasetId.bqTableId`.
6768
string output_uri = 1 [(google.api.field_behavior) = REQUIRED];
6869
}
6970

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_state.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,7 @@ enum JobState {
5555

5656
// The job has been stopped, and can be resumed.
5757
JOB_STATE_PAUSED = 8;
58+
59+
// The job has expired.
60+
JOB_STATE_EXPIRED = 9;
5861
}

0 commit comments

Comments
 (0)