google-cloud-ai_platform-v1 0.19.0 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +36 -46
  4. data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +12 -14
  5. data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +20 -22
  6. data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +12 -14
  7. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +6 -6
  8. data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +176 -68
  9. data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +12 -14
  10. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +24 -26
  11. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +12 -14
  12. data/lib/google/cloud/ai_platform/v1/index_service/client.rb +16 -18
  13. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +12 -14
  14. data/lib/google/cloud/ai_platform/v1/job_service/client.rb +60 -76
  15. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +12 -14
  16. data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +52 -62
  17. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +12 -14
  18. data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +8 -10
  19. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +12 -14
  20. data/lib/google/cloud/ai_platform/v1/model_service/client.rb +135 -46
  21. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +12 -14
  22. data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +16 -20
  23. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +12 -14
  24. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +16 -18
  25. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +12 -14
  26. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +50 -60
  27. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +12 -14
  28. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  29. data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +17 -21
  30. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +12 -14
  31. data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -0
  32. data/lib/google/cloud/aiplatform/v1/batch_prediction_job_pb.rb +1 -0
  33. data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +9 -0
  34. data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +1 -0
  35. data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +1 -0
  36. data/lib/google/cloud/aiplatform/v1/evaluated_annotation_pb.rb +63 -0
  37. data/lib/google/cloud/aiplatform/v1/featurestore_pb.rb +1 -0
  38. data/lib/google/cloud/aiplatform/v1/featurestore_service_pb.rb +49 -0
  39. data/lib/google/cloud/aiplatform/v1/featurestore_service_services_pb.rb +11 -0
  40. data/lib/google/cloud/aiplatform/v1/index_endpoint_service_pb.rb +1 -0
  41. data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +1 -0
  42. data/lib/google/cloud/aiplatform/v1/metadata_service_pb.rb +1 -0
  43. data/lib/google/cloud/aiplatform/v1/model_evaluation_slice_pb.rb +28 -0
  44. data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +11 -0
  45. data/lib/google/cloud/aiplatform/v1/model_service_services_pb.rb +5 -2
  46. data/lib/google/cloud/aiplatform/v1/pipeline_service_pb.rb +1 -0
  47. data/lib/google/cloud/aiplatform/v1/specialist_pool_service_pb.rb +1 -0
  48. data/lib/google/cloud/aiplatform/v1/tensorboard_service_pb.rb +1 -0
  49. data/lib/google/cloud/aiplatform/v1/vizier_service_services_pb.rb +1 -1
  50. data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +4 -0
  51. data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +14 -1
  52. data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +23 -0
  53. data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +5 -1
  54. data/proto_docs/google/cloud/aiplatform/v1/evaluated_annotation.rb +190 -0
  55. data/proto_docs/google/cloud/aiplatform/v1/featurestore.rb +9 -0
  56. data/proto_docs/google/cloud/aiplatform/v1/featurestore_monitoring.rb +6 -8
  57. data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +128 -0
  58. data/proto_docs/google/cloud/aiplatform/v1/job_state.rb +2 -5
  59. data/proto_docs/google/cloud/aiplatform/v1/model.rb +16 -11
  60. data/proto_docs/google/cloud/aiplatform/v1/model_evaluation.rb +6 -5
  61. data/proto_docs/google/cloud/aiplatform/v1/model_evaluation_slice.rb +131 -0
  62. data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +25 -0
  63. data/proto_docs/google/cloud/aiplatform/v1/tensorboard_service.rb +2 -1
  64. data/proto_docs/google/type/interval.rb +45 -0
  65. metadata +15 -11
@@ -14,8 +14,10 @@ require 'google/cloud/aiplatform/v1/featurestore_pb'
14
14
  require 'google/cloud/aiplatform/v1/io_pb'
15
15
  require 'google/cloud/aiplatform/v1/operation_pb'
16
16
  require 'google/longrunning/operations_pb'
17
+ require 'google/protobuf/empty_pb'
17
18
  require 'google/protobuf/field_mask_pb'
18
19
  require 'google/protobuf/timestamp_pb'
20
+ require 'google/type/interval_pb'
19
21
 
20
22
  Google::Protobuf::DescriptorPool.generated_pool.build do
21
23
  add_file("google/cloud/aiplatform/v1/featurestore_service.proto", :syntax => :proto3) do
@@ -219,6 +221,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
219
221
  add_message "google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata" do
220
222
  optional :generic_metadata, :message, 1, "google.cloud.aiplatform.v1.GenericOperationMetadata"
221
223
  end
224
+ add_message "google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata" do
225
+ optional :generic_metadata, :message, 1, "google.cloud.aiplatform.v1.GenericOperationMetadata"
226
+ end
222
227
  add_message "google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata" do
223
228
  optional :generic_metadata, :message, 1, "google.cloud.aiplatform.v1.GenericOperationMetadata"
224
229
  end
@@ -228,6 +233,42 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
228
233
  add_message "google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata" do
229
234
  optional :generic_metadata, :message, 1, "google.cloud.aiplatform.v1.GenericOperationMetadata"
230
235
  end
236
+ add_message "google.cloud.aiplatform.v1.DeleteFeatureValuesRequest" do
237
+ optional :entity_type, :string, 1
238
+ oneof :DeleteOption do
239
+ optional :select_entity, :message, 2, "google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity"
240
+ optional :select_time_range_and_feature, :message, 3, "google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature"
241
+ end
242
+ end
243
+ add_message "google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity" do
244
+ optional :entity_id_selector, :message, 1, "google.cloud.aiplatform.v1.EntityIdSelector"
245
+ end
246
+ add_message "google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature" do
247
+ optional :time_range, :message, 1, "google.type.Interval"
248
+ optional :feature_selector, :message, 2, "google.cloud.aiplatform.v1.FeatureSelector"
249
+ optional :skip_online_storage_delete, :bool, 3
250
+ end
251
+ add_message "google.cloud.aiplatform.v1.DeleteFeatureValuesResponse" do
252
+ oneof :response do
253
+ optional :select_entity, :message, 1, "google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity"
254
+ optional :select_time_range_and_feature, :message, 2, "google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature"
255
+ end
256
+ end
257
+ add_message "google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity" do
258
+ optional :offline_storage_deleted_entity_row_count, :int64, 1
259
+ optional :online_storage_deleted_entity_count, :int64, 2
260
+ end
261
+ add_message "google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature" do
262
+ optional :impacted_feature_count, :int64, 1
263
+ optional :offline_storage_modified_entity_row_count, :int64, 2
264
+ optional :online_storage_modified_entity_count, :int64, 3
265
+ end
266
+ add_message "google.cloud.aiplatform.v1.EntityIdSelector" do
267
+ optional :entity_id_field, :string, 5
268
+ oneof :EntityIdsSource do
269
+ optional :csv_source, :message, 3, "google.cloud.aiplatform.v1.CsvSource"
270
+ end
271
+ end
231
272
  end
232
273
  end
233
274
 
@@ -275,9 +316,17 @@ module Google
275
316
  ImportFeatureValuesOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata").msgclass
276
317
  ExportFeatureValuesOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata").msgclass
277
318
  BatchReadFeatureValuesOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata").msgclass
319
+ DeleteFeatureValuesOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata").msgclass
278
320
  CreateEntityTypeOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata").msgclass
279
321
  CreateFeatureOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.CreateFeatureOperationMetadata").msgclass
280
322
  BatchCreateFeaturesOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata").msgclass
323
+ DeleteFeatureValuesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.DeleteFeatureValuesRequest").msgclass
324
+ DeleteFeatureValuesRequest::SelectEntity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity").msgclass
325
+ DeleteFeatureValuesRequest::SelectTimeRangeAndFeature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature").msgclass
326
+ DeleteFeatureValuesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.DeleteFeatureValuesResponse").msgclass
327
+ DeleteFeatureValuesResponse::SelectEntity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity").msgclass
328
+ DeleteFeatureValuesResponse::SelectTimeRangeAndFeature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature").msgclass
329
+ EntityIdSelector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.EntityIdSelector").msgclass
281
330
  end
282
331
  end
283
332
  end
@@ -97,6 +97,17 @@ module Google
97
97
  rpc :BatchReadFeatureValues, ::Google::Cloud::AIPlatform::V1::BatchReadFeatureValuesRequest, ::Google::Longrunning::Operation
98
98
  # Exports Feature values from all the entities of a target EntityType.
99
99
  rpc :ExportFeatureValues, ::Google::Cloud::AIPlatform::V1::ExportFeatureValuesRequest, ::Google::Longrunning::Operation
100
+ # Delete Feature values from Featurestore.
101
+ #
102
+ # The progress of the deletion is tracked by the returned operation. The
103
+ # deleted feature values are guaranteed to be invisible to subsequent read
104
+ # operations after the operation is marked as successfully done.
105
+ #
106
+ # If a delete feature values operation fails, the feature values
107
+ # returned from reads and exports may be inconsistent. If consistency is
108
+ # required, the caller must retry the same delete request again and wait till
109
+ # the new operation returned is marked as successfully done.
110
+ rpc :DeleteFeatureValues, ::Google::Cloud::AIPlatform::V1::DeleteFeatureValuesRequest, ::Google::Longrunning::Operation
100
111
  # Searches Features matching a query in a given project.
101
112
  rpc :SearchFeatures, ::Google::Cloud::AIPlatform::V1::SearchFeaturesRequest, ::Google::Cloud::AIPlatform::V1::SearchFeaturesResponse
102
113
  end
@@ -10,6 +10,7 @@ require 'google/api/resource_pb'
10
10
  require 'google/cloud/aiplatform/v1/index_endpoint_pb'
11
11
  require 'google/cloud/aiplatform/v1/operation_pb'
12
12
  require 'google/longrunning/operations_pb'
13
+ require 'google/protobuf/empty_pb'
13
14
  require 'google/protobuf/field_mask_pb'
14
15
 
15
16
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -10,6 +10,7 @@ require 'google/api/resource_pb'
10
10
  require 'google/cloud/aiplatform/v1/index_pb'
11
11
  require 'google/cloud/aiplatform/v1/operation_pb'
12
12
  require 'google/longrunning/operations_pb'
13
+ require 'google/protobuf/empty_pb'
13
14
  require 'google/protobuf/field_mask_pb'
14
15
 
15
16
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -16,6 +16,7 @@ require 'google/cloud/aiplatform/v1/metadata_schema_pb'
16
16
  require 'google/cloud/aiplatform/v1/metadata_store_pb'
17
17
  require 'google/cloud/aiplatform/v1/operation_pb'
18
18
  require 'google/longrunning/operations_pb'
19
+ require 'google/protobuf/empty_pb'
19
20
  require 'google/protobuf/field_mask_pb'
20
21
 
21
22
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -5,8 +5,10 @@ require 'google/protobuf'
5
5
 
6
6
  require 'google/api/field_behavior_pb'
7
7
  require 'google/api/resource_pb'
8
+ require 'google/cloud/aiplatform/v1/explanation_pb'
8
9
  require 'google/protobuf/struct_pb'
9
10
  require 'google/protobuf/timestamp_pb'
11
+ require 'google/protobuf/wrappers_pb'
10
12
 
11
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
14
  add_file("google/cloud/aiplatform/v1/model_evaluation_slice.proto", :syntax => :proto3) do
@@ -16,10 +18,32 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
16
18
  optional :metrics_schema_uri, :string, 3
17
19
  optional :metrics, :message, 4, "google.protobuf.Value"
18
20
  optional :create_time, :message, 5, "google.protobuf.Timestamp"
21
+ optional :model_explanation, :message, 6, "google.cloud.aiplatform.v1.ModelExplanation"
19
22
  end
20
23
  add_message "google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice" do
21
24
  optional :dimension, :string, 1
22
25
  optional :value, :string, 2
26
+ optional :slice_spec, :message, 3, "google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec"
27
+ end
28
+ add_message "google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec" do
29
+ map :configs, :string, :message, 1, "google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig"
30
+ end
31
+ add_message "google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig" do
32
+ oneof :kind do
33
+ optional :value, :message, 1, "google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value"
34
+ optional :range, :message, 2, "google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range"
35
+ optional :all_values, :message, 3, "google.protobuf.BoolValue"
36
+ end
37
+ end
38
+ add_message "google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range" do
39
+ optional :low, :float, 1
40
+ optional :high, :float, 2
41
+ end
42
+ add_message "google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value" do
43
+ oneof :kind do
44
+ optional :string_value, :string, 1
45
+ optional :float_value, :float, 2
46
+ end
23
47
  end
24
48
  end
25
49
  end
@@ -30,6 +54,10 @@ module Google
30
54
  module V1
31
55
  ModelEvaluationSlice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ModelEvaluationSlice").msgclass
32
56
  ModelEvaluationSlice::Slice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice").msgclass
57
+ ModelEvaluationSlice::Slice::SliceSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec").msgclass
58
+ ModelEvaluationSlice::Slice::SliceSpec::SliceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig").msgclass
59
+ ModelEvaluationSlice::Slice::SliceSpec::Range = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range").msgclass
60
+ ModelEvaluationSlice::Slice::SliceSpec::Value = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value").msgclass
33
61
  end
34
62
  end
35
63
  end
@@ -8,12 +8,14 @@ require 'google/api/client_pb'
8
8
  require 'google/api/field_behavior_pb'
9
9
  require 'google/api/resource_pb'
10
10
  require 'google/cloud/aiplatform/v1/encryption_spec_pb'
11
+ require 'google/cloud/aiplatform/v1/evaluated_annotation_pb'
11
12
  require 'google/cloud/aiplatform/v1/io_pb'
12
13
  require 'google/cloud/aiplatform/v1/model_pb'
13
14
  require 'google/cloud/aiplatform/v1/model_evaluation_pb'
14
15
  require 'google/cloud/aiplatform/v1/model_evaluation_slice_pb'
15
16
  require 'google/cloud/aiplatform/v1/operation_pb'
16
17
  require 'google/longrunning/operations_pb'
18
+ require 'google/protobuf/empty_pb'
17
19
  require 'google/protobuf/field_mask_pb'
18
20
 
19
21
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -119,6 +121,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
119
121
  add_message "google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse" do
120
122
  repeated :imported_model_evaluation_slices, :string, 1
121
123
  end
124
+ add_message "google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest" do
125
+ optional :parent, :string, 1
126
+ repeated :evaluated_annotations, :message, 2, "google.cloud.aiplatform.v1.EvaluatedAnnotation"
127
+ end
128
+ add_message "google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse" do
129
+ optional :imported_evaluated_annotations_count, :int32, 1
130
+ end
122
131
  add_message "google.cloud.aiplatform.v1.GetModelEvaluationRequest" do
123
132
  optional :name, :string, 1
124
133
  end
@@ -177,6 +186,8 @@ module Google
177
186
  ImportModelEvaluationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ImportModelEvaluationRequest").msgclass
178
187
  BatchImportModelEvaluationSlicesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest").msgclass
179
188
  BatchImportModelEvaluationSlicesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse").msgclass
189
+ BatchImportEvaluatedAnnotationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest").msgclass
190
+ BatchImportEvaluatedAnnotationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse").msgclass
180
191
  GetModelEvaluationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.GetModelEvaluationRequest").msgclass
181
192
  ListModelEvaluationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListModelEvaluationsRequest").msgclass
182
193
  ListModelEvaluationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListModelEvaluationsResponse").msgclass
@@ -54,8 +54,9 @@ module Google
54
54
  rpc :DeleteModel, ::Google::Cloud::AIPlatform::V1::DeleteModelRequest, ::Google::Longrunning::Operation
55
55
  # Deletes a Model version.
56
56
  #
57
- # Model version can only be deleted if there are no [DeployedModels][]
58
- # created from it. Deleting the only version in the Model is not allowed. Use
57
+ # Model version can only be deleted if there are no
58
+ # [DeployedModels][google.cloud.aiplatform.v1.DeployedModel] created from it.
59
+ # Deleting the only version in the Model is not allowed. Use
59
60
  # [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for
60
61
  # deleting the Model instead.
61
62
  rpc :DeleteModelVersion, ::Google::Cloud::AIPlatform::V1::DeleteModelVersionRequest, ::Google::Longrunning::Operation
@@ -77,6 +78,8 @@ module Google
77
78
  rpc :ImportModelEvaluation, ::Google::Cloud::AIPlatform::V1::ImportModelEvaluationRequest, ::Google::Cloud::AIPlatform::V1::ModelEvaluation
78
79
  # Imports a list of externally generated ModelEvaluationSlice.
79
80
  rpc :BatchImportModelEvaluationSlices, ::Google::Cloud::AIPlatform::V1::BatchImportModelEvaluationSlicesRequest, ::Google::Cloud::AIPlatform::V1::BatchImportModelEvaluationSlicesResponse
81
+ # Imports a list of externally generated EvaluatedAnnotations.
82
+ rpc :BatchImportEvaluatedAnnotations, ::Google::Cloud::AIPlatform::V1::BatchImportEvaluatedAnnotationsRequest, ::Google::Cloud::AIPlatform::V1::BatchImportEvaluatedAnnotationsResponse
80
83
  # Gets a ModelEvaluation.
81
84
  rpc :GetModelEvaluation, ::Google::Cloud::AIPlatform::V1::GetModelEvaluationRequest, ::Google::Cloud::AIPlatform::V1::ModelEvaluation
82
85
  # Lists ModelEvaluations in a Model.
@@ -7,6 +7,7 @@ require 'google/api/annotations_pb'
7
7
  require 'google/api/client_pb'
8
8
  require 'google/api/field_behavior_pb'
9
9
  require 'google/api/resource_pb'
10
+ require 'google/cloud/aiplatform/v1/operation_pb'
10
11
  require 'google/cloud/aiplatform/v1/pipeline_job_pb'
11
12
  require 'google/cloud/aiplatform/v1/training_pipeline_pb'
12
13
  require 'google/longrunning/operations_pb'
@@ -10,6 +10,7 @@ require 'google/api/resource_pb'
10
10
  require 'google/cloud/aiplatform/v1/operation_pb'
11
11
  require 'google/cloud/aiplatform/v1/specialist_pool_pb'
12
12
  require 'google/longrunning/operations_pb'
13
+ require 'google/protobuf/empty_pb'
13
14
  require 'google/protobuf/field_mask_pb'
14
15
 
15
16
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -14,6 +14,7 @@ require 'google/cloud/aiplatform/v1/tensorboard_experiment_pb'
14
14
  require 'google/cloud/aiplatform/v1/tensorboard_run_pb'
15
15
  require 'google/cloud/aiplatform/v1/tensorboard_time_series_pb'
16
16
  require 'google/longrunning/operations_pb'
17
+ require 'google/protobuf/empty_pb'
17
18
  require 'google/protobuf/field_mask_pb'
18
19
 
19
20
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -71,7 +71,7 @@ module Google
71
71
  # Checks whether a Trial should stop or not. Returns a
72
72
  # long-running operation. When the operation is successful,
73
73
  # it will contain a
74
- # [CheckTrialEarlyStoppingStateResponse][google.cloud.ml.v1.CheckTrialEarlyStoppingStateResponse].
74
+ # [CheckTrialEarlyStoppingStateResponse][google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse].
75
75
  rpc :CheckTrialEarlyStoppingState, ::Google::Cloud::AIPlatform::V1::CheckTrialEarlyStoppingStateRequest, ::Google::Longrunning::Operation
76
76
  # Stops a Trial.
77
77
  rpc :StopTrial, ::Google::Cloud::AIPlatform::V1::StopTrialRequest, ::Google::Cloud::AIPlatform::V1::Trial
@@ -22,6 +22,7 @@ module Google
22
22
  module AIPlatform
23
23
  module V1
24
24
  # Represents a hardware accelerator type.
25
+ # NEXT ID: 11.
25
26
  module AcceleratorType
26
27
  # Unspecified accelerator type, which means no accelerator.
27
28
  ACCELERATOR_TYPE_UNSPECIFIED = 0
@@ -49,6 +50,9 @@ module Google
49
50
 
50
51
  # TPU v3.
51
52
  TPU_V3 = 7
53
+
54
+ # TPU v4.
55
+ TPU_V4_POD = 10
52
56
  end
53
57
  end
54
58
  end
@@ -42,7 +42,11 @@ module Google
42
42
  # Exactly one of model and unmanaged_container_model must be set.
43
43
  #
44
44
  # The model resource name may contain version id or version alias to specify
45
- # the version, if no version is specified, the default version will be used.
45
+ # the version.
46
+ # Example: `projects/{project}/locations/{location}/models/{model}@2`
47
+ # or
48
+ # `projects/{project}/locations/{location}/models/{model}@golden`
49
+ # if no version is specified, the default version will be deployed.
46
50
  # @!attribute [r] model_version_id
47
51
  # @return [::String]
48
52
  # Output only. The version ID of the Model that produces the predictions via
@@ -197,6 +201,15 @@ module Google
197
201
  # Customer-managed encryption key options for a BatchPredictionJob. If this
198
202
  # is set, then all resources created by the BatchPredictionJob will be
199
203
  # encrypted with the provided encryption key.
204
+ # @!attribute [rw] disable_container_logging
205
+ # @return [::Boolean]
206
+ # For custom-trained Models and AutoML Tabular Models, the container of the
207
+ # DeployedModel instances will send `stderr` and `stdout` streams to
208
+ # Stackdriver Logging by default. Please note that the logs incur cost,
209
+ # which are subject to [Cloud Logging
210
+ # pricing](https://cloud.google.com/stackdriver/pricing).
211
+ #
212
+ # User can disable container logging by setting this flag to true.
200
213
  class BatchPredictionJob
201
214
  include ::Google::Protobuf::MessageExts
202
215
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -177,6 +177,9 @@ module Google
177
177
  # which are named with the corresponding annotations' schema title. Inside
178
178
  # these sub directories, a schema.yaml will be created to describe the
179
179
  # output format.
180
+ # @!attribute [rw] fraction_split
181
+ # @return [::Google::Cloud::AIPlatform::V1::ExportFractionSplit]
182
+ # Split based on fractions defining the size of each set.
180
183
  # @!attribute [rw] annotations_filter
181
184
  # @return [::String]
182
185
  # A filter on Annotations of the Dataset. Only Annotations on to-be-exported
@@ -187,6 +190,26 @@ module Google
187
190
  include ::Google::Protobuf::MessageExts
188
191
  extend ::Google::Protobuf::MessageExts::ClassMethods
189
192
  end
193
+
194
+ # Assigns the input data to training, validation, and test sets as per the
195
+ # given fractions. Any of `training_fraction`, `validation_fraction` and
196
+ # `test_fraction` may optionally be provided, they must sum to up to 1. If the
197
+ # provided ones sum to less than 1, the remainder is assigned to sets as
198
+ # decided by Vertex AI. If none of the fractions are set, by default roughly
199
+ # 80% of data is used for training, 10% for validation, and 10% for test.
200
+ # @!attribute [rw] training_fraction
201
+ # @return [::Float]
202
+ # The fraction of the input data that is to be used to train the Model.
203
+ # @!attribute [rw] validation_fraction
204
+ # @return [::Float]
205
+ # The fraction of the input data that is to be used to validate the Model.
206
+ # @!attribute [rw] test_fraction
207
+ # @return [::Float]
208
+ # The fraction of the input data that is to be used to evaluate the Model.
209
+ class ExportFractionSplit
210
+ include ::Google::Protobuf::MessageExts
211
+ extend ::Google::Protobuf::MessageExts::ClassMethods
212
+ end
190
213
  end
191
214
  end
192
215
  end
@@ -156,7 +156,11 @@ module Google
156
156
  # Endpoint.
157
157
  #
158
158
  # The resource name may contain version id or version alias to specify the
159
- # version, if no version is specified, the default version will be deployed.
159
+ # version.
160
+ # Example: `projects/{project}/locations/{location}/models/{model}@2`
161
+ # or
162
+ # `projects/{project}/locations/{location}/models/{model}@golden`
163
+ # if no version is specified, the default version will be deployed.
160
164
  # @!attribute [r] model_version_id
161
165
  # @return [::String]
162
166
  # Output only. The version ID of the model that is deployed.
@@ -0,0 +1,190 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module AIPlatform
23
+ module V1
24
+ # True positive, false positive, or false negative.
25
+ #
26
+ # EvaluatedAnnotation is only available under ModelEvaluationSlice with slice
27
+ # of `annotationSpec` dimension.
28
+ # @!attribute [r] type
29
+ # @return [::Google::Cloud::AIPlatform::V1::EvaluatedAnnotation::EvaluatedAnnotationType]
30
+ # Output only. Type of the EvaluatedAnnotation.
31
+ # @!attribute [r] predictions
32
+ # @return [::Array<::Google::Protobuf::Value>]
33
+ # Output only. The model predicted annotations.
34
+ #
35
+ # For true positive, there is one and only one prediction, which matches the
36
+ # only one ground truth annotation in
37
+ # {::Google::Cloud::AIPlatform::V1::EvaluatedAnnotation#ground_truths ground_truths}.
38
+ #
39
+ # For false positive, there is one and only one prediction, which doesn't
40
+ # match any ground truth annotation of the corresponding
41
+ # [data_item_view_id][EvaluatedAnnotation.data_item_view_id].
42
+ #
43
+ # For false negative, there are zero or more predictions which are similar to
44
+ # the only ground truth annotation in
45
+ # {::Google::Cloud::AIPlatform::V1::EvaluatedAnnotation#ground_truths ground_truths}
46
+ # but not enough for a match.
47
+ #
48
+ # The schema of the prediction is stored in
49
+ # {::Google::Cloud::AIPlatform::V1::ModelEvaluation#annotation_schema_uri ModelEvaluation.annotation_schema_uri}
50
+ # @!attribute [r] ground_truths
51
+ # @return [::Array<::Google::Protobuf::Value>]
52
+ # Output only. The ground truth Annotations, i.e. the Annotations that exist
53
+ # in the test data the Model is evaluated on.
54
+ #
55
+ # For true positive, there is one and only one ground truth annotation, which
56
+ # matches the only prediction in
57
+ # {::Google::Cloud::AIPlatform::V1::EvaluatedAnnotation#predictions predictions}.
58
+ #
59
+ # For false positive, there are zero or more ground truth annotations that
60
+ # are similar to the only prediction in
61
+ # {::Google::Cloud::AIPlatform::V1::EvaluatedAnnotation#predictions predictions},
62
+ # but not enough for a match.
63
+ #
64
+ # For false negative, there is one and only one ground truth annotation,
65
+ # which doesn't match any predictions created by the model.
66
+ #
67
+ # The schema of the ground truth is stored in
68
+ # {::Google::Cloud::AIPlatform::V1::ModelEvaluation#annotation_schema_uri ModelEvaluation.annotation_schema_uri}
69
+ # @!attribute [r] data_item_payload
70
+ # @return [::Google::Protobuf::Value]
71
+ # Output only. The data item payload that the Model predicted this
72
+ # EvaluatedAnnotation on.
73
+ # @!attribute [r] evaluated_data_item_view_id
74
+ # @return [::String]
75
+ # Output only. ID of the EvaluatedDataItemView under the same ancestor
76
+ # ModelEvaluation. The EvaluatedDataItemView consists of all ground truths
77
+ # and predictions on
78
+ # {::Google::Cloud::AIPlatform::V1::EvaluatedAnnotation#data_item_payload data_item_payload}.
79
+ #
80
+ # Can be passed in
81
+ # [GetEvaluatedDataItemView's][ModelService.GetEvaluatedDataItemView][]
82
+ # [id][GetEvaluatedDataItemViewRequest.id].
83
+ # @!attribute [rw] explanations
84
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::EvaluatedAnnotationExplanation>]
85
+ # Explanations of
86
+ # {::Google::Cloud::AIPlatform::V1::EvaluatedAnnotation#predictions predictions}.
87
+ # Each element of the explanations indicates the explanation for one
88
+ # explanation Method.
89
+ #
90
+ # The attributions list in the
91
+ # {::Google::Cloud::AIPlatform::V1::EvaluatedAnnotationExplanation#explanation EvaluatedAnnotationExplanation.explanation}
92
+ # object corresponds to the
93
+ # {::Google::Cloud::AIPlatform::V1::EvaluatedAnnotation#predictions predictions}
94
+ # list. For example, the second element in the attributions list explains the
95
+ # second element in the predictions list.
96
+ # @!attribute [rw] error_analysis_annotations
97
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::ErrorAnalysisAnnotation>]
98
+ # Annotations of model error analysis results.
99
+ class EvaluatedAnnotation
100
+ include ::Google::Protobuf::MessageExts
101
+ extend ::Google::Protobuf::MessageExts::ClassMethods
102
+
103
+ # Describes the type of the EvaluatedAnnotation. The type is determined
104
+ module EvaluatedAnnotationType
105
+ # Invalid value.
106
+ EVALUATED_ANNOTATION_TYPE_UNSPECIFIED = 0
107
+
108
+ # The EvaluatedAnnotation is a true positive. It has a prediction created
109
+ # by the Model and a ground truth Annotation which the prediction matches.
110
+ TRUE_POSITIVE = 1
111
+
112
+ # The EvaluatedAnnotation is false positive. It has a prediction created by
113
+ # the Model which does not match any ground truth annotation.
114
+ FALSE_POSITIVE = 2
115
+
116
+ # The EvaluatedAnnotation is false negative. It has a ground truth
117
+ # annotation which is not matched by any of the model created predictions.
118
+ FALSE_NEGATIVE = 3
119
+ end
120
+ end
121
+
122
+ # Explanation result of the prediction produced by the Model.
123
+ # @!attribute [rw] explanation_type
124
+ # @return [::String]
125
+ # Explanation type.
126
+ #
127
+ # For AutoML Image Classification models, possible values are:
128
+ #
129
+ # * `image-integrated-gradients`
130
+ # * `image-xrai`
131
+ # @!attribute [rw] explanation
132
+ # @return [::Google::Cloud::AIPlatform::V1::Explanation]
133
+ # Explanation attribution response details.
134
+ class EvaluatedAnnotationExplanation
135
+ include ::Google::Protobuf::MessageExts
136
+ extend ::Google::Protobuf::MessageExts::ClassMethods
137
+ end
138
+
139
+ # Model error analysis for each annotation.
140
+ # @!attribute [rw] attributed_items
141
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::ErrorAnalysisAnnotation::AttributedItem>]
142
+ # Attributed items for a given annotation, typically representing neighbors
143
+ # from the training sets constrained by the query type.
144
+ # @!attribute [rw] query_type
145
+ # @return [::Google::Cloud::AIPlatform::V1::ErrorAnalysisAnnotation::QueryType]
146
+ # The query type used for finding the attributed items.
147
+ # @!attribute [rw] outlier_score
148
+ # @return [::Float]
149
+ # The outlier score of this annotated item. Usually defined as the min of all
150
+ # distances from attributed items.
151
+ # @!attribute [rw] outlier_threshold
152
+ # @return [::Float]
153
+ # The threshold used to determine if this annotation is an outlier or not.
154
+ class ErrorAnalysisAnnotation
155
+ include ::Google::Protobuf::MessageExts
156
+ extend ::Google::Protobuf::MessageExts::ClassMethods
157
+
158
+ # Attributed items for a given annotation, typically representing neighbors
159
+ # from the training sets constrained by the query type.
160
+ # @!attribute [rw] annotation_resource_name
161
+ # @return [::String]
162
+ # The unique ID for each annotation. Used by FE to allocate the annotation
163
+ # in DB.
164
+ # @!attribute [rw] distance
165
+ # @return [::Float]
166
+ # The distance of this item to the annotation.
167
+ class AttributedItem
168
+ include ::Google::Protobuf::MessageExts
169
+ extend ::Google::Protobuf::MessageExts::ClassMethods
170
+ end
171
+
172
+ # The query type used for finding the attributed items.
173
+ module QueryType
174
+ # Unspecified query type for model error analysis.
175
+ QUERY_TYPE_UNSPECIFIED = 0
176
+
177
+ # Query similar samples across all classes in the dataset.
178
+ ALL_SIMILAR = 1
179
+
180
+ # Query similar samples from the same class of the input sample.
181
+ SAME_CLASS_SIMILAR = 2
182
+
183
+ # Query dissimilar samples from the same class of the input sample.
184
+ SAME_CLASS_DISSIMILAR = 3
185
+ end
186
+ end
187
+ end
188
+ end
189
+ end
190
+ end
@@ -97,6 +97,15 @@ module Google
97
97
  # @return [::Integer]
98
98
  # The maximum number of nodes to scale up to. Must be greater than
99
99
  # min_node_count, and less than or equal to 10 times of 'min_node_count'.
100
+ # @!attribute [rw] cpu_utilization_target
101
+ # @return [::Integer]
102
+ # Optional. The cpu utilization that the Autoscaler should be trying to
103
+ # achieve. This number is on a scale from 0 (no utilization) to 100
104
+ # (total utilization), and is limited between 10 and 80. When a cluster's
105
+ # CPU utilization exceeds the target that you have set, Bigtable
106
+ # immediately adds nodes to the cluster. When CPU utilization is
107
+ # substantially lower than the target, Bigtable removes nodes. If not set
108
+ # or set to 0, default to 50.
100
109
  class Scaling
101
110
  include ::Google::Protobuf::MessageExts
102
111
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -67,12 +67,6 @@ module Google
67
67
  # @return [::Integer]
68
68
  # Configuration of the snapshot analysis based monitoring pipeline
69
69
  # running interval. The value indicates number of days.
70
- # If both
71
- # {::Google::Cloud::AIPlatform::V1::FeaturestoreMonitoringConfig::SnapshotAnalysis#monitoring_interval_days FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days}
72
- # and [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][]
73
- # are set when creating/updating EntityTypes/Features,
74
- # {::Google::Cloud::AIPlatform::V1::FeaturestoreMonitoringConfig::SnapshotAnalysis#monitoring_interval_days FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days}
75
- # will be used.
76
70
  # @!attribute [rw] staleness_days
77
71
  # @return [::Integer]
78
72
  # Customized export features time window for snapshot analysis. Unit is one
@@ -85,7 +79,9 @@ module Google
85
79
 
86
80
  # Configuration of the Featurestore's ImportFeature Analysis Based
87
81
  # Monitoring. This type of analysis generates statistics for values of each
88
- # Feature imported by every [ImportFeatureValues][] operation.
82
+ # Feature imported by every
83
+ # {::Google::Cloud::AIPlatform::V1::FeaturestoreService::Client#import_feature_values ImportFeatureValues}
84
+ # operation.
89
85
  # @!attribute [rw] state
90
86
  # @return [::Google::Cloud::AIPlatform::V1::FeaturestoreMonitoringConfig::ImportFeaturesAnalysis::State]
91
87
  # Whether to enable / disable / inherite default hebavior for import
@@ -123,7 +119,9 @@ module Google
123
119
  end
124
120
 
125
121
  # Defines the baseline to do anomaly detection for feature values imported
126
- # by each [ImportFeatureValues][] operation.
122
+ # by each
123
+ # {::Google::Cloud::AIPlatform::V1::FeaturestoreService::Client#import_feature_values ImportFeatureValues}
124
+ # operation.
127
125
  module Baseline
128
126
  # Should not be used.
129
127
  BASELINE_UNSPECIFIED = 0