google-cloud-ai_platform-v1 0.23.0 → 0.25.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +4 -2
  3. data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +3 -1
  4. data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +4 -2
  5. data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +3 -1
  6. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +4 -2
  7. data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +5 -3
  8. data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +3 -1
  9. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +4 -2
  10. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +3 -1
  11. data/lib/google/cloud/ai_platform/v1/index_service/client.rb +4 -2
  12. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +3 -1
  13. data/lib/google/cloud/ai_platform/v1/job_service/client.rb +4 -2
  14. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +3 -1
  15. data/lib/google/cloud/ai_platform/v1/match_service/client.rb +533 -0
  16. data/lib/google/cloud/ai_platform/v1/match_service/credentials.rb +47 -0
  17. data/lib/google/cloud/ai_platform/v1/match_service/paths.rb +52 -0
  18. data/lib/google/cloud/ai_platform/v1/match_service.rb +50 -0
  19. data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +16 -5
  20. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +3 -1
  21. data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +4 -2
  22. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +3 -1
  23. data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +424 -0
  24. data/lib/google/cloud/ai_platform/v1/model_garden_service/credentials.rb +47 -0
  25. data/lib/google/cloud/ai_platform/v1/model_garden_service/paths.rb +50 -0
  26. data/lib/google/cloud/ai_platform/v1/model_garden_service.rb +49 -0
  27. data/lib/google/cloud/ai_platform/v1/model_service/client.rb +4 -2
  28. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +3 -1
  29. data/lib/google/cloud/ai_platform/v1/model_service/paths.rb +19 -0
  30. data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +4 -2
  31. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +3 -1
  32. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +5 -4
  33. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +4 -2
  34. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +3 -1
  35. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +4 -2
  36. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +3 -1
  37. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  38. data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +6 -3
  39. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +3 -1
  40. data/lib/google/cloud/ai_platform/v1.rb +2 -0
  41. data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +24 -14
  42. data/lib/google/cloud/aiplatform/v1/annotation_pb.rb +27 -11
  43. data/lib/google/cloud/aiplatform/v1/annotation_spec_pb.rb +25 -8
  44. data/lib/google/cloud/aiplatform/v1/artifact_pb.rb +26 -20
  45. data/lib/google/cloud/aiplatform/v1/batch_prediction_job_pb.rb +34 -57
  46. data/lib/google/cloud/aiplatform/v1/completion_stats_pb.rb +24 -7
  47. data/lib/google/cloud/aiplatform/v1/context_pb.rb +26 -14
  48. data/lib/google/cloud/aiplatform/v1/custom_job_pb.rb +31 -55
  49. data/lib/google/cloud/aiplatform/v1/data_item_pb.rb +26 -9
  50. data/lib/google/cloud/aiplatform/v1/data_labeling_job_pb.rb +29 -45
  51. data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +29 -37
  52. data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +30 -121
  53. data/lib/google/cloud/aiplatform/v1/deployed_index_ref_pb.rb +24 -5
  54. data/lib/google/cloud/aiplatform/v1/deployed_model_ref_pb.rb +24 -5
  55. data/lib/google/cloud/aiplatform/v1/encryption_spec_pb.rb +24 -4
  56. data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +29 -44
  57. data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +27 -63
  58. data/lib/google/cloud/aiplatform/v1/entity_type_pb.rb +26 -11
  59. data/lib/google/cloud/aiplatform/v1/env_var_pb.rb +24 -5
  60. data/lib/google/cloud/aiplatform/v1/evaluated_annotation_pb.rb +26 -36
  61. data/lib/google/cloud/aiplatform/v1/event_pb.rb +25 -13
  62. data/lib/google/cloud/aiplatform/v1/execution_pb.rb +26 -23
  63. data/lib/google/cloud/aiplatform/v1/explanation_metadata_pb.rb +25 -78
  64. data/lib/google/cloud/aiplatform/v1/explanation_pb.rb +34 -92
  65. data/lib/google/cloud/aiplatform/v1/feature_monitoring_stats_pb.rb +25 -10
  66. data/lib/google/cloud/aiplatform/v1/feature_pb.rb +26 -33
  67. data/lib/google/cloud/aiplatform/v1/feature_selector_pb.rb +24 -7
  68. data/lib/google/cloud/aiplatform/v1/featurestore_monitoring_pb.rb +24 -33
  69. data/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb +27 -62
  70. data/lib/google/cloud/aiplatform/v1/featurestore_pb.rb +26 -26
  71. data/lib/google/cloud/aiplatform/v1/featurestore_service_pb.rb +33 -249
  72. data/lib/google/cloud/aiplatform/v1/hyperparameter_tuning_job_pb.rb +29 -19
  73. data/lib/google/cloud/aiplatform/v1/index_endpoint_pb.rb +27 -41
  74. data/lib/google/cloud/aiplatform/v1/index_endpoint_service_pb.rb +27 -60
  75. data/lib/google/cloud/aiplatform/v1/index_pb.rb +27 -38
  76. data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +27 -73
  77. data/lib/google/cloud/aiplatform/v1/io_pb.rb +24 -28
  78. data/lib/google/cloud/aiplatform/v1/job_service_pb.rb +33 -186
  79. data/lib/google/cloud/aiplatform/v1/job_state_pb.rb +24 -14
  80. data/lib/google/cloud/aiplatform/v1/lineage_subgraph_pb.rb +27 -6
  81. data/lib/google/cloud/aiplatform/v1/machine_resources_pb.rb +24 -37
  82. data/lib/google/cloud/aiplatform/v1/manual_batch_tuning_parameters_pb.rb +24 -4
  83. data/lib/google/cloud/aiplatform/v1/match_service_pb.rb +55 -0
  84. data/lib/google/cloud/aiplatform/v1/match_service_services_pb.rb +49 -0
  85. data/lib/google/cloud/aiplatform/v1/metadata_schema_pb.rb +25 -15
  86. data/lib/google/cloud/aiplatform/v1/metadata_service_pb.rb +32 -203
  87. data/lib/google/cloud/aiplatform/v1/metadata_store_pb.rb +26 -12
  88. data/lib/google/cloud/aiplatform/v1/migratable_resource_pb.rb +25 -32
  89. data/lib/google/cloud/aiplatform/v1/migration_service_pb.rb +27 -66
  90. data/lib/google/cloud/aiplatform/v1/model_deployment_monitoring_job_pb.rb +32 -78
  91. data/lib/google/cloud/aiplatform/v1/model_evaluation_pb.rb +27 -18
  92. data/lib/google/cloud/aiplatform/v1/model_evaluation_slice_pb.rb +28 -34
  93. data/lib/google/cloud/aiplatform/v1/model_garden_service_pb.rb +49 -0
  94. data/lib/google/cloud/aiplatform/v1/model_garden_service_services_pb.rb +45 -0
  95. data/lib/google/cloud/aiplatform/v1/model_monitoring_pb.rb +25 -63
  96. data/lib/google/cloud/aiplatform/v1/model_pb.rb +31 -78
  97. data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +32 -137
  98. data/lib/google/cloud/aiplatform/v1/nas_job_pb.rb +29 -84
  99. data/lib/google/cloud/aiplatform/v1/operation_pb.rb +26 -9
  100. data/lib/google/cloud/aiplatform/v1/pipeline_failure_policy_pb.rb +24 -6
  101. data/lib/google/cloud/aiplatform/v1/pipeline_job_pb.rb +32 -91
  102. data/lib/google/cloud/aiplatform/v1/pipeline_service_pb.rb +27 -51
  103. data/lib/google/cloud/aiplatform/v1/pipeline_state_pb.rb +24 -12
  104. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +27 -29
  105. data/lib/google/cloud/aiplatform/v1/prediction_service_services_pb.rb +1 -2
  106. data/lib/google/cloud/aiplatform/v1/publisher_model_pb.rb +57 -0
  107. data/lib/google/cloud/aiplatform/v1/saved_query_pb.rb +26 -13
  108. data/lib/google/cloud/aiplatform/v1/service_networking_pb.rb +24 -5
  109. data/lib/google/cloud/aiplatform/v1/specialist_pool_pb.rb +24 -9
  110. data/lib/google/cloud/aiplatform/v1/specialist_pool_service_pb.rb +27 -33
  111. data/lib/google/cloud/aiplatform/v1/study_pb.rb +27 -157
  112. data/lib/google/cloud/aiplatform/v1/tensorboard_data_pb.rb +25 -29
  113. data/lib/google/cloud/aiplatform/v1/tensorboard_experiment_pb.rb +25 -11
  114. data/lib/google/cloud/aiplatform/v1/tensorboard_pb.rb +26 -14
  115. data/lib/google/cloud/aiplatform/v1/tensorboard_run_pb.rb +25 -10
  116. data/lib/google/cloud/aiplatform/v1/tensorboard_service_pb.rb +31 -186
  117. data/lib/google/cloud/aiplatform/v1/tensorboard_time_series_pb.rb +25 -24
  118. data/lib/google/cloud/aiplatform/v1/training_pipeline_pb.rb +30 -63
  119. data/lib/google/cloud/aiplatform/v1/types_pb.rb +24 -13
  120. data/lib/google/cloud/aiplatform/v1/unmanaged_container_model_pb.rb +25 -6
  121. data/lib/google/cloud/aiplatform/v1/user_action_reference_pb.rb +24 -8
  122. data/lib/google/cloud/aiplatform/v1/value_pb.rb +24 -8
  123. data/lib/google/cloud/aiplatform/v1/vizier_service_pb.rb +27 -88
  124. data/lib/google/cloud/aiplatform/v1/vizier_service_services_pb.rb +2 -1
  125. data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +3 -0
  126. data/proto_docs/google/cloud/aiplatform/v1/explanation.rb +89 -0
  127. data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +6 -2
  128. data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +7 -8
  129. data/proto_docs/google/cloud/aiplatform/v1/match_service.rb +156 -0
  130. data/proto_docs/google/cloud/aiplatform/v1/metadata_service.rb +12 -3
  131. data/proto_docs/google/cloud/aiplatform/v1/model.rb +14 -0
  132. data/proto_docs/google/cloud/aiplatform/v1/model_evaluation.rb +3 -2
  133. data/proto_docs/google/cloud/aiplatform/v1/model_garden_service.rb +61 -0
  134. data/proto_docs/google/cloud/aiplatform/v1/publisher_model.rb +235 -0
  135. data/proto_docs/google/cloud/aiplatform/v1/tensorboard_experiment.rb +2 -1
  136. data/proto_docs/google/protobuf/any.rb +7 -4
  137. data/proto_docs/google/protobuf/struct.rb +1 -1
  138. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  139. metadata +20 -4
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/aiplatform/v1/model_monitoring.proto
3
4
 
@@ -6,71 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/api/resource_pb'
7
8
  require 'google/cloud/aiplatform/v1/io_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/aiplatform/v1/model_monitoring.proto", :syntax => :proto3) do
11
- add_message "google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig" do
12
- optional :training_dataset, :message, 1, "google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset"
13
- optional :training_prediction_skew_detection_config, :message, 2, "google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig"
14
- optional :prediction_drift_detection_config, :message, 3, "google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig"
15
- optional :explanation_config, :message, 5, "google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig"
16
- end
17
- add_message "google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset" do
18
- optional :data_format, :string, 2
19
- optional :target_field, :string, 6
20
- optional :logging_sampling_strategy, :message, 7, "google.cloud.aiplatform.v1.SamplingStrategy"
21
- oneof :data_source do
22
- optional :dataset, :string, 3
23
- optional :gcs_source, :message, 4, "google.cloud.aiplatform.v1.GcsSource"
24
- optional :bigquery_source, :message, 5, "google.cloud.aiplatform.v1.BigQuerySource"
25
- end
26
- end
27
- add_message "google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig" do
28
- map :skew_thresholds, :string, :message, 1, "google.cloud.aiplatform.v1.ThresholdConfig"
29
- map :attribution_score_skew_thresholds, :string, :message, 2, "google.cloud.aiplatform.v1.ThresholdConfig"
30
- optional :default_skew_threshold, :message, 6, "google.cloud.aiplatform.v1.ThresholdConfig"
31
- end
32
- add_message "google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig" do
33
- map :drift_thresholds, :string, :message, 1, "google.cloud.aiplatform.v1.ThresholdConfig"
34
- map :attribution_score_drift_thresholds, :string, :message, 2, "google.cloud.aiplatform.v1.ThresholdConfig"
35
- optional :default_drift_threshold, :message, 5, "google.cloud.aiplatform.v1.ThresholdConfig"
36
- end
37
- add_message "google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig" do
38
- optional :enable_feature_attributes, :bool, 1
39
- optional :explanation_baseline, :message, 2, "google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline"
40
- end
41
- add_message "google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline" do
42
- optional :prediction_format, :enum, 1, "google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat"
43
- oneof :destination do
44
- optional :gcs, :message, 2, "google.cloud.aiplatform.v1.GcsDestination"
45
- optional :bigquery, :message, 3, "google.cloud.aiplatform.v1.BigQueryDestination"
46
- end
47
- end
48
- add_enum "google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat" do
49
- value :PREDICTION_FORMAT_UNSPECIFIED, 0
50
- value :JSONL, 2
51
- value :BIGQUERY, 3
52
- end
53
- add_message "google.cloud.aiplatform.v1.ModelMonitoringAlertConfig" do
54
- optional :enable_logging, :bool, 2
55
- oneof :alert do
56
- optional :email_alert_config, :message, 1, "google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig"
57
- end
58
- end
59
- add_message "google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig" do
60
- repeated :user_emails, :string, 1
61
- end
62
- add_message "google.cloud.aiplatform.v1.ThresholdConfig" do
63
- oneof :threshold do
64
- optional :value, :double, 1
65
- end
66
- end
67
- add_message "google.cloud.aiplatform.v1.SamplingStrategy" do
68
- optional :random_sample_config, :message, 1, "google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig"
69
- end
70
- add_message "google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig" do
71
- optional :sample_rate, :double, 1
10
+
11
+ descriptor_data = "\n1google/cloud/aiplatform/v1/model_monitoring.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x19google/api/resource.proto\x1a#google/cloud/aiplatform/v1/io.proto\"\xbf\x15\n\x1eModelMonitoringObjectiveConfig\x12\x64\n\x10training_dataset\x18\x01 \x01(\x0b\x32J.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset\x12\x93\x01\n)training_prediction_skew_detection_config\x18\x02 \x01(\x0b\x32`.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig\x12\x84\x01\n!prediction_drift_detection_config\x18\x03 \x01(\x0b\x32Y.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig\x12h\n\x12\x65xplanation_config\x18\x05 \x01(\x0b\x32L.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig\x1a\xdb\x02\n\x0fTrainingDataset\x12\x39\n\x07\x64\x61taset\x18\x03 \x01(\tB&\xfa\x41#\n!aiplatform.googleapis.com/DatasetH\x00\x12;\n\ngcs_source\x18\x04 \x01(\x0b\x32%.google.cloud.aiplatform.v1.GcsSourceH\x00\x12\x45\n\x0f\x62igquery_source\x18\x05 \x01(\x0b\x32*.google.cloud.aiplatform.v1.BigQuerySourceH\x00\x12\x13\n\x0b\x64\x61ta_format\x18\x02 \x01(\t\x12\x14\n\x0ctarget_field\x18\x06 \x01(\t\x12O\n\x19logging_sampling_strategy\x18\x07 \x01(\x0b\x32,.google.cloud.aiplatform.v1.SamplingStrategyB\r\n\x0b\x64\x61ta_source\x1a\x8f\x05\n%TrainingPredictionSkewDetectionConfig\x12\x8d\x01\n\x0fskew_thresholds\x18\x01 \x03(\x0b\x32t.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.SkewThresholdsEntry\x12\xb0\x01\n!attribution_score_skew_thresholds\x18\x02 \x03(\x0b\x32\x84\x01.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.AttributionScoreSkewThresholdsEntry\x12K\n\x16\x64\x65\x66\x61ult_skew_threshold\x18\x06 \x01(\x0b\x32+.google.cloud.aiplatform.v1.ThresholdConfig\x1a\x62\n\x13SkewThresholdsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12:\n\x05value\x18\x02 \x01(\x0b\x32+.google.cloud.aiplatform.v1.ThresholdConfig:\x02\x38\x01\x1ar\n#AttributionScoreSkewThresholdsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12:\n\x05value\x18\x02 \x01(\x0b\x32+.google.cloud.aiplatform.v1.ThresholdConfig:\x02\x38\x01\x1a\x80\x05\n\x1ePredictionDriftDetectionConfig\x12\x88\x01\n\x10\x64rift_thresholds\x18\x01 \x03(\x0b\x32n.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.DriftThresholdsEntry\x12\xaa\x01\n\"attribution_score_drift_thresholds\x18\x02 \x03(\x0b\x32~.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.AttributionScoreDriftThresholdsEntry\x12L\n\x17\x64\x65\x66\x61ult_drift_threshold\x18\x05 \x01(\x0b\x32+.google.cloud.aiplatform.v1.ThresholdConfig\x1a\x63\n\x14\x44riftThresholdsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12:\n\x05value\x18\x02 \x01(\x0b\x32+.google.cloud.aiplatform.v1.ThresholdConfig:\x02\x38\x01\x1as\n$AttributionScoreDriftThresholdsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12:\n\x05value\x18\x02 \x01(\x0b\x32+.google.cloud.aiplatform.v1.ThresholdConfig:\x02\x38\x01\x1a\xbc\x04\n\x11\x45xplanationConfig\x12!\n\x19\x65nable_feature_attributes\x18\x01 \x01(\x08\x12~\n\x14\x65xplanation_baseline\x18\x02 \x01(\x0b\x32`.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline\x1a\x83\x03\n\x13\x45xplanationBaseline\x12\x39\n\x03gcs\x18\x02 \x01(\x0b\x32*.google.cloud.aiplatform.v1.GcsDestinationH\x00\x12\x43\n\x08\x62igquery\x18\x03 \x01(\x0b\x32/.google.cloud.aiplatform.v1.BigQueryDestinationH\x00\x12\x8c\x01\n\x11prediction_format\x18\x01 \x01(\x0e\x32q.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat\"N\n\x10PredictionFormat\x12!\n\x1dPREDICTION_FORMAT_UNSPECIFIED\x10\x00\x12\t\n\x05JSONL\x10\x02\x12\x0c\n\x08\x42IGQUERY\x10\x03\x42\r\n\x0b\x64\x65stination\"\xcd\x01\n\x1aModelMonitoringAlertConfig\x12\x65\n\x12\x65mail_alert_config\x18\x01 \x01(\x0b\x32G.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfigH\x00\x12\x16\n\x0e\x65nable_logging\x18\x02 \x01(\x08\x1a\'\n\x10\x45mailAlertConfig\x12\x13\n\x0buser_emails\x18\x01 \x03(\tB\x07\n\x05\x61lert\"/\n\x0fThresholdConfig\x12\x0f\n\x05value\x18\x01 \x01(\x01H\x00\x42\x0b\n\tthreshold\"\x9c\x01\n\x10SamplingStrategy\x12]\n\x14random_sample_config\x18\x01 \x01(\x0b\x32?.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig\x1a)\n\x12RandomSampleConfig\x12\x13\n\x0bsample_rate\x18\x01 \x01(\x01\x42\xc4\x02\n\x1e\x63om.google.cloud.aiplatform.v1B\x14ModelMonitoringProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1\xea\x41o\n-monitoring.googleapis.com/NotificationChannel\x12>projects/{project}/notificationChannels/{notification_channel}b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.cloud.aiplatform.v1.GcsSource", "google/cloud/aiplatform/v1/io.proto"],
27
+ ]
28
+ imports.each do |type_name, expected_filename|
29
+ import_file = pool.lookup(type_name).file_descriptor
30
+ if import_file.name != expected_filename
31
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
72
32
  end
73
33
  end
34
+ warn "Each proto file must use a consistent fully-qualified name."
35
+ warn "This will become an error in the next major version."
74
36
  end
75
37
 
76
38
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/aiplatform/v1/model.proto
3
4
 
@@ -12,86 +13,37 @@ require 'google/cloud/aiplatform/v1/explanation_pb'
12
13
  require 'google/protobuf/struct_pb'
13
14
  require 'google/protobuf/timestamp_pb'
14
15
 
15
- Google::Protobuf::DescriptorPool.generated_pool.build do
16
- add_file("google/cloud/aiplatform/v1/model.proto", :syntax => :proto3) do
17
- add_message "google.cloud.aiplatform.v1.Model" do
18
- optional :name, :string, 1
19
- optional :version_id, :string, 28
20
- repeated :version_aliases, :string, 29
21
- optional :version_create_time, :message, 31, "google.protobuf.Timestamp"
22
- optional :version_update_time, :message, 32, "google.protobuf.Timestamp"
23
- optional :display_name, :string, 2
24
- optional :description, :string, 3
25
- optional :version_description, :string, 30
26
- optional :predict_schemata, :message, 4, "google.cloud.aiplatform.v1.PredictSchemata"
27
- optional :metadata_schema_uri, :string, 5
28
- optional :metadata, :message, 6, "google.protobuf.Value"
29
- repeated :supported_export_formats, :message, 20, "google.cloud.aiplatform.v1.Model.ExportFormat"
30
- optional :training_pipeline, :string, 7
31
- optional :container_spec, :message, 9, "google.cloud.aiplatform.v1.ModelContainerSpec"
32
- optional :artifact_uri, :string, 26
33
- repeated :supported_deployment_resources_types, :enum, 10, "google.cloud.aiplatform.v1.Model.DeploymentResourcesType"
34
- repeated :supported_input_storage_formats, :string, 11
35
- repeated :supported_output_storage_formats, :string, 12
36
- optional :create_time, :message, 13, "google.protobuf.Timestamp"
37
- optional :update_time, :message, 14, "google.protobuf.Timestamp"
38
- repeated :deployed_models, :message, 15, "google.cloud.aiplatform.v1.DeployedModelRef"
39
- optional :explanation_spec, :message, 23, "google.cloud.aiplatform.v1.ExplanationSpec"
40
- optional :etag, :string, 16
41
- map :labels, :string, :string, 17
42
- optional :encryption_spec, :message, 24, "google.cloud.aiplatform.v1.EncryptionSpec"
43
- optional :model_source_info, :message, 38, "google.cloud.aiplatform.v1.ModelSourceInfo"
44
- optional :original_model_info, :message, 34, "google.cloud.aiplatform.v1.Model.OriginalModelInfo"
45
- optional :metadata_artifact, :string, 44
46
- end
47
- add_message "google.cloud.aiplatform.v1.Model.ExportFormat" do
48
- optional :id, :string, 1
49
- repeated :exportable_contents, :enum, 2, "google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent"
50
- end
51
- add_enum "google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent" do
52
- value :EXPORTABLE_CONTENT_UNSPECIFIED, 0
53
- value :ARTIFACT, 1
54
- value :IMAGE, 2
55
- end
56
- add_message "google.cloud.aiplatform.v1.Model.OriginalModelInfo" do
57
- optional :model, :string, 1
58
- end
59
- add_enum "google.cloud.aiplatform.v1.Model.DeploymentResourcesType" do
60
- value :DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED, 0
61
- value :DEDICATED_RESOURCES, 1
62
- value :AUTOMATIC_RESOURCES, 2
63
- value :SHARED_RESOURCES, 3
64
- end
65
- add_message "google.cloud.aiplatform.v1.PredictSchemata" do
66
- optional :instance_schema_uri, :string, 1
67
- optional :parameters_schema_uri, :string, 2
68
- optional :prediction_schema_uri, :string, 3
69
- end
70
- add_message "google.cloud.aiplatform.v1.ModelContainerSpec" do
71
- optional :image_uri, :string, 1
72
- repeated :command, :string, 2
73
- repeated :args, :string, 3
74
- repeated :env, :message, 4, "google.cloud.aiplatform.v1.EnvVar"
75
- repeated :ports, :message, 5, "google.cloud.aiplatform.v1.Port"
76
- optional :predict_route, :string, 6
77
- optional :health_route, :string, 7
78
- end
79
- add_message "google.cloud.aiplatform.v1.Port" do
80
- optional :container_port, :int32, 3
81
- end
82
- add_message "google.cloud.aiplatform.v1.ModelSourceInfo" do
83
- optional :source_type, :enum, 1, "google.cloud.aiplatform.v1.ModelSourceInfo.ModelSourceType"
84
- optional :copy, :bool, 2
85
- end
86
- add_enum "google.cloud.aiplatform.v1.ModelSourceInfo.ModelSourceType" do
87
- value :MODEL_SOURCE_TYPE_UNSPECIFIED, 0
88
- value :AUTOML, 1
89
- value :CUSTOM, 2
90
- value :BQML, 3
91
- value :MODEL_GARDEN, 4
92
- value :GENIE, 5
16
+
17
+ descriptor_data = "\n&google/cloud/aiplatform/v1/model.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x33google/cloud/aiplatform/v1/deployed_model_ref.proto\x1a\x30google/cloud/aiplatform/v1/encryption_spec.proto\x1a(google/cloud/aiplatform/v1/env_var.proto\x1a,google/cloud/aiplatform/v1/explanation.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdc\x10\n\x05Model\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1a\n\nversion_id\x18\x1c \x01(\tB\x06\xe0\x41\x05\xe0\x41\x03\x12\x17\n\x0fversion_aliases\x18\x1d \x03(\t\x12<\n\x13version_create_time\x18\x1f \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12<\n\x13version_update_time\x18 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x1b\n\x13version_description\x18\x1e \x01(\t\x12\x45\n\x10predict_schemata\x18\x04 \x01(\x0b\x32+.google.cloud.aiplatform.v1.PredictSchemata\x12 \n\x13metadata_schema_uri\x18\x05 \x01(\tB\x03\xe0\x41\x05\x12-\n\x08metadata\x18\x06 \x01(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x05\x12U\n\x18supported_export_formats\x18\x14 \x03(\x0b\x32..google.cloud.aiplatform.v1.Model.ExportFormatB\x03\xe0\x41\x03\x12M\n\x11training_pipeline\x18\x07 \x01(\tB2\xe0\x41\x03\xfa\x41,\n*aiplatform.googleapis.com/TrainingPipeline\x12@\n\x0cpipeline_job\x18/ \x01(\tB*\xfa\x41\'\n%aiplatform.googleapis.com/PipelineJob\x12K\n\x0e\x63ontainer_spec\x18\t \x01(\x0b\x32..google.cloud.aiplatform.v1.ModelContainerSpecB\x03\xe0\x41\x04\x12\x19\n\x0c\x61rtifact_uri\x18\x1a \x01(\tB\x03\xe0\x41\x05\x12l\n$supported_deployment_resources_types\x18\n \x03(\x0e\x32\x39.google.cloud.aiplatform.v1.Model.DeploymentResourcesTypeB\x03\xe0\x41\x03\x12,\n\x1fsupported_input_storage_formats\x18\x0b \x03(\tB\x03\xe0\x41\x03\x12-\n supported_output_storage_formats\x18\x0c \x03(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12J\n\x0f\x64\x65ployed_models\x18\x0f \x03(\x0b\x32,.google.cloud.aiplatform.v1.DeployedModelRefB\x03\xe0\x41\x03\x12\x45\n\x10\x65xplanation_spec\x18\x17 \x01(\x0b\x32+.google.cloud.aiplatform.v1.ExplanationSpec\x12\x0c\n\x04\x65tag\x18\x10 \x01(\t\x12=\n\x06labels\x18\x11 \x03(\x0b\x32-.google.cloud.aiplatform.v1.Model.LabelsEntry\x12\x43\n\x0f\x65ncryption_spec\x18\x18 \x01(\x0b\x32*.google.cloud.aiplatform.v1.EncryptionSpec\x12K\n\x11model_source_info\x18& \x01(\x0b\x32+.google.cloud.aiplatform.v1.ModelSourceInfoB\x03\xe0\x41\x03\x12U\n\x13original_model_info\x18\" \x01(\x0b\x32\x33.google.cloud.aiplatform.v1.Model.OriginalModelInfoB\x03\xe0\x41\x03\x12\x1e\n\x11metadata_artifact\x18, \x01(\tB\x03\xe0\x41\x03\x1a\xd5\x01\n\x0c\x45xportFormat\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x62\n\x13\x65xportable_contents\x18\x02 \x03(\x0e\x32@.google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContentB\x03\xe0\x41\x03\"P\n\x11\x45xportableContent\x12\"\n\x1e\x45XPORTABLE_CONTENT_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x41RTIFACT\x10\x01\x12\t\n\x05IMAGE\x10\x02\x1aK\n\x11OriginalModelInfo\x12\x36\n\x05model\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Model\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x8c\x01\n\x17\x44\x65ploymentResourcesType\x12)\n%DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED\x10\x00\x12\x17\n\x13\x44\x45\x44ICATED_RESOURCES\x10\x01\x12\x17\n\x13\x41UTOMATIC_RESOURCES\x10\x02\x12\x14\n\x10SHARED_RESOURCES\x10\x03:\\\xea\x41Y\n\x1f\x61iplatform.googleapis.com/Model\x12\x36projects/{project}/locations/{location}/models/{model}\"(\n\x13LargeModelReference\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"{\n\x0fPredictSchemata\x12 \n\x13instance_schema_uri\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\"\n\x15parameters_schema_uri\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\"\n\x15prediction_schema_uri\x18\x03 \x01(\tB\x03\xe0\x41\x05\"\xfb\x01\n\x12ModelContainerSpec\x12\x19\n\timage_uri\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x14\n\x07\x63ommand\x18\x02 \x03(\tB\x03\xe0\x41\x05\x12\x11\n\x04\x61rgs\x18\x03 \x03(\tB\x03\xe0\x41\x05\x12\x34\n\x03\x65nv\x18\x04 \x03(\x0b\x32\".google.cloud.aiplatform.v1.EnvVarB\x03\xe0\x41\x05\x12\x34\n\x05ports\x18\x05 \x03(\x0b\x32 .google.cloud.aiplatform.v1.PortB\x03\xe0\x41\x05\x12\x1a\n\rpredict_route\x18\x06 \x01(\tB\x03\xe0\x41\x05\x12\x19\n\x0chealth_route\x18\x07 \x01(\tB\x03\xe0\x41\x05\"\x1e\n\x04Port\x12\x16\n\x0e\x63ontainer_port\x18\x03 \x01(\x05\"\xe6\x01\n\x0fModelSourceInfo\x12P\n\x0bsource_type\x18\x01 \x01(\x0e\x32;.google.cloud.aiplatform.v1.ModelSourceInfo.ModelSourceType\x12\x0c\n\x04\x63opy\x18\x02 \x01(\x08\"s\n\x0fModelSourceType\x12!\n\x1dMODEL_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41UTOML\x10\x01\x12\n\n\x06\x43USTOM\x10\x02\x12\x08\n\x04\x42QML\x10\x03\x12\x10\n\x0cMODEL_GARDEN\x10\x04\x12\t\n\x05GENIE\x10\x05\x42\xc8\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\nModelProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1b\x06proto3"
18
+
19
+ pool = Google::Protobuf::DescriptorPool.generated_pool
20
+
21
+ begin
22
+ pool.add_serialized_file(descriptor_data)
23
+ rescue TypeError => e
24
+ # Compatibility code: will be removed in the next major version.
25
+ require 'google/protobuf/descriptor_pb'
26
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
27
+ parsed.clear_dependency
28
+ serialized = parsed.class.encode(parsed)
29
+ file = pool.add_serialized_file(serialized)
30
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
31
+ imports = [
32
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
33
+ ["google.protobuf.Value", "google/protobuf/struct.proto"],
34
+ ["google.cloud.aiplatform.v1.DeployedModelRef", "google/cloud/aiplatform/v1/deployed_model_ref.proto"],
35
+ ["google.cloud.aiplatform.v1.ExplanationSpec", "google/cloud/aiplatform/v1/explanation.proto"],
36
+ ["google.cloud.aiplatform.v1.EncryptionSpec", "google/cloud/aiplatform/v1/encryption_spec.proto"],
37
+ ["google.cloud.aiplatform.v1.EnvVar", "google/cloud/aiplatform/v1/env_var.proto"],
38
+ ]
39
+ imports.each do |type_name, expected_filename|
40
+ import_file = pool.lookup(type_name).file_descriptor
41
+ if import_file.name != expected_filename
42
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
93
43
  end
94
44
  end
45
+ warn "Each proto file must use a consistent fully-qualified name."
46
+ warn "This will become an error in the next major version."
95
47
  end
96
48
 
97
49
  module Google
@@ -103,6 +55,7 @@ module Google
103
55
  Model::ExportFormat::ExportableContent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent").enummodule
104
56
  Model::OriginalModelInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Model.OriginalModelInfo").msgclass
105
57
  Model::DeploymentResourcesType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Model.DeploymentResourcesType").enummodule
58
+ LargeModelReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.LargeModelReference").msgclass
106
59
  PredictSchemata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.PredictSchemata").msgclass
107
60
  ModelContainerSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ModelContainerSpec").msgclass
108
61
  Port = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Port").msgclass
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/aiplatform/v1/model_service.proto
3
4
 
@@ -18,145 +19,39 @@ require 'google/longrunning/operations_pb'
18
19
  require 'google/protobuf/empty_pb'
19
20
  require 'google/protobuf/field_mask_pb'
20
21
 
21
- Google::Protobuf::DescriptorPool.generated_pool.build do
22
- add_file("google/cloud/aiplatform/v1/model_service.proto", :syntax => :proto3) do
23
- add_message "google.cloud.aiplatform.v1.UploadModelRequest" do
24
- optional :parent, :string, 1
25
- optional :parent_model, :string, 4
26
- optional :model_id, :string, 5
27
- optional :model, :message, 2, "google.cloud.aiplatform.v1.Model"
28
- optional :service_account, :string, 6
29
- end
30
- add_message "google.cloud.aiplatform.v1.UploadModelOperationMetadata" do
31
- optional :generic_metadata, :message, 1, "google.cloud.aiplatform.v1.GenericOperationMetadata"
32
- end
33
- add_message "google.cloud.aiplatform.v1.UploadModelResponse" do
34
- optional :model, :string, 1
35
- optional :model_version_id, :string, 2
36
- end
37
- add_message "google.cloud.aiplatform.v1.GetModelRequest" do
38
- optional :name, :string, 1
39
- end
40
- add_message "google.cloud.aiplatform.v1.ListModelsRequest" do
41
- optional :parent, :string, 1
42
- optional :filter, :string, 2
43
- optional :page_size, :int32, 3
44
- optional :page_token, :string, 4
45
- optional :read_mask, :message, 5, "google.protobuf.FieldMask"
46
- optional :order_by, :string, 6
47
- end
48
- add_message "google.cloud.aiplatform.v1.ListModelsResponse" do
49
- repeated :models, :message, 1, "google.cloud.aiplatform.v1.Model"
50
- optional :next_page_token, :string, 2
51
- end
52
- add_message "google.cloud.aiplatform.v1.ListModelVersionsRequest" do
53
- optional :name, :string, 1
54
- optional :page_size, :int32, 2
55
- optional :page_token, :string, 3
56
- optional :filter, :string, 4
57
- optional :read_mask, :message, 5, "google.protobuf.FieldMask"
58
- optional :order_by, :string, 6
59
- end
60
- add_message "google.cloud.aiplatform.v1.ListModelVersionsResponse" do
61
- repeated :models, :message, 1, "google.cloud.aiplatform.v1.Model"
62
- optional :next_page_token, :string, 2
63
- end
64
- add_message "google.cloud.aiplatform.v1.UpdateModelRequest" do
65
- optional :model, :message, 1, "google.cloud.aiplatform.v1.Model"
66
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
67
- end
68
- add_message "google.cloud.aiplatform.v1.DeleteModelRequest" do
69
- optional :name, :string, 1
70
- end
71
- add_message "google.cloud.aiplatform.v1.DeleteModelVersionRequest" do
72
- optional :name, :string, 1
73
- end
74
- add_message "google.cloud.aiplatform.v1.MergeVersionAliasesRequest" do
75
- optional :name, :string, 1
76
- repeated :version_aliases, :string, 2
77
- end
78
- add_message "google.cloud.aiplatform.v1.ExportModelRequest" do
79
- optional :name, :string, 1
80
- optional :output_config, :message, 2, "google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig"
81
- end
82
- add_message "google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig" do
83
- optional :export_format_id, :string, 1
84
- optional :artifact_destination, :message, 3, "google.cloud.aiplatform.v1.GcsDestination"
85
- optional :image_destination, :message, 4, "google.cloud.aiplatform.v1.ContainerRegistryDestination"
86
- end
87
- add_message "google.cloud.aiplatform.v1.ExportModelOperationMetadata" do
88
- optional :generic_metadata, :message, 1, "google.cloud.aiplatform.v1.GenericOperationMetadata"
89
- optional :output_info, :message, 2, "google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo"
90
- end
91
- add_message "google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo" do
92
- optional :artifact_output_uri, :string, 2
93
- optional :image_output_uri, :string, 3
94
- end
95
- add_message "google.cloud.aiplatform.v1.ExportModelResponse" do
96
- end
97
- add_message "google.cloud.aiplatform.v1.CopyModelRequest" do
98
- optional :parent, :string, 1
99
- optional :source_model, :string, 2
100
- optional :encryption_spec, :message, 3, "google.cloud.aiplatform.v1.EncryptionSpec"
101
- oneof :destination_model do
102
- optional :model_id, :string, 4
103
- optional :parent_model, :string, 5
104
- end
105
- end
106
- add_message "google.cloud.aiplatform.v1.CopyModelOperationMetadata" do
107
- optional :generic_metadata, :message, 1, "google.cloud.aiplatform.v1.GenericOperationMetadata"
108
- end
109
- add_message "google.cloud.aiplatform.v1.CopyModelResponse" do
110
- optional :model, :string, 1
111
- optional :model_version_id, :string, 2
112
- end
113
- add_message "google.cloud.aiplatform.v1.ImportModelEvaluationRequest" do
114
- optional :parent, :string, 1
115
- optional :model_evaluation, :message, 2, "google.cloud.aiplatform.v1.ModelEvaluation"
116
- end
117
- add_message "google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest" do
118
- optional :parent, :string, 1
119
- repeated :model_evaluation_slices, :message, 2, "google.cloud.aiplatform.v1.ModelEvaluationSlice"
120
- end
121
- add_message "google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse" do
122
- repeated :imported_model_evaluation_slices, :string, 1
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
131
- add_message "google.cloud.aiplatform.v1.GetModelEvaluationRequest" do
132
- optional :name, :string, 1
133
- end
134
- add_message "google.cloud.aiplatform.v1.ListModelEvaluationsRequest" do
135
- optional :parent, :string, 1
136
- optional :filter, :string, 2
137
- optional :page_size, :int32, 3
138
- optional :page_token, :string, 4
139
- optional :read_mask, :message, 5, "google.protobuf.FieldMask"
140
- end
141
- add_message "google.cloud.aiplatform.v1.ListModelEvaluationsResponse" do
142
- repeated :model_evaluations, :message, 1, "google.cloud.aiplatform.v1.ModelEvaluation"
143
- optional :next_page_token, :string, 2
144
- end
145
- add_message "google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest" do
146
- optional :name, :string, 1
147
- end
148
- add_message "google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest" do
149
- optional :parent, :string, 1
150
- optional :filter, :string, 2
151
- optional :page_size, :int32, 3
152
- optional :page_token, :string, 4
153
- optional :read_mask, :message, 5, "google.protobuf.FieldMask"
154
- end
155
- add_message "google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse" do
156
- repeated :model_evaluation_slices, :message, 1, "google.cloud.aiplatform.v1.ModelEvaluationSlice"
157
- optional :next_page_token, :string, 2
22
+
23
+ descriptor_data = "\n.google/cloud/aiplatform/v1/model_service.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/aiplatform/v1/encryption_spec.proto\x1a\x35google/cloud/aiplatform/v1/evaluated_annotation.proto\x1a#google/cloud/aiplatform/v1/io.proto\x1a&google/cloud/aiplatform/v1/model.proto\x1a\x31google/cloud/aiplatform/v1/model_evaluation.proto\x1a\x37google/cloud/aiplatform/v1/model_evaluation_slice.proto\x1a*google/cloud/aiplatform/v1/operation.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xd6\x01\n\x12UploadModelRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x19\n\x0cparent_model\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08model_id\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x35\n\x05model\x18\x02 \x01(\x0b\x32!.google.cloud.aiplatform.v1.ModelB\x03\xe0\x41\x02\x12\x1c\n\x0fservice_account\x18\x06 \x01(\tB\x03\xe0\x41\x01\"n\n\x1cUploadModelOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\"i\n\x13UploadModelResponse\x12\x33\n\x05model\x18\x01 \x01(\tB$\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Model\x12\x1d\n\x10model_version_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\"H\n\x0fGetModelRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Model\"\xc6\x01\n\x11ListModelsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x10\n\x08order_by\x18\x06 \x01(\t\"`\n\x12ListModelsResponse\x12\x31\n\x06models\x18\x01 \x03(\x0b\x32!.google.cloud.aiplatform.v1.Model\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xc9\x01\n\x18ListModelVersionsRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Model\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x10\n\x08order_by\x18\x06 \x01(\t\"g\n\x19ListModelVersionsResponse\x12\x31\n\x06models\x18\x01 \x03(\x0b\x32!.google.cloud.aiplatform.v1.Model\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x81\x01\n\x12UpdateModelRequest\x12\x35\n\x05model\x18\x01 \x01(\x0b\x32!.google.cloud.aiplatform.v1.ModelB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"K\n\x12\x44\x65leteModelRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Model\"R\n\x19\x44\x65leteModelVersionRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Model\"q\n\x1aMergeVersionAliasesRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Model\x12\x1c\n\x0fversion_aliases\x18\x02 \x03(\tB\x03\xe0\x41\x02\"\xee\x02\n\x12\x45xportModelRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Model\x12W\n\routput_config\x18\x02 \x01(\x0b\x32;.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfigB\x03\xe0\x41\x02\x1a\xc7\x01\n\x0cOutputConfig\x12\x18\n\x10\x65xport_format_id\x18\x01 \x01(\t\x12H\n\x14\x61rtifact_destination\x18\x03 \x01(\x0b\x32*.google.cloud.aiplatform.v1.GcsDestination\x12S\n\x11image_destination\x18\x04 \x01(\x0b\x32\x38.google.cloud.aiplatform.v1.ContainerRegistryDestination\"\x9c\x02\n\x1c\x45xportModelOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12]\n\x0boutput_info\x18\x02 \x01(\x0b\x32\x43.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfoB\x03\xe0\x41\x03\x1aM\n\nOutputInfo\x12 \n\x13\x61rtifact_output_uri\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10image_output_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\x15\n\x13\x45xportModelResponse\"\xc0\x02\n\x10\x43opyModelRequest\x12\x17\n\x08model_id\x18\x04 \x01(\tB\x03\xe0\x41\x01H\x00\x12?\n\x0cparent_model\x18\x05 \x01(\tB\'\xe0\x41\x01\xfa\x41!\n\x1f\x61iplatform.googleapis.com/ModelH\x00\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12=\n\x0csource_model\x18\x02 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Model\x12\x43\n\x0f\x65ncryption_spec\x18\x03 \x01(\x0b\x32*.google.cloud.aiplatform.v1.EncryptionSpecB\x13\n\x11\x64\x65stination_model\"l\n\x1a\x43opyModelOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\"g\n\x11\x43opyModelResponse\x12\x33\n\x05model\x18\x01 \x01(\tB$\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Model\x12\x1d\n\x10model_version_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xa3\x01\n\x1cImportModelEvaluationRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Model\x12J\n\x10model_evaluation\x18\x02 \x01(\x0b\x32+.google.cloud.aiplatform.v1.ModelEvaluationB\x03\xe0\x41\x02\"\xc4\x01\n\'BatchImportModelEvaluationSlicesRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)aiplatform.googleapis.com/ModelEvaluation\x12V\n\x17model_evaluation_slices\x18\x02 \x03(\x0b\x32\x30.google.cloud.aiplatform.v1.ModelEvaluationSliceB\x03\xe0\x41\x02\"Y\n(BatchImportModelEvaluationSlicesResponse\x12-\n imported_model_evaluation_slices\x18\x01 \x03(\tB\x03\xe0\x41\x03\"\xc5\x01\n&BatchImportEvaluatedAnnotationsRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.aiplatform.googleapis.com/ModelEvaluationSlice\x12S\n\x15\x65valuated_annotations\x18\x02 \x03(\x0b\x32/.google.cloud.aiplatform.v1.EvaluatedAnnotationB\x03\xe0\x41\x02\"\\\n\'BatchImportEvaluatedAnnotationsResponse\x12\x31\n$imported_evaluated_annotations_count\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03\"\\\n\x19GetModelEvaluationRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)aiplatform.googleapis.com/ModelEvaluation\"\xbc\x01\n\x1bListModelEvaluationsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Model\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x7f\n\x1cListModelEvaluationsResponse\x12\x46\n\x11model_evaluations\x18\x01 \x03(\x0b\x32+.google.cloud.aiplatform.v1.ModelEvaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"f\n\x1eGetModelEvaluationSliceRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.aiplatform.googleapis.com/ModelEvaluationSlice\"\xcb\x01\n ListModelEvaluationSlicesRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)aiplatform.googleapis.com/ModelEvaluation\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x8f\x01\n!ListModelEvaluationSlicesResponse\x12Q\n\x17model_evaluation_slices\x18\x01 \x03(\x0b\x32\x30.google.cloud.aiplatform.v1.ModelEvaluationSlice\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xfa\x1d\n\x0cModelService\x12\xe0\x01\n\x0bUploadModel\x12..google.cloud.aiplatform.v1.UploadModelRequest\x1a\x1d.google.longrunning.Operation\"\x81\x01\x82\xd3\xe4\x93\x02\x36\"1/v1/{parent=projects/*/locations/*}/models:upload:\x01*\xda\x41\x0cparent,model\xca\x41\x33\n\x13UploadModelResponse\x12\x1cUploadModelOperationMetadata\x12\x95\x01\n\x08GetModel\x12+.google.cloud.aiplatform.v1.GetModelRequest\x1a!.google.cloud.aiplatform.v1.Model\"9\x82\xd3\xe4\x93\x02,\x12*/v1/{name=projects/*/locations/*/models/*}\xda\x41\x04name\x12\xa8\x01\n\nListModels\x12-.google.cloud.aiplatform.v1.ListModelsRequest\x1a..google.cloud.aiplatform.v1.ListModelsResponse\";\x82\xd3\xe4\x93\x02,\x12*/v1/{parent=projects/*/locations/*}/models\xda\x41\x06parent\x12\xc8\x01\n\x11ListModelVersions\x12\x34.google.cloud.aiplatform.v1.ListModelVersionsRequest\x1a\x35.google.cloud.aiplatform.v1.ListModelVersionsResponse\"F\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{name=projects/*/locations/*/models/*}:listVersions\xda\x41\x04name\x12\xb5\x01\n\x0bUpdateModel\x12..google.cloud.aiplatform.v1.UpdateModelRequest\x1a!.google.cloud.aiplatform.v1.Model\"S\x82\xd3\xe4\x93\x02\x39\x32\x30/v1/{model.name=projects/*/locations/*/models/*}:\x05model\xda\x41\x11model,update_mask\x12\xca\x01\n\x0b\x44\x65leteModel\x12..google.cloud.aiplatform.v1.DeleteModelRequest\x1a\x1d.google.longrunning.Operation\"l\x82\xd3\xe4\x93\x02,**/v1/{name=projects/*/locations/*/models/*}\xda\x41\x04name\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteOperationMetadata\x12\xe6\x01\n\x12\x44\x65leteModelVersion\x12\x35.google.cloud.aiplatform.v1.DeleteModelVersionRequest\x1a\x1d.google.longrunning.Operation\"z\x82\xd3\xe4\x93\x02:*8/v1/{name=projects/*/locations/*/models/*}:deleteVersion\xda\x41\x04name\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteOperationMetadata\x12\xd2\x01\n\x13MergeVersionAliases\x12\x36.google.cloud.aiplatform.v1.MergeVersionAliasesRequest\x1a!.google.cloud.aiplatform.v1.Model\"`\x82\xd3\xe4\x93\x02\x43\">/v1/{name=projects/*/locations/*/models/*}:mergeVersionAliases:\x01*\xda\x41\x14name,version_aliases\x12\xe6\x01\n\x0b\x45xportModel\x12..google.cloud.aiplatform.v1.ExportModelRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\x82\xd3\xe4\x93\x02\x36\"1/v1/{name=projects/*/locations/*/models/*}:export:\x01*\xda\x41\x12name,output_config\xca\x41\x33\n\x13\x45xportModelResponse\x12\x1c\x45xportModelOperationMetadata\x12\xdd\x01\n\tCopyModel\x12,.google.cloud.aiplatform.v1.CopyModelRequest\x1a\x1d.google.longrunning.Operation\"\x82\x01\x82\xd3\xe4\x93\x02\x34\"//v1/{parent=projects/*/locations/*}/models:copy:\x01*\xda\x41\x13parent,source_model\xca\x41/\n\x11\x43opyModelResponse\x12\x1a\x43opyModelOperationMetadata\x12\xe4\x01\n\x15ImportModelEvaluation\x12\x38.google.cloud.aiplatform.v1.ImportModelEvaluationRequest\x1a+.google.cloud.aiplatform.v1.ModelEvaluation\"d\x82\xd3\xe4\x93\x02\x44\"?/v1/{parent=projects/*/locations/*/models/*}/evaluations:import:\x01*\xda\x41\x17parent,model_evaluation\x12\xa8\x02\n BatchImportModelEvaluationSlices\x12\x43.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest\x1a\x44.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse\"y\x82\xd3\xe4\x93\x02R\"M/v1/{parent=projects/*/locations/*/models/*/evaluations/*}/slices:batchImport:\x01*\xda\x41\x1eparent,model_evaluation_slices\x12\xa5\x02\n\x1f\x42\x61tchImportEvaluatedAnnotations\x12\x42.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest\x1a\x43.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse\"y\x82\xd3\xe4\x93\x02T\"O/v1/{parent=projects/*/locations/*/models/*/evaluations/*/slices/*}:batchImport:\x01*\xda\x41\x1cparent,evaluated_annotations\x12\xc1\x01\n\x12GetModelEvaluation\x12\x35.google.cloud.aiplatform.v1.GetModelEvaluationRequest\x1a+.google.cloud.aiplatform.v1.ModelEvaluation\"G\x82\xd3\xe4\x93\x02:\x12\x38/v1/{name=projects/*/locations/*/models/*/evaluations/*}\xda\x41\x04name\x12\xd4\x01\n\x14ListModelEvaluations\x12\x37.google.cloud.aiplatform.v1.ListModelEvaluationsRequest\x1a\x38.google.cloud.aiplatform.v1.ListModelEvaluationsResponse\"I\x82\xd3\xe4\x93\x02:\x12\x38/v1/{parent=projects/*/locations/*/models/*}/evaluations\xda\x41\x06parent\x12\xd9\x01\n\x17GetModelEvaluationSlice\x12:.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest\x1a\x30.google.cloud.aiplatform.v1.ModelEvaluationSlice\"P\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/models/*/evaluations/*/slices/*}\xda\x41\x04name\x12\xec\x01\n\x19ListModelEvaluationSlices\x12<.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest\x1a=.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse\"R\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{parent=projects/*/locations/*/models/*/evaluations/*}/slices\xda\x41\x06parent\x1aM\xca\x41\x19\x61iplatform.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xcf\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x11ModelServiceProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1b\x06proto3"
24
+
25
+ pool = Google::Protobuf::DescriptorPool.generated_pool
26
+
27
+ begin
28
+ pool.add_serialized_file(descriptor_data)
29
+ rescue TypeError => e
30
+ # Compatibility code: will be removed in the next major version.
31
+ require 'google/protobuf/descriptor_pb'
32
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
33
+ parsed.clear_dependency
34
+ serialized = parsed.class.encode(parsed)
35
+ file = pool.add_serialized_file(serialized)
36
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
37
+ imports = [
38
+ ["google.cloud.aiplatform.v1.Model", "google/cloud/aiplatform/v1/model.proto"],
39
+ ["google.cloud.aiplatform.v1.GenericOperationMetadata", "google/cloud/aiplatform/v1/operation.proto"],
40
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
41
+ ["google.cloud.aiplatform.v1.GcsDestination", "google/cloud/aiplatform/v1/io.proto"],
42
+ ["google.cloud.aiplatform.v1.EncryptionSpec", "google/cloud/aiplatform/v1/encryption_spec.proto"],
43
+ ["google.cloud.aiplatform.v1.ModelEvaluation", "google/cloud/aiplatform/v1/model_evaluation.proto"],
44
+ ["google.cloud.aiplatform.v1.ModelEvaluationSlice", "google/cloud/aiplatform/v1/model_evaluation_slice.proto"],
45
+ ["google.cloud.aiplatform.v1.EvaluatedAnnotation", "google/cloud/aiplatform/v1/evaluated_annotation.proto"],
46
+ ]
47
+ imports.each do |type_name, expected_filename|
48
+ import_file = pool.lookup(type_name).file_descriptor
49
+ if import_file.name != expected_filename
50
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
158
51
  end
159
52
  end
53
+ warn "Each proto file must use a consistent fully-qualified name."
54
+ warn "This will become an error in the next major version."
160
55
  end
161
56
 
162
57
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/aiplatform/v1/nas_job.proto
3
4
 
@@ -12,92 +13,36 @@ require 'google/cloud/aiplatform/v1/study_pb'
12
13
  require 'google/protobuf/timestamp_pb'
13
14
  require 'google/rpc/status_pb'
14
15
 
15
- Google::Protobuf::DescriptorPool.generated_pool.build do
16
- add_file("google/cloud/aiplatform/v1/nas_job.proto", :syntax => :proto3) do
17
- add_message "google.cloud.aiplatform.v1.NasJob" do
18
- optional :name, :string, 1
19
- optional :display_name, :string, 2
20
- optional :nas_job_spec, :message, 4, "google.cloud.aiplatform.v1.NasJobSpec"
21
- optional :nas_job_output, :message, 5, "google.cloud.aiplatform.v1.NasJobOutput"
22
- optional :state, :enum, 6, "google.cloud.aiplatform.v1.JobState"
23
- optional :create_time, :message, 7, "google.protobuf.Timestamp"
24
- optional :start_time, :message, 8, "google.protobuf.Timestamp"
25
- optional :end_time, :message, 9, "google.protobuf.Timestamp"
26
- optional :update_time, :message, 10, "google.protobuf.Timestamp"
27
- optional :error, :message, 11, "google.rpc.Status"
28
- map :labels, :string, :string, 12
29
- optional :encryption_spec, :message, 13, "google.cloud.aiplatform.v1.EncryptionSpec"
30
- optional :enable_restricted_image_training, :bool, 14
31
- end
32
- add_message "google.cloud.aiplatform.v1.NasTrialDetail" do
33
- optional :name, :string, 1
34
- optional :parameters, :string, 2
35
- optional :search_trial, :message, 3, "google.cloud.aiplatform.v1.NasTrial"
36
- optional :train_trial, :message, 4, "google.cloud.aiplatform.v1.NasTrial"
37
- end
38
- add_message "google.cloud.aiplatform.v1.NasJobSpec" do
39
- optional :resume_nas_job_id, :string, 3
40
- optional :search_space_spec, :string, 1
41
- oneof :nas_algorithm_spec do
42
- optional :multi_trial_algorithm_spec, :message, 2, "google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec"
43
- end
44
- end
45
- add_message "google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec" do
46
- optional :multi_trial_algorithm, :enum, 1, "google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm"
47
- optional :metric, :message, 2, "google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec"
48
- optional :search_trial_spec, :message, 3, "google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec"
49
- optional :train_trial_spec, :message, 4, "google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec"
50
- end
51
- add_message "google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec" do
52
- optional :metric_id, :string, 1
53
- optional :goal, :enum, 2, "google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType"
54
- end
55
- add_enum "google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType" do
56
- value :GOAL_TYPE_UNSPECIFIED, 0
57
- value :MAXIMIZE, 1
58
- value :MINIMIZE, 2
59
- end
60
- add_message "google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec" do
61
- optional :search_trial_job_spec, :message, 1, "google.cloud.aiplatform.v1.CustomJobSpec"
62
- optional :max_trial_count, :int32, 2
63
- optional :max_parallel_trial_count, :int32, 3
64
- optional :max_failed_trial_count, :int32, 4
65
- end
66
- add_message "google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec" do
67
- optional :train_trial_job_spec, :message, 1, "google.cloud.aiplatform.v1.CustomJobSpec"
68
- optional :max_parallel_trial_count, :int32, 2
69
- optional :frequency, :int32, 3
70
- end
71
- add_enum "google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm" do
72
- value :MULTI_TRIAL_ALGORITHM_UNSPECIFIED, 0
73
- value :REINFORCEMENT_LEARNING, 1
74
- value :GRID_SEARCH, 2
75
- end
76
- add_message "google.cloud.aiplatform.v1.NasJobOutput" do
77
- oneof :output do
78
- optional :multi_trial_job_output, :message, 1, "google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput"
79
- end
80
- end
81
- add_message "google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput" do
82
- repeated :search_trials, :message, 1, "google.cloud.aiplatform.v1.NasTrial"
83
- repeated :train_trials, :message, 2, "google.cloud.aiplatform.v1.NasTrial"
84
- end
85
- add_message "google.cloud.aiplatform.v1.NasTrial" do
86
- optional :id, :string, 1
87
- optional :state, :enum, 2, "google.cloud.aiplatform.v1.NasTrial.State"
88
- optional :final_measurement, :message, 3, "google.cloud.aiplatform.v1.Measurement"
89
- optional :start_time, :message, 4, "google.protobuf.Timestamp"
90
- optional :end_time, :message, 5, "google.protobuf.Timestamp"
91
- end
92
- add_enum "google.cloud.aiplatform.v1.NasTrial.State" do
93
- value :STATE_UNSPECIFIED, 0
94
- value :REQUESTED, 1
95
- value :ACTIVE, 2
96
- value :STOPPING, 3
97
- value :SUCCEEDED, 4
98
- value :INFEASIBLE, 5
16
+
17
+ descriptor_data = "\n(google/cloud/aiplatform/v1/nas_job.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/aiplatform/v1/custom_job.proto\x1a\x30google/cloud/aiplatform/v1/encryption_spec.proto\x1a*google/cloud/aiplatform/v1/job_state.proto\x1a&google/cloud/aiplatform/v1/study.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xbd\x06\n\x06NasJob\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x0cnas_job_spec\x18\x04 \x01(\x0b\x32&.google.cloud.aiplatform.v1.NasJobSpecB\x03\xe0\x41\x02\x12\x45\n\x0enas_job_output\x18\x05 \x01(\x0b\x32(.google.cloud.aiplatform.v1.NasJobOutputB\x03\xe0\x41\x03\x12\x38\n\x05state\x18\x06 \x01(\x0e\x32$.google.cloud.aiplatform.v1.JobStateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12&\n\x05\x65rror\x18\x0b \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12>\n\x06labels\x18\x0c \x03(\x0b\x32..google.cloud.aiplatform.v1.NasJob.LabelsEntry\x12\x43\n\x0f\x65ncryption_spec\x18\r \x01(\x0b\x32*.google.cloud.aiplatform.v1.EncryptionSpec\x12/\n enable_restricted_image_training\x18\x0e \x01(\x08\x42\x05\x18\x01\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:`\xea\x41]\n aiplatform.googleapis.com/NasJob\x12\x39projects/{project}/locations/{location}/nasJobs/{nas_job}\"\xbd\x02\n\x0eNasTrialDetail\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\nparameters\x18\x02 \x01(\t\x12:\n\x0csearch_trial\x18\x03 \x01(\x0b\x32$.google.cloud.aiplatform.v1.NasTrial\x12\x39\n\x0btrain_trial\x18\x04 \x01(\x0b\x32$.google.cloud.aiplatform.v1.NasTrial:\x8c\x01\xea\x41\x88\x01\n(aiplatform.googleapis.com/NasTrialDetail\x12\\projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}\"\xa5\n\n\nNasJobSpec\x12\x64\n\x1amulti_trial_algorithm_spec\x18\x02 \x01(\x0b\x32>.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpecH\x00\x12\x19\n\x11resume_nas_job_id\x18\x03 \x01(\t\x12\x19\n\x11search_space_spec\x18\x01 \x01(\t\x1a\xe4\x08\n\x17MultiTrialAlgorithmSpec\x12q\n\x15multi_trial_algorithm\x18\x01 \x01(\x0e\x32R.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm\x12Y\n\x06metric\x18\x02 \x01(\x0b\x32I.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec\x12n\n\x11search_trial_spec\x18\x03 \x01(\x0b\x32N.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpecB\x03\xe0\x41\x02\x12g\n\x10train_trial_spec\x18\x04 \x01(\x0b\x32M.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec\x1a\xce\x01\n\nMetricSpec\x12\x16\n\tmetric_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x65\n\x04goal\x18\x02 \x01(\x0e\x32R.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalTypeB\x03\xe0\x41\x02\"A\n\x08GoalType\x12\x19\n\x15GOAL_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\x12\x0c\n\x08MINIMIZE\x10\x02\x1a\xc5\x01\n\x0fSearchTrialSpec\x12M\n\x15search_trial_job_spec\x18\x01 \x01(\x0b\x32).google.cloud.aiplatform.v1.CustomJobSpecB\x03\xe0\x41\x02\x12\x1c\n\x0fmax_trial_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12%\n\x18max_parallel_trial_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1e\n\x16max_failed_trial_count\x18\x04 \x01(\x05\x1a\x9d\x01\n\x0eTrainTrialSpec\x12L\n\x14train_trial_job_spec\x18\x01 \x01(\x0b\x32).google.cloud.aiplatform.v1.CustomJobSpecB\x03\xe0\x41\x02\x12%\n\x18max_parallel_trial_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12\x16\n\tfrequency\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02\"i\n\x13MultiTrialAlgorithm\x12%\n!MULTI_TRIAL_ALGORITHM_UNSPECIFIED\x10\x00\x12\x1a\n\x16REINFORCEMENT_LEARNING\x10\x01\x12\x0f\n\x0bGRID_SEARCH\x10\x02\x42\x14\n\x12nas_algorithm_spec\"\x98\x02\n\x0cNasJobOutput\x12\x63\n\x16multi_trial_job_output\x18\x01 \x01(\x0b\x32<.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutputB\x03\xe0\x41\x03H\x00\x1a\x98\x01\n\x13MultiTrialJobOutput\x12@\n\rsearch_trials\x18\x01 \x03(\x0b\x32$.google.cloud.aiplatform.v1.NasTrialB\x03\xe0\x41\x03\x12?\n\x0ctrain_trials\x18\x02 \x03(\x0b\x32$.google.cloud.aiplatform.v1.NasTrialB\x03\xe0\x41\x03\x42\x08\n\x06output\"\xf4\x02\n\x08NasTrial\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12>\n\x05state\x18\x02 \x01(\x0e\x32*.google.cloud.aiplatform.v1.NasTrial.StateB\x03\xe0\x41\x03\x12G\n\x11\x66inal_measurement\x18\x03 \x01(\x0b\x32\'.google.cloud.aiplatform.v1.MeasurementB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"f\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\r\n\tREQUESTED\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08STOPPING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\x0e\n\nINFEASIBLE\x10\x05\x42\xc9\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x0bNasJobProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1b\x06proto3"
18
+
19
+ pool = Google::Protobuf::DescriptorPool.generated_pool
20
+
21
+ begin
22
+ pool.add_serialized_file(descriptor_data)
23
+ rescue TypeError => e
24
+ # Compatibility code: will be removed in the next major version.
25
+ require 'google/protobuf/descriptor_pb'
26
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
27
+ parsed.clear_dependency
28
+ serialized = parsed.class.encode(parsed)
29
+ file = pool.add_serialized_file(serialized)
30
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
31
+ imports = [
32
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
33
+ ["google.rpc.Status", "google/rpc/status.proto"],
34
+ ["google.cloud.aiplatform.v1.EncryptionSpec", "google/cloud/aiplatform/v1/encryption_spec.proto"],
35
+ ["google.cloud.aiplatform.v1.CustomJobSpec", "google/cloud/aiplatform/v1/custom_job.proto"],
36
+ ["google.cloud.aiplatform.v1.Measurement", "google/cloud/aiplatform/v1/study.proto"],
37
+ ]
38
+ imports.each do |type_name, expected_filename|
39
+ import_file = pool.lookup(type_name).file_descriptor
40
+ if import_file.name != expected_filename
41
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
99
42
  end
100
43
  end
44
+ warn "Each proto file must use a consistent fully-qualified name."
45
+ warn "This will become an error in the next major version."
101
46
  end
102
47
 
103
48
  module Google