google-cloud-ai_platform-v1 0.35.0 → 0.36.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +72 -99
  3. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +43 -17
  4. data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +28 -6
  5. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/client.rb +896 -0
  6. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/credentials.rb +47 -0
  7. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/operations.rb +809 -0
  8. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/paths.rb +83 -0
  9. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service.rb +50 -0
  10. data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +43 -17
  11. data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +28 -6
  12. data/lib/google/cloud/ai_platform/v1/endpoint_service/paths.rb +19 -0
  13. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +46 -18
  14. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +28 -6
  15. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/client.rb +146 -17
  16. data/lib/google/cloud/ai_platform/v1/feature_online_store_service.rb +2 -0
  17. data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +44 -18
  18. data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +28 -6
  19. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +42 -17
  20. data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +44 -18
  21. data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +28 -6
  22. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +43 -17
  23. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +28 -6
  24. data/lib/google/cloud/ai_platform/v1/index_service/client.rb +52 -18
  25. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +28 -6
  26. data/lib/google/cloud/ai_platform/v1/job_service/client.rb +43 -17
  27. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +28 -6
  28. data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +49 -18
  29. data/lib/google/cloud/ai_platform/v1/match_service/client.rb +42 -17
  30. data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +43 -17
  31. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +28 -6
  32. data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +43 -17
  33. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +28 -6
  34. data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +42 -17
  35. data/lib/google/cloud/ai_platform/v1/model_service/client.rb +47 -21
  36. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +28 -6
  37. data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +43 -17
  38. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +28 -6
  39. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +544 -20
  40. data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +43 -17
  41. data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +28 -6
  42. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +43 -17
  43. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +28 -6
  44. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +43 -17
  45. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +28 -6
  46. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  47. data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +43 -17
  48. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +28 -6
  49. data/lib/google/cloud/ai_platform/v1.rb +1 -0
  50. data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -1
  51. data/lib/google/cloud/aiplatform/v1/annotation_pb.rb +1 -1
  52. data/lib/google/cloud/aiplatform/v1/annotation_spec_pb.rb +1 -1
  53. data/lib/google/cloud/aiplatform/v1/artifact_pb.rb +1 -1
  54. data/lib/google/cloud/aiplatform/v1/batch_prediction_job_pb.rb +1 -1
  55. data/lib/google/cloud/aiplatform/v1/completion_stats_pb.rb +1 -1
  56. data/lib/google/cloud/aiplatform/v1/content_pb.rb +64 -0
  57. data/lib/google/cloud/aiplatform/v1/context_pb.rb +1 -1
  58. data/lib/google/cloud/aiplatform/v1/custom_job_pb.rb +2 -2
  59. data/lib/google/cloud/aiplatform/v1/data_item_pb.rb +1 -1
  60. data/lib/google/cloud/aiplatform/v1/data_labeling_job_pb.rb +1 -1
  61. data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +4 -2
  62. data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +4 -2
  63. data/lib/google/cloud/aiplatform/v1/dataset_version_pb.rb +1 -1
  64. data/lib/google/cloud/aiplatform/v1/deployed_index_ref_pb.rb +2 -2
  65. data/lib/google/cloud/aiplatform/v1/deployed_model_ref_pb.rb +1 -1
  66. data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_pb.rb +49 -0
  67. data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_service_pb.rb +65 -0
  68. data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_service_services_pb.rb +53 -0
  69. data/lib/google/cloud/aiplatform/v1/encryption_spec_pb.rb +1 -1
  70. data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +2 -2
  71. data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +2 -2
  72. data/lib/google/cloud/aiplatform/v1/entity_type_pb.rb +1 -1
  73. data/lib/google/cloud/aiplatform/v1/env_var_pb.rb +1 -1
  74. data/lib/google/cloud/aiplatform/v1/evaluated_annotation_pb.rb +1 -1
  75. data/lib/google/cloud/aiplatform/v1/event_pb.rb +1 -1
  76. data/lib/google/cloud/aiplatform/v1/execution_pb.rb +1 -1
  77. data/lib/google/cloud/aiplatform/v1/explanation_metadata_pb.rb +1 -1
  78. data/lib/google/cloud/aiplatform/v1/explanation_pb.rb +1 -1
  79. data/lib/google/cloud/aiplatform/v1/feature_group_pb.rb +2 -2
  80. data/lib/google/cloud/aiplatform/v1/feature_monitoring_stats_pb.rb +1 -1
  81. data/lib/google/cloud/aiplatform/v1/feature_online_store_admin_service_pb.rb +2 -2
  82. data/lib/google/cloud/aiplatform/v1/feature_online_store_pb.rb +2 -2
  83. data/lib/google/cloud/aiplatform/v1/feature_online_store_service_pb.rb +10 -2
  84. data/lib/google/cloud/aiplatform/v1/feature_online_store_service_services_pb.rb +5 -0
  85. data/lib/google/cloud/aiplatform/v1/feature_pb.rb +2 -2
  86. data/lib/google/cloud/aiplatform/v1/feature_registry_service_pb.rb +2 -2
  87. data/lib/google/cloud/aiplatform/v1/feature_selector_pb.rb +1 -1
  88. data/lib/google/cloud/aiplatform/v1/feature_view_pb.rb +2 -2
  89. data/lib/google/cloud/aiplatform/v1/feature_view_sync_pb.rb +2 -2
  90. data/lib/google/cloud/aiplatform/v1/featurestore_monitoring_pb.rb +1 -1
  91. data/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb +2 -2
  92. data/lib/google/cloud/aiplatform/v1/featurestore_pb.rb +1 -1
  93. data/lib/google/cloud/aiplatform/v1/featurestore_service_pb.rb +2 -2
  94. data/lib/google/cloud/aiplatform/v1/hyperparameter_tuning_job_pb.rb +1 -1
  95. data/lib/google/cloud/aiplatform/v1/index_endpoint_pb.rb +2 -2
  96. data/lib/google/cloud/aiplatform/v1/index_endpoint_service_pb.rb +2 -2
  97. data/lib/google/cloud/aiplatform/v1/index_pb.rb +1 -1
  98. data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +2 -2
  99. data/lib/google/cloud/aiplatform/v1/io_pb.rb +1 -1
  100. data/lib/google/cloud/aiplatform/v1/job_service_pb.rb +2 -2
  101. data/lib/google/cloud/aiplatform/v1/job_state_pb.rb +1 -1
  102. data/lib/google/cloud/aiplatform/v1/lineage_subgraph_pb.rb +1 -1
  103. data/lib/google/cloud/aiplatform/v1/llm_utility_service_pb.rb +2 -2
  104. data/lib/google/cloud/aiplatform/v1/machine_resources_pb.rb +1 -1
  105. data/lib/google/cloud/aiplatform/v1/manual_batch_tuning_parameters_pb.rb +1 -1
  106. data/lib/google/cloud/aiplatform/v1/match_service_pb.rb +1 -1
  107. data/lib/google/cloud/aiplatform/v1/metadata_schema_pb.rb +1 -1
  108. data/lib/google/cloud/aiplatform/v1/metadata_service_pb.rb +2 -2
  109. data/lib/google/cloud/aiplatform/v1/metadata_store_pb.rb +1 -1
  110. data/lib/google/cloud/aiplatform/v1/migratable_resource_pb.rb +1 -1
  111. data/lib/google/cloud/aiplatform/v1/migration_service_pb.rb +2 -2
  112. data/lib/google/cloud/aiplatform/v1/model_deployment_monitoring_job_pb.rb +2 -2
  113. data/lib/google/cloud/aiplatform/v1/model_evaluation_pb.rb +1 -1
  114. data/lib/google/cloud/aiplatform/v1/model_evaluation_slice_pb.rb +1 -1
  115. data/lib/google/cloud/aiplatform/v1/model_garden_service_pb.rb +2 -2
  116. data/lib/google/cloud/aiplatform/v1/model_monitoring_pb.rb +1 -1
  117. data/lib/google/cloud/aiplatform/v1/model_pb.rb +3 -2
  118. data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +2 -2
  119. data/lib/google/cloud/aiplatform/v1/nas_job_pb.rb +1 -1
  120. data/lib/google/cloud/aiplatform/v1/openapi_pb.rb +47 -0
  121. data/lib/google/cloud/aiplatform/v1/operation_pb.rb +1 -1
  122. data/lib/google/cloud/aiplatform/v1/pipeline_failure_policy_pb.rb +1 -1
  123. data/lib/google/cloud/aiplatform/v1/pipeline_job_pb.rb +1 -1
  124. data/lib/google/cloud/aiplatform/v1/pipeline_service_pb.rb +2 -2
  125. data/lib/google/cloud/aiplatform/v1/pipeline_state_pb.rb +1 -1
  126. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +16 -2
  127. data/lib/google/cloud/aiplatform/v1/prediction_service_services_pb.rb +16 -3
  128. data/lib/google/cloud/aiplatform/v1/publisher_model_pb.rb +6 -2
  129. data/lib/google/cloud/aiplatform/v1/saved_query_pb.rb +1 -1
  130. data/lib/google/cloud/aiplatform/v1/schedule_pb.rb +1 -1
  131. data/lib/google/cloud/aiplatform/v1/schedule_service_pb.rb +2 -2
  132. data/lib/google/cloud/aiplatform/v1/service_networking_pb.rb +4 -2
  133. data/lib/google/cloud/aiplatform/v1/specialist_pool_pb.rb +1 -1
  134. data/lib/google/cloud/aiplatform/v1/specialist_pool_service_pb.rb +2 -2
  135. data/lib/google/cloud/aiplatform/v1/study_pb.rb +1 -1
  136. data/lib/google/cloud/aiplatform/v1/tensorboard_data_pb.rb +1 -1
  137. data/lib/google/cloud/aiplatform/v1/tensorboard_experiment_pb.rb +1 -1
  138. data/lib/google/cloud/aiplatform/v1/tensorboard_pb.rb +1 -1
  139. data/lib/google/cloud/aiplatform/v1/tensorboard_run_pb.rb +1 -1
  140. data/lib/google/cloud/aiplatform/v1/tensorboard_service_pb.rb +2 -2
  141. data/lib/google/cloud/aiplatform/v1/tensorboard_time_series_pb.rb +1 -1
  142. data/lib/google/cloud/aiplatform/v1/tool_pb.rb +51 -0
  143. data/lib/google/cloud/aiplatform/v1/training_pipeline_pb.rb +1 -1
  144. data/lib/google/cloud/aiplatform/v1/types_pb.rb +1 -1
  145. data/lib/google/cloud/aiplatform/v1/unmanaged_container_model_pb.rb +1 -1
  146. data/lib/google/cloud/aiplatform/v1/user_action_reference_pb.rb +1 -1
  147. data/lib/google/cloud/aiplatform/v1/value_pb.rb +1 -1
  148. data/lib/google/cloud/aiplatform/v1/vizier_service_pb.rb +2 -2
  149. data/proto_docs/google/api/client.rb +1 -0
  150. data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +2 -2
  151. data/proto_docs/google/cloud/aiplatform/v1/content.rb +312 -0
  152. data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +15 -0
  153. data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +102 -0
  154. data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +12 -1
  155. data/proto_docs/google/cloud/aiplatform/v1/deployed_index_ref.rb +3 -0
  156. data/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool.rb +45 -0
  157. data/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool_service.rb +170 -0
  158. data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +6 -0
  159. data/proto_docs/google/cloud/aiplatform/v1/explanation.rb +8 -0
  160. data/proto_docs/google/cloud/aiplatform/v1/feature.rb +5 -1
  161. data/proto_docs/google/cloud/aiplatform/v1/feature_group.rb +2 -2
  162. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb +2 -2
  163. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_admin_service.rb +3 -1
  164. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_service.rb +136 -0
  165. data/proto_docs/google/cloud/aiplatform/v1/feature_view.rb +3 -2
  166. data/proto_docs/google/cloud/aiplatform/v1/feature_view_sync.rb +2 -2
  167. data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +1 -1
  168. data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +5 -0
  169. data/proto_docs/google/cloud/aiplatform/v1/index_service.rb +28 -0
  170. data/proto_docs/google/cloud/aiplatform/v1/metadata_service.rb +1 -0
  171. data/proto_docs/google/cloud/aiplatform/v1/model.rb +55 -4
  172. data/proto_docs/google/cloud/aiplatform/v1/model_deployment_monitoring_job.rb +4 -0
  173. data/proto_docs/google/cloud/aiplatform/v1/model_evaluation.rb +1 -1
  174. data/proto_docs/google/cloud/aiplatform/v1/model_monitoring.rb +1 -0
  175. data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +4 -4
  176. data/proto_docs/google/cloud/aiplatform/v1/nas_job.rb +1 -0
  177. data/proto_docs/google/cloud/aiplatform/v1/openapi.rb +102 -0
  178. data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +1 -0
  179. data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +195 -0
  180. data/proto_docs/google/cloud/aiplatform/v1/publisher_model.rb +73 -1
  181. data/proto_docs/google/cloud/aiplatform/v1/service_networking.rb +16 -0
  182. data/proto_docs/google/cloud/aiplatform/v1/tool.rb +112 -0
  183. data/proto_docs/google/protobuf/any.rb +2 -1
  184. data/proto_docs/google/type/date.rb +53 -0
  185. metadata +26 -9
@@ -11,7 +11,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
11
11
 
12
12
  begin
13
13
  pool.add_serialized_file(descriptor_data)
14
- rescue TypeError => e
14
+ rescue TypeError
15
15
  # Compatibility code: will be removed in the next major version.
16
16
  require 'google/protobuf/descriptor_pb'
17
17
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
@@ -15,13 +15,13 @@ require 'google/protobuf/empty_pb'
15
15
  require 'google/protobuf/timestamp_pb'
16
16
 
17
17
 
18
- descriptor_data = "\n/google/cloud/aiplatform/v1/vizier_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*google/cloud/aiplatform/v1/operation.proto\x1a&google/cloud/aiplatform/v1/study.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"H\n\x0fGetStudyRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\"\x86\x01\n\x12\x43reateStudyRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x35\n\x05study\x18\x02 \x01(\x0b\x32!.google.cloud.aiplatform.v1.StudyB\x03\xe0\x41\x02\"\x80\x01\n\x12ListStudiesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\"b\n\x13ListStudiesResponse\x12\x32\n\x07studies\x18\x01 \x03(\x0b\x32!.google.cloud.aiplatform.v1.Study\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"K\n\x12\x44\x65leteStudyRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\"j\n\x12LookupStudyRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xc7\x01\n\x14SuggestTrialsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\x12\x1d\n\x10suggestion_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12\x16\n\tclient_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12?\n\x08\x63ontexts\x18\x04 \x03(\x0b\x32(.google.cloud.aiplatform.v1.TrialContextB\x03\xe0\x41\x01\"\xe6\x01\n\x15SuggestTrialsResponse\x12\x31\n\x06trials\x18\x01 \x03(\x0b\x32!.google.cloud.aiplatform.v1.Trial\x12<\n\x0bstudy_state\x18\x02 \x01(\x0e\x32\'.google.cloud.aiplatform.v1.Study.State\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"z\n\x15SuggestTrialsMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12\x11\n\tclient_id\x18\x02 \x01(\t\"\x84\x01\n\x12\x43reateTrialRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\x12\x35\n\x05trial\x18\x02 \x01(\x0b\x32!.google.cloud.aiplatform.v1.TrialB\x03\xe0\x41\x02\"H\n\x0fGetTrialRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\"}\n\x11ListTrialsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\"`\n\x12ListTrialsResponse\x12\x31\n\x06trials\x18\x01 \x03(\x0b\x32!.google.cloud.aiplatform.v1.Trial\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x9c\x01\n\x1a\x41\x64\x64TrialMeasurementRequest\x12;\n\ntrial_name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\x12\x41\n\x0bmeasurement\x18\x03 \x01(\x0b\x32\'.google.cloud.aiplatform.v1.MeasurementB\x03\xe0\x41\x02\"\xd5\x01\n\x14\x43ompleteTrialRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\x12G\n\x11\x66inal_measurement\x18\x02 \x01(\x0b\x32\'.google.cloud.aiplatform.v1.MeasurementB\x03\xe0\x41\x01\x12\x1d\n\x10trial_infeasible\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1e\n\x11infeasible_reason\x18\x04 \x01(\tB\x03\xe0\x41\x01\"K\n\x12\x44\x65leteTrialRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\"b\n#CheckTrialEarlyStoppingStateRequest\x12;\n\ntrial_name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\";\n$CheckTrialEarlyStoppingStateResponse\x12\x13\n\x0bshould_stop\x18\x01 \x01(\x08\"\x95\x01\n%CheckTrialEarlyStoppingStateMetatdata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12\r\n\x05study\x18\x02 \x01(\t\x12\r\n\x05trial\x18\x03 \x01(\t\"I\n\x10StopTrialRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\"S\n\x18ListOptimalTrialsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\"V\n\x19ListOptimalTrialsResponse\x12\x39\n\x0eoptimal_trials\x18\x01 \x03(\x0b\x32!.google.cloud.aiplatform.v1.Trial2\xd4\x16\n\rVizierService\x12\xab\x01\n\x0b\x43reateStudy\x12..google.cloud.aiplatform.v1.CreateStudyRequest\x1a!.google.cloud.aiplatform.v1.Study\"I\x82\xd3\xe4\x93\x02\x34\"+/v1/{parent=projects/*/locations/*}/studies:\x05study\xda\x41\x0cparent,study\x12\x96\x01\n\x08GetStudy\x12+.google.cloud.aiplatform.v1.GetStudyRequest\x1a!.google.cloud.aiplatform.v1.Study\":\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/studies/*}\xda\x41\x04name\x12\xac\x01\n\x0bListStudies\x12..google.cloud.aiplatform.v1.ListStudiesRequest\x1a/.google.cloud.aiplatform.v1.ListStudiesResponse\"<\x82\xd3\xe4\x93\x02-\x12+/v1/{parent=projects/*/locations/*}/studies\xda\x41\x06parent\x12\x91\x01\n\x0b\x44\x65leteStudy\x12..google.cloud.aiplatform.v1.DeleteStudyRequest\x1a\x16.google.protobuf.Empty\":\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/studies/*}\xda\x41\x04name\x12\xa8\x01\n\x0bLookupStudy\x12..google.cloud.aiplatform.v1.LookupStudyRequest\x1a!.google.cloud.aiplatform.v1.Study\"F\x82\xd3\xe4\x93\x02\x37\"2/v1/{parent=projects/*/locations/*}/studies:lookup:\x01*\xda\x41\x06parent\x12\xda\x01\n\rSuggestTrials\x12\x30.google.cloud.aiplatform.v1.SuggestTrialsRequest\x1a\x1d.google.longrunning.Operation\"x\x82\xd3\xe4\x93\x02\x41\"</v1/{parent=projects/*/locations/*/studies/*}/trials:suggest:\x01*\xca\x41.\n\x15SuggestTrialsResponse\x12\x15SuggestTrialsMetadata\x12\xb4\x01\n\x0b\x43reateTrial\x12..google.cloud.aiplatform.v1.CreateTrialRequest\x1a!.google.cloud.aiplatform.v1.Trial\"R\x82\xd3\xe4\x93\x02=\"4/v1/{parent=projects/*/locations/*/studies/*}/trials:\x05trial\xda\x41\x0cparent,trial\x12\x9f\x01\n\x08GetTrial\x12+.google.cloud.aiplatform.v1.GetTrialRequest\x1a!.google.cloud.aiplatform.v1.Trial\"C\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{name=projects/*/locations/*/studies/*/trials/*}\xda\x41\x04name\x12\xb2\x01\n\nListTrials\x12-.google.cloud.aiplatform.v1.ListTrialsRequest\x1a..google.cloud.aiplatform.v1.ListTrialsResponse\"E\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{parent=projects/*/locations/*/studies/*}/trials\xda\x41\x06parent\x12\xcb\x01\n\x13\x41\x64\x64TrialMeasurement\x12\x36.google.cloud.aiplatform.v1.AddTrialMeasurementRequest\x1a!.google.cloud.aiplatform.v1.Trial\"Y\x82\xd3\xe4\x93\x02S\"N/v1/{trial_name=projects/*/locations/*/studies/*/trials/*}:addTrialMeasurement:\x01*\x12\xae\x01\n\rCompleteTrial\x12\x30.google.cloud.aiplatform.v1.CompleteTrialRequest\x1a!.google.cloud.aiplatform.v1.Trial\"H\x82\xd3\xe4\x93\x02\x42\"=/v1/{name=projects/*/locations/*/studies/*/trials/*}:complete:\x01*\x12\x9a\x01\n\x0b\x44\x65leteTrial\x12..google.cloud.aiplatform.v1.DeleteTrialRequest\x1a\x16.google.protobuf.Empty\"C\x82\xd3\xe4\x93\x02\x36*4/v1/{name=projects/*/locations/*/studies/*/trials/*}\xda\x41\x04name\x12\xb3\x02\n\x1c\x43heckTrialEarlyStoppingState\x12?.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x01\x82\xd3\xe4\x93\x02\\\"W/v1/{trial_name=projects/*/locations/*/studies/*/trials/*}:checkTrialEarlyStoppingState:\x01*\xca\x41M\n$CheckTrialEarlyStoppingStateResponse\x12%CheckTrialEarlyStoppingStateMetatdata\x12\xa2\x01\n\tStopTrial\x12,.google.cloud.aiplatform.v1.StopTrialRequest\x1a!.google.cloud.aiplatform.v1.Trial\"D\x82\xd3\xe4\x93\x02>\"9/v1/{name=projects/*/locations/*/studies/*/trials/*}:stop:\x01*\x12\xdc\x01\n\x11ListOptimalTrials\x12\x34.google.cloud.aiplatform.v1.ListOptimalTrialsRequest\x1a\x35.google.cloud.aiplatform.v1.ListOptimalTrialsResponse\"Z\x82\xd3\xe4\x93\x02K\"F/v1/{parent=projects/*/locations/*/studies/*}/trials:listOptimalTrials:\x01*\xda\x41\x06parent\x1aM\xca\x41\x19\x61iplatform.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd0\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x12VizierServiceProtoP\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
+ descriptor_data = "\n/google/cloud/aiplatform/v1/vizier_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*google/cloud/aiplatform/v1/operation.proto\x1a&google/cloud/aiplatform/v1/study.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"H\n\x0fGetStudyRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\"\x86\x01\n\x12\x43reateStudyRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x35\n\x05study\x18\x02 \x01(\x0b\x32!.google.cloud.aiplatform.v1.StudyB\x03\xe0\x41\x02\"\x80\x01\n\x12ListStudiesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\"b\n\x13ListStudiesResponse\x12\x32\n\x07studies\x18\x01 \x03(\x0b\x32!.google.cloud.aiplatform.v1.Study\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"K\n\x12\x44\x65leteStudyRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\"j\n\x12LookupStudyRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xc7\x01\n\x14SuggestTrialsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\x12\x1d\n\x10suggestion_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12\x16\n\tclient_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12?\n\x08\x63ontexts\x18\x04 \x03(\x0b\x32(.google.cloud.aiplatform.v1.TrialContextB\x03\xe0\x41\x01\"\xe6\x01\n\x15SuggestTrialsResponse\x12\x31\n\x06trials\x18\x01 \x03(\x0b\x32!.google.cloud.aiplatform.v1.Trial\x12<\n\x0bstudy_state\x18\x02 \x01(\x0e\x32\'.google.cloud.aiplatform.v1.Study.State\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"z\n\x15SuggestTrialsMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12\x11\n\tclient_id\x18\x02 \x01(\t\"\x84\x01\n\x12\x43reateTrialRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\x12\x35\n\x05trial\x18\x02 \x01(\x0b\x32!.google.cloud.aiplatform.v1.TrialB\x03\xe0\x41\x02\"H\n\x0fGetTrialRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\"}\n\x11ListTrialsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\"`\n\x12ListTrialsResponse\x12\x31\n\x06trials\x18\x01 \x03(\x0b\x32!.google.cloud.aiplatform.v1.Trial\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x9c\x01\n\x1a\x41\x64\x64TrialMeasurementRequest\x12;\n\ntrial_name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\x12\x41\n\x0bmeasurement\x18\x03 \x01(\x0b\x32\'.google.cloud.aiplatform.v1.MeasurementB\x03\xe0\x41\x02\"\xd5\x01\n\x14\x43ompleteTrialRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\x12G\n\x11\x66inal_measurement\x18\x02 \x01(\x0b\x32\'.google.cloud.aiplatform.v1.MeasurementB\x03\xe0\x41\x01\x12\x1d\n\x10trial_infeasible\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1e\n\x11infeasible_reason\x18\x04 \x01(\tB\x03\xe0\x41\x01\"K\n\x12\x44\x65leteTrialRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\"b\n#CheckTrialEarlyStoppingStateRequest\x12;\n\ntrial_name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\";\n$CheckTrialEarlyStoppingStateResponse\x12\x13\n\x0bshould_stop\x18\x01 \x01(\x08\"\x95\x01\n%CheckTrialEarlyStoppingStateMetatdata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12\r\n\x05study\x18\x02 \x01(\t\x12\r\n\x05trial\x18\x03 \x01(\t\"I\n\x10StopTrialRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\"S\n\x18ListOptimalTrialsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\"V\n\x19ListOptimalTrialsResponse\x12\x39\n\x0eoptimal_trials\x18\x01 \x03(\x0b\x32!.google.cloud.aiplatform.v1.Trial2\xd4\x16\n\rVizierService\x12\xab\x01\n\x0b\x43reateStudy\x12..google.cloud.aiplatform.v1.CreateStudyRequest\x1a!.google.cloud.aiplatform.v1.Study\"I\xda\x41\x0cparent,study\x82\xd3\xe4\x93\x02\x34\"+/v1/{parent=projects/*/locations/*}/studies:\x05study\x12\x96\x01\n\x08GetStudy\x12+.google.cloud.aiplatform.v1.GetStudyRequest\x1a!.google.cloud.aiplatform.v1.Study\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/studies/*}\x12\xac\x01\n\x0bListStudies\x12..google.cloud.aiplatform.v1.ListStudiesRequest\x1a/.google.cloud.aiplatform.v1.ListStudiesResponse\"<\xda\x41\x06parent\x82\xd3\xe4\x93\x02-\x12+/v1/{parent=projects/*/locations/*}/studies\x12\x91\x01\n\x0b\x44\x65leteStudy\x12..google.cloud.aiplatform.v1.DeleteStudyRequest\x1a\x16.google.protobuf.Empty\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/studies/*}\x12\xa8\x01\n\x0bLookupStudy\x12..google.cloud.aiplatform.v1.LookupStudyRequest\x1a!.google.cloud.aiplatform.v1.Study\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\"2/v1/{parent=projects/*/locations/*}/studies:lookup:\x01*\x12\xda\x01\n\rSuggestTrials\x12\x30.google.cloud.aiplatform.v1.SuggestTrialsRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41.\n\x15SuggestTrialsResponse\x12\x15SuggestTrialsMetadata\x82\xd3\xe4\x93\x02\x41\"</v1/{parent=projects/*/locations/*/studies/*}/trials:suggest:\x01*\x12\xb4\x01\n\x0b\x43reateTrial\x12..google.cloud.aiplatform.v1.CreateTrialRequest\x1a!.google.cloud.aiplatform.v1.Trial\"R\xda\x41\x0cparent,trial\x82\xd3\xe4\x93\x02=\"4/v1/{parent=projects/*/locations/*/studies/*}/trials:\x05trial\x12\x9f\x01\n\x08GetTrial\x12+.google.cloud.aiplatform.v1.GetTrialRequest\x1a!.google.cloud.aiplatform.v1.Trial\"C\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{name=projects/*/locations/*/studies/*/trials/*}\x12\xb2\x01\n\nListTrials\x12-.google.cloud.aiplatform.v1.ListTrialsRequest\x1a..google.cloud.aiplatform.v1.ListTrialsResponse\"E\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{parent=projects/*/locations/*/studies/*}/trials\x12\xcb\x01\n\x13\x41\x64\x64TrialMeasurement\x12\x36.google.cloud.aiplatform.v1.AddTrialMeasurementRequest\x1a!.google.cloud.aiplatform.v1.Trial\"Y\x82\xd3\xe4\x93\x02S\"N/v1/{trial_name=projects/*/locations/*/studies/*/trials/*}:addTrialMeasurement:\x01*\x12\xae\x01\n\rCompleteTrial\x12\x30.google.cloud.aiplatform.v1.CompleteTrialRequest\x1a!.google.cloud.aiplatform.v1.Trial\"H\x82\xd3\xe4\x93\x02\x42\"=/v1/{name=projects/*/locations/*/studies/*/trials/*}:complete:\x01*\x12\x9a\x01\n\x0b\x44\x65leteTrial\x12..google.cloud.aiplatform.v1.DeleteTrialRequest\x1a\x16.google.protobuf.Empty\"C\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36*4/v1/{name=projects/*/locations/*/studies/*/trials/*}\x12\xb3\x02\n\x1c\x43heckTrialEarlyStoppingState\x12?.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x01\xca\x41M\n$CheckTrialEarlyStoppingStateResponse\x12%CheckTrialEarlyStoppingStateMetatdata\x82\xd3\xe4\x93\x02\\\"W/v1/{trial_name=projects/*/locations/*/studies/*/trials/*}:checkTrialEarlyStoppingState:\x01*\x12\xa2\x01\n\tStopTrial\x12,.google.cloud.aiplatform.v1.StopTrialRequest\x1a!.google.cloud.aiplatform.v1.Trial\"D\x82\xd3\xe4\x93\x02>\"9/v1/{name=projects/*/locations/*/studies/*/trials/*}:stop:\x01*\x12\xdc\x01\n\x11ListOptimalTrials\x12\x34.google.cloud.aiplatform.v1.ListOptimalTrialsRequest\x1a\x35.google.cloud.aiplatform.v1.ListOptimalTrialsResponse\"Z\xda\x41\x06parent\x82\xd3\xe4\x93\x02K\"F/v1/{parent=projects/*/locations/*/studies/*}/trials:listOptimalTrials:\x01*\x1aM\xca\x41\x19\x61iplatform.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd0\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x12VizierServiceProtoP\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"
19
19
 
20
20
  pool = Google::Protobuf::DescriptorPool.generated_pool
21
21
 
22
22
  begin
23
23
  pool.add_serialized_file(descriptor_data)
24
- rescue TypeError => e
24
+ rescue TypeError
25
25
  # Compatibility code: will be removed in the next major version.
26
26
  require 'google/protobuf/descriptor_pb'
27
27
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
@@ -21,6 +21,7 @@ module Google
21
21
  module Api
22
22
  # Required information for every language.
23
23
  # @!attribute [rw] reference_docs_uri
24
+ # @deprecated This field is deprecated and may be removed in the next major version update.
24
25
  # @return [::String]
25
26
  # Link to automatically generated reference documentation. Example:
26
27
  # https://cloud.google.com/nodejs/docs/reference/asset/latest
@@ -323,7 +323,7 @@ module Google
323
323
  # {::Google::Cloud::AIPlatform::V1::BatchPredictionJob::InstanceConfig#excluded_fields excluded_fields}
324
324
  # must be empty.
325
325
  #
326
- # The input must be JSONL with objects at each line, CSV, BigQuery
326
+ # The input must be JSONL with objects at each line, BigQuery
327
327
  # or TfRecord.
328
328
  # @!attribute [rw] excluded_fields
329
329
  # @return [::Array<::String>]
@@ -338,7 +338,7 @@ module Google
338
338
  # {::Google::Cloud::AIPlatform::V1::BatchPredictionJob::InstanceConfig#included_fields included_fields}
339
339
  # must be empty.
340
340
  #
341
- # The input must be JSONL with objects at each line, CSV, BigQuery
341
+ # The input must be JSONL with objects at each line, BigQuery
342
342
  # or TfRecord.
343
343
  class InstanceConfig
344
344
  include ::Google::Protobuf::MessageExts
@@ -0,0 +1,312 @@
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
+ # The base structured datatype containing multi-part content of a message.
25
+ #
26
+ # A `Content` includes a `role` field designating the producer of the `Content`
27
+ # and a `parts` field containing multi-part data that contains the content of
28
+ # the message turn.
29
+ # @!attribute [rw] role
30
+ # @return [::String]
31
+ # Optional. The producer of the content. Must be either 'user' or 'model'.
32
+ #
33
+ # Useful to set for multi-turn conversations, otherwise can be left blank
34
+ # or unset.
35
+ # @!attribute [rw] parts
36
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::Part>]
37
+ # Required. Ordered `Parts` that constitute a single message. Parts may have
38
+ # different IANA MIME types.
39
+ class Content
40
+ include ::Google::Protobuf::MessageExts
41
+ extend ::Google::Protobuf::MessageExts::ClassMethods
42
+ end
43
+
44
+ # A datatype containing media that is part of a multi-part `Content` message.
45
+ #
46
+ # A `Part` consists of data which has an associated datatype. A `Part` can only
47
+ # contain one of the accepted types in `Part.data`.
48
+ #
49
+ # A `Part` must have a fixed IANA MIME type identifying the type and subtype
50
+ # of the media if `inline_data` or `file_data` field is filled with raw bytes.
51
+ # @!attribute [rw] text
52
+ # @return [::String]
53
+ # Optional. Text part (can be code).
54
+ # @!attribute [rw] inline_data
55
+ # @return [::Google::Cloud::AIPlatform::V1::Blob]
56
+ # Optional. Inlined bytes data.
57
+ # @!attribute [rw] file_data
58
+ # @return [::Google::Cloud::AIPlatform::V1::FileData]
59
+ # Optional. URI based data.
60
+ # @!attribute [rw] function_call
61
+ # @return [::Google::Cloud::AIPlatform::V1::FunctionCall]
62
+ # Optional. A predicted [FunctionCall] returned from the model that
63
+ # contains a string representing the [FunctionDeclaration.name] with the
64
+ # parameters and their values.
65
+ # @!attribute [rw] function_response
66
+ # @return [::Google::Cloud::AIPlatform::V1::FunctionResponse]
67
+ # Optional. The result output of a [FunctionCall] that contains a string
68
+ # representing the [FunctionDeclaration.name] and a structured JSON object
69
+ # containing any output from the function call. It is used as context to
70
+ # the model.
71
+ # @!attribute [rw] video_metadata
72
+ # @return [::Google::Cloud::AIPlatform::V1::VideoMetadata]
73
+ # Optional. Video metadata. The metadata should only be specified while the
74
+ # video data is presented in inline_data or file_data.
75
+ class Part
76
+ include ::Google::Protobuf::MessageExts
77
+ extend ::Google::Protobuf::MessageExts::ClassMethods
78
+ end
79
+
80
+ # Raw media bytes.
81
+ #
82
+ # Text should not be sent as raw bytes, use the 'text' field.
83
+ # @!attribute [rw] mime_type
84
+ # @return [::String]
85
+ # Required. The IANA standard MIME type of the source data.
86
+ # @!attribute [rw] data
87
+ # @return [::String]
88
+ # Required. Raw bytes for media formats.
89
+ class Blob
90
+ include ::Google::Protobuf::MessageExts
91
+ extend ::Google::Protobuf::MessageExts::ClassMethods
92
+ end
93
+
94
+ # URI based data.
95
+ # @!attribute [rw] mime_type
96
+ # @return [::String]
97
+ # Required. The IANA standard MIME type of the source data.
98
+ # @!attribute [rw] file_uri
99
+ # @return [::String]
100
+ # Required. URI.
101
+ class FileData
102
+ include ::Google::Protobuf::MessageExts
103
+ extend ::Google::Protobuf::MessageExts::ClassMethods
104
+ end
105
+
106
+ # Metadata describes the input video content.
107
+ # @!attribute [rw] start_offset
108
+ # @return [::Google::Protobuf::Duration]
109
+ # Optional. The start offset of the video.
110
+ # @!attribute [rw] end_offset
111
+ # @return [::Google::Protobuf::Duration]
112
+ # Optional. The end offset of the video.
113
+ class VideoMetadata
114
+ include ::Google::Protobuf::MessageExts
115
+ extend ::Google::Protobuf::MessageExts::ClassMethods
116
+ end
117
+
118
+ # Generation config.
119
+ # @!attribute [rw] temperature
120
+ # @return [::Float]
121
+ # Optional. Controls the randomness of predictions.
122
+ # @!attribute [rw] top_p
123
+ # @return [::Float]
124
+ # Optional. If specified, nucleus sampling will be used.
125
+ # @!attribute [rw] top_k
126
+ # @return [::Float]
127
+ # Optional. If specified, top-k sampling will be used.
128
+ # @!attribute [rw] candidate_count
129
+ # @return [::Integer]
130
+ # Optional. Number of candidates to generate.
131
+ # @!attribute [rw] max_output_tokens
132
+ # @return [::Integer]
133
+ # Optional. The maximum number of output tokens to generate per message.
134
+ # @!attribute [rw] stop_sequences
135
+ # @return [::Array<::String>]
136
+ # Optional. Stop sequences.
137
+ class GenerationConfig
138
+ include ::Google::Protobuf::MessageExts
139
+ extend ::Google::Protobuf::MessageExts::ClassMethods
140
+ end
141
+
142
+ # Safety settings.
143
+ # @!attribute [rw] category
144
+ # @return [::Google::Cloud::AIPlatform::V1::HarmCategory]
145
+ # Required. Harm category.
146
+ # @!attribute [rw] threshold
147
+ # @return [::Google::Cloud::AIPlatform::V1::SafetySetting::HarmBlockThreshold]
148
+ # Required. The harm block threshold.
149
+ class SafetySetting
150
+ include ::Google::Protobuf::MessageExts
151
+ extend ::Google::Protobuf::MessageExts::ClassMethods
152
+
153
+ # Probability based thresholds levels for blocking.
154
+ module HarmBlockThreshold
155
+ # Unspecified harm block threshold.
156
+ HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0
157
+
158
+ # Block low threshold and above (i.e. block more).
159
+ BLOCK_LOW_AND_ABOVE = 1
160
+
161
+ # Block medium threshold and above.
162
+ BLOCK_MEDIUM_AND_ABOVE = 2
163
+
164
+ # Block only high threshold (i.e. block less).
165
+ BLOCK_ONLY_HIGH = 3
166
+
167
+ # Block none.
168
+ BLOCK_NONE = 4
169
+ end
170
+ end
171
+
172
+ # Safety rating corresponding to the generated content.
173
+ # @!attribute [r] category
174
+ # @return [::Google::Cloud::AIPlatform::V1::HarmCategory]
175
+ # Output only. Harm category.
176
+ # @!attribute [r] probability
177
+ # @return [::Google::Cloud::AIPlatform::V1::SafetyRating::HarmProbability]
178
+ # Output only. Harm probability levels in the content.
179
+ # @!attribute [r] blocked
180
+ # @return [::Boolean]
181
+ # Output only. Indicates whether the content was filtered out because of this
182
+ # rating.
183
+ class SafetyRating
184
+ include ::Google::Protobuf::MessageExts
185
+ extend ::Google::Protobuf::MessageExts::ClassMethods
186
+
187
+ # Harm probability levels in the content.
188
+ module HarmProbability
189
+ # Harm probability unspecified.
190
+ HARM_PROBABILITY_UNSPECIFIED = 0
191
+
192
+ # Negligible level of harm.
193
+ NEGLIGIBLE = 1
194
+
195
+ # Low level of harm.
196
+ LOW = 2
197
+
198
+ # Medium level of harm.
199
+ MEDIUM = 3
200
+
201
+ # High level of harm.
202
+ HIGH = 4
203
+ end
204
+ end
205
+
206
+ # A collection of source attributions for a piece of content.
207
+ # @!attribute [r] citations
208
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::Citation>]
209
+ # Output only. List of citations.
210
+ class CitationMetadata
211
+ include ::Google::Protobuf::MessageExts
212
+ extend ::Google::Protobuf::MessageExts::ClassMethods
213
+ end
214
+
215
+ # Source attributions for content.
216
+ # @!attribute [r] start_index
217
+ # @return [::Integer]
218
+ # Output only. Start index into the content.
219
+ # @!attribute [r] end_index
220
+ # @return [::Integer]
221
+ # Output only. End index into the content.
222
+ # @!attribute [r] uri
223
+ # @return [::String]
224
+ # Output only. Url reference of the attribution.
225
+ # @!attribute [r] title
226
+ # @return [::String]
227
+ # Output only. Title of the attribution.
228
+ # @!attribute [r] license
229
+ # @return [::String]
230
+ # Output only. License of the attribution.
231
+ # @!attribute [r] publication_date
232
+ # @return [::Google::Type::Date]
233
+ # Output only. Publication date of the attribution.
234
+ class Citation
235
+ include ::Google::Protobuf::MessageExts
236
+ extend ::Google::Protobuf::MessageExts::ClassMethods
237
+ end
238
+
239
+ # A response candidate generated from the model.
240
+ # @!attribute [r] index
241
+ # @return [::Integer]
242
+ # Output only. Index of the candidate.
243
+ # @!attribute [r] content
244
+ # @return [::Google::Cloud::AIPlatform::V1::Content]
245
+ # Output only. Content parts of the candidate.
246
+ # @!attribute [r] finish_reason
247
+ # @return [::Google::Cloud::AIPlatform::V1::Candidate::FinishReason]
248
+ # Output only. The reason why the model stopped generating tokens.
249
+ # If empty, the model has not stopped generating the tokens.
250
+ # @!attribute [r] safety_ratings
251
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::SafetyRating>]
252
+ # Output only. List of ratings for the safety of a response candidate.
253
+ #
254
+ # There is at most one rating per category.
255
+ # @!attribute [r] finish_message
256
+ # @return [::String]
257
+ # Output only. Describes the reason the mode stopped generating tokens in
258
+ # more detail. This is only filled when `finish_reason` is set.
259
+ # @!attribute [r] citation_metadata
260
+ # @return [::Google::Cloud::AIPlatform::V1::CitationMetadata]
261
+ # Output only. Source attribution of the generated content.
262
+ class Candidate
263
+ include ::Google::Protobuf::MessageExts
264
+ extend ::Google::Protobuf::MessageExts::ClassMethods
265
+
266
+ # The reason why the model stopped generating tokens.
267
+ # If empty, the model has not stopped generating the tokens.
268
+ module FinishReason
269
+ # The finish reason is unspecified.
270
+ FINISH_REASON_UNSPECIFIED = 0
271
+
272
+ # Natural stop point of the model or provided stop sequence.
273
+ STOP = 1
274
+
275
+ # The maximum number of tokens as specified in the request was reached.
276
+ MAX_TOKENS = 2
277
+
278
+ # The token generation was stopped as the response was flagged for safety
279
+ # reasons. NOTE: When streaming the Candidate.content will be empty if
280
+ # content filters blocked the output.
281
+ SAFETY = 3
282
+
283
+ # The token generation was stopped as the response was flagged for
284
+ # unauthorized citations.
285
+ RECITATION = 4
286
+
287
+ # All other reasons that stopped the token generation
288
+ OTHER = 5
289
+ end
290
+ end
291
+
292
+ # Harm categories that will block the content.
293
+ module HarmCategory
294
+ # The harm category is unspecified.
295
+ HARM_CATEGORY_UNSPECIFIED = 0
296
+
297
+ # The harm category is hate speech.
298
+ HARM_CATEGORY_HATE_SPEECH = 1
299
+
300
+ # The harm category is dangerous content.
301
+ HARM_CATEGORY_DANGEROUS_CONTENT = 2
302
+
303
+ # The harm category is harassment.
304
+ HARM_CATEGORY_HARASSMENT = 3
305
+
306
+ # The harm category is sexually explicit content.
307
+ HARM_CATEGORY_SEXUALLY_EXPLICIT = 4
308
+ end
309
+ end
310
+ end
311
+ end
312
+ end
@@ -219,6 +219,21 @@ module Google
219
219
  # Optional. The Experiment Run associated with this job.
220
220
  # Format:
221
221
  # `projects/{project}/locations/{location}/metadataStores/{metadataStores}/contexts/{experiment-name}-{experiment-run-name}`
222
+ # @!attribute [rw] models
223
+ # @return [::Array<::String>]
224
+ # Optional. The name of the Model resources for which to generate a mapping
225
+ # to artifact URIs. Applicable only to some of the Google-provided custom
226
+ # jobs. Format: `projects/{project}/locations/{location}/models/{model}`
227
+ #
228
+ # In order to retrieve a specific version of the model, also provide
229
+ # the version ID or version alias.
230
+ # Example: `projects/{project}/locations/{location}/models/{model}@2`
231
+ # or
232
+ # `projects/{project}/locations/{location}/models/{model}@golden`
233
+ # If no version ID or alias is specified, the "default" version will be
234
+ # returned. The "default" version alias is created for the first version of
235
+ # the model, and can be moved to other versions later on. There will be
236
+ # exactly one default version.
222
237
  class CustomJobSpec
223
238
  include ::Google::Protobuf::MessageExts
224
239
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -184,15 +184,78 @@ module Google
184
184
  # @!attribute [rw] fraction_split
185
185
  # @return [::Google::Cloud::AIPlatform::V1::ExportFractionSplit]
186
186
  # Split based on fractions defining the size of each set.
187
+ # @!attribute [rw] filter_split
188
+ # @return [::Google::Cloud::AIPlatform::V1::ExportFilterSplit]
189
+ # Split based on the provided filters for each set.
187
190
  # @!attribute [rw] annotations_filter
188
191
  # @return [::String]
189
192
  # An expression for filtering what part of the Dataset is to be exported.
190
193
  # Only Annotations that match this filter will be exported. The filter syntax
191
194
  # is the same as in
192
195
  # {::Google::Cloud::AIPlatform::V1::DatasetService::Client#list_annotations ListAnnotations}.
196
+ # @!attribute [rw] saved_query_id
197
+ # @return [::String]
198
+ # The ID of a SavedQuery (annotation set) under the Dataset specified by
199
+ # [dataset_id][] used for filtering Annotations for training.
200
+ #
201
+ # Only used for custom training data export use cases.
202
+ # Only applicable to Datasets that have SavedQueries.
203
+ #
204
+ # Only Annotations that are associated with this SavedQuery are used in
205
+ # respectively training. When used in conjunction with
206
+ # {::Google::Cloud::AIPlatform::V1::ExportDataConfig#annotations_filter annotations_filter},
207
+ # the Annotations used for training are filtered by both
208
+ # {::Google::Cloud::AIPlatform::V1::ExportDataConfig#saved_query_id saved_query_id}
209
+ # and
210
+ # {::Google::Cloud::AIPlatform::V1::ExportDataConfig#annotations_filter annotations_filter}.
211
+ #
212
+ # Only one of
213
+ # {::Google::Cloud::AIPlatform::V1::ExportDataConfig#saved_query_id saved_query_id}
214
+ # and
215
+ # {::Google::Cloud::AIPlatform::V1::ExportDataConfig#annotation_schema_uri annotation_schema_uri}
216
+ # should be specified as both of them represent the same thing: problem type.
217
+ # @!attribute [rw] annotation_schema_uri
218
+ # @return [::String]
219
+ # The Cloud Storage URI that points to a YAML file describing the annotation
220
+ # schema. The schema is defined as an OpenAPI 3.0.2 [Schema
221
+ # Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
222
+ # The schema files that can be used here are found in
223
+ # gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the
224
+ # chosen schema must be consistent with
225
+ # {::Google::Cloud::AIPlatform::V1::Dataset#metadata_schema_uri metadata} of the
226
+ # Dataset specified by [dataset_id][].
227
+ #
228
+ # Only used for custom training data export use cases.
229
+ # Only applicable to Datasets that have DataItems and Annotations.
230
+ #
231
+ # Only Annotations that both match this schema and belong to DataItems not
232
+ # ignored by the split method are used in respectively training, validation
233
+ # or test role, depending on the role of the DataItem they are on.
234
+ #
235
+ # When used in conjunction with
236
+ # {::Google::Cloud::AIPlatform::V1::ExportDataConfig#annotations_filter annotations_filter},
237
+ # the Annotations used for training are filtered by both
238
+ # {::Google::Cloud::AIPlatform::V1::ExportDataConfig#annotations_filter annotations_filter}
239
+ # and
240
+ # {::Google::Cloud::AIPlatform::V1::ExportDataConfig#annotation_schema_uri annotation_schema_uri}.
241
+ # @!attribute [rw] export_use
242
+ # @return [::Google::Cloud::AIPlatform::V1::ExportDataConfig::ExportUse]
243
+ # Indicates the usage of the exported files.
193
244
  class ExportDataConfig
194
245
  include ::Google::Protobuf::MessageExts
195
246
  extend ::Google::Protobuf::MessageExts::ClassMethods
247
+
248
+ # ExportUse indicates the usage of the exported files. It restricts file
249
+ # destination, format, annotations to be exported, whether to allow
250
+ # unannotated data to be exported and whether to clone files to temp Cloud
251
+ # Storage bucket.
252
+ module ExportUse
253
+ # Regular user export.
254
+ EXPORT_USE_UNSPECIFIED = 0
255
+
256
+ # Export for custom code training.
257
+ CUSTOM_CODE_TRAINING = 6
258
+ end
196
259
  end
197
260
 
198
261
  # Assigns the input data to training, validation, and test sets as per the
@@ -214,6 +277,45 @@ module Google
214
277
  include ::Google::Protobuf::MessageExts
215
278
  extend ::Google::Protobuf::MessageExts::ClassMethods
216
279
  end
280
+
281
+ # Assigns input data to training, validation, and test sets based on the given
282
+ # filters, data pieces not matched by any filter are ignored. Currently only
283
+ # supported for Datasets containing DataItems.
284
+ # If any of the filters in this message are to match nothing, then they can be
285
+ # set as '-' (the minus sign).
286
+ #
287
+ # Supported only for unstructured Datasets.
288
+ # @!attribute [rw] training_filter
289
+ # @return [::String]
290
+ # Required. A filter on DataItems of the Dataset. DataItems that match
291
+ # this filter are used to train the Model. A filter with same syntax
292
+ # as the one used in
293
+ # {::Google::Cloud::AIPlatform::V1::DatasetService::Client#list_data_items DatasetService.ListDataItems}
294
+ # may be used. If a single DataItem is matched by more than one of the
295
+ # FilterSplit filters, then it is assigned to the first set that applies to
296
+ # it in the training, validation, test order.
297
+ # @!attribute [rw] validation_filter
298
+ # @return [::String]
299
+ # Required. A filter on DataItems of the Dataset. DataItems that match
300
+ # this filter are used to validate the Model. A filter with same syntax
301
+ # as the one used in
302
+ # {::Google::Cloud::AIPlatform::V1::DatasetService::Client#list_data_items DatasetService.ListDataItems}
303
+ # may be used. If a single DataItem is matched by more than one of the
304
+ # FilterSplit filters, then it is assigned to the first set that applies to
305
+ # it in the training, validation, test order.
306
+ # @!attribute [rw] test_filter
307
+ # @return [::String]
308
+ # Required. A filter on DataItems of the Dataset. DataItems that match
309
+ # this filter are used to test the Model. A filter with same syntax
310
+ # as the one used in
311
+ # {::Google::Cloud::AIPlatform::V1::DatasetService::Client#list_data_items DatasetService.ListDataItems}
312
+ # may be used. If a single DataItem is matched by more than one of the
313
+ # FilterSplit filters, then it is assigned to the first set that applies to
314
+ # it in the training, validation, test order.
315
+ class ExportFilterSplit
316
+ include ::Google::Protobuf::MessageExts
317
+ extend ::Google::Protobuf::MessageExts::ClassMethods
318
+ end
217
319
  end
218
320
  end
219
321
  end
@@ -199,7 +199,15 @@ module Google
199
199
  # {::Google::Cloud::AIPlatform::V1::DatasetService::Client#export_data DatasetService.ExportData}.
200
200
  # @!attribute [rw] exported_files
201
201
  # @return [::Array<::String>]
202
- # All of the files that are exported in this export operation.
202
+ # All of the files that are exported in this export operation. For custom
203
+ # code training export, only three (training, validation and test)
204
+ # Cloud Storage paths in wildcard format are populated
205
+ # (for example, gs://.../training-*).
206
+ # @!attribute [rw] data_stats
207
+ # @return [::Google::Cloud::AIPlatform::V1::Model::DataStats]
208
+ # Only present for custom code training export use case. Records data stats,
209
+ # i.e., train/validation/test item/annotation counts calculated during
210
+ # the export operation.
203
211
  class ExportDataResponse
204
212
  include ::Google::Protobuf::MessageExts
205
213
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -392,6 +400,7 @@ module Google
392
400
  # Format:
393
401
  # `projects/{project}/locations/{location}/datasets/{dataset}`
394
402
  # @!attribute [rw] saved_query
403
+ # @deprecated This field is deprecated and may be removed in the next major version update.
395
404
  # @return [::String]
396
405
  # The resource name of a SavedQuery(annotation set in UI).
397
406
  # Format:
@@ -419,6 +428,7 @@ module Google
419
428
  # * `data_item=1`
420
429
  # * `has_annotation(5)`
421
430
  # @!attribute [rw] annotations_filter
431
+ # @deprecated This field is deprecated and may be removed in the next major version update.
422
432
  # @return [::String]
423
433
  # An expression for filtering the Annotations that will be returned per
424
434
  # DataItem.
@@ -444,6 +454,7 @@ module Google
444
454
  # Requested page size. Server may return fewer results than requested.
445
455
  # Default and maximum page size is 100.
446
456
  # @!attribute [rw] order_by
457
+ # @deprecated This field is deprecated and may be removed in the next major version update.
447
458
  # @return [::String]
448
459
  # A comma-separated list of fields to order by, sorted in ascending order.
449
460
  # Use "desc" after a field name for descending.
@@ -28,6 +28,9 @@ module Google
28
28
  # @!attribute [rw] deployed_index_id
29
29
  # @return [::String]
30
30
  # Immutable. The ID of the DeployedIndex in the above IndexEndpoint.
31
+ # @!attribute [r] display_name
32
+ # @return [::String]
33
+ # Output only. The display name of the DeployedIndex.
31
34
  class DeployedIndexRef
32
35
  include ::Google::Protobuf::MessageExts
33
36
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -0,0 +1,45 @@
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
+ # A description of resources that can be shared by multiple DeployedModels,
25
+ # whose underlying specification consists of a DedicatedResources.
26
+ # @!attribute [rw] name
27
+ # @return [::String]
28
+ # Immutable. The resource name of the DeploymentResourcePool.
29
+ # Format:
30
+ # `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
31
+ # @!attribute [rw] dedicated_resources
32
+ # @return [::Google::Cloud::AIPlatform::V1::DedicatedResources]
33
+ # Required. The underlying DedicatedResources that the DeploymentResourcePool
34
+ # uses.
35
+ # @!attribute [r] create_time
36
+ # @return [::Google::Protobuf::Timestamp]
37
+ # Output only. Timestamp when this DeploymentResourcePool was created.
38
+ class DeploymentResourcePool
39
+ include ::Google::Protobuf::MessageExts
40
+ extend ::Google::Protobuf::MessageExts::ClassMethods
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end