Skip to content

Commit cc882d1

Browse files
Google APIscopybara-github
authored andcommitted
feat: adds enhanced protos for time series forecasting
Committer: @aribray PiperOrigin-RevId: 373471501
1 parent 162641c commit cc882d1

5 files changed

Lines changed: 333 additions & 47 deletions

File tree

google/cloud/aiplatform/v1beta1/schema/aiplatform_v1beta1.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,13 @@ types:
4444
- name: google.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularRegressionPredictionResult
4545
- name: google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult
4646
- name: google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult
47+
- name: google.cloud.aiplatform.v1beta1.schema.predict.prediction.TimeSeriesForecastingPredictionResult
4748
- name: google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoActionRecognitionPredictionResult
4849
- name: google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult
4950
- name: google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoObjectTrackingPredictionResult
51+
- name: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting
52+
- name: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs
53+
- name: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata
5054
- name: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification
5155
- name: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs
5256
- name: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationMetadata
@@ -134,6 +138,7 @@ http:
134138
- post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel'
135139
- post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel'
136140
- post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel'
141+
- post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel'
137142
- post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel'
138143
- post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel'
139144
- post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel'
@@ -161,6 +166,7 @@ http:
161166
- post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel'
162167
- post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:cancel'
163168
- post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel'
169+
- post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:cancel'
164170
- post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel'
165171
- post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel'
166172
- post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel'
@@ -190,6 +196,7 @@ http:
190196
- delete: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}'
191197
- delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'
192198
- delete: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}'
199+
- delete: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'
193200
- delete: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}'
194201
- delete: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}'
195202
- delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}'
@@ -217,6 +224,7 @@ http:
217224
- delete: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}'
218225
- delete: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}'
219226
- delete: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}'
227+
- delete: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}'
220228
- delete: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}'
221229
- delete: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}'
222230
- delete: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}'
@@ -246,6 +254,7 @@ http:
246254
- get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}'
247255
- get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'
248256
- get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}'
257+
- get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'
249258
- get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}'
250259
- get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}'
251260
- get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}'
@@ -273,6 +282,7 @@ http:
273282
- get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}'
274283
- get: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}'
275284
- get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}'
285+
- get: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}'
276286
- get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}'
277287
- get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}'
278288
- get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}'
@@ -302,6 +312,7 @@ http:
302312
- get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations'
303313
- get: '/ui/{name=projects/*/locations/*/models/*}/operations'
304314
- get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations'
315+
- get: '/ui/{name=projects/*/locations/*/studies/*}/operations'
305316
- get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations'
306317
- get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations'
307318
- get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations'
@@ -329,6 +340,7 @@ http:
329340
- get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*}/operations'
330341
- get: '/v1beta1/{name=projects/*/locations/*/models/*}/operations'
331342
- get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*}/operations'
343+
- get: '/v1beta1/{name=projects/*/locations/*/studies/*}/operations'
332344
- get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*}/operations'
333345
- get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}/operations'
334346
- get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}/operations'
@@ -358,6 +370,7 @@ http:
358370
- post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait'
359371
- post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait'
360372
- post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait'
373+
- post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait'
361374
- post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait'
362375
- post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait'
363376
- post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait'
@@ -385,6 +398,7 @@ http:
385398
- post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait'
386399
- post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:wait'
387400
- post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait'
401+
- post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:wait'
388402
- post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait'
389403
- post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait'
390404
- post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait'

google/cloud/aiplatform/v1beta1/schema/predict/prediction/BUILD.bazel

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ proto_library(
1818
"tabular_regression.proto",
1919
"text_extraction.proto",
2020
"text_sentiment.proto",
21+
"time_series_forecasting.proto",
2122
"video_action_recognition.proto",
2223
"video_classification.proto",
2324
"video_object_tracking.proto",
2425
],
2526
deps = [
2627
"//google/api:annotations_proto",
27-
"//google/cloud/aiplatform/v1beta1/schema/predict/instance:instance_proto",
2828
"@com_google_protobuf//:duration_proto",
2929
"@com_google_protobuf//:struct_proto",
3030
"@com_google_protobuf//:wrappers_proto",
@@ -66,7 +66,6 @@ go_proto_library(
6666
protos = [":prediction_proto"],
6767
deps = [
6868
"//google/api:annotations_go_proto",
69-
"//google/cloud/aiplatform/v1beta1/schema/predict/instance:instance_go_proto",
7069
],
7170
)
7271

@@ -76,8 +75,6 @@ go_proto_library(
7675
load(
7776
"@com_google_googleapis_imports//:imports.bzl",
7877
"moved_proto_library",
79-
"py_gapic_assembly_pkg",
80-
"py_gapic_library",
8178
"py_grpc_library",
8279
"py_proto_library",
8380
)
@@ -87,7 +84,6 @@ moved_proto_library(
8784
srcs = [":prediction_proto"],
8885
deps = [
8986
"//google/api:annotations_proto",
90-
"//google/cloud/aiplatform/v1beta1/schema/predict/instance:instance_proto",
9187
"@com_google_protobuf//:duration_proto",
9288
"@com_google_protobuf//:struct_proto",
9389
"@com_google_protobuf//:wrappers_proto",
@@ -106,31 +102,13 @@ py_grpc_library(
106102
deps = [":prediction_py_proto"],
107103
)
108104

109-
py_gapic_library(
110-
name = "prediction_py_gapic",
111-
srcs = [":prediction_proto"],
112-
opt_args = [
113-
"python-gapic-namespace=google.cloud.aiplatform.v1beta1.schema.predict",
114-
"python-gapic-name=prediction",
115-
],
116-
)
117-
118-
# Open Source Packages
119-
py_gapic_assembly_pkg(
120-
name = "prediction-py",
121-
deps = [
122-
":prediction_py_gapic",
123-
],
124-
)
125-
126105
##############################################################################
127106
# PHP
128-
# DO NOT OVERRIDE this PHP microgenerator section with autogenerated rules.
129107
##############################################################################
130108
load(
131109
"@com_google_googleapis_imports//:imports.bzl",
132-
php_grpc_library = "php_grpc_library2",
133-
php_proto_library = "php_proto_library2",
110+
"php_grpc_library",
111+
"php_proto_library",
134112
)
135113

136114
php_proto_library(
@@ -153,6 +131,7 @@ load(
153131
"nodejs_gapic_library",
154132
)
155133

134+
156135
##############################################################################
157136
# Ruby
158137
##############################################################################
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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.v1beta1.schema.predict.prediction;
18+
19+
import "google/api/annotations.proto";
20+
21+
option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction";
22+
option java_multiple_files = true;
23+
option java_outer_classname = "TimeSeriesForecastingPredictionResultProto";
24+
option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction";
25+
26+
// Prediction output format for Time Series Forecasting.
27+
message TimeSeriesForecastingPredictionResult {
28+
// The regression value.
29+
float value = 1;
30+
}

google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/BUILD.bazel

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ proto_library(
1818
"automl_text_classification.proto",
1919
"automl_text_extraction.proto",
2020
"automl_text_sentiment.proto",
21+
"automl_time_series_forecasting.proto",
2122
"automl_video_action_recognition.proto",
2223
"automl_video_classification.proto",
2324
"automl_video_object_tracking.proto",
@@ -72,8 +73,6 @@ go_proto_library(
7273
load(
7374
"@com_google_googleapis_imports//:imports.bzl",
7475
"moved_proto_library",
75-
"py_gapic_assembly_pkg",
76-
"py_gapic_library",
7776
"py_grpc_library",
7877
"py_proto_library",
7978
)
@@ -98,31 +97,13 @@ py_grpc_library(
9897
deps = [":definition_py_proto"],
9998
)
10099

101-
py_gapic_library(
102-
name = "definition_py_gapic",
103-
srcs = [":definition_proto"],
104-
opt_args = [
105-
"python-gapic-namespace=google.cloud.aiplatform.v1beta1.schema.trainingjob",
106-
"python-gapic-name=definition",
107-
],
108-
)
109-
110-
# Open Source Packages
111-
py_gapic_assembly_pkg(
112-
name = "definition_py",
113-
deps = [
114-
":definition_py_gapic",
115-
],
116-
)
117-
118100
##############################################################################
119101
# PHP
120-
# DO NOT OVERRIDE this PHP microgenerator section with autogenerated rules.
121102
##############################################################################
122103
load(
123104
"@com_google_googleapis_imports//:imports.bzl",
124-
php_grpc_library = "php_grpc_library2",
125-
php_proto_library = "php_proto_library2",
105+
"php_grpc_library",
106+
"php_proto_library",
126107
)
127108

128109
php_proto_library(
@@ -145,6 +126,7 @@ load(
145126
"nodejs_gapic_library",
146127
)
147128

129+
148130
##############################################################################
149131
# Ruby
150132
##############################################################################

0 commit comments

Comments
 (0)